configure.ac: Add check for new options in isl-0.15.
[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 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CXXFLAGS
712 BUILD_CFLAGS
713 CXX_FOR_BUILD
714 CC_FOR_BUILD
715 inhibit_libc
716 SYSTEM_HEADER_DIR
717 ALL
718 CROSS
719 CATOBJEXT
720 GENCAT
721 INSTOBJEXT
722 DATADIRNAME
723 CATALOGS
724 POSUB
725 GMSGFMT
726 XGETTEXT
727 INCINTL
728 LIBINTL_DEP
729 LIBINTL
730 USE_NLS
731 extra_opt_files
732 extra_modes_file
733 NATIVE_SYSTEM_HEADER_DIR
734 objext
735 manext
736 LIBICONV_DEP
737 LTLIBICONV
738 LIBICONV
739 LDEXP_LIB
740 EXTRA_GCC_LIBS
741 GNAT_LIBEXC
742 COLLECT2_LIBS
743 CXXDEPMODE
744 DEPDIR
745 am__leading_dot
746 doc_build_sys
747 AR
748 NM
749 BISON
750 FLEX
751 GENERATED_MANPAGES
752 BUILD_INFO
753 MAKEINFO
754 have_mktemp_command
755 make_compare_target
756 INSTALL_DATA
757 INSTALL_PROGRAM
758 INSTALL
759 ranlib_flags
760 RANLIB
761 LN
762 LN_S
763 AWK
764 SET_MAKE
765 accel_dir_suffix
766 real_target_noncanonical
767 enable_as_accelerator
768 REPORT_BUGS_TEXI
769 REPORT_BUGS_TO
770 PKGVERSION
771 CONFIGURE_SPECS
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 CPP
794 EGREP
795 GREP
796 CXXCPP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
802 CXX
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 GENINSRC
811 CROSS_SYSTEM_HEADER_DIR
812 TARGET_SYSTEM_ROOT_DEFINE
813 TARGET_SYSTEM_ROOT
814 SYSROOT_CFLAGS_FOR_TARGET
815 target_subdir
816 host_subdir
817 build_subdir
818 build_libsubdir
819 target_noncanonical
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='option_includes
871 language_hooks'
872 ac_user_opts='
873 enable_option_checking
874 with_build_libsubdir
875 with_local_prefix
876 with_native_system_header_dir
877 with_build_sysroot
878 with_sysroot
879 with_gxx_include_dir
880 with_cpp_install_dir
881 enable_generated_files_in_srcdir
882 with_gnu_ld
883 with_ld
884 with_demangler_in_ld
885 with_gnu_as
886 with_as
887 enable_largefile
888 enable_build_format_warnings
889 enable_werror_always
890 enable_checking
891 enable_coverage
892 enable_gather_detailed_mem_stats
893 enable_valgrind_annotations
894 with_stabs
895 enable_multilib
896 enable_multiarch
897 enable___cxa_atexit
898 enable_decimal_float
899 enable_fixed_point
900 enable_threads
901 enable_tls
902 enable_objc_gc
903 with_dwarf2
904 enable_shared
905 with_specs
906 with_pkgversion
907 with_bugurl
908 enable_languages
909 with_multilib_list
910 enable_rpath
911 with_libiconv_prefix
912 enable_sjlj_exceptions
913 enable_secureplt
914 enable_leading_mingw64_underscores
915 enable_cld
916 enable_frame_pointer
917 enable_win32_registry
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 enable_ld
923 enable_gold
924 with_plugin_ld
925 enable_gnu_indirect_function
926 enable_initfini_array
927 enable_comdat
928 enable_fix_cortex_a53_835769
929 enable_fix_cortex_a53_843419
930 with_glibc_version
931 enable_gnu_unique_object
932 enable_linker_build_id
933 with_long_double_128
934 with_gc
935 with_system_zlib
936 enable_maintainer_mode
937 enable_link_mutex
938 enable_version_specific_runtime_libs
939 enable_plugin
940 enable_host_shared
941 enable_libquadmath_support
942 with_linker_hash_style
943 with_diagnostics_color
944 enable_default_pie
945 '
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CC
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
954 CXX
955 CXXFLAGS
956 CCC
957 CXXCPP
958 CPP
959 GMPLIBS
960 GMPINC
961 ISLLIBS
962 ISLINC'
963
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1022 fi
1023
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
1034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1059
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1082
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1087
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1092
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1117
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1121
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1128
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1133
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1139
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1146
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1151
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1156
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1163
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1168
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1175
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1180
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1184
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1188
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1192
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1201
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1206
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1213
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1220
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1237
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1242
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1247
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1251
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1257
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1268
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1273
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1278
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1285
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1290
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1293
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1296
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1312
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1321 *"
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1328
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1332
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1339
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1346
1347 -*) as_fn_error "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1349 ;;
1350
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1360
1361 *)
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 ;;
1368
1369 esac
1370 done
1371
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error "missing argument to $ac_option"
1375 fi
1376
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1383 fi
1384
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1390 do
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1421 fi
1422 fi
1423
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427 test "$silent" = yes && exec 6>/dev/null
1428
1429
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error "pwd does not report name of working directory"
1436
1437
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\).*/{
1461 s//\1/
1462 q
1463 }
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1468 fi
1469 else
1470 ac_srcdir_defaulted=no
1471 fi
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1475 fi
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1483 fi
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1496
1497 #
1498 # Report the --help message.
1499 #
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1505
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1510
1511 Defaults for the options are specified in brackets.
1512
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1529
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1534
1535 For better control, use the options below.
1536
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1558
1559 cat <<\_ACEOF
1560
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1565
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1571 fi
1572
1573 if test -n "$ac_init_help"; then
1574
1575 cat <<\_ACEOF
1576
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files in source dir intended
1583 for creating source tarballs for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support for large files
1586 --disable-build-format-warnings
1587 don't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and locate unused parts
1598 of the compiler. With LEVEL, specify optimization.
1599 Values are opt, noopt, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-valgrind-annotations
1603 enable valgrind runtime interaction
1604 --enable-multilib enable library support for multiple ABIs
1605 --enable-multiarch enable support for multiarch paths
1606 --enable-__cxa_atexit enable __cxa_atexit for C++
1607 --enable-decimal-float={no,yes,bid,dpd}
1608 enable decimal float extension to C. Selecting 'bid'
1609 or 'dpd' choses which decimal floating point format
1610 to use
1611 --enable-fixed-point enable fixed-point arithmetic extension to C
1612 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1613 package
1614 --enable-tls enable or disable generation of tls code overriding
1615 the assembler check for tls support
1616 --enable-objc-gc enable the use of Boehm's garbage collector with the
1617 GNU Objective-C runtime
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1628 x86
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1648
1649 --enable-fix-cortex-a53-835769
1650 enable workaround for AArch64 Cortex-A53 erratum
1651 835769 by default
1652 --disable-fix-cortex-a53-835769
1653 disable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1655
1656
1657 --enable-fix-cortex-a53-843419
1658 enable workaround for AArch64 Cortex-A53 erratum
1659 843419 by default
1660 --disable-fix-cortex-a53-843419
1661 disable workaround for AArch64 Cortex-A53 erratum
1662 843419 by default
1663
1664 --enable-gnu-unique-object
1665 enable the use of the @gnu_unique_object ELF
1666 extension on glibc systems
1667 --enable-linker-build-id
1668 compiler will always pass --build-id to linker
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful (and
1671 sometimes confusing) to the casual installer
1672 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1673 thrashing on the build machine
1674 --enable-version-specific-runtime-libs
1675 specify that runtime libraries should be installed
1676 in a compiler-specific directory
1677 --enable-plugin enable plugin support
1678 --enable-host-shared build host code as shared libraries
1679 --disable-libquadmath-support
1680 disable libquadmath support for Fortran
1681 --enable-default-pie enable Position Independent Executable as default
1682
1683 Optional Packages:
1684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1686 --with-build-libsubdir=DIR Directory where to find libraries for build system
1687 --with-local-prefix=DIR specifies directory to put local include
1688 --with-native-system-header-dir=dir
1689 use dir as the directory to look for standard
1690 system header files in. Defaults to /usr/include.
1691 --with-build-sysroot=sysroot
1692 use sysroot as the system root during the build
1693 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1694 --with-gxx-include-dir=DIR
1695 specifies directory to put g++ header files
1696 --with-cpp-install-dir=DIR
1697 install the user visible C preprocessor in DIR
1698 (relative to PREFIX) as well as PREFIX/bin
1699 --with-gnu-ld arrange to work with GNU ld
1700 --with-ld arrange to use the specified ld (full pathname)
1701 --with-demangler-in-ld try to use demangler in GNU ld
1702 --with-gnu-as arrange to work with GNU as
1703 --with-as arrange to use the specified as (full pathname)
1704 --with-stabs arrange to use stabs instead of host debug format
1705 --with-dwarf2 force the default debug format to be DWARF 2
1706 --with-specs=SPECS add SPECS to driver command-line processing
1707 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1708 --with-bugurl=URL Direct users to URL to report a bug
1709 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1710 --with-gnu-ld assume the C compiler uses GNU ld default=no
1711 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1712 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1713 --with-pic try to use only PIC/non-PIC objects [default=use
1714 both]
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-plugin-ld=[ARG] specify the plugin linker
1717 --with-glibc-version=M.N
1718 assume GCC used with glibc version M.N or later
1719 --with-long-double-128 use 128-bit long double by default
1720 --with-gc={page,zone} this option is not supported anymore. It used to
1721 choose the garbage collection mechanism to use with
1722 the compiler
1723 --with-system-zlib use installed libz
1724 --with-linker-hash-style={sysv,gnu,both}
1725 specify the linker hash style
1726 --with-diagnostics-color={never,auto,auto-if-env,always}
1727 specify the default of -fdiagnostics-color option
1728 auto-if-env stands for -fdiagnostics-color=auto if
1729 GCC_COLOR environment variable is present and
1730 -fdiagnostics-color=never otherwise
1731
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 CPP C preprocessor
1744 GMPLIBS How to link GMP
1745 GMPINC How to find GMP include files
1746 ISLLIBS How to link ISL
1747 ISLINC How to find ISL include files
1748
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1751
1752 Report bugs to the package provider.
1753 _ACEOF
1754 ac_status=$?
1755 fi
1756
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 continue
1763 ac_builddir=.
1764
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *)
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1780
1781 case $srcdir in
1782 .) # We are building in place.
1783 ac_srcdir=.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1790 *) # Relative name.
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1805 else
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 fi || ac_status=$?
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1809 done
1810 fi
1811
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814 cat <<\_ACEOF
1815 configure
1816 generated by GNU Autoconf 2.64
1817
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822 exit
1823 fi
1824
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1828
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861 fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1864
1865 } # ac_fn_c_try_compile
1866
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899 fi
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1902
1903 } # ac_fn_cxx_try_compile
1904
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1924 fi
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } >/dev/null && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1
1936 fi
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 return $ac_retval
1939
1940 } # ac_fn_cxx_try_cpp
1941
1942 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # ---------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_cxx_check_header_mongrel ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_cxx_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1976
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_cxx_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1988 fi
1989 rm -f conftest.err conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1992
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2020 fi
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 fi
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027 } # ac_fn_cxx_check_header_mongrel
2028
2029 # ac_fn_cxx_try_run LINENO
2030 # ------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_cxx_try_run ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2044 ac_status=$?
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=$ac_status
2064 fi
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2068
2069 } # ac_fn_cxx_try_run
2070
2071 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2072 # ---------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_cxx_check_header_compile ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 fi
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099
2100 } # ac_fn_cxx_check_header_compile
2101
2102 # ac_fn_c_try_cpp LINENO
2103 # ----------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_c_try_cpp ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2121 fi
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } >/dev/null && {
2124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 ac_retval=1
2133 fi
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 return $ac_retval
2136
2137 } # ac_fn_c_try_cpp
2138
2139 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2140 # ----------------------------------------------
2141 # Tries to find the compile-time value of EXPR in a program that includes
2142 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 # computed
2144 ac_fn_cxx_compute_int ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if test "$cross_compiling" = yes; then
2148 # Depending upon the size, compute the lo and hi bounds.
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) >= 0)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_cxx_try_compile "$LINENO"; then :
2163 ac_lo=0 ac_mid=0
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2180 else
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2183 ac_lo= ac_hi=
2184 break
2185 fi
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0
2199
2200 ;
2201 return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205 ac_hi=-1 ac_mid=-1
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2214 test_array [0] = 0
2215
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_lo=$ac_mid; break
2222 else
2223 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2224 if test $ac_mid -le $ac_hi; then
2225 ac_lo= ac_hi=
2226 break
2227 fi
2228 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 else
2233 ac_lo= ac_hi=
2234 fi
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 $4
2244 int
2245 main ()
2246 {
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0
2249
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_hi=$ac_mid
2256 else
2257 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261 case $ac_lo in #((
2262 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2263 '') ac_retval=1 ;;
2264 esac
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2271 #include <stdio.h>
2272 #include <stdlib.h>
2273 int
2274 main ()
2275 {
2276
2277 FILE *f = fopen ("conftest.val", "w");
2278 if (! f)
2279 return 1;
2280 if (($2) < 0)
2281 {
2282 long int i = longval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%ld", i);
2286 }
2287 else
2288 {
2289 unsigned long int i = ulongval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%lu", i);
2293 }
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2297
2298 ;
2299 return 0;
2300 }
2301 _ACEOF
2302 if ac_fn_cxx_try_run "$LINENO"; then :
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2304 else
2305 ac_retval=1
2306 fi
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 rm -f conftest.val
2310
2311 fi
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 return $ac_retval
2314
2315 } # ac_fn_cxx_compute_int
2316
2317 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2318 # ---------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_cxx_check_type ()
2322 {
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 $4
2333 int
2334 main ()
2335 {
2336 if (sizeof ($2))
2337 return 0;
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2345 $4
2346 int
2347 main ()
2348 {
2349 if (sizeof (($2)))
2350 return 0;
2351 ;
2352 return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2356
2357 else
2358 eval "$3=yes"
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 fi
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2368
2369 } # ac_fn_cxx_check_type
2370
2371 # ac_fn_c_find_intX_t LINENO BITS VAR
2372 # -----------------------------------
2373 # Finds a signed integer type with width BITS, setting cache variable VAR
2374 # accordingly.
2375 ac_fn_c_find_intX_t ()
2376 {
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2379 $as_echo_n "checking for int$2_t... " >&6; }
2380 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 eval "$3=no"
2384 for ac_type in int$2_t 'int' 'long int' \
2385 'long long int' 'short int' 'signed char'; do
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $ac_includes_default
2389 int
2390 main ()
2391 {
2392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2393 test_array [0] = 0
2394
2395 ;
2396 return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2403 int
2404 main ()
2405 {
2406 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2407 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2408 test_array [0] = 0
2409
2410 ;
2411 return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2415
2416 else
2417 case $ac_type in #(
2418 int$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 fi
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 eval as_val=\$$3
2428 if test "x$as_val" = x""no; then :
2429
2430 else
2431 break
2432 fi
2433 done
2434 fi
2435 eval ac_res=\$$3
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439
2440 } # ac_fn_c_find_intX_t
2441
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link ()
2446 {
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { { ac_try="$ac_link"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_link") 2>conftest.err
2457 ac_status=$?
2458 if test -s conftest.err; then
2459 grep -v '^ *+' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2461 mv -f conftest.er1 conftest.err
2462 fi
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; } && {
2465 test -z "$ac_cxx_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest$ac_exeext && {
2468 test "$cross_compiling" = yes ||
2469 $as_test_x conftest$ac_exeext
2470 }; then :
2471 ac_retval=0
2472 else
2473 $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 ac_retval=1
2477 fi
2478 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480 # interfere with the next link command; also delete a directory that is
2481 # left behind by Apple's compiler. We do this before executing the actions.
2482 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 return $ac_retval
2485
2486 } # ac_fn_cxx_try_link
2487
2488 # ac_fn_c_find_uintX_t LINENO BITS VAR
2489 # ------------------------------------
2490 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2491 # accordingly.
2492 ac_fn_c_find_uintX_t ()
2493 {
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2496 $as_echo_n "checking for uint$2_t... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 eval "$3=no"
2501 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2502 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $ac_includes_default
2506 int
2507 main ()
2508 {
2509 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2510 test_array [0] = 0
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 case $ac_type in #(
2518 uint$2_t) :
2519 eval "$3=yes" ;; #(
2520 *) :
2521 eval "$3=\$ac_type" ;;
2522 esac
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval as_val=\$$3
2526 if test "x$as_val" = x""no; then :
2527
2528 else
2529 break
2530 fi
2531 done
2532 fi
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537
2538 } # ac_fn_c_find_uintX_t
2539
2540 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2541 # ------------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_cxx_check_header_preproc ()
2544 {
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_cxx_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2559 fi
2560 rm -f conftest.err conftest.$ac_ext
2561 fi
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566
2567 } # ac_fn_cxx_check_header_preproc
2568
2569 # ac_fn_cxx_check_func LINENO FUNC VAR
2570 # ------------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_cxx_check_func ()
2573 {
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2585
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2590
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2596
2597 #undef $2
2598
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2602 #ifdef __cplusplus
2603 extern "C"
2604 #endif
2605 char $2 ();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2610 choke me
2611 #endif
2612
2613 int
2614 main ()
2615 {
2616 return $2 ();
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 if ac_fn_cxx_try_link "$LINENO"; then :
2622 eval "$3=yes"
2623 else
2624 eval "$3=no"
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2628 fi
2629 eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633
2634 } # ac_fn_cxx_check_func
2635
2636 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2637 # --------------------------------------
2638 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2639 ac_fn_cxx_check_decl ()
2640 {
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2651 $4
2652 int
2653 main ()
2654 {
2655 #ifndef $as_decl_name
2656 #ifdef __cplusplus
2657 (void) $as_decl_use;
2658 #else
2659 (void) $as_decl_name;
2660 #endif
2661 #endif
2662
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668 eval "$3=yes"
2669 else
2670 eval "$3=no"
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674 eval ac_res=\$$3
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2678
2679 } # ac_fn_cxx_check_decl
2680
2681 # ac_fn_c_try_link LINENO
2682 # -----------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_c_try_link ()
2685 {
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 rm -f conftest.$ac_objext conftest$ac_exeext
2688 if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>conftest.err
2696 ac_status=$?
2697 if test -s conftest.err; then
2698 grep -v '^ *+' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 mv -f conftest.er1 conftest.err
2701 fi
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest$ac_exeext && {
2707 test "$cross_compiling" = yes ||
2708 $as_test_x conftest$ac_exeext
2709 }; then :
2710 ac_retval=0
2711 else
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 ac_retval=1
2716 fi
2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719 # interfere with the next link command; also delete a directory that is
2720 # left behind by Apple's compiler. We do this before executing the actions.
2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2724
2725 } # ac_fn_c_try_link
2726
2727 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2728 # ----------------------------------------------
2729 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2730 ac_fn_c_check_header_preproc ()
2731 {
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 #include <$2>
2741 _ACEOF
2742 if ac_fn_c_try_cpp "$LINENO"; then :
2743 eval "$3=yes"
2744 else
2745 eval "$3=no"
2746 fi
2747 rm -f conftest.err conftest.$ac_ext
2748 fi
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2753
2754 } # ac_fn_c_check_header_preproc
2755
2756 # ac_fn_c_check_func LINENO FUNC VAR
2757 # ----------------------------------
2758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2759 ac_fn_c_check_func ()
2760 {
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763 $as_echo_n "checking for $2... " >&6; }
2764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2771 #define $2 innocuous_$2
2772
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $2 (); below.
2775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 <limits.h> exists even on freestanding compilers. */
2777
2778 #ifdef __STDC__
2779 # include <limits.h>
2780 #else
2781 # include <assert.h>
2782 #endif
2783
2784 #undef $2
2785
2786 /* Override any GCC internal prototype to avoid an error.
2787 Use char because int might match the return type of a GCC
2788 builtin and then its argument prototype would still apply. */
2789 #ifdef __cplusplus
2790 extern "C"
2791 #endif
2792 char $2 ();
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined __stub_$2 || defined __stub___$2
2797 choke me
2798 #endif
2799
2800 int
2801 main ()
2802 {
2803 return $2 ();
2804 ;
2805 return 0;
2806 }
2807 _ACEOF
2808 if ac_fn_c_try_link "$LINENO"; then :
2809 eval "$3=yes"
2810 else
2811 eval "$3=no"
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext \
2814 conftest$ac_exeext conftest.$ac_ext
2815 fi
2816 eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2820
2821 } # ac_fn_c_check_func
2822 cat >config.log <<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2825
2826 It was created by $as_me, which was
2827 generated by GNU Autoconf 2.64. Invocation command line was
2828
2829 $ $0 $@
2830
2831 _ACEOF
2832 exec 5>>config.log
2833 {
2834 cat <<_ASUNAME
2835 ## --------- ##
2836 ## Platform. ##
2837 ## --------- ##
2838
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2844
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2847
2848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2855
2856 _ASUNAME
2857
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 $as_echo "PATH: $as_dir"
2864 done
2865 IFS=$as_save_IFS
2866
2867 } >&5
2868
2869 cat >&5 <<_ACEOF
2870
2871
2872 ## ----------- ##
2873 ## Core tests. ##
2874 ## ----------- ##
2875
2876 _ACEOF
2877
2878
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_configure_args=
2885 ac_configure_args0=
2886 ac_configure_args1=
2887 ac_must_keep_next=false
2888 for ac_pass in 1 2
2889 do
2890 for ac_arg
2891 do
2892 case $ac_arg in
2893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2895 | -silent | --silent | --silen | --sile | --sil)
2896 continue ;;
2897 *\'*)
2898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 esac
2900 case $ac_pass in
2901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2902 2)
2903 as_fn_append ac_configure_args1 " '$ac_arg'"
2904 if test $ac_must_keep_next = true; then
2905 ac_must_keep_next=false # Got value, back to normal.
2906 else
2907 case $ac_arg in
2908 *=* | --config-cache | -C | -disable-* | --disable-* \
2909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2911 | -with-* | --with-* | -without-* | --without-* | --x)
2912 case "$ac_configure_args0 " in
2913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2914 esac
2915 ;;
2916 -* ) ac_must_keep_next=true ;;
2917 esac
2918 fi
2919 as_fn_append ac_configure_args " '$ac_arg'"
2920 ;;
2921 esac
2922 done
2923 done
2924 { ac_configure_args0=; unset ac_configure_args0;}
2925 { ac_configure_args1=; unset ac_configure_args1;}
2926
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log. We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933 # Save into config.log some information that might help in debugging.
2934 {
2935 echo
2936
2937 cat <<\_ASBOX
2938 ## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##
2941 _ASBOX
2942 echo
2943 # The following way of writing the cache mishandles newlines in values,
2944 (
2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946 eval ac_val=\$$ac_var
2947 case $ac_val in #(
2948 *${as_nl}*)
2949 case $ac_var in #(
2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952 esac
2953 case $ac_var in #(
2954 _ | IFS | as_nl) ;; #(
2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956 *) { eval $ac_var=; unset $ac_var;} ;;
2957 esac ;;
2958 esac
2959 done
2960 (set) 2>&1 |
2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962 *${as_nl}ac_space=\ *)
2963 sed -n \
2964 "s/'\''/'\''\\\\'\'''\''/g;
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966 ;; #(
2967 *)
2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2969 ;;
2970 esac |
2971 sort
2972 )
2973 echo
2974
2975 cat <<\_ASBOX
2976 ## ----------------- ##
2977 ## Output variables. ##
2978 ## ----------------- ##
2979 _ASBOX
2980 echo
2981 for ac_var in $ac_subst_vars
2982 do
2983 eval ac_val=\$$ac_var
2984 case $ac_val in
2985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 esac
2987 $as_echo "$ac_var='\''$ac_val'\''"
2988 done | sort
2989 echo
2990
2991 if test -n "$ac_subst_files"; then
2992 cat <<\_ASBOX
2993 ## ------------------- ##
2994 ## File substitutions. ##
2995 ## ------------------- ##
2996 _ASBOX
2997 echo
2998 for ac_var in $ac_subst_files
2999 do
3000 eval ac_val=\$$ac_var
3001 case $ac_val in
3002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 esac
3004 $as_echo "$ac_var='\''$ac_val'\''"
3005 done | sort
3006 echo
3007 fi
3008
3009 if test -s confdefs.h; then
3010 cat <<\_ASBOX
3011 ## ----------- ##
3012 ## confdefs.h. ##
3013 ## ----------- ##
3014 _ASBOX
3015 echo
3016 cat confdefs.h
3017 echo
3018 fi
3019 test "$ac_signal" != 0 &&
3020 $as_echo "$as_me: caught signal $ac_signal"
3021 $as_echo "$as_me: exit $exit_status"
3022 } >&5
3023 rm -f core *.core core.conftest.* &&
3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3025 exit $exit_status
3026 ' 0
3027 for ac_signal in 1 2 13 15; do
3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3029 done
3030 ac_signal=0
3031
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest* confdefs.h
3034
3035 $as_echo "/* confdefs.h */" > confdefs.h
3036
3037 # Predefined preprocessor variables.
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3041 _ACEOF
3042
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3045 _ACEOF
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3049 _ACEOF
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3053 _ACEOF
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3057 _ACEOF
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3061 _ACEOF
3062
3063
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3066 ac_site_file1=NONE
3067 ac_site_file2=NONE
3068 if test -n "$CONFIG_SITE"; then
3069 ac_site_file1=$CONFIG_SITE
3070 elif test "x$prefix" != xNONE; then
3071 ac_site_file1=$prefix/share/config.site
3072 ac_site_file2=$prefix/etc/config.site
3073 else
3074 ac_site_file1=$ac_default_prefix/share/config.site
3075 ac_site_file2=$ac_default_prefix/etc/config.site
3076 fi
3077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3078 do
3079 test "x$ac_site_file" = xNONE && continue
3080 if test -r "$ac_site_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3083 sed 's/^/| /' "$ac_site_file" >&5
3084 . "$ac_site_file"
3085 fi
3086 done
3087
3088 if test -r "$cache_file"; then
3089 # Some versions of bash will fail to source /dev/null (special
3090 # files actually), so we avoid doing that.
3091 if test -f "$cache_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3093 $as_echo "$as_me: loading cache $cache_file" >&6;}
3094 case $cache_file in
3095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3096 *) . "./$cache_file";;
3097 esac
3098 fi
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3101 $as_echo "$as_me: creating cache $cache_file" >&6;}
3102 >$cache_file
3103 fi
3104
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3123 *)
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3153 fi
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3161 fi
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173
3174
3175
3176
3177 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3178
3179
3180 gcc_version=`cat $srcdir/BASE-VER`
3181
3182 # Determine the host, build, and target systems
3183 ac_aux_dir=
3184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3185 for ac_t in install-sh install.sh shtool; do
3186 if test -f "$ac_dir/$ac_t"; then
3187 ac_aux_dir=$ac_dir
3188 ac_install_sh="$ac_aux_dir/$ac_t -c"
3189 break 2
3190 fi
3191 done
3192 done
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3195 fi
3196
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3204
3205
3206 # Make sure we can run config.sub.
3207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3209
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3211 $as_echo_n "checking build system type... " >&6; }
3212 if test "${ac_cv_build+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_build_alias=$build_alias
3216 test "x$ac_build_alias" = x &&
3217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3218 test "x$ac_build_alias" = x &&
3219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3222
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3225 $as_echo "$ac_cv_build" >&6; }
3226 case $ac_cv_build in
3227 *-*-*) ;;
3228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3229 esac
3230 build=$ac_cv_build
3231 ac_save_IFS=$IFS; IFS='-'
3232 set x $ac_cv_build
3233 shift
3234 build_cpu=$1
3235 build_vendor=$2
3236 shift; shift
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3239 build_os=$*
3240 IFS=$ac_save_IFS
3241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3242
3243
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3245 $as_echo_n "checking host system type... " >&6; }
3246 if test "${ac_cv_host+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test "x$host_alias" = x; then
3250 ac_cv_host=$ac_cv_build
3251 else
3252 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3253 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3254 fi
3255
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3258 $as_echo "$ac_cv_host" >&6; }
3259 case $ac_cv_host in
3260 *-*-*) ;;
3261 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3262 esac
3263 host=$ac_cv_host
3264 ac_save_IFS=$IFS; IFS='-'
3265 set x $ac_cv_host
3266 shift
3267 host_cpu=$1
3268 host_vendor=$2
3269 shift; shift
3270 # Remember, the first character of IFS is used to create $*,
3271 # except with old shells:
3272 host_os=$*
3273 IFS=$ac_save_IFS
3274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3275
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3278 $as_echo_n "checking target system type... " >&6; }
3279 if test "${ac_cv_target+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test "x$target_alias" = x; then
3283 ac_cv_target=$ac_cv_host
3284 else
3285 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3286 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3287 fi
3288
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3291 $as_echo "$ac_cv_target" >&6; }
3292 case $ac_cv_target in
3293 *-*-*) ;;
3294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3295 esac
3296 target=$ac_cv_target
3297 ac_save_IFS=$IFS; IFS='-'
3298 set x $ac_cv_target
3299 shift
3300 target_cpu=$1
3301 target_vendor=$2
3302 shift; shift
3303 # Remember, the first character of IFS is used to create $*,
3304 # except with old shells:
3305 target_os=$*
3306 IFS=$ac_save_IFS
3307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3308
3309
3310 # The aliases save the names the user supplied, while $host etc.
3311 # will get canonicalized.
3312 test -n "$target_alias" &&
3313 test "$program_prefix$program_suffix$program_transform_name" = \
3314 NONENONEs,x,x, &&
3315 program_prefix=${target_alias}-
3316
3317 # Determine the noncanonical target name, for directory use.
3318 case ${build_alias} in
3319 "") build_noncanonical=${build} ;;
3320 *) build_noncanonical=${build_alias} ;;
3321 esac
3322
3323 case ${host_alias} in
3324 "") host_noncanonical=${build_noncanonical} ;;
3325 *) host_noncanonical=${host_alias} ;;
3326 esac
3327
3328 case ${target_alias} in
3329 "") target_noncanonical=${host_noncanonical} ;;
3330 *) target_noncanonical=${target_alias} ;;
3331 esac
3332
3333
3334
3335
3336 # Used for constructing correct paths for offload compilers.
3337 real_target_noncanonical=${target_noncanonical}
3338 accel_dir_suffix=
3339
3340 # Determine the target- and build-specific subdirectories
3341
3342 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3343 # have matching libraries, they should use host libraries: Makefile.tpl
3344 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3345 # However, they still use the build modules, because the corresponding
3346 # host modules (e.g. bison) are only built for the host when bootstrap
3347 # finishes. So:
3348 # - build_subdir is where we find build modules, and never changes.
3349 # - build_libsubdir is where we find build libraries, and can be overridden.
3350
3351 # Prefix 'build-' so this never conflicts with target_subdir.
3352 build_subdir="build-${build_noncanonical}"
3353
3354 # Check whether --with-build-libsubdir was given.
3355 if test "${with_build_libsubdir+set}" = set; then :
3356 withval=$with_build_libsubdir; build_libsubdir="$withval"
3357 else
3358 build_libsubdir="$build_subdir"
3359 fi
3360
3361 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3362 if ( test $srcdir = . && test -d gcc ) \
3363 || test -d $srcdir/../host-${host_noncanonical}; then
3364 host_subdir="host-${host_noncanonical}"
3365 else
3366 host_subdir=.
3367 fi
3368 # No prefix.
3369 target_subdir=${target_noncanonical}
3370
3371
3372 # Set program_transform_name
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3382
3383
3384 # Check for bogus environment variables.
3385 # Test if LIBRARY_PATH contains the notation for the current directory
3386 # since this would lead to problems installing/building glibc.
3387 # LIBRARY_PATH contains the current directory if one of the following
3388 # is true:
3389 # - one of the terminals (":" and ";") is the first or last sign
3390 # - two terminals occur directly after each other
3391 # - the path contains an element with a dot in it
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3393 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3394 case ${LIBRARY_PATH} in
3395 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3396 library_path_setting="contains current directory"
3397 ;;
3398 *)
3399 library_path_setting="ok"
3400 ;;
3401 esac
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3403 $as_echo "$library_path_setting" >&6; }
3404 if test "$library_path_setting" != "ok"; then
3405 as_fn_error "
3406 *** LIBRARY_PATH shouldn't contain the current directory when
3407 *** building gcc. Please change the environment variable
3408 *** and run configure again." "$LINENO" 5
3409 fi
3410
3411 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3412 # since this would lead to problems installing/building glibc.
3413 # GCC_EXEC_PREFIX contains the current directory if one of the following
3414 # is true:
3415 # - one of the terminals (":" and ";") is the first or last sign
3416 # - two terminals occur directly after each other
3417 # - the path contains an element with a dot in it
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3419 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3420 case ${GCC_EXEC_PREFIX} in
3421 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3422 gcc_exec_prefix_setting="contains current directory"
3423 ;;
3424 *)
3425 gcc_exec_prefix_setting="ok"
3426 ;;
3427 esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3429 $as_echo "$gcc_exec_prefix_setting" >&6; }
3430 if test "$gcc_exec_prefix_setting" != "ok"; then
3431 as_fn_error "
3432 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3433 *** building gcc. Please change the environment variable
3434 *** and run configure again." "$LINENO" 5
3435 fi
3436
3437 # -----------
3438 # Directories
3439 # -----------
3440
3441 # Specify the local prefix
3442 local_prefix=
3443
3444 # Check whether --with-local-prefix was given.
3445 if test "${with_local_prefix+set}" = set; then :
3446 withval=$with_local_prefix; case "${withval}" in
3447 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3448 no) ;;
3449 *) local_prefix=$with_local_prefix ;;
3450 esac
3451 fi
3452
3453
3454 # Default local prefix if it is empty
3455 if test x$local_prefix = x; then
3456 local_prefix=/usr/local
3457 fi
3458
3459
3460 # Check whether --with-native-system-header-dir was given.
3461 if test "${with_native_system_header_dir+set}" = set; then :
3462 withval=$with_native_system_header_dir;
3463 case ${with_native_system_header_dir} in
3464 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3465 /* | [A-Za-z]:[\\/]*) ;;
3466 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3467 esac
3468 configured_native_system_header_dir="${withval}"
3469
3470 else
3471 configured_native_system_header_dir=
3472 fi
3473
3474
3475
3476 # Check whether --with-build-sysroot was given.
3477 if test "${with_build_sysroot+set}" = set; then :
3478 withval=$with_build_sysroot; if test x"$withval" != x ; then
3479 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3480 fi
3481 else
3482 SYSROOT_CFLAGS_FOR_TARGET=
3483 fi
3484
3485
3486
3487 if test "x$prefix" = xNONE; then
3488 test_prefix=/usr/local
3489 else
3490 test_prefix=$prefix
3491 fi
3492 if test "x$exec_prefix" = xNONE; then
3493 test_exec_prefix=$test_prefix
3494 else
3495 test_exec_prefix=$exec_prefix
3496 fi
3497
3498
3499 # Check whether --with-sysroot was given.
3500 if test "${with_sysroot+set}" = set; then :
3501 withval=$with_sysroot;
3502 case ${with_sysroot} in
3503 /) ;;
3504 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3505 esac
3506 case ${with_sysroot} in
3507 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3508 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3509 esac
3510
3511 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3512 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3513
3514 case ${TARGET_SYSTEM_ROOT} in
3515 "${test_prefix}"|"${test_prefix}/"*|\
3516 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3517 '${prefix}'|'${prefix}/'*|\
3518 '${exec_prefix}'|'${exec_prefix}/'*)
3519 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3520 TARGET_SYSTEM_ROOT_DEFINE="$t"
3521 ;;
3522 esac
3523
3524 else
3525
3526 TARGET_SYSTEM_ROOT=
3527 TARGET_SYSTEM_ROOT_DEFINE=
3528 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3529
3530 fi
3531
3532
3533
3534
3535
3536 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3537 # passed in by the toplevel make and thus we'd get different behavior
3538 # depending on where we built the sources.
3539 gcc_gxx_include_dir=
3540 # Specify the g++ header file directory
3541
3542 # Check whether --with-gxx-include-dir was given.
3543 if test "${with_gxx_include_dir+set}" = set; then :
3544 withval=$with_gxx_include_dir; case "${withval}" in
3545 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3546 no) ;;
3547 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3548 esac
3549 fi
3550
3551
3552 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3553 if test x${gcc_gxx_include_dir} = x; then
3554 if test x${enable_version_specific_runtime_libs} = xyes; then
3555 gcc_gxx_include_dir='${libsubdir}/include/c++'
3556 else
3557 libstdcxx_incdir='include/c++/$(version)'
3558 if test x$host != x$target; then
3559 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3560 fi
3561 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3562 fi
3563 fi
3564
3565 gcc_gxx_include_dir_add_sysroot=0
3566 if test "${with_sysroot+set}" = set; then
3567 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3568 if test "${gcc_gxx_without_sysroot}"; then
3569 if test x${with_sysroot} != x/; then
3570 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3571 fi
3572 gcc_gxx_include_dir_add_sysroot=1
3573 fi
3574 fi
3575
3576
3577 # Check whether --with-cpp_install_dir was given.
3578 if test "${with_cpp_install_dir+set}" = set; then :
3579 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3580 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3581 elif test x$withval != xno; then
3582 cpp_install_dir=$withval
3583 fi
3584 fi
3585
3586
3587 # We would like to our source tree to be readonly. However when releases or
3588 # pre-releases are generated, the flex/bison generated files as well as the
3589 # various formats of manuals need to be included along with the rest of the
3590 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3591 # just that.
3592
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3594 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3595 # Check whether --enable-generated-files-in-srcdir was given.
3596 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3597 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3598 else
3599 generated_files_in_srcdir=no
3600 fi
3601
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3604 $as_echo "$generated_files_in_srcdir" >&6; }
3605
3606 if test "$generated_files_in_srcdir" = "yes"; then
3607 GENINSRC=''
3608 else
3609 GENINSRC='#'
3610 fi
3611
3612
3613 # -------------------
3614 # Find default linker
3615 # -------------------
3616
3617 # With GNU ld
3618
3619 # Check whether --with-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then :
3621 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3622 else
3623 gnu_ld_flag=no
3624 fi
3625
3626
3627 # With pre-defined ld
3628
3629 # Check whether --with-ld was given.
3630 if test "${with_ld+set}" = set; then :
3631 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3632 fi
3633
3634 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3635 if test ! -x "$DEFAULT_LINKER"; then
3636 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3637 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3638 gnu_ld_flag=yes
3639 fi
3640
3641 cat >>confdefs.h <<_ACEOF
3642 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3643 _ACEOF
3644
3645 fi
3646
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3648 $as_echo_n "checking whether a default linker was specified... " >&6; }
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test x"$gnu_ld_flag" = x"no"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3652 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3656 fi
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662 # With demangler in GNU ld
3663
3664 # Check whether --with-demangler-in-ld was given.
3665 if test "${with_demangler_in_ld+set}" = set; then :
3666 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3667 else
3668 demangler_in_ld=yes
3669 fi
3670
3671
3672 # ----------------------
3673 # Find default assembler
3674 # ----------------------
3675
3676 # With GNU as
3677
3678 # Check whether --with-gnu-as was given.
3679 if test "${with_gnu_as+set}" = set; then :
3680 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3681 else
3682 gas_flag=no
3683 fi
3684
3685
3686
3687 # Check whether --with-as was given.
3688 if test "${with_as+set}" = set; then :
3689 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3690 fi
3691
3692 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3693 if test ! -x "$DEFAULT_ASSEMBLER"; then
3694 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3695 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3696 gas_flag=yes
3697 fi
3698
3699 cat >>confdefs.h <<_ACEOF
3700 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3701 _ACEOF
3702
3703 fi
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3706 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test x"$gas_flag" = x"no"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3710 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3714 fi
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 fi
3719
3720 # ---------------
3721 # Find C compiler
3722 # ---------------
3723
3724 # If a non-executable a.out is present (e.g. created by GNU as above even if
3725 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3726 # file, even when creating an executable, so an execution test fails.
3727 # Remove possible default executable files to avoid this.
3728 #
3729 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3730 # Autoconf includes it.
3731 rm -f a.out a.exe b.out
3732
3733 # Find the native compiler
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3826 fi
3827 else
3828 CC="$ac_cv_prog_CC"
3829 fi
3830
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 fi
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3893 continue
3894 fi
3895 ac_cv_prog_CC="cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3906 shift
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3911 shift
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3913 fi
3914 fi
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953 done
3954 done
3955 IFS=$as_save_IFS
3956
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969 test -n "$CC" && break
3970 done
3971 fi
3972 if test -z "$CC"; then
3973 ac_ct_CC=$CC
3974 for ac_prog in cl.exe
3975 do
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 test -n "$ac_ct_CC" && break
4014 done
4015
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4026 fi
4027 fi
4028
4029 fi
4030
4031
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details." "$LINENO" 5; }
4036
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 ac_status=$?
4051 if test -s conftest.err; then
4052 sed '10a\
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4057 fi
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 done
4061
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4077 # of exeext.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4081
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4084
4085 ac_rmfiles=
4086 for ac_file in $ac_files
4087 do
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091 esac
4092 done
4093 rm -f $ac_rmfiles
4094
4095 if { { ac_try="$ac_link_default"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4110 # Autoconf.
4111 for ac_file in $ac_files ''
4112 do
4113 test -f "$ac_file" || continue
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4116 ;;
4117 [ab].out )
4118 # We found the default executable, but exeext='' is most
4119 # certainly right.
4120 break;;
4121 *.* )
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123 then :; else
4124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125 fi
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4130 # actually working.
4131 break;;
4132 * )
4133 break;;
4134 esac
4135 done
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4137
4138 else
4139 ac_file=''
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 $as_echo "$ac_file" >&6; }
4143 if test -z "$ac_file"; then :
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { as_fn_set_status 77
4150 as_fn_error "C compiler cannot create executables
4151 See \`config.log' for more details." "$LINENO" 5; }; }
4152 fi
4153 ac_exeext=$ac_cv_exeext
4154
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4158 $as_echo_n "checking whether the C compiler works... " >&6; }
4159 # If not cross compiling, check that we can run a simple program.
4160 if test "$cross_compiling" != yes; then
4161 if { ac_try='./$ac_file'
4162 { { case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }; }; then
4172 cross_compiling=no
4173 else
4174 if test "$cross_compiling" = maybe; then
4175 cross_compiling=yes
4176 else
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error "cannot run C compiled programs.
4180 If you meant to cross compile, use \`--host'.
4181 See \`config.log' for more details." "$LINENO" 5; }
4182 fi
4183 fi
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186 $as_echo "yes" >&6; }
4187
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4189 ac_clean_files=$ac_clean_files_save
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4195 $as_echo "$cross_compiling" >&6; }
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4198 $as_echo_n "checking for suffix of executables... " >&6; }
4199 if { { ac_try="$ac_link"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_link") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4212 # work properly (i.e., refer to `conftest.exe'), while it won't with
4213 # `rm'.
4214 for ac_file in conftest.exe conftest conftest.*; do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 break;;
4220 * ) break;;
4221 esac
4222 done
4223 else
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot compute suffix of executables: cannot compile and link
4227 See \`config.log' for more details." "$LINENO" 5; }
4228 fi
4229 rm -f conftest$ac_cv_exeext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4231 $as_echo "$ac_cv_exeext" >&6; }
4232
4233 rm -f conftest.$ac_ext
4234 EXEEXT=$ac_cv_exeext
4235 ac_exeext=$EXEEXT
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237 $as_echo_n "checking for suffix of object files... " >&6; }
4238 if test "${ac_cv_objext+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243
4244 int
4245 main ()
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271 done
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error "cannot compute suffix of object files: cannot compile
4279 See \`config.log' for more details." "$LINENO" 5; }
4280 fi
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284 $as_echo "$ac_cv_objext" >&6; }
4285 OBJEXT=$ac_cv_objext
4286 ac_objext=$OBJEXT
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GCC=yes
4319 else
4320 GCC=
4321 fi
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cc_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_prog_cc_g=yes
4346 else
4347 CFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360
4361 else
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386 $as_echo "$ac_cv_prog_cc_g" >&6; }
4387 if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389 elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4391 CFLAGS="-g -O2"
4392 else
4393 CFLAGS="-g"
4394 fi
4395 else
4396 if test "$GCC" = yes; then
4397 CFLAGS="-O2"
4398 else
4399 CFLAGS=
4400 fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_cv_prog_cc_c89=no
4408 ac_save_CC=$CC
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <stdarg.h>
4412 #include <stdio.h>
4413 #include <sys/types.h>
4414 #include <sys/stat.h>
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4419 char **p;
4420 int i;
4421 {
4422 return p[i];
4423 }
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4425 {
4426 char *s;
4427 va_list v;
4428 va_start (v,p);
4429 s = g (p, va_arg (v,int));
4430 va_end (v);
4431 return s;
4432 }
4433
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4442
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4445 #define FOO(x) 'x'
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4447
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452 int argc;
4453 char **argv;
4454 int
4455 main ()
4456 {
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464 do
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4474
4475 fi
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c89" in
4478 x)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481 xno)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4484 *)
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4490
4491 fi
4492
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499 ac_ext=cpp
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4510 do
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CXX+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 test -n "$CXX" && break
4549 done
4550 fi
4551 if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 do
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$ac_ct_CXX" && break
4593 done
4594
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CXX=$ac_ct_CXX
4605 fi
4606 fi
4607
4608 fi
4609 fi
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612 set X $ac_compile
4613 ac_compiler=$2
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4630 fi
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 done
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 int
4644 main ()
4645 {
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656 else
4657 ac_compiler_gnu=no
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4669 fi
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 int
4685 main ()
4686 {
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708
4709 else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4742 fi
4743 else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4748 fi
4749 fi
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757
4758
4759 if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 GNATBIND=$ac_cv_prog_GNATBIND
4788 if test -n "$GNATBIND"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790 $as_echo "$GNATBIND" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797 fi
4798 if test -z "$ac_cv_prog_GNATBIND"; then
4799 ac_ct_GNATBIND=$GNATBIND
4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801 set dummy gnatbind; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828 if test -n "$ac_ct_GNATBIND"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830 $as_echo "$ac_ct_GNATBIND" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836 if test "x$ac_ct_GNATBIND" = x; then
4837 GNATBIND="no"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845 GNATBIND=$ac_ct_GNATBIND
4846 fi
4847 else
4848 GNATBIND="$ac_cv_prog_GNATBIND"
4849 fi
4850
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 GNATMAKE=$ac_cv_prog_GNATMAKE
4880 if test -n "$GNATMAKE"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882 $as_echo "$GNATMAKE" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_GNATMAKE"; then
4891 ac_ct_GNATMAKE=$GNATMAKE
4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893 set dummy gnatmake; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920 if test -n "$ac_ct_GNATMAKE"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922 $as_echo "$ac_ct_GNATMAKE" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928 if test "x$ac_ct_GNATMAKE" = x; then
4929 GNATMAKE="no"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 GNATMAKE=$ac_ct_GNATMAKE
4938 fi
4939 else
4940 GNATMAKE="$ac_cv_prog_GNATMAKE"
4941 fi
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat >conftest.adb <<EOF
4949 procedure conftest is begin null; end conftest;
4950 EOF
4951 acx_cv_cc_gcc_supports_ada=no
4952 # There is a bug in old released versions of GCC which causes the
4953 # driver to exit successfully when the appropriate language module
4954 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955 # Therefore we must check for the error message as well as an
4956 # unsuccessful exit.
4957 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958 # given a .adb file, but produce no object file. So we must check
4959 # if an object file was really produced to guard against this.
4960 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4961 if test x"$errors" = x && test -f conftest.$ac_objext; then
4962 acx_cv_cc_gcc_supports_ada=yes
4963 fi
4964 rm -f conftest.*
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4968
4969 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4970 have_gnat=yes
4971 else
4972 have_gnat=no
4973 fi
4974
4975
4976 # Do configure tests with the C++ compiler, since that's what we build with.
4977 ac_ext=cpp
4978 ac_cpp='$CXXCPP $CPPFLAGS'
4979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4982
4983
4984 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4985 # optimizations to be activated explicitly by the toplevel.
4986 case "$CC" in
4987 */prev-gcc/xgcc*) ;;
4988 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4989 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4990 esac
4991
4992
4993
4994 # Determine PICFLAG for target gnatlib.
4995
4996
4997
4998
4999 case "${target}" in
5000 # PIC is the default on some targets or must not be used.
5001 *-*-darwin*)
5002 # For darwin, common symbols are not allowed in MH_DYLIB files
5003 case "${CFLAGS}" in
5004 # If we are using a compiler supporting mdynamic-no-pic
5005 # and the option has been tested as safe to add, then cancel
5006 # it here, since the code generated is incompatible with shared
5007 # libs.
5008 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5009 *) PICFLAG_FOR_TARGET=-fno-common ;;
5010 esac
5011 ;;
5012 alpha*-dec-osf5*)
5013 # PIC is the default.
5014 ;;
5015 hppa*64*-*-hpux*)
5016 # PIC is the default for 64-bit PA HP-UX.
5017 ;;
5018 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5019 ;;
5020 i[34567]86-*-mingw* | x86_64-*-mingw*)
5021 ;;
5022 i[34567]86-*-interix[3-9]*)
5023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5024 # Instead, we relocate shared libraries at runtime.
5025 ;;
5026 i[34567]86-*-nto-qnx*)
5027 # QNX uses GNU C++, but need to define -shared option too, otherwise
5028 # it will coredump.
5029 PICFLAG_FOR_TARGET='-fPIC -shared'
5030 ;;
5031 i[34567]86-pc-msdosdjgpp*)
5032 # DJGPP does not support shared libraries at all.
5033 ;;
5034 ia64*-*-hpux*)
5035 # On IA64 HP-UX, PIC is the default but the pic flag
5036 # sets the default TLS model and affects inlining.
5037 PICFLAG_FOR_TARGET=-fPIC
5038 ;;
5039 mips-sgi-irix6*)
5040 # PIC is the default.
5041 ;;
5042 rs6000-ibm-aix* | powerpc-ibm-aix*)
5043 # All AIX code is PIC.
5044 ;;
5045
5046 # Some targets support both -fPIC and -fpic, but prefer the latter.
5047 # FIXME: Why?
5048 i[34567]86-*-* | x86_64-*-*)
5049 PICFLAG_FOR_TARGET=-fpic
5050 ;;
5051 # FIXME: Override -fPIC default in libgcc only?
5052 sh-*-linux* | sh[2346lbe]*-*-linux*)
5053 PICFLAG_FOR_TARGET=-fpic
5054 ;;
5055 # FIXME: Simplify to sh*-*-netbsd*?
5056 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5057 sh64-*-netbsd* | sh64l*-*-netbsd*)
5058 PICFLAG_FOR_TARGET=-fpic
5059 ;;
5060 # Default to -fPIC unless specified otherwise.
5061 *)
5062 PICFLAG_FOR_TARGET=-fPIC
5063 ;;
5064 esac
5065
5066 # If the user explicitly uses -fpic/-fPIC, keep that.
5067 case "${CFLAGS_FOR_TARGET}" in
5068 *-fpic*)
5069 PICFLAG_FOR_TARGET=-fpic
5070 ;;
5071 *-fPIC*)
5072 PICFLAG_FOR_TARGET=-fPIC
5073 ;;
5074 esac
5075
5076
5077
5078 # -------------------------
5079 # Check C compiler features
5080 # -------------------------
5081
5082
5083 ac_ext=cpp
5084 ac_cpp='$CXXCPP $CPPFLAGS'
5085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5090 if test -z "$CXXCPP"; then
5091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 # Double quotes because CXXCPP needs to be expanded
5095 for CXXCPP in "$CXX -E" "/lib/cpp"
5096 do
5097 ac_preproc_ok=false
5098 for ac_cxx_preproc_warn_flag in '' yes
5099 do
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if ac_fn_cxx_try_cpp "$LINENO"; then :
5116
5117 else
5118 # Broken: fails on valid input.
5119 continue
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if ac_fn_cxx_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5131 continue
5132 else
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5143 break
5144 fi
5145
5146 done
5147 ac_cv_prog_CXXCPP=$CXXCPP
5148
5149 fi
5150 CXXCPP=$ac_cv_prog_CXXCPP
5151 else
5152 ac_cv_prog_CXXCPP=$CXXCPP
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5155 $as_echo "$CXXCPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_cxx_preproc_warn_flag in '' yes
5158 do
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172 Syntax error
5173 _ACEOF
5174 if ac_fn_cxx_try_cpp "$LINENO"; then :
5175
5176 else
5177 # Broken: fails on valid input.
5178 continue
5179 fi
5180 rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if ac_fn_cxx_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5190 continue
5191 else
5192 # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5195 fi
5196 rm -f conftest.err conftest.$ac_ext
5197
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5202
5203 else
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5208 fi
5209
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5237 *GNU*)
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5239 *)
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5243 do
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5255 fi
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5261
5262 $ac_path_GREP_found && break 3
5263 done
5264 done
5265 done
5266 IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269 fi
5270 else
5271 ac_cv_path_GREP=$GREP
5272 fi
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5287 else
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293 do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5303 *GNU*)
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5305 *)
5306 ac_count=0
5307 $as_echo_n 0123456789 >"conftest.in"
5308 while :
5309 do
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5321 fi
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5324 done
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326 esac
5327
5328 $ac_path_EGREP_found && break 3
5329 done
5330 done
5331 done
5332 IFS=$as_save_IFS
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5335 fi
5336 else
5337 ac_cv_path_EGREP=$EGREP
5338 fi
5339
5340 fi
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5358
5359 int
5360 main ()
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_cxx_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5369 else
5370 ac_cv_header_stdc=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <string.h>
5379
5380 _ACEOF
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5383
5384 else
5385 ac_cv_header_stdc=no
5386 fi
5387 rm -f conftest*
5388
5389 fi
5390
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <stdlib.h>
5396
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev/null 2>&1; then :
5400
5401 else
5402 ac_cv_header_stdc=no
5403 fi
5404 rm -f conftest*
5405
5406 fi
5407
5408 if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5411 :
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <ctype.h>
5416 #include <stdlib.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5427
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5429 int
5430 main ()
5431 {
5432 int i;
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5436 return 2;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_cxx_try_run "$LINENO"; then :
5441
5442 else
5443 ac_cv_header_stdc=no
5444 fi
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5447 fi
5448
5449 fi
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5454
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5456
5457 fi
5458
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5462 do :
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5465 "
5466 eval as_val=\$$as_ac_Header
5467 if test "x$as_val" = x""yes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5471
5472 fi
5473
5474 done
5475
5476
5477
5478 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5480 MINIX=yes
5481 else
5482 MINIX=
5483 fi
5484
5485
5486 if test "$MINIX" = yes; then
5487
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5489
5490
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5492
5493
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5495
5496 fi
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506
5507 # define __EXTENSIONS__ 1
5508 $ac_includes_default
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_cxx_try_compile "$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__=yes
5519 else
5520 ac_cv_safe_to_define___extensions__=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5528
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5530
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5532
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5534
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5536
5537
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5548 fi
5549 if test -z "$CPP"; then
5550 if test "${ac_cv_prog_CPP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5555 do
5556 ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5558 do
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5572 Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5575
5576 else
5577 # Broken: fails on valid input.
5578 continue
5579 fi
5580 rm -f conftest.err conftest.$ac_ext
5581
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5589 # Broken: success on invalid input.
5590 continue
5591 else
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5595 fi
5596 rm -f conftest.err conftest.$ac_ext
5597
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then :
5602 break
5603 fi
5604
5605 done
5606 ac_cv_prog_CPP=$CPP
5607
5608 fi
5609 CPP=$ac_cv_prog_CPP
5610 else
5611 ac_cv_prog_CPP=$CPP
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5614 $as_echo "$CPP" >&6; }
5615 ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5617 do
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631 Syntax error
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5634
5635 else
5636 # Broken: fails on valid input.
5637 continue
5638 fi
5639 rm -f conftest.err conftest.$ac_ext
5640
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5654 fi
5655 rm -f conftest.err conftest.$ac_ext
5656
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5661
5662 else
5663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." "$LINENO" 5; }
5667 fi
5668
5669 ac_ext=cpp
5670 ac_cpp='$CXXCPP $CPPFLAGS'
5671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5676 $as_echo_n "checking for inline... " >&6; }
5677 if test "${ac_cv_c_inline+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_cv_c_inline=no
5681 for ac_kw in inline __inline__ __inline; do
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #ifndef __cplusplus
5685 typedef int foo_t;
5686 static $ac_kw foo_t static_foo () {return 0; }
5687 $ac_kw foo_t foo () {return 0; }
5688 #endif
5689
5690 _ACEOF
5691 if ac_fn_cxx_try_compile "$LINENO"; then :
5692 ac_cv_c_inline=$ac_kw
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 test "$ac_cv_c_inline" != no && break
5696 done
5697
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5700 $as_echo "$ac_cv_c_inline" >&6; }
5701
5702 case $ac_cv_c_inline in
5703 inline | yes) ;;
5704 *)
5705 case $ac_cv_c_inline in
5706 no) ac_val=;;
5707 *) ac_val=$ac_cv_c_inline;;
5708 esac
5709 cat >>confdefs.h <<_ACEOF
5710 #ifndef __cplusplus
5711 #define inline $ac_val
5712 #endif
5713 _ACEOF
5714 ;;
5715 esac
5716
5717
5718 # Check whether --enable-largefile was given.
5719 if test "${enable_largefile+set}" = set; then :
5720 enableval=$enable_largefile;
5721 fi
5722
5723 if test "$enable_largefile" != no; then
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5726 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5727 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_cv_sys_largefile_CC=no
5731 if test "$GCC" != yes; then
5732 ac_save_CC=$CC
5733 while :; do
5734 # IRIX 6.2 and later do not support large files by default,
5735 # so use the C compiler's -n32 option if that helps.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_cxx_try_compile "$LINENO"; then :
5756 break
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext
5759 CC="$CC -n32"
5760 if ac_fn_cxx_try_compile "$LINENO"; then :
5761 ac_cv_sys_largefile_CC=' -n32'; break
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext
5764 break
5765 done
5766 CC=$ac_save_CC
5767 rm -f conftest.$ac_ext
5768 fi
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no; then
5773 CC=$CC$ac_cv_sys_largefile_CC
5774 fi
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 while :; do
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5785 /* Check that off_t can represent 2**63 - 1 correctly.
5786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787 since some C++ compilers masquerading as C compilers
5788 incorrectly reject 9223372036854775807. */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791 && LARGE_OFF_T % 2147483647 == 1)
5792 ? 1 : -1];
5793 int
5794 main ()
5795 {
5796
5797 ;
5798 return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_sys_file_offset_bits=no; break
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #define _FILE_OFFSET_BITS 64
5808 #include <sys/types.h>
5809 /* Check that off_t can represent 2**63 - 1 correctly.
5810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5811 since some C++ compilers masquerading as C compilers
5812 incorrectly reject 9223372036854775807. */
5813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5815 && LARGE_OFF_T % 2147483647 == 1)
5816 ? 1 : -1];
5817 int
5818 main ()
5819 {
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_cxx_try_compile "$LINENO"; then :
5826 ac_cv_sys_file_offset_bits=64; break
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_cv_sys_file_offset_bits=unknown
5830 break
5831 done
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5834 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5835 case $ac_cv_sys_file_offset_bits in #(
5836 no | unknown) ;;
5837 *)
5838 cat >>confdefs.h <<_ACEOF
5839 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5840 _ACEOF
5841 ;;
5842 esac
5843 rm -rf conftest*
5844 if test $ac_cv_sys_file_offset_bits = unknown; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5846 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5847 if test "${ac_cv_sys_large_files+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 while :; do
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5861 ? 1 : -1];
5862 int
5863 main ()
5864 {
5865
5866 ;
5867 return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_sys_large_files=no; break
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #define _LARGE_FILES 1
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5885 ? 1 : -1];
5886 int
5887 main ()
5888 {
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_cxx_try_compile "$LINENO"; then :
5895 ac_cv_sys_large_files=1; break
5896 fi
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ac_cv_sys_large_files=unknown
5899 break
5900 done
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5903 $as_echo "$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5905 no | unknown) ;;
5906 *)
5907 cat >>confdefs.h <<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5909 _ACEOF
5910 ;;
5911 esac
5912 rm -rf conftest*
5913 fi
5914 fi
5915
5916
5917 # sizeof(char) is 1 by definition.
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5923 $as_echo_n "checking size of void *... " >&6; }
5924 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5928
5929 else
5930 if test "$ac_cv_type_void_p" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status 77
5934 as_fn_error "cannot compute sizeof (void *)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5936 else
5937 ac_cv_sizeof_void_p=0
5938 fi
5939 fi
5940
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5943 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5944
5945
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5949 _ACEOF
5950
5951
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5957 $as_echo_n "checking size of short... " >&6; }
5958 if test "${ac_cv_sizeof_short+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5962
5963 else
5964 if test "$ac_cv_type_short" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (short)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970 else
5971 ac_cv_sizeof_short=0
5972 fi
5973 fi
5974
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5977 $as_echo "$ac_cv_sizeof_short" >&6; }
5978
5979
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_SHORT $ac_cv_sizeof_short
5983 _ACEOF
5984
5985
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5991 $as_echo_n "checking size of int... " >&6; }
5992 if test "${ac_cv_sizeof_int+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5996
5997 else
5998 if test "$ac_cv_type_int" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (int)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6004 else
6005 ac_cv_sizeof_int=0
6006 fi
6007 fi
6008
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6011 $as_echo "$ac_cv_sizeof_int" >&6; }
6012
6013
6014
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF_INT $ac_cv_sizeof_int
6017 _ACEOF
6018
6019
6020 # The cast to long int works around a bug in the HP C Compiler
6021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6023 # This bug is HP SR number 8606223364.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6025 $as_echo_n "checking size of long... " >&6; }
6026 if test "${ac_cv_sizeof_long+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6030
6031 else
6032 if test "$ac_cv_type_long" = yes; then
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 { as_fn_set_status 77
6036 as_fn_error "cannot compute sizeof (long)
6037 See \`config.log' for more details." "$LINENO" 5; }; }
6038 else
6039 ac_cv_sizeof_long=0
6040 fi
6041 fi
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6045 $as_echo "$ac_cv_sizeof_long" >&6; }
6046
6047
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define SIZEOF_LONG $ac_cv_sizeof_long
6051 _ACEOF
6052
6053
6054 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6055 if test "x$ac_cv_type_long_long" = x""yes; then :
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LONG_LONG 1
6059 _ACEOF
6060
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6066 $as_echo_n "checking size of long long... " >&6; }
6067 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6071
6072 else
6073 if test "$ac_cv_type_long_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status 77
6077 as_fn_error "cannot compute sizeof (long long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6079 else
6080 ac_cv_sizeof_long_long=0
6081 fi
6082 fi
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6086 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6087
6088
6089
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6092 _ACEOF
6093
6094
6095 fi
6096
6097 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6098 case $ac_cv_c_int8_t in #(
6099 no|yes) ;; #(
6100 *)
6101
6102 cat >>confdefs.h <<_ACEOF
6103 #define int8_t $ac_cv_c_int8_t
6104 _ACEOF
6105 ;;
6106 esac
6107
6108 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6109 case $ac_cv_c_int16_t in #(
6110 no|yes) ;; #(
6111 *)
6112
6113 cat >>confdefs.h <<_ACEOF
6114 #define int16_t $ac_cv_c_int16_t
6115 _ACEOF
6116 ;;
6117 esac
6118
6119 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6120 case $ac_cv_c_int32_t in #(
6121 no|yes) ;; #(
6122 *)
6123
6124 cat >>confdefs.h <<_ACEOF
6125 #define int32_t $ac_cv_c_int32_t
6126 _ACEOF
6127 ;;
6128 esac
6129
6130 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6131 case $ac_cv_c_int64_t in #(
6132 no|yes) ;; #(
6133 *)
6134
6135 cat >>confdefs.h <<_ACEOF
6136 #define int64_t $ac_cv_c_int64_t
6137 _ACEOF
6138 ;;
6139 esac
6140
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6143 $as_echo_n "checking for long long int... " >&6; }
6144 if test "${ac_cv_type_long_long_int+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149
6150 /* For now, do not test the preprocessor; as of 2007 there are too many
6151 implementations with broken preprocessors. Perhaps this can
6152 be revisited in 2012. In the meantime, code should not expect
6153 #if to work with literals wider than 32 bits. */
6154 /* Test literals. */
6155 long long int ll = 9223372036854775807ll;
6156 long long int nll = -9223372036854775807LL;
6157 unsigned long long int ull = 18446744073709551615ULL;
6158 /* Test constant expressions. */
6159 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6160 ? 1 : -1)];
6161 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6162 ? 1 : -1)];
6163 int i = 63;
6164 int
6165 main ()
6166 {
6167 /* Test availability of runtime routines for shift and division. */
6168 long long int llmax = 9223372036854775807ll;
6169 unsigned long long int ullmax = 18446744073709551615ull;
6170 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6171 | (llmax / ll) | (llmax % ll)
6172 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6173 | (ullmax / ull) | (ullmax % ull));
6174 ;
6175 return 0;
6176 }
6177
6178 _ACEOF
6179 if ac_fn_cxx_try_link "$LINENO"; then :
6180 if test "$cross_compiling" = yes; then :
6181 ac_cv_type_long_long_int=yes
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <limits.h>
6186 #ifndef LLONG_MAX
6187 # define HALF \
6188 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6189 # define LLONG_MAX (HALF - 1 + HALF)
6190 #endif
6191 int
6192 main ()
6193 {
6194 long long int n = 1;
6195 int i;
6196 for (i = 0; ; i++)
6197 {
6198 long long int m = n << i;
6199 if (m >> i != n)
6200 return 1;
6201 if (LLONG_MAX / 2 < m)
6202 break;
6203 }
6204 return 0;
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 if ac_fn_cxx_try_run "$LINENO"; then :
6210 ac_cv_type_long_long_int=yes
6211 else
6212 ac_cv_type_long_long_int=no
6213 fi
6214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6215 conftest.$ac_objext conftest.beam conftest.$ac_ext
6216 fi
6217
6218 else
6219 ac_cv_type_long_long_int=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6225 $as_echo "$ac_cv_type_long_long_int" >&6; }
6226 if test $ac_cv_type_long_long_int = yes; then
6227
6228 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6229
6230 fi
6231
6232
6233
6234 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6236
6237 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6238
6239 else
6240 test $ac_cv_type_long_long_int = yes \
6241 && ac_type='long long int' \
6242 || ac_type='long int'
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define intmax_t $ac_type
6246 _ACEOF
6247
6248 fi
6249
6250
6251
6252 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6254
6255 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6256
6257 else
6258 for ac_type in 'int' 'long int' 'long long int'; do
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 int
6263 main ()
6264 {
6265 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6266 test_array [0] = 0
6267
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 if ac_fn_cxx_try_compile "$LINENO"; then :
6273
6274 cat >>confdefs.h <<_ACEOF
6275 #define intptr_t $ac_type
6276 _ACEOF
6277
6278 ac_type=
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 test -z "$ac_type" && break
6282 done
6283 fi
6284
6285
6286 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6287 case $ac_cv_c_uint8_t in #(
6288 no|yes) ;; #(
6289 *)
6290
6291 $as_echo "#define _UINT8_T 1" >>confdefs.h
6292
6293
6294 cat >>confdefs.h <<_ACEOF
6295 #define uint8_t $ac_cv_c_uint8_t
6296 _ACEOF
6297 ;;
6298 esac
6299
6300 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6301 case $ac_cv_c_uint16_t in #(
6302 no|yes) ;; #(
6303 *)
6304
6305
6306 cat >>confdefs.h <<_ACEOF
6307 #define uint16_t $ac_cv_c_uint16_t
6308 _ACEOF
6309 ;;
6310 esac
6311
6312 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6313 case $ac_cv_c_uint32_t in #(
6314 no|yes) ;; #(
6315 *)
6316
6317 $as_echo "#define _UINT32_T 1" >>confdefs.h
6318
6319
6320 cat >>confdefs.h <<_ACEOF
6321 #define uint32_t $ac_cv_c_uint32_t
6322 _ACEOF
6323 ;;
6324 esac
6325
6326 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6327 case $ac_cv_c_uint64_t in #(
6328 no|yes) ;; #(
6329 *)
6330
6331 $as_echo "#define _UINT64_T 1" >>confdefs.h
6332
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define uint64_t $ac_cv_c_uint64_t
6336 _ACEOF
6337 ;;
6338 esac
6339
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6342 $as_echo_n "checking for unsigned long long int... " >&6; }
6343 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348
6349 /* For now, do not test the preprocessor; as of 2007 there are too many
6350 implementations with broken preprocessors. Perhaps this can
6351 be revisited in 2012. In the meantime, code should not expect
6352 #if to work with literals wider than 32 bits. */
6353 /* Test literals. */
6354 long long int ll = 9223372036854775807ll;
6355 long long int nll = -9223372036854775807LL;
6356 unsigned long long int ull = 18446744073709551615ULL;
6357 /* Test constant expressions. */
6358 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6359 ? 1 : -1)];
6360 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6361 ? 1 : -1)];
6362 int i = 63;
6363 int
6364 main ()
6365 {
6366 /* Test availability of runtime routines for shift and division. */
6367 long long int llmax = 9223372036854775807ll;
6368 unsigned long long int ullmax = 18446744073709551615ull;
6369 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6370 | (llmax / ll) | (llmax % ll)
6371 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6372 | (ullmax / ull) | (ullmax % ull));
6373 ;
6374 return 0;
6375 }
6376
6377 _ACEOF
6378 if ac_fn_cxx_try_link "$LINENO"; then :
6379 ac_cv_type_unsigned_long_long_int=yes
6380 else
6381 ac_cv_type_unsigned_long_long_int=no
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6387 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6388 if test $ac_cv_type_unsigned_long_long_int = yes; then
6389
6390 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6391
6392 fi
6393
6394
6395
6396 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6397 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6398
6399 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6400
6401 else
6402 test $ac_cv_type_unsigned_long_long_int = yes \
6403 && ac_type='unsigned long long int' \
6404 || ac_type='unsigned long int'
6405
6406 cat >>confdefs.h <<_ACEOF
6407 #define uintmax_t $ac_type
6408 _ACEOF
6409
6410 fi
6411
6412
6413
6414 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6416
6417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6418
6419 else
6420 for ac_type in 'unsigned int' 'unsigned long int' \
6421 'unsigned long long int'; do
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 int
6426 main ()
6427 {
6428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6429 test_array [0] = 0
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_cxx_try_compile "$LINENO"; then :
6436
6437 cat >>confdefs.h <<_ACEOF
6438 #define uintptr_t $ac_type
6439 _ACEOF
6440
6441 ac_type=
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 test -z "$ac_type" && break
6445 done
6446 fi
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6462 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6463 fi
6464
6465 # check what underlying integer type int64_t uses
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6467 $as_echo_n "checking for int64_t underlying type... " >&6; }
6468 if test "${ac_cv_int64_t_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474
6475 #ifdef HAVE_STDINT_H
6476 #include <stdint.h>
6477 #endif
6478 template <typename T> struct X { };
6479 template <>
6480 struct X<long> { typedef long t; };
6481
6482 int
6483 main ()
6484 {
6485 X<int64_t>::t x;
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 if ac_fn_cxx_try_compile "$LINENO"; then :
6491 ac_cv_int64_t_type=long
6492 else
6493 ac_cv_int64_t_type="long long"
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6498 $as_echo "$ac_cv_int64_t_type" >&6; }
6499 if test "$ac_cv_int64_t_type" = "long"; then
6500
6501 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6502
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506
6507 #ifdef HAVE_STDINT_H
6508 #include <stdint.h>
6509 #endif
6510 template <typename T> struct X { };
6511 template <>
6512 struct X<long long> { typedef long long t; };
6513
6514 int
6515 main ()
6516 {
6517 X<int64_t>::t x;
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6523
6524 else
6525 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529
6530
6531
6532
6533 # ---------------------
6534 # Warnings and checking
6535 # ---------------------
6536
6537 # Check $CC warning features (if it's GCC).
6538 # We want to use -pedantic, but we don't want warnings about
6539 # * 'long long'
6540 # * variadic macros
6541 # * overlong strings
6542 # * C++11 narrowing conversions in { }
6543 # So, we only use -pedantic if we can disable those warnings.
6544
6545 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6546 # Check whether --enable-build-format-warnings was given.
6547 if test "${enable_build_format_warnings+set}" = set; then :
6548 enableval=$enable_build_format_warnings;
6549 else
6550 enable_build_format_warnings=yes
6551 fi
6552
6553 if test $enable_build_format_warnings = no; then :
6554 wf_opt=-Wno-format
6555 else
6556 wf_opt=
6557 fi
6558 ac_ext=cpp
6559 ac_cpp='$CXXCPP $CPPFLAGS'
6560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563
6564 loose_warn=
6565 save_CXXFLAGS="$CXXFLAGS"
6566 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6567 # Do the check with the no- prefix removed since gcc silently
6568 # accepts any -Wno-* option on purpose
6569 case $real_option in
6570 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6571 *) option=$real_option ;;
6572 esac
6573 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6576 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6577 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 CXXFLAGS="$option"
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583
6584 int
6585 main ()
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 if ac_fn_cxx_try_compile "$LINENO"; then :
6593 eval "$as_acx_Woption=yes"
6594 else
6595 eval "$as_acx_Woption=no"
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598
6599 fi
6600 eval ac_res=\$$as_acx_Woption
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6602 $as_echo "$ac_res" >&6; }
6603 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6604 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6605 fi
6606 done
6607 CXXFLAGS="$save_CXXFLAGS"
6608 ac_ext=cpp
6609 ac_cpp='$CXXCPP $CPPFLAGS'
6610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6613
6614
6615
6616 ac_ext=c
6617 ac_cpp='$CPP $CPPFLAGS'
6618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6621
6622 c_loose_warn=
6623 save_CFLAGS="$CFLAGS"
6624 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6625 # Do the check with the no- prefix removed since gcc silently
6626 # accepts any -Wno-* option on purpose
6627 case $real_option in
6628 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6629 *) option=$real_option ;;
6630 esac
6631 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6634 $as_echo_n "checking whether $CC supports $option... " >&6; }
6635 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 CFLAGS="$option"
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641
6642 int
6643 main ()
6644 {
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 eval "$as_acx_Woption=yes"
6652 else
6653 eval "$as_acx_Woption=no"
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656
6657 fi
6658 eval ac_res=\$$as_acx_Woption
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6660 $as_echo "$ac_res" >&6; }
6661 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6662 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6663 fi
6664 done
6665 CFLAGS="$save_CFLAGS"
6666 ac_ext=cpp
6667 ac_cpp='$CXXCPP $CPPFLAGS'
6668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6671
6672
6673 ac_ext=cpp
6674 ac_cpp='$CXXCPP $CPPFLAGS'
6675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6678
6679 strict_warn=
6680 save_CXXFLAGS="$CXXFLAGS"
6681 for real_option in -Wmissing-format-attribute; do
6682 # Do the check with the no- prefix removed since gcc silently
6683 # accepts any -Wno-* option on purpose
6684 case $real_option in
6685 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6686 *) option=$real_option ;;
6687 esac
6688 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6691 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6692 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 CXXFLAGS="$option"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698
6699 int
6700 main ()
6701 {
6702
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_cxx_try_compile "$LINENO"; then :
6708 eval "$as_acx_Woption=yes"
6709 else
6710 eval "$as_acx_Woption=no"
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713
6714 fi
6715 eval ac_res=\$$as_acx_Woption
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6717 $as_echo "$ac_res" >&6; }
6718 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6719 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6720 fi
6721 done
6722 CXXFLAGS="$save_CXXFLAGS"
6723 ac_ext=cpp
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6728
6729
6730 ac_ext=cpp
6731 ac_cpp='$CXXCPP $CPPFLAGS'
6732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6735
6736 save_CXXFLAGS="$CXXFLAGS"
6737 for real_option in -Woverloaded-virtual; do
6738 # Do the check with the no- prefix removed since gcc silently
6739 # accepts any -Wno-* option on purpose
6740 case $real_option in
6741 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6742 *) option=$real_option ;;
6743 esac
6744 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6747 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6748 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 CXXFLAGS="$option"
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754
6755 int
6756 main ()
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_cxx_try_compile "$LINENO"; then :
6764 eval "$as_acx_Woption=yes"
6765 else
6766 eval "$as_acx_Woption=no"
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769
6770 fi
6771 eval ac_res=\$$as_acx_Woption
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6773 $as_echo "$ac_res" >&6; }
6774 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6775 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6776 fi
6777 done
6778 CXXFLAGS="$save_CXXFLAGS"
6779 ac_ext=cpp
6780 ac_cpp='$CXXCPP $CPPFLAGS'
6781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784
6785
6786 ac_ext=c
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
6792 c_strict_warn=
6793 save_CFLAGS="$CFLAGS"
6794 for real_option in -Wold-style-definition -Wc++-compat; do
6795 # Do the check with the no- prefix removed since gcc silently
6796 # accepts any -Wno-* option on purpose
6797 case $real_option in
6798 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6799 *) option=$real_option ;;
6800 esac
6801 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6802
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6804 $as_echo_n "checking whether $CC supports $option... " >&6; }
6805 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 CFLAGS="$option"
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811
6812 int
6813 main ()
6814 {
6815
6816 ;
6817 return 0;
6818 }
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821 eval "$as_acx_Woption=yes"
6822 else
6823 eval "$as_acx_Woption=no"
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826
6827 fi
6828 eval ac_res=\$$as_acx_Woption
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6830 $as_echo "$ac_res" >&6; }
6831 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6832 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6833 fi
6834 done
6835 CFLAGS="$save_CFLAGS"
6836 ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841
6842
6843 ac_ext=cpp
6844 ac_cpp='$CXXCPP $CPPFLAGS'
6845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6848
6849 # Do the check with the no- prefix removed from the warning options
6850 # since gcc silently accepts any -Wno-* option on purpose
6851 if test "$GXX" = yes; then :
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6853 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6854 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 save_CXXFLAGS="$CXXFLAGS"
6858 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_cxx_try_compile "$LINENO"; then :
6871 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6872 else
6873 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 CXXFLAGS="$save_CXXFLAGS"
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6879 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6880 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6881 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6882 fi
6883
6884 fi
6885 ac_ext=cpp
6886 ac_cpp='$CXXCPP $CPPFLAGS'
6887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6890
6891
6892 ac_ext=cpp
6893 ac_cpp='$CXXCPP $CPPFLAGS'
6894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6897
6898 # Check whether --enable-werror-always was given.
6899 if test "${enable_werror_always+set}" = set; then :
6900 enableval=$enable_werror_always;
6901 else
6902 enable_werror_always=no
6903 fi
6904
6905 if test $enable_werror_always = yes; then :
6906 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6907 fi
6908
6909 ac_ext=cpp
6910 ac_cpp='$CXXCPP $CPPFLAGS'
6911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6914
6915
6916
6917 # The above macros do nothing if the compiler is not GCC. However, the
6918 # Makefile has more goo to add other flags, so these variables are used
6919 # to enable warnings only for GCC.
6920 warn_cflags=
6921 warn_cxxflags=
6922 if test "x$GCC" = "xyes"; then
6923 warn_cflags='$(GCC_WARN_CFLAGS)'
6924 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6925 fi
6926
6927
6928
6929 # Disable exceptions and RTTI if building with g++
6930 ac_ext=c
6931 ac_cpp='$CPP $CPPFLAGS'
6932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
6936 noexception_flags=
6937 save_CFLAGS="$CFLAGS"
6938 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6939 # Do the check with the no- prefix removed since gcc silently
6940 # accepts any -Wno-* option on purpose
6941 case $real_option in
6942 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6943 *) option=$real_option ;;
6944 esac
6945 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6948 $as_echo_n "checking whether $CC supports $option... " >&6; }
6949 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 CFLAGS="$option"
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955
6956 int
6957 main ()
6958 {
6959
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 eval "$as_acx_Woption=yes"
6966 else
6967 eval "$as_acx_Woption=no"
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970
6971 fi
6972 eval ac_res=\$$as_acx_Woption
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6974 $as_echo "$ac_res" >&6; }
6975 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6976 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6977 fi
6978 done
6979 CFLAGS="$save_CFLAGS"
6980 ac_ext=cpp
6981 ac_cpp='$CXXCPP $CPPFLAGS'
6982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6985
6986
6987
6988 # Enable expensive internal checks
6989 is_release=
6990 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6991 is_release=yes
6992 fi
6993
6994 # Check whether --enable-checking was given.
6995 if test "${enable_checking+set}" = set; then :
6996 enableval=$enable_checking; ac_checking_flags="${enableval}"
6997 else
6998
6999 # Determine the default checks.
7000 if test x$is_release = x ; then
7001 ac_checking_flags=yes
7002 else
7003 ac_checking_flags=release
7004 fi
7005 fi
7006
7007 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7008 for check in release $ac_checking_flags
7009 do
7010 case $check in
7011 # these set all the flags to specific states
7012 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7013 ac_fold_checking= ; ac_gc_checking=1 ;
7014 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7015 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7016 ac_tree_checking=1 ; ac_valgrind_checking= ;
7017 ac_types_checking=1 ;;
7018 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7019 ac_fold_checking= ; ac_gc_checking= ;
7020 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7021 ac_rtlflag_checking= ; ac_runtime_checking= ;
7022 ac_tree_checking= ; ac_valgrind_checking= ;
7023 ac_types_checking= ;;
7024 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7025 ac_fold_checking=1 ; ac_gc_checking=1 ;
7026 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7027 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7028 ac_tree_checking=1 ; ac_valgrind_checking= ;
7029 ac_types_checking=1 ;;
7030 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7031 ac_fold_checking= ; ac_gc_checking= ;
7032 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7033 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7034 ac_tree_checking= ; ac_valgrind_checking= ;
7035 ac_types_checking= ;;
7036 # these enable particular checks
7037 assert) ac_assert_checking=1 ;;
7038 df) ac_df_checking=1 ;;
7039 fold) ac_fold_checking=1 ;;
7040 gc) ac_gc_checking=1 ;;
7041 gcac) ac_gc_always_collect=1 ;;
7042 gimple) ac_gimple_checking=1 ;;
7043 misc) ac_checking=1 ;;
7044 rtl) ac_rtl_checking=1 ;;
7045 rtlflag) ac_rtlflag_checking=1 ;;
7046 runtime) ac_runtime_checking=1 ;;
7047 tree) ac_tree_checking=1 ;;
7048 types) ac_types_checking=1 ;;
7049 valgrind) ac_valgrind_checking=1 ;;
7050 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7051 esac
7052 done
7053 IFS="$ac_save_IFS"
7054
7055 nocommon_flag=""
7056 if test x$ac_checking != x ; then
7057
7058 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7059
7060 nocommon_flag=-fno-common
7061 fi
7062
7063 if test x$ac_df_checking != x ; then
7064
7065 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7066
7067 fi
7068 if test x$ac_assert_checking != x ; then
7069
7070 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7071
7072 fi
7073 if test x$ac_gimple_checking != x ; then
7074
7075 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7076
7077 fi
7078
7079 if test x$ac_runtime_checking != x ; then
7080
7081 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7082
7083 fi
7084 if test x$ac_tree_checking != x ; then
7085
7086 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7087
7088 TREEBROWSER=tree-browser.o
7089 TREECHECKING=yes
7090 fi
7091 if test x$ac_types_checking != x ; then
7092
7093 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7094
7095 fi
7096
7097
7098 if test x$ac_rtl_checking != x ; then
7099
7100 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7101
7102 fi
7103 if test x$ac_rtlflag_checking != x ; then
7104
7105 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7106
7107 fi
7108 if test x$ac_gc_checking != x ; then
7109
7110 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7111
7112 fi
7113 if test x$ac_gc_always_collect != x ; then
7114
7115 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7116
7117 fi
7118 if test x$ac_fold_checking != x ; then
7119
7120 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7121
7122 fi
7123 valgrind_path_defines=
7124 valgrind_command=
7125
7126 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7127 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7128 have_valgrind_h=yes
7129 else
7130 have_valgrind_h=no
7131 fi
7132
7133
7134
7135 # It is certainly possible that there's valgrind but no valgrind.h.
7136 # GCC relies on making annotations so we must have both.
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7138 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 #include <valgrind/memcheck.h>
7142 #ifndef VALGRIND_DISCARD
7143 #error VALGRIND_DISCARD not defined
7144 #endif
7145 _ACEOF
7146 if ac_fn_cxx_try_cpp "$LINENO"; then :
7147 gcc_cv_header_valgrind_memcheck_h=yes
7148 else
7149 gcc_cv_header_valgrind_memcheck_h=no
7150 fi
7151 rm -f conftest.err conftest.$ac_ext
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7153 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7155 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <memcheck.h>
7159 #ifndef VALGRIND_DISCARD
7160 #error VALGRIND_DISCARD not defined
7161 #endif
7162 _ACEOF
7163 if ac_fn_cxx_try_cpp "$LINENO"; then :
7164 gcc_cv_header_memcheck_h=yes
7165 else
7166 gcc_cv_header_memcheck_h=no
7167 fi
7168 rm -f conftest.err conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7170 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7171 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7172
7173 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7174
7175 fi
7176 if test $gcc_cv_header_memcheck_h = yes; then
7177
7178 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7179
7180 fi
7181
7182 if test x$ac_valgrind_checking != x ; then
7183
7184 # Prepare PATH_SEPARATOR.
7185 # The user is always right.
7186 if test "${PATH_SEPARATOR+set}" != set; then
7187 echo "#! /bin/sh" >conf$$.sh
7188 echo "exit 0" >>conf$$.sh
7189 chmod +x conf$$.sh
7190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7191 PATH_SEPARATOR=';'
7192 else
7193 PATH_SEPARATOR=:
7194 fi
7195 rm -f conf$$.sh
7196 fi
7197
7198 # Find out how to test for executable files. Don't use a zero-byte file,
7199 # as systems may use methods other than mode bits to determine executability.
7200 cat >conf$$.file <<_ASEOF
7201 #! /bin/sh
7202 exit 0
7203 _ASEOF
7204 chmod +x conf$$.file
7205 if test -x conf$$.file >/dev/null 2>&1; then
7206 ac_executable_p="test -x"
7207 else
7208 ac_executable_p="test -f"
7209 fi
7210 rm -f conf$$.file
7211
7212 # Extract the first word of "valgrind", so it can be a program name with args.
7213 set dummy valgrind; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 case "$valgrind_path" in
7220 [\\/]* | ?:[\\/]*)
7221 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7222 ;;
7223 *)
7224 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7225 for ac_dir in $PATH; do
7226 IFS="$ac_save_IFS"
7227 test -z "$ac_dir" && ac_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7230 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7231 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7232 break 2
7233 fi
7234 fi
7235 done
7236 done
7237 IFS="$ac_save_IFS"
7238 ;;
7239 esac
7240 fi
7241 valgrind_path="$ac_cv_path_valgrind_path"
7242 if test -n "$valgrind_path"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7244 $as_echo "$valgrind_path" >&6; }
7245 else
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7248 fi
7249
7250 if test "x$valgrind_path" = "x" \
7251 || (test $have_valgrind_h = no \
7252 && test $gcc_cv_header_memcheck_h = no \
7253 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7254 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7255 fi
7256 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7257 valgrind_command="$valgrind_path -q"
7258
7259 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7260
7261 fi
7262
7263
7264
7265 # Enable code coverage collection
7266 # Check whether --enable-coverage was given.
7267 if test "${enable_coverage+set}" = set; then :
7268 enableval=$enable_coverage; case "${enableval}" in
7269 yes|noopt)
7270 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7271 ;;
7272 opt)
7273 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7274 ;;
7275 no)
7276 # a.k.a. --disable-coverage
7277 coverage_flags=""
7278 ;;
7279 *)
7280 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7281 ;;
7282 esac
7283 else
7284 coverage_flags=""
7285 fi
7286
7287
7288
7289 # Check whether --enable-gather-detailed-mem-stats was given.
7290 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7291 enableval=$enable_gather_detailed_mem_stats;
7292 else
7293 enable_gather_detailed_mem_stats=no
7294 fi
7295
7296 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7297
7298 cat >>confdefs.h <<_ACEOF
7299 #define GATHER_STATISTICS $gather_stats
7300 _ACEOF
7301
7302
7303 # Check whether --enable-valgrind-annotations was given.
7304 if test "${enable_valgrind_annotations+set}" = set; then :
7305 enableval=$enable_valgrind_annotations;
7306 else
7307 enable_valgrind_annotations=no
7308 fi
7309
7310 if test x$enable_valgrind_annotations != xno \
7311 || test x$ac_valgrind_checking != x; then
7312 if (test $have_valgrind_h = no \
7313 && test $gcc_cv_header_memcheck_h = no \
7314 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7315 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7316 fi
7317
7318 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7319
7320 fi
7321
7322 # -------------------------------
7323 # Miscenalleous configure options
7324 # -------------------------------
7325
7326 # With stabs
7327
7328 # Check whether --with-stabs was given.
7329 if test "${with_stabs+set}" = set; then :
7330 withval=$with_stabs; stabs="$with_stabs"
7331 else
7332 stabs=no
7333 fi
7334
7335
7336 # Determine whether or not multilibs are enabled.
7337 # Check whether --enable-multilib was given.
7338 if test "${enable_multilib+set}" = set; then :
7339 enableval=$enable_multilib;
7340 else
7341 enable_multilib=yes
7342 fi
7343
7344
7345
7346 # Determine whether or not multiarch is enabled.
7347 # Check whether --enable-multiarch was given.
7348 if test "${enable_multiarch+set}" = set; then :
7349 enableval=$enable_multiarch; case "${enableval}" in
7350 yes|no|auto) enable_multiarch=$enableval;;
7351 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7352 esac
7353 else
7354 enable_multiarch=auto
7355 fi
7356
7357 if test x${enable_multiarch} = xauto; then
7358 if test x${with_native_system_header_dir} != x; then
7359 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7360 enable_multiarch=no
7361 fi
7362 if test x$host != x$target && test "x$with_sysroot" = x; then
7363 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7364 enable_multiarch=no
7365 fi
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7368 $as_echo_n "checking for multiarch configuration... " >&6; }
7369
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7371 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7372
7373 # needed for setting the multiarch name for soft-float/hard-float ABIs
7374
7375
7376
7377 # Enable __cxa_atexit for C++.
7378 # Check whether --enable-__cxa_atexit was given.
7379 if test "${enable___cxa_atexit+set}" = set; then :
7380 enableval=$enable___cxa_atexit;
7381 fi
7382
7383
7384 # Enable C extension for decimal float if target supports it.
7385
7386 # Check whether --enable-decimal-float was given.
7387 if test "${enable_decimal_float+set}" = set; then :
7388 enableval=$enable_decimal_float;
7389 case $enable_decimal_float in
7390 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7391 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7392 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7393 esac
7394
7395 else
7396
7397 case $target in
7398 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7399 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7400 i?86*-*-mingw* | x86_64*-*-mingw* | \
7401 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7402 enable_decimal_float=yes
7403 ;;
7404 *)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7406 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7407 enable_decimal_float=no
7408 ;;
7409 esac
7410
7411 fi
7412
7413
7414 # x86's use BID format instead of DPD
7415 case x$enable_decimal_float in
7416 xyes)
7417 case $target in
7418 i?86*-*-* | x86_64*-*-*)
7419 enable_decimal_float=bid
7420 ;;
7421 *)
7422 enable_decimal_float=dpd
7423 ;;
7424 esac
7425 default_decimal_float=$enable_decimal_float
7426 ;;
7427 xno)
7428 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7429 # dependency on libdecnumber.
7430 default_decimal_float=dpd
7431 ;;
7432 esac
7433
7434
7435
7436
7437 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define ENABLE_DECIMAL_FLOAT $dfp
7441 _ACEOF
7442
7443
7444 # Use default_decimal_float for dependency.
7445 enable_decimal_float=$default_decimal_float
7446
7447 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7448
7449 cat >>confdefs.h <<_ACEOF
7450 #define ENABLE_DECIMAL_BID_FORMAT $bid
7451 _ACEOF
7452
7453
7454 # Enable C extension for fixed-point arithmetic.
7455 # Check whether --enable-fixed-point was given.
7456 if test "${enable_fixed_point+set}" = set; then :
7457 enableval=$enable_fixed_point;
7458 else
7459
7460 case $target in
7461 arm*)
7462 enable_fixed_point=yes
7463 ;;
7464
7465 mips*-*-*)
7466 enable_fixed_point=yes
7467 ;;
7468 *)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7470 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7471 enable_fixed_point=no
7472 ;;
7473 esac
7474
7475 fi
7476
7477
7478
7479 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7480
7481 cat >>confdefs.h <<_ACEOF
7482 #define ENABLE_FIXED_POINT $fixedpoint
7483 _ACEOF
7484
7485
7486 # Enable threads
7487 # Pass with no value to take the default
7488 # Pass with a value to specify a thread package
7489 # Check whether --enable-threads was given.
7490 if test "${enable_threads+set}" = set; then :
7491 enableval=$enable_threads;
7492 else
7493 enable_threads=''
7494 fi
7495
7496
7497 # Check whether --enable-tls was given.
7498 if test "${enable_tls+set}" = set; then :
7499 enableval=$enable_tls;
7500 case $enable_tls in
7501 yes | no) ;;
7502 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7503 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7504 esac
7505
7506 else
7507 enable_tls=''
7508 fi
7509
7510
7511 # Check whether --enable-objc-gc was given.
7512 if test "${enable_objc_gc+set}" = set; then :
7513 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7514 objc_boehm_gc=''
7515 else
7516 objc_boehm_gc=1
7517 fi
7518 else
7519 objc_boehm_gc=''
7520 fi
7521
7522
7523
7524 # Check whether --with-dwarf2 was given.
7525 if test "${with_dwarf2+set}" = set; then :
7526 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7527 else
7528 dwarf2=no
7529 fi
7530
7531
7532 # Check whether --enable-shared was given.
7533 if test "${enable_shared+set}" = set; then :
7534 enableval=$enable_shared;
7535 case $enable_shared in
7536 yes | no) ;;
7537 *)
7538 enable_shared=no
7539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7540 for pkg in $enableval; do
7541 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7542 enable_shared=yes
7543 fi
7544 done
7545 IFS="$ac_save_ifs"
7546 ;;
7547 esac
7548
7549 else
7550 enable_shared=yes
7551 fi
7552
7553
7554
7555
7556 # Check whether --with-specs was given.
7557 if test "${with_specs+set}" = set; then :
7558 withval=$with_specs; CONFIGURE_SPECS=$withval
7559 else
7560 CONFIGURE_SPECS=
7561
7562 fi
7563
7564
7565
7566
7567
7568 # Check whether --with-pkgversion was given.
7569 if test "${with_pkgversion+set}" = set; then :
7570 withval=$with_pkgversion; case "$withval" in
7571 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7572 no) PKGVERSION= ;;
7573 *) PKGVERSION="($withval) " ;;
7574 esac
7575 else
7576 PKGVERSION="(GCC) "
7577
7578 fi
7579
7580
7581
7582
7583
7584 # Check whether --with-bugurl was given.
7585 if test "${with_bugurl+set}" = set; then :
7586 withval=$with_bugurl; case "$withval" in
7587 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7588 no) BUGURL=
7589 ;;
7590 *) BUGURL="$withval"
7591 ;;
7592 esac
7593 else
7594 BUGURL="http://gcc.gnu.org/bugs.html"
7595
7596 fi
7597
7598 case ${BUGURL} in
7599 "")
7600 REPORT_BUGS_TO=
7601 REPORT_BUGS_TEXI=
7602 ;;
7603 *)
7604 REPORT_BUGS_TO="<$BUGURL>"
7605 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7606 ;;
7607 esac;
7608
7609
7610
7611
7612 # Sanity check enable_languages in case someone does not run the toplevel
7613 # configure # script.
7614 # Check whether --enable-languages was given.
7615 if test "${enable_languages+set}" = set; then :
7616 enableval=$enable_languages; case ,${enable_languages}, in
7617 ,,|,yes,)
7618 # go safe -- we cannot be much sure without the toplevel
7619 # configure's
7620 # analysis of which target libs are present and usable
7621 enable_languages=c
7622 ;;
7623 *,all,*)
7624 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7625 ;;
7626 *,c,*)
7627 ;;
7628 *)
7629 enable_languages=c,${enable_languages}
7630 ;;
7631 esac
7632 else
7633 enable_languages=c
7634 fi
7635
7636
7637 if test x"$enable_as_accelerator_for" != x; then
7638
7639 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7640
7641 enable_as_accelerator=yes
7642 case "${target}" in
7643 *-intelmicemul-*)
7644 # In this case we expect offload compiler to be built as native, so we
7645 # need to rename the driver to avoid clashes with host's drivers.
7646 program_transform_name="s&^&${target}-&" ;;
7647 esac
7648 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7649 program_transform_name=`echo $program_transform_name | sed $sedscript`
7650 accel_dir_suffix=/accel/${target_noncanonical}
7651 real_target_noncanonical=${enable_as_accelerator_for}
7652 fi
7653
7654
7655
7656
7657 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7658 tgt=`echo $tgt | sed 's/=.*//'`
7659 if test x"$offload_targets" = x; then
7660 offload_targets=$tgt
7661 else
7662 offload_targets="$offload_targets:$tgt"
7663 fi
7664 done
7665
7666 cat >>confdefs.h <<_ACEOF
7667 #define OFFLOAD_TARGETS "$offload_targets"
7668 _ACEOF
7669
7670 if test x"$offload_targets" != x; then
7671
7672 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7673
7674 fi
7675
7676
7677 # Check whether --with-multilib-list was given.
7678 if test "${with_multilib_list+set}" = set; then :
7679 withval=$with_multilib_list; :
7680 else
7681 with_multilib_list=default
7682 fi
7683
7684
7685 # -------------------------
7686 # Checks for other programs
7687 # -------------------------
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7691 set x ${MAKE-make}
7692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7693 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 cat >conftest.make <<\_ACEOF
7697 SHELL = /bin/sh
7698 all:
7699 @echo '@@@%%%=$(MAKE)=@@@%%%'
7700 _ACEOF
7701 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7703 *@@@%%%=?*=@@@%%%*)
7704 eval ac_cv_prog_make_${ac_make}_set=yes;;
7705 *)
7706 eval ac_cv_prog_make_${ac_make}_set=no;;
7707 esac
7708 rm -f conftest.make
7709 fi
7710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 $as_echo "yes" >&6; }
7713 SET_MAKE=
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 SET_MAKE="MAKE=${MAKE-make}"
7718 fi
7719
7720
7721 # Find some useful tools
7722 for ac_prog in gawk mawk nawk awk
7723 do
7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_AWK+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$AWK"; then
7732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_AWK="$ac_prog"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 AWK=$ac_cv_prog_AWK
7752 if test -n "$AWK"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7754 $as_echo "$AWK" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 test -n "$AWK" && break
7762 done
7763
7764 # We need awk to create options.c and options.h.
7765 # Bail out if it's missing.
7766 case ${AWK} in
7767 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7768 esac
7769
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7771 $as_echo_n "checking whether ln -s works... " >&6; }
7772 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 rm -f conftestdata_t
7776 echo >conftestdata_f
7777 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7778 then
7779 gcc_cv_prog_LN_S="ln -s"
7780 else
7781 if ln conftestdata_f conftestdata_t 2>/dev/null
7782 then
7783 gcc_cv_prog_LN_S=ln
7784 else
7785 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7786 then
7787 gcc_cv_prog_LN_S="cp -p"
7788 else
7789 gcc_cv_prog_LN_S=cp
7790 fi
7791 fi
7792 fi
7793 rm -f conftestdata_f conftestdata_t
7794
7795 fi
7796 LN_S="$gcc_cv_prog_LN_S"
7797 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 else
7801 if test "$gcc_cv_prog_LN_S" = "ln"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7803 $as_echo "no, using ln" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7806 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7807 fi
7808 fi
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7811 $as_echo_n "checking whether ln works... " >&6; }
7812 if test "${acx_cv_prog_LN+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 rm -f conftestdata_t
7816 echo >conftestdata_f
7817 if ln conftestdata_f conftestdata_t 2>/dev/null
7818 then
7819 acx_cv_prog_LN=ln
7820 else
7821 acx_cv_prog_LN=no
7822 fi
7823 rm -f conftestdata_f conftestdata_t
7824
7825 fi
7826 if test $acx_cv_prog_LN = no; then
7827 LN="$LN_S"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7829 $as_echo "no, using $LN" >&6; }
7830 else
7831 LN="$acx_cv_prog_LN"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 fi
7835
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 if test -n "$RANLIB"; then
7845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 RANLIB=$ac_cv_prog_RANLIB
7865 if test -n "$RANLIB"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7867 $as_echo "$RANLIB" >&6; }
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873
7874 fi
7875 if test -z "$ac_cv_prog_RANLIB"; then
7876 ac_ct_RANLIB=$RANLIB
7877 # Extract the first word of "ranlib", so it can be a program name with args.
7878 set dummy ranlib; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$ac_ct_RANLIB"; then
7885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_prog_ac_ct_RANLIB="ranlib"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7897 fi
7898 done
7899 done
7900 IFS=$as_save_IFS
7901
7902 fi
7903 fi
7904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7905 if test -n "$ac_ct_RANLIB"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7907 $as_echo "$ac_ct_RANLIB" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913 if test "x$ac_ct_RANLIB" = x; then
7914 RANLIB=":"
7915 else
7916 case $cross_compiling:$ac_tool_warned in
7917 yes:)
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920 ac_tool_warned=yes ;;
7921 esac
7922 RANLIB=$ac_ct_RANLIB
7923 fi
7924 else
7925 RANLIB="$ac_cv_prog_RANLIB"
7926 fi
7927
7928 ranlib_flags=""
7929
7930
7931 # Find a good install program. We prefer a C program (faster),
7932 # so one script is as good as another. But avoid the broken or
7933 # incompatible versions:
7934 # SysV /etc/install, /usr/sbin/install
7935 # SunOS /usr/etc/install
7936 # IRIX /sbin/install
7937 # AIX /bin/install
7938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7940 # ./install, which can be erroneously created by make from ./install.sh.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7942 $as_echo_n "checking for a BSD compatible install... " >&6; }
7943 if test -z "$INSTALL"; then
7944 if test "${ac_cv_path_install+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7948 for ac_dir in $PATH; do
7949 # Account for people who put trailing slashes in PATH elements.
7950 case "$ac_dir/" in
7951 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7952 *)
7953 # OSF1 and SCO ODT 3.0 have their own names for install.
7954 for ac_prog in ginstall scoinst install; do
7955 if test -f $ac_dir/$ac_prog; then
7956 if test $ac_prog = install &&
7957 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7958 # AIX install. It has an incompatible calling convention.
7959 # OSF/1 installbsd also uses dspmsg, but is usable.
7960 :
7961 else
7962 ac_cv_path_install="$ac_dir/$ac_prog -c"
7963 break 2
7964 fi
7965 fi
7966 done
7967 ;;
7968 esac
7969 done
7970 IFS="$ac_save_IFS"
7971
7972 fi
7973 if test "${ac_cv_path_install+set}" = set; then
7974 INSTALL="$ac_cv_path_install"
7975 else
7976 # As a last resort, use the slow shell script. We don't cache a
7977 # path for INSTALL within a source directory, because that will
7978 # break other packages using the cache if that directory is
7979 # removed, or if the path is relative.
7980 INSTALL="$ac_install_sh"
7981 fi
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7984 $as_echo "$INSTALL" >&6; }
7985
7986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7987 # It thinks the first close brace ends the variable substitution.
7988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7989
7990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7991
7992
7993 # See if cmp has --ignore-initial.
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7995 $as_echo_n "checking for cmp's capabilities... " >&6; }
7996 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 echo abfoo >t1
8000 echo cdfoo >t2
8001 gcc_cv_prog_cmp_skip=slowcompare
8002 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8003 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8004 :
8005 else
8006 gcc_cv_prog_cmp_skip=gnucompare
8007 fi
8008 fi
8009 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8010 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8011 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8012 :
8013 else
8014 gcc_cv_prog_cmp_skip=fastcompare
8015 fi
8016 fi
8017 fi
8018 rm t1 t2
8019
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8022 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8023 make_compare_target=$gcc_cv_prog_cmp_skip
8024
8025
8026
8027 # See if we have the mktemp command.
8028 # Extract the first word of "mktemp", so it can be a program name with args.
8029 set dummy mktemp; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$have_mktemp_command"; then
8036 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_have_mktemp_command="yes"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8054 fi
8055 fi
8056 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8057 if test -n "$have_mktemp_command"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8059 $as_echo "$have_mktemp_command" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065
8066
8067 # See if makeinfo has been installed and is modern enough
8068 # that we can use it.
8069
8070 # Extract the first word of "makeinfo", so it can be a program name with args.
8071 set dummy makeinfo; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$MAKEINFO"; then
8078 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_MAKEINFO="makeinfo"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 MAKEINFO=$ac_cv_prog_MAKEINFO
8098 if test -n "$MAKEINFO"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8100 $as_echo "$MAKEINFO" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 fi
8105
8106
8107 if test -n "$MAKEINFO"; then
8108 # Found it, now check the version.
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8110 $as_echo_n "checking for modern makeinfo... " >&6; }
8111 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8115 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8116
8117 case $ac_prog_version in
8118 '') gcc_cv_prog_makeinfo_modern=no;;
8119 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8120 *) gcc_cv_prog_makeinfo_modern=no;;
8121 esac
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8125 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8126 else
8127 gcc_cv_prog_makeinfo_modern=no
8128 fi
8129 if test $gcc_cv_prog_makeinfo_modern = no; then
8130 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8131 fi
8132
8133 if test $gcc_cv_prog_makeinfo_modern = no; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8135 *** Makeinfo is missing or too old.
8136 *** Info documentation will not be built." >&5
8137 $as_echo "$as_me: WARNING:
8138 *** Makeinfo is missing or too old.
8139 *** Info documentation will not be built." >&2;}
8140 BUILD_INFO=
8141 else
8142 BUILD_INFO=info
8143 fi
8144
8145
8146 # Is pod2man recent enough to regenerate manpages?
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8148 $as_echo_n "checking for recent Pod::Man... " >&6; }
8149 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8151 $as_echo "yes" >&6; }
8152 GENERATED_MANPAGES=generated-manpages
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 GENERATED_MANPAGES=
8157 fi
8158
8159
8160 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8161
8162 # How about lex?
8163 for ac_prog in flex
8164 do
8165 # Extract the first word of "$ac_prog", so it can be a program name with args.
8166 set dummy $ac_prog; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_FLEX+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$FLEX"; then
8173 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_FLEX="$ac_prog"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 FLEX=$ac_cv_prog_FLEX
8193 if test -n "$FLEX"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8195 $as_echo "$FLEX" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 test -n "$FLEX" && break
8203 done
8204 test -n "$FLEX" || FLEX="$MISSING flex"
8205
8206
8207 # Bison?
8208 for ac_prog in bison
8209 do
8210 # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_BISON+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$BISON"; then
8218 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_BISON="$ac_prog"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 BISON=$ac_cv_prog_BISON
8238 if test -n "$BISON"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8240 $as_echo "$BISON" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246
8247 test -n "$BISON" && break
8248 done
8249 test -n "$BISON" || BISON="$MISSING bison"
8250
8251
8252 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8253 # check for build == host before using them.
8254
8255 # NM
8256 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8257 && test -d ../binutils ; then
8258 NM='${objdir}/../binutils/nm-new'
8259 else
8260 # Extract the first word of "nm", so it can be a program name with args.
8261 set dummy nm; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_NM+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$NM"; then
8268 ac_cv_prog_NM="$NM" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_NM="nm"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8286 fi
8287 fi
8288 NM=$ac_cv_prog_NM
8289 if test -n "$NM"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8291 $as_echo "$NM" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 fi
8299
8300 # AR
8301 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8302 && test -d ../binutils ; then
8303 AR='${objdir}/../binutils/ar'
8304 else
8305 # Extract the first word of "ar", so it can be a program name with args.
8306 set dummy ar; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_AR+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$AR"; then
8313 ac_cv_prog_AR="$AR" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_AR="ar"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8331 fi
8332 fi
8333 AR=$ac_cv_prog_AR
8334 if test -n "$AR"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8336 $as_echo "$AR" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343 fi
8344
8345 # The jit documentation looks better if built with sphinx, but can be
8346 # built with texinfo if sphinx is not available.
8347 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8348 # Extract the first word of "sphinx-build", so it can be a program name with args.
8349 set dummy sphinx-build; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$doc_build_sys"; then
8356 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_doc_build_sys="sphinx"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369 done
8370 done
8371 IFS=$as_save_IFS
8372
8373 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8374 fi
8375 fi
8376 doc_build_sys=$ac_cv_prog_doc_build_sys
8377 if test -n "$doc_build_sys"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8379 $as_echo "$doc_build_sys" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384
8385
8386
8387 # --------------------
8388 # Checks for C headers
8389 # --------------------
8390
8391 # Need to reject headers which give warnings, so that the -Werror bootstrap
8392 # works later. *sigh* This needs to come before all header checks.
8393
8394 ac_c_preproc_warn_flag=yes
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8397 $as_echo_n "checking for ANSI C header files... " >&6; }
8398 if test "${ac_cv_header_stdc+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <stdlib.h>
8404 #include <stdarg.h>
8405 #include <string.h>
8406 #include <float.h>
8407
8408 int
8409 main ()
8410 {
8411
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_cxx_try_compile "$LINENO"; then :
8417 ac_cv_header_stdc=yes
8418 else
8419 ac_cv_header_stdc=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422
8423 if test $ac_cv_header_stdc = yes; then
8424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 #include <string.h>
8428
8429 _ACEOF
8430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8431 $EGREP "memchr" >/dev/null 2>&1; then :
8432
8433 else
8434 ac_cv_header_stdc=no
8435 fi
8436 rm -f conftest*
8437
8438 fi
8439
8440 if test $ac_cv_header_stdc = yes; then
8441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <stdlib.h>
8445
8446 _ACEOF
8447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8448 $EGREP "free" >/dev/null 2>&1; then :
8449
8450 else
8451 ac_cv_header_stdc=no
8452 fi
8453 rm -f conftest*
8454
8455 fi
8456
8457 if test $ac_cv_header_stdc = yes; then
8458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8459 if test "$cross_compiling" = yes; then :
8460 :
8461 else
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <ctype.h>
8465 #include <stdlib.h>
8466 #if ((' ' & 0x0FF) == 0x020)
8467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8469 #else
8470 # define ISLOWER(c) \
8471 (('a' <= (c) && (c) <= 'i') \
8472 || ('j' <= (c) && (c) <= 'r') \
8473 || ('s' <= (c) && (c) <= 'z'))
8474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8475 #endif
8476
8477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8478 int
8479 main ()
8480 {
8481 int i;
8482 for (i = 0; i < 256; i++)
8483 if (XOR (islower (i), ISLOWER (i))
8484 || toupper (i) != TOUPPER (i))
8485 return 2;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_cxx_try_run "$LINENO"; then :
8490
8491 else
8492 ac_cv_header_stdc=no
8493 fi
8494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8495 conftest.$ac_objext conftest.beam conftest.$ac_ext
8496 fi
8497
8498 fi
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8501 $as_echo "$ac_cv_header_stdc" >&6; }
8502 if test $ac_cv_header_stdc = yes; then
8503
8504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8505
8506 fi
8507
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8509 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8510 if test "${ac_cv_header_time+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 #include <sys/types.h>
8516 #include <sys/time.h>
8517 #include <time.h>
8518
8519 int
8520 main ()
8521 {
8522 if ((struct tm *) 0)
8523 return 0;
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_cxx_try_compile "$LINENO"; then :
8529 ac_cv_header_time=yes
8530 else
8531 ac_cv_header_time=no
8532 fi
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8536 $as_echo "$ac_cv_header_time" >&6; }
8537 if test $ac_cv_header_time = yes; then
8538
8539 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8540
8541 fi
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8544 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8545 if test "${gcc_cv_header_string+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <string.h>
8551 #include <strings.h>
8552 int
8553 main ()
8554 {
8555
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_cxx_try_compile "$LINENO"; then :
8561 gcc_cv_header_string=yes
8562 else
8563 gcc_cv_header_string=no
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8568 $as_echo "$gcc_cv_header_string" >&6; }
8569 if test $gcc_cv_header_string = yes; then
8570
8571 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8572
8573 fi
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8576 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8577 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <sys/wait.h>
8584 #ifndef WEXITSTATUS
8585 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8586 #endif
8587 #ifndef WIFEXITED
8588 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8589 #endif
8590
8591 int
8592 main ()
8593 {
8594 int s;
8595 wait (&s);
8596 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_cxx_try_compile "$LINENO"; then :
8602 ac_cv_header_sys_wait_h=yes
8603 else
8604 ac_cv_header_sys_wait_h=no
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8609 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8610 if test $ac_cv_header_sys_wait_h = yes; then
8611
8612 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8613
8614 fi
8615
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8617 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8618 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <sys/types.h>
8624 #include <termios.h>
8625 #ifdef TIOCGWINSZ
8626 yes
8627 #endif
8628
8629 _ACEOF
8630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8631 $EGREP "yes" >/dev/null 2>&1; then :
8632 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8633 else
8634 ac_cv_sys_tiocgwinsz_in_termios_h=no
8635 fi
8636 rm -f conftest*
8637
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8640 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8641
8642 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8644 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8645 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <sys/types.h>
8651 #include <sys/ioctl.h>
8652 #ifdef TIOCGWINSZ
8653 yes
8654 #endif
8655
8656 _ACEOF
8657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8658 $EGREP "yes" >/dev/null 2>&1; then :
8659 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8660 else
8661 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8662 fi
8663 rm -f conftest*
8664
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8667 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8668
8669 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8670
8671 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8672
8673 fi
8674 fi
8675
8676 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8677 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8678 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8679 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8680 do :
8681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8683 eval as_val=\$$as_ac_Header
8684 if test "x$as_val" = x""yes; then :
8685 cat >>confdefs.h <<_ACEOF
8686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8687 _ACEOF
8688
8689 fi
8690 done
8691
8692
8693 # Check for thread headers.
8694 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8695 if test "x$ac_cv_header_thread_h" = x""yes; then :
8696 have_thread_h=yes
8697 else
8698 have_thread_h=
8699 fi
8700
8701 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8702 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8703 have_pthread_h=yes
8704 else
8705 have_pthread_h=
8706 fi
8707
8708
8709 # These tests can't be done till we know if we have limits.h.
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8711 $as_echo_n "checking for CHAR_BIT... " >&6; }
8712 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 #ifdef HAVE_LIMITS_H
8718 #include <limits.h>
8719 #endif
8720 #ifdef CHAR_BIT
8721 found
8722 #endif
8723 _ACEOF
8724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8725 $EGREP "found" >/dev/null 2>&1; then :
8726 gcc_cv_decl_char_bit=yes
8727 else
8728 gcc_cv_decl_char_bit=no
8729 fi
8730 rm -f conftest*
8731
8732
8733 fi
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8735 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8736 if test $gcc_cv_decl_char_bit = no; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8738 $as_echo_n "checking number of bits in a byte... " >&6; }
8739 if test "${gcc_cv_c_nbby+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 i=8
8743 gcc_cv_c_nbby=
8744 while test $i -lt 65; do
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747
8748 int
8749 main ()
8750 {
8751 switch(0) {
8752 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8753 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8754 ; }
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_cxx_try_compile "$LINENO"; then :
8760 gcc_cv_c_nbby=$i; break
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 i=`expr $i + 1`
8764 done
8765 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8769 $as_echo "$gcc_cv_c_nbby" >&6; }
8770 if test $gcc_cv_c_nbby = failed; then
8771 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8772 else
8773
8774 cat >>confdefs.h <<_ACEOF
8775 #define CHAR_BIT $gcc_cv_c_nbby
8776 _ACEOF
8777
8778 fi
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8781 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8782 if test "${ac_cv_c_bigendian+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 ac_cv_c_bigendian=unknown
8786 # See if we're dealing with a universal compiler.
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #ifndef __APPLE_CC__
8790 not a universal capable compiler
8791 #endif
8792 typedef int dummy;
8793
8794 _ACEOF
8795 if ac_fn_cxx_try_compile "$LINENO"; then :
8796
8797 # Check for potential -arch flags. It is not universal unless
8798 # there are at least two -arch flags with different values.
8799 ac_arch=
8800 ac_prev=
8801 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8802 if test -n "$ac_prev"; then
8803 case $ac_word in
8804 i?86 | x86_64 | ppc | ppc64)
8805 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8806 ac_arch=$ac_word
8807 else
8808 ac_cv_c_bigendian=universal
8809 break
8810 fi
8811 ;;
8812 esac
8813 ac_prev=
8814 elif test "x$ac_word" = "x-arch"; then
8815 ac_prev=arch
8816 fi
8817 done
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 if test $ac_cv_c_bigendian = unknown; then
8821 # See if sys/param.h defines the BYTE_ORDER macro.
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 #include <sys/types.h>
8825 #include <sys/param.h>
8826
8827 int
8828 main ()
8829 {
8830 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8831 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8832 && LITTLE_ENDIAN)
8833 bogus endian macros
8834 #endif
8835
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841 # It does; now see whether it defined to BIG_ENDIAN or not.
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include <sys/types.h>
8845 #include <sys/param.h>
8846
8847 int
8848 main ()
8849 {
8850 #if BYTE_ORDER != BIG_ENDIAN
8851 not big endian
8852 #endif
8853
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_cxx_try_compile "$LINENO"; then :
8859 ac_cv_c_bigendian=yes
8860 else
8861 ac_cv_c_bigendian=no
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 if test $ac_cv_c_bigendian = unknown; then
8868 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <limits.h>
8872
8873 int
8874 main ()
8875 {
8876 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8877 bogus endian macros
8878 #endif
8879
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_cxx_try_compile "$LINENO"; then :
8885 # It does; now see whether it defined to _BIG_ENDIAN or not.
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <limits.h>
8889
8890 int
8891 main ()
8892 {
8893 #ifndef _BIG_ENDIAN
8894 not big endian
8895 #endif
8896
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_cxx_try_compile "$LINENO"; then :
8902 ac_cv_c_bigendian=yes
8903 else
8904 ac_cv_c_bigendian=no
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 fi
8910 if test $ac_cv_c_bigendian = unknown; then
8911 # Compile a test program.
8912 if test "$cross_compiling" = yes; then :
8913 # Try to guess by grepping values from an object file.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 short int ascii_mm[] =
8917 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8918 short int ascii_ii[] =
8919 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8920 int use_ascii (int i) {
8921 return ascii_mm[i] + ascii_ii[i];
8922 }
8923 short int ebcdic_ii[] =
8924 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8925 short int ebcdic_mm[] =
8926 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8927 int use_ebcdic (int i) {
8928 return ebcdic_mm[i] + ebcdic_ii[i];
8929 }
8930 extern int foo;
8931
8932 int
8933 main ()
8934 {
8935 return use_ascii (foo) == use_ebcdic (foo);
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_cxx_try_compile "$LINENO"; then :
8941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8942 ac_cv_c_bigendian=yes
8943 fi
8944 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8945 if test "$ac_cv_c_bigendian" = unknown; then
8946 ac_cv_c_bigendian=no
8947 else
8948 # finding both strings is unlikely to happen, but who knows?
8949 ac_cv_c_bigendian=unknown
8950 fi
8951 fi
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 int
8959 main ()
8960 {
8961
8962 /* Are we little or big endian? From Harbison&Steele. */
8963 union
8964 {
8965 long int l;
8966 char c[sizeof (long int)];
8967 } u;
8968 u.l = 1;
8969 return u.c[sizeof (long int) - 1] == 1;
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_cxx_try_run "$LINENO"; then :
8976 ac_cv_c_bigendian=no
8977 else
8978 ac_cv_c_bigendian=yes
8979 fi
8980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8981 conftest.$ac_objext conftest.beam conftest.$ac_ext
8982 fi
8983
8984 fi
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8987 $as_echo "$ac_cv_c_bigendian" >&6; }
8988 case $ac_cv_c_bigendian in #(
8989 yes)
8990 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8991 ;; #(
8992 no)
8993 ;; #(
8994 universal)
8995
8996 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8997
8998 ;; #(
8999 *)
9000 as_fn_error "unknown endianness
9001 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9002 esac
9003
9004
9005 # ----------------------
9006 # Checks for C++ headers
9007 # ----------------------
9008
9009 ac_ext=cpp
9010 ac_cpp='$CXXCPP $CPPFLAGS'
9011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9015 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9016 if test -z "$CXXCPP"; then
9017 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 # Double quotes because CXXCPP needs to be expanded
9021 for CXXCPP in "$CXX -E" "/lib/cpp"
9022 do
9023 ac_preproc_ok=false
9024 for ac_cxx_preproc_warn_flag in '' yes
9025 do
9026 # Use a header file that comes with gcc, so configuring glibc
9027 # with a fresh cross-compiler works.
9028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9029 # <limits.h> exists even on freestanding compilers.
9030 # On the NeXT, cc -E runs the code through the compiler's parser,
9031 # not just through cpp. "Syntax error" is here to catch this case.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 #ifdef __STDC__
9035 # include <limits.h>
9036 #else
9037 # include <assert.h>
9038 #endif
9039 Syntax error
9040 _ACEOF
9041 if ac_fn_cxx_try_cpp "$LINENO"; then :
9042
9043 else
9044 # Broken: fails on valid input.
9045 continue
9046 fi
9047 rm -f conftest.err conftest.$ac_ext
9048
9049 # OK, works on sane cases. Now check whether nonexistent headers
9050 # can be detected and how.
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <ac_nonexistent.h>
9054 _ACEOF
9055 if ac_fn_cxx_try_cpp "$LINENO"; then :
9056 # Broken: success on invalid input.
9057 continue
9058 else
9059 # Passes both tests.
9060 ac_preproc_ok=:
9061 break
9062 fi
9063 rm -f conftest.err conftest.$ac_ext
9064
9065 done
9066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9067 rm -f conftest.err conftest.$ac_ext
9068 if $ac_preproc_ok; then :
9069 break
9070 fi
9071
9072 done
9073 ac_cv_prog_CXXCPP=$CXXCPP
9074
9075 fi
9076 CXXCPP=$ac_cv_prog_CXXCPP
9077 else
9078 ac_cv_prog_CXXCPP=$CXXCPP
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9081 $as_echo "$CXXCPP" >&6; }
9082 ac_preproc_ok=false
9083 for ac_cxx_preproc_warn_flag in '' yes
9084 do
9085 # Use a header file that comes with gcc, so configuring glibc
9086 # with a fresh cross-compiler works.
9087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088 # <limits.h> exists even on freestanding compilers.
9089 # On the NeXT, cc -E runs the code through the compiler's parser,
9090 # not just through cpp. "Syntax error" is here to catch this case.
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #ifdef __STDC__
9094 # include <limits.h>
9095 #else
9096 # include <assert.h>
9097 #endif
9098 Syntax error
9099 _ACEOF
9100 if ac_fn_cxx_try_cpp "$LINENO"; then :
9101
9102 else
9103 # Broken: fails on valid input.
9104 continue
9105 fi
9106 rm -f conftest.err conftest.$ac_ext
9107
9108 # OK, works on sane cases. Now check whether nonexistent headers
9109 # can be detected and how.
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <ac_nonexistent.h>
9113 _ACEOF
9114 if ac_fn_cxx_try_cpp "$LINENO"; then :
9115 # Broken: success on invalid input.
9116 continue
9117 else
9118 # Passes both tests.
9119 ac_preproc_ok=:
9120 break
9121 fi
9122 rm -f conftest.err conftest.$ac_ext
9123
9124 done
9125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9126 rm -f conftest.err conftest.$ac_ext
9127 if $ac_preproc_ok; then :
9128
9129 else
9130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9133 See \`config.log' for more details." >&5
9134 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9135 See \`config.log' for more details." >&2;}; }
9136 fi
9137
9138 ac_ext=cpp
9139 ac_cpp='$CXXCPP $CPPFLAGS'
9140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9143
9144
9145 for ac_header in unordered_map
9146 do :
9147 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9148 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_UNORDERED_MAP 1
9151 _ACEOF
9152
9153 fi
9154 done
9155
9156 for ac_header in tr1/unordered_map
9157 do :
9158 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9159 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9160 cat >>confdefs.h <<_ACEOF
9161 #define HAVE_TR1_UNORDERED_MAP 1
9162 _ACEOF
9163
9164 fi
9165 done
9166
9167 for ac_header in ext/hash_map
9168 do :
9169 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9170 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_EXT_HASH_MAP 1
9173 _ACEOF
9174
9175 fi
9176 done
9177
9178
9179 # --------
9180 # Dependency checking.
9181 # --------
9182
9183 rm -rf .tst 2>/dev/null
9184 mkdir .tst 2>/dev/null
9185 if test -d .tst; then
9186 am__leading_dot=.
9187 else
9188 am__leading_dot=_
9189 fi
9190 rmdir .tst 2>/dev/null
9191
9192 DEPDIR="${am__leading_dot}deps"
9193
9194 ac_config_commands="$ac_config_commands depdir"
9195
9196
9197 ac_config_commands="$ac_config_commands gccdepdir"
9198
9199
9200 depcc="$CXX" am_compiler_list=
9201
9202 am_depcomp=$ac_aux_dir/depcomp
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9204 $as_echo_n "checking dependency style of $depcc... " >&6; }
9205 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 if test -f "$am_depcomp"; then
9209 # We make a subdir and do the tests there. Otherwise we can end up
9210 # making bogus files that we don't know about and never remove. For
9211 # instance it was reported that on HP-UX the gcc test will end up
9212 # making a dummy file named `D' -- because `-MD' means `put the output
9213 # in D'.
9214 mkdir conftest.dir
9215 # Copy depcomp to subdir because otherwise we won't find it if we're
9216 # using a relative directory.
9217 cp "$am_depcomp" conftest.dir
9218 cd conftest.dir
9219 # We will build objects and dependencies in a subdirectory because
9220 # it helps to detect inapplicable dependency modes. For instance
9221 # both Tru64's cc and ICC support -MD to output dependencies as a
9222 # side effect of compilation, but ICC will put the dependencies in
9223 # the current directory while Tru64 will put them in the object
9224 # directory.
9225 mkdir sub
9226
9227 am_cv_CXX_dependencies_compiler_type=none
9228 if test "$am_compiler_list" = ""; then
9229 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9230 fi
9231 for depmode in $am_compiler_list; do
9232 if test $depmode = none; then break; fi
9233
9234 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9235 # Setup a source with many dependencies, because some compilers
9236 # like to wrap large dependency lists on column 80 (with \), and
9237 # we should not choose a depcomp mode which is confused by this.
9238 #
9239 # We need to recreate these files for each test, as the compiler may
9240 # overwrite some of them when testing with obscure command lines.
9241 # This happens at least with the AIX C compiler.
9242 : > sub/conftest.c
9243 for i in 1 2 3 4 5 6; do
9244 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9245 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9246 # Solaris 8's {/usr,}/bin/sh.
9247 touch sub/conftst$i.h
9248 done
9249 echo "include sub/conftest.Po" > confmf
9250
9251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9252 # mode. It turns out that the SunPro C++ compiler does not properly
9253 # handle `-M -o', and we need to detect this.
9254 depcmd="depmode=$depmode \
9255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9258 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9259 if env $depcmd > conftest.err 2>&1 &&
9260 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9261 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9262 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9263 # icc doesn't choke on unknown options, it will just issue warnings
9264 # or remarks (even with -Werror). So we grep stderr for any message
9265 # that says an option was ignored or not supported.
9266 # When given -MP, icc 7.0 and 7.1 complain thusly:
9267 # icc: Command line warning: ignoring option '-M'; no argument required
9268 # The diagnosis changed in icc 8.0:
9269 # icc: Command line remark: option '-MP' not supported
9270 if (grep 'ignoring option' conftest.err ||
9271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9272 am_cv_CXX_dependencies_compiler_type=$depmode
9273 $as_echo "$as_me:$LINENO: success" >&5
9274 break
9275 fi
9276 fi
9277 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9278 sed -e 's/^/| /' < conftest.err >&5
9279 done
9280
9281 cd ..
9282 rm -rf conftest.dir
9283 else
9284 am_cv_CXX_dependencies_compiler_type=none
9285 fi
9286
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9289 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9290 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9291 then as_fn_error "no usable dependency style found" "$LINENO" 5
9292 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9293
9294 fi
9295
9296
9297 # --------
9298 # UNSORTED
9299 # --------
9300
9301
9302 # These libraries may be used by collect2.
9303 # We may need a special search path to get them linked.
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9305 $as_echo_n "checking for collect2 libraries... " >&6; }
9306 if test "${gcc_cv_collect2_libs+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 save_LIBS="$LIBS"
9310 for libs in '' -lld -lmld \
9311 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9312 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9313 do
9314 LIBS="$libs"
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char ldopen ();
9325 int
9326 main ()
9327 {
9328 return ldopen ();
9329 ;
9330 return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_cxx_try_link "$LINENO"; then :
9334 gcc_cv_collect2_libs="$libs"; break
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 done
9339 LIBS="$save_LIBS"
9340 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9343 $as_echo "$gcc_cv_collect2_libs" >&6; }
9344 case $gcc_cv_collect2_libs in
9345 "none required") ;;
9346 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9347 esac
9348
9349
9350 # When building Ada code on Alpha, we need exc_resume which is usually in
9351 # -lexc. So test for it.
9352 save_LIBS="$LIBS"
9353 LIBS=
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9355 $as_echo_n "checking for library containing exc_resume... " >&6; }
9356 if test "${ac_cv_search_exc_resume+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 ac_func_search_save_LIBS=$LIBS
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char exc_resume ();
9370 int
9371 main ()
9372 {
9373 return exc_resume ();
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 for ac_lib in '' exc; do
9379 if test -z "$ac_lib"; then
9380 ac_res="none required"
9381 else
9382 ac_res=-l$ac_lib
9383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9384 fi
9385 if ac_fn_cxx_try_link "$LINENO"; then :
9386 ac_cv_search_exc_resume=$ac_res
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext
9390 if test "${ac_cv_search_exc_resume+set}" = set; then :
9391 break
9392 fi
9393 done
9394 if test "${ac_cv_search_exc_resume+set}" = set; then :
9395
9396 else
9397 ac_cv_search_exc_resume=no
9398 fi
9399 rm conftest.$ac_ext
9400 LIBS=$ac_func_search_save_LIBS
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9403 $as_echo "$ac_cv_search_exc_resume" >&6; }
9404 ac_res=$ac_cv_search_exc_resume
9405 if test "$ac_res" != no; then :
9406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9407
9408 fi
9409
9410 GNAT_LIBEXC="$LIBS"
9411 LIBS="$save_LIBS"
9412
9413
9414 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9415 save_LIBS="$LIBS"
9416 LIBS=
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9418 $as_echo_n "checking for library containing kstat_open... " >&6; }
9419 if test "${ac_cv_search_kstat_open+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 ac_func_search_save_LIBS=$LIBS
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425
9426 /* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 char kstat_open ();
9433 int
9434 main ()
9435 {
9436 return kstat_open ();
9437 ;
9438 return 0;
9439 }
9440 _ACEOF
9441 for ac_lib in '' kstat; do
9442 if test -z "$ac_lib"; then
9443 ac_res="none required"
9444 else
9445 ac_res=-l$ac_lib
9446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9447 fi
9448 if ac_fn_cxx_try_link "$LINENO"; then :
9449 ac_cv_search_kstat_open=$ac_res
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext
9453 if test "${ac_cv_search_kstat_open+set}" = set; then :
9454 break
9455 fi
9456 done
9457 if test "${ac_cv_search_kstat_open+set}" = set; then :
9458
9459 else
9460 ac_cv_search_kstat_open=no
9461 fi
9462 rm conftest.$ac_ext
9463 LIBS=$ac_func_search_save_LIBS
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9466 $as_echo "$ac_cv_search_kstat_open" >&6; }
9467 ac_res=$ac_cv_search_kstat_open
9468 if test "$ac_res" != no; then :
9469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9470
9471 fi
9472
9473 EXTRA_GCC_LIBS="$LIBS"
9474 LIBS="$save_LIBS"
9475
9476
9477 # Some systems put ldexp and frexp in libm instead of libc; assume
9478 # they're both in the same place. jcf-dump needs them.
9479 save_LIBS="$LIBS"
9480 LIBS=
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9482 $as_echo_n "checking for library containing ldexp... " >&6; }
9483 if test "${ac_cv_search_ldexp+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 ac_func_search_save_LIBS=$LIBS
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9493 #ifdef __cplusplus
9494 extern "C"
9495 #endif
9496 char ldexp ();
9497 int
9498 main ()
9499 {
9500 return ldexp ();
9501 ;
9502 return 0;
9503 }
9504 _ACEOF
9505 for ac_lib in '' m; do
9506 if test -z "$ac_lib"; then
9507 ac_res="none required"
9508 else
9509 ac_res=-l$ac_lib
9510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9511 fi
9512 if ac_fn_cxx_try_link "$LINENO"; then :
9513 ac_cv_search_ldexp=$ac_res
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext
9517 if test "${ac_cv_search_ldexp+set}" = set; then :
9518 break
9519 fi
9520 done
9521 if test "${ac_cv_search_ldexp+set}" = set; then :
9522
9523 else
9524 ac_cv_search_ldexp=no
9525 fi
9526 rm conftest.$ac_ext
9527 LIBS=$ac_func_search_save_LIBS
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9530 $as_echo "$ac_cv_search_ldexp" >&6; }
9531 ac_res=$ac_cv_search_ldexp
9532 if test "$ac_res" != no; then :
9533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9534
9535 fi
9536
9537 LDEXP_LIB="$LIBS"
9538 LIBS="$save_LIBS"
9539
9540
9541 # Use <inttypes.h> only if it exists,
9542 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9543 # PRId64
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9545 $as_echo_n "checking for inttypes.h... " >&6; }
9546 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 #define __STDC_FORMAT_MACROS
9552 #include <sys/types.h>
9553 #include <inttypes.h>
9554 int
9555 main ()
9556 {
9557 intmax_t i = -1;
9558 #ifndef PRId64
9559 choke me
9560 #endif
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_cxx_try_compile "$LINENO"; then :
9566 gcc_cv_header_inttypes_h=yes
9567 else
9568 gcc_cv_header_inttypes_h=no
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571 fi
9572
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9574 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9575 if test $gcc_cv_header_inttypes_h = yes; then
9576
9577 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9578
9579 fi
9580
9581
9582
9583 for ac_func in times clock kill getrlimit setrlimit atoq \
9584 popen sysconf strsignal getrusage nl_langinfo \
9585 gettimeofday mbstowcs wcswidth mmap setlocale \
9586 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
9587 do :
9588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9590 eval as_val=\$$as_ac_var
9591 if test "x$as_val" = x""yes; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9594 _ACEOF
9595
9596 fi
9597 done
9598
9599
9600 if test x$ac_cv_func_mbstowcs = xyes; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9602 $as_echo_n "checking whether mbstowcs works... " >&6; }
9603 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 if test "$cross_compiling" = yes; then :
9607 gcc_cv_func_mbstowcs_works=yes
9608 else
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 #include <stdlib.h>
9612 int main()
9613 {
9614 mbstowcs(0, "", 0);
9615 return 0;
9616 }
9617 _ACEOF
9618 if ac_fn_cxx_try_run "$LINENO"; then :
9619 gcc_cv_func_mbstowcs_works=yes
9620 else
9621 gcc_cv_func_mbstowcs_works=no
9622 fi
9623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9624 conftest.$ac_objext conftest.beam conftest.$ac_ext
9625 fi
9626
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9629 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9630 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9631
9632 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9633
9634 fi
9635 fi
9636
9637 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9638 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9639
9640 else
9641
9642 cat >>confdefs.h <<_ACEOF
9643 #define ssize_t int
9644 _ACEOF
9645
9646 fi
9647
9648 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9649 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9650
9651 else
9652
9653 cat >>confdefs.h <<_ACEOF
9654 #define caddr_t char *
9655 _ACEOF
9656
9657 fi
9658
9659
9660
9661 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9662 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9663 gcc_header_sys_mman_h=yes
9664 else
9665 gcc_header_sys_mman_h=no
9666 fi
9667
9668 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9669 if test "x$ac_cv_func_mmap" = x""yes; then :
9670 gcc_func_mmap=yes
9671 else
9672 gcc_func_mmap=no
9673 fi
9674
9675 if test "$gcc_header_sys_mman_h" != yes \
9676 || test "$gcc_func_mmap" != yes; then
9677 gcc_cv_func_mmap_file=no
9678 gcc_cv_func_mmap_dev_zero=no
9679 gcc_cv_func_mmap_anon=no
9680 else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9682 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9683 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 # Add a system to this blacklist if
9687 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9688 # memory area containing the same data that you'd get if you applied
9689 # read() to the same fd. The only system known to have a problem here
9690 # is VMS, where text files have record structure.
9691 case "$host_os" in
9692 *vms* | ultrix*)
9693 gcc_cv_func_mmap_file=no ;;
9694 *)
9695 gcc_cv_func_mmap_file=yes;;
9696 esac
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9699 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9701 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9702 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 # Add a system to this blacklist if it has mmap() but /dev/zero
9706 # does not exist, or if mmapping /dev/zero does not give anonymous
9707 # zeroed pages with both the following properties:
9708 # 1. If you map N consecutive pages in with one call, and then
9709 # unmap any subset of those pages, the pages that were not
9710 # explicitly unmapped remain accessible.
9711 # 2. If you map two adjacent blocks of memory and then unmap them
9712 # both at once, they must both go away.
9713 # Systems known to be in this category are Windows (all variants),
9714 # VMS, and Darwin.
9715 case "$host_os" in
9716 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9717 gcc_cv_func_mmap_dev_zero=no ;;
9718 *)
9719 gcc_cv_func_mmap_dev_zero=yes;;
9720 esac
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9723 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9724
9725 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9727 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9728 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733 #include <sys/types.h>
9734 #include <sys/mman.h>
9735 #include <unistd.h>
9736
9737 #ifndef MAP_ANONYMOUS
9738 #define MAP_ANONYMOUS MAP_ANON
9739 #endif
9740
9741 int
9742 main ()
9743 {
9744 int n = MAP_ANONYMOUS;
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_cxx_try_compile "$LINENO"; then :
9750 gcc_cv_decl_map_anon=yes
9751 else
9752 gcc_cv_decl_map_anon=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9757 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9758
9759 if test $gcc_cv_decl_map_anon = no; then
9760 gcc_cv_func_mmap_anon=no
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9763 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9764 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9768 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9769 # doesn't give anonymous zeroed pages with the same properties listed
9770 # above for use of /dev/zero.
9771 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9772 case "$host_os" in
9773 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9774 gcc_cv_func_mmap_anon=no ;;
9775 *)
9776 gcc_cv_func_mmap_anon=yes;;
9777 esac
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9780 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9781 fi
9782 fi
9783
9784 if test $gcc_cv_func_mmap_file = yes; then
9785
9786 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9787
9788 fi
9789 if test $gcc_cv_func_mmap_dev_zero = yes; then
9790
9791 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9792
9793 fi
9794 if test $gcc_cv_func_mmap_anon = yes; then
9795
9796 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9797
9798 fi
9799
9800
9801 case "${host}" in
9802 *-*-*vms*)
9803 # Under VMS, vfork works very differently than on Unix. The standard test
9804 # won't work, and it isn't easily adaptable. It makes more sense to
9805 # just force it.
9806 ac_cv_func_vfork_works=yes
9807 ;;
9808 esac
9809 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9810 if test "x$ac_cv_type_pid_t" = x""yes; then :
9811
9812 else
9813
9814 cat >>confdefs.h <<_ACEOF
9815 #define pid_t int
9816 _ACEOF
9817
9818 fi
9819
9820 for ac_header in vfork.h
9821 do :
9822 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9823 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define HAVE_VFORK_H 1
9826 _ACEOF
9827
9828 fi
9829 done
9830
9831 for ac_func in fork vfork
9832 do :
9833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9835 eval as_val=\$$as_ac_var
9836 if test "x$as_val" = x""yes; then :
9837 cat >>confdefs.h <<_ACEOF
9838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9839 _ACEOF
9840
9841 fi
9842 done
9843
9844 if test "x$ac_cv_func_fork" = xyes; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9846 $as_echo_n "checking for working fork... " >&6; }
9847 if test "${ac_cv_func_fork_works+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test "$cross_compiling" = yes; then :
9851 ac_cv_func_fork_works=cross
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 int
9857 main ()
9858 {
9859
9860 /* By Ruediger Kuhlmann. */
9861 return fork () < 0;
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_cxx_try_run "$LINENO"; then :
9868 ac_cv_func_fork_works=yes
9869 else
9870 ac_cv_func_fork_works=no
9871 fi
9872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9873 conftest.$ac_objext conftest.beam conftest.$ac_ext
9874 fi
9875
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9878 $as_echo "$ac_cv_func_fork_works" >&6; }
9879
9880 else
9881 ac_cv_func_fork_works=$ac_cv_func_fork
9882 fi
9883 if test "x$ac_cv_func_fork_works" = xcross; then
9884 case $host in
9885 *-*-amigaos* | *-*-msdosdjgpp*)
9886 # Override, as these systems have only a dummy fork() stub
9887 ac_cv_func_fork_works=no
9888 ;;
9889 *)
9890 ac_cv_func_fork_works=yes
9891 ;;
9892 esac
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9894 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9895 fi
9896 ac_cv_func_vfork_works=$ac_cv_func_vfork
9897 if test "x$ac_cv_func_vfork" = xyes; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9899 $as_echo_n "checking for working vfork... " >&6; }
9900 if test "${ac_cv_func_vfork_works+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 if test "$cross_compiling" = yes; then :
9904 ac_cv_func_vfork_works=cross
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 /* Thanks to Paul Eggert for this test. */
9909 $ac_includes_default
9910 #include <sys/wait.h>
9911 #ifdef HAVE_VFORK_H
9912 # include <vfork.h>
9913 #endif
9914 /* On some sparc systems, changes by the child to local and incoming
9915 argument registers are propagated back to the parent. The compiler
9916 is told about this with #include <vfork.h>, but some compilers
9917 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9918 static variable whose address is put into a register that is
9919 clobbered by the vfork. */
9920 static void
9921 #ifdef __cplusplus
9922 sparc_address_test (int arg)
9923 # else
9924 sparc_address_test (arg) int arg;
9925 #endif
9926 {
9927 static pid_t child;
9928 if (!child) {
9929 child = vfork ();
9930 if (child < 0) {
9931 perror ("vfork");
9932 _exit(2);
9933 }
9934 if (!child) {
9935 arg = getpid();
9936 write(-1, "", 0);
9937 _exit (arg);
9938 }
9939 }
9940 }
9941
9942 int
9943 main ()
9944 {
9945 pid_t parent = getpid ();
9946 pid_t child;
9947
9948 sparc_address_test (0);
9949
9950 child = vfork ();
9951
9952 if (child == 0) {
9953 /* Here is another test for sparc vfork register problems. This
9954 test uses lots of local variables, at least as many local
9955 variables as main has allocated so far including compiler
9956 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9957 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9958 reuse the register of parent for one of the local variables,
9959 since it will think that parent can't possibly be used any more
9960 in this routine. Assigning to the local variable will thus
9961 munge parent in the parent process. */
9962 pid_t
9963 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9964 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9965 /* Convince the compiler that p..p7 are live; otherwise, it might
9966 use the same hardware register for all 8 local variables. */
9967 if (p != p1 || p != p2 || p != p3 || p != p4
9968 || p != p5 || p != p6 || p != p7)
9969 _exit(1);
9970
9971 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9972 from child file descriptors. If the child closes a descriptor
9973 before it execs or exits, this munges the parent's descriptor
9974 as well. Test for this by closing stdout in the child. */
9975 _exit(close(fileno(stdout)) != 0);
9976 } else {
9977 int status;
9978 struct stat st;
9979
9980 while (wait(&status) != child)
9981 ;
9982 return (
9983 /* Was there some problem with vforking? */
9984 child < 0
9985
9986 /* Did the child fail? (This shouldn't happen.) */
9987 || status
9988
9989 /* Did the vfork/compiler bug occur? */
9990 || parent != getpid()
9991
9992 /* Did the file descriptor bug occur? */
9993 || fstat(fileno(stdout), &st) != 0
9994 );
9995 }
9996 }
9997 _ACEOF
9998 if ac_fn_cxx_try_run "$LINENO"; then :
9999 ac_cv_func_vfork_works=yes
10000 else
10001 ac_cv_func_vfork_works=no
10002 fi
10003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10004 conftest.$ac_objext conftest.beam conftest.$ac_ext
10005 fi
10006
10007 fi
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10009 $as_echo "$ac_cv_func_vfork_works" >&6; }
10010
10011 fi;
10012 if test "x$ac_cv_func_fork_works" = xcross; then
10013 ac_cv_func_vfork_works=$ac_cv_func_vfork
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10015 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10016 fi
10017
10018 if test "x$ac_cv_func_vfork_works" = xyes; then
10019
10020 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10021
10022 else
10023
10024 $as_echo "#define vfork fork" >>confdefs.h
10025
10026 fi
10027 if test "x$ac_cv_func_fork_works" = xyes; then
10028
10029 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10030
10031 fi
10032
10033
10034
10035 if test "X$prefix" = "XNONE"; then
10036 acl_final_prefix="$ac_default_prefix"
10037 else
10038 acl_final_prefix="$prefix"
10039 fi
10040 if test "X$exec_prefix" = "XNONE"; then
10041 acl_final_exec_prefix='${prefix}'
10042 else
10043 acl_final_exec_prefix="$exec_prefix"
10044 fi
10045 acl_save_prefix="$prefix"
10046 prefix="$acl_final_prefix"
10047 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10048 prefix="$acl_save_prefix"
10049
10050
10051 # Check whether --with-gnu-ld was given.
10052 if test "${with_gnu_ld+set}" = set; then :
10053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10054 else
10055 with_gnu_ld=no
10056 fi
10057
10058 # Prepare PATH_SEPARATOR.
10059 # The user is always right.
10060 if test "${PATH_SEPARATOR+set}" != set; then
10061 echo "#! /bin/sh" >conf$$.sh
10062 echo "exit 0" >>conf$$.sh
10063 chmod +x conf$$.sh
10064 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10065 PATH_SEPARATOR=';'
10066 else
10067 PATH_SEPARATOR=:
10068 fi
10069 rm -f conf$$.sh
10070 fi
10071 ac_prog=ld
10072 if test "$GCC" = yes; then
10073 # Check if gcc -print-prog-name=ld gives a path.
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10075 $as_echo_n "checking for ld used by GCC... " >&6; }
10076 case $host in
10077 *-*-mingw*)
10078 # gcc leaves a trailing carriage return which upsets mingw
10079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10080 *)
10081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10082 esac
10083 case $ac_prog in
10084 # Accept absolute paths.
10085 [\\/]* | [A-Za-z]:[\\/]*)
10086 re_direlt='/[^/][^/]*/\.\./'
10087 # Canonicalize the path of ld
10088 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10089 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10090 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10091 done
10092 test -z "$LD" && LD="$ac_prog"
10093 ;;
10094 "")
10095 # If it fails, then pretend we aren't using GCC.
10096 ac_prog=ld
10097 ;;
10098 *)
10099 # If it is relative, then search for the first ld in PATH.
10100 with_gnu_ld=unknown
10101 ;;
10102 esac
10103 elif test "$with_gnu_ld" = yes; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10105 $as_echo_n "checking for GNU ld... " >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10108 $as_echo_n "checking for non-GNU ld... " >&6; }
10109 fi
10110 if test "${acl_cv_path_LD+set}" = set; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 if test -z "$LD"; then
10114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10115 for ac_dir in $PATH; do
10116 test -z "$ac_dir" && ac_dir=.
10117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10118 acl_cv_path_LD="$ac_dir/$ac_prog"
10119 # Check to see if the program is GNU ld. I'd rather use --version,
10120 # but apparently some GNU ld's only accept -v.
10121 # Break only if it was the GNU/non-GNU ld that we prefer.
10122 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10123 test "$with_gnu_ld" != no && break
10124 else
10125 test "$with_gnu_ld" != yes && break
10126 fi
10127 fi
10128 done
10129 IFS="$ac_save_ifs"
10130 else
10131 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10132 fi
10133 fi
10134
10135 LD="$acl_cv_path_LD"
10136 if test -n "$LD"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10138 $as_echo "$LD" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10145 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10146 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10150 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10151 acl_cv_prog_gnu_ld=yes
10152 else
10153 acl_cv_prog_gnu_ld=no
10154 fi
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10157 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10158 with_gnu_ld=$acl_cv_prog_gnu_ld
10159
10160
10161
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10163 $as_echo_n "checking for shared library run path origin... " >&6; }
10164 if test "${acl_cv_rpath+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167
10168 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10169 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10170 . ./conftest.sh
10171 rm -f ./conftest.sh
10172 acl_cv_rpath=done
10173
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10176 $as_echo "$acl_cv_rpath" >&6; }
10177 wl="$acl_cv_wl"
10178 libext="$acl_cv_libext"
10179 shlibext="$acl_cv_shlibext"
10180 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10181 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10182 hardcode_direct="$acl_cv_hardcode_direct"
10183 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10184 # Check whether --enable-rpath was given.
10185 if test "${enable_rpath+set}" = set; then :
10186 enableval=$enable_rpath; :
10187 else
10188 enable_rpath=yes
10189 fi
10190
10191
10192
10193
10194
10195
10196
10197
10198 use_additional=yes
10199
10200 acl_save_prefix="$prefix"
10201 prefix="$acl_final_prefix"
10202 acl_save_exec_prefix="$exec_prefix"
10203 exec_prefix="$acl_final_exec_prefix"
10204
10205 eval additional_includedir=\"$includedir\"
10206 eval additional_libdir=\"$libdir\"
10207
10208 exec_prefix="$acl_save_exec_prefix"
10209 prefix="$acl_save_prefix"
10210
10211
10212 # Check whether --with-libiconv-prefix was given.
10213 if test "${with_libiconv_prefix+set}" = set; then :
10214 withval=$with_libiconv_prefix;
10215 if test "X$withval" = "Xno"; then
10216 use_additional=no
10217 else
10218 if test "X$withval" = "X"; then
10219
10220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
10224
10225 eval additional_includedir=\"$includedir\"
10226 eval additional_libdir=\"$libdir\"
10227
10228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10230
10231 else
10232 additional_includedir="$withval/include"
10233 additional_libdir="$withval/lib"
10234 fi
10235 fi
10236
10237 fi
10238
10239 LIBICONV=
10240 LTLIBICONV=
10241 INCICONV=
10242 rpathdirs=
10243 ltrpathdirs=
10244 names_already_handled=
10245 names_next_round='iconv '
10246 while test -n "$names_next_round"; do
10247 names_this_round="$names_next_round"
10248 names_next_round=
10249 for name in $names_this_round; do
10250 already_handled=
10251 for n in $names_already_handled; do
10252 if test "$n" = "$name"; then
10253 already_handled=yes
10254 break
10255 fi
10256 done
10257 if test -z "$already_handled"; then
10258 names_already_handled="$names_already_handled $name"
10259 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10260 eval value=\"\$HAVE_LIB$uppername\"
10261 if test -n "$value"; then
10262 if test "$value" = yes; then
10263 eval value=\"\$LIB$uppername\"
10264 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10265 eval value=\"\$LTLIB$uppername\"
10266 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10267 else
10268 :
10269 fi
10270 else
10271 found_dir=
10272 found_la=
10273 found_so=
10274 found_a=
10275 if test $use_additional = yes; then
10276 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10277 found_dir="$additional_libdir"
10278 found_so="$additional_libdir/lib$name.$shlibext"
10279 if test -f "$additional_libdir/lib$name.la"; then
10280 found_la="$additional_libdir/lib$name.la"
10281 fi
10282 else
10283 if test -f "$additional_libdir/lib$name.$libext"; then
10284 found_dir="$additional_libdir"
10285 found_a="$additional_libdir/lib$name.$libext"
10286 if test -f "$additional_libdir/lib$name.la"; then
10287 found_la="$additional_libdir/lib$name.la"
10288 fi
10289 fi
10290 fi
10291 fi
10292 if test "X$found_dir" = "X"; then
10293 for x in $LDFLAGS $LTLIBICONV; do
10294
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10299 eval x=\"$x\"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10302
10303 case "$x" in
10304 -L*)
10305 dir=`echo "X$x" | sed -e 's/^X-L//'`
10306 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10307 found_dir="$dir"
10308 found_so="$dir/lib$name.$shlibext"
10309 if test -f "$dir/lib$name.la"; then
10310 found_la="$dir/lib$name.la"
10311 fi
10312 else
10313 if test -f "$dir/lib$name.$libext"; then
10314 found_dir="$dir"
10315 found_a="$dir/lib$name.$libext"
10316 if test -f "$dir/lib$name.la"; then
10317 found_la="$dir/lib$name.la"
10318 fi
10319 fi
10320 fi
10321 ;;
10322 esac
10323 if test "X$found_dir" != "X"; then
10324 break
10325 fi
10326 done
10327 fi
10328 if test "X$found_dir" != "X"; then
10329 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10330 if test "X$found_so" != "X"; then
10331 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10332 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10333 else
10334 haveit=
10335 for x in $ltrpathdirs; do
10336 if test "X$x" = "X$found_dir"; then
10337 haveit=yes
10338 break
10339 fi
10340 done
10341 if test -z "$haveit"; then
10342 ltrpathdirs="$ltrpathdirs $found_dir"
10343 fi
10344 if test "$hardcode_direct" = yes; then
10345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10346 else
10347 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10349 haveit=
10350 for x in $rpathdirs; do
10351 if test "X$x" = "X$found_dir"; then
10352 haveit=yes
10353 break
10354 fi
10355 done
10356 if test -z "$haveit"; then
10357 rpathdirs="$rpathdirs $found_dir"
10358 fi
10359 else
10360 haveit=
10361 for x in $LDFLAGS $LIBICONV; do
10362
10363 acl_save_prefix="$prefix"
10364 prefix="$acl_final_prefix"
10365 acl_save_exec_prefix="$exec_prefix"
10366 exec_prefix="$acl_final_exec_prefix"
10367 eval x=\"$x\"
10368 exec_prefix="$acl_save_exec_prefix"
10369 prefix="$acl_save_prefix"
10370
10371 if test "X$x" = "X-L$found_dir"; then
10372 haveit=yes
10373 break
10374 fi
10375 done
10376 if test -z "$haveit"; then
10377 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10378 fi
10379 if test "$hardcode_minus_L" != no; then
10380 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10381 else
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10383 fi
10384 fi
10385 fi
10386 fi
10387 else
10388 if test "X$found_a" != "X"; then
10389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10390 else
10391 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10392 fi
10393 fi
10394 additional_includedir=
10395 case "$found_dir" in
10396 */lib | */lib/)
10397 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10398 additional_includedir="$basedir/include"
10399 ;;
10400 esac
10401 if test "X$additional_includedir" != "X"; then
10402 if test "X$additional_includedir" != "X/usr/include"; then
10403 haveit=
10404 if test "X$additional_includedir" = "X/usr/local/include"; then
10405 if test -n "$GCC"; then
10406 case $host_os in
10407 linux*) haveit=yes;;
10408 esac
10409 fi
10410 fi
10411 if test -z "$haveit"; then
10412 for x in $CPPFLAGS $INCICONV; do
10413
10414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 acl_save_exec_prefix="$exec_prefix"
10417 exec_prefix="$acl_final_exec_prefix"
10418 eval x=\"$x\"
10419 exec_prefix="$acl_save_exec_prefix"
10420 prefix="$acl_save_prefix"
10421
10422 if test "X$x" = "X-I$additional_includedir"; then
10423 haveit=yes
10424 break
10425 fi
10426 done
10427 if test -z "$haveit"; then
10428 if test -d "$additional_includedir"; then
10429 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10430 fi
10431 fi
10432 fi
10433 fi
10434 fi
10435 if test -n "$found_la"; then
10436 save_libdir="$libdir"
10437 case "$found_la" in
10438 */* | *\\*) . "$found_la" ;;
10439 *) . "./$found_la" ;;
10440 esac
10441 libdir="$save_libdir"
10442 for dep in $dependency_libs; do
10443 case "$dep" in
10444 -L*)
10445 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10446 if test "X$additional_libdir" != "X/usr/lib"; then
10447 haveit=
10448 if test "X$additional_libdir" = "X/usr/local/lib"; then
10449 if test -n "$GCC"; then
10450 case $host_os in
10451 linux*) haveit=yes;;
10452 esac
10453 fi
10454 fi
10455 if test -z "$haveit"; then
10456 haveit=
10457 for x in $LDFLAGS $LIBICONV; do
10458
10459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10463 eval x=\"$x\"
10464 exec_prefix="$acl_save_exec_prefix"
10465 prefix="$acl_save_prefix"
10466
10467 if test "X$x" = "X-L$additional_libdir"; then
10468 haveit=yes
10469 break
10470 fi
10471 done
10472 if test -z "$haveit"; then
10473 if test -d "$additional_libdir"; then
10474 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10475 fi
10476 fi
10477 haveit=
10478 for x in $LDFLAGS $LTLIBICONV; do
10479
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10487
10488 if test "X$x" = "X-L$additional_libdir"; then
10489 haveit=yes
10490 break
10491 fi
10492 done
10493 if test -z "$haveit"; then
10494 if test -d "$additional_libdir"; then
10495 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10496 fi
10497 fi
10498 fi
10499 fi
10500 ;;
10501 -R*)
10502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10503 if test "$enable_rpath" != no; then
10504 haveit=
10505 for x in $rpathdirs; do
10506 if test "X$x" = "X$dir"; then
10507 haveit=yes
10508 break
10509 fi
10510 done
10511 if test -z "$haveit"; then
10512 rpathdirs="$rpathdirs $dir"
10513 fi
10514 haveit=
10515 for x in $ltrpathdirs; do
10516 if test "X$x" = "X$dir"; then
10517 haveit=yes
10518 break
10519 fi
10520 done
10521 if test -z "$haveit"; then
10522 ltrpathdirs="$ltrpathdirs $dir"
10523 fi
10524 fi
10525 ;;
10526 -l*)
10527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10528 ;;
10529 *.la)
10530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10531 ;;
10532 *)
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10534 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10535 ;;
10536 esac
10537 done
10538 fi
10539 else
10540 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10542 fi
10543 fi
10544 fi
10545 done
10546 done
10547 if test "X$rpathdirs" != "X"; then
10548 if test -n "$hardcode_libdir_separator"; then
10549 alldirs=
10550 for found_dir in $rpathdirs; do
10551 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10552 done
10553 acl_save_libdir="$libdir"
10554 libdir="$alldirs"
10555 eval flag=\"$hardcode_libdir_flag_spec\"
10556 libdir="$acl_save_libdir"
10557 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10558 else
10559 for found_dir in $rpathdirs; do
10560 acl_save_libdir="$libdir"
10561 libdir="$found_dir"
10562 eval flag=\"$hardcode_libdir_flag_spec\"
10563 libdir="$acl_save_libdir"
10564 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10565 done
10566 fi
10567 fi
10568 if test "X$ltrpathdirs" != "X"; then
10569 for found_dir in $ltrpathdirs; do
10570 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10571 done
10572 fi
10573
10574
10575
10576
10577
10578
10579
10580 am_save_CPPFLAGS="$CPPFLAGS"
10581
10582 for element in $INCICONV; do
10583 haveit=
10584 for x in $CPPFLAGS; do
10585
10586 acl_save_prefix="$prefix"
10587 prefix="$acl_final_prefix"
10588 acl_save_exec_prefix="$exec_prefix"
10589 exec_prefix="$acl_final_exec_prefix"
10590 eval x=\"$x\"
10591 exec_prefix="$acl_save_exec_prefix"
10592 prefix="$acl_save_prefix"
10593
10594 if test "X$x" = "X$element"; then
10595 haveit=yes
10596 break
10597 fi
10598 done
10599 if test -z "$haveit"; then
10600 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10601 fi
10602 done
10603
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10606 $as_echo_n "checking for iconv... " >&6; }
10607 if test "${am_cv_func_iconv+set}" = set; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610
10611 am_cv_func_iconv="no, consider installing GNU libiconv"
10612 am_cv_lib_iconv=no
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <stdlib.h>
10616 #include <iconv.h>
10617 int
10618 main ()
10619 {
10620 iconv_t cd = iconv_open("","");
10621 iconv(cd,NULL,NULL,NULL,NULL);
10622 iconv_close(cd);
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_cxx_try_link "$LINENO"; then :
10628 am_cv_func_iconv=yes
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 if test "$am_cv_func_iconv" != yes; then
10633 am_save_LIBS="$LIBS"
10634 LIBS="$LIBS $LIBICONV"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 #include <stdlib.h>
10638 #include <iconv.h>
10639 int
10640 main ()
10641 {
10642 iconv_t cd = iconv_open("","");
10643 iconv(cd,NULL,NULL,NULL,NULL);
10644 iconv_close(cd);
10645 ;
10646 return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_cxx_try_link "$LINENO"; then :
10650 am_cv_lib_iconv=yes
10651 am_cv_func_iconv=yes
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS="$am_save_LIBS"
10656 fi
10657
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10660 $as_echo "$am_cv_func_iconv" >&6; }
10661 if test "$am_cv_func_iconv" = yes; then
10662
10663 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10664
10665 fi
10666 if test "$am_cv_lib_iconv" = yes; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10668 $as_echo_n "checking how to link with libiconv... " >&6; }
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10670 $as_echo "$LIBICONV" >&6; }
10671 else
10672 CPPFLAGS="$am_save_CPPFLAGS"
10673 LIBICONV=
10674 LTLIBICONV=
10675 fi
10676
10677
10678
10679 if test "$am_cv_func_iconv" = yes; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10681 $as_echo_n "checking for iconv declaration... " >&6; }
10682 if test "${am_cv_proto_iconv+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688
10689 #include <stdlib.h>
10690 #include <iconv.h>
10691 extern
10692 #ifdef __cplusplus
10693 "C"
10694 #endif
10695 #if defined(__STDC__) || defined(__cplusplus)
10696 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10697 #else
10698 size_t iconv();
10699 #endif
10700
10701 int
10702 main ()
10703 {
10704
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_cxx_try_compile "$LINENO"; then :
10710 am_cv_proto_iconv_arg1=""
10711 else
10712 am_cv_proto_iconv_arg1="const"
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 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);"
10716 fi
10717
10718 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10720 }$am_cv_proto_iconv" >&5
10721 $as_echo "${ac_t:-
10722 }$am_cv_proto_iconv" >&6; }
10723
10724 cat >>confdefs.h <<_ACEOF
10725 #define ICONV_CONST $am_cv_proto_iconv_arg1
10726 _ACEOF
10727
10728 fi
10729
10730
10731 # Until we have in-tree GNU iconv:
10732 LIBICONV_DEP=
10733
10734
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10737 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10738 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 #include <locale.h>
10744 int
10745 main ()
10746 {
10747 return LC_MESSAGES
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753 am_cv_val_LC_MESSAGES=yes
10754 else
10755 am_cv_val_LC_MESSAGES=no
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10761 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10762 if test $am_cv_val_LC_MESSAGES = yes; then
10763
10764 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10765
10766 fi
10767
10768
10769
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10771 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10772 if test "${am_cv_langinfo_codeset+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <langinfo.h>
10778 int
10779 main ()
10780 {
10781 char* cs = nl_langinfo(CODESET);
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 if ac_fn_cxx_try_link "$LINENO"; then :
10787 am_cv_langinfo_codeset=yes
10788 else
10789 am_cv_langinfo_codeset=no
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10796 $as_echo "$am_cv_langinfo_codeset" >&6; }
10797 if test $am_cv_langinfo_codeset = yes; then
10798
10799 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10800
10801 fi
10802
10803
10804 # We will need to find libiberty.h and ansidecl.h
10805 saved_CFLAGS="$CFLAGS"
10806 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10807 saved_CXXFLAGS="$CXXFLAGS"
10808 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10809
10810 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10811 # normal autoconf function for these. But force definition of
10812 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10813 # basename handling in libiberty.h.
10814 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10815 #undef HAVE_DECL_BASENAME
10816 #define HAVE_DECL_BASENAME 1
10817 #include \"ansidecl.h\"
10818 #include \"system.h\"
10819 "
10820 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10821 ac_have_decl=1
10822 else
10823 ac_have_decl=0
10824 fi
10825
10826 cat >>confdefs.h <<_ACEOF
10827 #define HAVE_DECL_BASENAME $ac_have_decl
10828 _ACEOF
10829 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10830 #undef HAVE_DECL_BASENAME
10831 #define HAVE_DECL_BASENAME 1
10832 #include \"ansidecl.h\"
10833 #include \"system.h\"
10834 "
10835 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10836 ac_have_decl=1
10837 else
10838 ac_have_decl=0
10839 fi
10840
10841 cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_STRSTR $ac_have_decl
10843 _ACEOF
10844
10845
10846 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10847 madvise stpcpy strnlen strsignal strverscmp \
10848 strtol strtoul strtoll strtoull \
10849 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10850 free 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
10851 do
10852 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10854 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10855 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #undef $ac_tr_decl
10861 #define $ac_tr_decl 1
10862
10863 #include "ansidecl.h"
10864 #include "system.h"
10865
10866 int
10867 main ()
10868 {
10869 #ifndef $ac_func
10870 char *(*pfn) = (char *(*)) $ac_func ;
10871 #endif
10872 ;
10873 return 0;
10874 }
10875 _ACEOF
10876 if ac_fn_cxx_try_compile "$LINENO"; then :
10877 eval "gcc_cv_have_decl_$ac_func=yes"
10878 else
10879 eval "gcc_cv_have_decl_$ac_func=no"
10880 fi
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 fi
10883
10884 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10887 #define $ac_tr_decl 1
10888 _ACEOF
10889
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10893 #define $ac_tr_decl 0
10894 _ACEOF
10895
10896 fi
10897
10898 done
10899
10900
10901 for ac_func in getrlimit setrlimit getrusage
10902 do
10903 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10905 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10906 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911 #undef $ac_tr_decl
10912 #define $ac_tr_decl 1
10913
10914 #include "ansidecl.h"
10915 #include "system.h"
10916 #ifdef HAVE_SYS_RESOURCE_H
10917 #include <sys/resource.h>
10918 #endif
10919
10920
10921 int
10922 main ()
10923 {
10924 #ifndef $ac_func
10925 char *(*pfn) = (char *(*)) $ac_func ;
10926 #endif
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 if ac_fn_cxx_try_compile "$LINENO"; then :
10932 eval "gcc_cv_have_decl_$ac_func=yes"
10933 else
10934 eval "gcc_cv_have_decl_$ac_func=no"
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 fi
10938
10939 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10941 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10942 #define $ac_tr_decl 1
10943 _ACEOF
10944
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10948 #define $ac_tr_decl 0
10949 _ACEOF
10950
10951 fi
10952
10953 done
10954
10955
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958
10959 #include "ansidecl.h"
10960 #include "system.h"
10961 #ifdef HAVE_SYS_RESOURCE_H
10962 #include <sys/resource.h>
10963 #endif
10964
10965 int
10966 main ()
10967 {
10968 rlim_t l = 0;
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_cxx_try_compile "$LINENO"; then :
10974
10975 else
10976
10977 $as_echo "#define rlim_t long" >>confdefs.h
10978
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981
10982 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10983 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10984 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10985 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10986 for ac_func in ldgetname
10987 do
10988 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10990 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10991 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #undef $ac_tr_decl
10997 #define $ac_tr_decl 1
10998
10999 #include "ansidecl.h"
11000 #include "system.h"
11001 #ifdef HAVE_LDFCN_H
11002 #undef FREAD
11003 #undef FWRITE
11004 #include <ldfcn.h>
11005 #endif
11006
11007
11008 int
11009 main ()
11010 {
11011 #ifndef $ac_func
11012 char *(*pfn) = (char *(*)) $ac_func ;
11013 #endif
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_cxx_try_compile "$LINENO"; then :
11019 eval "gcc_cv_have_decl_$ac_func=yes"
11020 else
11021 eval "gcc_cv_have_decl_$ac_func=no"
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 fi
11025
11026 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11028 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11029 #define $ac_tr_decl 1
11030 _ACEOF
11031
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11035 #define $ac_tr_decl 0
11036 _ACEOF
11037
11038 fi
11039
11040 done
11041
11042
11043 for ac_func in times
11044 do
11045 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11047 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11048 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 #undef $ac_tr_decl
11054 #define $ac_tr_decl 1
11055
11056 #include "ansidecl.h"
11057 #include "system.h"
11058 #ifdef HAVE_SYS_TIMES_H
11059 #include <sys/times.h>
11060 #endif
11061
11062
11063 int
11064 main ()
11065 {
11066 #ifndef $ac_func
11067 char *(*pfn) = (char *(*)) $ac_func ;
11068 #endif
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_cxx_try_compile "$LINENO"; then :
11074 eval "gcc_cv_have_decl_$ac_func=yes"
11075 else
11076 eval "gcc_cv_have_decl_$ac_func=no"
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 fi
11080
11081 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11084 #define $ac_tr_decl 1
11085 _ACEOF
11086
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11090 #define $ac_tr_decl 0
11091 _ACEOF
11092
11093 fi
11094
11095 done
11096
11097
11098 for ac_func in sigaltstack
11099 do
11100 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11102 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11103 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 #undef $ac_tr_decl
11109 #define $ac_tr_decl 1
11110
11111 #include "ansidecl.h"
11112 #include "system.h"
11113 #include <signal.h>
11114
11115
11116 int
11117 main ()
11118 {
11119 #ifndef $ac_func
11120 char *(*pfn) = (char *(*)) $ac_func ;
11121 #endif
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_cxx_try_compile "$LINENO"; then :
11127 eval "gcc_cv_have_decl_$ac_func=yes"
11128 else
11129 eval "gcc_cv_have_decl_$ac_func=no"
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 fi
11133
11134 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11136 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11137 #define $ac_tr_decl 1
11138 _ACEOF
11139
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11143 #define $ac_tr_decl 0
11144 _ACEOF
11145
11146 fi
11147
11148 done
11149
11150
11151 # More time-related stuff.
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11153 $as_echo_n "checking for struct tms... " >&6; }
11154 if test "${ac_cv_struct_tms+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160
11161 #include "ansidecl.h"
11162 #include "system.h"
11163 #ifdef HAVE_SYS_TIMES_H
11164 #include <sys/times.h>
11165 #endif
11166
11167 int
11168 main ()
11169 {
11170 struct tms tms;
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_cxx_try_compile "$LINENO"; then :
11176 ac_cv_struct_tms=yes
11177 else
11178 ac_cv_struct_tms=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11183 $as_echo "$ac_cv_struct_tms" >&6; }
11184 if test $ac_cv_struct_tms = yes; then
11185
11186 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11187
11188 fi
11189
11190 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11191 # revisit after autoconf 2.50.
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11193 $as_echo_n "checking for clock_t... " >&6; }
11194 if test "${gcc_cv_type_clock_t+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200
11201 #include "ansidecl.h"
11202 #include "system.h"
11203
11204 int
11205 main ()
11206 {
11207 clock_t x;
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_cxx_try_compile "$LINENO"; then :
11213 gcc_cv_type_clock_t=yes
11214 else
11215 gcc_cv_type_clock_t=no
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11220 $as_echo "$gcc_cv_type_clock_t" >&6; }
11221 if test $gcc_cv_type_clock_t = yes; then
11222
11223 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11224
11225 fi
11226
11227 # Check if F_SETLKW is supported by fcntl.
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11229 $as_echo_n "checking for F_SETLKW... " >&6; }
11230 if test "${ac_cv_f_setlkw+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236
11237 #include <fcntl.h>
11238 int
11239 main ()
11240 {
11241
11242 struct flock fl;
11243 fl.l_whence = 0;
11244 fl.l_start = 0;
11245 fl.l_len = 0;
11246 fl.l_pid = 0;
11247 return fcntl (1, F_SETLKW, &fl);
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_cxx_try_compile "$LINENO"; then :
11253 ac_cv_f_setlkw=yes
11254 else
11255 ac_cv_f_setlkw=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11260 $as_echo "$ac_cv_f_setlkw" >&6; }
11261 if test $ac_cv_f_setlkw = yes; then
11262
11263 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11264
11265 fi
11266
11267 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11268 CFLAGS="$saved_CFLAGS"
11269 CXXFLAGS="$saved_CXXFLAGS"
11270
11271 # mkdir takes a single argument on some systems.
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11273 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11274 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279
11280 #include <sys/types.h>
11281 #ifdef HAVE_SYS_STAT_H
11282 # include <sys/stat.h>
11283 #endif
11284 #ifdef HAVE_UNISTD_H
11285 # include <unistd.h>
11286 #endif
11287 #ifdef HAVE_DIRECT_H
11288 # include <direct.h>
11289 #endif
11290 int
11291 main ()
11292 {
11293 mkdir ("foo", 0);
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_cxx_try_compile "$LINENO"; then :
11299 gcc_cv_mkdir_takes_one_arg=no
11300 else
11301 gcc_cv_mkdir_takes_one_arg=yes
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11306 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11307 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11308
11309 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11310
11311 fi
11312
11313
11314 # File extensions
11315 manext='.1'
11316 objext='.o'
11317
11318
11319
11320 # With Setjmp/Longjmp based exception handling.
11321 # Check whether --enable-sjlj-exceptions was given.
11322 if test "${enable_sjlj_exceptions+set}" = set; then :
11323 enableval=$enable_sjlj_exceptions; case $target in
11324 *-*-hpux10*)
11325 if test $enableval != yes; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11327 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11328 enableval=yes
11329 fi
11330 ;;
11331 esac
11332 force_sjlj_exceptions=yes
11333 else
11334 case $target in
11335 *-*-hpux10*)
11336 force_sjlj_exceptions=yes
11337 enableval=yes
11338 ;;
11339 lm32*-*-*)
11340 force_sjlj_exceptions=yes
11341 enableval=yes
11342 ;;
11343 *)
11344 force_sjlj_exceptions=no
11345 ;;
11346 esac
11347 fi
11348
11349 if test $force_sjlj_exceptions = yes; then
11350 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11351
11352 cat >>confdefs.h <<_ACEOF
11353 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11354 _ACEOF
11355
11356 fi
11357
11358 # --------------------------------------------------------
11359 # Build, host, and target specific configuration fragments
11360 # --------------------------------------------------------
11361
11362 # Collect build-machine-specific information.
11363 . ${srcdir}/config.build
11364
11365 # Collect host-machine-specific information.
11366 . ${srcdir}/config.host
11367
11368 target_gtfiles=
11369
11370 # Collect target-machine-specific information.
11371 . ${srcdir}/config.gcc
11372
11373 extra_objs="${host_extra_objs} ${extra_objs}"
11374 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11375
11376 # Default the target-machine variables that were not explicitly set.
11377 if test x"$tm_file" = x
11378 then tm_file=$cpu_type/$cpu_type.h; fi
11379
11380 if test x"$extra_headers" = x
11381 then extra_headers=; fi
11382
11383 if test x$md_file = x
11384 then md_file=$cpu_type/$cpu_type.md; fi
11385
11386 if test x$out_file = x
11387 then out_file=$cpu_type/$cpu_type.c; fi
11388
11389 if test x"$tmake_file" = x
11390 then tmake_file=$cpu_type/t-$cpu_type
11391 fi
11392
11393 # Support --enable-initfini-array.
11394 if test x$enable_initfini_array != xno; then
11395 tm_file="${tm_file} initfini-array.h"
11396 fi
11397
11398 if test x"$dwarf2" = xyes
11399 then tm_file="$tm_file tm-dwarf2.h"
11400 fi
11401
11402 # Say what files are being used for the output code and MD file.
11403 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11404 echo "Using \`$srcdir/config/$md_file' as machine description file."
11405
11406 # If any of the xm_file variables contain nonexistent files, warn
11407 # about them and drop them.
11408
11409 bx=
11410 for x in $build_xm_file; do
11411 if test -f $srcdir/config/$x
11412 then bx="$bx $x"
11413 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11414 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11415 fi
11416 done
11417 build_xm_file="$bx"
11418
11419 hx=
11420 for x in $host_xm_file; do
11421 if test -f $srcdir/config/$x
11422 then hx="$hx $x"
11423 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11424 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11425 fi
11426 done
11427 host_xm_file="$hx"
11428
11429 tx=
11430 for x in $xm_file; do
11431 if test -f $srcdir/config/$x
11432 then tx="$tx $x"
11433 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11434 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11435 fi
11436 done
11437 xm_file="$tx"
11438
11439 count=a
11440 for f in $tm_file; do
11441 count=${count}x
11442 done
11443 if test $count = ax; then
11444 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11445 else
11446 echo "Using the following target machine macro files:"
11447 for f in $tm_file; do
11448 echo " $srcdir/config/$f"
11449 done
11450 fi
11451
11452 if test x$use_long_long_for_widest_fast_int = xyes; then
11453
11454 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11455
11456 fi
11457
11458 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11459
11460 cat >>confdefs.h <<_ACEOF
11461 #define HAVE_GNU_LD $gnu_ld_bool
11462 _ACEOF
11463
11464
11465 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11466
11467 cat >>confdefs.h <<_ACEOF
11468 #define HAVE_GNU_AS $gnu_as_bool
11469 _ACEOF
11470
11471
11472 count=a
11473 for f in $host_xm_file; do
11474 count=${count}x
11475 done
11476 if test $count = a; then
11477 :
11478 elif test $count = ax; then
11479 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11480 else
11481 echo "Using the following host machine macro files:"
11482 for f in $host_xm_file; do
11483 echo " $srcdir/config/$f"
11484 done
11485 fi
11486 echo "Using ${out_host_hook_obj} for host machine hooks."
11487
11488 if test "$host_xm_file" != "$build_xm_file"; then
11489 count=a
11490 for f in $build_xm_file; do
11491 count=${count}x
11492 done
11493 if test $count = a; then
11494 :
11495 elif test $count = ax; then
11496 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11497 else
11498 echo "Using the following build machine macro files:"
11499 for f in $build_xm_file; do
11500 echo " $srcdir/config/$f"
11501 done
11502 fi
11503 fi
11504
11505 if test -n "$configured_native_system_header_dir"; then
11506 native_system_header_dir=$configured_native_system_header_dir
11507 fi
11508 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11509
11510
11511 case ${host} in
11512 powerpc*-*-darwin*)
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11514 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11515 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520
11521 #include <sys/cdefs.h>
11522 #include <sys/signal.h>
11523 #include <ucontext.h>
11524 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11525
11526 _ACEOF
11527 if ac_fn_cxx_try_compile "$LINENO"; then :
11528 gcc_cv_mcontext_underscores=no
11529 else
11530 gcc_cv_mcontext_underscores=yes
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11535 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11536 if test $gcc_cv_mcontext_underscores = yes; then
11537
11538 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11539
11540 fi
11541 ;;
11542 esac
11543
11544 # ---------
11545 # Threading
11546 # ---------
11547
11548 # Check if a valid thread package
11549 case ${enable_threads} in
11550 "" | no)
11551 # No threads
11552 target_thread_file='single'
11553 ;;
11554 yes)
11555 # default
11556 target_thread_file='single'
11557 ;;
11558 aix | dce | lynx | mipssde | posix | rtems | \
11559 single | tpf | vxworks | win32)
11560 target_thread_file=${enable_threads}
11561 ;;
11562 *)
11563 echo "${enable_threads} is an unknown thread package" 1>&2
11564 exit 1
11565 ;;
11566 esac
11567
11568 if test x${thread_file} = x; then
11569 # No thread file set by target-specific clauses in config.gcc,
11570 # so use file chosen by default logic above
11571 thread_file=${target_thread_file}
11572 fi
11573
11574 # --------
11575 # UNSORTED
11576 # --------
11577
11578 use_cxa_atexit=no
11579 if test x$enable___cxa_atexit = xyes || \
11580 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11581 if test x$host = x$target; then
11582 case $host in
11583 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11584 # keyed to flag_use_cxa_atexit
11585 *-*-mingw32*)
11586 use_cxa_atexit=yes
11587 ;;
11588 powerpc-ibm-aix*)
11589 use_cxa_atexit=yes
11590 ;;
11591 *)
11592 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11593 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11594 use_cxa_atexit=yes
11595 else
11596 echo "__cxa_atexit can't be enabled on this target"
11597 fi
11598
11599 ;;
11600 esac
11601 else
11602 # We can't check for __cxa_atexit when building a cross, so assume
11603 # it is available
11604 use_cxa_atexit=yes
11605 fi
11606 if test x$use_cxa_atexit = xyes; then
11607
11608 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11609
11610 fi
11611 fi
11612
11613 # Look for a file containing extra machine modes.
11614 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11615 extra_modes_file='$(srcdir)'/config/${extra_modes}
11616
11617
11618 cat >>confdefs.h <<_ACEOF
11619 #define EXTRA_MODES_FILE "config/$extra_modes"
11620 _ACEOF
11621
11622 fi
11623
11624 # Convert extra_options into a form suitable for Makefile use.
11625 extra_opt_files=
11626 all_opt_files=
11627 for f in $extra_options; do
11628 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11629 all_opt_files="$all_opt_files $srcdir/config/$f"
11630 done
11631
11632
11633 # auto-host.h is the file containing items generated by autoconf and is
11634 # the first file included by config.h.
11635 # If host=build, it is correct to have bconfig include auto-host.h
11636 # as well. If host!=build, we are in error and need to do more
11637 # work to find out the build config parameters.
11638 if test x$host = x$build
11639 then
11640 build_auto=auto-host.h
11641 else
11642 # We create a subdir, then run autoconf in the subdir.
11643 # To prevent recursion we set host and build for the new
11644 # invocation of configure to the build for this invocation
11645 # of configure.
11646 tempdir=build.$$
11647 rm -rf $tempdir
11648 mkdir $tempdir
11649 cd $tempdir
11650 case ${srcdir} in
11651 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11652 *) realsrcdir=../${srcdir};;
11653 esac
11654 # Clearing GMPINC is necessary to prevent host headers being
11655 # used by the build compiler. Defining GENERATOR_FILE stops
11656 # system.h from including gmp.h.
11657 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11658 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11659 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11660 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11661 ${realsrcdir}/configure \
11662 --enable-languages=${enable_languages-all} \
11663 --target=$target_alias --host=$build_alias --build=$build_alias
11664
11665 # We just finished tests for the build machine, so rename
11666 # the file auto-build.h in the gcc directory.
11667 mv auto-host.h ../auto-build.h
11668 cd ..
11669 rm -rf $tempdir
11670 build_auto=auto-build.h
11671 fi
11672
11673
11674 tm_file="${tm_file} defaults.h"
11675 tm_p_file="${tm_p_file} tm-preds.h"
11676 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11677 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11678 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11679 # put this back in temporarily.
11680 xm_file="auto-host.h ansidecl.h ${xm_file}"
11681
11682 # --------
11683 # UNSORTED
11684 # --------
11685
11686 # Compile in configure arguments.
11687 if test -f configargs.h ; then
11688 # Being re-configured.
11689 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11690 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11691 else
11692 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11693 fi
11694
11695 # Double all backslashes and backslash all quotes to turn
11696 # gcc_config_arguments into a C string.
11697 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11698 $gcc_config_arguments
11699 EOF
11700 gcc_config_arguments_str=`cat conftest.out`
11701 rm -f conftest.out
11702
11703 cat > configargs.h <<EOF
11704 /* Generated automatically. */
11705 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11706 static const char thread_model[] = "$thread_file";
11707
11708 static const struct {
11709 const char *name, *value;
11710 } configure_default_options[] = $configure_default_options;
11711 EOF
11712
11713 gcc_BASEVER=`cat $srcdir/BASE-VER`
11714 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11715 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11716 if test -f $srcdir/REVISION ; then
11717 gcc_REVISION=`cat $srcdir/REVISION`
11718 else
11719 gcc_REVISION=""
11720 fi
11721 cat > plugin-version.h <<EOF
11722 #include "configargs.h"
11723
11724 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11725 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11726 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11727 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11728
11729 static char basever[] = "$gcc_BASEVER";
11730 static char datestamp[] = "$gcc_DATESTAMP";
11731 static char devphase[] = "$gcc_DEVPHASE";
11732 static char revision[] = "$gcc_REVISION";
11733
11734 /* FIXME plugins: We should make the version information more precise.
11735 One way to do is to add a checksum. */
11736
11737 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11738 devphase, revision,
11739 configuration_arguments};
11740 EOF
11741
11742 # Internationalization
11743 # If we haven't got the data from the intl directory,
11744 # assume NLS is disabled.
11745 USE_NLS=no
11746 LIBINTL=
11747 LIBINTL_DEP=
11748 INCINTL=
11749 XGETTEXT=
11750 GMSGFMT=
11751 POSUB=
11752
11753 if test -f ../intl/config.intl; then
11754 . ../intl/config.intl
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11757 $as_echo_n "checking whether NLS is requested... " >&6; }
11758 if test x"$USE_NLS" != xyes; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763 $as_echo "yes" >&6; }
11764
11765 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11766
11767
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11769 $as_echo_n "checking for catalogs to be installed... " >&6; }
11770 # Look for .po and .gmo files in the source directory.
11771 CATALOGS=
11772 XLINGUAS=
11773 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11774 # If there aren't any .gmo files the shell will give us the
11775 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11776 # weeded out.
11777 case "$cat" in *\**)
11778 continue;;
11779 esac
11780 # The quadruple backslash is collapsed to a double backslash
11781 # by the backticks, then collapsed again by the double quotes,
11782 # leaving us with one backslash in the sed expression (right
11783 # before the dot that mustn't act as a wildcard).
11784 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11785 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11786 # The user is allowed to set LINGUAS to a list of languages to
11787 # install catalogs for. If it's empty that means "all of them."
11788 if test "x$LINGUAS" = x; then
11789 CATALOGS="$CATALOGS $cat"
11790 XLINGUAS="$XLINGUAS $lang"
11791 else
11792 case "$LINGUAS" in *$lang*)
11793 CATALOGS="$CATALOGS $cat"
11794 XLINGUAS="$XLINGUAS $lang"
11795 ;;
11796 esac
11797 fi
11798 done
11799 LINGUAS="$XLINGUAS"
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11801 $as_echo "$LINGUAS" >&6; }
11802
11803
11804 DATADIRNAME=share
11805
11806 INSTOBJEXT=.mo
11807
11808 GENCAT=gencat
11809
11810 CATOBJEXT=.gmo
11811
11812 fi
11813
11814 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11815 # -liconv on the link line twice.
11816 case "$LIBINTL" in *$LIBICONV*)
11817 LIBICONV= ;;
11818 esac
11819
11820 # Check whether --enable-secureplt was given.
11821 if test "${enable_secureplt+set}" = set; then :
11822 enableval=$enable_secureplt;
11823 fi
11824
11825
11826 # Check whether --enable-leading-mingw64-underscores was given.
11827 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11828 enableval=$enable_leading_mingw64_underscores;
11829 fi
11830
11831 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11832
11833 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11834
11835 fi
11836
11837 # Check whether --enable-cld was given.
11838 if test "${enable_cld+set}" = set; then :
11839 enableval=$enable_cld;
11840 else
11841 enable_cld=no
11842 fi
11843
11844
11845 # Check whether --enable-frame-pointer was given.
11846 if test "${enable_frame_pointer+set}" = set; then :
11847 enableval=$enable_frame_pointer;
11848 else
11849
11850 case $target_os in
11851 linux* | darwin[8912]*)
11852 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11853 # DWARF2.
11854 enable_frame_pointer=no
11855 ;;
11856 *)
11857 enable_frame_pointer=yes
11858 ;;
11859 esac
11860
11861 fi
11862
11863
11864 # Windows32 Registry support for specifying GCC installation paths.
11865 # Check whether --enable-win32-registry was given.
11866 if test "${enable_win32_registry+set}" = set; then :
11867 enableval=$enable_win32_registry;
11868 fi
11869
11870
11871 case $host_os in
11872 win32 | pe | cygwin* | mingw32* | uwin*)
11873 if test "x$enable_win32_registry" != xno; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11875 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11876 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_func_search_save_LIBS=$LIBS
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char RegOpenKeyExA ();
11890 int
11891 main ()
11892 {
11893 return RegOpenKeyExA ();
11894 ;
11895 return 0;
11896 }
11897 _ACEOF
11898 for ac_lib in '' advapi32; do
11899 if test -z "$ac_lib"; then
11900 ac_res="none required"
11901 else
11902 ac_res=-l$ac_lib
11903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11904 fi
11905 if ac_fn_cxx_try_link "$LINENO"; then :
11906 ac_cv_search_RegOpenKeyExA=$ac_res
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext
11910 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11911 break
11912 fi
11913 done
11914 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11915
11916 else
11917 ac_cv_search_RegOpenKeyExA=no
11918 fi
11919 rm conftest.$ac_ext
11920 LIBS=$ac_func_search_save_LIBS
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11923 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11924 ac_res=$ac_cv_search_RegOpenKeyExA
11925 if test "$ac_res" != no; then :
11926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11927
11928 else
11929 enable_win32_registry=no
11930 fi
11931
11932 fi
11933
11934 if test "x$enable_win32_registry" != xno; then
11935
11936 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11937
11938
11939 if test "x$enable_win32_registry" != xyes \
11940 && test "x$enable_win32_registry" != x; then
11941
11942 cat >>confdefs.h <<_ACEOF
11943 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11944 _ACEOF
11945
11946 fi
11947 fi
11948 ;;
11949 esac
11950
11951 # Get an absolute path to the GCC top-level source directory
11952 holddir=`${PWDCMD-pwd}`
11953 cd $srcdir
11954 topdir=`${PWDCMD-pwd}`
11955 cd $holddir
11956
11957 # Conditionalize the makefile for this host machine.
11958 xmake_file=
11959 for f in ${host_xmake_file}
11960 do
11961 if test -f ${srcdir}/config/$f
11962 then
11963 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11964 fi
11965 done
11966
11967 # Conditionalize the makefile for this target machine.
11968 tmake_file_=
11969 for f in ${tmake_file}
11970 do
11971 if test -f ${srcdir}/config/$f
11972 then
11973 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11974 fi
11975 done
11976 tmake_file="${tmake_file_}"
11977
11978 out_object_file=`basename $out_file .c`.o
11979 common_out_object_file=`basename $common_out_file .c`.o
11980
11981 tm_file_list="options.h"
11982 tm_include_list="options.h insn-constants.h"
11983 for f in $tm_file; do
11984 case $f in
11985 ./* )
11986 f=`echo $f | sed 's/^..//'`
11987 tm_file_list="${tm_file_list} $f"
11988 tm_include_list="${tm_include_list} $f"
11989 ;;
11990 defaults.h )
11991 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11992 tm_include_list="${tm_include_list} $f"
11993 ;;
11994 * )
11995 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11996 tm_include_list="${tm_include_list} config/$f"
11997 ;;
11998 esac
11999 done
12000
12001 tm_p_file_list=
12002 tm_p_include_list=
12003 for f in $tm_p_file; do
12004 case $f in
12005 tm-preds.h )
12006 tm_p_file_list="${tm_p_file_list} $f"
12007 tm_p_include_list="${tm_p_include_list} $f"
12008 ;;
12009 * )
12010 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12011 tm_p_include_list="${tm_p_include_list} config/$f"
12012 esac
12013 done
12014
12015 xm_file_list=
12016 xm_include_list=
12017 for f in $xm_file; do
12018 case $f in
12019 ansidecl.h )
12020 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12021 xm_include_list="${xm_include_list} $f"
12022 ;;
12023 auto-host.h )
12024 xm_file_list="${xm_file_list} $f"
12025 xm_include_list="${xm_include_list} $f"
12026 ;;
12027 * )
12028 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12029 xm_include_list="${xm_include_list} config/$f"
12030 ;;
12031 esac
12032 done
12033
12034 host_xm_file_list=
12035 host_xm_include_list=
12036 for f in $host_xm_file; do
12037 case $f in
12038 ansidecl.h )
12039 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12040 host_xm_include_list="${host_xm_include_list} $f"
12041 ;;
12042 auto-host.h )
12043 host_xm_file_list="${host_xm_file_list} $f"
12044 host_xm_include_list="${host_xm_include_list} $f"
12045 ;;
12046 * )
12047 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12048 host_xm_include_list="${host_xm_include_list} config/$f"
12049 ;;
12050 esac
12051 done
12052
12053 build_xm_file_list=
12054 for f in $build_xm_file; do
12055 case $f in
12056 ansidecl.h )
12057 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12058 build_xm_include_list="${build_xm_include_list} $f"
12059 ;;
12060 auto-build.h | auto-host.h )
12061 build_xm_file_list="${build_xm_file_list} $f"
12062 build_xm_include_list="${build_xm_include_list} $f"
12063 ;;
12064 * )
12065 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12066 build_xm_include_list="${build_xm_include_list} config/$f"
12067 ;;
12068 esac
12069 done
12070
12071 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12072 # cross-compiler which does not use the native headers and libraries.
12073 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12074 CROSS=
12075 ALL=all.internal
12076 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12077
12078 if test "x$with_build_sysroot" != x; then
12079 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12080 else
12081 # This value is used, even on a native system, because
12082 # CROSS_SYSTEM_HEADER_DIR is just
12083 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12084 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12085 fi
12086
12087 if test x$host != x$target
12088 then
12089 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12090 ALL=all.cross
12091 SYSTEM_HEADER_DIR=$build_system_header_dir
12092 case "$host","$target" in
12093 # Darwin crosses can use the host system's libraries and headers,
12094 # because of the fat library support. Of course, it must be the
12095 # same version of Darwin on both sides. Allow the user to
12096 # just say --target=foo-darwin without a version number to mean
12097 # "the version on this system".
12098 *-*-darwin*,*-*-darwin*)
12099 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12100 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12101 if test $hostos = $targetos -o $targetos = darwin ; then
12102 CROSS=
12103 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12104 with_headers=yes
12105 fi
12106 ;;
12107
12108 i?86-*-*,x86_64-*-* \
12109 | powerpc*-*-*,powerpc64*-*-*)
12110 CROSS="$CROSS -DNATIVE_CROSS" ;;
12111 esac
12112
12113 case $target in
12114 *-*-mingw*)
12115 if test "x$with_headers" = x; then
12116 with_headers=yes
12117 fi
12118 ;;
12119 *)
12120 ;;
12121 esac
12122 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12123 SYSTEM_HEADER_DIR=$build_system_header_dir
12124 fi
12125
12126 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12127 if test "x$with_headers" != x; then
12128 target_header_dir=$with_headers
12129 elif test "x$with_sysroot" = x; then
12130 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12131 elif test "x$with_build_sysroot" != "x"; then
12132 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12133 elif test "x$with_sysroot" = xyes; then
12134 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12135 else
12136 target_header_dir="${with_sysroot}${native_system_header_dir}"
12137 fi
12138 else
12139 target_header_dir=${native_system_header_dir}
12140 fi
12141
12142 # If this is a cross-compiler that does not
12143 # have its own set of headers then define
12144 # inhibit_libc
12145
12146 # If this is using newlib, without having the headers available now,
12147 # then define inhibit_libc in LIBGCC2_CFLAGS.
12148 # This prevents libgcc2 from containing any code which requires libc
12149 # support.
12150 : ${inhibit_libc=false}
12151 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12152 test x$with_newlib = xyes ; } &&
12153 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12154 inhibit_libc=true
12155 fi
12156
12157
12158 # When building gcc with a cross-compiler, we need to adjust things so
12159 # that the generator programs are still built with the native compiler.
12160 # Also, we cannot run fixincludes.
12161
12162 # These are the normal (build=host) settings:
12163 CC_FOR_BUILD='$(CC)'
12164 CXX_FOR_BUILD='$(CXX)'
12165 BUILD_CFLAGS='$(ALL_CFLAGS)'
12166 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12167 BUILD_LDFLAGS='$(LDFLAGS)'
12168 STMP_FIXINC=stmp-fixinc
12169
12170 # And these apply if build != host, or we are generating coverage data
12171 if test x$build != x$host || test "x$coverage_flags" != x
12172 then
12173 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12174 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12175 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12176 fi
12177
12178 # Expand extra_headers to include complete path.
12179 # This substitutes for lots of t-* files.
12180 extra_headers_list=
12181 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12182 for file in ${extra_headers} ; do
12183 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12184 done
12185
12186 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12187 if test x"$use_gcc_tgmath" = xyes
12188 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12189 fi
12190
12191 # Define collect2 in Makefile.
12192 case $host_can_use_collect2 in
12193 no) collect2= ;;
12194 *) collect2='collect2$(exeext)' ;;
12195 esac
12196
12197
12198 # Add a definition of USE_COLLECT2 if system wants one.
12199 case $use_collect2 in
12200 no) use_collect2= ;;
12201 "") ;;
12202 *)
12203 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12204 xm_defines="${xm_defines} USE_COLLECT2"
12205 case $host_can_use_collect2 in
12206 no)
12207 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12208 ;;
12209 esac
12210 ;;
12211 esac
12212
12213
12214 cat >>confdefs.h <<_ACEOF
12215 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12216 _ACEOF
12217
12218
12219 # ---------------------------
12220 # Assembler & linker features
12221 # ---------------------------
12222
12223 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12224 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12225 # However when ld-new is first executed from the build tree, libtool will
12226 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12227 # to the build tree. While doing this we need to use the previous-stage
12228 # linker, or we have an infinite loop. The presence of a shell script as
12229 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12230 # the gcc/collect-ld script. So we need to know how libtool works, or
12231 # exec-tool will fail.
12232
12233
12234 case `pwd` in
12235 *\ * | *\ *)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12237 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12238 esac
12239
12240
12241
12242 macro_version='2.2.7a'
12243 macro_revision='1.3134'
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257 ltmain="$ac_aux_dir/ltmain.sh"
12258
12259 # Backslashify metacharacters that are still active within
12260 # double-quoted strings.
12261 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12262
12263 # Same as above, but do not quote variable references.
12264 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12265
12266 # Sed substitution to delay expansion of an escaped shell variable in a
12267 # double_quote_subst'ed string.
12268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12269
12270 # Sed substitution to delay expansion of an escaped single quote.
12271 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12272
12273 # Sed substitution to avoid accidental globbing in evaled expressions
12274 no_glob_subst='s/\*/\\\*/g'
12275
12276 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12281 $as_echo_n "checking how to print strings... " >&6; }
12282 # Test print first, because it will be a builtin if present.
12283 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12285 ECHO='print -r --'
12286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12287 ECHO='printf %s\n'
12288 else
12289 # Use this function as a fallback that always works.
12290 func_fallback_echo ()
12291 {
12292 eval 'cat <<_LTECHO_EOF
12293 $1
12294 _LTECHO_EOF'
12295 }
12296 ECHO='func_fallback_echo'
12297 fi
12298
12299 # func_echo_all arg...
12300 # Invoke $ECHO with all args, space-separated.
12301 func_echo_all ()
12302 {
12303 $ECHO ""
12304 }
12305
12306 case "$ECHO" in
12307 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12308 $as_echo "printf" >&6; } ;;
12309 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12310 $as_echo "print -r" >&6; } ;;
12311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12312 $as_echo "cat" >&6; } ;;
12313 esac
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12329 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12330 if test "${ac_cv_path_SED+set}" = set; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12334 for ac_i in 1 2 3 4 5 6 7; do
12335 ac_script="$ac_script$as_nl$ac_script"
12336 done
12337 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12338 { ac_script=; unset ac_script;}
12339 if test -z "$SED"; then
12340 ac_path_SED_found=false
12341 # Loop through the user's path and test for each of PROGNAME-LIST
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_prog in sed gsed; do
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12350 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12351 # Check for GNU ac_path_SED and select it if it is found.
12352 # Check for GNU $ac_path_SED
12353 case `"$ac_path_SED" --version 2>&1` in
12354 *GNU*)
12355 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12356 *)
12357 ac_count=0
12358 $as_echo_n 0123456789 >"conftest.in"
12359 while :
12360 do
12361 cat "conftest.in" "conftest.in" >"conftest.tmp"
12362 mv "conftest.tmp" "conftest.in"
12363 cp "conftest.in" "conftest.nl"
12364 $as_echo '' >> "conftest.nl"
12365 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12367 as_fn_arith $ac_count + 1 && ac_count=$as_val
12368 if test $ac_count -gt ${ac_path_SED_max-0}; then
12369 # Best one so far, save it but keep looking for a better one
12370 ac_cv_path_SED="$ac_path_SED"
12371 ac_path_SED_max=$ac_count
12372 fi
12373 # 10*(2^10) chars as input seems more than enough
12374 test $ac_count -gt 10 && break
12375 done
12376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12377 esac
12378
12379 $ac_path_SED_found && break 3
12380 done
12381 done
12382 done
12383 IFS=$as_save_IFS
12384 if test -z "$ac_cv_path_SED"; then
12385 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12386 fi
12387 else
12388 ac_cv_path_SED=$SED
12389 fi
12390
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12393 $as_echo "$ac_cv_path_SED" >&6; }
12394 SED="$ac_cv_path_SED"
12395 rm -f conftest.sed
12396
12397 test -z "$SED" && SED=sed
12398 Xsed="$SED -e 1s/^X//"
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12411 $as_echo_n "checking for fgrep... " >&6; }
12412 if test "${ac_cv_path_FGREP+set}" = set; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12416 then ac_cv_path_FGREP="$GREP -F"
12417 else
12418 if test -z "$FGREP"; then
12419 ac_path_FGREP_found=false
12420 # Loop through the user's path and test for each of PROGNAME-LIST
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12423 do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_prog in fgrep; do
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12430 # Check for GNU ac_path_FGREP and select it if it is found.
12431 # Check for GNU $ac_path_FGREP
12432 case `"$ac_path_FGREP" --version 2>&1` in
12433 *GNU*)
12434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12435 *)
12436 ac_count=0
12437 $as_echo_n 0123456789 >"conftest.in"
12438 while :
12439 do
12440 cat "conftest.in" "conftest.in" >"conftest.tmp"
12441 mv "conftest.tmp" "conftest.in"
12442 cp "conftest.in" "conftest.nl"
12443 $as_echo 'FGREP' >> "conftest.nl"
12444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12446 as_fn_arith $ac_count + 1 && ac_count=$as_val
12447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12448 # Best one so far, save it but keep looking for a better one
12449 ac_cv_path_FGREP="$ac_path_FGREP"
12450 ac_path_FGREP_max=$ac_count
12451 fi
12452 # 10*(2^10) chars as input seems more than enough
12453 test $ac_count -gt 10 && break
12454 done
12455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12456 esac
12457
12458 $ac_path_FGREP_found && break 3
12459 done
12460 done
12461 done
12462 IFS=$as_save_IFS
12463 if test -z "$ac_cv_path_FGREP"; then
12464 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12465 fi
12466 else
12467 ac_cv_path_FGREP=$FGREP
12468 fi
12469
12470 fi
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12473 $as_echo "$ac_cv_path_FGREP" >&6; }
12474 FGREP="$ac_cv_path_FGREP"
12475
12476
12477 test -z "$GREP" && GREP=grep
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497 # Check whether --with-gnu-ld was given.
12498 if test "${with_gnu_ld+set}" = set; then :
12499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12500 else
12501 with_gnu_ld=no
12502 fi
12503
12504 ac_prog=ld
12505 if test "$GCC" = yes; then
12506 # Check if gcc -print-prog-name=ld gives a path.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12508 $as_echo_n "checking for ld used by $CC... " >&6; }
12509 case $host in
12510 *-*-mingw*)
12511 # gcc leaves a trailing carriage return which upsets mingw
12512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12513 *)
12514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12515 esac
12516 case $ac_prog in
12517 # Accept absolute paths.
12518 [\\/]* | ?:[\\/]*)
12519 re_direlt='/[^/][^/]*/\.\./'
12520 # Canonicalize the pathname of ld
12521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12524 done
12525 test -z "$LD" && LD="$ac_prog"
12526 ;;
12527 "")
12528 # If it fails, then pretend we aren't using GCC.
12529 ac_prog=ld
12530 ;;
12531 *)
12532 # If it is relative, then search for the first ld in PATH.
12533 with_gnu_ld=unknown
12534 ;;
12535 esac
12536 elif test "$with_gnu_ld" = yes; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12538 $as_echo_n "checking for GNU ld... " >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12541 $as_echo_n "checking for non-GNU ld... " >&6; }
12542 fi
12543 if test "${lt_cv_path_LD+set}" = set; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 if test -z "$LD"; then
12547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12548 for ac_dir in $PATH; do
12549 IFS="$lt_save_ifs"
12550 test -z "$ac_dir" && ac_dir=.
12551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12552 lt_cv_path_LD="$ac_dir/$ac_prog"
12553 # Check to see if the program is GNU ld. I'd rather use --version,
12554 # but apparently some variants of GNU ld only accept -v.
12555 # Break only if it was the GNU/non-GNU ld that we prefer.
12556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12557 *GNU* | *'with BFD'*)
12558 test "$with_gnu_ld" != no && break
12559 ;;
12560 *)
12561 test "$with_gnu_ld" != yes && break
12562 ;;
12563 esac
12564 fi
12565 done
12566 IFS="$lt_save_ifs"
12567 else
12568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12569 fi
12570 fi
12571
12572 LD="$lt_cv_path_LD"
12573 if test -n "$LD"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12575 $as_echo "$LD" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12583 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12587 case `$LD -v 2>&1 </dev/null` in
12588 *GNU* | *'with BFD'*)
12589 lt_cv_prog_gnu_ld=yes
12590 ;;
12591 *)
12592 lt_cv_prog_gnu_ld=no
12593 ;;
12594 esac
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12598 with_gnu_ld=$lt_cv_prog_gnu_ld
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12609 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12610 if test "${lt_cv_path_NM+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 if test -n "$NM"; then
12614 # Let the user override the test.
12615 lt_cv_path_NM="$NM"
12616 else
12617 lt_nm_to_check="${ac_tool_prefix}nm"
12618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12619 lt_nm_to_check="$lt_nm_to_check nm"
12620 fi
12621 for lt_tmp_nm in $lt_nm_to_check; do
12622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12624 IFS="$lt_save_ifs"
12625 test -z "$ac_dir" && ac_dir=.
12626 tmp_nm="$ac_dir/$lt_tmp_nm"
12627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12628 # Check to see if the nm accepts a BSD-compat flag.
12629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12630 # nm: unknown option "B" ignored
12631 # Tru64's nm complains that /dev/null is an invalid object file
12632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12633 */dev/null* | *'Invalid file or object type'*)
12634 lt_cv_path_NM="$tmp_nm -B"
12635 break
12636 ;;
12637 *)
12638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12639 */dev/null*)
12640 lt_cv_path_NM="$tmp_nm -p"
12641 break
12642 ;;
12643 *)
12644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12645 continue # so that we can try to find one that supports BSD flags
12646 ;;
12647 esac
12648 ;;
12649 esac
12650 fi
12651 done
12652 IFS="$lt_save_ifs"
12653 done
12654 : ${lt_cv_path_NM=no}
12655 fi
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12658 $as_echo "$lt_cv_path_NM" >&6; }
12659 if test "$lt_cv_path_NM" != "no"; then
12660 NM="$lt_cv_path_NM"
12661 else
12662 # Didn't find any BSD compatible name lister, look for dumpbin.
12663 if test -n "$DUMPBIN"; then :
12664 # Let the user override the test.
12665 else
12666 if test -n "$ac_tool_prefix"; then
12667 for ac_prog in dumpbin "link -dump"
12668 do
12669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 if test -n "$DUMPBIN"; then
12677 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12678 else
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12681 do
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12689 fi
12690 done
12691 done
12692 IFS=$as_save_IFS
12693
12694 fi
12695 fi
12696 DUMPBIN=$ac_cv_prog_DUMPBIN
12697 if test -n "$DUMPBIN"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12699 $as_echo "$DUMPBIN" >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12703 fi
12704
12705
12706 test -n "$DUMPBIN" && break
12707 done
12708 fi
12709 if test -z "$DUMPBIN"; then
12710 ac_ct_DUMPBIN=$DUMPBIN
12711 for ac_prog in dumpbin "link -dump"
12712 do
12713 # Extract the first word of "$ac_prog", so it can be a program name with args.
12714 set dummy $ac_prog; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$ac_ct_DUMPBIN"; then
12721 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736 IFS=$as_save_IFS
12737
12738 fi
12739 fi
12740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12741 if test -n "$ac_ct_DUMPBIN"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12743 $as_echo "$ac_ct_DUMPBIN" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748
12749
12750 test -n "$ac_ct_DUMPBIN" && break
12751 done
12752
12753 if test "x$ac_ct_DUMPBIN" = x; then
12754 DUMPBIN=":"
12755 else
12756 case $cross_compiling:$ac_tool_warned in
12757 yes:)
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12760 ac_tool_warned=yes ;;
12761 esac
12762 DUMPBIN=$ac_ct_DUMPBIN
12763 fi
12764 fi
12765
12766 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12767 *COFF*)
12768 DUMPBIN="$DUMPBIN -symbols"
12769 ;;
12770 *)
12771 DUMPBIN=:
12772 ;;
12773 esac
12774 fi
12775
12776 if test "$DUMPBIN" != ":"; then
12777 NM="$DUMPBIN"
12778 fi
12779 fi
12780 test -z "$NM" && NM=nm
12781
12782
12783
12784
12785
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12788 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12789 if test "${lt_cv_nm_interface+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 lt_cv_nm_interface="BSD nm"
12793 echo "int some_variable = 0;" > conftest.$ac_ext
12794 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12795 (eval "$ac_compile" 2>conftest.err)
12796 cat conftest.err >&5
12797 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12798 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12799 cat conftest.err >&5
12800 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12801 cat conftest.out >&5
12802 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12803 lt_cv_nm_interface="MS dumpbin"
12804 fi
12805 rm -f conftest*
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12808 $as_echo "$lt_cv_nm_interface" >&6; }
12809
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12811 $as_echo_n "checking whether ln -s works... " >&6; }
12812 LN_S=$as_ln_s
12813 if test "$LN_S" = "ln -s"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12818 $as_echo "no, using $LN_S" >&6; }
12819 fi
12820
12821 # find the maximum length of command line arguments
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12823 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12824 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 i=0
12828 teststring="ABCD"
12829
12830 case $build_os in
12831 msdosdjgpp*)
12832 # On DJGPP, this test can blow up pretty badly due to problems in libc
12833 # (any single argument exceeding 2000 bytes causes a buffer overrun
12834 # during glob expansion). Even if it were fixed, the result of this
12835 # check would be larger than it should be.
12836 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12837 ;;
12838
12839 gnu*)
12840 # Under GNU Hurd, this test is not required because there is
12841 # no limit to the length of command line arguments.
12842 # Libtool will interpret -1 as no limit whatsoever
12843 lt_cv_sys_max_cmd_len=-1;
12844 ;;
12845
12846 cygwin* | mingw* | cegcc*)
12847 # On Win9x/ME, this test blows up -- it succeeds, but takes
12848 # about 5 minutes as the teststring grows exponentially.
12849 # Worse, since 9x/ME are not pre-emptively multitasking,
12850 # you end up with a "frozen" computer, even though with patience
12851 # the test eventually succeeds (with a max line length of 256k).
12852 # Instead, let's just punt: use the minimum linelength reported by
12853 # all of the supported platforms: 8192 (on NT/2K/XP).
12854 lt_cv_sys_max_cmd_len=8192;
12855 ;;
12856
12857 mint*)
12858 # On MiNT this can take a long time and run out of memory.
12859 lt_cv_sys_max_cmd_len=8192;
12860 ;;
12861
12862 amigaos*)
12863 # On AmigaOS with pdksh, this test takes hours, literally.
12864 # So we just punt and use a minimum line length of 8192.
12865 lt_cv_sys_max_cmd_len=8192;
12866 ;;
12867
12868 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12869 # This has been around since 386BSD, at least. Likely further.
12870 if test -x /sbin/sysctl; then
12871 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12872 elif test -x /usr/sbin/sysctl; then
12873 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12874 else
12875 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12876 fi
12877 # And add a safety zone
12878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12880 ;;
12881
12882 interix*)
12883 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12884 lt_cv_sys_max_cmd_len=196608
12885 ;;
12886
12887 osf*)
12888 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12889 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12890 # nice to cause kernel panics so lets avoid the loop below.
12891 # First set a reasonable default.
12892 lt_cv_sys_max_cmd_len=16384
12893 #
12894 if test -x /sbin/sysconfig; then
12895 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12896 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12897 esac
12898 fi
12899 ;;
12900 sco3.2v5*)
12901 lt_cv_sys_max_cmd_len=102400
12902 ;;
12903 sysv5* | sco5v6* | sysv4.2uw2*)
12904 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12905 if test -n "$kargmax"; then
12906 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12907 else
12908 lt_cv_sys_max_cmd_len=32768
12909 fi
12910 ;;
12911 *)
12912 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12913 if test -n "$lt_cv_sys_max_cmd_len"; then
12914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12916 else
12917 # Make teststring a little bigger before we do anything with it.
12918 # a 1K string should be a reasonable start.
12919 for i in 1 2 3 4 5 6 7 8 ; do
12920 teststring=$teststring$teststring
12921 done
12922 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12923 # If test is not a shell built-in, we'll probably end up computing a
12924 # maximum length that is only half of the actual maximum length, but
12925 # we can't tell.
12926 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12927 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12928 test $i != 17 # 1/2 MB should be enough
12929 do
12930 i=`expr $i + 1`
12931 teststring=$teststring$teststring
12932 done
12933 # Only check the string length outside the loop.
12934 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12935 teststring=
12936 # Add a significant safety factor because C++ compilers can tack on
12937 # massive amounts of additional arguments before passing them to the
12938 # linker. It appears as though 1/2 is a usable value.
12939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12940 fi
12941 ;;
12942 esac
12943
12944 fi
12945
12946 if test -n $lt_cv_sys_max_cmd_len ; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12948 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12951 $as_echo "none" >&6; }
12952 fi
12953 max_cmd_len=$lt_cv_sys_max_cmd_len
12954
12955
12956
12957
12958
12959
12960 : ${CP="cp -f"}
12961 : ${MV="mv -f"}
12962 : ${RM="rm -f"}
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12965 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12966 # Try some XSI features
12967 xsi_shell=no
12968 ( _lt_dummy="a/b/c"
12969 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12970 = c,a/b,, \
12971 && eval 'test $(( 1 + 1 )) -eq 2 \
12972 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12973 && xsi_shell=yes
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12975 $as_echo "$xsi_shell" >&6; }
12976
12977
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12979 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12980 lt_shell_append=no
12981 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12982 >/dev/null 2>&1 \
12983 && lt_shell_append=yes
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12985 $as_echo "$lt_shell_append" >&6; }
12986
12987
12988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12989 lt_unset=unset
12990 else
12991 lt_unset=false
12992 fi
12993
12994
12995
12996
12997
12998 # test EBCDIC or ASCII
12999 case `echo X|tr X '\101'` in
13000 A) # ASCII based system
13001 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13002 lt_SP2NL='tr \040 \012'
13003 lt_NL2SP='tr \015\012 \040\040'
13004 ;;
13005 *) # EBCDIC based system
13006 lt_SP2NL='tr \100 \n'
13007 lt_NL2SP='tr \r\n \100\100'
13008 ;;
13009 esac
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13020 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13021 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 lt_cv_ld_reload_flag='-r'
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13027 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13028 reload_flag=$lt_cv_ld_reload_flag
13029 case $reload_flag in
13030 "" | " "*) ;;
13031 *) reload_flag=" $reload_flag" ;;
13032 esac
13033 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13034 case $host_os in
13035 darwin*)
13036 if test "$GCC" = yes; then
13037 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13038 else
13039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13040 fi
13041 ;;
13042 esac
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052 if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13054 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 if test -n "$OBJDUMP"; then
13061 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074 done
13075 done
13076 IFS=$as_save_IFS
13077
13078 fi
13079 fi
13080 OBJDUMP=$ac_cv_prog_OBJDUMP
13081 if test -n "$OBJDUMP"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13083 $as_echo "$OBJDUMP" >&6; }
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 fi
13088
13089
13090 fi
13091 if test -z "$ac_cv_prog_OBJDUMP"; then
13092 ac_ct_OBJDUMP=$OBJDUMP
13093 # Extract the first word of "objdump", so it can be a program name with args.
13094 set dummy objdump; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 if test -n "$ac_ct_OBJDUMP"; then
13101 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13121 if test -n "$ac_ct_OBJDUMP"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13123 $as_echo "$ac_ct_OBJDUMP" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 fi
13128
13129 if test "x$ac_ct_OBJDUMP" = x; then
13130 OBJDUMP="false"
13131 else
13132 case $cross_compiling:$ac_tool_warned in
13133 yes:)
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13137 esac
13138 OBJDUMP=$ac_ct_OBJDUMP
13139 fi
13140 else
13141 OBJDUMP="$ac_cv_prog_OBJDUMP"
13142 fi
13143
13144 test -z "$OBJDUMP" && OBJDUMP=objdump
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13155 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13156 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 lt_cv_file_magic_cmd='$MAGIC_CMD'
13160 lt_cv_file_magic_test_file=
13161 lt_cv_deplibs_check_method='unknown'
13162 # Need to set the preceding variable on all platforms that support
13163 # interlibrary dependencies.
13164 # 'none' -- dependencies not supported.
13165 # `unknown' -- same as none, but documents that we really don't know.
13166 # 'pass_all' -- all dependencies passed with no checks.
13167 # 'test_compile' -- check by making test program.
13168 # 'file_magic [[regex]]' -- check by looking for files in library path
13169 # which responds to the $file_magic_cmd with a given extended regex.
13170 # If you have `file' or equivalent on your system and you're not sure
13171 # whether `pass_all' will *always* work, you probably want this one.
13172
13173 case $host_os in
13174 aix[4-9]*)
13175 lt_cv_deplibs_check_method=pass_all
13176 ;;
13177
13178 beos*)
13179 lt_cv_deplibs_check_method=pass_all
13180 ;;
13181
13182 bsdi[45]*)
13183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13184 lt_cv_file_magic_cmd='/usr/bin/file -L'
13185 lt_cv_file_magic_test_file=/shlib/libc.so
13186 ;;
13187
13188 cygwin*)
13189 # func_win32_libid is a shell function defined in ltmain.sh
13190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13191 lt_cv_file_magic_cmd='func_win32_libid'
13192 ;;
13193
13194 mingw* | pw32*)
13195 # Base MSYS/MinGW do not provide the 'file' command needed by
13196 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13197 # unless we find 'file', for example because we are cross-compiling.
13198 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13199 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13201 lt_cv_file_magic_cmd='func_win32_libid'
13202 else
13203 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13204 lt_cv_file_magic_cmd='$OBJDUMP -f'
13205 fi
13206 ;;
13207
13208 cegcc*)
13209 # use the weaker test based on 'objdump'. See mingw*.
13210 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13211 lt_cv_file_magic_cmd='$OBJDUMP -f'
13212 ;;
13213
13214 darwin* | rhapsody*)
13215 lt_cv_deplibs_check_method=pass_all
13216 ;;
13217
13218 freebsd* | dragonfly*)
13219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13220 case $host_cpu in
13221 i*86 )
13222 # Not sure whether the presence of OpenBSD here was a mistake.
13223 # Let's accept both of them until this is cleared up.
13224 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13225 lt_cv_file_magic_cmd=/usr/bin/file
13226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13227 ;;
13228 esac
13229 else
13230 lt_cv_deplibs_check_method=pass_all
13231 fi
13232 ;;
13233
13234 gnu*)
13235 lt_cv_deplibs_check_method=pass_all
13236 ;;
13237
13238 haiku*)
13239 lt_cv_deplibs_check_method=pass_all
13240 ;;
13241
13242 hpux10.20* | hpux11*)
13243 lt_cv_file_magic_cmd=/usr/bin/file
13244 case $host_cpu in
13245 ia64*)
13246 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13247 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13248 ;;
13249 hppa*64*)
13250 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]'
13251 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13252 ;;
13253 *)
13254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13255 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13256 ;;
13257 esac
13258 ;;
13259
13260 interix[3-9]*)
13261 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13263 ;;
13264
13265 irix5* | irix6* | nonstopux*)
13266 case $LD in
13267 *-32|*"-32 ") libmagic=32-bit;;
13268 *-n32|*"-n32 ") libmagic=N32;;
13269 *-64|*"-64 ") libmagic=64-bit;;
13270 *) libmagic=never-match;;
13271 esac
13272 lt_cv_deplibs_check_method=pass_all
13273 ;;
13274
13275 # This must be Linux ELF.
13276 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13277 lt_cv_deplibs_check_method=pass_all
13278 ;;
13279
13280 netbsd*)
13281 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13283 else
13284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13285 fi
13286 ;;
13287
13288 newos6*)
13289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13290 lt_cv_file_magic_cmd=/usr/bin/file
13291 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13292 ;;
13293
13294 *nto* | *qnx*)
13295 lt_cv_deplibs_check_method=pass_all
13296 ;;
13297
13298 openbsd*)
13299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13301 else
13302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13303 fi
13304 ;;
13305
13306 osf3* | osf4* | osf5*)
13307 lt_cv_deplibs_check_method=pass_all
13308 ;;
13309
13310 rdos*)
13311 lt_cv_deplibs_check_method=pass_all
13312 ;;
13313
13314 solaris*)
13315 lt_cv_deplibs_check_method=pass_all
13316 ;;
13317
13318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13319 lt_cv_deplibs_check_method=pass_all
13320 ;;
13321
13322 sysv4 | sysv4.3*)
13323 case $host_vendor in
13324 motorola)
13325 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]'
13326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13327 ;;
13328 ncr)
13329 lt_cv_deplibs_check_method=pass_all
13330 ;;
13331 sequent)
13332 lt_cv_file_magic_cmd='/bin/file'
13333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13334 ;;
13335 sni)
13336 lt_cv_file_magic_cmd='/bin/file'
13337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13338 lt_cv_file_magic_test_file=/lib/libc.so
13339 ;;
13340 siemens)
13341 lt_cv_deplibs_check_method=pass_all
13342 ;;
13343 pc)
13344 lt_cv_deplibs_check_method=pass_all
13345 ;;
13346 esac
13347 ;;
13348
13349 tpf*)
13350 lt_cv_deplibs_check_method=pass_all
13351 ;;
13352 esac
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13356 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13357 file_magic_cmd=$lt_cv_file_magic_cmd
13358 deplibs_check_method=$lt_cv_deplibs_check_method
13359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372 if test -n "$ac_tool_prefix"; then
13373 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13374 set dummy ${ac_tool_prefix}ar; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_AR+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$AR"; then
13381 ac_cv_prog_AR="$AR" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13385 do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_AR="${ac_tool_prefix}ar"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13393 fi
13394 done
13395 done
13396 IFS=$as_save_IFS
13397
13398 fi
13399 fi
13400 AR=$ac_cv_prog_AR
13401 if test -n "$AR"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13403 $as_echo "$AR" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407 fi
13408
13409
13410 fi
13411 if test -z "$ac_cv_prog_AR"; then
13412 ac_ct_AR=$AR
13413 # Extract the first word of "ar", so it can be a program name with args.
13414 set dummy ar; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 if test -n "$ac_ct_AR"; then
13421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13422 else
13423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424 for as_dir in $PATH
13425 do
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430 ac_cv_prog_ac_ct_AR="ar"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 break 2
13433 fi
13434 done
13435 done
13436 IFS=$as_save_IFS
13437
13438 fi
13439 fi
13440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13441 if test -n "$ac_ct_AR"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13443 $as_echo "$ac_ct_AR" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447 fi
13448
13449 if test "x$ac_ct_AR" = x; then
13450 AR="false"
13451 else
13452 case $cross_compiling:$ac_tool_warned in
13453 yes:)
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13456 ac_tool_warned=yes ;;
13457 esac
13458 AR=$ac_ct_AR
13459 fi
13460 else
13461 AR="$ac_cv_prog_AR"
13462 fi
13463
13464 test -z "$AR" && AR=ar
13465 test -z "$AR_FLAGS" && AR_FLAGS=cru
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477 if test -n "$ac_tool_prefix"; then
13478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13479 set dummy ${ac_tool_prefix}strip; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if test "${ac_cv_prog_STRIP+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 if test -n "$STRIP"; then
13486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13487 else
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13490 do
13491 IFS=$as_save_IFS
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497 break 2
13498 fi
13499 done
13500 done
13501 IFS=$as_save_IFS
13502
13503 fi
13504 fi
13505 STRIP=$ac_cv_prog_STRIP
13506 if test -n "$STRIP"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13508 $as_echo "$STRIP" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512 fi
13513
13514
13515 fi
13516 if test -z "$ac_cv_prog_STRIP"; then
13517 ac_ct_STRIP=$STRIP
13518 # Extract the first word of "strip", so it can be a program name with args.
13519 set dummy strip; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$ac_ct_STRIP"; then
13526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_ac_ct_STRIP="strip"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13546 if test -n "$ac_ct_STRIP"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13548 $as_echo "$ac_ct_STRIP" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554 if test "x$ac_ct_STRIP" = x; then
13555 STRIP=":"
13556 else
13557 case $cross_compiling:$ac_tool_warned in
13558 yes:)
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13561 ac_tool_warned=yes ;;
13562 esac
13563 STRIP=$ac_ct_STRIP
13564 fi
13565 else
13566 STRIP="$ac_cv_prog_STRIP"
13567 fi
13568
13569 test -z "$STRIP" && STRIP=:
13570
13571
13572
13573
13574
13575
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13578 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 if test -n "$RANLIB"; then
13585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13586 else
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13589 do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598 done
13599 done
13600 IFS=$as_save_IFS
13601
13602 fi
13603 fi
13604 RANLIB=$ac_cv_prog_RANLIB
13605 if test -n "$RANLIB"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13607 $as_echo "$RANLIB" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612
13613
13614 fi
13615 if test -z "$ac_cv_prog_RANLIB"; then
13616 ac_ct_RANLIB=$RANLIB
13617 # Extract the first word of "ranlib", so it can be a program name with args.
13618 set dummy ranlib; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$ac_ct_RANLIB"; then
13625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_ac_ct_RANLIB="ranlib"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13645 if test -n "$ac_ct_RANLIB"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13647 $as_echo "$ac_ct_RANLIB" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653 if test "x$ac_ct_RANLIB" = x; then
13654 RANLIB=":"
13655 else
13656 case $cross_compiling:$ac_tool_warned in
13657 yes:)
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660 ac_tool_warned=yes ;;
13661 esac
13662 RANLIB=$ac_ct_RANLIB
13663 fi
13664 else
13665 RANLIB="$ac_cv_prog_RANLIB"
13666 fi
13667
13668 test -z "$RANLIB" && RANLIB=:
13669
13670
13671
13672
13673
13674
13675 # Determine commands to create old-style static archives.
13676 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13677 old_postinstall_cmds='chmod 644 $oldlib'
13678 old_postuninstall_cmds=
13679
13680 if test -n "$RANLIB"; then
13681 case $host_os in
13682 openbsd*)
13683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13684 ;;
13685 *)
13686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13687 ;;
13688 esac
13689 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13690 fi
13691
13692 case $host_os in
13693 darwin*)
13694 lock_old_archive_extraction=yes ;;
13695 *)
13696 lock_old_archive_extraction=no ;;
13697 esac
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737 # If no C compiler was specified, use CC.
13738 LTCC=${LTCC-"$CC"}
13739
13740 # If no C compiler flags were specified, use CFLAGS.
13741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13742
13743 # Allow CC to be a program name with arguments.
13744 compiler=$CC
13745
13746
13747 # Check for command to grab the raw symbol name followed by C symbol from nm.
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13749 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13750 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753
13754 # These are sane defaults that work on at least a few old systems.
13755 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13756
13757 # Character class describing NM global symbol codes.
13758 symcode='[BCDEGRST]'
13759
13760 # Regexp to match symbols that can be accessed directly from C.
13761 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13762
13763 # Define system-specific variables.
13764 case $host_os in
13765 aix*)
13766 symcode='[BCDT]'
13767 ;;
13768 cygwin* | mingw* | pw32* | cegcc*)
13769 symcode='[ABCDGISTW]'
13770 ;;
13771 hpux*)
13772 if test "$host_cpu" = ia64; then
13773 symcode='[ABCDEGRST]'
13774 fi
13775 ;;
13776 irix* | nonstopux*)
13777 symcode='[BCDEGRST]'
13778 ;;
13779 osf*)
13780 symcode='[BCDEGQRST]'
13781 ;;
13782 solaris*)
13783 symcode='[BDRT]'
13784 ;;
13785 sco3.2v5*)
13786 symcode='[DT]'
13787 ;;
13788 sysv4.2uw2*)
13789 symcode='[DT]'
13790 ;;
13791 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13792 symcode='[ABDT]'
13793 ;;
13794 sysv4)
13795 symcode='[DFNSTU]'
13796 ;;
13797 esac
13798
13799 # If we're using GNU nm, then use its standard symbol codes.
13800 case `$NM -V 2>&1` in
13801 *GNU* | *'with BFD'*)
13802 symcode='[ABCDGIRSTW]' ;;
13803 esac
13804
13805 # Transform an extracted symbol line into a proper C declaration.
13806 # Some systems (esp. on ia64) link data and code symbols differently,
13807 # so use this general approach.
13808 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13809
13810 # Transform an extracted symbol line into symbol name and symbol address
13811 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13812 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'"
13813
13814 # Handle CRLF in mingw tool chain
13815 opt_cr=
13816 case $build_os in
13817 mingw*)
13818 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13819 ;;
13820 esac
13821
13822 # Try without a prefix underscore, then with it.
13823 for ac_symprfx in "" "_"; do
13824
13825 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13826 symxfrm="\\1 $ac_symprfx\\2 \\2"
13827
13828 # Write the raw and C identifiers.
13829 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13830 # Fake it for dumpbin and say T for any non-static function
13831 # and D for any global variable.
13832 # Also find C++ and __fastcall symbols from MSVC++,
13833 # which start with @ or ?.
13834 lt_cv_sys_global_symbol_pipe="$AWK '"\
13835 " {last_section=section; section=\$ 3};"\
13836 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13837 " \$ 0!~/External *\|/{next};"\
13838 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13839 " {if(hide[section]) next};"\
13840 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13841 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13842 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13843 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13844 " ' prfx=^$ac_symprfx"
13845 else
13846 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13847 fi
13848
13849 # Check to see that the pipe works correctly.
13850 pipe_works=no
13851
13852 rm -f conftest*
13853 cat > conftest.$ac_ext <<_LT_EOF
13854 #ifdef __cplusplus
13855 extern "C" {
13856 #endif
13857 char nm_test_var;
13858 void nm_test_func(void);
13859 void nm_test_func(void){}
13860 #ifdef __cplusplus
13861 }
13862 #endif
13863 int main(){nm_test_var='a';nm_test_func();return(0);}
13864 _LT_EOF
13865
13866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13867 (eval $ac_compile) 2>&5
13868 ac_status=$?
13869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13870 test $ac_status = 0; }; then
13871 # Now try to grab the symbols.
13872 nlist=conftest.nm
13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13874 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; } && test -s "$nlist"; then
13878 # Try sorting and uniquifying the output.
13879 if sort "$nlist" | uniq > "$nlist"T; then
13880 mv -f "$nlist"T "$nlist"
13881 else
13882 rm -f "$nlist"T
13883 fi
13884
13885 # Make sure that we snagged all the symbols we need.
13886 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13887 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13888 cat <<_LT_EOF > conftest.$ac_ext
13889 #ifdef __cplusplus
13890 extern "C" {
13891 #endif
13892
13893 _LT_EOF
13894 # Now generate the symbol file.
13895 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13896
13897 cat <<_LT_EOF >> conftest.$ac_ext
13898
13899 /* The mapping between symbol names and symbols. */
13900 const struct {
13901 const char *name;
13902 void *address;
13903 }
13904 lt__PROGRAM__LTX_preloaded_symbols[] =
13905 {
13906 { "@PROGRAM@", (void *) 0 },
13907 _LT_EOF
13908 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13909 cat <<\_LT_EOF >> conftest.$ac_ext
13910 {0, (void *) 0}
13911 };
13912
13913 /* This works around a problem in FreeBSD linker */
13914 #ifdef FREEBSD_WORKAROUND
13915 static const void *lt_preloaded_setup() {
13916 return lt__PROGRAM__LTX_preloaded_symbols;
13917 }
13918 #endif
13919
13920 #ifdef __cplusplus
13921 }
13922 #endif
13923 _LT_EOF
13924 # Now try linking the two files.
13925 mv conftest.$ac_objext conftstm.$ac_objext
13926 lt_save_LIBS="$LIBS"
13927 lt_save_CFLAGS="$CFLAGS"
13928 LIBS="conftstm.$ac_objext"
13929 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13931 (eval $ac_link) 2>&5
13932 ac_status=$?
13933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13934 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13935 pipe_works=yes
13936 fi
13937 LIBS="$lt_save_LIBS"
13938 CFLAGS="$lt_save_CFLAGS"
13939 else
13940 echo "cannot find nm_test_func in $nlist" >&5
13941 fi
13942 else
13943 echo "cannot find nm_test_var in $nlist" >&5
13944 fi
13945 else
13946 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13947 fi
13948 else
13949 echo "$progname: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 fi
13952 rm -rf conftest* conftst*
13953
13954 # Do not use the global_symbol_pipe unless it works.
13955 if test "$pipe_works" = yes; then
13956 break
13957 else
13958 lt_cv_sys_global_symbol_pipe=
13959 fi
13960 done
13961
13962 fi
13963
13964 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13965 lt_cv_sys_global_symbol_to_cdecl=
13966 fi
13967 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13969 $as_echo "failed" >&6; }
13970 else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13972 $as_echo "ok" >&6; }
13973 fi
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996 # Check whether --enable-libtool-lock was given.
13997 if test "${enable_libtool_lock+set}" = set; then :
13998 enableval=$enable_libtool_lock;
13999 fi
14000
14001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14002
14003 # Some flags need to be propagated to the compiler or linker for good
14004 # libtool support.
14005 case $host in
14006 ia64-*-hpux*)
14007 # Find out which ABI we are using.
14008 echo 'int i;' > conftest.$ac_ext
14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14010 (eval $ac_compile) 2>&5
14011 ac_status=$?
14012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; }; then
14014 case `/usr/bin/file conftest.$ac_objext` in
14015 *ELF-32*)
14016 HPUX_IA64_MODE="32"
14017 ;;
14018 *ELF-64*)
14019 HPUX_IA64_MODE="64"
14020 ;;
14021 esac
14022 fi
14023 rm -rf conftest*
14024 ;;
14025 *-*-irix6*)
14026 # Find out which ABI we are using.
14027 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14029 (eval $ac_compile) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; then
14033 if test "$lt_cv_prog_gnu_ld" = yes; then
14034 case `/usr/bin/file conftest.$ac_objext` in
14035 *32-bit*)
14036 LD="${LD-ld} -melf32bsmip"
14037 ;;
14038 *N32*)
14039 LD="${LD-ld} -melf32bmipn32"
14040 ;;
14041 *64-bit*)
14042 LD="${LD-ld} -melf64bmip"
14043 ;;
14044 esac
14045 else
14046 case `/usr/bin/file conftest.$ac_objext` in
14047 *32-bit*)
14048 LD="${LD-ld} -32"
14049 ;;
14050 *N32*)
14051 LD="${LD-ld} -n32"
14052 ;;
14053 *64-bit*)
14054 LD="${LD-ld} -64"
14055 ;;
14056 esac
14057 fi
14058 fi
14059 rm -rf conftest*
14060 ;;
14061
14062 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14063 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14064 # Find out which ABI we are using.
14065 echo 'int i;' > conftest.$ac_ext
14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14067 (eval $ac_compile) 2>&5
14068 ac_status=$?
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; }; then
14071 case `/usr/bin/file conftest.o` in
14072 *32-bit*)
14073 case $host in
14074 x86_64-*kfreebsd*-gnu)
14075 LD="${LD-ld} -m elf_i386_fbsd"
14076 ;;
14077 x86_64-*linux*)
14078 case `/usr/bin/file conftest.o` in
14079 *x86-64*)
14080 LD="${LD-ld} -m elf32_x86_64"
14081 ;;
14082 *)
14083 LD="${LD-ld} -m elf_i386"
14084 ;;
14085 esac
14086 ;;
14087 powerpc64le-*linux*)
14088 LD="${LD-ld} -m elf32lppclinux"
14089 ;;
14090 powerpc64-*linux*)
14091 LD="${LD-ld} -m elf32ppclinux"
14092 ;;
14093 s390x-*linux*)
14094 LD="${LD-ld} -m elf_s390"
14095 ;;
14096 sparc64-*linux*)
14097 LD="${LD-ld} -m elf32_sparc"
14098 ;;
14099 esac
14100 ;;
14101 *64-bit*)
14102 case $host in
14103 x86_64-*kfreebsd*-gnu)
14104 LD="${LD-ld} -m elf_x86_64_fbsd"
14105 ;;
14106 x86_64-*linux*)
14107 LD="${LD-ld} -m elf_x86_64"
14108 ;;
14109 powerpcle-*linux*)
14110 LD="${LD-ld} -m elf64lppc"
14111 ;;
14112 powerpc-*linux*)
14113 LD="${LD-ld} -m elf64ppc"
14114 ;;
14115 s390*-*linux*|s390*-*tpf*)
14116 LD="${LD-ld} -m elf64_s390"
14117 ;;
14118 sparc*-*linux*)
14119 LD="${LD-ld} -m elf64_sparc"
14120 ;;
14121 esac
14122 ;;
14123 esac
14124 fi
14125 rm -rf conftest*
14126 ;;
14127
14128 *-*-sco3.2v5*)
14129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14130 SAVE_CFLAGS="$CFLAGS"
14131 CFLAGS="$CFLAGS -belf"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14133 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14134 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 ac_ext=c
14138 ac_cpp='$CPP $CPPFLAGS'
14139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14142
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145
14146 int
14147 main ()
14148 {
14149
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 lt_cv_cc_needs_belf=yes
14156 else
14157 lt_cv_cc_needs_belf=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 ac_ext=c
14162 ac_cpp='$CPP $CPPFLAGS'
14163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14169 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14170 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14172 CFLAGS="$SAVE_CFLAGS"
14173 fi
14174 ;;
14175 sparc*-*solaris*)
14176 # Find out which ABI we are using.
14177 echo 'int i;' > conftest.$ac_ext
14178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14179 (eval $ac_compile) 2>&5
14180 ac_status=$?
14181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182 test $ac_status = 0; }; then
14183 case `/usr/bin/file conftest.o` in
14184 *64-bit*)
14185 case $lt_cv_prog_gnu_ld in
14186 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14187 *)
14188 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14189 LD="${LD-ld} -64"
14190 fi
14191 ;;
14192 esac
14193 ;;
14194 esac
14195 fi
14196 rm -rf conftest*
14197 ;;
14198 esac
14199
14200 need_locks="$enable_libtool_lock"
14201
14202
14203 case $host_os in
14204 rhapsody* | darwin*)
14205 if test -n "$ac_tool_prefix"; then
14206 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14207 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 if test -n "$DSYMUTIL"; then
14214 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14215 else
14216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217 for as_dir in $PATH
14218 do
14219 IFS=$as_save_IFS
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
14222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14223 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14225 break 2
14226 fi
14227 done
14228 done
14229 IFS=$as_save_IFS
14230
14231 fi
14232 fi
14233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14234 if test -n "$DSYMUTIL"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14236 $as_echo "$DSYMUTIL" >&6; }
14237 else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241
14242
14243 fi
14244 if test -z "$ac_cv_prog_DSYMUTIL"; then
14245 ac_ct_DSYMUTIL=$DSYMUTIL
14246 # Extract the first word of "dsymutil", so it can be a program name with args.
14247 set dummy dsymutil; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test -n "$ac_ct_DSYMUTIL"; then
14254 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14255 else
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14258 do
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14266 fi
14267 done
14268 done
14269 IFS=$as_save_IFS
14270
14271 fi
14272 fi
14273 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14274 if test -n "$ac_ct_DSYMUTIL"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14276 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280 fi
14281
14282 if test "x$ac_ct_DSYMUTIL" = x; then
14283 DSYMUTIL=":"
14284 else
14285 case $cross_compiling:$ac_tool_warned in
14286 yes:)
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14289 ac_tool_warned=yes ;;
14290 esac
14291 DSYMUTIL=$ac_ct_DSYMUTIL
14292 fi
14293 else
14294 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14295 fi
14296
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 if test -n "$NMEDIT"; then
14306 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 NMEDIT=$ac_cv_prog_NMEDIT
14326 if test -n "$NMEDIT"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14328 $as_echo "$NMEDIT" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14332 fi
14333
14334
14335 fi
14336 if test -z "$ac_cv_prog_NMEDIT"; then
14337 ac_ct_NMEDIT=$NMEDIT
14338 # Extract the first word of "nmedit", so it can be a program name with args.
14339 set dummy nmedit; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$ac_ct_NMEDIT"; then
14346 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14366 if test -n "$ac_ct_NMEDIT"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14368 $as_echo "$ac_ct_NMEDIT" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372 fi
14373
14374 if test "x$ac_ct_NMEDIT" = x; then
14375 NMEDIT=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378 yes:)
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14381 ac_tool_warned=yes ;;
14382 esac
14383 NMEDIT=$ac_ct_NMEDIT
14384 fi
14385 else
14386 NMEDIT="$ac_cv_prog_NMEDIT"
14387 fi
14388
14389 if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14391 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14393 $as_echo_n "checking for $ac_word... " >&6; }
14394 if test "${ac_cv_prog_LIPO+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 if test -n "$LIPO"; then
14398 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14399 else
14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401 for as_dir in $PATH
14402 do
14403 IFS=$as_save_IFS
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
14406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14407 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14409 break 2
14410 fi
14411 done
14412 done
14413 IFS=$as_save_IFS
14414
14415 fi
14416 fi
14417 LIPO=$ac_cv_prog_LIPO
14418 if test -n "$LIPO"; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14420 $as_echo "$LIPO" >&6; }
14421 else
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424 fi
14425
14426
14427 fi
14428 if test -z "$ac_cv_prog_LIPO"; then
14429 ac_ct_LIPO=$LIPO
14430 # Extract the first word of "lipo", so it can be a program name with args.
14431 set dummy lipo; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 if test -n "$ac_ct_LIPO"; then
14438 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14442 do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_ac_ct_LIPO="lipo"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451 done
14452 done
14453 IFS=$as_save_IFS
14454
14455 fi
14456 fi
14457 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14458 if test -n "$ac_ct_LIPO"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14460 $as_echo "$ac_ct_LIPO" >&6; }
14461 else
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14464 fi
14465
14466 if test "x$ac_ct_LIPO" = x; then
14467 LIPO=":"
14468 else
14469 case $cross_compiling:$ac_tool_warned in
14470 yes:)
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14473 ac_tool_warned=yes ;;
14474 esac
14475 LIPO=$ac_ct_LIPO
14476 fi
14477 else
14478 LIPO="$ac_cv_prog_LIPO"
14479 fi
14480
14481 if test -n "$ac_tool_prefix"; then
14482 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14483 set dummy ${ac_tool_prefix}otool; ac_word=$2
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14485 $as_echo_n "checking for $ac_word... " >&6; }
14486 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 if test -n "$OTOOL"; then
14490 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14491 else
14492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493 for as_dir in $PATH
14494 do
14495 IFS=$as_save_IFS
14496 test -z "$as_dir" && as_dir=.
14497 for ac_exec_ext in '' $ac_executable_extensions; do
14498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14499 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14501 break 2
14502 fi
14503 done
14504 done
14505 IFS=$as_save_IFS
14506
14507 fi
14508 fi
14509 OTOOL=$ac_cv_prog_OTOOL
14510 if test -n "$OTOOL"; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14512 $as_echo "$OTOOL" >&6; }
14513 else
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14516 fi
14517
14518
14519 fi
14520 if test -z "$ac_cv_prog_OTOOL"; then
14521 ac_ct_OTOOL=$OTOOL
14522 # Extract the first word of "otool", so it can be a program name with args.
14523 set dummy otool; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 $as_echo_n "checking for $ac_word... " >&6; }
14526 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 if test -n "$ac_ct_OTOOL"; then
14530 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14531 else
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14534 do
14535 IFS=$as_save_IFS
14536 test -z "$as_dir" && as_dir=.
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14539 ac_cv_prog_ac_ct_OTOOL="otool"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14541 break 2
14542 fi
14543 done
14544 done
14545 IFS=$as_save_IFS
14546
14547 fi
14548 fi
14549 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14550 if test -n "$ac_ct_OTOOL"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14552 $as_echo "$ac_ct_OTOOL" >&6; }
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 fi
14557
14558 if test "x$ac_ct_OTOOL" = x; then
14559 OTOOL=":"
14560 else
14561 case $cross_compiling:$ac_tool_warned in
14562 yes:)
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14565 ac_tool_warned=yes ;;
14566 esac
14567 OTOOL=$ac_ct_OTOOL
14568 fi
14569 else
14570 OTOOL="$ac_cv_prog_OTOOL"
14571 fi
14572
14573 if test -n "$ac_tool_prefix"; then
14574 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14575 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14577 $as_echo_n "checking for $ac_word... " >&6; }
14578 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 if test -n "$OTOOL64"; then
14582 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14583 else
14584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585 for as_dir in $PATH
14586 do
14587 IFS=$as_save_IFS
14588 test -z "$as_dir" && as_dir=.
14589 for ac_exec_ext in '' $ac_executable_extensions; do
14590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14591 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14593 break 2
14594 fi
14595 done
14596 done
14597 IFS=$as_save_IFS
14598
14599 fi
14600 fi
14601 OTOOL64=$ac_cv_prog_OTOOL64
14602 if test -n "$OTOOL64"; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14604 $as_echo "$OTOOL64" >&6; }
14605 else
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14607 $as_echo "no" >&6; }
14608 fi
14609
14610
14611 fi
14612 if test -z "$ac_cv_prog_OTOOL64"; then
14613 ac_ct_OTOOL64=$OTOOL64
14614 # Extract the first word of "otool64", so it can be a program name with args.
14615 set dummy otool64; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617 $as_echo_n "checking for $ac_word... " >&6; }
14618 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 if test -n "$ac_ct_OTOOL64"; then
14622 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14623 else
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14631 ac_cv_prog_ac_ct_OTOOL64="otool64"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 break 2
14634 fi
14635 done
14636 done
14637 IFS=$as_save_IFS
14638
14639 fi
14640 fi
14641 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14642 if test -n "$ac_ct_OTOOL64"; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14644 $as_echo "$ac_ct_OTOOL64" >&6; }
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648 fi
14649
14650 if test "x$ac_ct_OTOOL64" = x; then
14651 OTOOL64=":"
14652 else
14653 case $cross_compiling:$ac_tool_warned in
14654 yes:)
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14657 ac_tool_warned=yes ;;
14658 esac
14659 OTOOL64=$ac_ct_OTOOL64
14660 fi
14661 else
14662 OTOOL64="$ac_cv_prog_OTOOL64"
14663 fi
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14692 $as_echo_n "checking for -single_module linker flag... " >&6; }
14693 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 lt_cv_apple_cc_single_mod=no
14697 if test -z "${LT_MULTI_MODULE}"; then
14698 # By default we will add the -single_module flag. You can override
14699 # by either setting the environment variable LT_MULTI_MODULE
14700 # non-empty at configure time, or by adding -multi_module to the
14701 # link flags.
14702 rm -rf libconftest.dylib*
14703 echo "int foo(void){return 1;}" > conftest.c
14704 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14705 -dynamiclib -Wl,-single_module conftest.c" >&5
14706 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14707 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14708 _lt_result=$?
14709 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14710 lt_cv_apple_cc_single_mod=yes
14711 else
14712 cat conftest.err >&5
14713 fi
14714 rm -rf libconftest.dylib*
14715 rm -f conftest.*
14716 fi
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14719 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14722 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 lt_cv_ld_exported_symbols_list=no
14726 save_LDFLAGS=$LDFLAGS
14727 echo "_main" > conftest.sym
14728 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731
14732 int
14733 main ()
14734 {
14735
14736 ;
14737 return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 lt_cv_ld_exported_symbols_list=yes
14742 else
14743 lt_cv_ld_exported_symbols_list=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext \
14746 conftest$ac_exeext conftest.$ac_ext
14747 LDFLAGS="$save_LDFLAGS"
14748
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14753 $as_echo_n "checking for -force_load linker flag... " >&6; }
14754 if test "${lt_cv_ld_force_load+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 lt_cv_ld_force_load=no
14758 cat > conftest.c << _LT_EOF
14759 int forced_loaded() { return 2;}
14760 _LT_EOF
14761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14763 echo "$AR cru libconftest.a conftest.o" >&5
14764 $AR cru libconftest.a conftest.o 2>&5
14765 cat > conftest.c << _LT_EOF
14766 int main() { return 0;}
14767 _LT_EOF
14768 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14769 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14770 _lt_result=$?
14771 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14772 lt_cv_ld_force_load=yes
14773 else
14774 cat conftest.err >&5
14775 fi
14776 rm -f conftest.err libconftest.a conftest conftest.c
14777 rm -rf conftest.dSYM
14778
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14781 $as_echo "$lt_cv_ld_force_load" >&6; }
14782 case $host_os in
14783 rhapsody* | darwin1.[012])
14784 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14785 darwin1.*)
14786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14787 darwin*) # darwin 5.x on
14788 # if running on 10.5 or later, the deployment target defaults
14789 # to the OS version, if on x86, and 10.4, the deployment
14790 # target defaults to 10.4. Don't you love it?
14791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14794 10.[012][,.]*)
14795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14796 10.*)
14797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14798 esac
14799 ;;
14800 esac
14801 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14802 _lt_dar_single_mod='$single_module'
14803 fi
14804 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14805 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14806 else
14807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14808 fi
14809 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14810 _lt_dsymutil='~$DSYMUTIL $lib || :'
14811 else
14812 _lt_dsymutil=
14813 fi
14814 ;;
14815 esac
14816
14817
14818 for ac_header in dlfcn.h
14819 do :
14820 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_DLFCN_H 1
14824 _ACEOF
14825
14826 fi
14827 done
14828
14829
14830
14831
14832
14833 # Set options
14834
14835
14836
14837 enable_dlopen=no
14838
14839
14840 enable_win32_dll=no
14841
14842
14843 # Check whether --enable-shared was given.
14844 if test "${enable_shared+set}" = set; then :
14845 enableval=$enable_shared; p=${PACKAGE-default}
14846 case $enableval in
14847 yes) enable_shared=yes ;;
14848 no) enable_shared=no ;;
14849 *)
14850 enable_shared=no
14851 # Look at the argument we got. We use all the common list separators.
14852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14853 for pkg in $enableval; do
14854 IFS="$lt_save_ifs"
14855 if test "X$pkg" = "X$p"; then
14856 enable_shared=yes
14857 fi
14858 done
14859 IFS="$lt_save_ifs"
14860 ;;
14861 esac
14862 else
14863 enable_shared=yes
14864 fi
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874 # Check whether --enable-static was given.
14875 if test "${enable_static+set}" = set; then :
14876 enableval=$enable_static; p=${PACKAGE-default}
14877 case $enableval in
14878 yes) enable_static=yes ;;
14879 no) enable_static=no ;;
14880 *)
14881 enable_static=no
14882 # Look at the argument we got. We use all the common list separators.
14883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14884 for pkg in $enableval; do
14885 IFS="$lt_save_ifs"
14886 if test "X$pkg" = "X$p"; then
14887 enable_static=yes
14888 fi
14889 done
14890 IFS="$lt_save_ifs"
14891 ;;
14892 esac
14893 else
14894 enable_static=yes
14895 fi
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906 # Check whether --with-pic was given.
14907 if test "${with_pic+set}" = set; then :
14908 withval=$with_pic; pic_mode="$withval"
14909 else
14910 pic_mode=default
14911 fi
14912
14913
14914 test -z "$pic_mode" && pic_mode=default
14915
14916
14917
14918
14919
14920
14921
14922 # Check whether --enable-fast-install was given.
14923 if test "${enable_fast_install+set}" = set; then :
14924 enableval=$enable_fast_install; p=${PACKAGE-default}
14925 case $enableval in
14926 yes) enable_fast_install=yes ;;
14927 no) enable_fast_install=no ;;
14928 *)
14929 enable_fast_install=no
14930 # Look at the argument we got. We use all the common list separators.
14931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14932 for pkg in $enableval; do
14933 IFS="$lt_save_ifs"
14934 if test "X$pkg" = "X$p"; then
14935 enable_fast_install=yes
14936 fi
14937 done
14938 IFS="$lt_save_ifs"
14939 ;;
14940 esac
14941 else
14942 enable_fast_install=yes
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955 # This can be used to rebuild libtool when needed
14956 LIBTOOL_DEPS="$ltmain"
14957
14958 # Always use our own libtool.
14959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986 test -z "$LN_S" && LN_S="ln -s"
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001 if test -n "${ZSH_VERSION+set}" ; then
15002 setopt NO_GLOB_SUBST
15003 fi
15004
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15006 $as_echo_n "checking for objdir... " >&6; }
15007 if test "${lt_cv_objdir+set}" = set; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 rm -f .libs 2>/dev/null
15011 mkdir .libs 2>/dev/null
15012 if test -d .libs; then
15013 lt_cv_objdir=.libs
15014 else
15015 # MS-DOS does not allow filenames that begin with a dot.
15016 lt_cv_objdir=_libs
15017 fi
15018 rmdir .libs 2>/dev/null
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15021 $as_echo "$lt_cv_objdir" >&6; }
15022 objdir=$lt_cv_objdir
15023
15024
15025
15026
15027
15028 cat >>confdefs.h <<_ACEOF
15029 #define LT_OBJDIR "$lt_cv_objdir/"
15030 _ACEOF
15031
15032
15033
15034
15035 case $host_os in
15036 aix3*)
15037 # AIX sometimes has problems with the GCC collect2 program. For some
15038 # reason, if we set the COLLECT_NAMES environment variable, the problems
15039 # vanish in a puff of smoke.
15040 if test "X${COLLECT_NAMES+set}" != Xset; then
15041 COLLECT_NAMES=
15042 export COLLECT_NAMES
15043 fi
15044 ;;
15045 esac
15046
15047 # Global variables:
15048 ofile=libtool
15049 can_build_shared=yes
15050
15051 # All known linkers require a `.a' archive for static linking (except MSVC,
15052 # which needs '.lib').
15053 libext=a
15054
15055 with_gnu_ld="$lt_cv_prog_gnu_ld"
15056
15057 old_CC="$CC"
15058 old_CFLAGS="$CFLAGS"
15059
15060 # Set sane defaults for various variables
15061 test -z "$CC" && CC=cc
15062 test -z "$LTCC" && LTCC=$CC
15063 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15064 test -z "$LD" && LD=ld
15065 test -z "$ac_objext" && ac_objext=o
15066
15067 for cc_temp in $compiler""; do
15068 case $cc_temp in
15069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15071 \-*) ;;
15072 *) break;;
15073 esac
15074 done
15075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15076
15077
15078 # Only perform the check for file, if the check method requires it
15079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15080 case $deplibs_check_method in
15081 file_magic*)
15082 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15084 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 case $MAGIC_CMD in
15089 [\\/*] | ?:[\\/]*)
15090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15091 ;;
15092 *)
15093 lt_save_MAGIC_CMD="$MAGIC_CMD"
15094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15096 for ac_dir in $ac_dummy; do
15097 IFS="$lt_save_ifs"
15098 test -z "$ac_dir" && ac_dir=.
15099 if test -f $ac_dir/${ac_tool_prefix}file; then
15100 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15101 if test -n "$file_magic_test_file"; then
15102 case $deplibs_check_method in
15103 "file_magic "*)
15104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15107 $EGREP "$file_magic_regex" > /dev/null; then
15108 :
15109 else
15110 cat <<_LT_EOF 1>&2
15111
15112 *** Warning: the command libtool uses to detect shared libraries,
15113 *** $file_magic_cmd, produces output that libtool cannot recognize.
15114 *** The result is that libtool may fail to recognize shared libraries
15115 *** as such. This will affect the creation of libtool libraries that
15116 *** depend on shared libraries, but programs linked with such libtool
15117 *** libraries will work regardless of this problem. Nevertheless, you
15118 *** may want to report the problem to your system manager and/or to
15119 *** bug-libtool@gnu.org
15120
15121 _LT_EOF
15122 fi ;;
15123 esac
15124 fi
15125 break
15126 fi
15127 done
15128 IFS="$lt_save_ifs"
15129 MAGIC_CMD="$lt_save_MAGIC_CMD"
15130 ;;
15131 esac
15132 fi
15133
15134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15135 if test -n "$MAGIC_CMD"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15137 $as_echo "$MAGIC_CMD" >&6; }
15138 else
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15140 $as_echo "no" >&6; }
15141 fi
15142
15143
15144
15145
15146
15147 if test -z "$lt_cv_path_MAGIC_CMD"; then
15148 if test -n "$ac_tool_prefix"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15150 $as_echo_n "checking for file... " >&6; }
15151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 case $MAGIC_CMD in
15155 [\\/*] | ?:[\\/]*)
15156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15157 ;;
15158 *)
15159 lt_save_MAGIC_CMD="$MAGIC_CMD"
15160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15162 for ac_dir in $ac_dummy; do
15163 IFS="$lt_save_ifs"
15164 test -z "$ac_dir" && ac_dir=.
15165 if test -f $ac_dir/file; then
15166 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15167 if test -n "$file_magic_test_file"; then
15168 case $deplibs_check_method in
15169 "file_magic "*)
15170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15173 $EGREP "$file_magic_regex" > /dev/null; then
15174 :
15175 else
15176 cat <<_LT_EOF 1>&2
15177
15178 *** Warning: the command libtool uses to detect shared libraries,
15179 *** $file_magic_cmd, produces output that libtool cannot recognize.
15180 *** The result is that libtool may fail to recognize shared libraries
15181 *** as such. This will affect the creation of libtool libraries that
15182 *** depend on shared libraries, but programs linked with such libtool
15183 *** libraries will work regardless of this problem. Nevertheless, you
15184 *** may want to report the problem to your system manager and/or to
15185 *** bug-libtool@gnu.org
15186
15187 _LT_EOF
15188 fi ;;
15189 esac
15190 fi
15191 break
15192 fi
15193 done
15194 IFS="$lt_save_ifs"
15195 MAGIC_CMD="$lt_save_MAGIC_CMD"
15196 ;;
15197 esac
15198 fi
15199
15200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15201 if test -n "$MAGIC_CMD"; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15203 $as_echo "$MAGIC_CMD" >&6; }
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206 $as_echo "no" >&6; }
15207 fi
15208
15209
15210 else
15211 MAGIC_CMD=:
15212 fi
15213 fi
15214
15215 fi
15216 ;;
15217 esac
15218
15219 # Use C for the default configuration in the libtool script
15220
15221 lt_save_CC="$CC"
15222 ac_ext=c
15223 ac_cpp='$CPP $CPPFLAGS'
15224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227
15228
15229 # Source file extension for C test sources.
15230 ac_ext=c
15231
15232 # Object file extension for compiled C test sources.
15233 objext=o
15234 objext=$objext
15235
15236 # Code to be used in simple compile tests
15237 lt_simple_compile_test_code="int some_variable = 0;"
15238
15239 # Code to be used in simple link tests
15240 lt_simple_link_test_code='int main(){return(0);}'
15241
15242
15243
15244
15245
15246
15247
15248 # If no C compiler was specified, use CC.
15249 LTCC=${LTCC-"$CC"}
15250
15251 # If no C compiler flags were specified, use CFLAGS.
15252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15253
15254 # Allow CC to be a program name with arguments.
15255 compiler=$CC
15256
15257 # Save the default compiler, since it gets overwritten when the other
15258 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15259 compiler_DEFAULT=$CC
15260
15261 # save warnings/boilerplate of simple test code
15262 ac_outfile=conftest.$ac_objext
15263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15265 _lt_compiler_boilerplate=`cat conftest.err`
15266 $RM conftest*
15267
15268 ac_outfile=conftest.$ac_objext
15269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15271 _lt_linker_boilerplate=`cat conftest.err`
15272 $RM -r conftest*
15273
15274
15275 ## CAVEAT EMPTOR:
15276 ## There is no encapsulation within the following macros, do not change
15277 ## the running order or otherwise move them around unless you know exactly
15278 ## what you are doing...
15279 if test -n "$compiler"; then
15280
15281 lt_prog_compiler_no_builtin_flag=
15282
15283 if test "$GCC" = yes; then
15284 case $cc_basename in
15285 nvcc*)
15286 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15287 *)
15288 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15289 esac
15290
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 lt_cv_prog_compiler_rtti_exceptions=no
15297 ac_outfile=conftest.$ac_objext
15298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299 lt_compiler_flag="-fno-rtti -fno-exceptions"
15300 # Insert the option either (1) after the last *FLAGS variable, or
15301 # (2) before a word containing "conftest.", or (3) at the end.
15302 # Note that $ac_compile itself does not contain backslashes and begins
15303 # with a dollar sign (not a hyphen), so the echo should work correctly.
15304 # The option is referenced via a variable to avoid confusing sed.
15305 lt_compile=`echo "$ac_compile" | $SED \
15306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308 -e 's:$: $lt_compiler_flag:'`
15309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310 (eval "$lt_compile" 2>conftest.err)
15311 ac_status=$?
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 if (exit $ac_status) && test -s "$ac_outfile"; then
15315 # The compiler can only warn and ignore the option if not recognized
15316 # So say no if there are warnings other than the usual output.
15317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15320 lt_cv_prog_compiler_rtti_exceptions=yes
15321 fi
15322 fi
15323 $RM conftest*
15324
15325 fi
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15328
15329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15331 else
15332 :
15333 fi
15334
15335 fi
15336
15337
15338
15339
15340
15341
15342 lt_prog_compiler_wl=
15343 lt_prog_compiler_pic=
15344 lt_prog_compiler_static=
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15348
15349 if test "$GCC" = yes; then
15350 lt_prog_compiler_wl='-Wl,'
15351 lt_prog_compiler_static='-static'
15352
15353 case $host_os in
15354 aix*)
15355 # All AIX code is PIC.
15356 if test "$host_cpu" = ia64; then
15357 # AIX 5 now supports IA64 processor
15358 lt_prog_compiler_static='-Bstatic'
15359 fi
15360 lt_prog_compiler_pic='-fPIC'
15361 ;;
15362
15363 amigaos*)
15364 case $host_cpu in
15365 powerpc)
15366 # see comment about AmigaOS4 .so support
15367 lt_prog_compiler_pic='-fPIC'
15368 ;;
15369 m68k)
15370 # FIXME: we need at least 68020 code to build shared libraries, but
15371 # adding the `-m68020' flag to GCC prevents building anything better,
15372 # like `-m68040'.
15373 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15374 ;;
15375 esac
15376 ;;
15377
15378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15379 # PIC is the default for these OSes.
15380 ;;
15381
15382 mingw* | cygwin* | pw32* | os2* | cegcc*)
15383 # This hack is so that the source file can tell whether it is being
15384 # built for inclusion in a dll (and should export symbols for example).
15385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15386 # (--disable-auto-import) libraries
15387 lt_prog_compiler_pic='-DDLL_EXPORT'
15388 ;;
15389
15390 darwin* | rhapsody*)
15391 # PIC is the default on this platform
15392 # Common symbols not allowed in MH_DYLIB files
15393 lt_prog_compiler_pic='-fno-common'
15394 ;;
15395
15396 haiku*)
15397 # PIC is the default for Haiku.
15398 # The "-static" flag exists, but is broken.
15399 lt_prog_compiler_static=
15400 ;;
15401
15402 hpux*)
15403 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15404 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15405 # sets the default TLS model and affects inlining.
15406 case $host_cpu in
15407 hppa*64*)
15408 # +Z the default
15409 ;;
15410 *)
15411 lt_prog_compiler_pic='-fPIC'
15412 ;;
15413 esac
15414 ;;
15415
15416 interix[3-9]*)
15417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15418 # Instead, we relocate shared libraries at runtime.
15419 ;;
15420
15421 msdosdjgpp*)
15422 # Just because we use GCC doesn't mean we suddenly get shared libraries
15423 # on systems that don't support them.
15424 lt_prog_compiler_can_build_shared=no
15425 enable_shared=no
15426 ;;
15427
15428 *nto* | *qnx*)
15429 # QNX uses GNU C++, but need to define -shared option too, otherwise
15430 # it will coredump.
15431 lt_prog_compiler_pic='-fPIC -shared'
15432 ;;
15433
15434 sysv4*MP*)
15435 if test -d /usr/nec; then
15436 lt_prog_compiler_pic=-Kconform_pic
15437 fi
15438 ;;
15439
15440 *)
15441 lt_prog_compiler_pic='-fPIC'
15442 ;;
15443 esac
15444
15445 case $cc_basename in
15446 nvcc*) # Cuda Compiler Driver 2.2
15447 lt_prog_compiler_wl='-Xlinker '
15448 lt_prog_compiler_pic='-Xcompiler -fPIC'
15449 ;;
15450 esac
15451 else
15452 # PORTME Check for flag to pass linker flags through the system compiler.
15453 case $host_os in
15454 aix*)
15455 lt_prog_compiler_wl='-Wl,'
15456 if test "$host_cpu" = ia64; then
15457 # AIX 5 now supports IA64 processor
15458 lt_prog_compiler_static='-Bstatic'
15459 else
15460 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15461 fi
15462 ;;
15463
15464 mingw* | cygwin* | pw32* | os2* | cegcc*)
15465 # This hack is so that the source file can tell whether it is being
15466 # built for inclusion in a dll (and should export symbols for example).
15467 lt_prog_compiler_pic='-DDLL_EXPORT'
15468 ;;
15469
15470 hpux9* | hpux10* | hpux11*)
15471 lt_prog_compiler_wl='-Wl,'
15472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15473 # not for PA HP-UX.
15474 case $host_cpu in
15475 hppa*64*|ia64*)
15476 # +Z the default
15477 ;;
15478 *)
15479 lt_prog_compiler_pic='+Z'
15480 ;;
15481 esac
15482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15483 lt_prog_compiler_static='${wl}-a ${wl}archive'
15484 ;;
15485
15486 irix5* | irix6* | nonstopux*)
15487 lt_prog_compiler_wl='-Wl,'
15488 # PIC (with -KPIC) is the default.
15489 lt_prog_compiler_static='-non_shared'
15490 ;;
15491
15492 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15493 case $cc_basename in
15494 # old Intel for x86_64 which still supported -KPIC.
15495 ecc*)
15496 lt_prog_compiler_wl='-Wl,'
15497 lt_prog_compiler_pic='-KPIC'
15498 lt_prog_compiler_static='-static'
15499 ;;
15500 # icc used to be incompatible with GCC.
15501 # ICC 10 doesn't accept -KPIC any more.
15502 icc* | ifort*)
15503 lt_prog_compiler_wl='-Wl,'
15504 lt_prog_compiler_pic='-fPIC'
15505 lt_prog_compiler_static='-static'
15506 ;;
15507 # Lahey Fortran 8.1.
15508 lf95*)
15509 lt_prog_compiler_wl='-Wl,'
15510 lt_prog_compiler_pic='--shared'
15511 lt_prog_compiler_static='--static'
15512 ;;
15513 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15514 # Portland Group compilers (*not* the Pentium gcc compiler,
15515 # which looks to be a dead project)
15516 lt_prog_compiler_wl='-Wl,'
15517 lt_prog_compiler_pic='-fpic'
15518 lt_prog_compiler_static='-Bstatic'
15519 ;;
15520 ccc*)
15521 lt_prog_compiler_wl='-Wl,'
15522 # All Alpha code is PIC.
15523 lt_prog_compiler_static='-non_shared'
15524 ;;
15525 xl* | bgxl* | bgf* | mpixl*)
15526 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15527 lt_prog_compiler_wl='-Wl,'
15528 lt_prog_compiler_pic='-qpic'
15529 lt_prog_compiler_static='-qstaticlink'
15530 ;;
15531 *)
15532 case `$CC -V 2>&1 | sed 5q` in
15533 *Sun\ F* | *Sun*Fortran*)
15534 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15535 lt_prog_compiler_pic='-KPIC'
15536 lt_prog_compiler_static='-Bstatic'
15537 lt_prog_compiler_wl=''
15538 ;;
15539 *Sun\ C*)
15540 # Sun C 5.9
15541 lt_prog_compiler_pic='-KPIC'
15542 lt_prog_compiler_static='-Bstatic'
15543 lt_prog_compiler_wl='-Wl,'
15544 ;;
15545 esac
15546 ;;
15547 esac
15548 ;;
15549
15550 newsos6)
15551 lt_prog_compiler_pic='-KPIC'
15552 lt_prog_compiler_static='-Bstatic'
15553 ;;
15554
15555 *nto* | *qnx*)
15556 # QNX uses GNU C++, but need to define -shared option too, otherwise
15557 # it will coredump.
15558 lt_prog_compiler_pic='-fPIC -shared'
15559 ;;
15560
15561 osf3* | osf4* | osf5*)
15562 lt_prog_compiler_wl='-Wl,'
15563 # All OSF/1 code is PIC.
15564 lt_prog_compiler_static='-non_shared'
15565 ;;
15566
15567 rdos*)
15568 lt_prog_compiler_static='-non_shared'
15569 ;;
15570
15571 solaris*)
15572 lt_prog_compiler_pic='-KPIC'
15573 lt_prog_compiler_static='-Bstatic'
15574 case $cc_basename in
15575 f77* | f90* | f95*)
15576 lt_prog_compiler_wl='-Qoption ld ';;
15577 *)
15578 lt_prog_compiler_wl='-Wl,';;
15579 esac
15580 ;;
15581
15582 sunos4*)
15583 lt_prog_compiler_wl='-Qoption ld '
15584 lt_prog_compiler_pic='-PIC'
15585 lt_prog_compiler_static='-Bstatic'
15586 ;;
15587
15588 sysv4 | sysv4.2uw2* | sysv4.3*)
15589 lt_prog_compiler_wl='-Wl,'
15590 lt_prog_compiler_pic='-KPIC'
15591 lt_prog_compiler_static='-Bstatic'
15592 ;;
15593
15594 sysv4*MP*)
15595 if test -d /usr/nec ;then
15596 lt_prog_compiler_pic='-Kconform_pic'
15597 lt_prog_compiler_static='-Bstatic'
15598 fi
15599 ;;
15600
15601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15602 lt_prog_compiler_wl='-Wl,'
15603 lt_prog_compiler_pic='-KPIC'
15604 lt_prog_compiler_static='-Bstatic'
15605 ;;
15606
15607 unicos*)
15608 lt_prog_compiler_wl='-Wl,'
15609 lt_prog_compiler_can_build_shared=no
15610 ;;
15611
15612 uts4*)
15613 lt_prog_compiler_pic='-pic'
15614 lt_prog_compiler_static='-Bstatic'
15615 ;;
15616
15617 *)
15618 lt_prog_compiler_can_build_shared=no
15619 ;;
15620 esac
15621 fi
15622
15623 case $host_os in
15624 # For platforms which do not support PIC, -DPIC is meaningless:
15625 *djgpp*)
15626 lt_prog_compiler_pic=
15627 ;;
15628 *)
15629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15630 ;;
15631 esac
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15633 $as_echo "$lt_prog_compiler_pic" >&6; }
15634
15635
15636
15637
15638
15639
15640 #
15641 # Check to make sure the PIC flag actually works.
15642 #
15643 if test -n "$lt_prog_compiler_pic"; then
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15646 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 lt_cv_prog_compiler_pic_works=no
15650 ac_outfile=conftest.$ac_objext
15651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15653 # Insert the option either (1) after the last *FLAGS variable, or
15654 # (2) before a word containing "conftest.", or (3) at the end.
15655 # Note that $ac_compile itself does not contain backslashes and begins
15656 # with a dollar sign (not a hyphen), so the echo should work correctly.
15657 # The option is referenced via a variable to avoid confusing sed.
15658 lt_compile=`echo "$ac_compile" | $SED \
15659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15661 -e 's:$: $lt_compiler_flag:'`
15662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15663 (eval "$lt_compile" 2>conftest.err)
15664 ac_status=$?
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 if (exit $ac_status) && test -s "$ac_outfile"; then
15668 # The compiler can only warn and ignore the option if not recognized
15669 # So say no if there are warnings other than the usual output.
15670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15673 lt_cv_prog_compiler_pic_works=yes
15674 fi
15675 fi
15676 $RM conftest*
15677
15678 fi
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15680 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15681
15682 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15683 case $lt_prog_compiler_pic in
15684 "" | " "*) ;;
15685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15686 esac
15687 else
15688 lt_prog_compiler_pic=
15689 lt_prog_compiler_can_build_shared=no
15690 fi
15691
15692 fi
15693
15694
15695
15696
15697
15698
15699 #
15700 # Check to make sure the static flag actually works.
15701 #
15702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15705 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 lt_cv_prog_compiler_static_works=no
15709 save_LDFLAGS="$LDFLAGS"
15710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15713 # The linker can only warn and ignore the option if not recognized
15714 # So say no if there are warnings
15715 if test -s conftest.err; then
15716 # Append any errors to the config.log.
15717 cat conftest.err 1>&5
15718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15720 if diff conftest.exp conftest.er2 >/dev/null; then
15721 lt_cv_prog_compiler_static_works=yes
15722 fi
15723 else
15724 lt_cv_prog_compiler_static_works=yes
15725 fi
15726 fi
15727 $RM -r conftest*
15728 LDFLAGS="$save_LDFLAGS"
15729
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15733
15734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15735 :
15736 else
15737 lt_prog_compiler_static=
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15748 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 lt_cv_prog_compiler_c_o=no
15752 $RM -r conftest 2>/dev/null
15753 mkdir conftest
15754 cd conftest
15755 mkdir out
15756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15757
15758 lt_compiler_flag="-o out/conftest2.$ac_objext"
15759 # Insert the option either (1) after the last *FLAGS variable, or
15760 # (2) before a word containing "conftest.", or (3) at the end.
15761 # Note that $ac_compile itself does not contain backslashes and begins
15762 # with a dollar sign (not a hyphen), so the echo should work correctly.
15763 lt_compile=`echo "$ac_compile" | $SED \
15764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15766 -e 's:$: $lt_compiler_flag:'`
15767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15768 (eval "$lt_compile" 2>out/conftest.err)
15769 ac_status=$?
15770 cat out/conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15773 then
15774 # The compiler can only warn and ignore the option if not recognized
15775 # So say no if there are warnings
15776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15779 lt_cv_prog_compiler_c_o=yes
15780 fi
15781 fi
15782 chmod u+w . 2>&5
15783 $RM conftest*
15784 # SGI C++ compiler will create directory out/ii_files/ for
15785 # template instantiation
15786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15787 $RM out/* && rmdir out
15788 cd ..
15789 $RM -r conftest
15790 $RM conftest*
15791
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15795
15796
15797
15798
15799
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler_c_o=no
15807 $RM -r conftest 2>/dev/null
15808 mkdir conftest
15809 cd conftest
15810 mkdir out
15811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15812
15813 lt_compiler_flag="-o out/conftest2.$ac_objext"
15814 # Insert the option either (1) after the last *FLAGS variable, or
15815 # (2) before a word containing "conftest.", or (3) at the end.
15816 # Note that $ac_compile itself does not contain backslashes and begins
15817 # with a dollar sign (not a hyphen), so the echo should work correctly.
15818 lt_compile=`echo "$ac_compile" | $SED \
15819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15821 -e 's:$: $lt_compiler_flag:'`
15822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15823 (eval "$lt_compile" 2>out/conftest.err)
15824 ac_status=$?
15825 cat out/conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15828 then
15829 # The compiler can only warn and ignore the option if not recognized
15830 # So say no if there are warnings
15831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15834 lt_cv_prog_compiler_c_o=yes
15835 fi
15836 fi
15837 chmod u+w . 2>&5
15838 $RM conftest*
15839 # SGI C++ compiler will create directory out/ii_files/ for
15840 # template instantiation
15841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15842 $RM out/* && rmdir out
15843 cd ..
15844 $RM -r conftest
15845 $RM conftest*
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15850
15851
15852
15853
15854 hard_links="nottested"
15855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15856 # do not overwrite the value of need_locks provided by the user
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15858 $as_echo_n "checking if we can lock with hard links... " >&6; }
15859 hard_links=yes
15860 $RM conftest*
15861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862 touch conftest.a
15863 ln conftest.a conftest.b 2>&5 || hard_links=no
15864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15866 $as_echo "$hard_links" >&6; }
15867 if test "$hard_links" = no; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15870 need_locks=warn
15871 fi
15872 else
15873 need_locks=no
15874 fi
15875
15876
15877
15878
15879
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15883
15884 runpath_var=
15885 allow_undefined_flag=
15886 always_export_symbols=no
15887 archive_cmds=
15888 archive_expsym_cmds=
15889 compiler_needs_object=no
15890 enable_shared_with_static_runtimes=no
15891 export_dynamic_flag_spec=
15892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15893 hardcode_automatic=no
15894 hardcode_direct=no
15895 hardcode_direct_absolute=no
15896 hardcode_libdir_flag_spec=
15897 hardcode_libdir_flag_spec_ld=
15898 hardcode_libdir_separator=
15899 hardcode_minus_L=no
15900 hardcode_shlibpath_var=unsupported
15901 inherit_rpath=no
15902 link_all_deplibs=unknown
15903 module_cmds=
15904 module_expsym_cmds=
15905 old_archive_from_new_cmds=
15906 old_archive_from_expsyms_cmds=
15907 thread_safe_flag_spec=
15908 whole_archive_flag_spec=
15909 # include_expsyms should be a list of space-separated symbols to be *always*
15910 # included in the symbol list
15911 include_expsyms=
15912 # exclude_expsyms can be an extended regexp of symbols to exclude
15913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15915 # as well as any symbol that contains `d'.
15916 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15918 # platforms (ab)use it in PIC code, but their linkers get confused if
15919 # the symbol is explicitly referenced. Since portable code cannot
15920 # rely on this symbol name, it's probably fine to never include it in
15921 # preloaded symbol tables.
15922 # Exclude shared library initialization/finalization symbols.
15923 extract_expsyms_cmds=
15924
15925 case $host_os in
15926 cygwin* | mingw* | pw32* | cegcc*)
15927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15928 # When not using gcc, we currently assume that we are using
15929 # Microsoft Visual C++.
15930 if test "$GCC" != yes; then
15931 with_gnu_ld=no
15932 fi
15933 ;;
15934 interix*)
15935 # we just hope/assume this is gcc and not c89 (= MSVC++)
15936 with_gnu_ld=yes
15937 ;;
15938 openbsd*)
15939 with_gnu_ld=no
15940 ;;
15941 esac
15942
15943 ld_shlibs=yes
15944
15945 # On some targets, GNU ld is compatible enough with the native linker
15946 # that we're better off using the native interface for both.
15947 lt_use_gnu_ld_interface=no
15948 if test "$with_gnu_ld" = yes; then
15949 case $host_os in
15950 aix*)
15951 # The AIX port of GNU ld has always aspired to compatibility
15952 # with the native linker. However, as the warning in the GNU ld
15953 # block says, versions before 2.19.5* couldn't really create working
15954 # shared libraries, regardless of the interface used.
15955 case `$LD -v 2>&1` in
15956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15958 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15959 *)
15960 lt_use_gnu_ld_interface=yes
15961 ;;
15962 esac
15963 ;;
15964 *)
15965 lt_use_gnu_ld_interface=yes
15966 ;;
15967 esac
15968 fi
15969
15970 if test "$lt_use_gnu_ld_interface" = yes; then
15971 # If archive_cmds runs LD, not CC, wlarc should be empty
15972 wlarc='${wl}'
15973
15974 # Set some defaults for GNU ld with shared library support. These
15975 # are reset later if shared libraries are not supported. Putting them
15976 # here allows them to be overridden if necessary.
15977 runpath_var=LD_RUN_PATH
15978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979 export_dynamic_flag_spec='${wl}--export-dynamic'
15980 # ancient GNU ld didn't support --whole-archive et. al.
15981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15983 else
15984 whole_archive_flag_spec=
15985 fi
15986 supports_anon_versioning=no
15987 case `$LD -v 2>&1` in
15988 *GNU\ gold*) supports_anon_versioning=yes ;;
15989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15992 *\ 2.11.*) ;; # other 2.11 versions
15993 *) supports_anon_versioning=yes ;;
15994 esac
15995
15996 # See if GNU ld supports shared libraries.
15997 case $host_os in
15998 aix[3-9]*)
15999 # On AIX/PPC, the GNU linker is very broken
16000 if test "$host_cpu" != ia64; then
16001 ld_shlibs=no
16002 cat <<_LT_EOF 1>&2
16003
16004 *** Warning: the GNU linker, at least up to release 2.19, is reported
16005 *** to be unable to reliably create shared libraries on AIX.
16006 *** Therefore, libtool is disabling shared libraries support. If you
16007 *** really care for shared libraries, you may want to install binutils
16008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16009 *** You will then need to restart the configuration process.
16010
16011 _LT_EOF
16012 fi
16013 ;;
16014
16015 amigaos*)
16016 case $host_cpu in
16017 powerpc)
16018 # see comment about AmigaOS4 .so support
16019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16020 archive_expsym_cmds=''
16021 ;;
16022 m68k)
16023 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)'
16024 hardcode_libdir_flag_spec='-L$libdir'
16025 hardcode_minus_L=yes
16026 ;;
16027 esac
16028 ;;
16029
16030 beos*)
16031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16032 allow_undefined_flag=unsupported
16033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16034 # support --undefined. This deserves some investigation. FIXME
16035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036 else
16037 ld_shlibs=no
16038 fi
16039 ;;
16040
16041 cygwin* | mingw* | pw32* | cegcc*)
16042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16043 # as there is no search path for DLLs.
16044 hardcode_libdir_flag_spec='-L$libdir'
16045 export_dynamic_flag_spec='${wl}--export-all-symbols'
16046 allow_undefined_flag=unsupported
16047 always_export_symbols=no
16048 enable_shared_with_static_runtimes=yes
16049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16050
16051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16053 # If the export-symbols file already is a .def file (1st line
16054 # is EXPORTS), use it as is; otherwise, prepend...
16055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16056 cp $export_symbols $output_objdir/$soname.def;
16057 else
16058 echo EXPORTS > $output_objdir/$soname.def;
16059 cat $export_symbols >> $output_objdir/$soname.def;
16060 fi~
16061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16062 else
16063 ld_shlibs=no
16064 fi
16065 ;;
16066
16067 haiku*)
16068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069 link_all_deplibs=yes
16070 ;;
16071
16072 interix[3-9]*)
16073 hardcode_direct=no
16074 hardcode_shlibpath_var=no
16075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16076 export_dynamic_flag_spec='${wl}-E'
16077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16078 # Instead, shared libraries are loaded at an image base (0x10000000 by
16079 # default) and relocated if they conflict, which is a slow very memory
16080 # consuming and fragmenting process. To avoid this, we pick a random,
16081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16084 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'
16085 ;;
16086
16087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16088 tmp_diet=no
16089 if test "$host_os" = linux-dietlibc; then
16090 case $cc_basename in
16091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16092 esac
16093 fi
16094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16095 && test "$tmp_diet" = no
16096 then
16097 tmp_addflag=' $pic_flag'
16098 tmp_sharedflag='-shared'
16099 case $cc_basename,$host_cpu in
16100 pgcc*) # Portland Group C compiler
16101 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'
16102 tmp_addflag=' $pic_flag'
16103 ;;
16104 pgf77* | pgf90* | pgf95* | pgfortran*)
16105 # Portland Group f77 and f90 compilers
16106 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'
16107 tmp_addflag=' $pic_flag -Mnomain' ;;
16108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16109 tmp_addflag=' -i_dynamic' ;;
16110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16111 tmp_addflag=' -i_dynamic -nofor_main' ;;
16112 ifc* | ifort*) # Intel Fortran compiler
16113 tmp_addflag=' -nofor_main' ;;
16114 lf95*) # Lahey Fortran 8.1
16115 whole_archive_flag_spec=
16116 tmp_sharedflag='--shared' ;;
16117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16118 tmp_sharedflag='-qmkshrobj'
16119 tmp_addflag= ;;
16120 nvcc*) # Cuda Compiler Driver 2.2
16121 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'
16122 compiler_needs_object=yes
16123 ;;
16124 esac
16125 case `$CC -V 2>&1 | sed 5q` in
16126 *Sun\ C*) # Sun C 5.9
16127 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'
16128 compiler_needs_object=yes
16129 tmp_sharedflag='-G' ;;
16130 *Sun\ F*) # Sun Fortran 8.3
16131 tmp_sharedflag='-G' ;;
16132 esac
16133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134
16135 if test "x$supports_anon_versioning" = xyes; then
16136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16138 echo "local: *; };" >> $output_objdir/$libname.ver~
16139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16140 fi
16141
16142 case $cc_basename in
16143 xlf* | bgf* | bgxlf* | mpixlf*)
16144 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16145 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16146 hardcode_libdir_flag_spec=
16147 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16148 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16149 if test "x$supports_anon_versioning" = xyes; then
16150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16152 echo "local: *; };" >> $output_objdir/$libname.ver~
16153 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16154 fi
16155 ;;
16156 esac
16157 else
16158 ld_shlibs=no
16159 fi
16160 ;;
16161
16162 netbsd*)
16163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16164 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16165 wlarc=
16166 else
16167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16169 fi
16170 ;;
16171
16172 solaris*)
16173 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16174 ld_shlibs=no
16175 cat <<_LT_EOF 1>&2
16176
16177 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16178 *** create shared libraries on Solaris systems. Therefore, libtool
16179 *** is disabling shared libraries support. We urge you to upgrade GNU
16180 *** binutils to release 2.9.1 or newer. Another option is to modify
16181 *** your PATH or compiler configuration so that the native linker is
16182 *** used, and then restart.
16183
16184 _LT_EOF
16185 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16188 else
16189 ld_shlibs=no
16190 fi
16191 ;;
16192
16193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16194 case `$LD -v 2>&1` in
16195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16196 ld_shlibs=no
16197 cat <<_LT_EOF 1>&2
16198
16199 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16200 *** reliably create shared libraries on SCO systems. Therefore, libtool
16201 *** is disabling shared libraries support. We urge you to upgrade GNU
16202 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16203 *** your PATH or compiler configuration so that the native linker is
16204 *** used, and then restart.
16205
16206 _LT_EOF
16207 ;;
16208 *)
16209 # For security reasons, it is highly recommended that you always
16210 # use absolute paths for naming shared libraries, and exclude the
16211 # DT_RUNPATH tag from executables and libraries. But doing so
16212 # requires that you compile everything twice, which is a pain.
16213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16217 else
16218 ld_shlibs=no
16219 fi
16220 ;;
16221 esac
16222 ;;
16223
16224 sunos4*)
16225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16226 wlarc=
16227 hardcode_direct=yes
16228 hardcode_shlibpath_var=no
16229 ;;
16230
16231 *)
16232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16235 else
16236 ld_shlibs=no
16237 fi
16238 ;;
16239 esac
16240
16241 if test "$ld_shlibs" = no; then
16242 runpath_var=
16243 hardcode_libdir_flag_spec=
16244 export_dynamic_flag_spec=
16245 whole_archive_flag_spec=
16246 fi
16247 else
16248 # PORTME fill in a description of your system's linker (not GNU ld)
16249 case $host_os in
16250 aix3*)
16251 allow_undefined_flag=unsupported
16252 always_export_symbols=yes
16253 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'
16254 # Note: this linker hardcodes the directories in LIBPATH if there
16255 # are no directories specified by -L.
16256 hardcode_minus_L=yes
16257 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16258 # Neither direct hardcoding nor static linking is supported with a
16259 # broken collect2.
16260 hardcode_direct=unsupported
16261 fi
16262 ;;
16263
16264 aix[4-9]*)
16265 if test "$host_cpu" = ia64; then
16266 # On IA64, the linker does run time linking by default, so we don't
16267 # have to do anything special.
16268 aix_use_runtimelinking=no
16269 exp_sym_flag='-Bexport'
16270 no_entry_flag=""
16271 else
16272 # If we're using GNU nm, then we don't want the "-C" option.
16273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16274 # Also, AIX nm treats weak defined symbols like other global
16275 # defined symbols, whereas GNU nm marks them as "W".
16276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16277 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'
16278 else
16279 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'
16280 fi
16281 aix_use_runtimelinking=no
16282
16283 # Test if we are trying to use run time linking or normal
16284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16285 # need to do runtime linking.
16286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16287 for ld_flag in $LDFLAGS; do
16288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16289 aix_use_runtimelinking=yes
16290 break
16291 fi
16292 done
16293 ;;
16294 esac
16295
16296 exp_sym_flag='-bexport'
16297 no_entry_flag='-bnoentry'
16298 fi
16299
16300 # When large executables or shared objects are built, AIX ld can
16301 # have problems creating the table of contents. If linking a library
16302 # or program results in "error TOC overflow" add -mminimal-toc to
16303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16305
16306 archive_cmds=''
16307 hardcode_direct=yes
16308 hardcode_direct_absolute=yes
16309 hardcode_libdir_separator=':'
16310 link_all_deplibs=yes
16311 file_list_spec='${wl}-f,'
16312
16313 if test "$GCC" = yes; then
16314 case $host_os in aix4.[012]|aix4.[012].*)
16315 # We only want to do this on AIX 4.2 and lower, the check
16316 # below for broken collect2 doesn't work under 4.3+
16317 collect2name=`${CC} -print-prog-name=collect2`
16318 if test -f "$collect2name" &&
16319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16320 then
16321 # We have reworked collect2
16322 :
16323 else
16324 # We have old collect2
16325 hardcode_direct=unsupported
16326 # It fails to find uninstalled libraries when the uninstalled
16327 # path is not listed in the libpath. Setting hardcode_minus_L
16328 # to unsupported forces relinking
16329 hardcode_minus_L=yes
16330 hardcode_libdir_flag_spec='-L$libdir'
16331 hardcode_libdir_separator=
16332 fi
16333 ;;
16334 esac
16335 shared_flag='-shared'
16336 if test "$aix_use_runtimelinking" = yes; then
16337 shared_flag="$shared_flag "'${wl}-G'
16338 fi
16339 else
16340 # not using gcc
16341 if test "$host_cpu" = ia64; then
16342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16343 # chokes on -Wl,-G. The following line is correct:
16344 shared_flag='-G'
16345 else
16346 if test "$aix_use_runtimelinking" = yes; then
16347 shared_flag='${wl}-G'
16348 else
16349 shared_flag='${wl}-bM:SRE'
16350 fi
16351 fi
16352 fi
16353
16354 export_dynamic_flag_spec='${wl}-bexpall'
16355 # It seems that -bexpall does not export symbols beginning with
16356 # underscore (_), so it is better to generate a list of symbols to export.
16357 always_export_symbols=yes
16358 if test "$aix_use_runtimelinking" = yes; then
16359 # Warning - without using the other runtime loading flags (-brtl),
16360 # -berok will link without error, but may produce a broken library.
16361 allow_undefined_flag='-berok'
16362 # Determine the default libpath from the value encoded in an
16363 # empty executable.
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366
16367 int
16368 main ()
16369 {
16370
16371 ;
16372 return 0;
16373 }
16374 _ACEOF
16375 if ac_fn_c_try_link "$LINENO"; then :
16376
16377 lt_aix_libpath_sed='
16378 /Import File Strings/,/^$/ {
16379 /^0/ {
16380 s/^0 *\(.*\)$/\1/
16381 p
16382 }
16383 }'
16384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16385 # Check for a 64-bit object if we didn't find anything.
16386 if test -z "$aix_libpath"; then
16387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16388 fi
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16393
16394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16395 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"
16396 else
16397 if test "$host_cpu" = ia64; then
16398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16399 allow_undefined_flag="-z nodefs"
16400 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"
16401 else
16402 # Determine the default libpath from the value encoded in an
16403 # empty executable.
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406
16407 int
16408 main ()
16409 {
16410
16411 ;
16412 return 0;
16413 }
16414 _ACEOF
16415 if ac_fn_c_try_link "$LINENO"; then :
16416
16417 lt_aix_libpath_sed='
16418 /Import File Strings/,/^$/ {
16419 /^0/ {
16420 s/^0 *\(.*\)$/\1/
16421 p
16422 }
16423 }'
16424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16425 # Check for a 64-bit object if we didn't find anything.
16426 if test -z "$aix_libpath"; then
16427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16428 fi
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16433
16434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 # Warning - without using the other run time loading flags,
16436 # -berok will link without error, but may produce a broken library.
16437 no_undefined_flag=' ${wl}-bernotok'
16438 allow_undefined_flag=' ${wl}-berok'
16439 if test "$with_gnu_ld" = yes; then
16440 # We only use this code for GNU lds that support --whole-archive.
16441 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16442 else
16443 # Exported symbols can be pulled into shared objects from archives
16444 whole_archive_flag_spec='$convenience'
16445 fi
16446 archive_cmds_need_lc=yes
16447 # This is similar to how AIX traditionally builds its shared libraries.
16448 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'
16449 fi
16450 fi
16451 ;;
16452
16453 amigaos*)
16454 case $host_cpu in
16455 powerpc)
16456 # see comment about AmigaOS4 .so support
16457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 archive_expsym_cmds=''
16459 ;;
16460 m68k)
16461 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)'
16462 hardcode_libdir_flag_spec='-L$libdir'
16463 hardcode_minus_L=yes
16464 ;;
16465 esac
16466 ;;
16467
16468 bsdi[45]*)
16469 export_dynamic_flag_spec=-rdynamic
16470 ;;
16471
16472 cygwin* | mingw* | pw32* | cegcc*)
16473 # When not using gcc, we currently assume that we are using
16474 # Microsoft Visual C++.
16475 # hardcode_libdir_flag_spec is actually meaningless, as there is
16476 # no search path for DLLs.
16477 hardcode_libdir_flag_spec=' '
16478 allow_undefined_flag=unsupported
16479 # Tell ltmain to make .lib files, not .a files.
16480 libext=lib
16481 # Tell ltmain to make .dll files, not .so files.
16482 shrext_cmds=".dll"
16483 # FIXME: Setting linknames here is a bad hack.
16484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16485 # The linker will automatically build a .lib file if we build a DLL.
16486 old_archive_from_new_cmds='true'
16487 # FIXME: Should let the user specify the lib program.
16488 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16489 fix_srcfile_path='`cygpath -w "$srcfile"`'
16490 enable_shared_with_static_runtimes=yes
16491 ;;
16492
16493 darwin* | rhapsody*)
16494
16495
16496 archive_cmds_need_lc=no
16497 hardcode_direct=no
16498 hardcode_automatic=yes
16499 hardcode_shlibpath_var=unsupported
16500 if test "$lt_cv_ld_force_load" = "yes"; then
16501 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\"`'
16502 else
16503 whole_archive_flag_spec=''
16504 fi
16505 link_all_deplibs=yes
16506 allow_undefined_flag="$_lt_dar_allow_undefined"
16507 case $cc_basename in
16508 ifort*) _lt_dar_can_shared=yes ;;
16509 *) _lt_dar_can_shared=$GCC ;;
16510 esac
16511 if test "$_lt_dar_can_shared" = "yes"; then
16512 output_verbose_link_cmd=func_echo_all
16513 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16514 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16515 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}"
16516 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}"
16517
16518 else
16519 ld_shlibs=no
16520 fi
16521
16522 ;;
16523
16524 dgux*)
16525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 hardcode_libdir_flag_spec='-L$libdir'
16527 hardcode_shlibpath_var=no
16528 ;;
16529
16530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16531 # support. Future versions do this automatically, but an explicit c++rt0.o
16532 # does not break anything, and helps significantly (at the cost of a little
16533 # extra space).
16534 freebsd2.2*)
16535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16536 hardcode_libdir_flag_spec='-R$libdir'
16537 hardcode_direct=yes
16538 hardcode_shlibpath_var=no
16539 ;;
16540
16541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16542 freebsd2.*)
16543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_direct=yes
16545 hardcode_minus_L=yes
16546 hardcode_shlibpath_var=no
16547 ;;
16548
16549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16550 freebsd* | dragonfly*)
16551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16552 hardcode_libdir_flag_spec='-R$libdir'
16553 hardcode_direct=yes
16554 hardcode_shlibpath_var=no
16555 ;;
16556
16557 hpux9*)
16558 if test "$GCC" = yes; then
16559 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'
16560 else
16561 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'
16562 fi
16563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16564 hardcode_libdir_separator=:
16565 hardcode_direct=yes
16566
16567 # hardcode_minus_L: Not really in the search PATH,
16568 # but as the default location of the library.
16569 hardcode_minus_L=yes
16570 export_dynamic_flag_spec='${wl}-E'
16571 ;;
16572
16573 hpux10*)
16574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16576 else
16577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16578 fi
16579 if test "$with_gnu_ld" = no; then
16580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16581 hardcode_libdir_flag_spec_ld='+b $libdir'
16582 hardcode_libdir_separator=:
16583 hardcode_direct=yes
16584 hardcode_direct_absolute=yes
16585 export_dynamic_flag_spec='${wl}-E'
16586 # hardcode_minus_L: Not really in the search PATH,
16587 # but as the default location of the library.
16588 hardcode_minus_L=yes
16589 fi
16590 ;;
16591
16592 hpux11*)
16593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16594 case $host_cpu in
16595 hppa*64*)
16596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 ;;
16598 ia64*)
16599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16600 ;;
16601 *)
16602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16603 ;;
16604 esac
16605 else
16606 case $host_cpu in
16607 hppa*64*)
16608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 ;;
16610 ia64*)
16611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16612 ;;
16613 *)
16614
16615 # Older versions of the 11.00 compiler do not understand -b yet
16616 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16618 $as_echo_n "checking if $CC understands -b... " >&6; }
16619 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 lt_cv_prog_compiler__b=no
16623 save_LDFLAGS="$LDFLAGS"
16624 LDFLAGS="$LDFLAGS -b"
16625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16627 # The linker can only warn and ignore the option if not recognized
16628 # So say no if there are warnings
16629 if test -s conftest.err; then
16630 # Append any errors to the config.log.
16631 cat conftest.err 1>&5
16632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16634 if diff conftest.exp conftest.er2 >/dev/null; then
16635 lt_cv_prog_compiler__b=yes
16636 fi
16637 else
16638 lt_cv_prog_compiler__b=yes
16639 fi
16640 fi
16641 $RM -r conftest*
16642 LDFLAGS="$save_LDFLAGS"
16643
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16646 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16647
16648 if test x"$lt_cv_prog_compiler__b" = xyes; then
16649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16650 else
16651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16652 fi
16653
16654 ;;
16655 esac
16656 fi
16657 if test "$with_gnu_ld" = no; then
16658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16659 hardcode_libdir_separator=:
16660
16661 case $host_cpu in
16662 hppa*64*|ia64*)
16663 hardcode_direct=no
16664 hardcode_shlibpath_var=no
16665 ;;
16666 *)
16667 hardcode_direct=yes
16668 hardcode_direct_absolute=yes
16669 export_dynamic_flag_spec='${wl}-E'
16670
16671 # hardcode_minus_L: Not really in the search PATH,
16672 # but as the default location of the library.
16673 hardcode_minus_L=yes
16674 ;;
16675 esac
16676 fi
16677 ;;
16678
16679 irix5* | irix6* | nonstopux*)
16680 if test "$GCC" = yes; then
16681 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'
16682 # Try to use the -exported_symbol ld option, if it does not
16683 # work, assume that -exports_file does not work either and
16684 # implicitly export all symbols.
16685 save_LDFLAGS="$LDFLAGS"
16686 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 int foo(void) {}
16690 _ACEOF
16691 if ac_fn_c_try_link "$LINENO"; then :
16692 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'
16693
16694 fi
16695 rm -f core conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16697 LDFLAGS="$save_LDFLAGS"
16698 else
16699 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'
16700 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'
16701 fi
16702 archive_cmds_need_lc='no'
16703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16704 hardcode_libdir_separator=:
16705 inherit_rpath=yes
16706 link_all_deplibs=yes
16707 ;;
16708
16709 netbsd*)
16710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16712 else
16713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16714 fi
16715 hardcode_libdir_flag_spec='-R$libdir'
16716 hardcode_direct=yes
16717 hardcode_shlibpath_var=no
16718 ;;
16719
16720 newsos6)
16721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct=yes
16723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16724 hardcode_libdir_separator=:
16725 hardcode_shlibpath_var=no
16726 ;;
16727
16728 *nto* | *qnx*)
16729 ;;
16730
16731 openbsd*)
16732 if test -f /usr/libexec/ld.so; then
16733 hardcode_direct=yes
16734 hardcode_shlibpath_var=no
16735 hardcode_direct_absolute=yes
16736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16740 export_dynamic_flag_spec='${wl}-E'
16741 else
16742 case $host_os in
16743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16745 hardcode_libdir_flag_spec='-R$libdir'
16746 ;;
16747 *)
16748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16750 ;;
16751 esac
16752 fi
16753 else
16754 ld_shlibs=no
16755 fi
16756 ;;
16757
16758 os2*)
16759 hardcode_libdir_flag_spec='-L$libdir'
16760 hardcode_minus_L=yes
16761 allow_undefined_flag=unsupported
16762 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'
16763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16764 ;;
16765
16766 osf3*)
16767 if test "$GCC" = yes; then
16768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16769 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'
16770 else
16771 allow_undefined_flag=' -expect_unresolved \*'
16772 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'
16773 fi
16774 archive_cmds_need_lc='no'
16775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16776 hardcode_libdir_separator=:
16777 ;;
16778
16779 osf4* | osf5*) # as osf3* with the addition of -msym flag
16780 if test "$GCC" = yes; then
16781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16782 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'
16783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16784 else
16785 allow_undefined_flag=' -expect_unresolved \*'
16786 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'
16787 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~
16788 $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'
16789
16790 # Both c and cxx compiler support -rpath directly
16791 hardcode_libdir_flag_spec='-rpath $libdir'
16792 fi
16793 archive_cmds_need_lc='no'
16794 hardcode_libdir_separator=:
16795 ;;
16796
16797 solaris*)
16798 no_undefined_flag=' -z defs'
16799 if test "$GCC" = yes; then
16800 wlarc='${wl}'
16801 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16803 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16804 else
16805 case `$CC -V 2>&1` in
16806 *"Compilers 5.0"*)
16807 wlarc=''
16808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16811 ;;
16812 *)
16813 wlarc='${wl}'
16814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16817 ;;
16818 esac
16819 fi
16820 hardcode_libdir_flag_spec='-R$libdir'
16821 hardcode_shlibpath_var=no
16822 case $host_os in
16823 solaris2.[0-5] | solaris2.[0-5].*) ;;
16824 *)
16825 # The compiler driver will combine and reorder linker options,
16826 # but understands `-z linker_flag'. GCC discards it without `$wl',
16827 # but is careful enough not to reorder.
16828 # Supported since Solaris 2.6 (maybe 2.5.1?)
16829 if test "$GCC" = yes; then
16830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16831 else
16832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16833 fi
16834 ;;
16835 esac
16836 link_all_deplibs=yes
16837 ;;
16838
16839 sunos4*)
16840 if test "x$host_vendor" = xsequent; then
16841 # Use $CC to link under sequent, because it throws in some extra .o
16842 # files that make .init and .fini sections work.
16843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16844 else
16845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16846 fi
16847 hardcode_libdir_flag_spec='-L$libdir'
16848 hardcode_direct=yes
16849 hardcode_minus_L=yes
16850 hardcode_shlibpath_var=no
16851 ;;
16852
16853 sysv4)
16854 case $host_vendor in
16855 sni)
16856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_direct=yes # is this really true???
16858 ;;
16859 siemens)
16860 ## LD is ld it makes a PLAMLIB
16861 ## CC just makes a GrossModule.
16862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16863 reload_cmds='$CC -r -o $output$reload_objs'
16864 hardcode_direct=no
16865 ;;
16866 motorola)
16867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16869 ;;
16870 esac
16871 runpath_var='LD_RUN_PATH'
16872 hardcode_shlibpath_var=no
16873 ;;
16874
16875 sysv4.3*)
16876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_shlibpath_var=no
16878 export_dynamic_flag_spec='-Bexport'
16879 ;;
16880
16881 sysv4*MP*)
16882 if test -d /usr/nec; then
16883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_shlibpath_var=no
16885 runpath_var=LD_RUN_PATH
16886 hardcode_runpath_var=yes
16887 ld_shlibs=yes
16888 fi
16889 ;;
16890
16891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16892 no_undefined_flag='${wl}-z,text'
16893 archive_cmds_need_lc=no
16894 hardcode_shlibpath_var=no
16895 runpath_var='LD_RUN_PATH'
16896
16897 if test "$GCC" = yes; then
16898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 else
16901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 fi
16904 ;;
16905
16906 sysv5* | sco3.2v5* | sco5v6*)
16907 # Note: We can NOT use -z defs as we might desire, because we do not
16908 # link with -lc, and that would cause any symbols used from libc to
16909 # always be unresolved, which means just about no library would
16910 # ever link correctly. If we're not using GNU ld we use -z text
16911 # though, which does catch some bad symbols but isn't as heavy-handed
16912 # as -z defs.
16913 no_undefined_flag='${wl}-z,text'
16914 allow_undefined_flag='${wl}-z,nodefs'
16915 archive_cmds_need_lc=no
16916 hardcode_shlibpath_var=no
16917 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16918 hardcode_libdir_separator=':'
16919 link_all_deplibs=yes
16920 export_dynamic_flag_spec='${wl}-Bexport'
16921 runpath_var='LD_RUN_PATH'
16922
16923 if test "$GCC" = yes; then
16924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 else
16927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 fi
16930 ;;
16931
16932 uts4*)
16933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934 hardcode_libdir_flag_spec='-L$libdir'
16935 hardcode_shlibpath_var=no
16936 ;;
16937
16938 *)
16939 ld_shlibs=no
16940 ;;
16941 esac
16942
16943 if test x$host_vendor = xsni; then
16944 case $host in
16945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16946 export_dynamic_flag_spec='${wl}-Blargedynsym'
16947 ;;
16948 esac
16949 fi
16950 fi
16951
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16953 $as_echo "$ld_shlibs" >&6; }
16954 test "$ld_shlibs" = no && can_build_shared=no
16955
16956 with_gnu_ld=$with_gnu_ld
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972 #
16973 # Do we need to explicitly link libc?
16974 #
16975 case "x$archive_cmds_need_lc" in
16976 x|xyes)
16977 # Assume -lc should be added
16978 archive_cmds_need_lc=yes
16979
16980 if test "$enable_shared" = yes && test "$GCC" = yes; then
16981 case $archive_cmds in
16982 *'~'*)
16983 # FIXME: we may have to deal with multi-command sequences.
16984 ;;
16985 '$CC '*)
16986 # Test whether the compiler implicitly links with -lc since on some
16987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16988 # to ld, don't add -lc before -lgcc.
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16990 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16991 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 $RM conftest*
16995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16996
16997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16998 (eval $ac_compile) 2>&5
16999 ac_status=$?
17000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001 test $ac_status = 0; } 2>conftest.err; then
17002 soname=conftest
17003 lib=conftest
17004 libobjs=conftest.$ac_objext
17005 deplibs=
17006 wl=$lt_prog_compiler_wl
17007 pic_flag=$lt_prog_compiler_pic
17008 compiler_flags=-v
17009 linker_flags=-v
17010 verstring=
17011 output_objdir=.
17012 libname=conftest
17013 lt_save_allow_undefined_flag=$allow_undefined_flag
17014 allow_undefined_flag=
17015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17017 ac_status=$?
17018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019 test $ac_status = 0; }
17020 then
17021 lt_cv_archive_cmds_need_lc=no
17022 else
17023 lt_cv_archive_cmds_need_lc=yes
17024 fi
17025 allow_undefined_flag=$lt_save_allow_undefined_flag
17026 else
17027 cat conftest.err 1>&5
17028 fi
17029 $RM conftest*
17030
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17033 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17035 ;;
17036 esac
17037 fi
17038 ;;
17039 esac
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17199
17200 if test "$GCC" = yes; then
17201 case $host_os in
17202 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17203 *) lt_awk_arg="/^libraries:/" ;;
17204 esac
17205 case $host_os in
17206 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17207 *) lt_sed_strip_eq="s,=/,/,g" ;;
17208 esac
17209 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17210 case $lt_search_path_spec in
17211 *\;*)
17212 # if the path contains ";" then we assume it to be the separator
17213 # otherwise default to the standard path separator (i.e. ":") - it is
17214 # assumed that no part of a normal pathname contains ";" but that should
17215 # okay in the real world where ";" in dirpaths is itself problematic.
17216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17217 ;;
17218 *)
17219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17220 ;;
17221 esac
17222 # Ok, now we have the path, separated by spaces, we can step through it
17223 # and add multilib dir if necessary.
17224 lt_tmp_lt_search_path_spec=
17225 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17226 for lt_sys_path in $lt_search_path_spec; do
17227 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17229 else
17230 test -d "$lt_sys_path" && \
17231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17232 fi
17233 done
17234 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17235 BEGIN {RS=" "; FS="/|\n";} {
17236 lt_foo="";
17237 lt_count=0;
17238 for (lt_i = NF; lt_i > 0; lt_i--) {
17239 if ($lt_i != "" && $lt_i != ".") {
17240 if ($lt_i == "..") {
17241 lt_count++;
17242 } else {
17243 if (lt_count == 0) {
17244 lt_foo="/" $lt_i lt_foo;
17245 } else {
17246 lt_count--;
17247 }
17248 }
17249 }
17250 }
17251 if (lt_foo != "") { lt_freq[lt_foo]++; }
17252 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17253 }'`
17254 # AWK program above erroneously prepends '/' to C:/dos/paths
17255 # for these hosts.
17256 case $host_os in
17257 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17258 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17259 esac
17260 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17261 else
17262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17263 fi
17264 library_names_spec=
17265 libname_spec='lib$name'
17266 soname_spec=
17267 shrext_cmds=".so"
17268 postinstall_cmds=
17269 postuninstall_cmds=
17270 finish_cmds=
17271 finish_eval=
17272 shlibpath_var=
17273 shlibpath_overrides_runpath=unknown
17274 version_type=none
17275 dynamic_linker="$host_os ld.so"
17276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17277 need_lib_prefix=unknown
17278 hardcode_into_libs=no
17279
17280 # when you set need_version to no, make sure it does not cause -set_version
17281 # flags to be left without arguments
17282 need_version=unknown
17283
17284 case $host_os in
17285 aix3*)
17286 version_type=linux
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17288 shlibpath_var=LIBPATH
17289
17290 # AIX 3 has no versioning support, so we append a major version to the name.
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 ;;
17293
17294 aix[4-9]*)
17295 version_type=linux
17296 need_lib_prefix=no
17297 need_version=no
17298 hardcode_into_libs=yes
17299 if test "$host_cpu" = ia64; then
17300 # AIX 5 supports IA64
17301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 else
17304 # With GCC up to 2.95.x, collect2 would create an import file
17305 # for dependence libraries. The import file would start with
17306 # the line `#! .'. This would cause the generated library to
17307 # depend on `.', always an invalid library. This was fixed in
17308 # development snapshots of GCC prior to 3.0.
17309 case $host_os in
17310 aix4 | aix4.[01] | aix4.[01].*)
17311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17312 echo ' yes '
17313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17314 :
17315 else
17316 can_build_shared=no
17317 fi
17318 ;;
17319 esac
17320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17321 # soname into executable. Probably we can add versioning support to
17322 # collect2, so additional links can be useful in future.
17323 if test "$aix_use_runtimelinking" = yes; then
17324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17325 # instead of lib<name>.a to let people know that these are not
17326 # typical AIX shared libraries.
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 else
17329 # We preserve .a as extension for shared libraries through AIX4.2
17330 # and later when we are not doing run time linking.
17331 library_names_spec='${libname}${release}.a $libname.a'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 fi
17334 shlibpath_var=LIBPATH
17335 fi
17336 ;;
17337
17338 amigaos*)
17339 case $host_cpu in
17340 powerpc)
17341 # Since July 2007 AmigaOS4 officially supports .so libraries.
17342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 ;;
17345 m68k)
17346 library_names_spec='$libname.ixlibrary $libname.a'
17347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17348 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'
17349 ;;
17350 esac
17351 ;;
17352
17353 beos*)
17354 library_names_spec='${libname}${shared_ext}'
17355 dynamic_linker="$host_os ld.so"
17356 shlibpath_var=LIBRARY_PATH
17357 ;;
17358
17359 bsdi[45]*)
17360 version_type=linux
17361 need_version=no
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17368 # the default ld.so.conf also contains /usr/contrib/lib and
17369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17370 # libtool to hard-code these into programs
17371 ;;
17372
17373 cygwin* | mingw* | pw32* | cegcc*)
17374 version_type=windows
17375 shrext_cmds=".dll"
17376 need_version=no
17377 need_lib_prefix=no
17378
17379 case $GCC,$host_os in
17380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17381 library_names_spec='$libname.dll.a'
17382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17383 postinstall_cmds='base_file=`basename \${file}`~
17384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17385 dldir=$destdir/`dirname \$dlpath`~
17386 test -d \$dldir || mkdir -p \$dldir~
17387 $install_prog $dir/$dlname \$dldir/$dlname~
17388 chmod a+x \$dldir/$dlname~
17389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17391 fi'
17392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17393 dlpath=$dir/\$dldll~
17394 $RM \$dlpath'
17395 shlibpath_overrides_runpath=yes
17396
17397 case $host_os in
17398 cygwin*)
17399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17401
17402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17403 ;;
17404 mingw* | cegcc*)
17405 # MinGW DLLs use traditional 'lib' prefix
17406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17407 ;;
17408 pw32*)
17409 # pw32 DLLs use 'pw' prefix rather than 'lib'
17410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411 ;;
17412 esac
17413 ;;
17414
17415 *)
17416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17417 ;;
17418 esac
17419 dynamic_linker='Win32 ld.exe'
17420 # FIXME: first we should search . and the directory the executable is in
17421 shlibpath_var=PATH
17422 ;;
17423
17424 darwin* | rhapsody*)
17425 dynamic_linker="$host_os dyld"
17426 version_type=darwin
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17430 soname_spec='${libname}${release}${major}$shared_ext'
17431 shlibpath_overrides_runpath=yes
17432 shlibpath_var=DYLD_LIBRARY_PATH
17433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17434
17435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17437 ;;
17438
17439 dgux*)
17440 version_type=linux
17441 need_lib_prefix=no
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 ;;
17447
17448 freebsd* | dragonfly*)
17449 # DragonFly does not have aout. When/if they implement a new
17450 # versioning mechanism, adjust this.
17451 if test -x /usr/bin/objformat; then
17452 objformat=`/usr/bin/objformat`
17453 else
17454 case $host_os in
17455 freebsd[23].*) objformat=aout ;;
17456 *) objformat=elf ;;
17457 esac
17458 fi
17459 version_type=freebsd-$objformat
17460 case $version_type in
17461 freebsd-elf*)
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17463 need_version=no
17464 need_lib_prefix=no
17465 ;;
17466 freebsd-*)
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17468 need_version=yes
17469 ;;
17470 esac
17471 shlibpath_var=LD_LIBRARY_PATH
17472 case $host_os in
17473 freebsd2.*)
17474 shlibpath_overrides_runpath=yes
17475 ;;
17476 freebsd3.[01]* | freebsdelf3.[01]*)
17477 shlibpath_overrides_runpath=yes
17478 hardcode_into_libs=yes
17479 ;;
17480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17482 shlibpath_overrides_runpath=no
17483 hardcode_into_libs=yes
17484 ;;
17485 *) # from 4.6 on, and DragonFly
17486 shlibpath_overrides_runpath=yes
17487 hardcode_into_libs=yes
17488 ;;
17489 esac
17490 ;;
17491
17492 gnu*)
17493 version_type=linux
17494 need_lib_prefix=no
17495 need_version=no
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 hardcode_into_libs=yes
17500 ;;
17501
17502 haiku*)
17503 version_type=linux
17504 need_lib_prefix=no
17505 need_version=no
17506 dynamic_linker="$host_os runtime_loader"
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17512 hardcode_into_libs=yes
17513 ;;
17514
17515 hpux9* | hpux10* | hpux11*)
17516 # Give a soname corresponding to the major version so that dld.sl refuses to
17517 # link against other versions.
17518 version_type=sunos
17519 need_lib_prefix=no
17520 need_version=no
17521 case $host_cpu in
17522 ia64*)
17523 shrext_cmds='.so'
17524 hardcode_into_libs=yes
17525 dynamic_linker="$host_os dld.so"
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 if test "X$HPUX_IA64_MODE" = X32; then
17531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17532 else
17533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17534 fi
17535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17536 ;;
17537 hppa*64*)
17538 shrext_cmds='.sl'
17539 hardcode_into_libs=yes
17540 dynamic_linker="$host_os dld.sl"
17541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17547 ;;
17548 *)
17549 shrext_cmds='.sl'
17550 dynamic_linker="$host_os dld.sl"
17551 shlibpath_var=SHLIB_PATH
17552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 ;;
17556 esac
17557 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17558 postinstall_cmds='chmod 555 $lib'
17559 # or fails outright, so override atomically:
17560 install_override_mode=555
17561 ;;
17562
17563 interix[3-9]*)
17564 version_type=linux
17565 need_lib_prefix=no
17566 need_version=no
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 shlibpath_overrides_runpath=no
17572 hardcode_into_libs=yes
17573 ;;
17574
17575 irix5* | irix6* | nonstopux*)
17576 case $host_os in
17577 nonstopux*) version_type=nonstopux ;;
17578 *)
17579 if test "$lt_cv_prog_gnu_ld" = yes; then
17580 version_type=linux
17581 else
17582 version_type=irix
17583 fi ;;
17584 esac
17585 need_lib_prefix=no
17586 need_version=no
17587 soname_spec='${libname}${release}${shared_ext}$major'
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17589 case $host_os in
17590 irix5* | nonstopux*)
17591 libsuff= shlibsuff=
17592 ;;
17593 *)
17594 case $LD in # libtool.m4 will add one of these switches to LD
17595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17596 libsuff= shlibsuff= libmagic=32-bit;;
17597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17598 libsuff=32 shlibsuff=N32 libmagic=N32;;
17599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17601 *) libsuff= shlibsuff= libmagic=never-match;;
17602 esac
17603 ;;
17604 esac
17605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17606 shlibpath_overrides_runpath=no
17607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17609 hardcode_into_libs=yes
17610 ;;
17611
17612 # No shared lib support for Linux oldld, aout, or coff.
17613 linux*oldld* | linux*aout* | linux*coff*)
17614 dynamic_linker=no
17615 ;;
17616
17617 # This must be Linux ELF.
17618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17619 version_type=linux
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17625 shlibpath_var=LD_LIBRARY_PATH
17626 shlibpath_overrides_runpath=no
17627
17628 # Some binutils ld are patched to set DT_RUNPATH
17629 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17631 else
17632 lt_cv_shlibpath_overrides_runpath=no
17633 save_LDFLAGS=$LDFLAGS
17634 save_libdir=$libdir
17635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639
17640 int
17641 main ()
17642 {
17643
17644 ;
17645 return 0;
17646 }
17647 _ACEOF
17648 if ac_fn_c_try_link "$LINENO"; then :
17649 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17650 lt_cv_shlibpath_overrides_runpath=yes
17651 fi
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LDFLAGS=$save_LDFLAGS
17656 libdir=$save_libdir
17657
17658 fi
17659
17660 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17661
17662 # This implies no fast_install, which is unacceptable.
17663 # Some rework will be needed to allow for fast_install
17664 # before this can be enabled.
17665 hardcode_into_libs=yes
17666
17667 # Append ld.so.conf contents to the search path
17668 if test -f /etc/ld.so.conf; then
17669 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' ' '`
17670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17671 fi
17672
17673 # We used to test for /lib/ld.so.1 and disable shared libraries on
17674 # powerpc, because MkLinux only supported shared libraries with the
17675 # GNU dynamic linker. Since this was broken with cross compilers,
17676 # most powerpc-linux boxes support dynamic linking these days and
17677 # people can always --disable-shared, the test was removed, and we
17678 # assume the GNU/Linux dynamic linker is in use.
17679 dynamic_linker='GNU/Linux ld.so'
17680 ;;
17681
17682 netbsd*)
17683 version_type=sunos
17684 need_lib_prefix=no
17685 need_version=no
17686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17689 dynamic_linker='NetBSD (a.out) ld.so'
17690 else
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 dynamic_linker='NetBSD ld.elf_so'
17694 fi
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=yes
17697 hardcode_into_libs=yes
17698 ;;
17699
17700 newsos6)
17701 version_type=linux
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=yes
17705 ;;
17706
17707 *nto* | *qnx*)
17708 version_type=qnx
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=no
17715 hardcode_into_libs=yes
17716 dynamic_linker='ldqnx.so'
17717 ;;
17718
17719 openbsd*)
17720 version_type=sunos
17721 sys_lib_dlsearch_path_spec="/usr/lib"
17722 need_lib_prefix=no
17723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17724 case $host_os in
17725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17726 *) need_version=no ;;
17727 esac
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17732 case $host_os in
17733 openbsd2.[89] | openbsd2.[89].*)
17734 shlibpath_overrides_runpath=no
17735 ;;
17736 *)
17737 shlibpath_overrides_runpath=yes
17738 ;;
17739 esac
17740 else
17741 shlibpath_overrides_runpath=yes
17742 fi
17743 ;;
17744
17745 os2*)
17746 libname_spec='$name'
17747 shrext_cmds=".dll"
17748 need_lib_prefix=no
17749 library_names_spec='$libname${shared_ext} $libname.a'
17750 dynamic_linker='OS/2 ld.exe'
17751 shlibpath_var=LIBPATH
17752 ;;
17753
17754 osf3* | osf4* | osf5*)
17755 version_type=osf
17756 need_lib_prefix=no
17757 need_version=no
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17763 ;;
17764
17765 rdos*)
17766 dynamic_linker=no
17767 ;;
17768
17769 solaris*)
17770 version_type=linux
17771 need_lib_prefix=no
17772 need_version=no
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=yes
17777 hardcode_into_libs=yes
17778 # ldd complains unless libraries are executable
17779 postinstall_cmds='chmod +x $lib'
17780 ;;
17781
17782 sunos4*)
17783 version_type=sunos
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=yes
17788 if test "$with_gnu_ld" = yes; then
17789 need_lib_prefix=no
17790 fi
17791 need_version=yes
17792 ;;
17793
17794 sysv4 | sysv4.3*)
17795 version_type=linux
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 case $host_vendor in
17800 sni)
17801 shlibpath_overrides_runpath=no
17802 need_lib_prefix=no
17803 runpath_var=LD_RUN_PATH
17804 ;;
17805 siemens)
17806 need_lib_prefix=no
17807 ;;
17808 motorola)
17809 need_lib_prefix=no
17810 need_version=no
17811 shlibpath_overrides_runpath=no
17812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17813 ;;
17814 esac
17815 ;;
17816
17817 sysv4*MP*)
17818 if test -d /usr/nec ;then
17819 version_type=linux
17820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17821 soname_spec='$libname${shared_ext}.$major'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 fi
17824 ;;
17825
17826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17827 version_type=freebsd-elf
17828 need_lib_prefix=no
17829 need_version=no
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath=yes
17834 hardcode_into_libs=yes
17835 if test "$with_gnu_ld" = yes; then
17836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17837 else
17838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17839 case $host_os in
17840 sco3.2v5*)
17841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17842 ;;
17843 esac
17844 fi
17845 sys_lib_dlsearch_path_spec='/usr/lib'
17846 ;;
17847
17848 tpf*)
17849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17850 version_type=linux
17851 need_lib_prefix=no
17852 need_version=no
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=no
17856 hardcode_into_libs=yes
17857 ;;
17858
17859 uts4*)
17860 version_type=linux
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 soname_spec='${libname}${release}${shared_ext}$major'
17863 shlibpath_var=LD_LIBRARY_PATH
17864 ;;
17865
17866 *)
17867 dynamic_linker=no
17868 ;;
17869 esac
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17871 $as_echo "$dynamic_linker" >&6; }
17872 test "$dynamic_linker" = no && can_build_shared=no
17873
17874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17875 if test "$GCC" = yes; then
17876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17877 fi
17878
17879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17880 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17881 fi
17882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17883 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17884 fi
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17979 hardcode_action=
17980 if test -n "$hardcode_libdir_flag_spec" ||
17981 test -n "$runpath_var" ||
17982 test "X$hardcode_automatic" = "Xyes" ; then
17983
17984 # We can hardcode non-existent directories.
17985 if test "$hardcode_direct" != no &&
17986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17987 # have to relink, otherwise we might link with an installed library
17988 # when we should be linking with a yet-to-be-installed one
17989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17990 test "$hardcode_minus_L" != no; then
17991 # Linking always hardcodes the temporary library directory.
17992 hardcode_action=relink
17993 else
17994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17995 hardcode_action=immediate
17996 fi
17997 else
17998 # We cannot hardcode anything, or else we can only hardcode existing
17999 # directories.
18000 hardcode_action=unsupported
18001 fi
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18003 $as_echo "$hardcode_action" >&6; }
18004
18005 if test "$hardcode_action" = relink ||
18006 test "$inherit_rpath" = yes; then
18007 # Fast installation is not supported
18008 enable_fast_install=no
18009 elif test "$shlibpath_overrides_runpath" = yes ||
18010 test "$enable_shared" = no; then
18011 # Fast installation is not necessary
18012 enable_fast_install=needless
18013 fi
18014
18015
18016
18017
18018
18019
18020 if test "x$enable_dlopen" != xyes; then
18021 enable_dlopen=unknown
18022 enable_dlopen_self=unknown
18023 enable_dlopen_self_static=unknown
18024 else
18025 lt_cv_dlopen=no
18026 lt_cv_dlopen_libs=
18027
18028 case $host_os in
18029 beos*)
18030 lt_cv_dlopen="load_add_on"
18031 lt_cv_dlopen_libs=
18032 lt_cv_dlopen_self=yes
18033 ;;
18034
18035 mingw* | pw32* | cegcc*)
18036 lt_cv_dlopen="LoadLibrary"
18037 lt_cv_dlopen_libs=
18038 ;;
18039
18040 cygwin*)
18041 lt_cv_dlopen="dlopen"
18042 lt_cv_dlopen_libs=
18043 ;;
18044
18045 darwin*)
18046 # if libdl is installed we need to link against it
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-ldl $LIBS"
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char dlopen ();
18064 int
18065 main ()
18066 {
18067 return dlopen ();
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"; then :
18073 ac_cv_lib_dl_dlopen=yes
18074 else
18075 ac_cv_lib_dl_dlopen=no
18076 fi
18077 rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 LIBS=$ac_check_lib_save_LIBS
18080 fi
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18083 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18085 else
18086
18087 lt_cv_dlopen="dyld"
18088 lt_cv_dlopen_libs=
18089 lt_cv_dlopen_self=yes
18090
18091 fi
18092
18093 ;;
18094
18095 *)
18096 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18097 if test "x$ac_cv_func_shl_load" = x""yes; then :
18098 lt_cv_dlopen="shl_load"
18099 else
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18101 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18102 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18103 $as_echo_n "(cached) " >&6
18104 else
18105 ac_check_lib_save_LIBS=$LIBS
18106 LIBS="-ldld $LIBS"
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109
18110 /* Override any GCC internal prototype to avoid an error.
18111 Use char because int might match the return type of a GCC
18112 builtin and then its argument prototype would still apply. */
18113 #ifdef __cplusplus
18114 extern "C"
18115 #endif
18116 char shl_load ();
18117 int
18118 main ()
18119 {
18120 return shl_load ();
18121 ;
18122 return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126 ac_cv_lib_dld_shl_load=yes
18127 else
18128 ac_cv_lib_dld_shl_load=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_lib_save_LIBS
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18135 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18136 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18137 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18138 else
18139 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18140 if test "x$ac_cv_func_dlopen" = x""yes; then :
18141 lt_cv_dlopen="dlopen"
18142 else
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18144 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18146 $as_echo_n "(cached) " >&6
18147 else
18148 ac_check_lib_save_LIBS=$LIBS
18149 LIBS="-ldl $LIBS"
18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152
18153 /* Override any GCC internal prototype to avoid an error.
18154 Use char because int might match the return type of a GCC
18155 builtin and then its argument prototype would still apply. */
18156 #ifdef __cplusplus
18157 extern "C"
18158 #endif
18159 char dlopen ();
18160 int
18161 main ()
18162 {
18163 return dlopen ();
18164 ;
18165 return 0;
18166 }
18167 _ACEOF
18168 if ac_fn_c_try_link "$LINENO"; then :
18169 ac_cv_lib_dl_dlopen=yes
18170 else
18171 ac_cv_lib_dl_dlopen=no
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext \
18174 conftest$ac_exeext conftest.$ac_ext
18175 LIBS=$ac_check_lib_save_LIBS
18176 fi
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18178 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18179 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18181 else
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18183 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187 ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-lsvld $LIBS"
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char dlopen ();
18199 int
18200 main ()
18201 {
18202 return dlopen ();
18203 ;
18204 return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_link "$LINENO"; then :
18208 ac_cv_lib_svld_dlopen=yes
18209 else
18210 ac_cv_lib_svld_dlopen=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18215 fi
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18217 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18218 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18220 else
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18222 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18223 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18224 $as_echo_n "(cached) " >&6
18225 else
18226 ac_check_lib_save_LIBS=$LIBS
18227 LIBS="-ldld $LIBS"
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230
18231 /* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 char dld_link ();
18238 int
18239 main ()
18240 {
18241 return dld_link ();
18242 ;
18243 return 0;
18244 }
18245 _ACEOF
18246 if ac_fn_c_try_link "$LINENO"; then :
18247 ac_cv_lib_dld_dld_link=yes
18248 else
18249 ac_cv_lib_dld_dld_link=no
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18253 LIBS=$ac_check_lib_save_LIBS
18254 fi
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18256 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18257 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18259 fi
18260
18261
18262 fi
18263
18264
18265 fi
18266
18267
18268 fi
18269
18270
18271 fi
18272
18273
18274 fi
18275
18276 ;;
18277 esac
18278
18279 if test "x$lt_cv_dlopen" != xno; then
18280 enable_dlopen=yes
18281 else
18282 enable_dlopen=no
18283 fi
18284
18285 case $lt_cv_dlopen in
18286 dlopen)
18287 save_CPPFLAGS="$CPPFLAGS"
18288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18289
18290 save_LDFLAGS="$LDFLAGS"
18291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18292
18293 save_LIBS="$LIBS"
18294 LIBS="$lt_cv_dlopen_libs $LIBS"
18295
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18297 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18298 if test "${lt_cv_dlopen_self+set}" = set; then :
18299 $as_echo_n "(cached) " >&6
18300 else
18301 if test "$cross_compiling" = yes; then :
18302 lt_cv_dlopen_self=cross
18303 else
18304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18305 lt_status=$lt_dlunknown
18306 cat > conftest.$ac_ext <<_LT_EOF
18307 #line 18307 "configure"
18308 #include "confdefs.h"
18309
18310 #if HAVE_DLFCN_H
18311 #include <dlfcn.h>
18312 #endif
18313
18314 #include <stdio.h>
18315
18316 #ifdef RTLD_GLOBAL
18317 # define LT_DLGLOBAL RTLD_GLOBAL
18318 #else
18319 # ifdef DL_GLOBAL
18320 # define LT_DLGLOBAL DL_GLOBAL
18321 # else
18322 # define LT_DLGLOBAL 0
18323 # endif
18324 #endif
18325
18326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18327 find out it does not work in some platform. */
18328 #ifndef LT_DLLAZY_OR_NOW
18329 # ifdef RTLD_LAZY
18330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18331 # else
18332 # ifdef DL_LAZY
18333 # define LT_DLLAZY_OR_NOW DL_LAZY
18334 # else
18335 # ifdef RTLD_NOW
18336 # define LT_DLLAZY_OR_NOW RTLD_NOW
18337 # else
18338 # ifdef DL_NOW
18339 # define LT_DLLAZY_OR_NOW DL_NOW
18340 # else
18341 # define LT_DLLAZY_OR_NOW 0
18342 # endif
18343 # endif
18344 # endif
18345 # endif
18346 #endif
18347
18348 /* When -fvisbility=hidden is used, assume the code has been annotated
18349 correspondingly for the symbols needed. */
18350 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18351 void fnord () __attribute__((visibility("default")));
18352 #endif
18353
18354 void fnord () { int i=42; }
18355 int main ()
18356 {
18357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18358 int status = $lt_dlunknown;
18359
18360 if (self)
18361 {
18362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18363 else
18364 {
18365 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18366 else puts (dlerror ());
18367 }
18368 /* dlclose (self); */
18369 }
18370 else
18371 puts (dlerror ());
18372
18373 return status;
18374 }
18375 _LT_EOF
18376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18377 (eval $ac_link) 2>&5
18378 ac_status=$?
18379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18380 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18381 (./conftest; exit; ) >&5 2>/dev/null
18382 lt_status=$?
18383 case x$lt_status in
18384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18387 esac
18388 else :
18389 # compilation failed
18390 lt_cv_dlopen_self=no
18391 fi
18392 fi
18393 rm -fr conftest*
18394
18395
18396 fi
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18398 $as_echo "$lt_cv_dlopen_self" >&6; }
18399
18400 if test "x$lt_cv_dlopen_self" = xyes; then
18401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18404 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18405 $as_echo_n "(cached) " >&6
18406 else
18407 if test "$cross_compiling" = yes; then :
18408 lt_cv_dlopen_self_static=cross
18409 else
18410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18411 lt_status=$lt_dlunknown
18412 cat > conftest.$ac_ext <<_LT_EOF
18413 #line 18413 "configure"
18414 #include "confdefs.h"
18415
18416 #if HAVE_DLFCN_H
18417 #include <dlfcn.h>
18418 #endif
18419
18420 #include <stdio.h>
18421
18422 #ifdef RTLD_GLOBAL
18423 # define LT_DLGLOBAL RTLD_GLOBAL
18424 #else
18425 # ifdef DL_GLOBAL
18426 # define LT_DLGLOBAL DL_GLOBAL
18427 # else
18428 # define LT_DLGLOBAL 0
18429 # endif
18430 #endif
18431
18432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18433 find out it does not work in some platform. */
18434 #ifndef LT_DLLAZY_OR_NOW
18435 # ifdef RTLD_LAZY
18436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18437 # else
18438 # ifdef DL_LAZY
18439 # define LT_DLLAZY_OR_NOW DL_LAZY
18440 # else
18441 # ifdef RTLD_NOW
18442 # define LT_DLLAZY_OR_NOW RTLD_NOW
18443 # else
18444 # ifdef DL_NOW
18445 # define LT_DLLAZY_OR_NOW DL_NOW
18446 # else
18447 # define LT_DLLAZY_OR_NOW 0
18448 # endif
18449 # endif
18450 # endif
18451 # endif
18452 #endif
18453
18454 /* When -fvisbility=hidden is used, assume the code has been annotated
18455 correspondingly for the symbols needed. */
18456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18457 void fnord () __attribute__((visibility("default")));
18458 #endif
18459
18460 void fnord () { int i=42; }
18461 int main ()
18462 {
18463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18464 int status = $lt_dlunknown;
18465
18466 if (self)
18467 {
18468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18469 else
18470 {
18471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18472 else puts (dlerror ());
18473 }
18474 /* dlclose (self); */
18475 }
18476 else
18477 puts (dlerror ());
18478
18479 return status;
18480 }
18481 _LT_EOF
18482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18483 (eval $ac_link) 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18487 (./conftest; exit; ) >&5 2>/dev/null
18488 lt_status=$?
18489 case x$lt_status in
18490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18493 esac
18494 else :
18495 # compilation failed
18496 lt_cv_dlopen_self_static=no
18497 fi
18498 fi
18499 rm -fr conftest*
18500
18501
18502 fi
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18505 fi
18506
18507 CPPFLAGS="$save_CPPFLAGS"
18508 LDFLAGS="$save_LDFLAGS"
18509 LIBS="$save_LIBS"
18510 ;;
18511 esac
18512
18513 case $lt_cv_dlopen_self in
18514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18515 *) enable_dlopen_self=unknown ;;
18516 esac
18517
18518 case $lt_cv_dlopen_self_static in
18519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18520 *) enable_dlopen_self_static=unknown ;;
18521 esac
18522 fi
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540 striplib=
18541 old_striplib=
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18545 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18546 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18548 $as_echo "yes" >&6; }
18549 else
18550 # FIXME - insert some real tests, host_os isn't really good enough
18551 case $host_os in
18552 darwin*)
18553 if test -n "$STRIP" ; then
18554 striplib="$STRIP -x"
18555 old_striplib="$STRIP -S"
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18557 $as_echo "yes" >&6; }
18558 else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561 fi
18562 ;;
18563 *)
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 ;;
18567 esac
18568 fi
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581 # Report which library types will actually be built
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18585 $as_echo "$can_build_shared" >&6; }
18586
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18588 $as_echo_n "checking whether to build shared libraries... " >&6; }
18589 test "$can_build_shared" = "no" && enable_shared=no
18590
18591 # On AIX, shared libraries and static libraries use the same namespace, and
18592 # are all built from PIC.
18593 case $host_os in
18594 aix3*)
18595 test "$enable_shared" = yes && enable_static=no
18596 if test -n "$RANLIB"; then
18597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18598 postinstall_cmds='$RANLIB $lib'
18599 fi
18600 ;;
18601
18602 aix[4-9]*)
18603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18604 test "$enable_shared" = yes && enable_static=no
18605 fi
18606 ;;
18607 esac
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18609 $as_echo "$enable_shared" >&6; }
18610
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18612 $as_echo_n "checking whether to build static libraries... " >&6; }
18613 # Make sure either enable_shared or enable_static is yes.
18614 test "$enable_shared" = yes || enable_static=yes
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18616 $as_echo "$enable_static" >&6; }
18617
18618
18619
18620
18621 fi
18622 ac_ext=cpp
18623 ac_cpp='$CXXCPP $CPPFLAGS'
18624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18627
18628 CC="$lt_save_CC"
18629
18630 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18631 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18632 (test "X$CXX" != "Xg++"))) ; then
18633 ac_ext=cpp
18634 ac_cpp='$CXXCPP $CPPFLAGS'
18635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18639 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18640 if test -z "$CXXCPP"; then
18641 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18642 $as_echo_n "(cached) " >&6
18643 else
18644 # Double quotes because CXXCPP needs to be expanded
18645 for CXXCPP in "$CXX -E" "/lib/cpp"
18646 do
18647 ac_preproc_ok=false
18648 for ac_cxx_preproc_warn_flag in '' yes
18649 do
18650 # Use a header file that comes with gcc, so configuring glibc
18651 # with a fresh cross-compiler works.
18652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18653 # <limits.h> exists even on freestanding compilers.
18654 # On the NeXT, cc -E runs the code through the compiler's parser,
18655 # not just through cpp. "Syntax error" is here to catch this case.
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18658 #ifdef __STDC__
18659 # include <limits.h>
18660 #else
18661 # include <assert.h>
18662 #endif
18663 Syntax error
18664 _ACEOF
18665 if ac_fn_cxx_try_cpp "$LINENO"; then :
18666
18667 else
18668 # Broken: fails on valid input.
18669 continue
18670 fi
18671 rm -f conftest.err conftest.$ac_ext
18672
18673 # OK, works on sane cases. Now check whether nonexistent headers
18674 # can be detected and how.
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677 #include <ac_nonexistent.h>
18678 _ACEOF
18679 if ac_fn_cxx_try_cpp "$LINENO"; then :
18680 # Broken: success on invalid input.
18681 continue
18682 else
18683 # Passes both tests.
18684 ac_preproc_ok=:
18685 break
18686 fi
18687 rm -f conftest.err conftest.$ac_ext
18688
18689 done
18690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18691 rm -f conftest.err conftest.$ac_ext
18692 if $ac_preproc_ok; then :
18693 break
18694 fi
18695
18696 done
18697 ac_cv_prog_CXXCPP=$CXXCPP
18698
18699 fi
18700 CXXCPP=$ac_cv_prog_CXXCPP
18701 else
18702 ac_cv_prog_CXXCPP=$CXXCPP
18703 fi
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18705 $as_echo "$CXXCPP" >&6; }
18706 ac_preproc_ok=false
18707 for ac_cxx_preproc_warn_flag in '' yes
18708 do
18709 # Use a header file that comes with gcc, so configuring glibc
18710 # with a fresh cross-compiler works.
18711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712 # <limits.h> exists even on freestanding compilers.
18713 # On the NeXT, cc -E runs the code through the compiler's parser,
18714 # not just through cpp. "Syntax error" is here to catch this case.
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #ifdef __STDC__
18718 # include <limits.h>
18719 #else
18720 # include <assert.h>
18721 #endif
18722 Syntax error
18723 _ACEOF
18724 if ac_fn_cxx_try_cpp "$LINENO"; then :
18725
18726 else
18727 # Broken: fails on valid input.
18728 continue
18729 fi
18730 rm -f conftest.err conftest.$ac_ext
18731
18732 # OK, works on sane cases. Now check whether nonexistent headers
18733 # can be detected and how.
18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18735 /* end confdefs.h. */
18736 #include <ac_nonexistent.h>
18737 _ACEOF
18738 if ac_fn_cxx_try_cpp "$LINENO"; then :
18739 # Broken: success on invalid input.
18740 continue
18741 else
18742 # Passes both tests.
18743 ac_preproc_ok=:
18744 break
18745 fi
18746 rm -f conftest.err conftest.$ac_ext
18747
18748 done
18749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18750 rm -f conftest.err conftest.$ac_ext
18751 if $ac_preproc_ok; then :
18752
18753 else
18754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18756 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18757 See \`config.log' for more details." "$LINENO" 5; }
18758 fi
18759
18760 ac_ext=cpp
18761 ac_cpp='$CXXCPP $CPPFLAGS'
18762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18765
18766 else
18767 _lt_caught_CXX_error=yes
18768 fi
18769
18770 ac_ext=cpp
18771 ac_cpp='$CXXCPP $CPPFLAGS'
18772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18775
18776 archive_cmds_need_lc_CXX=no
18777 allow_undefined_flag_CXX=
18778 always_export_symbols_CXX=no
18779 archive_expsym_cmds_CXX=
18780 compiler_needs_object_CXX=no
18781 export_dynamic_flag_spec_CXX=
18782 hardcode_direct_CXX=no
18783 hardcode_direct_absolute_CXX=no
18784 hardcode_libdir_flag_spec_CXX=
18785 hardcode_libdir_flag_spec_ld_CXX=
18786 hardcode_libdir_separator_CXX=
18787 hardcode_minus_L_CXX=no
18788 hardcode_shlibpath_var_CXX=unsupported
18789 hardcode_automatic_CXX=no
18790 inherit_rpath_CXX=no
18791 module_cmds_CXX=
18792 module_expsym_cmds_CXX=
18793 link_all_deplibs_CXX=unknown
18794 old_archive_cmds_CXX=$old_archive_cmds
18795 reload_flag_CXX=$reload_flag
18796 reload_cmds_CXX=$reload_cmds
18797 no_undefined_flag_CXX=
18798 whole_archive_flag_spec_CXX=
18799 enable_shared_with_static_runtimes_CXX=no
18800
18801 # Source file extension for C++ test sources.
18802 ac_ext=cpp
18803
18804 # Object file extension for compiled C++ test sources.
18805 objext=o
18806 objext_CXX=$objext
18807
18808 # No sense in running all these tests if we already determined that
18809 # the CXX compiler isn't working. Some variables (like enable_shared)
18810 # are currently assumed to apply to all compilers on this platform,
18811 # and will be corrupted by setting them based on a non-working compiler.
18812 if test "$_lt_caught_CXX_error" != yes; then
18813 # Code to be used in simple compile tests
18814 lt_simple_compile_test_code="int some_variable = 0;"
18815
18816 # Code to be used in simple link tests
18817 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18818
18819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18820
18821
18822
18823
18824
18825
18826 # If no C compiler was specified, use CC.
18827 LTCC=${LTCC-"$CC"}
18828
18829 # If no C compiler flags were specified, use CFLAGS.
18830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18831
18832 # Allow CC to be a program name with arguments.
18833 compiler=$CC
18834
18835
18836 # save warnings/boilerplate of simple test code
18837 ac_outfile=conftest.$ac_objext
18838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18840 _lt_compiler_boilerplate=`cat conftest.err`
18841 $RM conftest*
18842
18843 ac_outfile=conftest.$ac_objext
18844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18846 _lt_linker_boilerplate=`cat conftest.err`
18847 $RM -r conftest*
18848
18849
18850 # Allow CC to be a program name with arguments.
18851 lt_save_CC=$CC
18852 lt_save_LD=$LD
18853 lt_save_GCC=$GCC
18854 GCC=$GXX
18855 lt_save_with_gnu_ld=$with_gnu_ld
18856 lt_save_path_LD=$lt_cv_path_LD
18857 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18858 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18859 else
18860 $as_unset lt_cv_prog_gnu_ld
18861 fi
18862 if test -n "${lt_cv_path_LDCXX+set}"; then
18863 lt_cv_path_LD=$lt_cv_path_LDCXX
18864 else
18865 $as_unset lt_cv_path_LD
18866 fi
18867 test -z "${LDCXX+set}" || LD=$LDCXX
18868 CC=${CXX-"c++"}
18869 compiler=$CC
18870 compiler_CXX=$CC
18871 for cc_temp in $compiler""; do
18872 case $cc_temp in
18873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18875 \-*) ;;
18876 *) break;;
18877 esac
18878 done
18879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18880
18881
18882 if test -n "$compiler"; then
18883 # We don't want -fno-exception when compiling C++ code, so set the
18884 # no_builtin_flag separately
18885 if test "$GXX" = yes; then
18886 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18887 else
18888 lt_prog_compiler_no_builtin_flag_CXX=
18889 fi
18890
18891 if test "$GXX" = yes; then
18892 # Set up default GNU C++ configuration
18893
18894
18895
18896 # Check whether --with-gnu-ld was given.
18897 if test "${with_gnu_ld+set}" = set; then :
18898 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18899 else
18900 with_gnu_ld=no
18901 fi
18902
18903 ac_prog=ld
18904 if test "$GCC" = yes; then
18905 # Check if gcc -print-prog-name=ld gives a path.
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18907 $as_echo_n "checking for ld used by $CC... " >&6; }
18908 case $host in
18909 *-*-mingw*)
18910 # gcc leaves a trailing carriage return which upsets mingw
18911 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18912 *)
18913 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18914 esac
18915 case $ac_prog in
18916 # Accept absolute paths.
18917 [\\/]* | ?:[\\/]*)
18918 re_direlt='/[^/][^/]*/\.\./'
18919 # Canonicalize the pathname of ld
18920 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18921 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18922 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18923 done
18924 test -z "$LD" && LD="$ac_prog"
18925 ;;
18926 "")
18927 # If it fails, then pretend we aren't using GCC.
18928 ac_prog=ld
18929 ;;
18930 *)
18931 # If it is relative, then search for the first ld in PATH.
18932 with_gnu_ld=unknown
18933 ;;
18934 esac
18935 elif test "$with_gnu_ld" = yes; then
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18937 $as_echo_n "checking for GNU ld... " >&6; }
18938 else
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18940 $as_echo_n "checking for non-GNU ld... " >&6; }
18941 fi
18942 if test "${lt_cv_path_LD+set}" = set; then :
18943 $as_echo_n "(cached) " >&6
18944 else
18945 if test -z "$LD"; then
18946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18947 for ac_dir in $PATH; do
18948 IFS="$lt_save_ifs"
18949 test -z "$ac_dir" && ac_dir=.
18950 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18951 lt_cv_path_LD="$ac_dir/$ac_prog"
18952 # Check to see if the program is GNU ld. I'd rather use --version,
18953 # but apparently some variants of GNU ld only accept -v.
18954 # Break only if it was the GNU/non-GNU ld that we prefer.
18955 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18956 *GNU* | *'with BFD'*)
18957 test "$with_gnu_ld" != no && break
18958 ;;
18959 *)
18960 test "$with_gnu_ld" != yes && break
18961 ;;
18962 esac
18963 fi
18964 done
18965 IFS="$lt_save_ifs"
18966 else
18967 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18968 fi
18969 fi
18970
18971 LD="$lt_cv_path_LD"
18972 if test -n "$LD"; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18974 $as_echo "$LD" >&6; }
18975 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 fi
18979 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18982 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18983 $as_echo_n "(cached) " >&6
18984 else
18985 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18986 case `$LD -v 2>&1 </dev/null` in
18987 *GNU* | *'with BFD'*)
18988 lt_cv_prog_gnu_ld=yes
18989 ;;
18990 *)
18991 lt_cv_prog_gnu_ld=no
18992 ;;
18993 esac
18994 fi
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18996 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18997 with_gnu_ld=$lt_cv_prog_gnu_ld
18998
18999
19000
19001
19002
19003
19004
19005 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19006 # archiving commands below assume that GNU ld is being used.
19007 if test "$with_gnu_ld" = yes; then
19008 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19009 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19010
19011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19013
19014 # If archive_cmds runs LD, not CC, wlarc should be empty
19015 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19016 # investigate it a little bit more. (MM)
19017 wlarc='${wl}'
19018
19019 # ancient GNU ld didn't support --whole-archive et. al.
19020 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19021 $GREP 'no-whole-archive' > /dev/null; then
19022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19023 else
19024 whole_archive_flag_spec_CXX=
19025 fi
19026 else
19027 with_gnu_ld=no
19028 wlarc=
19029
19030 # A generic and very simple default shared library creation
19031 # command for GNU C++ for the case where it uses the native
19032 # linker, instead of GNU ld. If possible, this setting should
19033 # overridden to take advantage of the native linker features on
19034 # the platform it is being used on.
19035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19036 fi
19037
19038 # Commands to make compiler produce verbose output that lists
19039 # what "hidden" libraries, object files and flags are used when
19040 # linking a shared library.
19041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19042
19043 else
19044 GXX=no
19045 with_gnu_ld=no
19046 wlarc=
19047 fi
19048
19049 # PORTME: fill in a description of your system's C++ link characteristics
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19052 ld_shlibs_CXX=yes
19053 case $host_os in
19054 aix3*)
19055 # FIXME: insert proper C++ library support
19056 ld_shlibs_CXX=no
19057 ;;
19058 aix[4-9]*)
19059 if test "$host_cpu" = ia64; then
19060 # On IA64, the linker does run time linking by default, so we don't
19061 # have to do anything special.
19062 aix_use_runtimelinking=no
19063 exp_sym_flag='-Bexport'
19064 no_entry_flag=""
19065 else
19066 aix_use_runtimelinking=no
19067
19068 # Test if we are trying to use run time linking or normal
19069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19070 # need to do runtime linking.
19071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19072 for ld_flag in $LDFLAGS; do
19073 case $ld_flag in
19074 *-brtl*)
19075 aix_use_runtimelinking=yes
19076 break
19077 ;;
19078 esac
19079 done
19080 ;;
19081 esac
19082
19083 exp_sym_flag='-bexport'
19084 no_entry_flag='-bnoentry'
19085 fi
19086
19087 # When large executables or shared objects are built, AIX ld can
19088 # have problems creating the table of contents. If linking a library
19089 # or program results in "error TOC overflow" add -mminimal-toc to
19090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19092
19093 archive_cmds_CXX=''
19094 hardcode_direct_CXX=yes
19095 hardcode_direct_absolute_CXX=yes
19096 hardcode_libdir_separator_CXX=':'
19097 link_all_deplibs_CXX=yes
19098 file_list_spec_CXX='${wl}-f,'
19099
19100 if test "$GXX" = yes; then
19101 case $host_os in aix4.[012]|aix4.[012].*)
19102 # We only want to do this on AIX 4.2 and lower, the check
19103 # below for broken collect2 doesn't work under 4.3+
19104 collect2name=`${CC} -print-prog-name=collect2`
19105 if test -f "$collect2name" &&
19106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19107 then
19108 # We have reworked collect2
19109 :
19110 else
19111 # We have old collect2
19112 hardcode_direct_CXX=unsupported
19113 # It fails to find uninstalled libraries when the uninstalled
19114 # path is not listed in the libpath. Setting hardcode_minus_L
19115 # to unsupported forces relinking
19116 hardcode_minus_L_CXX=yes
19117 hardcode_libdir_flag_spec_CXX='-L$libdir'
19118 hardcode_libdir_separator_CXX=
19119 fi
19120 esac
19121 shared_flag='-shared'
19122 if test "$aix_use_runtimelinking" = yes; then
19123 shared_flag="$shared_flag "'${wl}-G'
19124 fi
19125 else
19126 # not using gcc
19127 if test "$host_cpu" = ia64; then
19128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19129 # chokes on -Wl,-G. The following line is correct:
19130 shared_flag='-G'
19131 else
19132 if test "$aix_use_runtimelinking" = yes; then
19133 shared_flag='${wl}-G'
19134 else
19135 shared_flag='${wl}-bM:SRE'
19136 fi
19137 fi
19138 fi
19139
19140 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19141 # It seems that -bexpall does not export symbols beginning with
19142 # underscore (_), so it is better to generate a list of symbols to
19143 # export.
19144 always_export_symbols_CXX=yes
19145 if test "$aix_use_runtimelinking" = yes; then
19146 # Warning - without using the other runtime loading flags (-brtl),
19147 # -berok will link without error, but may produce a broken library.
19148 allow_undefined_flag_CXX='-berok'
19149 # Determine the default libpath from the value encoded in an empty
19150 # executable.
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153
19154 int
19155 main ()
19156 {
19157
19158 ;
19159 return 0;
19160 }
19161 _ACEOF
19162 if ac_fn_cxx_try_link "$LINENO"; then :
19163
19164 lt_aix_libpath_sed='
19165 /Import File Strings/,/^$/ {
19166 /^0/ {
19167 s/^0 *\(.*\)$/\1/
19168 p
19169 }
19170 }'
19171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19172 # Check for a 64-bit object if we didn't find anything.
19173 if test -z "$aix_libpath"; then
19174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19175 fi
19176 fi
19177 rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19180
19181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19182
19183 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"
19184 else
19185 if test "$host_cpu" = ia64; then
19186 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19187 allow_undefined_flag_CXX="-z nodefs"
19188 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"
19189 else
19190 # Determine the default libpath from the value encoded in an
19191 # empty executable.
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19194
19195 int
19196 main ()
19197 {
19198
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_cxx_try_link "$LINENO"; then :
19204
19205 lt_aix_libpath_sed='
19206 /Import File Strings/,/^$/ {
19207 /^0/ {
19208 s/^0 *\(.*\)$/\1/
19209 p
19210 }
19211 }'
19212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19213 # Check for a 64-bit object if we didn't find anything.
19214 if test -z "$aix_libpath"; then
19215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19216 fi
19217 fi
19218 rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19221
19222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19223 # Warning - without using the other run time loading flags,
19224 # -berok will link without error, but may produce a broken library.
19225 no_undefined_flag_CXX=' ${wl}-bernotok'
19226 allow_undefined_flag_CXX=' ${wl}-berok'
19227 if test "$with_gnu_ld" = yes; then
19228 # We only use this code for GNU lds that support --whole-archive.
19229 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19230 else
19231 # Exported symbols can be pulled into shared objects from archives
19232 whole_archive_flag_spec_CXX='$convenience'
19233 fi
19234 archive_cmds_need_lc_CXX=yes
19235 # This is similar to how AIX traditionally builds its shared
19236 # libraries.
19237 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'
19238 fi
19239 fi
19240 ;;
19241
19242 beos*)
19243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19244 allow_undefined_flag_CXX=unsupported
19245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19246 # support --undefined. This deserves some investigation. FIXME
19247 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19248 else
19249 ld_shlibs_CXX=no
19250 fi
19251 ;;
19252
19253 chorus*)
19254 case $cc_basename in
19255 *)
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19258 ;;
19259 esac
19260 ;;
19261
19262 cygwin* | mingw* | pw32* | cegcc*)
19263 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19264 # as there is no search path for DLLs.
19265 hardcode_libdir_flag_spec_CXX='-L$libdir'
19266 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19267 allow_undefined_flag_CXX=unsupported
19268 always_export_symbols_CXX=no
19269 enable_shared_with_static_runtimes_CXX=yes
19270
19271 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19272 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'
19273 # If the export-symbols file already is a .def file (1st line
19274 # is EXPORTS), use it as is; otherwise, prepend...
19275 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19276 cp $export_symbols $output_objdir/$soname.def;
19277 else
19278 echo EXPORTS > $output_objdir/$soname.def;
19279 cat $export_symbols >> $output_objdir/$soname.def;
19280 fi~
19281 $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'
19282 else
19283 ld_shlibs_CXX=no
19284 fi
19285 ;;
19286 darwin* | rhapsody*)
19287
19288
19289 archive_cmds_need_lc_CXX=no
19290 hardcode_direct_CXX=no
19291 hardcode_automatic_CXX=yes
19292 hardcode_shlibpath_var_CXX=unsupported
19293 if test "$lt_cv_ld_force_load" = "yes"; then
19294 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\"`'
19295 else
19296 whole_archive_flag_spec_CXX=''
19297 fi
19298 link_all_deplibs_CXX=yes
19299 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19300 case $cc_basename in
19301 ifort*) _lt_dar_can_shared=yes ;;
19302 *) _lt_dar_can_shared=$GCC ;;
19303 esac
19304 if test "$_lt_dar_can_shared" = "yes"; then
19305 output_verbose_link_cmd=func_echo_all
19306 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}"
19307 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19308 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}"
19309 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}"
19310 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19311 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}"
19312 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}"
19313 fi
19314
19315 else
19316 ld_shlibs_CXX=no
19317 fi
19318
19319 ;;
19320
19321 dgux*)
19322 case $cc_basename in
19323 ec++*)
19324 # FIXME: insert proper C++ library support
19325 ld_shlibs_CXX=no
19326 ;;
19327 ghcx*)
19328 # Green Hills C++ Compiler
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19331 ;;
19332 *)
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19335 ;;
19336 esac
19337 ;;
19338
19339 freebsd2.*)
19340 # C++ shared libraries reported to be fairly broken before
19341 # switch to ELF
19342 ld_shlibs_CXX=no
19343 ;;
19344
19345 freebsd-elf*)
19346 archive_cmds_need_lc_CXX=no
19347 ;;
19348
19349 freebsd* | dragonfly*)
19350 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19351 # conventions
19352 ld_shlibs_CXX=yes
19353 ;;
19354
19355 gnu*)
19356 ;;
19357
19358 haiku*)
19359 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 link_all_deplibs_CXX=yes
19361 ;;
19362
19363 hpux9*)
19364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19365 hardcode_libdir_separator_CXX=:
19366 export_dynamic_flag_spec_CXX='${wl}-E'
19367 hardcode_direct_CXX=yes
19368 hardcode_minus_L_CXX=yes # Not in the search PATH,
19369 # but as the default
19370 # location of the library.
19371
19372 case $cc_basename in
19373 CC*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 aCC*)
19378 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'
19379 # Commands to make compiler produce verbose output that lists
19380 # what "hidden" libraries, object files and flags are used when
19381 # linking a shared library.
19382 #
19383 # There doesn't appear to be a way to prevent this compiler from
19384 # explicitly linking system object files so we need to strip them
19385 # from the output so that they don't get included in the library
19386 # dependencies.
19387 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"'
19388 ;;
19389 *)
19390 if test "$GXX" = yes; then
19391 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'
19392 else
19393 # FIXME: insert proper C++ library support
19394 ld_shlibs_CXX=no
19395 fi
19396 ;;
19397 esac
19398 ;;
19399
19400 hpux10*|hpux11*)
19401 if test $with_gnu_ld = no; then
19402 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19403 hardcode_libdir_separator_CXX=:
19404
19405 case $host_cpu in
19406 hppa*64*|ia64*)
19407 ;;
19408 *)
19409 export_dynamic_flag_spec_CXX='${wl}-E'
19410 ;;
19411 esac
19412 fi
19413 case $host_cpu in
19414 hppa*64*|ia64*)
19415 hardcode_direct_CXX=no
19416 hardcode_shlibpath_var_CXX=no
19417 ;;
19418 *)
19419 hardcode_direct_CXX=yes
19420 hardcode_direct_absolute_CXX=yes
19421 hardcode_minus_L_CXX=yes # Not in the search PATH,
19422 # but as the default
19423 # location of the library.
19424 ;;
19425 esac
19426
19427 case $cc_basename in
19428 CC*)
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19431 ;;
19432 aCC*)
19433 case $host_cpu in
19434 hppa*64*)
19435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19436 ;;
19437 ia64*)
19438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19439 ;;
19440 *)
19441 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19442 ;;
19443 esac
19444 # Commands to make compiler produce verbose output that lists
19445 # what "hidden" libraries, object files and flags are used when
19446 # linking a shared library.
19447 #
19448 # There doesn't appear to be a way to prevent this compiler from
19449 # explicitly linking system object files so we need to strip them
19450 # from the output so that they don't get included in the library
19451 # dependencies.
19452 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"'
19453 ;;
19454 *)
19455 if test "$GXX" = yes; then
19456 if test $with_gnu_ld = no; then
19457 case $host_cpu in
19458 hppa*64*)
19459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19460 ;;
19461 ia64*)
19462 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19463 ;;
19464 *)
19465 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'
19466 ;;
19467 esac
19468 fi
19469 else
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 fi
19473 ;;
19474 esac
19475 ;;
19476
19477 interix[3-9]*)
19478 hardcode_direct_CXX=no
19479 hardcode_shlibpath_var_CXX=no
19480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19481 export_dynamic_flag_spec_CXX='${wl}-E'
19482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19483 # Instead, shared libraries are loaded at an image base (0x10000000 by
19484 # default) and relocated if they conflict, which is a slow very memory
19485 # consuming and fragmenting process. To avoid this, we pick a random,
19486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19488 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'
19489 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'
19490 ;;
19491 irix5* | irix6*)
19492 case $cc_basename in
19493 CC*)
19494 # SGI C++
19495 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'
19496
19497 # Archives containing C++ object files must be created using
19498 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19499 # necessary to make sure instantiated templates are included
19500 # in the archive.
19501 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19502 ;;
19503 *)
19504 if test "$GXX" = yes; then
19505 if test "$with_gnu_ld" = no; then
19506 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'
19507 else
19508 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'
19509 fi
19510 fi
19511 link_all_deplibs_CXX=yes
19512 ;;
19513 esac
19514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19515 hardcode_libdir_separator_CXX=:
19516 inherit_rpath_CXX=yes
19517 ;;
19518
19519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19520 case $cc_basename in
19521 KCC*)
19522 # Kuck and Associates, Inc. (KAI) C++ Compiler
19523
19524 # KCC will only create a shared library if the output file
19525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19526 # to its proper name (with version) after linking.
19527 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'
19528 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'
19529 # Commands to make compiler produce verbose output that lists
19530 # what "hidden" libraries, object files and flags are used when
19531 # linking a shared library.
19532 #
19533 # There doesn't appear to be a way to prevent this compiler from
19534 # explicitly linking system object files so we need to strip them
19535 # from the output so that they don't get included in the library
19536 # dependencies.
19537 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"'
19538
19539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19541
19542 # Archives containing C++ object files must be created using
19543 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19544 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19545 ;;
19546 icpc* | ecpc* )
19547 # Intel C++
19548 with_gnu_ld=yes
19549 # version 8.0 and above of icpc choke on multiply defined symbols
19550 # if we add $predep_objects and $postdep_objects, however 7.1 and
19551 # earlier do not add the objects themselves.
19552 case `$CC -V 2>&1` in
19553 *"Version 7."*)
19554 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19555 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'
19556 ;;
19557 *) # Version 8.0 or newer
19558 tmp_idyn=
19559 case $host_cpu in
19560 ia64*) tmp_idyn=' -i_dynamic';;
19561 esac
19562 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19563 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'
19564 ;;
19565 esac
19566 archive_cmds_need_lc_CXX=no
19567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19569 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19570 ;;
19571 pgCC* | pgcpp*)
19572 # Portland Group C++ compiler
19573 case `$CC -V` in
19574 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19575 prelink_cmds_CXX='tpldir=Template.dir~
19576 rm -rf $tpldir~
19577 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19578 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19579 old_archive_cmds_CXX='tpldir=Template.dir~
19580 rm -rf $tpldir~
19581 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19582 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19583 $RANLIB $oldlib'
19584 archive_cmds_CXX='tpldir=Template.dir~
19585 rm -rf $tpldir~
19586 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19587 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19588 archive_expsym_cmds_CXX='tpldir=Template.dir~
19589 rm -rf $tpldir~
19590 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19591 $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'
19592 ;;
19593 *) # Version 6 and above use weak symbols
19594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19595 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'
19596 ;;
19597 esac
19598
19599 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19601 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'
19602 ;;
19603 cxx*)
19604 # Compaq C++
19605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19606 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'
19607
19608 runpath_var=LD_RUN_PATH
19609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19610 hardcode_libdir_separator_CXX=:
19611
19612 # Commands to make compiler produce verbose output that lists
19613 # what "hidden" libraries, object files and flags are used when
19614 # linking a shared library.
19615 #
19616 # There doesn't appear to be a way to prevent this compiler from
19617 # explicitly linking system object files so we need to strip them
19618 # from the output so that they don't get included in the library
19619 # dependencies.
19620 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'
19621 ;;
19622 xl* | mpixl* | bgxl*)
19623 # IBM XL 8.0 on PPC, with GNU ld
19624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19626 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19627 if test "x$supports_anon_versioning" = xyes; then
19628 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19630 echo "local: *; };" >> $output_objdir/$libname.ver~
19631 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19632 fi
19633 ;;
19634 *)
19635 case `$CC -V 2>&1 | sed 5q` in
19636 *Sun\ C*)
19637 # Sun C++ 5.9
19638 no_undefined_flag_CXX=' -zdefs'
19639 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19640 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'
19641 hardcode_libdir_flag_spec_CXX='-R$libdir'
19642 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'
19643 compiler_needs_object_CXX=yes
19644
19645 # Not sure whether something based on
19646 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19647 # would be better.
19648 output_verbose_link_cmd='func_echo_all'
19649
19650 # Archives containing C++ object files must be created using
19651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19652 # necessary to make sure instantiated templates are included
19653 # in the archive.
19654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19655 ;;
19656 esac
19657 ;;
19658 esac
19659 ;;
19660
19661 lynxos*)
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19664 ;;
19665
19666 m88k*)
19667 # FIXME: insert proper C++ library support
19668 ld_shlibs_CXX=no
19669 ;;
19670
19671 mvs*)
19672 case $cc_basename in
19673 cxx*)
19674 # FIXME: insert proper C++ library support
19675 ld_shlibs_CXX=no
19676 ;;
19677 *)
19678 # FIXME: insert proper C++ library support
19679 ld_shlibs_CXX=no
19680 ;;
19681 esac
19682 ;;
19683
19684 netbsd*)
19685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19686 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19687 wlarc=
19688 hardcode_libdir_flag_spec_CXX='-R$libdir'
19689 hardcode_direct_CXX=yes
19690 hardcode_shlibpath_var_CXX=no
19691 fi
19692 # Workaround some broken pre-1.5 toolchains
19693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19694 ;;
19695
19696 *nto* | *qnx*)
19697 ld_shlibs_CXX=yes
19698 ;;
19699
19700 openbsd2*)
19701 # C++ shared libraries are fairly broken
19702 ld_shlibs_CXX=no
19703 ;;
19704
19705 openbsd*)
19706 if test -f /usr/libexec/ld.so; then
19707 hardcode_direct_CXX=yes
19708 hardcode_shlibpath_var_CXX=no
19709 hardcode_direct_absolute_CXX=yes
19710 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19713 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19714 export_dynamic_flag_spec_CXX='${wl}-E'
19715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19716 fi
19717 output_verbose_link_cmd=func_echo_all
19718 else
19719 ld_shlibs_CXX=no
19720 fi
19721 ;;
19722
19723 osf3* | osf4* | osf5*)
19724 case $cc_basename in
19725 KCC*)
19726 # Kuck and Associates, Inc. (KAI) C++ Compiler
19727
19728 # KCC will only create a shared library if the output file
19729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19730 # to its proper name (with version) after linking.
19731 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'
19732
19733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19734 hardcode_libdir_separator_CXX=:
19735
19736 # Archives containing C++ object files must be created using
19737 # the KAI C++ compiler.
19738 case $host in
19739 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19740 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19741 esac
19742 ;;
19743 RCC*)
19744 # Rational C++ 2.4.1
19745 # FIXME: insert proper C++ library support
19746 ld_shlibs_CXX=no
19747 ;;
19748 cxx*)
19749 case $host in
19750 osf3*)
19751 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19752 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'
19753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19754 ;;
19755 *)
19756 allow_undefined_flag_CXX=' -expect_unresolved \*'
19757 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'
19758 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19759 echo "-hidden">> $lib.exp~
19760 $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~
19761 $RM $lib.exp'
19762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19763 ;;
19764 esac
19765
19766 hardcode_libdir_separator_CXX=:
19767
19768 # Commands to make compiler produce verbose output that lists
19769 # what "hidden" libraries, object files and flags are used when
19770 # linking a shared library.
19771 #
19772 # There doesn't appear to be a way to prevent this compiler from
19773 # explicitly linking system object files so we need to strip them
19774 # from the output so that they don't get included in the library
19775 # dependencies.
19776 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"'
19777 ;;
19778 *)
19779 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19780 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19781 case $host in
19782 osf3*)
19783 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'
19784 ;;
19785 *)
19786 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'
19787 ;;
19788 esac
19789
19790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19791 hardcode_libdir_separator_CXX=:
19792
19793 # Commands to make compiler produce verbose output that lists
19794 # what "hidden" libraries, object files and flags are used when
19795 # linking a shared library.
19796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19797
19798 else
19799 # FIXME: insert proper C++ library support
19800 ld_shlibs_CXX=no
19801 fi
19802 ;;
19803 esac
19804 ;;
19805
19806 psos*)
19807 # FIXME: insert proper C++ library support
19808 ld_shlibs_CXX=no
19809 ;;
19810
19811 sunos4*)
19812 case $cc_basename in
19813 CC*)
19814 # Sun C++ 4.x
19815 # FIXME: insert proper C++ library support
19816 ld_shlibs_CXX=no
19817 ;;
19818 lcc*)
19819 # Lucid
19820 # FIXME: insert proper C++ library support
19821 ld_shlibs_CXX=no
19822 ;;
19823 *)
19824 # FIXME: insert proper C++ library support
19825 ld_shlibs_CXX=no
19826 ;;
19827 esac
19828 ;;
19829
19830 solaris*)
19831 case $cc_basename in
19832 CC*)
19833 # Sun C++ 4.2, 5.x and Centerline C++
19834 archive_cmds_need_lc_CXX=yes
19835 no_undefined_flag_CXX=' -zdefs'
19836 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19837 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19838 $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'
19839
19840 hardcode_libdir_flag_spec_CXX='-R$libdir'
19841 hardcode_shlibpath_var_CXX=no
19842 case $host_os in
19843 solaris2.[0-5] | solaris2.[0-5].*) ;;
19844 *)
19845 # The compiler driver will combine and reorder linker options,
19846 # but understands `-z linker_flag'.
19847 # Supported since Solaris 2.6 (maybe 2.5.1?)
19848 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19849 ;;
19850 esac
19851 link_all_deplibs_CXX=yes
19852
19853 output_verbose_link_cmd='func_echo_all'
19854
19855 # Archives containing C++ object files must be created using
19856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19857 # necessary to make sure instantiated templates are included
19858 # in the archive.
19859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19860 ;;
19861 gcx*)
19862 # Green Hills C++ Compiler
19863 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19864
19865 # The C++ compiler must be used to create the archive.
19866 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19867 ;;
19868 *)
19869 # GNU C++ compiler with Solaris linker
19870 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19871 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19872 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19873 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19875 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19876
19877 # Commands to make compiler produce verbose output that lists
19878 # what "hidden" libraries, object files and flags are used when
19879 # linking a shared library.
19880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19881 else
19882 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19883 # platform.
19884 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19885 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19886 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19887
19888 # Commands to make compiler produce verbose output that lists
19889 # what "hidden" libraries, object files and flags are used when
19890 # linking a shared library.
19891 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19892 fi
19893
19894 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19895 case $host_os in
19896 solaris2.[0-5] | solaris2.[0-5].*) ;;
19897 *)
19898 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19899 ;;
19900 esac
19901 fi
19902 ;;
19903 esac
19904 ;;
19905
19906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19907 no_undefined_flag_CXX='${wl}-z,text'
19908 archive_cmds_need_lc_CXX=no
19909 hardcode_shlibpath_var_CXX=no
19910 runpath_var='LD_RUN_PATH'
19911
19912 case $cc_basename in
19913 CC*)
19914 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19915 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19916 ;;
19917 *)
19918 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19919 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19920 ;;
19921 esac
19922 ;;
19923
19924 sysv5* | sco3.2v5* | sco5v6*)
19925 # Note: We can NOT use -z defs as we might desire, because we do not
19926 # link with -lc, and that would cause any symbols used from libc to
19927 # always be unresolved, which means just about no library would
19928 # ever link correctly. If we're not using GNU ld we use -z text
19929 # though, which does catch some bad symbols but isn't as heavy-handed
19930 # as -z defs.
19931 no_undefined_flag_CXX='${wl}-z,text'
19932 allow_undefined_flag_CXX='${wl}-z,nodefs'
19933 archive_cmds_need_lc_CXX=no
19934 hardcode_shlibpath_var_CXX=no
19935 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19936 hardcode_libdir_separator_CXX=':'
19937 link_all_deplibs_CXX=yes
19938 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19939 runpath_var='LD_RUN_PATH'
19940
19941 case $cc_basename in
19942 CC*)
19943 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19944 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19945 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19946 '"$old_archive_cmds_CXX"
19947 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19948 '"$reload_cmds_CXX"
19949 ;;
19950 *)
19951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19953 ;;
19954 esac
19955 ;;
19956
19957 tandem*)
19958 case $cc_basename in
19959 NCC*)
19960 # NonStop-UX NCC 3.20
19961 # FIXME: insert proper C++ library support
19962 ld_shlibs_CXX=no
19963 ;;
19964 *)
19965 # FIXME: insert proper C++ library support
19966 ld_shlibs_CXX=no
19967 ;;
19968 esac
19969 ;;
19970
19971 vxworks*)
19972 # FIXME: insert proper C++ library support
19973 ld_shlibs_CXX=no
19974 ;;
19975
19976 *)
19977 # FIXME: insert proper C++ library support
19978 ld_shlibs_CXX=no
19979 ;;
19980 esac
19981
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19983 $as_echo "$ld_shlibs_CXX" >&6; }
19984 test "$ld_shlibs_CXX" = no && can_build_shared=no
19985
19986 GCC_CXX="$GXX"
19987 LD_CXX="$LD"
19988
19989 ## CAVEAT EMPTOR:
19990 ## There is no encapsulation within the following macros, do not change
19991 ## the running order or otherwise move them around unless you know exactly
19992 ## what you are doing...
19993 # Dependencies to place before and after the object being linked:
19994 predep_objects_CXX=
19995 postdep_objects_CXX=
19996 predeps_CXX=
19997 postdeps_CXX=
19998 compiler_lib_search_path_CXX=
19999
20000 cat > conftest.$ac_ext <<_LT_EOF
20001 class Foo
20002 {
20003 public:
20004 Foo (void) { a = 0; }
20005 private:
20006 int a;
20007 };
20008 _LT_EOF
20009
20010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20011 (eval $ac_compile) 2>&5
20012 ac_status=$?
20013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20014 test $ac_status = 0; }; then
20015 # Parse the compiler output and extract the necessary
20016 # objects, libraries and library flags.
20017
20018 # Sentinel used to keep track of whether or not we are before
20019 # the conftest object file.
20020 pre_test_object_deps_done=no
20021
20022 for p in `eval "$output_verbose_link_cmd"`; do
20023 case $p in
20024
20025 -L* | -R* | -l*)
20026 # Some compilers place space between "-{L,R}" and the path.
20027 # Remove the space.
20028 if test $p = "-L" ||
20029 test $p = "-R"; then
20030 prev=$p
20031 continue
20032 else
20033 prev=
20034 fi
20035
20036 if test "$pre_test_object_deps_done" = no; then
20037 case $p in
20038 -L* | -R*)
20039 # Internal compiler library paths should come after those
20040 # provided the user. The postdeps already come after the
20041 # user supplied libs so there is no need to process them.
20042 if test -z "$compiler_lib_search_path_CXX"; then
20043 compiler_lib_search_path_CXX="${prev}${p}"
20044 else
20045 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20046 fi
20047 ;;
20048 # The "-l" case would never come before the object being
20049 # linked, so don't bother handling this case.
20050 esac
20051 else
20052 if test -z "$postdeps_CXX"; then
20053 postdeps_CXX="${prev}${p}"
20054 else
20055 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20056 fi
20057 fi
20058 ;;
20059
20060 *.$objext)
20061 # This assumes that the test object file only shows up
20062 # once in the compiler output.
20063 if test "$p" = "conftest.$objext"; then
20064 pre_test_object_deps_done=yes
20065 continue
20066 fi
20067
20068 if test "$pre_test_object_deps_done" = no; then
20069 if test -z "$predep_objects_CXX"; then
20070 predep_objects_CXX="$p"
20071 else
20072 predep_objects_CXX="$predep_objects_CXX $p"
20073 fi
20074 else
20075 if test -z "$postdep_objects_CXX"; then
20076 postdep_objects_CXX="$p"
20077 else
20078 postdep_objects_CXX="$postdep_objects_CXX $p"
20079 fi
20080 fi
20081 ;;
20082
20083 *) ;; # Ignore the rest.
20084
20085 esac
20086 done
20087
20088 # Clean up.
20089 rm -f a.out a.exe
20090 else
20091 echo "libtool.m4: error: problem compiling CXX test program"
20092 fi
20093
20094 $RM -f confest.$objext
20095
20096 # PORTME: override above test on systems where it is broken
20097 case $host_os in
20098 interix[3-9]*)
20099 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20100 # hack all around it, let's just trust "g++" to DTRT.
20101 predep_objects_CXX=
20102 postdep_objects_CXX=
20103 postdeps_CXX=
20104 ;;
20105
20106 linux*)
20107 case `$CC -V 2>&1 | sed 5q` in
20108 *Sun\ C*)
20109 # Sun C++ 5.9
20110
20111 # The more standards-conforming stlport4 library is
20112 # incompatible with the Cstd library. Avoid specifying
20113 # it if it's in CXXFLAGS. Ignore libCrun as
20114 # -library=stlport4 depends on it.
20115 case " $CXX $CXXFLAGS " in
20116 *" -library=stlport4 "*)
20117 solaris_use_stlport4=yes
20118 ;;
20119 esac
20120
20121 if test "$solaris_use_stlport4" != yes; then
20122 postdeps_CXX='-library=Cstd -library=Crun'
20123 fi
20124 ;;
20125 esac
20126 ;;
20127
20128 solaris*)
20129 case $cc_basename in
20130 CC*)
20131 # The more standards-conforming stlport4 library is
20132 # incompatible with the Cstd library. Avoid specifying
20133 # it if it's in CXXFLAGS. Ignore libCrun as
20134 # -library=stlport4 depends on it.
20135 case " $CXX $CXXFLAGS " in
20136 *" -library=stlport4 "*)
20137 solaris_use_stlport4=yes
20138 ;;
20139 esac
20140
20141 # Adding this requires a known-good setup of shared libraries for
20142 # Sun compiler versions before 5.6, else PIC objects from an old
20143 # archive will be linked into the output, leading to subtle bugs.
20144 if test "$solaris_use_stlport4" != yes; then
20145 postdeps_CXX='-library=Cstd -library=Crun'
20146 fi
20147 ;;
20148 esac
20149 ;;
20150 esac
20151
20152
20153 case " $postdeps_CXX " in
20154 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20155 esac
20156 compiler_lib_search_dirs_CXX=
20157 if test -n "${compiler_lib_search_path_CXX}"; then
20158 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20159 fi
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191 lt_prog_compiler_wl_CXX=
20192 lt_prog_compiler_pic_CXX=
20193 lt_prog_compiler_static_CXX=
20194
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20197
20198 # C++ specific cases for pic, static, wl, etc.
20199 if test "$GXX" = yes; then
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_static_CXX='-static'
20202
20203 case $host_os in
20204 aix*)
20205 # All AIX code is PIC.
20206 if test "$host_cpu" = ia64; then
20207 # AIX 5 now supports IA64 processor
20208 lt_prog_compiler_static_CXX='-Bstatic'
20209 fi
20210 lt_prog_compiler_pic_CXX='-fPIC'
20211 ;;
20212
20213 amigaos*)
20214 case $host_cpu in
20215 powerpc)
20216 # see comment about AmigaOS4 .so support
20217 lt_prog_compiler_pic_CXX='-fPIC'
20218 ;;
20219 m68k)
20220 # FIXME: we need at least 68020 code to build shared libraries, but
20221 # adding the `-m68020' flag to GCC prevents building anything better,
20222 # like `-m68040'.
20223 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20224 ;;
20225 esac
20226 ;;
20227
20228 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20229 # PIC is the default for these OSes.
20230 ;;
20231 mingw* | cygwin* | os2* | pw32* | cegcc*)
20232 # This hack is so that the source file can tell whether it is being
20233 # built for inclusion in a dll (and should export symbols for example).
20234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20235 # (--disable-auto-import) libraries
20236 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20237 ;;
20238 darwin* | rhapsody*)
20239 # PIC is the default on this platform
20240 # Common symbols not allowed in MH_DYLIB files
20241 lt_prog_compiler_pic_CXX='-fno-common'
20242 ;;
20243 *djgpp*)
20244 # DJGPP does not support shared libraries at all
20245 lt_prog_compiler_pic_CXX=
20246 ;;
20247 haiku*)
20248 # PIC is the default for Haiku.
20249 # The "-static" flag exists, but is broken.
20250 lt_prog_compiler_static_CXX=
20251 ;;
20252 interix[3-9]*)
20253 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20254 # Instead, we relocate shared libraries at runtime.
20255 ;;
20256 sysv4*MP*)
20257 if test -d /usr/nec; then
20258 lt_prog_compiler_pic_CXX=-Kconform_pic
20259 fi
20260 ;;
20261 hpux*)
20262 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20263 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20264 # sets the default TLS model and affects inlining.
20265 case $host_cpu in
20266 hppa*64*)
20267 ;;
20268 *)
20269 lt_prog_compiler_pic_CXX='-fPIC'
20270 ;;
20271 esac
20272 ;;
20273 *qnx* | *nto*)
20274 # QNX uses GNU C++, but need to define -shared option too, otherwise
20275 # it will coredump.
20276 lt_prog_compiler_pic_CXX='-fPIC -shared'
20277 ;;
20278 *)
20279 lt_prog_compiler_pic_CXX='-fPIC'
20280 ;;
20281 esac
20282 else
20283 case $host_os in
20284 aix[4-9]*)
20285 # All AIX code is PIC.
20286 if test "$host_cpu" = ia64; then
20287 # AIX 5 now supports IA64 processor
20288 lt_prog_compiler_static_CXX='-Bstatic'
20289 else
20290 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20291 fi
20292 ;;
20293 chorus*)
20294 case $cc_basename in
20295 cxch68*)
20296 # Green Hills C++ Compiler
20297 # _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"
20298 ;;
20299 esac
20300 ;;
20301 dgux*)
20302 case $cc_basename in
20303 ec++*)
20304 lt_prog_compiler_pic_CXX='-KPIC'
20305 ;;
20306 ghcx*)
20307 # Green Hills C++ Compiler
20308 lt_prog_compiler_pic_CXX='-pic'
20309 ;;
20310 *)
20311 ;;
20312 esac
20313 ;;
20314 freebsd* | dragonfly*)
20315 # FreeBSD uses GNU C++
20316 ;;
20317 hpux9* | hpux10* | hpux11*)
20318 case $cc_basename in
20319 CC*)
20320 lt_prog_compiler_wl_CXX='-Wl,'
20321 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20322 if test "$host_cpu" != ia64; then
20323 lt_prog_compiler_pic_CXX='+Z'
20324 fi
20325 ;;
20326 aCC*)
20327 lt_prog_compiler_wl_CXX='-Wl,'
20328 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20329 case $host_cpu in
20330 hppa*64*|ia64*)
20331 # +Z the default
20332 ;;
20333 *)
20334 lt_prog_compiler_pic_CXX='+Z'
20335 ;;
20336 esac
20337 ;;
20338 *)
20339 ;;
20340 esac
20341 ;;
20342 interix*)
20343 # This is c89, which is MS Visual C++ (no shared libs)
20344 # Anyone wants to do a port?
20345 ;;
20346 irix5* | irix6* | nonstopux*)
20347 case $cc_basename in
20348 CC*)
20349 lt_prog_compiler_wl_CXX='-Wl,'
20350 lt_prog_compiler_static_CXX='-non_shared'
20351 # CC pic flag -KPIC is the default.
20352 ;;
20353 *)
20354 ;;
20355 esac
20356 ;;
20357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20358 case $cc_basename in
20359 KCC*)
20360 # KAI C++ Compiler
20361 lt_prog_compiler_wl_CXX='--backend -Wl,'
20362 lt_prog_compiler_pic_CXX='-fPIC'
20363 ;;
20364 ecpc* )
20365 # old Intel C++ for x86_64 which still supported -KPIC.
20366 lt_prog_compiler_wl_CXX='-Wl,'
20367 lt_prog_compiler_pic_CXX='-KPIC'
20368 lt_prog_compiler_static_CXX='-static'
20369 ;;
20370 icpc* )
20371 # Intel C++, used to be incompatible with GCC.
20372 # ICC 10 doesn't accept -KPIC any more.
20373 lt_prog_compiler_wl_CXX='-Wl,'
20374 lt_prog_compiler_pic_CXX='-fPIC'
20375 lt_prog_compiler_static_CXX='-static'
20376 ;;
20377 pgCC* | pgcpp*)
20378 # Portland Group C++ compiler
20379 lt_prog_compiler_wl_CXX='-Wl,'
20380 lt_prog_compiler_pic_CXX='-fpic'
20381 lt_prog_compiler_static_CXX='-Bstatic'
20382 ;;
20383 cxx*)
20384 # Compaq C++
20385 # Make sure the PIC flag is empty. It appears that all Alpha
20386 # Linux and Compaq Tru64 Unix objects are PIC.
20387 lt_prog_compiler_pic_CXX=
20388 lt_prog_compiler_static_CXX='-non_shared'
20389 ;;
20390 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20391 # IBM XL 8.0, 9.0 on PPC and BlueGene
20392 lt_prog_compiler_wl_CXX='-Wl,'
20393 lt_prog_compiler_pic_CXX='-qpic'
20394 lt_prog_compiler_static_CXX='-qstaticlink'
20395 ;;
20396 *)
20397 case `$CC -V 2>&1 | sed 5q` in
20398 *Sun\ C*)
20399 # Sun C++ 5.9
20400 lt_prog_compiler_pic_CXX='-KPIC'
20401 lt_prog_compiler_static_CXX='-Bstatic'
20402 lt_prog_compiler_wl_CXX='-Qoption ld '
20403 ;;
20404 esac
20405 ;;
20406 esac
20407 ;;
20408 lynxos*)
20409 ;;
20410 m88k*)
20411 ;;
20412 mvs*)
20413 case $cc_basename in
20414 cxx*)
20415 lt_prog_compiler_pic_CXX='-W c,exportall'
20416 ;;
20417 *)
20418 ;;
20419 esac
20420 ;;
20421 netbsd*)
20422 ;;
20423 *qnx* | *nto*)
20424 # QNX uses GNU C++, but need to define -shared option too, otherwise
20425 # it will coredump.
20426 lt_prog_compiler_pic_CXX='-fPIC -shared'
20427 ;;
20428 osf3* | osf4* | osf5*)
20429 case $cc_basename in
20430 KCC*)
20431 lt_prog_compiler_wl_CXX='--backend -Wl,'
20432 ;;
20433 RCC*)
20434 # Rational C++ 2.4.1
20435 lt_prog_compiler_pic_CXX='-pic'
20436 ;;
20437 cxx*)
20438 # Digital/Compaq C++
20439 lt_prog_compiler_wl_CXX='-Wl,'
20440 # Make sure the PIC flag is empty. It appears that all Alpha
20441 # Linux and Compaq Tru64 Unix objects are PIC.
20442 lt_prog_compiler_pic_CXX=
20443 lt_prog_compiler_static_CXX='-non_shared'
20444 ;;
20445 *)
20446 ;;
20447 esac
20448 ;;
20449 psos*)
20450 ;;
20451 solaris*)
20452 case $cc_basename in
20453 CC*)
20454 # Sun C++ 4.2, 5.x and Centerline C++
20455 lt_prog_compiler_pic_CXX='-KPIC'
20456 lt_prog_compiler_static_CXX='-Bstatic'
20457 lt_prog_compiler_wl_CXX='-Qoption ld '
20458 ;;
20459 gcx*)
20460 # Green Hills C++ Compiler
20461 lt_prog_compiler_pic_CXX='-PIC'
20462 ;;
20463 *)
20464 ;;
20465 esac
20466 ;;
20467 sunos4*)
20468 case $cc_basename in
20469 CC*)
20470 # Sun C++ 4.x
20471 lt_prog_compiler_pic_CXX='-pic'
20472 lt_prog_compiler_static_CXX='-Bstatic'
20473 ;;
20474 lcc*)
20475 # Lucid
20476 lt_prog_compiler_pic_CXX='-pic'
20477 ;;
20478 *)
20479 ;;
20480 esac
20481 ;;
20482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20483 case $cc_basename in
20484 CC*)
20485 lt_prog_compiler_wl_CXX='-Wl,'
20486 lt_prog_compiler_pic_CXX='-KPIC'
20487 lt_prog_compiler_static_CXX='-Bstatic'
20488 ;;
20489 esac
20490 ;;
20491 tandem*)
20492 case $cc_basename in
20493 NCC*)
20494 # NonStop-UX NCC 3.20
20495 lt_prog_compiler_pic_CXX='-KPIC'
20496 ;;
20497 *)
20498 ;;
20499 esac
20500 ;;
20501 vxworks*)
20502 ;;
20503 *)
20504 lt_prog_compiler_can_build_shared_CXX=no
20505 ;;
20506 esac
20507 fi
20508
20509 case $host_os in
20510 # For platforms which do not support PIC, -DPIC is meaningless:
20511 *djgpp*)
20512 lt_prog_compiler_pic_CXX=
20513 ;;
20514 *)
20515 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20516 ;;
20517 esac
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20519 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20520
20521
20522
20523 #
20524 # Check to make sure the PIC flag actually works.
20525 #
20526 if test -n "$lt_prog_compiler_pic_CXX"; then
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20528 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20529 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20531 else
20532 lt_cv_prog_compiler_pic_works_CXX=no
20533 ac_outfile=conftest.$ac_objext
20534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20535 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20536 # Insert the option either (1) after the last *FLAGS variable, or
20537 # (2) before a word containing "conftest.", or (3) at the end.
20538 # Note that $ac_compile itself does not contain backslashes and begins
20539 # with a dollar sign (not a hyphen), so the echo should work correctly.
20540 # The option is referenced via a variable to avoid confusing sed.
20541 lt_compile=`echo "$ac_compile" | $SED \
20542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20544 -e 's:$: $lt_compiler_flag:'`
20545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20546 (eval "$lt_compile" 2>conftest.err)
20547 ac_status=$?
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 if (exit $ac_status) && test -s "$ac_outfile"; then
20551 # The compiler can only warn and ignore the option if not recognized
20552 # So say no if there are warnings other than the usual output.
20553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20556 lt_cv_prog_compiler_pic_works_CXX=yes
20557 fi
20558 fi
20559 $RM conftest*
20560
20561 fi
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20563 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20564
20565 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20566 case $lt_prog_compiler_pic_CXX in
20567 "" | " "*) ;;
20568 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20569 esac
20570 else
20571 lt_prog_compiler_pic_CXX=
20572 lt_prog_compiler_can_build_shared_CXX=no
20573 fi
20574
20575 fi
20576
20577
20578
20579 #
20580 # Check to make sure the static flag actually works.
20581 #
20582 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20584 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20585 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20586 $as_echo_n "(cached) " >&6
20587 else
20588 lt_cv_prog_compiler_static_works_CXX=no
20589 save_LDFLAGS="$LDFLAGS"
20590 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20591 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20592 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20593 # The linker can only warn and ignore the option if not recognized
20594 # So say no if there are warnings
20595 if test -s conftest.err; then
20596 # Append any errors to the config.log.
20597 cat conftest.err 1>&5
20598 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20600 if diff conftest.exp conftest.er2 >/dev/null; then
20601 lt_cv_prog_compiler_static_works_CXX=yes
20602 fi
20603 else
20604 lt_cv_prog_compiler_static_works_CXX=yes
20605 fi
20606 fi
20607 $RM -r conftest*
20608 LDFLAGS="$save_LDFLAGS"
20609
20610 fi
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20612 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20613
20614 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20615 :
20616 else
20617 lt_prog_compiler_static_CXX=
20618 fi
20619
20620
20621
20622
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20624 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20625 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20627 else
20628 lt_cv_prog_compiler_c_o_CXX=no
20629 $RM -r conftest 2>/dev/null
20630 mkdir conftest
20631 cd conftest
20632 mkdir out
20633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20634
20635 lt_compiler_flag="-o out/conftest2.$ac_objext"
20636 # Insert the option either (1) after the last *FLAGS variable, or
20637 # (2) before a word containing "conftest.", or (3) at the end.
20638 # Note that $ac_compile itself does not contain backslashes and begins
20639 # with a dollar sign (not a hyphen), so the echo should work correctly.
20640 lt_compile=`echo "$ac_compile" | $SED \
20641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20643 -e 's:$: $lt_compiler_flag:'`
20644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20645 (eval "$lt_compile" 2>out/conftest.err)
20646 ac_status=$?
20647 cat out/conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20650 then
20651 # The compiler can only warn and ignore the option if not recognized
20652 # So say no if there are warnings
20653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20656 lt_cv_prog_compiler_c_o_CXX=yes
20657 fi
20658 fi
20659 chmod u+w . 2>&5
20660 $RM conftest*
20661 # SGI C++ compiler will create directory out/ii_files/ for
20662 # template instantiation
20663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20664 $RM out/* && rmdir out
20665 cd ..
20666 $RM -r conftest
20667 $RM conftest*
20668
20669 fi
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20671 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20672
20673
20674
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20676 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20677 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20678 $as_echo_n "(cached) " >&6
20679 else
20680 lt_cv_prog_compiler_c_o_CXX=no
20681 $RM -r conftest 2>/dev/null
20682 mkdir conftest
20683 cd conftest
20684 mkdir out
20685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20686
20687 lt_compiler_flag="-o out/conftest2.$ac_objext"
20688 # Insert the option either (1) after the last *FLAGS variable, or
20689 # (2) before a word containing "conftest.", or (3) at the end.
20690 # Note that $ac_compile itself does not contain backslashes and begins
20691 # with a dollar sign (not a hyphen), so the echo should work correctly.
20692 lt_compile=`echo "$ac_compile" | $SED \
20693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20695 -e 's:$: $lt_compiler_flag:'`
20696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20697 (eval "$lt_compile" 2>out/conftest.err)
20698 ac_status=$?
20699 cat out/conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20702 then
20703 # The compiler can only warn and ignore the option if not recognized
20704 # So say no if there are warnings
20705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20708 lt_cv_prog_compiler_c_o_CXX=yes
20709 fi
20710 fi
20711 chmod u+w . 2>&5
20712 $RM conftest*
20713 # SGI C++ compiler will create directory out/ii_files/ for
20714 # template instantiation
20715 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20716 $RM out/* && rmdir out
20717 cd ..
20718 $RM -r conftest
20719 $RM conftest*
20720
20721 fi
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20723 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20724
20725
20726
20727
20728 hard_links="nottested"
20729 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20730 # do not overwrite the value of need_locks provided by the user
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20732 $as_echo_n "checking if we can lock with hard links... " >&6; }
20733 hard_links=yes
20734 $RM conftest*
20735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20736 touch conftest.a
20737 ln conftest.a conftest.b 2>&5 || hard_links=no
20738 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20740 $as_echo "$hard_links" >&6; }
20741 if test "$hard_links" = no; then
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20743 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20744 need_locks=warn
20745 fi
20746 else
20747 need_locks=no
20748 fi
20749
20750
20751
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20753 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20754
20755 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20756 case $host_os in
20757 aix[4-9]*)
20758 # If we're using GNU nm, then we don't want the "-C" option.
20759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20760 # Also, AIX nm treats weak defined symbols like other global defined
20761 # symbols, whereas GNU nm marks them as "W".
20762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20763 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'
20764 else
20765 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'
20766 fi
20767 ;;
20768 pw32*)
20769 export_symbols_cmds_CXX="$ltdll_cmds"
20770 ;;
20771 cygwin* | mingw* | cegcc*)
20772 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'
20773 ;;
20774 *)
20775 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20776 ;;
20777 esac
20778 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20781 $as_echo "$ld_shlibs_CXX" >&6; }
20782 test "$ld_shlibs_CXX" = no && can_build_shared=no
20783
20784 with_gnu_ld_CXX=$with_gnu_ld
20785
20786
20787
20788
20789
20790
20791 #
20792 # Do we need to explicitly link libc?
20793 #
20794 case "x$archive_cmds_need_lc_CXX" in
20795 x|xyes)
20796 # Assume -lc should be added
20797 archive_cmds_need_lc_CXX=yes
20798
20799 if test "$enable_shared" = yes && test "$GCC" = yes; then
20800 case $archive_cmds_CXX in
20801 *'~'*)
20802 # FIXME: we may have to deal with multi-command sequences.
20803 ;;
20804 '$CC '*)
20805 # Test whether the compiler implicitly links with -lc since on some
20806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20807 # to ld, don't add -lc before -lgcc.
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20810 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20812 else
20813 $RM conftest*
20814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20815
20816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20817 (eval $ac_compile) 2>&5
20818 ac_status=$?
20819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20820 test $ac_status = 0; } 2>conftest.err; then
20821 soname=conftest
20822 lib=conftest
20823 libobjs=conftest.$ac_objext
20824 deplibs=
20825 wl=$lt_prog_compiler_wl_CXX
20826 pic_flag=$lt_prog_compiler_pic_CXX
20827 compiler_flags=-v
20828 linker_flags=-v
20829 verstring=
20830 output_objdir=.
20831 libname=conftest
20832 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20833 allow_undefined_flag_CXX=
20834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20835 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20836 ac_status=$?
20837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20838 test $ac_status = 0; }
20839 then
20840 lt_cv_archive_cmds_need_lc_CXX=no
20841 else
20842 lt_cv_archive_cmds_need_lc_CXX=yes
20843 fi
20844 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20845 else
20846 cat conftest.err 1>&5
20847 fi
20848 $RM conftest*
20849
20850 fi
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20852 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20853 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20854 ;;
20855 esac
20856 fi
20857 ;;
20858 esac
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20924 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20925
20926 library_names_spec=
20927 libname_spec='lib$name'
20928 soname_spec=
20929 shrext_cmds=".so"
20930 postinstall_cmds=
20931 postuninstall_cmds=
20932 finish_cmds=
20933 finish_eval=
20934 shlibpath_var=
20935 shlibpath_overrides_runpath=unknown
20936 version_type=none
20937 dynamic_linker="$host_os ld.so"
20938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20939 need_lib_prefix=unknown
20940 hardcode_into_libs=no
20941
20942 # when you set need_version to no, make sure it does not cause -set_version
20943 # flags to be left without arguments
20944 need_version=unknown
20945
20946 case $host_os in
20947 aix3*)
20948 version_type=linux
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20950 shlibpath_var=LIBPATH
20951
20952 # AIX 3 has no versioning support, so we append a major version to the name.
20953 soname_spec='${libname}${release}${shared_ext}$major'
20954 ;;
20955
20956 aix[4-9]*)
20957 version_type=linux
20958 need_lib_prefix=no
20959 need_version=no
20960 hardcode_into_libs=yes
20961 if test "$host_cpu" = ia64; then
20962 # AIX 5 supports IA64
20963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20964 shlibpath_var=LD_LIBRARY_PATH
20965 else
20966 # With GCC up to 2.95.x, collect2 would create an import file
20967 # for dependence libraries. The import file would start with
20968 # the line `#! .'. This would cause the generated library to
20969 # depend on `.', always an invalid library. This was fixed in
20970 # development snapshots of GCC prior to 3.0.
20971 case $host_os in
20972 aix4 | aix4.[01] | aix4.[01].*)
20973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20974 echo ' yes '
20975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20976 :
20977 else
20978 can_build_shared=no
20979 fi
20980 ;;
20981 esac
20982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20983 # soname into executable. Probably we can add versioning support to
20984 # collect2, so additional links can be useful in future.
20985 if test "$aix_use_runtimelinking" = yes; then
20986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20987 # instead of lib<name>.a to let people know that these are not
20988 # typical AIX shared libraries.
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990 else
20991 # We preserve .a as extension for shared libraries through AIX4.2
20992 # and later when we are not doing run time linking.
20993 library_names_spec='${libname}${release}.a $libname.a'
20994 soname_spec='${libname}${release}${shared_ext}$major'
20995 fi
20996 shlibpath_var=LIBPATH
20997 fi
20998 ;;
20999
21000 amigaos*)
21001 case $host_cpu in
21002 powerpc)
21003 # Since July 2007 AmigaOS4 officially supports .so libraries.
21004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 ;;
21007 m68k)
21008 library_names_spec='$libname.ixlibrary $libname.a'
21009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21010 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'
21011 ;;
21012 esac
21013 ;;
21014
21015 beos*)
21016 library_names_spec='${libname}${shared_ext}'
21017 dynamic_linker="$host_os ld.so"
21018 shlibpath_var=LIBRARY_PATH
21019 ;;
21020
21021 bsdi[45]*)
21022 version_type=linux
21023 need_version=no
21024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21025 soname_spec='${libname}${release}${shared_ext}$major'
21026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21030 # the default ld.so.conf also contains /usr/contrib/lib and
21031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21032 # libtool to hard-code these into programs
21033 ;;
21034
21035 cygwin* | mingw* | pw32* | cegcc*)
21036 version_type=windows
21037 shrext_cmds=".dll"
21038 need_version=no
21039 need_lib_prefix=no
21040
21041 case $GCC,$host_os in
21042 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21043 library_names_spec='$libname.dll.a'
21044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21045 postinstall_cmds='base_file=`basename \${file}`~
21046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21047 dldir=$destdir/`dirname \$dlpath`~
21048 test -d \$dldir || mkdir -p \$dldir~
21049 $install_prog $dir/$dlname \$dldir/$dlname~
21050 chmod a+x \$dldir/$dlname~
21051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21053 fi'
21054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21055 dlpath=$dir/\$dldll~
21056 $RM \$dlpath'
21057 shlibpath_overrides_runpath=yes
21058
21059 case $host_os in
21060 cygwin*)
21061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21063
21064 ;;
21065 mingw* | cegcc*)
21066 # MinGW DLLs use traditional 'lib' prefix
21067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21068 ;;
21069 pw32*)
21070 # pw32 DLLs use 'pw' prefix rather than 'lib'
21071 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21072 ;;
21073 esac
21074 ;;
21075
21076 *)
21077 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21078 ;;
21079 esac
21080 dynamic_linker='Win32 ld.exe'
21081 # FIXME: first we should search . and the directory the executable is in
21082 shlibpath_var=PATH
21083 ;;
21084
21085 darwin* | rhapsody*)
21086 dynamic_linker="$host_os dyld"
21087 version_type=darwin
21088 need_lib_prefix=no
21089 need_version=no
21090 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21091 soname_spec='${libname}${release}${major}$shared_ext'
21092 shlibpath_overrides_runpath=yes
21093 shlibpath_var=DYLD_LIBRARY_PATH
21094 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21095
21096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21097 ;;
21098
21099 dgux*)
21100 version_type=linux
21101 need_lib_prefix=no
21102 need_version=no
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21104 soname_spec='${libname}${release}${shared_ext}$major'
21105 shlibpath_var=LD_LIBRARY_PATH
21106 ;;
21107
21108 freebsd* | dragonfly*)
21109 # DragonFly does not have aout. When/if they implement a new
21110 # versioning mechanism, adjust this.
21111 if test -x /usr/bin/objformat; then
21112 objformat=`/usr/bin/objformat`
21113 else
21114 case $host_os in
21115 freebsd[23].*) objformat=aout ;;
21116 *) objformat=elf ;;
21117 esac
21118 fi
21119 version_type=freebsd-$objformat
21120 case $version_type in
21121 freebsd-elf*)
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21123 need_version=no
21124 need_lib_prefix=no
21125 ;;
21126 freebsd-*)
21127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21128 need_version=yes
21129 ;;
21130 esac
21131 shlibpath_var=LD_LIBRARY_PATH
21132 case $host_os in
21133 freebsd2.*)
21134 shlibpath_overrides_runpath=yes
21135 ;;
21136 freebsd3.[01]* | freebsdelf3.[01]*)
21137 shlibpath_overrides_runpath=yes
21138 hardcode_into_libs=yes
21139 ;;
21140 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21141 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21142 shlibpath_overrides_runpath=no
21143 hardcode_into_libs=yes
21144 ;;
21145 *) # from 4.6 on, and DragonFly
21146 shlibpath_overrides_runpath=yes
21147 hardcode_into_libs=yes
21148 ;;
21149 esac
21150 ;;
21151
21152 gnu*)
21153 version_type=linux
21154 need_lib_prefix=no
21155 need_version=no
21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21157 soname_spec='${libname}${release}${shared_ext}$major'
21158 shlibpath_var=LD_LIBRARY_PATH
21159 hardcode_into_libs=yes
21160 ;;
21161
21162 haiku*)
21163 version_type=linux
21164 need_lib_prefix=no
21165 need_version=no
21166 dynamic_linker="$host_os runtime_loader"
21167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21168 soname_spec='${libname}${release}${shared_ext}$major'
21169 shlibpath_var=LIBRARY_PATH
21170 shlibpath_overrides_runpath=yes
21171 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21172 hardcode_into_libs=yes
21173 ;;
21174
21175 hpux9* | hpux10* | hpux11*)
21176 # Give a soname corresponding to the major version so that dld.sl refuses to
21177 # link against other versions.
21178 version_type=sunos
21179 need_lib_prefix=no
21180 need_version=no
21181 case $host_cpu in
21182 ia64*)
21183 shrext_cmds='.so'
21184 hardcode_into_libs=yes
21185 dynamic_linker="$host_os dld.so"
21186 shlibpath_var=LD_LIBRARY_PATH
21187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec='${libname}${release}${shared_ext}$major'
21190 if test "X$HPUX_IA64_MODE" = X32; then
21191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21192 else
21193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21194 fi
21195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21196 ;;
21197 hppa*64*)
21198 shrext_cmds='.sl'
21199 hardcode_into_libs=yes
21200 dynamic_linker="$host_os dld.sl"
21201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21204 soname_spec='${libname}${release}${shared_ext}$major'
21205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21207 ;;
21208 *)
21209 shrext_cmds='.sl'
21210 dynamic_linker="$host_os dld.sl"
21211 shlibpath_var=SHLIB_PATH
21212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec='${libname}${release}${shared_ext}$major'
21215 ;;
21216 esac
21217 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21218 postinstall_cmds='chmod 555 $lib'
21219 # or fails outright, so override atomically:
21220 install_override_mode=555
21221 ;;
21222
21223 interix[3-9]*)
21224 version_type=linux
21225 need_lib_prefix=no
21226 need_version=no
21227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21228 soname_spec='${libname}${release}${shared_ext}$major'
21229 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21230 shlibpath_var=LD_LIBRARY_PATH
21231 shlibpath_overrides_runpath=no
21232 hardcode_into_libs=yes
21233 ;;
21234
21235 irix5* | irix6* | nonstopux*)
21236 case $host_os in
21237 nonstopux*) version_type=nonstopux ;;
21238 *)
21239 if test "$lt_cv_prog_gnu_ld" = yes; then
21240 version_type=linux
21241 else
21242 version_type=irix
21243 fi ;;
21244 esac
21245 need_lib_prefix=no
21246 need_version=no
21247 soname_spec='${libname}${release}${shared_ext}$major'
21248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21249 case $host_os in
21250 irix5* | nonstopux*)
21251 libsuff= shlibsuff=
21252 ;;
21253 *)
21254 case $LD in # libtool.m4 will add one of these switches to LD
21255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21256 libsuff= shlibsuff= libmagic=32-bit;;
21257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21258 libsuff=32 shlibsuff=N32 libmagic=N32;;
21259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21260 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21261 *) libsuff= shlibsuff= libmagic=never-match;;
21262 esac
21263 ;;
21264 esac
21265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21266 shlibpath_overrides_runpath=no
21267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21269 hardcode_into_libs=yes
21270 ;;
21271
21272 # No shared lib support for Linux oldld, aout, or coff.
21273 linux*oldld* | linux*aout* | linux*coff*)
21274 dynamic_linker=no
21275 ;;
21276
21277 # This must be Linux ELF.
21278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21279 version_type=linux
21280 need_lib_prefix=no
21281 need_version=no
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21285 shlibpath_var=LD_LIBRARY_PATH
21286 shlibpath_overrides_runpath=no
21287
21288 # Some binutils ld are patched to set DT_RUNPATH
21289 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21290 $as_echo_n "(cached) " >&6
21291 else
21292 lt_cv_shlibpath_overrides_runpath=no
21293 save_LDFLAGS=$LDFLAGS
21294 save_libdir=$libdir
21295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21299
21300 int
21301 main ()
21302 {
21303
21304 ;
21305 return 0;
21306 }
21307 _ACEOF
21308 if ac_fn_cxx_try_link "$LINENO"; then :
21309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21310 lt_cv_shlibpath_overrides_runpath=yes
21311 fi
21312 fi
21313 rm -f core conftest.err conftest.$ac_objext \
21314 conftest$ac_exeext conftest.$ac_ext
21315 LDFLAGS=$save_LDFLAGS
21316 libdir=$save_libdir
21317
21318 fi
21319
21320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21321
21322 # This implies no fast_install, which is unacceptable.
21323 # Some rework will be needed to allow for fast_install
21324 # before this can be enabled.
21325 hardcode_into_libs=yes
21326
21327 # Append ld.so.conf contents to the search path
21328 if test -f /etc/ld.so.conf; then
21329 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' ' '`
21330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21331 fi
21332
21333 # We used to test for /lib/ld.so.1 and disable shared libraries on
21334 # powerpc, because MkLinux only supported shared libraries with the
21335 # GNU dynamic linker. Since this was broken with cross compilers,
21336 # most powerpc-linux boxes support dynamic linking these days and
21337 # people can always --disable-shared, the test was removed, and we
21338 # assume the GNU/Linux dynamic linker is in use.
21339 dynamic_linker='GNU/Linux ld.so'
21340 ;;
21341
21342 netbsd*)
21343 version_type=sunos
21344 need_lib_prefix=no
21345 need_version=no
21346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21349 dynamic_linker='NetBSD (a.out) ld.so'
21350 else
21351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21352 soname_spec='${libname}${release}${shared_ext}$major'
21353 dynamic_linker='NetBSD ld.elf_so'
21354 fi
21355 shlibpath_var=LD_LIBRARY_PATH
21356 shlibpath_overrides_runpath=yes
21357 hardcode_into_libs=yes
21358 ;;
21359
21360 newsos6)
21361 version_type=linux
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=yes
21365 ;;
21366
21367 *nto* | *qnx*)
21368 version_type=qnx
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21372 soname_spec='${libname}${release}${shared_ext}$major'
21373 shlibpath_var=LD_LIBRARY_PATH
21374 shlibpath_overrides_runpath=no
21375 hardcode_into_libs=yes
21376 dynamic_linker='ldqnx.so'
21377 ;;
21378
21379 openbsd*)
21380 version_type=sunos
21381 sys_lib_dlsearch_path_spec="/usr/lib"
21382 need_lib_prefix=no
21383 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21384 case $host_os in
21385 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21386 *) need_version=no ;;
21387 esac
21388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21390 shlibpath_var=LD_LIBRARY_PATH
21391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21392 case $host_os in
21393 openbsd2.[89] | openbsd2.[89].*)
21394 shlibpath_overrides_runpath=no
21395 ;;
21396 *)
21397 shlibpath_overrides_runpath=yes
21398 ;;
21399 esac
21400 else
21401 shlibpath_overrides_runpath=yes
21402 fi
21403 ;;
21404
21405 os2*)
21406 libname_spec='$name'
21407 shrext_cmds=".dll"
21408 need_lib_prefix=no
21409 library_names_spec='$libname${shared_ext} $libname.a'
21410 dynamic_linker='OS/2 ld.exe'
21411 shlibpath_var=LIBPATH
21412 ;;
21413
21414 osf3* | osf4* | osf5*)
21415 version_type=osf
21416 need_lib_prefix=no
21417 need_version=no
21418 soname_spec='${libname}${release}${shared_ext}$major'
21419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21420 shlibpath_var=LD_LIBRARY_PATH
21421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21423 ;;
21424
21425 rdos*)
21426 dynamic_linker=no
21427 ;;
21428
21429 solaris*)
21430 version_type=linux
21431 need_lib_prefix=no
21432 need_version=no
21433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21434 soname_spec='${libname}${release}${shared_ext}$major'
21435 shlibpath_var=LD_LIBRARY_PATH
21436 shlibpath_overrides_runpath=yes
21437 hardcode_into_libs=yes
21438 # ldd complains unless libraries are executable
21439 postinstall_cmds='chmod +x $lib'
21440 ;;
21441
21442 sunos4*)
21443 version_type=sunos
21444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21446 shlibpath_var=LD_LIBRARY_PATH
21447 shlibpath_overrides_runpath=yes
21448 if test "$with_gnu_ld" = yes; then
21449 need_lib_prefix=no
21450 fi
21451 need_version=yes
21452 ;;
21453
21454 sysv4 | sysv4.3*)
21455 version_type=linux
21456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21457 soname_spec='${libname}${release}${shared_ext}$major'
21458 shlibpath_var=LD_LIBRARY_PATH
21459 case $host_vendor in
21460 sni)
21461 shlibpath_overrides_runpath=no
21462 need_lib_prefix=no
21463 runpath_var=LD_RUN_PATH
21464 ;;
21465 siemens)
21466 need_lib_prefix=no
21467 ;;
21468 motorola)
21469 need_lib_prefix=no
21470 need_version=no
21471 shlibpath_overrides_runpath=no
21472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21473 ;;
21474 esac
21475 ;;
21476
21477 sysv4*MP*)
21478 if test -d /usr/nec ;then
21479 version_type=linux
21480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21481 soname_spec='$libname${shared_ext}.$major'
21482 shlibpath_var=LD_LIBRARY_PATH
21483 fi
21484 ;;
21485
21486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21487 version_type=freebsd-elf
21488 need_lib_prefix=no
21489 need_version=no
21490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21491 soname_spec='${libname}${release}${shared_ext}$major'
21492 shlibpath_var=LD_LIBRARY_PATH
21493 shlibpath_overrides_runpath=yes
21494 hardcode_into_libs=yes
21495 if test "$with_gnu_ld" = yes; then
21496 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21497 else
21498 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21499 case $host_os in
21500 sco3.2v5*)
21501 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21502 ;;
21503 esac
21504 fi
21505 sys_lib_dlsearch_path_spec='/usr/lib'
21506 ;;
21507
21508 tpf*)
21509 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21510 version_type=linux
21511 need_lib_prefix=no
21512 need_version=no
21513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21514 shlibpath_var=LD_LIBRARY_PATH
21515 shlibpath_overrides_runpath=no
21516 hardcode_into_libs=yes
21517 ;;
21518
21519 uts4*)
21520 version_type=linux
21521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21522 soname_spec='${libname}${release}${shared_ext}$major'
21523 shlibpath_var=LD_LIBRARY_PATH
21524 ;;
21525
21526 *)
21527 dynamic_linker=no
21528 ;;
21529 esac
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21531 $as_echo "$dynamic_linker" >&6; }
21532 test "$dynamic_linker" = no && can_build_shared=no
21533
21534 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21535 if test "$GCC" = yes; then
21536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21537 fi
21538
21539 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21540 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21541 fi
21542 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21543 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21544 fi
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21584 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21585 hardcode_action_CXX=
21586 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21587 test -n "$runpath_var_CXX" ||
21588 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21589
21590 # We can hardcode non-existent directories.
21591 if test "$hardcode_direct_CXX" != no &&
21592 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21593 # have to relink, otherwise we might link with an installed library
21594 # when we should be linking with a yet-to-be-installed one
21595 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21596 test "$hardcode_minus_L_CXX" != no; then
21597 # Linking always hardcodes the temporary library directory.
21598 hardcode_action_CXX=relink
21599 else
21600 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21601 hardcode_action_CXX=immediate
21602 fi
21603 else
21604 # We cannot hardcode anything, or else we can only hardcode existing
21605 # directories.
21606 hardcode_action_CXX=unsupported
21607 fi
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21609 $as_echo "$hardcode_action_CXX" >&6; }
21610
21611 if test "$hardcode_action_CXX" = relink ||
21612 test "$inherit_rpath_CXX" = yes; then
21613 # Fast installation is not supported
21614 enable_fast_install=no
21615 elif test "$shlibpath_overrides_runpath" = yes ||
21616 test "$enable_shared" = no; then
21617 # Fast installation is not necessary
21618 enable_fast_install=needless
21619 fi
21620
21621
21622
21623
21624
21625
21626
21627 fi # test -n "$compiler"
21628
21629 CC=$lt_save_CC
21630 LDCXX=$LD
21631 LD=$lt_save_LD
21632 GCC=$lt_save_GCC
21633 with_gnu_ld=$lt_save_with_gnu_ld
21634 lt_cv_path_LDCXX=$lt_cv_path_LD
21635 lt_cv_path_LD=$lt_save_path_LD
21636 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21637 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21638 fi # test "$_lt_caught_CXX_error" != yes
21639
21640 ac_ext=cpp
21641 ac_cpp='$CXXCPP $CPPFLAGS'
21642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661 # Only expand once:
21662
21663
21664
21665
21666
21667 # Identify the assembler which will work hand-in-glove with the newly
21668 # built GCC, so that we can examine its features. This is the assembler
21669 # which will be driven by the driver program.
21670 #
21671 # If build != host, and we aren't building gas in-tree, we identify a
21672 # build->target assembler and hope that it will have the same features
21673 # as the host->target assembler we'll be using.
21674 gcc_cv_gas_major_version=
21675 gcc_cv_gas_minor_version=
21676 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21677
21678 if test "${gcc_cv_as+set}" = set; then :
21679
21680 else
21681
21682 if test -x "$DEFAULT_ASSEMBLER"; then
21683 gcc_cv_as="$DEFAULT_ASSEMBLER"
21684 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21685 && test -f ../gas/Makefile \
21686 && test x$build = x$host; then
21687 gcc_cv_as=../gas/as-new$build_exeext
21688 elif test -x as$build_exeext; then
21689 # Build using assembler in the current directory.
21690 gcc_cv_as=./as$build_exeext
21691 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21692 gcc_cv_as="$AS_FOR_TARGET"
21693 else
21694 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21695 set dummy $AS_FOR_TARGET; ac_word=$2
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21697 $as_echo_n "checking for $ac_word... " >&6; }
21698 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 case $gcc_cv_as in
21702 [\\/]* | ?:[\\/]*)
21703 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21704 ;;
21705 *)
21706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21707 for as_dir in $PATH
21708 do
21709 IFS=$as_save_IFS
21710 test -z "$as_dir" && as_dir=.
21711 for ac_exec_ext in '' $ac_executable_extensions; do
21712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21713 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21715 break 2
21716 fi
21717 done
21718 done
21719 IFS=$as_save_IFS
21720
21721 ;;
21722 esac
21723 fi
21724 gcc_cv_as=$ac_cv_path_gcc_cv_as
21725 if test -n "$gcc_cv_as"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21727 $as_echo "$gcc_cv_as" >&6; }
21728 else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 $as_echo "no" >&6; }
21731 fi
21732
21733
21734 fi
21735 fi
21736
21737 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21738
21739 case "$ORIGINAL_AS_FOR_TARGET" in
21740 ./as | ./as$build_exeext) ;;
21741 *) ac_config_files="$ac_config_files as:exec-tool.in"
21742 ;;
21743 esac
21744
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21746 $as_echo_n "checking what assembler to use... " >&6; }
21747 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21748 # Single tree build which includes gas. We want to prefer it
21749 # over whatever linker top-level may have detected, since
21750 # we'll use what we're building after installation anyway.
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21752 $as_echo "newly built gas" >&6; }
21753 in_tree_gas=yes
21754 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21755 for f in $gcc_cv_as_bfd_srcdir/configure \
21756 $gcc_cv_as_gas_srcdir/configure \
21757 $gcc_cv_as_gas_srcdir/configure.in \
21758 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21759 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21760 if test x$gcc_cv_gas_version != x; then
21761 break
21762 fi
21763 done
21764 case $gcc_cv_gas_version in
21765 VERSION=[0-9]*) ;;
21766 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21767 esac
21768 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21769 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21770 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21771 case $gcc_cv_gas_patch_version in
21772 "") gcc_cv_gas_patch_version="0" ;;
21773 esac
21774 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21775 + $gcc_cv_gas_minor_version \) \* 1000 \
21776 + $gcc_cv_gas_patch_version`
21777
21778 in_tree_gas_is_elf=no
21779 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21780 || (grep 'obj_format = multi' ../gas/Makefile \
21781 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21782 then
21783 in_tree_gas_is_elf=yes
21784 fi
21785 else
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21787 $as_echo "$gcc_cv_as" >&6; }
21788 in_tree_gas=no
21789 fi
21790
21791 default_ld=
21792 # Check whether --enable-ld was given.
21793 if test "${enable_ld+set}" = set; then :
21794 enableval=$enable_ld; case "${enableval}" in
21795 no)
21796 default_ld=ld.gold
21797 ;;
21798 esac
21799 fi
21800
21801
21802 install_gold_as_default=no
21803 # Check whether --enable-gold was given.
21804 if test "${enable_gold+set}" = set; then :
21805 enableval=$enable_gold; case "${enableval}" in
21806 default)
21807 install_gold_as_default=yes
21808 ;;
21809 yes)
21810 if test x${default_ld} != x; then
21811 install_gold_as_default=yes
21812 fi
21813 ;;
21814 no)
21815 ;;
21816 *)
21817 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21818 ;;
21819 esac
21820 fi
21821
21822
21823 # Identify the linker which will work hand-in-glove with the newly
21824 # built GCC, so that we can examine its features. This is the linker
21825 # which will be driven by the driver program.
21826 #
21827 # If build != host, and we aren't building gas in-tree, we identify a
21828 # build->target linker and hope that it will have the same features
21829 # as the host->target linker we'll be using.
21830 gcc_cv_gld_major_version=
21831 gcc_cv_gld_minor_version=
21832 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21833 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21834 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21835
21836 if test "${gcc_cv_ld+set}" = set; then :
21837
21838 else
21839
21840 if test -x "$DEFAULT_LINKER"; then
21841 gcc_cv_ld="$DEFAULT_LINKER"
21842 elif test $install_gold_as_default = yes \
21843 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21844 && test -f ../gold/Makefile \
21845 && test x$build = x$host; then
21846 gcc_cv_ld=../gold/ld-new$build_exeext
21847 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21848 && test -f ../ld/Makefile \
21849 && test x$build = x$host; then
21850 gcc_cv_ld=../ld/ld-new$build_exeext
21851 elif test -x collect-ld$build_exeext; then
21852 # Build using linker in the current directory.
21853 gcc_cv_ld=./collect-ld$build_exeext
21854 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21855 gcc_cv_ld="$LD_FOR_TARGET"
21856 else
21857 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21858 set dummy $LD_FOR_TARGET; ac_word=$2
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21860 $as_echo_n "checking for $ac_word... " >&6; }
21861 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 case $gcc_cv_ld in
21865 [\\/]* | ?:[\\/]*)
21866 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21867 ;;
21868 *)
21869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21870 for as_dir in $PATH
21871 do
21872 IFS=$as_save_IFS
21873 test -z "$as_dir" && as_dir=.
21874 for ac_exec_ext in '' $ac_executable_extensions; do
21875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21876 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21878 break 2
21879 fi
21880 done
21881 done
21882 IFS=$as_save_IFS
21883
21884 ;;
21885 esac
21886 fi
21887 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21888 if test -n "$gcc_cv_ld"; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21890 $as_echo "$gcc_cv_ld" >&6; }
21891 else
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893 $as_echo "no" >&6; }
21894 fi
21895
21896
21897 fi
21898 fi
21899
21900 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21901 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21902 # if the PLUGIN_LD is set ld-new, just have it as ld
21903 # as that is the installed named.
21904 if test x$PLUGIN_LD_SUFFIX = xld-new \
21905 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21906 PLUGIN_LD_SUFFIX=ld
21907 fi
21908
21909 # Check whether --with-plugin-ld was given.
21910 if test "${with_plugin_ld+set}" = set; then :
21911 withval=$with_plugin_ld; if test x"$withval" != x; then
21912 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21913 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21914 fi
21915 fi
21916
21917
21918
21919 cat >>confdefs.h <<_ACEOF
21920 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21921 _ACEOF
21922
21923
21924 # Check to see if we are using gold instead of ld
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21926 $as_echo_n "checking whether we are using gold... " >&6; }
21927 ld_is_gold=no
21928 if test x$gcc_cv_ld != x; then
21929 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21930 | grep "GNU gold" > /dev/null; then
21931 ld_is_gold=yes
21932 fi
21933 fi
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21935 $as_echo "$ld_is_gold" >&6; }
21936
21937 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21938
21939 case "$ORIGINAL_LD_FOR_TARGET" in
21940 ./collect-ld | ./collect-ld$build_exeext) ;;
21941 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21942 ;;
21943 esac
21944
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21946 $as_echo_n "checking what linker to use... " >&6; }
21947 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21948 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21949 # Single tree build which includes ld. We want to prefer it
21950 # over whatever linker top-level may have detected, since
21951 # we'll use what we're building after installation anyway.
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21953 $as_echo "newly built ld" >&6; }
21954 in_tree_ld=yes
21955 in_tree_ld_is_elf=no
21956 if (grep 'EMUL = .*elf' ../ld/Makefile \
21957 || grep 'EMUL = .*linux' ../ld/Makefile \
21958 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21959 in_tree_ld_is_elf=yes
21960 elif test "$ld_is_gold" = yes; then
21961 in_tree_ld_is_elf=yes
21962 fi
21963 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
21964 do
21965 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21966 if test x$gcc_cv_gld_version != x; then
21967 break
21968 fi
21969 done
21970 case $gcc_cv_gld_version in
21971 VERSION=[0-9]*) ;;
21972 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21973 esac
21974 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21975 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21976 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21977 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21978 else
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21980 $as_echo "$gcc_cv_ld" >&6; }
21981 in_tree_ld=no
21982 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21983 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21984 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21985 fi
21986
21987
21988
21989
21990 # Figure out what nm we will be using.
21991 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21992 if test "${gcc_cv_nm+set}" = set; then :
21993
21994 else
21995
21996 if test -f $gcc_cv_binutils_srcdir/configure.in \
21997 && test -f ../binutils/Makefile \
21998 && test x$build = x$host; then
21999 gcc_cv_nm=../binutils/nm-new$build_exeext
22000 elif test -x nm$build_exeext; then
22001 gcc_cv_nm=./nm$build_exeext
22002 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22003 gcc_cv_nm="$NM_FOR_TARGET"
22004 else
22005 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22006 set dummy $NM_FOR_TARGET; ac_word=$2
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22008 $as_echo_n "checking for $ac_word... " >&6; }
22009 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22010 $as_echo_n "(cached) " >&6
22011 else
22012 case $gcc_cv_nm in
22013 [\\/]* | ?:[\\/]*)
22014 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22015 ;;
22016 *)
22017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22018 for as_dir in $PATH
22019 do
22020 IFS=$as_save_IFS
22021 test -z "$as_dir" && as_dir=.
22022 for ac_exec_ext in '' $ac_executable_extensions; do
22023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22024 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22026 break 2
22027 fi
22028 done
22029 done
22030 IFS=$as_save_IFS
22031
22032 ;;
22033 esac
22034 fi
22035 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22036 if test -n "$gcc_cv_nm"; then
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22038 $as_echo "$gcc_cv_nm" >&6; }
22039 else
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22042 fi
22043
22044
22045 fi
22046 fi
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22049 $as_echo_n "checking what nm to use... " >&6; }
22050 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22051 # Single tree build which includes binutils.
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22053 $as_echo "newly built nm" >&6; }
22054 in_tree_nm=yes
22055 else
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22057 $as_echo "$gcc_cv_nm" >&6; }
22058 in_tree_nm=no
22059 fi
22060
22061 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22062
22063 case "$ORIGINAL_NM_FOR_TARGET" in
22064 ./nm | ./nm$build_exeext) ;;
22065 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22066 ;;
22067 esac
22068
22069
22070 # Figure out what objdump we will be using.
22071 if test "${gcc_cv_objdump+set}" = set; then :
22072
22073 else
22074
22075 if test -f $gcc_cv_binutils_srcdir/configure.in \
22076 && test -f ../binutils/Makefile \
22077 && test x$build = x$host; then
22078 # Single tree build which includes binutils.
22079 gcc_cv_objdump=../binutils/objdump$build_exeext
22080 elif test -x objdump$build_exeext; then
22081 gcc_cv_objdump=./objdump$build_exeext
22082 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22083 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22084 else
22085 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22086 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22088 $as_echo_n "checking for $ac_word... " >&6; }
22089 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22090 $as_echo_n "(cached) " >&6
22091 else
22092 case $gcc_cv_objdump in
22093 [\\/]* | ?:[\\/]*)
22094 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22095 ;;
22096 *)
22097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22098 for as_dir in $PATH
22099 do
22100 IFS=$as_save_IFS
22101 test -z "$as_dir" && as_dir=.
22102 for ac_exec_ext in '' $ac_executable_extensions; do
22103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22104 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22106 break 2
22107 fi
22108 done
22109 done
22110 IFS=$as_save_IFS
22111
22112 ;;
22113 esac
22114 fi
22115 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22116 if test -n "$gcc_cv_objdump"; then
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22118 $as_echo "$gcc_cv_objdump" >&6; }
22119 else
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22121 $as_echo "no" >&6; }
22122 fi
22123
22124
22125 fi
22126 fi
22127
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22129 $as_echo_n "checking what objdump to use... " >&6; }
22130 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22131 # Single tree build which includes binutils.
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22133 $as_echo "newly built objdump" >&6; }
22134 elif test x$gcc_cv_objdump = x; then
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22136 $as_echo "not found" >&6; }
22137 else
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22139 $as_echo "$gcc_cv_objdump" >&6; }
22140 fi
22141
22142 # Figure out what readelf we will be using.
22143 if test "${gcc_cv_readelf+set}" = set; then :
22144
22145 else
22146
22147 if test -f $gcc_cv_binutils_srcdir/configure.in \
22148 && test -f ../binutils/Makefile \
22149 && test x$build = x$host; then
22150 # Single tree build which includes binutils.
22151 gcc_cv_readelf=../binutils/readelf$build_exeext
22152 elif test -x readelf$build_exeext; then
22153 gcc_cv_readelf=./readelf$build_exeext
22154 else
22155 # Extract the first word of "readelf", so it can be a program name with args.
22156 set dummy readelf; ac_word=$2
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22158 $as_echo_n "checking for $ac_word... " >&6; }
22159 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22160 $as_echo_n "(cached) " >&6
22161 else
22162 case $gcc_cv_readelf in
22163 [\\/]* | ?:[\\/]*)
22164 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22165 ;;
22166 *)
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22169 do
22170 IFS=$as_save_IFS
22171 test -z "$as_dir" && as_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22174 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22176 break 2
22177 fi
22178 done
22179 done
22180 IFS=$as_save_IFS
22181
22182 ;;
22183 esac
22184 fi
22185 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22186 if test -n "$gcc_cv_readelf"; then
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22188 $as_echo "$gcc_cv_readelf" >&6; }
22189 else
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22191 $as_echo "no" >&6; }
22192 fi
22193
22194
22195 fi
22196 fi
22197
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22199 $as_echo_n "checking what readelf to use... " >&6; }
22200 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22201 # Single tree build which includes binutils.
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22203 $as_echo "newly built readelf" >&6; }
22204 elif test x$gcc_cv_readelf = x; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22206 $as_echo "not found" >&6; }
22207 else
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22209 $as_echo "$gcc_cv_readelf" >&6; }
22210 fi
22211
22212 # Figure out what assembler alignment features are present.
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22214 $as_echo_n "checking assembler flags... " >&6; }
22215 if test "${gcc_cv_as_flags+set}" = set; then :
22216 $as_echo_n "(cached) " >&6
22217 else
22218 case "$target" in
22219 i[34567]86-*-linux*)
22220 gcc_cv_as_flags=--32
22221 ;;
22222 x86_64-*-linux-gnux32)
22223 gcc_cv_as_flags=--x32
22224 ;;
22225 x86_64-*-linux*)
22226 gcc_cv_as_flags=--64
22227 ;;
22228 powerpc*-*-darwin*)
22229 gcc_cv_as_flags="-arch ppc"
22230 ;;
22231 *)
22232 gcc_cv_as_flags=" "
22233 ;;
22234 esac
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22237 $as_echo "$gcc_cv_as_flags" >&6; }
22238
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22240 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22241 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22242 $as_echo_n "(cached) " >&6
22243 else
22244 gcc_cv_as_balign_and_p2align=no
22245 if test $in_tree_gas = yes; then
22246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22247 then gcc_cv_as_balign_and_p2align=yes
22248 fi
22249 elif test x$gcc_cv_as != x; then
22250 $as_echo '.balign 4
22251 .p2align 2' > conftest.s
22252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22257 test $ac_status = 0; }; }
22258 then
22259 gcc_cv_as_balign_and_p2align=yes
22260 else
22261 echo "configure: failed program was" >&5
22262 cat conftest.s >&5
22263 fi
22264 rm -f conftest.o conftest.s
22265 fi
22266 fi
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22268 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22269 if test $gcc_cv_as_balign_and_p2align = yes; then
22270
22271 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22272
22273 fi
22274
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22276 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22277 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 gcc_cv_as_max_skip_p2align=no
22281 if test $in_tree_gas = yes; then
22282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22283 then gcc_cv_as_max_skip_p2align=yes
22284 fi
22285 elif test x$gcc_cv_as != x; then
22286 $as_echo '.p2align 4,,7' > conftest.s
22287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22292 test $ac_status = 0; }; }
22293 then
22294 gcc_cv_as_max_skip_p2align=yes
22295 else
22296 echo "configure: failed program was" >&5
22297 cat conftest.s >&5
22298 fi
22299 rm -f conftest.o conftest.s
22300 fi
22301 fi
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22303 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22304 if test $gcc_cv_as_max_skip_p2align = yes; then
22305
22306 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22307
22308 fi
22309
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22311 $as_echo_n "checking assembler for .literal16... " >&6; }
22312 if test "${gcc_cv_as_literal16+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22314 else
22315 gcc_cv_as_literal16=no
22316 if test $in_tree_gas = yes; then
22317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22318 then gcc_cv_as_literal16=yes
22319 fi
22320 elif test x$gcc_cv_as != x; then
22321 $as_echo '.literal16' > conftest.s
22322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }; }
22328 then
22329 gcc_cv_as_literal16=yes
22330 else
22331 echo "configure: failed program was" >&5
22332 cat conftest.s >&5
22333 fi
22334 rm -f conftest.o conftest.s
22335 fi
22336 fi
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22338 $as_echo "$gcc_cv_as_literal16" >&6; }
22339 if test $gcc_cv_as_literal16 = yes; then
22340
22341 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22342
22343 fi
22344
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22346 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22347 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22348 $as_echo_n "(cached) " >&6
22349 else
22350 gcc_cv_as_subsection_m1=no
22351 if test $in_tree_gas = yes; then
22352 if test $in_tree_gas_is_elf = yes \
22353 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22354 then gcc_cv_as_subsection_m1=yes
22355 fi
22356 elif test x$gcc_cv_as != x; then
22357 $as_echo 'conftest_label1: .word 0
22358 .subsection -1
22359 conftest_label2: .word 0
22360 .previous' > conftest.s
22361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22366 test $ac_status = 0; }; }
22367 then
22368 if test x$gcc_cv_nm != x; then
22369 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22370 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22371 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22372 then :
22373 else gcc_cv_as_subsection_m1=yes
22374 fi
22375 rm -f conftest.nm1 conftest.nm2
22376 fi
22377 else
22378 echo "configure: failed program was" >&5
22379 cat conftest.s >&5
22380 fi
22381 rm -f conftest.o conftest.s
22382 fi
22383 fi
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22385 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22386 if test $gcc_cv_as_subsection_m1 = yes; then
22387
22388 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22389
22390 fi
22391
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22393 $as_echo_n "checking assembler for .weak... " >&6; }
22394 if test "${gcc_cv_as_weak+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 gcc_cv_as_weak=no
22398 if test $in_tree_gas = yes; then
22399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22400 then gcc_cv_as_weak=yes
22401 fi
22402 elif test x$gcc_cv_as != x; then
22403 $as_echo ' .weak foobar' > conftest.s
22404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22410 then
22411 gcc_cv_as_weak=yes
22412 else
22413 echo "configure: failed program was" >&5
22414 cat conftest.s >&5
22415 fi
22416 rm -f conftest.o conftest.s
22417 fi
22418 fi
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22420 $as_echo "$gcc_cv_as_weak" >&6; }
22421 if test $gcc_cv_as_weak = yes; then
22422
22423 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22424
22425 fi
22426
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22428 $as_echo_n "checking assembler for .weakref... " >&6; }
22429 if test "${gcc_cv_as_weakref+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22431 else
22432 gcc_cv_as_weakref=no
22433 if test $in_tree_gas = yes; then
22434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22435 then gcc_cv_as_weakref=yes
22436 fi
22437 elif test x$gcc_cv_as != x; then
22438 $as_echo ' .weakref foobar, barfnot' > conftest.s
22439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22445 then
22446 gcc_cv_as_weakref=yes
22447 else
22448 echo "configure: failed program was" >&5
22449 cat conftest.s >&5
22450 fi
22451 rm -f conftest.o conftest.s
22452 fi
22453 fi
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22455 $as_echo "$gcc_cv_as_weakref" >&6; }
22456 if test $gcc_cv_as_weakref = yes; then
22457
22458 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22459
22460 fi
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22463 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22464 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22466 else
22467 gcc_cv_as_nsubspa_comdat=no
22468 if test $in_tree_gas = yes; then
22469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22470 then gcc_cv_as_nsubspa_comdat=yes
22471 fi
22472 elif test x$gcc_cv_as != x; then
22473 $as_echo ' .SPACE $TEXT$
22474 .NSUBSPA $CODE$,COMDAT' > conftest.s
22475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22480 test $ac_status = 0; }; }
22481 then
22482 gcc_cv_as_nsubspa_comdat=yes
22483 else
22484 echo "configure: failed program was" >&5
22485 cat conftest.s >&5
22486 fi
22487 rm -f conftest.o conftest.s
22488 fi
22489 fi
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22491 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22492 if test $gcc_cv_as_nsubspa_comdat = yes; then
22493
22494 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22495
22496 fi
22497
22498 # .hidden needs to be supported in both the assembler and the linker,
22499 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22500 # This is irritatingly difficult to feature test for; we have to check the
22501 # date string after the version number. If we've got an in-tree
22502 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22503 # to be safe.
22504 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22506 $as_echo_n "checking assembler for .hidden... " >&6; }
22507 if test "${gcc_cv_as_hidden+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22509 else
22510 gcc_cv_as_hidden=no
22511 if test $in_tree_gas = yes; then
22512 if test $in_tree_gas_is_elf = yes \
22513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22514 then gcc_cv_as_hidden=yes
22515 fi
22516 elif test x$gcc_cv_as != x; then
22517 $as_echo ' .hidden foobar
22518 foobar:' > conftest.s
22519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22525 then
22526 gcc_cv_as_hidden=yes
22527 else
22528 echo "configure: failed program was" >&5
22529 cat conftest.s >&5
22530 fi
22531 rm -f conftest.o conftest.s
22532 fi
22533 fi
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22535 $as_echo "$gcc_cv_as_hidden" >&6; }
22536
22537 case "${target}" in
22538 *-*-darwin*)
22539 # Darwin as has some visibility support, though with a different syntax.
22540 gcc_cv_as_hidden=yes
22541 ;;
22542 esac
22543
22544 # gnu_indirect_function type is an extension proposed at
22545 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22546 # selection of function implementation
22547 # Check whether --enable-gnu-indirect-function was given.
22548 if test "${enable_gnu_indirect_function+set}" = set; then :
22549 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22550 yes | no) ;;
22551 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22552 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22553 esac
22554 else
22555 enable_gnu_indirect_function="$default_gnu_indirect_function"
22556 fi
22557
22558
22559 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22563 _ACEOF
22564
22565
22566
22567 if test $in_tree_ld != yes ; then
22568 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22569 if echo "$ld_ver" | grep GNU > /dev/null; then
22570 if test x"$ld_is_gold" = xyes; then
22571 # GNU gold --version looks like this:
22572 #
22573 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22574 #
22575 # We extract the binutils version which is more familiar and specific
22576 # than the gold version.
22577 ld_vers=`echo $ld_ver | sed -n \
22578 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22579 else
22580 # GNU ld --version looks like this:
22581 #
22582 # GNU ld (GNU Binutils) 2.21.51.20110225
22583 ld_vers=`echo $ld_ver | sed -n \
22584 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22585 fi
22586 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'`
22587 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22588 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22589 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22590 else
22591 case "${target}" in
22592 *-*-solaris2*)
22593 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22594 # format.
22595 #
22596 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22597 # /usr/ccs/bin/ld has been configured.
22598 ld_ver=`$gcc_cv_ld -V 2>&1`
22599 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22600 ld_vers=`echo $ld_ver | sed -n \
22601 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22602 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22603 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22604 fi
22605 ;;
22606 esac
22607 fi
22608 fi
22609
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22611 $as_echo_n "checking linker for .hidden support... " >&6; }
22612 if test "${gcc_cv_ld_hidden+set}" = set; then :
22613 $as_echo_n "(cached) " >&6
22614 else
22615 if test $in_tree_ld = yes ; then
22616 gcc_cv_ld_hidden=no
22617 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 \
22618 && test $in_tree_ld_is_elf = yes; then
22619 gcc_cv_ld_hidden=yes
22620 fi
22621 else
22622 gcc_cv_ld_hidden=yes
22623 if test x"$ld_is_gold" = xyes; then
22624 :
22625 elif echo "$ld_ver" | grep GNU > /dev/null; then
22626 case "${target}" in
22627 mmix-knuth-mmixware)
22628 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22629 gcc_cv_ld_hidden=no
22630 ;;
22631 esac
22632 if test 0"$ld_date" -lt 20020404; then
22633 if test -n "$ld_date"; then
22634 # If there was date string, but was earlier than 2002-04-04, fail
22635 gcc_cv_ld_hidden=no
22636 elif test -z "$ld_vers"; then
22637 # If there was no date string nor ld version number, something is wrong
22638 gcc_cv_ld_hidden=no
22639 else
22640 test -z "$ld_vers_patch" && ld_vers_patch=0
22641 if test "$ld_vers_major" -lt 2; then
22642 gcc_cv_ld_hidden=no
22643 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22644 gcc_cv_ld_hidden="no"
22645 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22646 gcc_cv_ld_hidden=no
22647 fi
22648 fi
22649 fi
22650 else
22651 case "${target}" in
22652 *-*-darwin*)
22653 # Darwin ld has some visibility support.
22654 gcc_cv_ld_hidden=yes
22655 ;;
22656 hppa64*-*-hpux* | ia64*-*-hpux*)
22657 gcc_cv_ld_hidden=yes
22658 ;;
22659 *-*-solaris2.1[0-9]*)
22660 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22661 # .symbolic was only added in Solaris 9 12/02.
22662 gcc_cv_ld_hidden=yes
22663 ;;
22664 *)
22665 gcc_cv_ld_hidden=no
22666 ;;
22667 esac
22668 fi
22669 fi
22670 fi
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22672 $as_echo "$gcc_cv_ld_hidden" >&6; }
22673 libgcc_visibility=no
22674
22675
22676 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22677 libgcc_visibility=yes
22678
22679 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22680
22681 fi
22682
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22684 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22685 gcc_cv_ld_ro_rw_mix=unknown
22686 if test $in_tree_ld = yes ; then
22687 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 \
22688 && test $in_tree_ld_is_elf = yes; then
22689 gcc_cv_ld_ro_rw_mix=read-write
22690 fi
22691 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22692 echo '.section myfoosect, "a"' > conftest1.s
22693 echo '.section myfoosect, "aw"' > conftest2.s
22694 echo '.byte 1' >> conftest2.s
22695 echo '.section myfoosect, "a"' > conftest3.s
22696 echo '.byte 0' >> conftest3.s
22697 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22698 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22699 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22700 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22701 conftest2.o conftest3.o > /dev/null 2>&1; then
22702 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22703 | sed -e '/myfoosect/!d' -e N`
22704 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22705 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22706 gcc_cv_ld_ro_rw_mix=read-only
22707 else
22708 gcc_cv_ld_ro_rw_mix=read-write
22709 fi
22710 fi
22711 fi
22712 rm -f conftest.* conftest[123].*
22713 fi
22714 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22715
22716 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22717
22718 fi
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22720 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22721
22722 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22723 case "${target}" in
22724 *-*-solaris2*)
22725 #
22726 # Solaris 2 ld -V output looks like this for a regular version:
22727 #
22728 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22729 #
22730 # but test versions add stuff at the end:
22731 #
22732 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22733 #
22734 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22735 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22736 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22737 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22738 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22739 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22740 fi
22741 ;;
22742 esac
22743 fi
22744
22745 # Check whether --enable-initfini-array was given.
22746 if test "${enable_initfini_array+set}" = set; then :
22747 enableval=$enable_initfini_array;
22748 else
22749
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22751 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22752 if test "${gcc_cv_initfini_array+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22754 else
22755 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22756 case "${target}" in
22757 ia64-*)
22758 if test "$cross_compiling" = yes; then :
22759 gcc_cv_initfini_array=no
22760 else
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h. */
22763
22764 #ifndef __ELF__
22765 #error Not an ELF OS
22766 #endif
22767 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22768 if it can be used. */
22769 static int x = -1;
22770 int main (void) { return x; }
22771 int foo (void) { x = 0; }
22772 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22773
22774 _ACEOF
22775 if ac_fn_cxx_try_run "$LINENO"; then :
22776 gcc_cv_initfini_array=yes
22777 else
22778 gcc_cv_initfini_array=no
22779 fi
22780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22781 conftest.$ac_objext conftest.beam conftest.$ac_ext
22782 fi
22783 ;;
22784 *)
22785 gcc_cv_initfini_array=no
22786 if test $in_tree_ld = yes ; then
22787 if test "$gcc_cv_gld_major_version" -eq 2 \
22788 -a "$gcc_cv_gld_minor_version" -ge 22 \
22789 -o "$gcc_cv_gld_major_version" -gt 2 \
22790 && test $in_tree_ld_is_elf = yes; then
22791 gcc_cv_initfini_array=yes
22792 fi
22793 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22794 cat > conftest.s <<\EOF
22795 .section .dtors,"a",%progbits
22796 .balign 4
22797 .byte 'A', 'A', 'A', 'A'
22798 .section .ctors,"a",%progbits
22799 .balign 4
22800 .byte 'B', 'B', 'B', 'B'
22801 .section .fini_array.65530,"a",%progbits
22802 .balign 4
22803 .byte 'C', 'C', 'C', 'C'
22804 .section .init_array.65530,"a",%progbits
22805 .balign 4
22806 .byte 'D', 'D', 'D', 'D'
22807 .section .dtors.64528,"a",%progbits
22808 .balign 4
22809 .byte 'E', 'E', 'E', 'E'
22810 .section .ctors.64528,"a",%progbits
22811 .balign 4
22812 .byte 'F', 'F', 'F', 'F'
22813 .section .fini_array.01005,"a",%progbits
22814 .balign 4
22815 .byte 'G', 'G', 'G', 'G'
22816 .section .init_array.01005,"a",%progbits
22817 .balign 4
22818 .byte 'H', 'H', 'H', 'H'
22819 .text
22820 .globl _start
22821 _start:
22822 EOF
22823 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22824 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22825 && $gcc_cv_objdump -s -j .init_array conftest \
22826 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22827 && $gcc_cv_objdump -s -j .fini_array conftest \
22828 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22829 gcc_cv_initfini_array=yes
22830 fi
22831 rm -f conftest conftest.*
22832 fi
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22835
22836 #ifndef __ELF__
22837 # error Not an ELF OS
22838 #endif
22839 #include <stdlib.h>
22840 #if defined __GLIBC_PREREQ
22841 # if __GLIBC_PREREQ (2, 4)
22842 # else
22843 # error GLIBC 2.4 required
22844 # endif
22845 #else
22846 # if defined __sun__ && defined __svr4__
22847 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22848 # else
22849 # error The C library not known to support .init_array/.fini_array
22850 # endif
22851 #endif
22852
22853 _ACEOF
22854 if ac_fn_cxx_try_cpp "$LINENO"; then :
22855
22856 else
22857 gcc_cv_initfini_array=no
22858 fi
22859 rm -f conftest.err conftest.$ac_ext;;
22860 esac
22861 else
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22863 $as_echo_n "checking cross compile... guessing... " >&6; }
22864 gcc_cv_initfini_array=no
22865 fi
22866 fi
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22868 $as_echo "$gcc_cv_initfini_array" >&6; }
22869 enable_initfini_array=$gcc_cv_initfini_array
22870
22871 fi
22872
22873 if test $enable_initfini_array = yes; then
22874
22875 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22876
22877 fi
22878
22879 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22881 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22882 if test "${gcc_cv_as_leb128+set}" = set; then :
22883 $as_echo_n "(cached) " >&6
22884 else
22885 gcc_cv_as_leb128=no
22886 if test $in_tree_gas = yes; then
22887 if test $in_tree_gas_is_elf = yes \
22888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22889 then gcc_cv_as_leb128=yes
22890 fi
22891 elif test x$gcc_cv_as != x; then
22892 $as_echo ' .data
22893 .uleb128 L2 - L1
22894 L1:
22895 .uleb128 1280
22896 .sleb128 -1010
22897 L2:' > conftest.s
22898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22903 test $ac_status = 0; }; }
22904 then
22905 # GAS versions before 2.11 do not support uleb128,
22906 # despite appearing to.
22907 # ??? There exists an elf-specific test that will crash
22908 # the assembler. Perhaps it's better to figure out whether
22909 # arbitrary sections are supported and try the test.
22910 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22911 if echo "$as_ver" | grep GNU > /dev/null; then
22912 as_vers=`echo $as_ver | sed -n \
22913 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22914 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22915 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22916 if test $as_major -eq 2 && test $as_minor -lt 11
22917 then :
22918 else gcc_cv_as_leb128=yes
22919 fi
22920 fi
22921 else
22922 echo "configure: failed program was" >&5
22923 cat conftest.s >&5
22924 fi
22925 rm -f conftest.o conftest.s
22926 fi
22927 fi
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22929 $as_echo "$gcc_cv_as_leb128" >&6; }
22930 if test $gcc_cv_as_leb128 = yes; then
22931
22932 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22933
22934 fi
22935
22936 # Check if we have assembler support for unwind directives.
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22938 $as_echo_n "checking assembler for cfi directives... " >&6; }
22939 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22941 else
22942 gcc_cv_as_cfi_directive=no
22943 if test x$gcc_cv_as != x; then
22944 $as_echo ' .text
22945 .cfi_startproc
22946 .cfi_offset 0, 0
22947 .cfi_same_value 1
22948 .cfi_def_cfa 1, 2
22949 .cfi_escape 1, 2, 3, 4, 5
22950 .cfi_endproc' > conftest.s
22951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22956 test $ac_status = 0; }; }
22957 then
22958 case "$target" in
22959 *-*-solaris*)
22960 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22961 # read-only and read-write sections, we need to make sure that the
22962 # assembler used emits read-write .eh_frame sections.
22963 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22964 if test "x$gcc_cv_objdump" != x; then
22965 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22966 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22967 gcc_cv_as_cfi_directive=no
22968 else
22969 case "$target" in
22970 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22971 # On Solaris/x86, make sure that GCC and assembler agree on using
22972 # read-only .eh_frame sections for 64-bit.
22973 if test x$gas = xyes; then
22974 as_ix86_64_opt="--64"
22975 else
22976 as_ix86_64_opt="-xarch=amd64"
22977 fi
22978 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22979 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22980 sed -e /.eh_frame/!d -e N | \
22981 grep READONLY > /dev/null; then
22982 gcc_cv_as_cfi_directive=yes
22983 else
22984 gcc_cv_as_cfi_directive=no
22985 fi
22986 ;;
22987 *)
22988 gcc_cv_as_cfi_directive=yes
22989 ;;
22990 esac
22991 fi
22992 else
22993 # no objdump, err on the side of caution
22994 gcc_cv_as_cfi_directive=no
22995 fi
22996 else
22997 gcc_cv_as_cfi_directive=yes
22998 fi
22999 ;;
23000 *-*-*)
23001 gcc_cv_as_cfi_directive=yes
23002 ;;
23003 esac
23004 else
23005 echo "configure: failed program was" >&5
23006 cat conftest.s >&5
23007 fi
23008 rm -f conftest.o conftest.s
23009 fi
23010 fi
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23012 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23013
23014 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23016 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23017 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23018 $as_echo_n "(cached) " >&6
23019 else
23020 gcc_cv_as_cfi_advance_working=no
23021 if test x$gcc_cv_as != x; then
23022 $as_echo ' .text
23023 .cfi_startproc
23024 .cfi_adjust_cfa_offset 64
23025 .skip 75040, 0
23026 .cfi_adjust_cfa_offset 128
23027 .cfi_endproc' > conftest.s
23028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23033 test $ac_status = 0; }; }
23034 then
23035
23036 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23037 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23038 gcc_cv_as_cfi_advance_working=yes
23039 fi
23040
23041 else
23042 echo "configure: failed program was" >&5
23043 cat conftest.s >&5
23044 fi
23045 rm -f conftest.o conftest.s
23046 fi
23047 fi
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23049 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23050
23051 else
23052 # no objdump, err on the side of caution
23053 gcc_cv_as_cfi_advance_working=no
23054 fi
23055
23056
23057 cat >>confdefs.h <<_ACEOF
23058 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23059 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23060 _ACEOF
23061
23062
23063
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23065 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23066 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
23068 else
23069 gcc_cv_as_cfi_personality_directive=no
23070 if test x$gcc_cv_as != x; then
23071 $as_echo ' .text
23072 .cfi_startproc
23073 .cfi_personality 0, symbol
23074 .cfi_endproc' > conftest.s
23075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23080 test $ac_status = 0; }; }
23081 then
23082 gcc_cv_as_cfi_personality_directive=yes
23083 else
23084 echo "configure: failed program was" >&5
23085 cat conftest.s >&5
23086 fi
23087 rm -f conftest.o conftest.s
23088 fi
23089 fi
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23091 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23092
23093
23094 cat >>confdefs.h <<_ACEOF
23095 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23096 then echo 1; else echo 0; fi`
23097 _ACEOF
23098
23099
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23101 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23102 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23103 $as_echo_n "(cached) " >&6
23104 else
23105 gcc_cv_as_cfi_sections_directive=no
23106 if test x$gcc_cv_as != x; then
23107 $as_echo ' .text
23108 .cfi_sections .debug_frame, .eh_frame
23109 .cfi_startproc
23110 .cfi_endproc' > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 case $target_os in
23119 win32 | pe | cygwin* | mingw32* | uwin*)
23120 # Need to check that we generated the correct relocation for the
23121 # .debug_frame section. This was fixed for binutils 2.21.
23122 gcc_cv_as_cfi_sections_directive=no
23123 if test "x$gcc_cv_objdump" != x; then
23124 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23125 grep secrel > /dev/null; then
23126 gcc_cv_as_cfi_sections_directive=yes
23127 fi
23128 fi
23129 ;;
23130 *)
23131 gcc_cv_as_cfi_sections_directive=yes
23132 ;;
23133 esac
23134 else
23135 echo "configure: failed program was" >&5
23136 cat conftest.s >&5
23137 fi
23138 rm -f conftest.o conftest.s
23139 fi
23140 fi
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23142 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23143
23144
23145
23146 cat >>confdefs.h <<_ACEOF
23147 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23148 then echo 1; else echo 0; fi`
23149 _ACEOF
23150
23151
23152 # GAS versions up to and including 2.11.0 may mis-optimize
23153 # .eh_frame data.
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23155 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23156 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23158 else
23159 gcc_cv_as_eh_frame=no
23160 if test $in_tree_gas = yes; then
23161 if test $in_tree_gas_is_elf = yes \
23162 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23163 then gcc_cv_as_eh_frame=yes
23164 fi
23165 elif test x$gcc_cv_as != x; then
23166 $as_echo ' .text
23167 .LFB1:
23168 .4byte 0
23169 .L1:
23170 .4byte 0
23171 .LFE1:
23172 .section .eh_frame,"aw",@progbits
23173 __FRAME_BEGIN__:
23174 .4byte .LECIE1-.LSCIE1
23175 .LSCIE1:
23176 .4byte 0x0
23177 .byte 0x1
23178 .ascii "z\0"
23179 .byte 0x1
23180 .byte 0x78
23181 .byte 0x1a
23182 .byte 0x0
23183 .byte 0x4
23184 .4byte 1
23185 .p2align 1
23186 .LECIE1:
23187 .LSFDE1:
23188 .4byte .LEFDE1-.LASFDE1
23189 .LASFDE1:
23190 .4byte .LASFDE1-__FRAME_BEGIN__
23191 .4byte .LFB1
23192 .4byte .LFE1-.LFB1
23193 .byte 0x4
23194 .4byte .LFE1-.LFB1
23195 .byte 0x4
23196 .4byte .L1-.LFB1
23197 .LEFDE1:' > conftest.s
23198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23200 (eval $ac_try) 2>&5
23201 ac_status=$?
23202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23203 test $ac_status = 0; }; }
23204 then
23205 cat > conftest.lit <<EOF
23206 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23207 0010 01000000 12000000 18000000 00000000 ................
23208 0020 08000000 04080000 0044 .........D
23209 EOF
23210 cat > conftest.big <<EOF
23211 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23212 0010 00000001 00000012 00000018 00000000 ................
23213 0020 00000008 04000000 0844 .........D
23214 EOF
23215 # If the assembler didn't choke, and we can objdump,
23216 # and we got the correct data, then succeed.
23217 # The text in the here-document typically retains its unix-style line
23218 # endings, while the output of objdump will use host line endings.
23219 # Therefore, use diff -b for the comparisons.
23220 if test x$gcc_cv_objdump != x \
23221 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23222 | tail -3 > conftest.got \
23223 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23224 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23225 then
23226 gcc_cv_as_eh_frame=yes
23227 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23229 (eval $ac_try) 2>&5
23230 ac_status=$?
23231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23232 test $ac_status = 0; }; }; then
23233 gcc_cv_as_eh_frame=buggy
23234 else
23235 # Uh oh, what do we do now?
23236 gcc_cv_as_eh_frame=no
23237 fi
23238 else
23239 echo "configure: failed program was" >&5
23240 cat conftest.s >&5
23241 fi
23242 rm -f conftest.o conftest.s
23243 fi
23244 fi
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23246 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23247
23248
23249 if test $gcc_cv_as_eh_frame = buggy; then
23250
23251 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23252
23253 fi
23254
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23256 $as_echo_n "checking assembler for section merging support... " >&6; }
23257 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23258 $as_echo_n "(cached) " >&6
23259 else
23260 gcc_cv_as_shf_merge=no
23261 if test $in_tree_gas = yes; then
23262 if test $in_tree_gas_is_elf = yes \
23263 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23264 then gcc_cv_as_shf_merge=yes
23265 fi
23266 elif test x$gcc_cv_as != x; then
23267 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23273 test $ac_status = 0; }; }
23274 then
23275 gcc_cv_as_shf_merge=yes
23276 else
23277 echo "configure: failed program was" >&5
23278 cat conftest.s >&5
23279 fi
23280 rm -f conftest.o conftest.s
23281 fi
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23284 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23285
23286 if test $gcc_cv_as_shf_merge = no; then
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23288 $as_echo_n "checking assembler for section merging support... " >&6; }
23289 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23292 gcc_cv_as_shf_merge=no
23293 if test $in_tree_gas = yes; then
23294 if test $in_tree_gas_is_elf = yes \
23295 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23296 then gcc_cv_as_shf_merge=yes
23297 fi
23298 elif test x$gcc_cv_as != x; then
23299 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23305 test $ac_status = 0; }; }
23306 then
23307 gcc_cv_as_shf_merge=yes
23308 else
23309 echo "configure: failed program was" >&5
23310 cat conftest.s >&5
23311 fi
23312 rm -f conftest.o conftest.s
23313 fi
23314 fi
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23316 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23317
23318 fi
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23322 _ACEOF
23323
23324
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23326 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23327 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23328 $as_echo_n "(cached) " >&6
23329 else
23330 gcc_cv_as_comdat_group=no
23331 if test $in_tree_gas = yes; then
23332 if test $in_tree_gas_is_elf = yes \
23333 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23334 then gcc_cv_as_comdat_group=yes
23335 fi
23336 elif test x$gcc_cv_as != x; then
23337 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23343 test $ac_status = 0; }; }
23344 then
23345 gcc_cv_as_comdat_group=yes
23346 else
23347 echo "configure: failed program was" >&5
23348 cat conftest.s >&5
23349 fi
23350 rm -f conftest.o conftest.s
23351 fi
23352 fi
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23354 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23355
23356 if test $gcc_cv_as_comdat_group = yes; then
23357 gcc_cv_as_comdat_group_percent=no
23358 gcc_cv_as_comdat_group_group=no
23359 else
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23361 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23362 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 gcc_cv_as_comdat_group_percent=no
23366 if test $in_tree_gas = yes; then
23367 if test $in_tree_gas_is_elf = yes \
23368 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23369 then gcc_cv_as_comdat_group_percent=yes
23370 fi
23371 elif test x$gcc_cv_as != x; then
23372 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23379 then
23380 gcc_cv_as_comdat_group_percent=yes
23381 else
23382 echo "configure: failed program was" >&5
23383 cat conftest.s >&5
23384 fi
23385 rm -f conftest.o conftest.s
23386 fi
23387 fi
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23389 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23390
23391 if test $gcc_cv_as_comdat_group_percent = yes; then
23392 gcc_cv_as_comdat_group_group=no
23393 else
23394 case "${target}" in
23395 # Sun as uses a completely different syntax.
23396 *-*-solaris2*)
23397 case "${target}" in
23398 sparc*-*-solaris2*)
23399 conftest_s='
23400 .group foo,".text%foo",#comdat
23401 .section ".text%foo", #alloc,#execinstr,#progbits
23402 .globl foo
23403 foo:
23404 '
23405 ;;
23406 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23407 conftest_s='
23408 .group foo,.text%foo,#comdat
23409 .section .text%foo, "ax", @progbits
23410 .globl foo
23411 foo:
23412 '
23413 ;;
23414 esac
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23416 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23417 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23418 $as_echo_n "(cached) " >&6
23419 else
23420 gcc_cv_as_comdat_group_group=no
23421 if test x$gcc_cv_as != x; then
23422 $as_echo "$conftest_s" > conftest.s
23423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23428 test $ac_status = 0; }; }
23429 then
23430 gcc_cv_as_comdat_group_group=yes
23431 else
23432 echo "configure: failed program was" >&5
23433 cat conftest.s >&5
23434 fi
23435 rm -f conftest.o conftest.s
23436 fi
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23439 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23440
23441 ;;
23442 esac
23443 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23444 gcc_cv_as_comdat_group_group=no
23445 fi
23446 fi
23447 fi
23448 if test x"$ld_is_gold" = xyes; then
23449 comdat_group=yes
23450 elif test $in_tree_ld = yes ; then
23451 comdat_group=no
23452 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 \
23453 && test $in_tree_ld_is_elf = yes; then
23454 comdat_group=yes
23455 fi
23456 elif echo "$ld_ver" | grep GNU > /dev/null; then
23457 comdat_group=yes
23458 if test 0"$ld_date" -lt 20050308; then
23459 if test -n "$ld_date"; then
23460 # If there was date string, but was earlier than 2005-03-08, fail
23461 comdat_group=no
23462 elif test "$ld_vers_major" -lt 2; then
23463 comdat_group=no
23464 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23465 comdat_group=no
23466 fi
23467 fi
23468 else
23469 case "${target}" in
23470 *-*-solaris2.1[1-9]*)
23471 comdat_group=no
23472 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23473 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23474 # version 1.688.
23475 #
23476 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23477 # least ld version 1.2267.
23478 if test "$ld_vers_major" -gt 1; then
23479 comdat_group=yes
23480 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23481 comdat_group=yes
23482 elif test "$ld_vers_minor" -ge 2267; then
23483 comdat_group=yes
23484 fi
23485 ;;
23486 *)
23487 # Assume linkers other than GNU ld don't support COMDAT group.
23488 comdat_group=no
23489 ;;
23490 esac
23491 fi
23492 # Allow overriding the automatic COMDAT group tests above.
23493 # Check whether --enable-comdat was given.
23494 if test "${enable_comdat+set}" = set; then :
23495 enableval=$enable_comdat; comdat_group="$enable_comdat"
23496 fi
23497
23498 if test $comdat_group = no; then
23499 gcc_cv_as_comdat_group=no
23500 gcc_cv_as_comdat_group_percent=no
23501 gcc_cv_as_comdat_group_group=no
23502 fi
23503
23504 cat >>confdefs.h <<_ACEOF
23505 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23506 || test $gcc_cv_as_comdat_group_percent = yes \
23507 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23508 _ACEOF
23509
23510
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23512 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23513 if test "${gcc_cv_as_discriminator+set}" = set; then :
23514 $as_echo_n "(cached) " >&6
23515 else
23516 gcc_cv_as_discriminator=no
23517 if test $in_tree_gas = yes; then
23518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23519 then gcc_cv_as_discriminator=yes
23520 fi
23521 elif test x$gcc_cv_as != x; then
23522 $as_echo ' .text
23523 .file 1 "conf.c"
23524 .loc 1 1 0 discriminator 1' > conftest.s
23525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23527 (eval $ac_try) 2>&5
23528 ac_status=$?
23529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23530 test $ac_status = 0; }; }
23531 then
23532 gcc_cv_as_discriminator=yes
23533 else
23534 echo "configure: failed program was" >&5
23535 cat conftest.s >&5
23536 fi
23537 rm -f conftest.o conftest.s
23538 fi
23539 fi
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23541 $as_echo "$gcc_cv_as_discriminator" >&6; }
23542 if test $gcc_cv_as_discriminator = yes; then
23543
23544 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23545
23546 fi
23547
23548 # Thread-local storage - the check is heavily parameterized.
23549 conftest_s=
23550 tls_first_major=
23551 tls_first_minor=
23552 tls_as_opt=
23553 case "$target" in
23554 alpha*-*-*)
23555 conftest_s='
23556 .section ".tdata","awT",@progbits
23557 foo: .long 25
23558 .text
23559 ldq $27,__tls_get_addr($29) !literal!1
23560 lda $16,foo($29) !tlsgd!1
23561 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23562 ldq $27,__tls_get_addr($29) !literal!2
23563 lda $16,foo($29) !tlsldm!2
23564 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23565 ldq $1,foo($29) !gotdtprel
23566 ldah $2,foo($29) !dtprelhi
23567 lda $3,foo($2) !dtprello
23568 lda $4,foo($29) !dtprel
23569 ldq $1,foo($29) !gottprel
23570 ldah $2,foo($29) !tprelhi
23571 lda $3,foo($2) !tprello
23572 lda $4,foo($29) !tprel'
23573 tls_first_major=2
23574 tls_first_minor=13
23575 tls_as_opt=--fatal-warnings
23576 ;;
23577 cris-*-*|crisv32-*-*)
23578 conftest_s='
23579 .section ".tdata","awT",@progbits
23580 x: .long 25
23581 .text
23582 move.d x:IE,$r10
23583 nop'
23584 tls_first_major=2
23585 tls_first_minor=20
23586 tls_as_opt=--fatal-warnings
23587 ;;
23588 frv*-*-*)
23589 conftest_s='
23590 .section ".tdata","awT",@progbits
23591 x: .long 25
23592 .text
23593 call #gettlsoff(x)'
23594 tls_first_major=2
23595 tls_first_minor=14
23596 ;;
23597 hppa*-*-linux*)
23598 conftest_s='
23599 t1: .reg %r20
23600 t2: .reg %r21
23601 gp: .reg %r19
23602 .section ".tdata","awT",@progbits
23603 foo: .long 25
23604 .text
23605 .align 4
23606 addil LT%foo-$tls_gdidx$,gp
23607 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23608 b __tls_get_addr
23609 nop
23610 addil LT%foo-$tls_ldidx$,gp
23611 b __tls_get_addr
23612 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23613 addil LR%foo-$tls_dtpoff$,%ret0
23614 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23615 mfctl %cr27,%t1
23616 addil LT%foo-$tls_ieoff$,gp
23617 ldw RT%foo-$tls_ieoff$(%r1),%t2
23618 add %t1,%t2,%t3
23619 mfctl %cr27,%t1
23620 addil LR%foo-$tls_leoff$,%t1
23621 ldo RR%foo-$tls_leoff$(%r1),%t2'
23622 tls_first_major=2
23623 tls_first_minor=15
23624 tls_as_opt=--fatal-warnings
23625 ;;
23626 arm*-*-*)
23627 conftest_s='
23628 .section ".tdata","awT",%progbits
23629 foo: .long 25
23630 .text
23631 .word foo(gottpoff)
23632 .word foo(tpoff)
23633 .word foo(tlsgd)
23634 .word foo(tlsldm)
23635 .word foo(tlsldo)'
23636 tls_first_major=2
23637 tls_first_minor=17
23638 ;;
23639 i[34567]86-*-* | x86_64-*-*)
23640 case "$target" in
23641 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23642 on_solaris=yes
23643 ;;
23644 *)
23645 on_solaris=no
23646 ;;
23647 esac
23648 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23649 conftest_s='
23650 .section .tdata,"awt",@progbits'
23651 tls_first_major=0
23652 tls_first_minor=0
23653 tls_section_flag=t
23654
23655 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23656
23657 else
23658 conftest_s='
23659 .section ".tdata","awT",@progbits'
23660 tls_first_major=2
23661 tls_first_minor=14
23662 tls_section_flag=T
23663 tls_as_opt="--fatal-warnings"
23664 fi
23665 case "$target" in
23666 i[34567]86-*-*)
23667 conftest_s="$conftest_s
23668 foo: .long 25
23669 .text
23670 movl %gs:0, %eax
23671 leal foo@tlsgd(,%ebx,1), %eax
23672 leal foo@tlsldm(%ebx), %eax
23673 leal foo@dtpoff(%eax), %edx
23674 movl foo@gottpoff(%ebx), %eax
23675 subl foo@gottpoff(%ebx), %eax
23676 addl foo@gotntpoff(%ebx), %eax
23677 movl foo@indntpoff, %eax
23678 movl \$foo@tpoff, %eax
23679 subl \$foo@tpoff, %eax
23680 leal foo@ntpoff(%ecx), %eax"
23681 ;;
23682 x86_64-*-*)
23683 if test x$on_solaris = xyes; then
23684 case $gas_flag in
23685 yes) tls_as_opt="$tls_as_opt --64" ;;
23686 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23687 esac
23688 fi
23689 conftest_s="$conftest_s
23690 foo: .long 25
23691 .text
23692 movq %fs:0, %rax
23693 leaq foo@tlsgd(%rip), %rdi
23694 leaq foo@tlsld(%rip), %rdi
23695 leaq foo@dtpoff(%rax), %rdx
23696 movq foo@gottpoff(%rip), %rax
23697 movq \$foo@tpoff, %rax"
23698 ;;
23699 esac
23700 ;;
23701 ia64-*-*)
23702 conftest_s='
23703 .section ".tdata","awT",@progbits
23704 foo: data8 25
23705 .text
23706 addl r16 = @ltoff(@dtpmod(foo#)), gp
23707 addl r17 = @ltoff(@dtprel(foo#)), gp
23708 addl r18 = @ltoff(@tprel(foo#)), gp
23709 addl r19 = @dtprel(foo#), gp
23710 adds r21 = @dtprel(foo#), r13
23711 movl r23 = @dtprel(foo#)
23712 addl r20 = @tprel(foo#), gp
23713 adds r22 = @tprel(foo#), r13
23714 movl r24 = @tprel(foo#)'
23715 tls_first_major=2
23716 tls_first_minor=13
23717 tls_as_opt=--fatal-warnings
23718 ;;
23719 microblaze*-*-*)
23720 conftest_s='
23721 .section .tdata,"awT",@progbits
23722 x:
23723 .word 2
23724 .text
23725 addik r5,r20,x@TLSGD
23726 addik r5,r20,x@TLSLDM'
23727 tls_first_major=2
23728 tls_first_minor=20
23729 tls_as_opt='--fatal-warnings'
23730 ;;
23731 mips*-*-*)
23732 conftest_s='
23733 .section .tdata,"awT",@progbits
23734 x:
23735 .word 2
23736 .text
23737 addiu $4, $28, %tlsgd(x)
23738 addiu $4, $28, %tlsldm(x)
23739 lui $4, %dtprel_hi(x)
23740 addiu $4, $4, %dtprel_lo(x)
23741 lw $4, %gottprel(x)($28)
23742 lui $4, %tprel_hi(x)
23743 addiu $4, $4, %tprel_lo(x)'
23744 tls_first_major=2
23745 tls_first_minor=16
23746 tls_as_opt='-32 --fatal-warnings'
23747 ;;
23748 m68k-*-*)
23749 conftest_s='
23750 .section .tdata,"awT",@progbits
23751 x:
23752 .word 2
23753 .text
23754 foo:
23755 move.l x@TLSGD(%a5),%a0
23756 move.l x@TLSLDM(%a5),%a0
23757 move.l x@TLSLDO(%a5),%a0
23758 move.l x@TLSIE(%a5),%a0
23759 move.l x@TLSLE(%a5),%a0'
23760 tls_first_major=2
23761 tls_first_minor=19
23762 tls_as_opt='--fatal-warnings'
23763 ;;
23764 nios2-*-*)
23765 conftest_s='
23766 .section ".tdata","awT",@progbits'
23767 tls_first_major=2
23768 tls_first_minor=23
23769 tls_as_opt="--fatal-warnings"
23770 ;;
23771 aarch64*-*-*)
23772 conftest_s='
23773 .section ".tdata","awT",%progbits
23774 foo: .long 25
23775 .text
23776 adrp x0, :tlsgd:x
23777 add x0, x0, #:tlsgd_lo12:x
23778 bl __tls_get_addr
23779 nop'
23780 tls_first_major=2
23781 tls_first_minor=20
23782 tls_as_opt='--fatal-warnings'
23783 ;;
23784 powerpc-ibm-aix*)
23785 conftest_s='
23786 .extern __get_tpointer
23787 .toc
23788 LC..1:
23789 .tc a[TC],a[TL]@le
23790 .csect .text[PR]
23791 .tlstest:
23792 lwz 9,LC..1(2)
23793 bla __get_tpointer
23794 lwzx 3,9,3
23795 .globl a
23796 .csect a[TL],4
23797 a:
23798 .space 4'
23799 tls_first_major=0
23800 tls_first_minor=0
23801 ;;
23802 powerpc64*-*-*)
23803 conftest_s='
23804 .section ".tdata","awT",@progbits
23805 .align 3
23806 ld0: .space 8
23807 ld1: .space 8
23808 x1: .space 8
23809 x2: .space 8
23810 x3: .space 8
23811 .text
23812 addi 3,2,ld0@got@tlsgd
23813 bl .__tls_get_addr
23814 nop
23815 addi 3,2,ld1@toc
23816 bl .__tls_get_addr
23817 nop
23818 addi 3,2,x1@got@tlsld
23819 bl .__tls_get_addr
23820 nop
23821 addi 9,3,x1@dtprel
23822 bl .__tls_get_addr
23823 nop
23824 addis 9,3,x2@dtprel@ha
23825 addi 9,9,x2@dtprel@l
23826 bl .__tls_get_addr
23827 nop
23828 ld 9,x3@got@dtprel(2)
23829 add 9,9,3
23830 bl .__tls_get_addr
23831 nop'
23832 tls_first_major=2
23833 tls_first_minor=14
23834 tls_as_opt="-a64 --fatal-warnings"
23835 ;;
23836 powerpc*-*-*)
23837 conftest_s='
23838 .section ".tdata","awT",@progbits
23839 .align 2
23840 ld0: .space 4
23841 ld1: .space 4
23842 x1: .space 4
23843 x2: .space 4
23844 x3: .space 4
23845 .text
23846 addi 3,31,ld0@got@tlsgd
23847 bl __tls_get_addr
23848 addi 3,31,x1@got@tlsld
23849 bl __tls_get_addr
23850 addi 9,3,x1@dtprel
23851 addis 9,3,x2@dtprel@ha
23852 addi 9,9,x2@dtprel@l
23853 lwz 9,x3@got@tprel(31)
23854 add 9,9,x@tls
23855 addi 9,2,x1@tprel
23856 addis 9,2,x2@tprel@ha
23857 addi 9,9,x2@tprel@l'
23858 tls_first_major=2
23859 tls_first_minor=14
23860 tls_as_opt="-a32 --fatal-warnings"
23861 ;;
23862 s390-*-*)
23863 conftest_s='
23864 .section ".tdata","awT",@progbits
23865 foo: .long 25
23866 .text
23867 .long foo@TLSGD
23868 .long foo@TLSLDM
23869 .long foo@DTPOFF
23870 .long foo@NTPOFF
23871 .long foo@GOTNTPOFF
23872 .long foo@INDNTPOFF
23873 l %r1,foo@GOTNTPOFF(%r12)
23874 l %r1,0(%r1):tls_load:foo
23875 bas %r14,0(%r1,%r13):tls_gdcall:foo
23876 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23877 tls_first_major=2
23878 tls_first_minor=14
23879 tls_as_opt="-m31 --fatal-warnings"
23880 ;;
23881 s390x-*-*)
23882 conftest_s='
23883 .section ".tdata","awT",@progbits
23884 foo: .long 25
23885 .text
23886 .quad foo@TLSGD
23887 .quad foo@TLSLDM
23888 .quad foo@DTPOFF
23889 .quad foo@NTPOFF
23890 .quad foo@GOTNTPOFF
23891 lg %r1,foo@GOTNTPOFF(%r12)
23892 larl %r1,foo@INDNTPOFF
23893 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23894 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23895 tls_first_major=2
23896 tls_first_minor=14
23897 tls_as_opt="-m64 -Aesame --fatal-warnings"
23898 ;;
23899 sh-*-* | sh[34]-*-*)
23900 conftest_s='
23901 .section ".tdata","awT",@progbits
23902 foo: .long 25
23903 .text
23904 .long foo@TLSGD
23905 .long foo@TLSLDM
23906 .long foo@DTPOFF
23907 .long foo@GOTTPOFF
23908 .long foo@TPOFF'
23909 tls_first_major=2
23910 tls_first_minor=13
23911 tls_as_opt=--fatal-warnings
23912 ;;
23913 sparc*-*-*)
23914 case "$target" in
23915 sparc*-sun-solaris2.*)
23916 on_solaris=yes
23917 ;;
23918 *)
23919 on_solaris=no
23920 ;;
23921 esac
23922 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23923 conftest_s='
23924 .section ".tdata",#alloc,#write,#tls'
23925 tls_first_major=0
23926 tls_first_minor=0
23927 else
23928 conftest_s='
23929 .section ".tdata","awT",@progbits'
23930 tls_first_major=2
23931 tls_first_minor=14
23932 tls_as_opt="-32 --fatal-warnings"
23933 fi
23934 conftest_s="$conftest_s
23935 foo: .long 25
23936 .text
23937 sethi %tgd_hi22(foo), %o0
23938 add %o0, %tgd_lo10(foo), %o1
23939 add %l7, %o1, %o0, %tgd_add(foo)
23940 call __tls_get_addr, %tgd_call(foo)
23941 sethi %tldm_hi22(foo), %l1
23942 add %l1, %tldm_lo10(foo), %l2
23943 add %l7, %l2, %o0, %tldm_add(foo)
23944 call __tls_get_addr, %tldm_call(foo)
23945 sethi %tldo_hix22(foo), %l3
23946 xor %l3, %tldo_lox10(foo), %l4
23947 add %o0, %l4, %l5, %tldo_add(foo)
23948 sethi %tie_hi22(foo), %o3
23949 add %o3, %tie_lo10(foo), %o3
23950 ld [%l7 + %o3], %o2, %tie_ld(foo)
23951 add %g7, %o2, %o4, %tie_add(foo)
23952 sethi %tle_hix22(foo), %l1
23953 xor %l1, %tle_lox10(foo), %o5
23954 ld [%g7 + %o5], %o1"
23955 ;;
23956 tilepro*-*-*)
23957 conftest_s='
23958 .section ".tdata","awT",@progbits
23959 foo: .long 25
23960 .text
23961 addli r0, zero, tls_gd(foo)
23962 auli r0, zero, tls_gd_ha16(foo)
23963 addli r0, r0, tls_gd_lo16(foo)
23964 jal __tls_get_addr
23965 addli r0, zero, tls_ie(foo)
23966 auli r0, r0, tls_ie_ha16(foo)
23967 addli r0, r0, tls_ie_lo16(foo)'
23968 tls_first_major=2
23969 tls_first_minor=22
23970 tls_as_opt="--fatal-warnings"
23971 ;;
23972 tilegx*-*-*)
23973 conftest_s='
23974 .section ".tdata","awT",@progbits
23975 foo: .long 25
23976 .text
23977 shl16insli r0, zero, hw0_last_tls_gd(foo)
23978 shl16insli r0, zero, hw1_last_tls_gd(foo)
23979 shl16insli r0, r0, hw0_tls_gd(foo)
23980 jal __tls_get_addr
23981 shl16insli r0, zero, hw1_last_tls_ie(foo)
23982 shl16insli r0, r0, hw0_tls_ie(foo)'
23983 tls_first_major=2
23984 tls_first_minor=22
23985 tls_as_opt="--fatal-warnings"
23986 ;;
23987 xtensa*-*-*)
23988 conftest_s='
23989 .section ".tdata","awT",@progbits
23990 foo: .long 25
23991 .text
23992 movi a8, foo@TLSFUNC
23993 movi a10, foo@TLSARG
23994 callx8.tls a8, foo@TLSCALL'
23995 tls_first_major=2
23996 tls_first_minor=19
23997 ;;
23998 esac
23999 set_have_as_tls=no
24000 if test "x$enable_tls" = xno ; then
24001 : # TLS explicitly disabled.
24002 elif test "x$enable_tls" = xyes ; then
24003 set_have_as_tls=yes # TLS explicitly enabled.
24004 elif test -z "$tls_first_major"; then
24005 : # If we don't have a check, assume no support.
24006 else
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24008 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24009 if test "${gcc_cv_as_tls+set}" = set; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 gcc_cv_as_tls=no
24013 if test $in_tree_gas = yes; then
24014 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24015 then gcc_cv_as_tls=yes
24016 fi
24017 elif test x$gcc_cv_as != x; then
24018 $as_echo "$conftest_s" > conftest.s
24019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024 test $ac_status = 0; }; }
24025 then
24026 gcc_cv_as_tls=yes
24027 else
24028 echo "configure: failed program was" >&5
24029 cat conftest.s >&5
24030 fi
24031 rm -f conftest.o conftest.s
24032 fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24035 $as_echo "$gcc_cv_as_tls" >&6; }
24036 if test $gcc_cv_as_tls = yes; then
24037 set_have_as_tls=yes
24038 fi
24039 fi
24040 if test $set_have_as_tls = yes ; then
24041
24042 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24043
24044 fi
24045
24046 # Target-specific assembler checks.
24047
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24049 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24050 gcc_cv_ld_static_dynamic=no
24051 gcc_cv_ld_static_option='-Bstatic'
24052 gcc_cv_ld_dynamic_option='-Bdynamic'
24053 if test $in_tree_ld = yes ; then
24054 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
24055 gcc_cv_ld_static_dynamic=yes
24056 fi
24057 elif test x$gcc_cv_ld != x; then
24058 # Check if linker supports -Bstatic/-Bdynamic option
24059 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24060 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24061 gcc_cv_ld_static_dynamic=yes
24062 else
24063 case "$target" in
24064 # AIX ld uses -b flags
24065 *-*-aix4.[23]* | *-*-aix[5-9]*)
24066 gcc_cv_ld_static_dynamic=yes
24067 gcc_cv_ld_static_option="-bstatic"
24068 gcc_cv_ld_dynamic_option="-bdynamic"
24069 ;;
24070 # HP-UX ld uses -a flags to select between shared and archive.
24071 *-*-hpux*)
24072 if test x"$gnu_ld" = xno; then
24073 gcc_cv_ld_static_dynamic=yes
24074 gcc_cv_ld_static_option="-aarchive_shared"
24075 gcc_cv_ld_dynamic_option="-adefault"
24076 fi
24077 ;;
24078 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24079 *-*-solaris2*)
24080 gcc_cv_ld_static_dynamic=yes
24081 ;;
24082 esac
24083 fi
24084 fi
24085 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24086
24087 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24088
24089
24090 cat >>confdefs.h <<_ACEOF
24091 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24092 _ACEOF
24093
24094
24095 cat >>confdefs.h <<_ACEOF
24096 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24097 _ACEOF
24098
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24101 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24102
24103 if test x"$demangler_in_ld" = xyes; then
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24105 $as_echo_n "checking linker --demangle support... " >&6; }
24106 gcc_cv_ld_demangle=no
24107 if test $in_tree_ld = yes; then
24108 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 \
24109 gcc_cv_ld_demangle=yes
24110 fi
24111 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24112 # Check if the GNU linker supports --demangle option
24113 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24114 gcc_cv_ld_demangle=yes
24115 fi
24116 fi
24117 if test x"$gcc_cv_ld_demangle" = xyes; then
24118
24119 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24120
24121 fi
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24123 $as_echo "$gcc_cv_ld_demangle" >&6; }
24124 fi
24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24127 $as_echo_n "checking linker plugin support... " >&6; }
24128 gcc_cv_lto_plugin=0
24129 if test -f liblto_plugin.la; then
24130 save_ld_ver="$ld_ver"
24131 save_ld_vers_major="$ld_vers_major"
24132 save_ld_vers_minor="$ld_vers_minor"
24133 save_ld_is_gold="$ld_is_gold"
24134
24135 ld_is_gold=no
24136
24137 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24138 ld_ver="GNU ld"
24139 # FIXME: ld_is_gold?
24140 ld_vers_major="$gcc_cv_gld_major_version"
24141 ld_vers_minor="$gcc_cv_gld_minor_version"
24142 else
24143 # Determine plugin linker version.
24144 # FIXME: Partial duplicate from above, generalize.
24145 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24146 if echo "$ld_ver" | grep GNU > /dev/null; then
24147 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24148 ld_is_gold=yes
24149 ld_vers=`echo $ld_ver | sed -n \
24150 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24151 else
24152 ld_vers=`echo $ld_ver | sed -n \
24153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24154 fi
24155 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24156 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24157 fi
24158 fi
24159
24160 # Determine plugin support.
24161 if echo "$ld_ver" | grep GNU > /dev/null; then
24162 # Require GNU ld or gold 2.21+ for plugin support by default.
24163 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24164 gcc_cv_lto_plugin=2
24165 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24166 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24167 gcc_cv_lto_plugin=1
24168 fi
24169 fi
24170
24171 ld_ver="$save_ld_ver"
24172 ld_vers_major="$save_ld_vers_major"
24173 ld_vers_minor="$save_ld_vers_minor"
24174 ld_is_gold="$save_ld_is_gold"
24175 fi
24176
24177 cat >>confdefs.h <<_ACEOF
24178 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24179 _ACEOF
24180
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24182 $as_echo "$gcc_cv_lto_plugin" >&6; }
24183
24184 case "$target" in
24185 aarch64*-*-*)
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24187 $as_echo_n "checking assembler for -mabi option... " >&6; }
24188 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24189 $as_echo_n "(cached) " >&6
24190 else
24191 gcc_cv_as_aarch64_mabi=no
24192 if test x$gcc_cv_as != x; then
24193 $as_echo '.text' > conftest.s
24194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }; }
24200 then
24201 gcc_cv_as_aarch64_mabi=yes
24202 else
24203 echo "configure: failed program was" >&5
24204 cat conftest.s >&5
24205 fi
24206 rm -f conftest.o conftest.s
24207 fi
24208 fi
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24210 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24211
24212 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24213
24214 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24215
24216 else
24217 if test x$with_abi = xilp32; then
24218 as_fn_error "Assembler does not support -mabi=ilp32.\
24219 Upgrade the Assembler." "$LINENO" 5
24220 fi
24221 if test x"$with_multilib_list" = xdefault; then
24222 TM_MULTILIB_CONFIG=lp64
24223 else
24224 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24225 for aarch64_multilib in ${aarch64_multilibs}; do
24226 case ${aarch64_multilib} in
24227 ilp32)
24228 as_fn_error "Assembler does not support -mabi=ilp32.\
24229 Upgrade the Assembler." "$LINENO" 5
24230 ;;
24231 *)
24232 ;;
24233 esac
24234 done
24235 fi
24236 fi
24237 # Check if we have binutils support for relocations types needed by -fpic
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24239 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24240 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24241 $as_echo_n "(cached) " >&6
24242 else
24243 gcc_cv_as_aarch64_picreloc=no
24244 if test x$gcc_cv_as != x; then
24245 $as_echo '
24246 .text
24247 ldr x0, [x2, #:gotpage_lo15:globalsym]
24248 ' > conftest.s
24249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24254 test $ac_status = 0; }; }
24255 then
24256 gcc_cv_as_aarch64_picreloc=yes
24257 else
24258 echo "configure: failed program was" >&5
24259 cat conftest.s >&5
24260 fi
24261 rm -f conftest.o conftest.s
24262 fi
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24265 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24266 if test $gcc_cv_as_aarch64_picreloc = yes; then
24267
24268 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24269
24270 fi
24271 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24272 # Check whether --enable-fix-cortex-a53-835769 was given.
24273 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24274 enableval=$enable_fix_cortex_a53_835769;
24275 case $enableval in
24276 yes)
24277 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24278 ;;
24279 no)
24280 ;;
24281 *)
24282 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24283 Valid choices are 'yes' and 'no'." "$LINENO" 5
24284 ;;
24285
24286 esac
24287
24288 fi
24289
24290 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24291 # Check whether --enable-fix-cortex-a53-843419 was given.
24292 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24293 enableval=$enable_fix_cortex_a53_843419;
24294 case $enableval in
24295 yes)
24296 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24297 ;;
24298 no)
24299 ;;
24300 *)
24301 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24302 Valid choices are 'yes' and 'no'." "$LINENO" 5
24303 ;;
24304
24305 esac
24306
24307 fi
24308
24309 ;;
24310
24311 # All TARGET_ABI_OSF targets.
24312 alpha*-*-linux* | alpha*-*-*bsd*)
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24314 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24315 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318 gcc_cv_as_alpha_explicit_relocs=no
24319 if test $in_tree_gas = yes; then
24320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24321 then gcc_cv_as_alpha_explicit_relocs=yes
24322 fi
24323 elif test x$gcc_cv_as != x; then
24324 $as_echo ' .set nomacro
24325 .text
24326 extbl $3, $2, $3 !lituse_bytoff!1
24327 ldq $2, a($29) !literal!1
24328 ldq $4, b($29) !literal!2
24329 ldq_u $3, 0($2) !lituse_base!1
24330 ldq $27, f($29) !literal!5
24331 jsr $26, ($27), f !lituse_jsr!5
24332 ldah $29, 0($26) !gpdisp!3
24333 lda $0, c($29) !gprel
24334 ldah $1, d($29) !gprelhigh
24335 lda $1, d($1) !gprellow
24336 lda $29, 0($29) !gpdisp!3' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_alpha_explicit_relocs=yes
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24348 fi
24349 rm -f conftest.o conftest.s
24350 fi
24351 fi
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24353 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24354 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24355
24356 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24357
24358 fi
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24360 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24361 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_alpha_jsrdirect_relocs=no
24365 if test $in_tree_gas = yes; then
24366 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24367 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24368 fi
24369 elif test x$gcc_cv_as != x; then
24370 $as_echo ' .set nomacro
24371 .text
24372 ldq $27, a($29) !literal!1
24373 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24380 then
24381 gcc_cv_as_alpha_jsrdirect_relocs=yes
24382 else
24383 echo "configure: failed program was" >&5
24384 cat conftest.s >&5
24385 fi
24386 rm -f conftest.o conftest.s
24387 fi
24388 fi
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24390 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24391 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24392
24393 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24394
24395 fi
24396 ;;
24397
24398 avr-*-*)
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24400 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24401 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24403 else
24404 gcc_cv_as_avr_mlink_relax=no
24405 if test x$gcc_cv_as != x; then
24406 $as_echo '.text' > conftest.s
24407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; }
24413 then
24414 gcc_cv_as_avr_mlink_relax=yes
24415 else
24416 echo "configure: failed program was" >&5
24417 cat conftest.s >&5
24418 fi
24419 rm -f conftest.o conftest.s
24420 fi
24421 fi
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24423 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24424 if test $gcc_cv_as_avr_mlink_relax = yes; then
24425
24426 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24427
24428 fi
24429
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24431 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24432 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24433 $as_echo_n "(cached) " >&6
24434 else
24435 gcc_cv_as_avr_mrmw=no
24436 if test x$gcc_cv_as != x; then
24437 $as_echo '.text' > conftest.s
24438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24443 test $ac_status = 0; }; }
24444 then
24445 gcc_cv_as_avr_mrmw=yes
24446 else
24447 echo "configure: failed program was" >&5
24448 cat conftest.s >&5
24449 fi
24450 rm -f conftest.o conftest.s
24451 fi
24452 fi
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24454 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24455 if test $gcc_cv_as_avr_mrmw = yes; then
24456
24457 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24458
24459 fi
24460 ;;
24461
24462 cris-*-*)
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24464 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24465 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24466 $as_echo_n "(cached) " >&6
24467 else
24468 gcc_cv_as_cris_no_mul_bug=no
24469 if test $in_tree_gas = yes; then
24470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24471 then gcc_cv_as_cris_no_mul_bug=yes
24472 fi
24473 elif test x$gcc_cv_as != x; then
24474 $as_echo '.text' > conftest.s
24475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24480 test $ac_status = 0; }; }
24481 then
24482 gcc_cv_as_cris_no_mul_bug=yes
24483 else
24484 echo "configure: failed program was" >&5
24485 cat conftest.s >&5
24486 fi
24487 rm -f conftest.o conftest.s
24488 fi
24489 fi
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24491 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24492 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24493
24494 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24495
24496 fi
24497 ;;
24498
24499 sparc*-*-*)
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24501 $as_echo_n "checking assembler for .register... " >&6; }
24502 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_sparc_register_op=no
24506 if test x$gcc_cv_as != x; then
24507 $as_echo '.register %g2, #scratch' > conftest.s
24508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24514 then
24515 gcc_cv_as_sparc_register_op=yes
24516 else
24517 echo "configure: failed program was" >&5
24518 cat conftest.s >&5
24519 fi
24520 rm -f conftest.o conftest.s
24521 fi
24522 fi
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24524 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24525 if test $gcc_cv_as_sparc_register_op = yes; then
24526
24527 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24528
24529 fi
24530
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24532 $as_echo_n "checking assembler for #nobits... " >&6; }
24533 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24534 $as_echo_n "(cached) " >&6
24535 else
24536 gcc_cv_as_sparc_nobits=no
24537 if test x$gcc_cv_as != x; then
24538 $as_echo '.section "nobits",#alloc,#write,#nobits
24539 .section "progbits",#alloc,#write,#progbits' > conftest.s
24540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24545 test $ac_status = 0; }; }
24546 then
24547 gcc_cv_as_sparc_nobits=yes
24548 else
24549 echo "configure: failed program was" >&5
24550 cat conftest.s >&5
24551 fi
24552 rm -f conftest.o conftest.s
24553 fi
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24556 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24557
24558
24559 cat >>confdefs.h <<_ACEOF
24560 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24561 _ACEOF
24562
24563
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24565 $as_echo_n "checking assembler for -relax option... " >&6; }
24566 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24568 else
24569 gcc_cv_as_sparc_relax=no
24570 if test x$gcc_cv_as != x; then
24571 $as_echo '.text' > conftest.s
24572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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_sparc_relax=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_sparc_relax" >&5
24588 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24589 if test $gcc_cv_as_sparc_relax = yes; then
24590
24591 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24592
24593 fi
24594
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24596 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24597 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24599 else
24600 gcc_cv_as_sparc_gotdata_op=no
24601 if test x$gcc_cv_as != x; then
24602 $as_echo '.text
24603 .align 4
24604 foo:
24605 nop
24606 bar:
24607 sethi %gdop_hix22(foo), %g1
24608 xor %g1, %gdop_lox10(foo), %g1
24609 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24612 (eval $ac_try) 2>&5
24613 ac_status=$?
24614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24615 test $ac_status = 0; }; }
24616 then
24617 if test x$gcc_cv_ld != x \
24618 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24619 if test x$gcc_cv_objdump != x; then
24620 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24621 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24622 gcc_cv_as_sparc_gotdata_op=no
24623 else
24624 gcc_cv_as_sparc_gotdata_op=yes
24625 fi
24626 fi
24627 fi
24628 rm -f conftest
24629 else
24630 echo "configure: failed program was" >&5
24631 cat conftest.s >&5
24632 fi
24633 rm -f conftest.o conftest.s
24634 fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24637 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24638 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24639
24640 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24641
24642 fi
24643
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24645 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24646 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24648 else
24649 gcc_cv_as_sparc_ua_pcrel=no
24650 if test x$gcc_cv_as != x; then
24651 $as_echo '.text
24652 foo:
24653 nop
24654 .data
24655 .align 4
24656 .byte 0
24657 .uaword %r_disp32(foo)' > conftest.s
24658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; }
24664 then
24665 if test x$gcc_cv_ld != x \
24666 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24667 gcc_cv_as_sparc_ua_pcrel=yes
24668 fi
24669 rm -f conftest
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24673 fi
24674 rm -f conftest.o conftest.s
24675 fi
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24678 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24679 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24680
24681 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24682
24683
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24685 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24686 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_sparc_ua_pcrel_hidden=no
24690 if test x$gcc_cv_as != x; then
24691 $as_echo '.data
24692 .align 4
24693 .byte 0x31
24694 .uaword %r_disp32(foo)
24695 .byte 0x32, 0x33, 0x34
24696 .global foo
24697 .hidden foo
24698 foo:
24699 .skip 4' > conftest.s
24700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24702 (eval $ac_try) 2>&5
24703 ac_status=$?
24704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705 test $ac_status = 0; }; }
24706 then
24707 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24708 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24709 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24710 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24711 if $gcc_cv_objdump -R conftest 2> /dev/null \
24712 | grep 'DISP32' > /dev/null 2>&1; then
24713 :
24714 else
24715 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24716 fi
24717 fi
24718 rm -f conftest
24719 else
24720 echo "configure: failed program was" >&5
24721 cat conftest.s >&5
24722 fi
24723 rm -f conftest.o conftest.s
24724 fi
24725 fi
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24727 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24728 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24729
24730 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24731
24732 fi
24733
24734 fi # unaligned pcrel relocs
24735
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24737 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24738 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24739 $as_echo_n "(cached) " >&6
24740 else
24741 gcc_cv_as_sparc_offsetable_lo10=no
24742 if test x$gcc_cv_as != x; then
24743 $as_echo '.text
24744 or %g1, %lo(ab) + 12, %g1
24745 or %g1, %lo(ab + 12), %g1' > conftest.s
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24752 then
24753 if test x$gcc_cv_objdump != x \
24754 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24755 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24756 gcc_cv_as_sparc_offsetable_lo10=yes
24757 fi
24758 else
24759 echo "configure: failed program was" >&5
24760 cat conftest.s >&5
24761 fi
24762 rm -f conftest.o conftest.s
24763 fi
24764 fi
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24766 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24767 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24768
24769 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24770
24771 fi
24772
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24774 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24775 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_sparc_fmaf=no
24779 if test x$gcc_cv_as != x; then
24780 $as_echo '.text
24781 .register %g2, #scratch
24782 .register %g3, #scratch
24783 .align 4
24784 fmaddd %f0, %f2, %f4, %f6
24785 addxccc %g1, %g2, %g3
24786 fsrl32 %f2, %f4, %f8
24787 fnaddd %f10, %f12, %f14' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24794 then
24795 gcc_cv_as_sparc_fmaf=yes
24796 else
24797 echo "configure: failed program was" >&5
24798 cat conftest.s >&5
24799 fi
24800 rm -f conftest.o conftest.s
24801 fi
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24804 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24805 if test $gcc_cv_as_sparc_fmaf = yes; then
24806
24807 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24808
24809 fi
24810
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24812 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24813 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_sparc_sparc4=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo '.text
24819 .register %g2, #scratch
24820 .register %g3, #scratch
24821 .align 4
24822 cxbe %g2, %g3, 1f
24823 1: cwbneg %g2, %g3, 1f
24824 1: sha1
24825 md5
24826 aes_kexpand0 %f4, %f6, %f8
24827 des_round %f38, %f40, %f42, %f44
24828 camellia_f %f54, %f56, %f58, %f60
24829 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; }
24836 then
24837 gcc_cv_as_sparc_sparc4=yes
24838 else
24839 echo "configure: failed program was" >&5
24840 cat conftest.s >&5
24841 fi
24842 rm -f conftest.o conftest.s
24843 fi
24844 fi
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24846 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24847 if test $gcc_cv_as_sparc_sparc4 = yes; then
24848
24849 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24850
24851 fi
24852
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24854 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24855 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_sparc_leon=no
24859 if test x$gcc_cv_as != x; then
24860 $as_echo '.text
24861 .register %g2, #scratch
24862 .register %g3, #scratch
24863 .align 4
24864 smac %g2, %g3, %g1
24865 umac %g2, %g3, %g1
24866 casa [%g2] 0xb, %g3, %g1' > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 gcc_cv_as_sparc_leon=yes
24875 else
24876 echo "configure: failed program was" >&5
24877 cat conftest.s >&5
24878 fi
24879 rm -f conftest.o conftest.s
24880 fi
24881 fi
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24883 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24884 if test $gcc_cv_as_sparc_leon = yes; then
24885
24886 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24887
24888 fi
24889 ;;
24890
24891 i[34567]86-*-* | x86_64-*-*)
24892 case $target_os in
24893 cygwin*)
24894 # Full C++ conformance when using a shared libstdc++-v3 requires some
24895 # support from the Cygwin DLL, which in more recent versions exports
24896 # wrappers to aid in interposing and redirecting operators new, delete,
24897 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24898 # are configuring for a version of Cygwin that exports the wrappers.
24899 if test x$host = x$target && test x$host_cpu = xi686; then
24900 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24901 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24902 gcc_ac_cygwin_dll_wrappers=yes
24903 else
24904 gcc_ac_cygwin_dll_wrappers=no
24905 fi
24906
24907 else
24908 # Can't check presence of libc functions during cross-compile, so
24909 # we just have to assume we're building for an up-to-date target.
24910 gcc_ac_cygwin_dll_wrappers=yes
24911 fi
24912
24913 cat >>confdefs.h <<_ACEOF
24914 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24915 _ACEOF
24916
24917 esac
24918 case $target_os in
24919 cygwin* | pe | mingw32* | interix*)
24920 # Recent binutils allows the three-operand form of ".comm" on PE. This
24921 # definition is used unconditionally to initialise the default state of
24922 # the target option variable that governs usage of the feature.
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24924 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24925 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24926 $as_echo_n "(cached) " >&6
24927 else
24928 gcc_cv_as_comm_has_align=no
24929 if test $in_tree_gas = yes; then
24930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24931 then gcc_cv_as_comm_has_align=yes
24932 fi
24933 elif test x$gcc_cv_as != x; then
24934 $as_echo '.comm foo,1,32' > conftest.s
24935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24941 then
24942 gcc_cv_as_comm_has_align=yes
24943 else
24944 echo "configure: failed program was" >&5
24945 cat conftest.s >&5
24946 fi
24947 rm -f conftest.o conftest.s
24948 fi
24949 fi
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24951 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24952
24953
24954 cat >>confdefs.h <<_ACEOF
24955 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24956 _ACEOF
24957
24958 # Used for DWARF 2 in PE
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24960 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24961 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 gcc_cv_as_ix86_pe_secrel32=no
24965 if test $in_tree_gas = yes; then
24966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24967 then gcc_cv_as_ix86_pe_secrel32=yes
24968 fi
24969 elif test x$gcc_cv_as != x; then
24970 $as_echo '.text
24971 foo: nop
24972 .data
24973 .secrel32 foo' > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 if test x$gcc_cv_ld != x \
24982 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24983 gcc_cv_as_ix86_pe_secrel32=yes
24984 fi
24985 rm -f conftest
24986 else
24987 echo "configure: failed program was" >&5
24988 cat conftest.s >&5
24989 fi
24990 rm -f conftest.o conftest.s
24991 fi
24992 fi
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24994 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24995 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24996
24997 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24998
24999 fi
25000 # Test if the assembler supports the extended form of the .section
25001 # directive that specifies section alignment. LTO support uses this,
25002 # but normally only after installation, so we warn but don't fail the
25003 # configure if LTO is enabled but the assembler does not support it.
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25005 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25006 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_section_has_align=no
25010 if test $in_tree_gas = yes; then
25011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25012 then gcc_cv_as_section_has_align=yes
25013 fi
25014 elif test x$gcc_cv_as != x; then
25015 $as_echo '.section lto_test,"dr0"' > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25022 then
25023 gcc_cv_as_section_has_align=yes
25024 else
25025 echo "configure: failed program was" >&5
25026 cat conftest.s >&5
25027 fi
25028 rm -f conftest.o conftest.s
25029 fi
25030 fi
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25032 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25033
25034 if test x$gcc_cv_as_section_has_align != xyes; then
25035 case ",$enable_languages," in
25036 *,lto,*)
25037 { $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
25038 $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;}
25039 ;;
25040 esac
25041 fi
25042 ;;
25043 esac
25044
25045 # Test if the assembler supports the section flag 'e' for specifying
25046 # an excluded section.
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25048 $as_echo_n "checking assembler for .section with e... " >&6; }
25049 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_section_has_e=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25055 then gcc_cv_as_section_has_e=yes
25056 fi
25057 elif test x$gcc_cv_as != x; then
25058 $as_echo '.section foo1,"e"
25059 .byte 0,0,0,0' > conftest.s
25060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25066 then
25067 gcc_cv_as_section_has_e=yes
25068 else
25069 echo "configure: failed program was" >&5
25070 cat conftest.s >&5
25071 fi
25072 rm -f conftest.o conftest.s
25073 fi
25074 fi
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25076 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25077
25078
25079 cat >>confdefs.h <<_ACEOF
25080 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25081 _ACEOF
25082
25083
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25085 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25086 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089 gcc_cv_as_ix86_filds=no
25090 if test x$gcc_cv_as != x; then
25091 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25094 (eval $ac_try) 2>&5
25095 ac_status=$?
25096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25097 test $ac_status = 0; }; }
25098 then
25099 gcc_cv_as_ix86_filds=yes
25100 else
25101 echo "configure: failed program was" >&5
25102 cat conftest.s >&5
25103 fi
25104 rm -f conftest.o conftest.s
25105 fi
25106 fi
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25108 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25109 if test $gcc_cv_as_ix86_filds = yes; then
25110
25111 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25112
25113 fi
25114
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25116 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25117 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25118 $as_echo_n "(cached) " >&6
25119 else
25120 gcc_cv_as_ix86_fildq=no
25121 if test x$gcc_cv_as != x; then
25122 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25128 test $ac_status = 0; }; }
25129 then
25130 gcc_cv_as_ix86_fildq=yes
25131 else
25132 echo "configure: failed program was" >&5
25133 cat conftest.s >&5
25134 fi
25135 rm -f conftest.o conftest.s
25136 fi
25137 fi
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25139 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25140 if test $gcc_cv_as_ix86_fildq = yes; then
25141
25142 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25143
25144 fi
25145
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25147 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25148 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
25150 else
25151 gcc_cv_as_ix86_cmov_sun_syntax=no
25152 if test x$gcc_cv_as != x; then
25153 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25160 then
25161 gcc_cv_as_ix86_cmov_sun_syntax=yes
25162 else
25163 echo "configure: failed program was" >&5
25164 cat conftest.s >&5
25165 fi
25166 rm -f conftest.o conftest.s
25167 fi
25168 fi
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25170 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25171 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25172
25173 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25174
25175 fi
25176
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25178 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25179 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_ix86_ffreep=no
25183 if test x$gcc_cv_as != x; then
25184 $as_echo 'ffreep %st(1)' > conftest.s
25185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25191 then
25192 gcc_cv_as_ix86_ffreep=yes
25193 else
25194 echo "configure: failed program was" >&5
25195 cat conftest.s >&5
25196 fi
25197 rm -f conftest.o conftest.s
25198 fi
25199 fi
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25201 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25202 if test $gcc_cv_as_ix86_ffreep = yes; then
25203
25204 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25205
25206 fi
25207
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25209 $as_echo_n "checking assembler for .quad directive... " >&6; }
25210 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 gcc_cv_as_ix86_quad=no
25214 if test x$gcc_cv_as != x; then
25215 $as_echo '.quad 0' > conftest.s
25216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221 test $ac_status = 0; }; }
25222 then
25223 gcc_cv_as_ix86_quad=yes
25224 else
25225 echo "configure: failed program was" >&5
25226 cat conftest.s >&5
25227 fi
25228 rm -f conftest.o conftest.s
25229 fi
25230 fi
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25232 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25233 if test $gcc_cv_as_ix86_quad = yes; then
25234
25235 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25236
25237 fi
25238
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25240 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25241 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25242 $as_echo_n "(cached) " >&6
25243 else
25244 gcc_cv_as_ix86_sahf=no
25245 if test x$gcc_cv_as != x; then
25246 $as_echo '.code64
25247 sahf' > conftest.s
25248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25254 then
25255 gcc_cv_as_ix86_sahf=yes
25256 else
25257 echo "configure: failed program was" >&5
25258 cat conftest.s >&5
25259 fi
25260 rm -f conftest.o conftest.s
25261 fi
25262 fi
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25264 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25265 if test $gcc_cv_as_ix86_sahf = yes; then
25266
25267 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25268
25269 fi
25270
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25272 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25273 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25274 $as_echo_n "(cached) " >&6
25275 else
25276 gcc_cv_as_ix86_interunit_movq=no
25277 if test x$gcc_cv_as != x; then
25278 $as_echo '.code64
25279 movq %mm0, %rax
25280 movq %rax, %xmm0' > conftest.s
25281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25287 then
25288 gcc_cv_as_ix86_interunit_movq=yes
25289 else
25290 echo "configure: failed program was" >&5
25291 cat conftest.s >&5
25292 fi
25293 rm -f conftest.o conftest.s
25294 fi
25295 fi
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25297 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25298
25299
25300 cat >>confdefs.h <<_ACEOF
25301 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25302 _ACEOF
25303
25304
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25306 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25307 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25308 $as_echo_n "(cached) " >&6
25309 else
25310 gcc_cv_as_ix86_hle=no
25311 if test x$gcc_cv_as != x; then
25312 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_ix86_hle=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25329 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25330 if test $gcc_cv_as_ix86_hle = yes; then
25331
25332 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25333
25334 fi
25335
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25337 $as_echo_n "checking assembler for swap suffix... " >&6; }
25338 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
25340 else
25341 gcc_cv_as_ix86_swap=no
25342 if test x$gcc_cv_as != x; then
25343 $as_echo 'movl.s %esp, %ebp' > conftest.s
25344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }; }
25350 then
25351 gcc_cv_as_ix86_swap=yes
25352 else
25353 echo "configure: failed program was" >&5
25354 cat conftest.s >&5
25355 fi
25356 rm -f conftest.o conftest.s
25357 fi
25358 fi
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25360 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25361 if test $gcc_cv_as_ix86_swap = yes; then
25362
25363 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25364
25365 fi
25366
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25368 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25369 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25370 $as_echo_n "(cached) " >&6
25371 else
25372 gcc_cv_as_ix86_diff_sect_delta=no
25373 if test x$gcc_cv_as != x; then
25374 $as_echo '.section .rodata
25375 .L1:
25376 .long .L2-.L1
25377 .long .L3-.L1
25378 .text
25379 .L3: nop
25380 .L2: nop' > conftest.s
25381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25387 then
25388 gcc_cv_as_ix86_diff_sect_delta=yes
25389 else
25390 echo "configure: failed program was" >&5
25391 cat conftest.s >&5
25392 fi
25393 rm -f conftest.o conftest.s
25394 fi
25395 fi
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25397 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25398 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25399
25400 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25401
25402 fi
25403
25404 # These two are used unconditionally by i386.[ch]; it is to be defined
25405 # to 1 if the feature is present, 0 otherwise.
25406 as_ix86_gotoff_in_data_opt=
25407 if test x$gas = xyes; then
25408 as_ix86_gotoff_in_data_opt="--32"
25409 fi
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25411 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25412 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25414 else
25415 gcc_cv_as_ix86_gotoff_in_data=no
25416 if test $in_tree_gas = yes; then
25417 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25418 then gcc_cv_as_ix86_gotoff_in_data=yes
25419 fi
25420 elif test x$gcc_cv_as != x; then
25421 $as_echo ' .text
25422 .L0:
25423 nop
25424 .data
25425 .long .L0@GOTOFF' > conftest.s
25426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25432 then
25433 gcc_cv_as_ix86_gotoff_in_data=yes
25434 else
25435 echo "configure: failed program was" >&5
25436 cat conftest.s >&5
25437 fi
25438 rm -f conftest.o conftest.s
25439 fi
25440 fi
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25442 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25443
25444
25445 cat >>confdefs.h <<_ACEOF
25446 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25447 _ACEOF
25448
25449
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25451 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25452 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25453 $as_echo_n "(cached) " >&6
25454 else
25455 gcc_cv_as_ix86_rep_lock_prefix=no
25456 if test x$gcc_cv_as != x; then
25457 $as_echo 'rep movsl
25458 rep ret
25459 rep nop
25460 rep bsf %ecx, %eax
25461 rep bsr %ecx, %eax
25462 lock addl %edi, (%eax,%esi)
25463 lock orl $0, (%esp)' > conftest.s
25464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25470 then
25471 gcc_cv_as_ix86_rep_lock_prefix=yes
25472 else
25473 echo "configure: failed program was" >&5
25474 cat conftest.s >&5
25475 fi
25476 rm -f conftest.o conftest.s
25477 fi
25478 fi
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25480 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25481 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25482
25483 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25484
25485 fi
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25488 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25489 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_ix86_ud2=no
25493 if test x$gcc_cv_as != x; then
25494 $as_echo 'ud2' > conftest.s
25495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25498 ac_status=$?
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25501 then
25502 gcc_cv_as_ix86_ud2=yes
25503 else
25504 echo "configure: failed program was" >&5
25505 cat conftest.s >&5
25506 fi
25507 rm -f conftest.o conftest.s
25508 fi
25509 fi
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25511 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25512 if test $gcc_cv_as_ix86_ud2 = yes; then
25513
25514 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25515
25516 fi
25517
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25519 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25520 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25522 else
25523 gcc_cv_as_ix86_tlsgdplt=no
25524 if test x$gcc_cv_as != x; then
25525 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 if test x$gcc_cv_ld != x \
25534 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25535 gcc_cv_as_ix86_tlsgdplt=yes
25536 fi
25537 rm -f conftest
25538 else
25539 echo "configure: failed program was" >&5
25540 cat conftest.s >&5
25541 fi
25542 rm -f conftest.o conftest.s
25543 fi
25544 fi
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25546 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25547 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25548
25549 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25550
25551 fi
25552
25553 conftest_s='
25554 .section .tdata,"aw'$tls_section_flag'",@progbits
25555 tls_ld:
25556 .section .text,"ax",@progbits
25557 call tls_ld@tlsldmplt'
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25559 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25560 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_ix86_tlsldmplt=no
25564 if test x$gcc_cv_as != x; then
25565 $as_echo "$conftest_s" > conftest.s
25566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568 (eval $ac_try) 2>&5
25569 ac_status=$?
25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571 test $ac_status = 0; }; }
25572 then
25573 if test x$gcc_cv_ld != x \
25574 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25575 gcc_cv_as_ix86_tlsldmplt=yes
25576 fi
25577 rm -f conftest
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25581 fi
25582 rm -f conftest.o conftest.s
25583 fi
25584 fi
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25586 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25587
25588
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25591 _ACEOF
25592
25593
25594 # Enforce 32-bit output with gas and gld.
25595 if test x$gas = xyes; then
25596 as_ix86_tls_ldm_opt="--32"
25597 fi
25598 if echo "$ld_ver" | grep GNU > /dev/null; then
25599 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25600 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25601 else
25602 ld_ix86_tls_ldm_opt="-melf_i386"
25603 fi
25604 fi
25605 conftest_s='
25606 .section .text,"ax",@progbits
25607 .globl _start
25608 .type _start, @function
25609 _start:
25610 leal value@tlsldm(%ebx), %eax
25611 call ___tls_get_addr@plt
25612
25613 .section .tdata,"aw'$tls_section_flag'",@progbits
25614 .type value, @object
25615 value:'
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25617 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25618 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_ix86_tlsldm=no
25622 if test x$gcc_cv_as != x; then
25623 $as_echo "$conftest_s" > conftest.s
25624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25630 then
25631 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25632 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25633 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25634 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25635 gcc_cv_as_ix86_tlsldm=yes
25636 fi
25637 fi
25638 rm -f conftest
25639 else
25640 echo "configure: failed program was" >&5
25641 cat conftest.s >&5
25642 fi
25643 rm -f conftest.o conftest.s
25644 fi
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25647 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25648
25649
25650 cat >>confdefs.h <<_ACEOF
25651 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25652 _ACEOF
25653
25654
25655 ;;
25656
25657 ia64*-*-*)
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25659 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25660 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25661 $as_echo_n "(cached) " >&6
25662 else
25663 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25664 if test $in_tree_gas = yes; then
25665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25666 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25667 fi
25668 elif test x$gcc_cv_as != x; then
25669 $as_echo ' .text
25670 addl r15 = @ltoffx(x#), gp
25671 ;;
25672 ld8.mov r16 = [r15], x#' > conftest.s
25673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25678 test $ac_status = 0; }; }
25679 then
25680 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25681 else
25682 echo "configure: failed program was" >&5
25683 cat conftest.s >&5
25684 fi
25685 rm -f conftest.o conftest.s
25686 fi
25687 fi
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25689 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25690 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25691
25692 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25693
25694 fi
25695
25696 ;;
25697
25698 powerpc*-*-*)
25699 case $target in
25700 *-*-aix*) conftest_s=' .machine "pwr5"
25701 .csect .text[PR]
25702 mfcr 3,128';;
25703 *-*-darwin*)
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25705 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25706 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25707 $as_echo_n "(cached) " >&6
25708 else
25709 gcc_cv_as_machine_directive=no
25710 if test x$gcc_cv_as != x; then
25711 $as_echo ' .machine ppc7400' > conftest.s
25712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }
25718 then
25719 gcc_cv_as_machine_directive=yes
25720 else
25721 echo "configure: failed program was" >&5
25722 cat conftest.s >&5
25723 fi
25724 rm -f conftest.o conftest.s
25725 fi
25726 fi
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25728 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25729
25730 if test x$gcc_cv_as_machine_directive != xyes; then
25731 echo "*** This target requires an assembler supporting \".machine\"" >&2
25732 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25733 test x$build = x$target && exit 1
25734 fi
25735 conftest_s=' .text
25736 mfcr r3,128';;
25737 *) conftest_s=' .machine power4
25738 .text
25739 mfcr 3,128';;
25740 esac
25741
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25743 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25744 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25745 $as_echo_n "(cached) " >&6
25746 else
25747 gcc_cv_as_powerpc_mfcrf=no
25748 if test $in_tree_gas = yes; then
25749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25750 then gcc_cv_as_powerpc_mfcrf=yes
25751 fi
25752 elif test x$gcc_cv_as != x; then
25753 $as_echo "$conftest_s" > conftest.s
25754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25759 test $ac_status = 0; }; }
25760 then
25761 gcc_cv_as_powerpc_mfcrf=yes
25762 else
25763 echo "configure: failed program was" >&5
25764 cat conftest.s >&5
25765 fi
25766 rm -f conftest.o conftest.s
25767 fi
25768 fi
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25770 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25771 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25772
25773 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25774
25775 fi
25776
25777 case $target in
25778 *-*-aix*) conftest_s=' .machine "pwr5"
25779 .csect .text[PR]
25780 popcntb 3,3';;
25781 *) conftest_s=' .machine power5
25782 .text
25783 popcntb 3,3';;
25784 esac
25785
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25787 $as_echo_n "checking assembler for popcntb support... " >&6; }
25788 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25789 $as_echo_n "(cached) " >&6
25790 else
25791 gcc_cv_as_powerpc_popcntb=no
25792 if test $in_tree_gas = yes; then
25793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25794 then gcc_cv_as_powerpc_popcntb=yes
25795 fi
25796 elif test x$gcc_cv_as != x; then
25797 $as_echo "$conftest_s" > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25804 then
25805 gcc_cv_as_powerpc_popcntb=yes
25806 else
25807 echo "configure: failed program was" >&5
25808 cat conftest.s >&5
25809 fi
25810 rm -f conftest.o conftest.s
25811 fi
25812 fi
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25814 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25815 if test $gcc_cv_as_powerpc_popcntb = yes; then
25816
25817 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25818
25819 fi
25820
25821 case $target in
25822 *-*-aix*) conftest_s=' .machine "pwr5x"
25823 .csect .text[PR]
25824 frin 1,1';;
25825 *) conftest_s=' .machine power5
25826 .text
25827 frin 1,1';;
25828 esac
25829
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25831 $as_echo_n "checking assembler for fp round support... " >&6; }
25832 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25833 $as_echo_n "(cached) " >&6
25834 else
25835 gcc_cv_as_powerpc_fprnd=no
25836 if test $in_tree_gas = yes; then
25837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25838 then gcc_cv_as_powerpc_fprnd=yes
25839 fi
25840 elif test x$gcc_cv_as != x; then
25841 $as_echo "$conftest_s" > conftest.s
25842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }
25848 then
25849 gcc_cv_as_powerpc_fprnd=yes
25850 else
25851 echo "configure: failed program was" >&5
25852 cat conftest.s >&5
25853 fi
25854 rm -f conftest.o conftest.s
25855 fi
25856 fi
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25858 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25859 if test $gcc_cv_as_powerpc_fprnd = yes; then
25860
25861 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25862
25863 fi
25864
25865 case $target in
25866 *-*-aix*) conftest_s=' .machine "pwr6"
25867 .csect .text[PR]
25868 mffgpr 1,3';;
25869 *) conftest_s=' .machine power6
25870 .text
25871 mffgpr 1,3';;
25872 esac
25873
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25875 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25876 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25877 $as_echo_n "(cached) " >&6
25878 else
25879 gcc_cv_as_powerpc_mfpgpr=no
25880 if test $in_tree_gas = yes; then
25881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25882 then gcc_cv_as_powerpc_mfpgpr=yes
25883 fi
25884 elif test x$gcc_cv_as != x; then
25885 $as_echo "$conftest_s" > conftest.s
25886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891 test $ac_status = 0; }; }
25892 then
25893 gcc_cv_as_powerpc_mfpgpr=yes
25894 else
25895 echo "configure: failed program was" >&5
25896 cat conftest.s >&5
25897 fi
25898 rm -f conftest.o conftest.s
25899 fi
25900 fi
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25902 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25903 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25904
25905 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25906
25907 fi
25908
25909 case $target in
25910 *-*-aix*) conftest_s=' .csect .text[PR]
25911 LCF..0:
25912 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25913 *-*-darwin*)
25914 conftest_s=' .text
25915 LCF0:
25916 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25917 *) conftest_s=' .text
25918 .LCF0:
25919 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25920 esac
25921
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25923 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25924 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25925 $as_echo_n "(cached) " >&6
25926 else
25927 gcc_cv_as_powerpc_rel16=no
25928 if test $in_tree_gas = yes; then
25929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25930 then gcc_cv_as_powerpc_rel16=yes
25931 fi
25932 elif test x$gcc_cv_as != x; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 gcc_cv_as_powerpc_rel16=yes
25942 else
25943 echo "configure: failed program was" >&5
25944 cat conftest.s >&5
25945 fi
25946 rm -f conftest.o conftest.s
25947 fi
25948 fi
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25950 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25951 if test $gcc_cv_as_powerpc_rel16 = yes; then
25952
25953 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25954
25955 fi
25956
25957 case $target in
25958 *-*-aix*) conftest_s=' .machine "pwr6"
25959 .csect .text[PR]
25960 cmpb 3,4,5';;
25961 *) conftest_s=' .machine power6
25962 .text
25963 cmpb 3,4,5';;
25964 esac
25965
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25967 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25968 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_as_powerpc_cmpb=no
25972 if test $in_tree_gas = yes; then
25973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25974 then gcc_cv_as_powerpc_cmpb=yes
25975 fi
25976 elif test x$gcc_cv_as != x; then
25977 $as_echo "$conftest_s" > conftest.s
25978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25984 then
25985 gcc_cv_as_powerpc_cmpb=yes
25986 else
25987 echo "configure: failed program was" >&5
25988 cat conftest.s >&5
25989 fi
25990 rm -f conftest.o conftest.s
25991 fi
25992 fi
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25994 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25995 if test $gcc_cv_as_powerpc_cmpb = yes; then
25996
25997 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25998
25999 fi
26000
26001 case $target in
26002 *-*-aix*) conftest_s=' .machine "pwr6"
26003 .csect .text[PR]
26004 dadd 1,2,3';;
26005 *) conftest_s=' .machine power6
26006 .text
26007 dadd 1,2,3';;
26008 esac
26009
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26011 $as_echo_n "checking assembler for decimal float support... " >&6; }
26012 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26013 $as_echo_n "(cached) " >&6
26014 else
26015 gcc_cv_as_powerpc_dfp=no
26016 if test $in_tree_gas = yes; then
26017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26018 then gcc_cv_as_powerpc_dfp=yes
26019 fi
26020 elif test x$gcc_cv_as != x; then
26021 $as_echo "$conftest_s" > conftest.s
26022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26027 test $ac_status = 0; }; }
26028 then
26029 gcc_cv_as_powerpc_dfp=yes
26030 else
26031 echo "configure: failed program was" >&5
26032 cat conftest.s >&5
26033 fi
26034 rm -f conftest.o conftest.s
26035 fi
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26038 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26039 if test $gcc_cv_as_powerpc_dfp = yes; then
26040
26041 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26042
26043 fi
26044
26045 case $target in
26046 *-*-aix*) conftest_s=' .machine "pwr7"
26047 .csect .text[PR]
26048 lxvd2x 1,2,3';;
26049 *) conftest_s=' .machine power7
26050 .text
26051 lxvd2x 1,2,3';;
26052 esac
26053
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26055 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26056 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26057 $as_echo_n "(cached) " >&6
26058 else
26059 gcc_cv_as_powerpc_vsx=no
26060 if test $in_tree_gas = yes; then
26061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26062 then gcc_cv_as_powerpc_vsx=yes
26063 fi
26064 elif test x$gcc_cv_as != x; then
26065 $as_echo "$conftest_s" > conftest.s
26066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26071 test $ac_status = 0; }; }
26072 then
26073 gcc_cv_as_powerpc_vsx=yes
26074 else
26075 echo "configure: failed program was" >&5
26076 cat conftest.s >&5
26077 fi
26078 rm -f conftest.o conftest.s
26079 fi
26080 fi
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26082 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26083 if test $gcc_cv_as_powerpc_vsx = yes; then
26084
26085 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26086
26087 fi
26088
26089 case $target in
26090 *-*-aix*) conftest_s=' .machine "pwr7"
26091 .csect .text[PR]
26092 popcntd 3,3';;
26093 *) conftest_s=' .machine power7
26094 .text
26095 popcntd 3,3';;
26096 esac
26097
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26099 $as_echo_n "checking assembler for popcntd support... " >&6; }
26100 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26101 $as_echo_n "(cached) " >&6
26102 else
26103 gcc_cv_as_powerpc_popcntd=no
26104 if test $in_tree_gas = yes; then
26105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26106 then gcc_cv_as_powerpc_popcntd=yes
26107 fi
26108 elif test x$gcc_cv_as != x; then
26109 $as_echo "$conftest_s" > conftest.s
26110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26115 test $ac_status = 0; }; }
26116 then
26117 gcc_cv_as_powerpc_popcntd=yes
26118 else
26119 echo "configure: failed program was" >&5
26120 cat conftest.s >&5
26121 fi
26122 rm -f conftest.o conftest.s
26123 fi
26124 fi
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26126 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26127 if test $gcc_cv_as_powerpc_popcntd = yes; then
26128
26129 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26130
26131 fi
26132
26133 case $target in
26134 *-*-aix*) conftest_s=' .machine "pwr8"
26135 .csect .text[PR]';;
26136 *) conftest_s=' .machine power8
26137 .text';;
26138 esac
26139
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26141 $as_echo_n "checking assembler for power8 support... " >&6; }
26142 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_powerpc_power8=no
26146 if test $in_tree_gas = yes; then
26147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26148 then gcc_cv_as_powerpc_power8=yes
26149 fi
26150 elif test x$gcc_cv_as != x; then
26151 $as_echo "$conftest_s" > conftest.s
26152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157 test $ac_status = 0; }; }
26158 then
26159 gcc_cv_as_powerpc_power8=yes
26160 else
26161 echo "configure: failed program was" >&5
26162 cat conftest.s >&5
26163 fi
26164 rm -f conftest.o conftest.s
26165 fi
26166 fi
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26168 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26169 if test $gcc_cv_as_powerpc_power8 = yes; then
26170
26171 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26172
26173 fi
26174
26175 case $target in
26176 *-*-aix*) conftest_s=' .csect .text[PR]
26177 lwsync';;
26178 *) conftest_s=' .text
26179 lwsync';;
26180 esac
26181
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26183 $as_echo_n "checking assembler for lwsync support... " >&6; }
26184 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26185 $as_echo_n "(cached) " >&6
26186 else
26187 gcc_cv_as_powerpc_lwsync=no
26188 if test $in_tree_gas = yes; then
26189 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26190 then gcc_cv_as_powerpc_lwsync=yes
26191 fi
26192 elif test x$gcc_cv_as != x; then
26193 $as_echo "$conftest_s" > conftest.s
26194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199 test $ac_status = 0; }; }
26200 then
26201 gcc_cv_as_powerpc_lwsync=yes
26202 else
26203 echo "configure: failed program was" >&5
26204 cat conftest.s >&5
26205 fi
26206 rm -f conftest.o conftest.s
26207 fi
26208 fi
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26210 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26211 if test $gcc_cv_as_powerpc_lwsync = yes; then
26212
26213 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26214
26215 fi
26216
26217 case $target in
26218 *-*-aix*) conftest_s=' .machine "476"
26219 .csect .text[PR]
26220 dci 0';;
26221 *) conftest_s=' .machine "476"
26222 .text
26223 dci 0';;
26224 esac
26225
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26227 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26228 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26229 $as_echo_n "(cached) " >&6
26230 else
26231 gcc_cv_as_powerpc_dci=no
26232 if test $in_tree_gas = yes; then
26233 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26234 then gcc_cv_as_powerpc_dci=yes
26235 fi
26236 elif test x$gcc_cv_as != x; then
26237 $as_echo "$conftest_s" > conftest.s
26238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26240 (eval $ac_try) 2>&5
26241 ac_status=$?
26242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26243 test $ac_status = 0; }; }
26244 then
26245 gcc_cv_as_powerpc_dci=yes
26246 else
26247 echo "configure: failed program was" >&5
26248 cat conftest.s >&5
26249 fi
26250 rm -f conftest.o conftest.s
26251 fi
26252 fi
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26254 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26255 if test $gcc_cv_as_powerpc_dci = yes; then
26256
26257 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26258
26259 fi
26260
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26262 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26263 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26264 $as_echo_n "(cached) " >&6
26265 else
26266 gcc_cv_as_powerpc_gnu_attribute=no
26267 if test $in_tree_gas = yes; then
26268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26269 then gcc_cv_as_powerpc_gnu_attribute=yes
26270 fi
26271 elif test x$gcc_cv_as != x; then
26272 $as_echo '.gnu_attribute 4,1' > conftest.s
26273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26278 test $ac_status = 0; }; }
26279 then
26280 gcc_cv_as_powerpc_gnu_attribute=yes
26281 else
26282 echo "configure: failed program was" >&5
26283 cat conftest.s >&5
26284 fi
26285 rm -f conftest.o conftest.s
26286 fi
26287 fi
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26289 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26290 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26291
26292 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26293
26294 fi
26295
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26297 $as_echo_n "checking assembler for tls marker support... " >&6; }
26298 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26299 $as_echo_n "(cached) " >&6
26300 else
26301 gcc_cv_as_powerpc_tls_markers=no
26302 if test $in_tree_gas = yes; then
26303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26304 then gcc_cv_as_powerpc_tls_markers=yes
26305 fi
26306 elif test x$gcc_cv_as != x; then
26307 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310 (eval $ac_try) 2>&5
26311 ac_status=$?
26312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313 test $ac_status = 0; }; }
26314 then
26315 gcc_cv_as_powerpc_tls_markers=yes
26316 else
26317 echo "configure: failed program was" >&5
26318 cat conftest.s >&5
26319 fi
26320 rm -f conftest.o conftest.s
26321 fi
26322 fi
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26324 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26325 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26326
26327 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26328
26329 fi
26330
26331 case $target in
26332 *-*-aix*)
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26334 $as_echo_n "checking assembler for .ref support... " >&6; }
26335 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_aix_ref=no
26339 if test $in_tree_gas = yes; then
26340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26341 then gcc_cv_as_aix_ref=yes
26342 fi
26343 elif test x$gcc_cv_as != x; then
26344 $as_echo ' .csect stuff[rw]
26345 stuff:
26346 .long 1
26347 .extern sym
26348 .ref sym
26349 ' > conftest.s
26350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26356 then
26357 gcc_cv_as_aix_ref=yes
26358 else
26359 echo "configure: failed program was" >&5
26360 cat conftest.s >&5
26361 fi
26362 rm -f conftest.o conftest.s
26363 fi
26364 fi
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26366 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26367 if test $gcc_cv_as_aix_ref = yes; then
26368
26369 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26370
26371 fi
26372 ;;
26373 esac
26374 ;;
26375
26376 mips*-*-*)
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26378 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26379 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_mips_explicit_relocs=no
26383 if test $in_tree_gas = yes; then
26384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26385 then gcc_cv_as_mips_explicit_relocs=yes
26386 fi
26387 elif test x$gcc_cv_as != x; then
26388 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26395 then
26396 gcc_cv_as_mips_explicit_relocs=yes
26397 else
26398 echo "configure: failed program was" >&5
26399 cat conftest.s >&5
26400 fi
26401 rm -f conftest.o conftest.s
26402 fi
26403 fi
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26405 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26406 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26407 if test x$target_cpu_default = x
26408 then target_cpu_default=MASK_EXPLICIT_RELOCS
26409 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26410 fi
26411 fi
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26413 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26414 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 gcc_cv_as_mips_no_shared=no
26418 if test $in_tree_gas = yes; then
26419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26420 then gcc_cv_as_mips_no_shared=yes
26421 fi
26422 elif test x$gcc_cv_as != x; then
26423 $as_echo 'nop' > conftest.s
26424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26429 test $ac_status = 0; }; }
26430 then
26431 gcc_cv_as_mips_no_shared=yes
26432 else
26433 echo "configure: failed program was" >&5
26434 cat conftest.s >&5
26435 fi
26436 rm -f conftest.o conftest.s
26437 fi
26438 fi
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26440 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26441 if test $gcc_cv_as_mips_no_shared = yes; then
26442
26443 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26444
26445 fi
26446
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26448 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26449 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26450 $as_echo_n "(cached) " >&6
26451 else
26452 gcc_cv_as_mips_gnu_attribute=no
26453 if test $in_tree_gas = yes; then
26454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26455 then gcc_cv_as_mips_gnu_attribute=yes
26456 fi
26457 elif test x$gcc_cv_as != x; then
26458 $as_echo '.gnu_attribute 4,1' > conftest.s
26459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26465 then
26466 gcc_cv_as_mips_gnu_attribute=yes
26467 else
26468 echo "configure: failed program was" >&5
26469 cat conftest.s >&5
26470 fi
26471 rm -f conftest.o conftest.s
26472 fi
26473 fi
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26475 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26476 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26477
26478 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26479
26480 fi
26481
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26483 $as_echo_n "checking assembler for .module support... " >&6; }
26484 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26486 else
26487 gcc_cv_as_mips_dot_module=no
26488 if test x$gcc_cv_as != x; then
26489 $as_echo '.module mips2
26490 .module fp=xx' > conftest.s
26491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26497 then
26498 gcc_cv_as_mips_dot_module=yes
26499 else
26500 echo "configure: failed program was" >&5
26501 cat conftest.s >&5
26502 fi
26503 rm -f conftest.o conftest.s
26504 fi
26505 fi
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26507 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26508 if test $gcc_cv_as_mips_dot_module = yes; then
26509
26510 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26511
26512 fi
26513 if test x$gcc_cv_as_mips_dot_module = xno \
26514 && test x$with_fp_32 != x; then
26515 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26516 fi
26517
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26519 $as_echo_n "checking assembler for .micromips support... " >&6; }
26520 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_micromips_support=no
26524 if test x$gcc_cv_as != x; then
26525 $as_echo '.set micromips' > conftest.s
26526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26531 test $ac_status = 0; }; }
26532 then
26533 gcc_cv_as_micromips_support=yes
26534 else
26535 echo "configure: failed program was" >&5
26536 cat conftest.s >&5
26537 fi
26538 rm -f conftest.o conftest.s
26539 fi
26540 fi
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26542 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26543 if test $gcc_cv_as_micromips_support = yes; then
26544
26545 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26546
26547 fi
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26550 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26551 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_mips_dtprelword=no
26555 if test $in_tree_gas = yes; then
26556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26557 then gcc_cv_as_mips_dtprelword=yes
26558 fi
26559 elif test x$gcc_cv_as != x; then
26560 $as_echo '.section .tdata,"awT",@progbits
26561 x:
26562 .word 2
26563 .text
26564 .dtprelword x+0x8000' > conftest.s
26565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26571 then
26572 gcc_cv_as_mips_dtprelword=yes
26573 else
26574 echo "configure: failed program was" >&5
26575 cat conftest.s >&5
26576 fi
26577 rm -f conftest.o conftest.s
26578 fi
26579 fi
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26581 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26582 if test $gcc_cv_as_mips_dtprelword = yes; then
26583
26584 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26585
26586 fi
26587
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26589 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26590 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26591 $as_echo_n "(cached) " >&6
26592 else
26593 gcc_cv_as_mips_dspr1_mult=no
26594 if test x$gcc_cv_as != x; then
26595 $as_echo ' .set mips32r2
26596 .set nodspr2
26597 .set dsp
26598 madd $ac3,$4,$5
26599 maddu $ac3,$4,$5
26600 msub $ac3,$4,$5
26601 msubu $ac3,$4,$5
26602 mult $ac3,$4,$5
26603 multu $ac3,$4,$5' > conftest.s
26604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }
26610 then
26611 gcc_cv_as_mips_dspr1_mult=yes
26612 else
26613 echo "configure: failed program was" >&5
26614 cat conftest.s >&5
26615 fi
26616 rm -f conftest.o conftest.s
26617 fi
26618 fi
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26620 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26621 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26622
26623 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26624
26625 fi
26626
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26628 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26629 gcc_cv_as_ld_jalr_reloc=no
26630 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26631 if test $in_tree_ld = yes ; then
26632 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 \
26633 && test $in_tree_ld_is_elf = yes; then
26634 gcc_cv_as_ld_jalr_reloc=yes
26635 fi
26636 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26637 echo ' .ent x' > conftest.s
26638 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26639 echo ' lw $25,%call16(y)($28)' >> conftest.s
26640 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26641 echo '1: jalr $25' >> conftest.s
26642 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26643 echo '1: jalr $25' >> conftest.s
26644 echo ' .end x' >> conftest.s
26645 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26646 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26647 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26648 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26649 gcc_cv_as_ld_jalr_reloc=yes
26650 fi
26651 fi
26652 rm -f conftest.*
26653 fi
26654 fi
26655 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26656 if test x$target_cpu_default = x; then
26657 target_cpu_default=MASK_RELAX_PIC_CALLS
26658 else
26659 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26660 fi
26661 fi
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26663 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26664
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26666 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26667 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26668 $as_echo_n "(cached) " >&6
26669 else
26670 gcc_cv_ld_mips_personality_relaxation=no
26671 if test $in_tree_ld = yes ; then
26672 if test "$gcc_cv_gld_major_version" -eq 2 \
26673 -a "$gcc_cv_gld_minor_version" -ge 21 \
26674 -o "$gcc_cv_gld_major_version" -gt 2; then
26675 gcc_cv_ld_mips_personality_relaxation=yes
26676 fi
26677 elif test x$gcc_cv_as != x \
26678 -a x$gcc_cv_ld != x \
26679 -a x$gcc_cv_readelf != x ; then
26680 cat > conftest.s <<EOF
26681 .cfi_startproc
26682 .cfi_personality 0x80,indirect_ptr
26683 .ent test
26684 test:
26685 nop
26686 .end test
26687 .cfi_endproc
26688
26689 .section .data,"aw",@progbits
26690 indirect_ptr:
26691 .dc.a personality
26692 EOF
26693 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26694 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26695 if $gcc_cv_readelf -d conftest 2>&1 \
26696 | grep TEXTREL > /dev/null 2>&1; then
26697 :
26698 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26699 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26700 :
26701 else
26702 gcc_cv_ld_mips_personality_relaxation=yes
26703 fi
26704 fi
26705 fi
26706 rm -f conftest.s conftest.o conftest
26707 fi
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26709 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26710 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26711
26712 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26713
26714 fi
26715
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26717 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26718 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_mips_nan=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo '' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -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_mips_nan=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_mips_nan" >&5
26740 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26741 if test $gcc_cv_as_mips_nan = yes; then
26742
26743 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26744
26745 fi
26746 if test x$gcc_cv_as_mips_nan = xno \
26747 && test x$with_nan != x; then
26748 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26749 fi
26750 ;;
26751 s390*-*-*)
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26753 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26754 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26755 $as_echo_n "(cached) " >&6
26756 else
26757 gcc_cv_as_s390_gnu_attribute=no
26758 if test $in_tree_gas = yes; then
26759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26760 then gcc_cv_as_s390_gnu_attribute=yes
26761 fi
26762 elif test x$gcc_cv_as != x; then
26763 $as_echo '.gnu_attribute 8,1' > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_s390_gnu_attribute=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26775 fi
26776 rm -f conftest.o conftest.s
26777 fi
26778 fi
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26780 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26781 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26782
26783 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26784
26785 fi
26786 ;;
26787 esac
26788
26789 # Mips and HP-UX need the GNU assembler.
26790 # Linux on IA64 might be able to use the Intel assembler.
26791
26792 case "$target" in
26793 mips*-*-* | *-*-hpux* )
26794 if test x$gas_flag = xyes \
26795 || test x"$host" != x"$build" \
26796 || test ! -x "$gcc_cv_as" \
26797 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26798 :
26799 else
26800 echo "*** This configuration requires the GNU assembler" >&2
26801 exit 1
26802 fi
26803 ;;
26804 esac
26805
26806 # ??? Not all targets support dwarf2 debug_line, even within a version
26807 # of gas. Moreover, we need to emit a valid instruction to trigger any
26808 # info to the output file. So, as supported targets are added to gas 2.11,
26809 # add some instruction here to (also) show we expect this might work.
26810 # ??? Once 2.11 is released, probably need to add first known working
26811 # version to the per-target configury.
26812 case "$cpu_type" in
26813 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26814 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26815 | visium | xstormy16 | xtensa)
26816 insn="nop"
26817 ;;
26818 ia64 | s390)
26819 insn="nop 0"
26820 ;;
26821 mmix)
26822 insn="swym 0"
26823 ;;
26824 esac
26825 if test x"$insn" != x; then
26826 conftest_s="\
26827 .file 1 \"conftest.s\"
26828 .loc 1 3 0
26829 $insn"
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26831 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26832 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26833 $as_echo_n "(cached) " >&6
26834 else
26835 gcc_cv_as_dwarf2_debug_line=no
26836 if test $in_tree_gas = yes; then
26837 if test $in_tree_gas_is_elf = yes \
26838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26839 then gcc_cv_as_dwarf2_debug_line=yes
26840 fi
26841 elif test x$gcc_cv_as != x; then
26842 $as_echo "$conftest_s" > conftest.s
26843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26848 test $ac_status = 0; }; }
26849 then
26850 if test x$gcc_cv_objdump != x \
26851 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26852 | grep debug_line > /dev/null 2>&1; then
26853 gcc_cv_as_dwarf2_debug_line=yes
26854 fi
26855 else
26856 echo "configure: failed program was" >&5
26857 cat conftest.s >&5
26858 fi
26859 rm -f conftest.o conftest.s
26860 fi
26861 fi
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26863 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26864
26865
26866 # The .debug_line file table must be in the exact order that
26867 # we specified the files, since these indices are also used
26868 # by DW_AT_decl_file. Approximate this test by testing if
26869 # the assembler bitches if the same index is assigned twice.
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26871 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26872 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_dwarf2_file_buggy=no
26876 if test x$gcc_cv_as != x; then
26877 $as_echo ' .file 1 "foo.s"
26878 .file 1 "bar.s"' > conftest.s
26879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26885 then
26886 gcc_cv_as_dwarf2_file_buggy=yes
26887 else
26888 echo "configure: failed program was" >&5
26889 cat conftest.s >&5
26890 fi
26891 rm -f conftest.o conftest.s
26892 fi
26893 fi
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26895 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26896
26897
26898 if test $gcc_cv_as_dwarf2_debug_line = yes \
26899 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26900
26901 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26902
26903 fi
26904
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26906 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26907 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26908 $as_echo_n "(cached) " >&6
26909 else
26910 gcc_cv_as_gdwarf2_flag=no
26911 if test $in_tree_gas = yes; then
26912 if test $in_tree_gas_is_elf = yes \
26913 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26914 then gcc_cv_as_gdwarf2_flag=yes
26915 fi
26916 elif test x$gcc_cv_as != x; then
26917 $as_echo "$insn" > conftest.s
26918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26924 then
26925 gcc_cv_as_gdwarf2_flag=yes
26926 else
26927 echo "configure: failed program was" >&5
26928 cat conftest.s >&5
26929 fi
26930 rm -f conftest.o conftest.s
26931 fi
26932 fi
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26934 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26935 if test $gcc_cv_as_gdwarf2_flag = yes; then
26936
26937 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26938
26939 fi
26940
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26942 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26943 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26944 $as_echo_n "(cached) " >&6
26945 else
26946 gcc_cv_as_gstabs_flag=no
26947 if test $in_tree_gas = yes; then
26948 if test $in_tree_gas_is_elf = yes \
26949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26950 then gcc_cv_as_gstabs_flag=yes
26951 fi
26952 elif test x$gcc_cv_as != x; then
26953 $as_echo "$insn" > conftest.s
26954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26959 test $ac_status = 0; }; }
26960 then
26961 gcc_cv_as_gstabs_flag=yes
26962 else
26963 echo "configure: failed program was" >&5
26964 cat conftest.s >&5
26965 fi
26966 rm -f conftest.o conftest.s
26967 fi
26968 fi
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26970 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26971 if test $gcc_cv_as_gstabs_flag = yes; then
26972
26973 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26974
26975 fi
26976
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26978 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26979 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26981 else
26982 gcc_cv_as_debug_prefix_map_flag=no
26983 if test $in_tree_gas = yes; then
26984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26985 then gcc_cv_as_debug_prefix_map_flag=yes
26986 fi
26987 elif test x$gcc_cv_as != x; then
26988 $as_echo "$insn" > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26995 then
26996 gcc_cv_as_debug_prefix_map_flag=yes
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27000 fi
27001 rm -f conftest.o conftest.s
27002 fi
27003 fi
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27005 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27006 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27007
27008 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27009
27010 fi
27011 fi
27012
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27014 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27015 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27016 $as_echo_n "(cached) " >&6
27017 else
27018 gcc_cv_as_compress_debug=no
27019 if test x$gcc_cv_as != x; then
27020 $as_echo '' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 # gas compiled without zlib cannot compress debug sections and warns
27029 # about it, but still exits successfully. So check for this, too.
27030 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27031 then
27032 gcc_cv_as_compress_debug=0
27033 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27034 then
27035 gcc_cv_as_compress_debug=1
27036 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27037 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27038 else
27039 gcc_cv_as_compress_debug=0
27040 # FIXME: Future gas versions will support ELF gABI style via
27041 # --compress-debug-sections[=type].
27042 fi
27043 else
27044 echo "configure: failed program was" >&5
27045 cat conftest.s >&5
27046 fi
27047 rm -f conftest.o conftest.s
27048 fi
27049 fi
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27051 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27052
27053
27054 cat >>confdefs.h <<_ACEOF
27055 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27056 _ACEOF
27057
27058
27059 cat >>confdefs.h <<_ACEOF
27060 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27061 _ACEOF
27062
27063
27064 cat >>confdefs.h <<_ACEOF
27065 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27066 _ACEOF
27067
27068
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27070 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27071 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27072 $as_echo_n "(cached) " >&6
27073 else
27074 gcc_cv_as_lcomm_with_alignment=no
27075 if test x$gcc_cv_as != x; then
27076 $as_echo '.lcomm bar,4,16' > conftest.s
27077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; }
27083 then
27084 gcc_cv_as_lcomm_with_alignment=yes
27085 else
27086 echo "configure: failed program was" >&5
27087 cat conftest.s >&5
27088 fi
27089 rm -f conftest.o conftest.s
27090 fi
27091 fi
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27093 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27094 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27095
27096 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27097
27098 fi
27099
27100 if test x$with_sysroot = x && test x$host = x$target \
27101 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27102 && test "$prefix" != "NONE"; then
27103
27104 cat >>confdefs.h <<_ACEOF
27105 #define PREFIX_INCLUDE_DIR "$prefix/include"
27106 _ACEOF
27107
27108 fi
27109
27110 # Determine the version of glibc, if any, used on the target.
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27112 $as_echo_n "checking for target glibc version... " >&6; }
27113
27114 # Check whether --with-glibc-version was given.
27115 if test "${with_glibc_version+set}" = set; then :
27116 withval=$with_glibc_version;
27117 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27118 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27119 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27120 else
27121 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27122 fi
27123 else
27124
27125 glibc_version_major=0
27126 glibc_version_minor=0
27127 if test -f $target_header_dir/features.h \
27128 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27129 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27130 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27131 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27132 fi
27133 fi
27134
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27136 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27137
27138 cat >>confdefs.h <<_ACEOF
27139 #define TARGET_GLIBC_MAJOR $glibc_version_major
27140 _ACEOF
27141
27142
27143 cat >>confdefs.h <<_ACEOF
27144 #define TARGET_GLIBC_MINOR $glibc_version_minor
27145 _ACEOF
27146
27147
27148 # Check whether --enable-gnu-unique-object was given.
27149 if test "${enable_gnu_unique_object+set}" = set; then :
27150 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27151 yes | no) ;;
27152 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27153 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27154 esac
27155 else
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27157 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27158 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27159 $as_echo_n "(cached) " >&6
27160 else
27161 gcc_cv_as_gnu_unique_object=no
27162 if test $in_tree_gas = yes; then
27163 if test $in_tree_gas_is_elf = yes \
27164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27165 then gcc_cv_as_gnu_unique_object=yes
27166 fi
27167 elif test x$gcc_cv_as != x; then
27168 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27175 then
27176 gcc_cv_as_gnu_unique_object=yes
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27180 fi
27181 rm -f conftest.o conftest.s
27182 fi
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27185 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27186 if test $gcc_cv_as_gnu_unique_object = yes; then
27187 # We need to unquote above to to use the definition from config.gcc.
27188 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27189
27190 if test $glibc_version_major -gt 2 \
27191 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27192 enable_gnu_unique_object=yes
27193 fi
27194
27195 fi
27196 fi
27197
27198 if test x$enable_gnu_unique_object = xyes; then
27199
27200 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27201
27202 fi
27203
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27205 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27206 if test "${gcc_cv_as_line_zero+set}" = set; then :
27207 $as_echo_n "(cached) " >&6
27208 else
27209 gcc_cv_as_line_zero=no
27210 if test $in_tree_gas = yes; then
27211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27212 then gcc_cv_as_line_zero=yes
27213 fi
27214 elif test "x$gcc_cv_as" != x; then
27215 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27216 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; } &&
27222 test "x`cat conftest.out`" = x
27223 then
27224 gcc_cv_as_line_zero=yes
27225 else
27226 echo "configure: failed program was" >&5
27227 cat conftest.s >&5
27228 echo "configure: error output was" >&5
27229 cat conftest.out >&5
27230 fi
27231 rm -f conftest.o conftest.s conftest.out
27232 fi
27233 fi
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27235 $as_echo "$gcc_cv_as_line_zero" >&6; }
27236 if test "x$gcc_cv_as_line_zero" = xyes; then
27237
27238 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27239
27240 fi
27241
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27243 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27244 gcc_cv_ld_eh_frame_hdr=no
27245 if test $in_tree_ld = yes ; then
27246 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 \
27247 && test $in_tree_ld_is_elf = yes; then
27248 gcc_cv_ld_eh_frame_hdr=yes
27249 fi
27250 elif test x$gcc_cv_ld != x; then
27251 if echo "$ld_ver" | grep GNU > /dev/null; then
27252 # Check if linker supports --eh-frame-hdr option
27253 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27254 gcc_cv_ld_eh_frame_hdr=yes
27255 fi
27256 else
27257 case "$target" in
27258 *-*-solaris2*)
27259 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27260 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27261 gcc_cv_ld_eh_frame_hdr=yes
27262 fi
27263 ;;
27264 esac
27265 fi
27266 fi
27267
27268 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27269
27270 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27271
27272 fi
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27274 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27275
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27277 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27278 gcc_cv_ld_eh_frame_ciev3=no
27279 if test $in_tree_ld = yes ; then
27280 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 \
27281 && test $in_tree_ld_is_elf = yes; then
27282 gcc_cv_ld_eh_frame_ciev3=yes
27283 fi
27284 elif test x$gcc_cv_ld != x; then
27285 if echo "$ld_ver" | grep GNU > /dev/null; then
27286 gcc_cv_ld_eh_frame_ciev3=yes
27287 if test 0"$ld_date" -lt 20040513; then
27288 if test -n "$ld_date"; then
27289 # If there was date string, but was earlier than 2004-05-13, fail
27290 gcc_cv_ld_eh_frame_ciev3=no
27291 elif test "$ld_vers_major" -lt 2; then
27292 gcc_cv_ld_eh_frame_ciev3=no
27293 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27294 gcc_cv_ld_eh_frame_ciev3=no
27295 fi
27296 fi
27297 else
27298 case "$target" in
27299 *-*-solaris2*)
27300 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27301 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27302 gcc_cv_ld_eh_frame_ciev3=yes
27303 fi
27304 ;;
27305 esac
27306 fi
27307 fi
27308
27309 cat >>confdefs.h <<_ACEOF
27310 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27311 _ACEOF
27312
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27314 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27315
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27317 $as_echo_n "checking linker position independent executable support... " >&6; }
27318 gcc_cv_ld_pie=no
27319 if test $in_tree_ld = yes ; then
27320 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 \
27321 && test $in_tree_ld_is_elf = yes; then
27322 gcc_cv_ld_pie=yes
27323 fi
27324 elif test x$gcc_cv_ld != x; then
27325 # Check if linker supports -pie option
27326 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27327 gcc_cv_ld_pie=yes
27328 fi
27329 fi
27330 if test x"$gcc_cv_ld_pie" = xyes; then
27331
27332 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27333
27334 fi
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27336 $as_echo "$gcc_cv_ld_pie" >&6; }
27337
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27339 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27340 gcc_cv_ld_pie_copyreloc=no
27341 if test $gcc_cv_ld_pie = yes ; then
27342 if test $in_tree_ld = yes ; then
27343 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27344 gcc_cv_ld_pie_copyreloc=yes
27345 fi
27346 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27347 # Check if linker supports -pie option with copy reloc
27348 case "$target" in
27349 i?86-*-linux* | x86_64-*-linux*)
27350 cat > conftest1.s <<EOF
27351 .globl a_glob
27352 .data
27353 .type a_glob, @object
27354 .size a_glob, 4
27355 a_glob:
27356 .long 2
27357 EOF
27358 cat > conftest2.s <<EOF
27359 .text
27360 .globl main
27361 .type main, @function
27362 main:
27363 movl %eax, a_glob(%rip)
27364 .size main, .-main
27365 .globl ptr
27366 .section .data.rel,"aw",@progbits
27367 .type ptr, @object
27368 ptr:
27369 .quad a_glob
27370 EOF
27371 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27372 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27373 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27374 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27375 gcc_cv_ld_pie_copyreloc=yes
27376 fi
27377 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27378 ;;
27379 esac
27380 fi
27381 fi
27382
27383 cat >>confdefs.h <<_ACEOF
27384 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27385 _ACEOF
27386
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27388 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27389
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27391 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27392 gcc_cv_ld_eh_gc_sections=no
27393 if test $in_tree_ld = yes ; then
27394 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 \
27395 && test $in_tree_ld_is_elf = yes; then
27396 gcc_cv_ld_eh_gc_sections=yes
27397 fi
27398 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27399 cat > conftest.s <<EOF
27400 .section .text
27401 .globl _start
27402 .type _start, @function
27403 _start:
27404 .long foo
27405 .size _start, .-_start
27406 .section .text.foo,"ax",@progbits
27407 .type foo, @function
27408 foo:
27409 .long 0
27410 .size foo, .-foo
27411 .section .gcc_except_table.foo,"a",@progbits
27412 .L0:
27413 .long 0
27414 .section .eh_frame,"a",@progbits
27415 .long .L0
27416 EOF
27417 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27418 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27419 | grep "gc-sections option ignored" > /dev/null; then
27420 gcc_cv_ld_eh_gc_sections=no
27421 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27422 | grep gcc_except_table > /dev/null; then
27423 gcc_cv_ld_eh_gc_sections=yes
27424 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27425 if test x$gcc_cv_as_comdat_group != xyes; then
27426 gcc_cv_ld_eh_gc_sections=no
27427 cat > conftest.s <<EOF
27428 .section .text
27429 .globl _start
27430 .type _start, @function
27431 _start:
27432 .long foo
27433 .size _start, .-_start
27434 .section .gnu.linkonce.t.foo,"ax",@progbits
27435 .type foo, @function
27436 foo:
27437 .long 0
27438 .size foo, .-foo
27439 .section .gcc_except_table.foo,"a",@progbits
27440 .L0:
27441 .long 0
27442 .section .eh_frame,"a",@progbits
27443 .long .L0
27444 EOF
27445 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27446 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27447 | grep "gc-sections option ignored" > /dev/null; then
27448 gcc_cv_ld_eh_gc_sections=no
27449 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27450 | grep gcc_except_table > /dev/null; then
27451 gcc_cv_ld_eh_gc_sections=yes
27452 fi
27453 fi
27454 fi
27455 fi
27456 fi
27457 rm -f conftest.s conftest.o conftest
27458 fi
27459 case "$target" in
27460 hppa*-*-linux*)
27461 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27462 gcc_cv_ld_eh_gc_sections=no
27463 ;;
27464 esac
27465 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27466
27467 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27468
27469 fi
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27471 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27472
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27474 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27475 gcc_cv_ld_eh_gc_sections_bug=no
27476 if test $in_tree_ld = yes ; then
27477 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 \
27478 && test $in_tree_ld_is_elf = yes; then
27479 gcc_cv_ld_eh_gc_sections_bug=yes
27480 fi
27481 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
27482 gcc_cv_ld_eh_gc_sections_bug=yes
27483 cat > conftest.s <<EOF
27484 .section .text
27485 .globl _start
27486 .type _start, @function
27487 _start:
27488 .long foo
27489 .size _start, .-_start
27490 .section .text.startup.foo,"ax",@progbits
27491 .type foo, @function
27492 foo:
27493 .long 0
27494 .size foo, .-foo
27495 .section .gcc_except_table.foo,"a",@progbits
27496 .L0:
27497 .long 0
27498 .section .eh_frame,"a",@progbits
27499 .long .L0
27500 EOF
27501 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27502 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27503 | grep "gc-sections option ignored" > /dev/null; then
27504 :
27505 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27506 | grep gcc_except_table > /dev/null; then
27507 gcc_cv_ld_eh_gc_sections_bug=no
27508 fi
27509 fi
27510 rm -f conftest.s conftest.o conftest
27511 fi
27512 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27513
27514 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27515
27516 fi
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27518 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27519
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27521 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27522 # gold/gld support compressed debug sections since binutils 2.19/2.21
27523 if test $in_tree_ld = yes ; then
27524 gcc_cv_ld_compress_debug=0
27525 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 \
27526 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27527 gcc_cv_ld_compress_debug=2
27528 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27529 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 \
27530 && test $in_tree_ld_is_elf = yes; then
27531 gcc_cv_ld_compress_debug=1
27532 fi
27533 elif echo "$ld_ver" | grep GNU > /dev/null; then
27534 gcc_cv_ld_compress_debug=1
27535 if test 0"$ld_date" -lt 20050308; then
27536 if test -n "$ld_date"; then
27537 # If there was date string, but was earlier than 2005-03-08, fail
27538 gcc_cv_ld_compress_debug=0
27539 elif test "$ld_vers_major" -lt 2; then
27540 gcc_cv_ld_compress_debug=0
27541 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27542 gcc_cv_ld_compress_debug=0
27543 fi
27544 fi
27545 if test $ld_is_gold = yes; then
27546 gcc_cv_ld_compress_debug=2
27547 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27548 fi
27549 else
27550 case "${target}" in
27551 *-*-solaris2*)
27552 # Introduced in Solaris 11.2.
27553 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27554 gcc_cv_ld_compress_debug=3
27555 gcc_cv_ld_compress_debug_option="-z compress-sections"
27556 else
27557 gcc_cv_ld_compress_debug=0
27558 fi
27559 ;;
27560 *)
27561 # Assume linkers other than GNU ld don't support compessed debug
27562 # sections.
27563 gcc_cv_ld_compress_debug=0
27564 ;;
27565 esac
27566 fi
27567
27568 cat >>confdefs.h <<_ACEOF
27569 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27570 _ACEOF
27571
27572
27573 cat >>confdefs.h <<_ACEOF
27574 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27575 _ACEOF
27576
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27578 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27579
27580 # --------
27581 # UNSORTED
27582 # --------
27583
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27585 $as_echo_n "checking linker --as-needed support... " >&6; }
27586 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27587 $as_echo_n "(cached) " >&6
27588 else
27589 gcc_cv_ld_as_needed=no
27590 gcc_cv_ld_as_needed_option='--as-needed'
27591 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27592 if test $in_tree_ld = yes ; then
27593 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 \
27594 && test $in_tree_ld_is_elf = yes; then
27595 gcc_cv_ld_as_needed=yes
27596 fi
27597 elif test x$gcc_cv_ld != x; then
27598 # Check if linker supports --as-needed and --no-as-needed options
27599 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27600 gcc_cv_ld_as_needed=yes
27601 else
27602 case "$target" in
27603 # Solaris 2 ld always supports -z ignore/-z record.
27604 *-*-solaris2*)
27605 gcc_cv_ld_as_needed=yes
27606 gcc_cv_ld_as_needed_option="-z ignore"
27607 gcc_cv_ld_no_as_needed_option="-z record"
27608 ;;
27609 esac
27610 fi
27611 fi
27612 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27613 # dl_iterate_phdr, i.e. since Solaris 11.
27614 case "$target" in
27615 *-*-solaris2.1[1-9]*)
27616 case "$target" in
27617 i?86-*-* | x86_64-*-*)
27618 if echo "$ld_ver" | grep GNU > /dev/null; then
27619 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27620 gcc_cv_ld_as_needed=no
27621 fi
27622 ;;
27623 esac
27624 ;;
27625 *-*-solaris2*)
27626 gcc_cv_ld_as_needed=no
27627 ;;
27628 esac
27629
27630 fi
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27632 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27633 if test x"$gcc_cv_ld_as_needed" = xyes; then
27634
27635 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27636
27637
27638 cat >>confdefs.h <<_ACEOF
27639 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27640 _ACEOF
27641
27642
27643 cat >>confdefs.h <<_ACEOF
27644 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27645 _ACEOF
27646
27647 fi
27648
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27650 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27651 saved_LDFLAGS="$LDFLAGS"
27652 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27653 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h. */
27656 int main(void) {return 0;}
27657 _ACEOF
27658 if ac_fn_cxx_try_link "$LINENO"; then :
27659 gcc_cv_ld_clearcap=yes; break
27660 else
27661 gcc_cv_ld_clearcap=no
27662 fi
27663 rm -f core conftest.err conftest.$ac_objext \
27664 conftest$ac_exeext conftest.$ac_ext
27665 done
27666 LDFLAGS="$saved_LDFLAGS"
27667 if test "x$gcc_cv_ld_clearcap" = xyes; then
27668
27669 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27670
27671 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27672
27673 fi
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27675 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27676
27677 case "$target:$tm_file" in
27678 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27679 case "$target" in
27680 *le-*-linux*)
27681 emul_name="-melf64lppc"
27682 ;;
27683 *-*-linux*)
27684 emul_name="-melf64ppc"
27685 ;;
27686 *-*-freebsd*)
27687 emul_name="-melf64ppc_fbsd"
27688 ;;
27689 esac
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27691 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27692 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27693 $as_echo_n "(cached) " >&6
27694 else
27695 gcc_cv_ld_no_dot_syms=no
27696 if test x"$ld_is_gold" = xyes; then
27697 gcc_cv_ld_no_dot_syms=yes
27698 elif test $in_tree_ld = yes ; then
27699 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
27700 gcc_cv_ld_no_dot_syms=yes
27701 fi
27702 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27703 cat > conftest1.s <<EOF
27704 .text
27705 bl .foo
27706 EOF
27707 cat > conftest2.s <<EOF
27708 .section ".opd","aw"
27709 .align 3
27710 .globl foo
27711 .type foo,@function
27712 foo:
27713 .quad .LEfoo,.TOC.@tocbase,0
27714 .text
27715 .LEfoo:
27716 blr
27717 .size foo,.-.LEfoo
27718 EOF
27719 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27720 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27721 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27722 gcc_cv_ld_no_dot_syms=yes
27723 fi
27724 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27725 fi
27726
27727 fi
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27729 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27730 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27731
27732 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27733
27734 fi
27735
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27737 $as_echo_n "checking linker large toc support... " >&6; }
27738 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27739 $as_echo_n "(cached) " >&6
27740 else
27741 gcc_cv_ld_large_toc=no
27742 if test x"$ld_is_gold" = xyes; then
27743 gcc_cv_ld_large_toc=yes
27744 elif test $in_tree_ld = yes ; then
27745 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
27746 gcc_cv_ld_large_toc=yes
27747 fi
27748 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27749 cat > conftest.s <<EOF
27750 .section ".tbss","awT",@nobits
27751 .align 3
27752 ie0: .space 8
27753 .global _start
27754 .text
27755 _start:
27756 addis 9,13,ie0@got@tprel@ha
27757 ld 9,ie0@got@tprel@l(9)
27758 EOF
27759 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27760 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27761 gcc_cv_ld_large_toc=yes
27762 fi
27763 rm -f conftest conftest.o conftest.s
27764 fi
27765
27766 fi
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27768 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27769 if test x"$gcc_cv_ld_large_toc" = xyes; then
27770
27771 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27772
27773 fi
27774
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27776 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27777 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27778 $as_echo_n "(cached) " >&6
27779 else
27780 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27781 cat > conftest.s <<EOF
27782 .global _start
27783 .text
27784 _start:
27785 addis 9,2,x@got@ha
27786 .section .data.rel.ro,"aw",@progbits
27787 .p2align 16
27788 .space 32768
27789 x: .quad .TOC.
27790 EOF
27791 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27792 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27793 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27794 fi
27795 rm -f conftest conftest.o conftest.s
27796 fi
27797
27798 fi
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27800 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27801 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27802
27803 cat >>confdefs.h <<_ACEOF
27804 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27805 _ACEOF
27806
27807 fi
27808 ;;
27809 esac
27810
27811 case "$target" in
27812 *-*-aix*)
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27814 $as_echo_n "checking linker large toc support... " >&6; }
27815 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27816 $as_echo_n "(cached) " >&6
27817 else
27818 gcc_cv_ld_large_toc=no
27819 if test x$gcc_cv_as != x ; then
27820 cat > conftest.s <<EOF
27821 .toc
27822 LC..1:
27823 .tc a[TC],a[RW]
27824 .extern a[RW]
27825 .csect .text[PR]
27826 .largetoctest:
27827 addis 9,LC..1@u(2)
27828 ld 3,LC..1@l(9)
27829 EOF
27830 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27831 gcc_cv_ld_large_toc=yes
27832 fi
27833 rm -f conftest conftest.o conftest.s
27834 fi
27835
27836 fi
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27838 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27839 if test x"$gcc_cv_ld_large_toc" = xyes; then
27840
27841 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27842
27843 fi
27844 ;;
27845 esac
27846
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27848 $as_echo_n "checking linker --build-id support... " >&6; }
27849 if test "${gcc_cv_ld_buildid+set}" = set; then :
27850 $as_echo_n "(cached) " >&6
27851 else
27852 gcc_cv_ld_buildid=no
27853 if test $in_tree_ld = yes ; then
27854 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27855 "$gcc_cv_gld_minor_version" -ge 18 -o \
27856 "$gcc_cv_gld_major_version" -gt 2 \
27857 && test $in_tree_ld_is_elf = yes; then
27858 gcc_cv_ld_buildid=yes
27859 fi
27860 elif test x$gcc_cv_ld != x; then
27861 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27862 gcc_cv_ld_buildid=yes
27863 fi
27864 fi
27865 fi
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27867 $as_echo "$gcc_cv_ld_buildid" >&6; }
27868 if test x"$gcc_cv_ld_buildid" = xyes; then
27869
27870 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27871
27872 fi
27873
27874 # Check whether --enable-linker-build-id was given.
27875 if test "${enable_linker_build_id+set}" = set; then :
27876 enableval=$enable_linker_build_id;
27877 else
27878 enable_linker_build_id=no
27879 fi
27880
27881
27882 if test x"$enable_linker_build_id" = xyes; then
27883 if test x"$gcc_cv_ld_buildid" = xyes; then
27884
27885 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27886
27887 else
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27889 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27890 fi
27891 fi
27892
27893 # In binutils 2.21, GNU ld gained support for new emulations fully
27894 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27896 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27897 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27898 $as_echo_n "(cached) " >&6
27899 else
27900 gcc_cv_ld_sol2_emulation=no
27901 if test $in_tree_ld = yes ; then
27902 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27903 "$gcc_cv_gld_minor_version" -ge 21 -o \
27904 "$gcc_cv_gld_major_version" -gt 2 \
27905 && test $in_tree_ld_is_elf = yes; then
27906 gcc_cv_ld_sol2_emulation=yes
27907 fi
27908 elif test x$gcc_cv_ld != x; then
27909 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27910 grep _sol2 > /dev/null; then
27911 gcc_cv_ld_sol2_emulation=yes
27912 fi
27913 fi
27914 fi
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27916 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27917 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27918
27919 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27920
27921 fi
27922
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27924 $as_echo_n "checking linker --sysroot support... " >&6; }
27925 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27926 $as_echo_n "(cached) " >&6
27927 else
27928 gcc_cv_ld_sysroot=no
27929 if test $in_tree_ld = yes ; then
27930 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
27931 gcc_cv_ld_sysroot=yes
27932 fi
27933 elif test x$gcc_cv_ld != x; then
27934 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27935 gcc_cv_ld_sysroot=yes
27936 fi
27937 fi
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27940 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27941 if test x"$gcc_cv_ld_sysroot" = xyes; then
27942
27943 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27944
27945 fi
27946
27947 # Test for stack protector support in target C library.
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27949 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27950 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27951 $as_echo_n "(cached) " >&6
27952 else
27953 gcc_cv_libc_provides_ssp=no
27954 case "$target" in
27955 *-*-musl*)
27956 # All versions of musl provide stack protector
27957 gcc_cv_libc_provides_ssp=yes;;
27958 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27959 # glibc 2.4 and later provides __stack_chk_fail and
27960 # either __stack_chk_guard, or TLS access to stack guard canary.
27961
27962 if test $glibc_version_major -gt 2 \
27963 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27964 gcc_cv_libc_provides_ssp=yes
27965 else
27966
27967 if test -f $target_header_dir/features.h \
27968 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27969 $target_header_dir/features.h > /dev/null; then
27970 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27971 $target_header_dir/features.h > /dev/null && \
27972 test -f $target_header_dir/bits/uClibc_config.h && \
27973 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27974 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27975 gcc_cv_libc_provides_ssp=yes
27976 fi
27977 # all versions of Bionic support stack protector
27978 elif test -f $target_header_dir/sys/cdefs.h \
27979 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27980 $target_header_dir/sys/cdefs.h > /dev/null; then
27981 gcc_cv_libc_provides_ssp=yes
27982 fi
27983 fi
27984 ;;
27985 *-*-gnu*)
27986 # Avoid complicated tests (see
27987 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27988 # simply assert that glibc does provide this, which is true for all
27989 # realistically usable GNU/Hurd configurations.
27990 # All supported versions of musl provide it as well
27991 gcc_cv_libc_provides_ssp=yes;;
27992 *-*-darwin* | *-*-freebsd*)
27993 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27994 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27995 gcc_cv_libc_provides_ssp=yes
27996 else
27997 echo "no __stack_chk_fail on this target"
27998 fi
27999
28000 ;;
28001 *) gcc_cv_libc_provides_ssp=no ;;
28002 esac
28003 fi
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28005 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28006
28007 if test x$gcc_cv_libc_provides_ssp = xyes; then
28008
28009 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28010
28011 fi
28012
28013 # Test for <sys/sdt.h> on the target.
28014
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28016 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28017 have_sys_sdt_h=no
28018 if test -f $target_header_dir/sys/sdt.h; then
28019 have_sys_sdt_h=yes
28020
28021 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28022
28023 fi
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28025 $as_echo "$have_sys_sdt_h" >&6; }
28026
28027 # Check if TFmode long double should be used by default or not.
28028 # Some glibc targets used DFmode long double, but with glibc 2.4
28029 # and later they can use TFmode.
28030 case "$target" in
28031 powerpc*-*-linux* | \
28032 sparc*-*-linux* | \
28033 s390*-*-linux* | \
28034 alpha*-*-linux*)
28035
28036 # Check whether --with-long-double-128 was given.
28037 if test "${with_long_double_128+set}" = set; then :
28038 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28039 else
28040
28041 if test $glibc_version_major -gt 2 \
28042 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28043 gcc_cv_target_ldbl128=yes
28044 else
28045
28046 gcc_cv_target_ldbl128=no
28047 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28048 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28049 && gcc_cv_target_ldbl128=yes
28050
28051 fi
28052 fi
28053
28054 ;;
28055 esac
28056 if test x$gcc_cv_target_ldbl128 = xyes; then
28057
28058 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28059
28060 fi
28061
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28063 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28064 gcc_cv_target_dl_iterate_phdr=unknown
28065 case "$target" in
28066 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28067 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28068 # libdl there, both complicating its use and breaking compatibility
28069 # between Solaris 10 updates.
28070 *-*-solaris2.1[1-9]*)
28071 # <link.h> needs both a dl_iterate_phdr declaration and support for
28072 # compilation with largefile support.
28073 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28074 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28075 gcc_cv_target_dl_iterate_phdr=yes
28076 else
28077 gcc_cv_target_dl_iterate_phdr=no
28078 fi
28079 ;;
28080 *-*-dragonfly* | *-*-freebsd*)
28081 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28082 gcc_cv_target_dl_iterate_phdr=yes
28083 else
28084 gcc_cv_target_dl_iterate_phdr=no
28085 fi
28086 ;;
28087 *-linux-musl*)
28088 gcc_cv_target_dl_iterate_phdr=yes
28089 ;;
28090 esac
28091
28092 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28093
28094 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28095
28096 fi
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28098 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28099
28100 # We no longer support different GC mechanisms. Emit an error if
28101 # the user configures with --with-gc.
28102
28103 # Check whether --with-gc was given.
28104 if test "${with_gc+set}" = set; then :
28105 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28106 fi
28107
28108
28109 # Libraries to use on the host. This will normally be set by the top
28110 # level Makefile. Here we simply capture the value for our Makefile.
28111 if test -z "${HOST_LIBS+set}"; then
28112 HOST_LIBS=
28113 fi
28114
28115
28116 # Use the system's zlib library.
28117
28118 # Use the system's zlib library.
28119 zlibdir="-L\$(top_builddir)/../zlib"
28120 zlibinc="-I\$(top_srcdir)/../zlib"
28121
28122 # Check whether --with-system-zlib was given.
28123 if test "${with_system_zlib+set}" = set; then :
28124 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28125 zlibdir=
28126 zlibinc=
28127 fi
28128
28129 fi
28130
28131
28132
28133
28134
28135
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28137 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28138 # Check whether --enable-maintainer-mode was given.
28139 if test "${enable_maintainer_mode+set}" = set; then :
28140 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28141 else
28142 maintainer_mode=no
28143 fi
28144
28145
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28147 $as_echo "$maintainer_mode" >&6; }
28148
28149 if test "$maintainer_mode" = "yes"; then
28150 MAINT=''
28151 else
28152 MAINT='#'
28153 fi
28154
28155
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28157 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28158 # Check whether --enable-link-mutex was given.
28159 if test "${enable_link_mutex+set}" = set; then :
28160 enableval=$enable_link_mutex; do_link_mutex=$enableval
28161 else
28162 do_link_mutex=no
28163 fi
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28166 $as_echo "$do_link_mutex" >&6; }
28167
28168 if test "$do_link_mutex" = "yes"; then
28169 DO_LINK_MUTEX=true
28170 else
28171 DO_LINK_MUTEX=false
28172 fi
28173
28174
28175 # --------------
28176 # Language hooks
28177 # --------------
28178
28179 # Make empty files to contain the specs and options for each language.
28180 # Then add #include lines to for a compiler that has specs and/or options.
28181
28182 subdirs=
28183 lang_opt_files=
28184 lang_specs_files=
28185 lang_tree_files=
28186 # These (without "all_") are set in each config-lang.in.
28187 # `language' must be a single word so is spelled singularly.
28188 all_languages=
28189 all_compilers=
28190 all_outputs='Makefile'
28191 # List of language makefile fragments.
28192 all_lang_makefrags=
28193 # Additional files for gengtype
28194 all_gtfiles="$target_gtfiles"
28195
28196 # These are the languages that are set in --enable-languages,
28197 # and are available in the GCC tree.
28198 all_selected_languages=
28199
28200 # Add the language fragments.
28201 # Languages are added via two mechanisms. Some information must be
28202 # recorded in makefile variables, these are defined in config-lang.in.
28203 # We accumulate them and plug them into the main Makefile.
28204 # The other mechanism is a set of hooks for each of the main targets
28205 # like `clean', `install', etc.
28206
28207 language_hooks="Make-hooks"
28208
28209 for lang in ${srcdir}/*/config-lang.in
28210 do
28211 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28212
28213 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28214 if test "x$lang_alias" = x
28215 then
28216 echo "$lang doesn't set \$language." 1>&2
28217 exit 1
28218 fi
28219 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28220 subdirs="$subdirs $subdir"
28221
28222 # $gcc_subdir is where the gcc integration files are to be found
28223 # for a language, both for internal compiler purposes (compiler
28224 # sources implementing front-end to GCC tree converters), and for
28225 # build infrastructure purposes (Make-lang.in, etc.)
28226 #
28227 # This will be <subdir> (relative to $srcdir) if a line like
28228 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28229 # is found in <langdir>/config-lang.in, and will remain <langdir>
28230 # otherwise.
28231 #
28232 # Except for the language alias (fetched above), the regular
28233 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28234 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28235 # only this and the language alias.
28236
28237 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28238 if [ "$gcc_subdir" = "" ]; then
28239 gcc_subdir="$subdir"
28240 fi
28241
28242 case ",$enable_languages," in
28243 *,$lang_alias,*)
28244 all_selected_languages="$all_selected_languages $lang_alias"
28245 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28246 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28247 fi
28248 ;;
28249 esac
28250
28251 language=
28252 boot_language=
28253 compilers=
28254 outputs=
28255 gtfiles=
28256 subdir_requires=
28257 . ${srcdir}/$gcc_subdir/config-lang.in
28258 if test "x$language" = x
28259 then
28260 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28261 exit 1
28262 fi
28263
28264 ok=:
28265 case ",$enable_languages," in
28266 *,$lang_alias,*) ;;
28267 *)
28268 for i in $subdir_requires; do
28269 test -f "${srcdir}/$i/config-lang.in" && continue
28270 ok=false
28271 break
28272 done
28273 ;;
28274 esac
28275 $ok || continue
28276
28277 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28278 if test -f $srcdir/$gcc_subdir/lang.opt; then
28279 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28280 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28281 fi
28282 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28283 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28284 fi
28285 all_languages="$all_languages $language"
28286 all_compilers="$all_compilers $compilers"
28287 all_outputs="$all_outputs $outputs"
28288 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28289 case ",$enable_languages," in
28290 *,lto,*)
28291
28292 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28293
28294 enable_lto=yes
28295
28296 ;;
28297 *) ;;
28298 esac
28299 done
28300
28301 check_languages=
28302 for language in $all_selected_languages
28303 do
28304 check_languages="$check_languages check-$language"
28305 done
28306
28307 # We link each language in with a set of hooks, reached indirectly via
28308 # lang.${target}. Only do so for selected languages.
28309
28310 rm -f Make-hooks
28311 touch Make-hooks
28312 target_list="all.cross start.encap rest.encap tags \
28313 install-common install-man install-info install-pdf install-html dvi \
28314 pdf html uninstall info man srcextra srcman srcinfo \
28315 mostlyclean clean distclean maintainer-clean install-plugin"
28316
28317 for t in $target_list
28318 do
28319 x=
28320 for lang in $all_selected_languages
28321 do
28322 x="$x $lang.$t"
28323 done
28324 echo "lang.$t: $x" >> Make-hooks
28325 done
28326
28327 # --------
28328 # Option include files
28329 # --------
28330
28331 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28332 option_includes="option-includes.mk"
28333
28334
28335 # --------
28336 # UNSORTED
28337 # --------
28338
28339 # Create .gdbinit.
28340
28341 echo "dir ." > .gdbinit
28342 echo "dir ${srcdir}" >> .gdbinit
28343 if test x$gdb_needs_out_file_path = xyes
28344 then
28345 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28346 fi
28347 if test "x$subdirs" != x; then
28348 for s in $subdirs
28349 do
28350 echo "dir ${srcdir}/$s" >> .gdbinit
28351 done
28352 fi
28353 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28354 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28355
28356 # Put a breakpoint on __asan_report_error to help with debugging buffer
28357 # overflow.
28358 case "$CFLAGS" in
28359 *-fsanitize=address*)
28360 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28361 ;;
28362 esac
28363
28364 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28365
28366
28367
28368 # Find a directory in which to install a shared libgcc.
28369
28370 # Check whether --enable-version-specific-runtime-libs was given.
28371 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28372 enableval=$enable_version_specific_runtime_libs;
28373 fi
28374
28375
28376 # Substitute configuration variables
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439 # Echo link setup.
28440 if test x${build} = x${host} ; then
28441 if test x${host} = x${target} ; then
28442 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28443 else
28444 echo "Links are now set up to build a cross-compiler" 1>&2
28445 echo " from ${host} to ${target}." 1>&2
28446 fi
28447 else
28448 if test x${host} = x${target} ; then
28449 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28450 echo " for ${target}." 1>&2
28451 else
28452 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28453 echo " from ${host} to ${target}." 1>&2
28454 fi
28455 fi
28456
28457
28458
28459
28460
28461
28462 if test "x${ISLLIBS}" != "x" ; then
28463
28464 $as_echo "#define HAVE_isl 1" >>confdefs.h
28465
28466 fi
28467
28468 # Check whether isl_schedule_constraints_compute_schedule is available;
28469 # it's new in ISL-0.13.
28470 # Check whether isl_options_set_schedule_serialize_sccs is available;
28471 # it's new in ISL-0.15.
28472 if test "x${ISLLIBS}" != "x" ; then
28473 saved_CXXFLAGS="$CXXFLAGS"
28474 CXXFLAGS="$CXXFLAGS $ISLINC"
28475 saved_LIBS="$LIBS"
28476 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28477
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28479 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28481 /* end confdefs.h. */
28482 #include <isl/schedule.h>
28483 int
28484 main ()
28485 {
28486 isl_schedule_constraints_compute_schedule (NULL);
28487 ;
28488 return 0;
28489 }
28490 _ACEOF
28491 if ac_fn_cxx_try_link "$LINENO"; then :
28492 ac_has_isl_schedule_constraints_compute_schedule=yes
28493 else
28494 ac_has_isl_schedule_constraints_compute_schedule=no
28495 fi
28496 rm -f core conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28499 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28500
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28502 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28504 /* end confdefs.h. */
28505 #include <isl/schedule.h>
28506 int
28507 main ()
28508 {
28509 isl_options_set_schedule_serialize_sccs (NULL, 0);
28510 ;
28511 return 0;
28512 }
28513 _ACEOF
28514 if ac_fn_cxx_try_link "$LINENO"; then :
28515 ac_has_isl_options_set_schedule_serialize_sccs=yes
28516 else
28517 ac_has_isl_options_set_schedule_serialize_sccs=no
28518 fi
28519 rm -f core conftest.err conftest.$ac_objext \
28520 conftest$ac_exeext conftest.$ac_ext
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28522 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28523
28524 LIBS="$saved_LIBS"
28525 CXXFLAGS="$saved_CXXFLAGS"
28526
28527 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28528
28529 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28530
28531 fi
28532
28533 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28534
28535 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28536
28537 fi
28538 fi
28539
28540 # Check for plugin support
28541 # Check whether --enable-plugin was given.
28542 if test "${enable_plugin+set}" = set; then :
28543 enableval=$enable_plugin; enable_plugin=$enableval
28544 else
28545 enable_plugin=yes; default_plugin=yes
28546 fi
28547
28548
28549 pluginlibs=
28550
28551 case "${host}" in
28552 *-*-darwin*)
28553 if test x$build = x$host; then
28554 export_sym_check="nm${exeext} -g"
28555 elif test x$host = x$target; then
28556 export_sym_check="$gcc_cv_nm -g"
28557 else
28558 export_sym_check=
28559 fi
28560 ;;
28561 *)
28562 if test x$build = x$host; then
28563 export_sym_check="objdump${exeext} -T"
28564 elif test x$host = x$target; then
28565 export_sym_check="$gcc_cv_objdump -T"
28566 else
28567 export_sym_check=
28568 fi
28569 ;;
28570 esac
28571
28572 if test x"$enable_plugin" = x"yes"; then
28573
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28575 $as_echo_n "checking for exported symbols... " >&6; }
28576 if test "x$export_sym_check" != x; then
28577 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28578 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28579 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28580 : # No need to use a flag
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28582 $as_echo "yes" >&6; }
28583 else
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28585 $as_echo "yes" >&6; }
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28587 $as_echo_n "checking for -rdynamic... " >&6; }
28588 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28589 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28590 plugin_rdynamic=yes
28591 pluginlibs="-rdynamic"
28592 else
28593 plugin_rdynamic=no
28594 enable_plugin=no
28595 fi
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28597 $as_echo "$plugin_rdynamic" >&6; }
28598 fi
28599 else
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28601 $as_echo "unable to check" >&6; }
28602 fi
28603
28604 # Check -ldl
28605 saved_LIBS="$LIBS"
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28607 $as_echo_n "checking for library containing dlopen... " >&6; }
28608 if test "${ac_cv_search_dlopen+set}" = set; then :
28609 $as_echo_n "(cached) " >&6
28610 else
28611 ac_func_search_save_LIBS=$LIBS
28612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613 /* end confdefs.h. */
28614
28615 /* Override any GCC internal prototype to avoid an error.
28616 Use char because int might match the return type of a GCC
28617 builtin and then its argument prototype would still apply. */
28618 #ifdef __cplusplus
28619 extern "C"
28620 #endif
28621 char dlopen ();
28622 int
28623 main ()
28624 {
28625 return dlopen ();
28626 ;
28627 return 0;
28628 }
28629 _ACEOF
28630 for ac_lib in '' dl; do
28631 if test -z "$ac_lib"; then
28632 ac_res="none required"
28633 else
28634 ac_res=-l$ac_lib
28635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28636 fi
28637 if ac_fn_cxx_try_link "$LINENO"; then :
28638 ac_cv_search_dlopen=$ac_res
28639 fi
28640 rm -f core conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext
28642 if test "${ac_cv_search_dlopen+set}" = set; then :
28643 break
28644 fi
28645 done
28646 if test "${ac_cv_search_dlopen+set}" = set; then :
28647
28648 else
28649 ac_cv_search_dlopen=no
28650 fi
28651 rm conftest.$ac_ext
28652 LIBS=$ac_func_search_save_LIBS
28653 fi
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28655 $as_echo "$ac_cv_search_dlopen" >&6; }
28656 ac_res=$ac_cv_search_dlopen
28657 if test "$ac_res" != no; then :
28658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28659
28660 fi
28661
28662 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28663 pluginlibs="$pluginlibs -ldl"
28664 fi
28665 LIBS="$saved_LIBS"
28666
28667 # Check that we can build shared objects with -fPIC -shared
28668 saved_LDFLAGS="$LDFLAGS"
28669 saved_CFLAGS="$CFLAGS"
28670 case "${host}" in
28671 *-*-darwin*)
28672 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28673 CFLAGS="$CFLAGS -fPIC"
28674 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28675 ;;
28676 *)
28677 CFLAGS="$CFLAGS -fPIC"
28678 LDFLAGS="$LDFLAGS -fPIC -shared"
28679 ;;
28680 esac
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28682 $as_echo_n "checking for -fPIC -shared... " >&6; }
28683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28684 /* end confdefs.h. */
28685 extern int X;
28686 int
28687 main ()
28688 {
28689 return X == 0;
28690 ;
28691 return 0;
28692 }
28693 _ACEOF
28694 if ac_fn_cxx_try_link "$LINENO"; then :
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28696 $as_echo "yes" >&6; }; have_pic_shared=yes
28697 else
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28699 $as_echo "no" >&6; }; have_pic_shared=no
28700 fi
28701 rm -f core conftest.err conftest.$ac_objext \
28702 conftest$ac_exeext conftest.$ac_ext
28703 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28704 pluginlibs=
28705 enable_plugin=no
28706 fi
28707 LDFLAGS="$saved_LDFLAGS"
28708 CFLAGS="$saved_CFLAGS"
28709
28710 # If plugin support had been requested but not available, fail.
28711 if test x"$enable_plugin" = x"no" ; then
28712 if test x"$default_plugin" != x"yes"; then
28713 as_fn_error "
28714 Building GCC with plugin support requires a host that supports
28715 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28716 fi
28717 fi
28718 fi
28719
28720
28721
28722 if test x"$enable_plugin" = x"yes"; then
28723
28724 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28725
28726 fi
28727
28728
28729 # Enable --enable-host-shared
28730 # Check whether --enable-host-shared was given.
28731 if test "${enable_host_shared+set}" = set; then :
28732 enableval=$enable_host_shared; PICFLAG=-fPIC
28733 else
28734 PICFLAG=
28735 fi
28736
28737
28738
28739
28740
28741 # Check whether --enable-libquadmath-support was given.
28742 if test "${enable_libquadmath_support+set}" = set; then :
28743 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28744 else
28745 ENABLE_LIBQUADMATH_SUPPORT=yes
28746 fi
28747
28748 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28749
28750 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28751
28752 fi
28753
28754
28755 # Specify what hash style to use by default.
28756
28757 # Check whether --with-linker-hash-style was given.
28758 if test "${with_linker_hash_style+set}" = set; then :
28759 withval=$with_linker_hash_style; case x"$withval" in
28760 xsysv)
28761 LINKER_HASH_STYLE=sysv
28762 ;;
28763 xgnu)
28764 LINKER_HASH_STYLE=gnu
28765 ;;
28766 xboth)
28767 LINKER_HASH_STYLE=both
28768 ;;
28769 *)
28770 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28771 ;;
28772 esac
28773 else
28774 LINKER_HASH_STYLE=''
28775 fi
28776
28777 if test x"${LINKER_HASH_STYLE}" != x; then
28778
28779 cat >>confdefs.h <<_ACEOF
28780 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28781 _ACEOF
28782
28783 fi
28784
28785 # Specify what should be the default of -fdiagnostics-color option.
28786
28787 # Check whether --with-diagnostics-color was given.
28788 if test "${with_diagnostics_color+set}" = set; then :
28789 withval=$with_diagnostics_color; case x"$withval" in
28790 xnever)
28791 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28792 ;;
28793 xauto)
28794 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28795 ;;
28796 xauto-if-env)
28797 DIAGNOSTICS_COLOR_DEFAULT=-1
28798 ;;
28799 xalways)
28800 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28801 ;;
28802 *)
28803 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28804 ;;
28805 esac
28806 else
28807 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28808 fi
28809
28810
28811 cat >>confdefs.h <<_ACEOF
28812 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28813 _ACEOF
28814
28815
28816 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28817 # of jit/jit-playback.c.
28818 cat > gcc-driver-name.h <<EOF
28819 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28820 EOF
28821
28822 # Check whether --enable-default-pie was given.
28823 # Check whether --enable-default-pie was given.
28824 if test "${enable_default_pie+set}" = set; then :
28825 enableval=$enable_default_pie; enable_default_pie=$enableval
28826 else
28827 enable_default_pie=no
28828 fi
28829
28830 if test x$enable_default_pie == xyes ; then
28831
28832 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28833
28834 fi
28835
28836
28837 # Check if -fno-PIE works.
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28839 $as_echo_n "checking for -fno-PIE option... " >&6; }
28840 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28841 $as_echo_n "(cached) " >&6
28842 else
28843 saved_CXXFLAGS="$CXXFLAGS"
28844 CXXFLAGS="$CXXFLAGS -fno-PIE"
28845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h. */
28847 int main(void) {return 0;}
28848 _ACEOF
28849 if ac_fn_cxx_try_compile "$LINENO"; then :
28850 gcc_cv_c_no_fpie=yes
28851 else
28852 gcc_cv_c_no_fpie=no
28853 fi
28854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 CXXFLAGS="$saved_CXXFLAGS"
28856 fi
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28858 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28859 if test "$gcc_cv_c_no_fpie" = "yes"; then
28860 NO_PIE_CFLAGS="-fno-PIE"
28861 fi
28862
28863
28864 # Check if -no-pie works.
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28866 $as_echo_n "checking for -no-pie option... " >&6; }
28867 if test "${gcc_cv_no_pie+set}" = set; then :
28868 $as_echo_n "(cached) " >&6
28869 else
28870 saved_LDFLAGS="$LDFLAGS"
28871 LDFLAGS="$LDFLAGS -no-pie"
28872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h. */
28874 int main(void) {return 0;}
28875 _ACEOF
28876 if ac_fn_cxx_try_link "$LINENO"; then :
28877 gcc_cv_no_pie=yes
28878 else
28879 gcc_cv_no_pie=no
28880 fi
28881 rm -f core conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
28883 LDFLAGS="$saved_LDFLAGS"
28884 fi
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28886 $as_echo "$gcc_cv_no_pie" >&6; }
28887 if test "$gcc_cv_no_pie" = "yes"; then
28888 NO_PIE_FLAG="-no-pie"
28889 fi
28890
28891
28892 # Check linker supports '-z bndplt'
28893 ld_bndplt_support=no
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28895 $as_echo_n "checking linker -z bndplt option... " >&6; }
28896 if test x"$ld_is_gold" = xno; then
28897 if test $in_tree_ld = yes ; then
28898 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28899 ld_bndplt_support=yes
28900 fi
28901 elif test x$gcc_cv_ld != x; then
28902 # Check if linker supports -a bndplt option
28903 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
28904 ld_bndplt_support=yes
28905 fi
28906 fi
28907 fi
28908 if test x"$ld_bndplt_support" = xyes; then
28909
28910 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28911
28912 fi
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28914 $as_echo "$ld_bndplt_support" >&6; }
28915
28916 # Configure the subdirectories
28917 # AC_CONFIG_SUBDIRS($subdirs)
28918
28919 # Create the Makefile
28920 # and configure language subdirectories
28921 ac_config_files="$ac_config_files $all_outputs"
28922
28923
28924 ac_config_commands="$ac_config_commands default"
28925
28926 cat >confcache <<\_ACEOF
28927 # This file is a shell script that caches the results of configure
28928 # tests run on this system so they can be shared between configure
28929 # scripts and configure runs, see configure's option --config-cache.
28930 # It is not useful on other systems. If it contains results you don't
28931 # want to keep, you may remove or edit it.
28932 #
28933 # config.status only pays attention to the cache file if you give it
28934 # the --recheck option to rerun configure.
28935 #
28936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28938 # following values.
28939
28940 _ACEOF
28941
28942 # The following way of writing the cache mishandles newlines in values,
28943 # but we know of no workaround that is simple, portable, and efficient.
28944 # So, we kill variables containing newlines.
28945 # Ultrix sh set writes to stderr and can't be redirected directly,
28946 # and sets the high bit in the cache file unless we assign to the vars.
28947 (
28948 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28949 eval ac_val=\$$ac_var
28950 case $ac_val in #(
28951 *${as_nl}*)
28952 case $ac_var in #(
28953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28955 esac
28956 case $ac_var in #(
28957 _ | IFS | as_nl) ;; #(
28958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28959 *) { eval $ac_var=; unset $ac_var;} ;;
28960 esac ;;
28961 esac
28962 done
28963
28964 (set) 2>&1 |
28965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28966 *${as_nl}ac_space=\ *)
28967 # `set' does not quote correctly, so add quotes: double-quote
28968 # substitution turns \\\\ into \\, and sed turns \\ into \.
28969 sed -n \
28970 "s/'/'\\\\''/g;
28971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28972 ;; #(
28973 *)
28974 # `set' quotes correctly as required by POSIX, so do not add quotes.
28975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28976 ;;
28977 esac |
28978 sort
28979 ) |
28980 sed '
28981 /^ac_cv_env_/b end
28982 t clear
28983 :clear
28984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28985 t end
28986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28987 :end' >>confcache
28988 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28989 if test -w "$cache_file"; then
28990 test "x$cache_file" != "x/dev/null" &&
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28992 $as_echo "$as_me: updating cache $cache_file" >&6;}
28993 cat confcache >$cache_file
28994 else
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28997 fi
28998 fi
28999 rm -f confcache
29000
29001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29002 # Let make expand exec_prefix.
29003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29004
29005 DEFS=-DHAVE_CONFIG_H
29006
29007 ac_libobjs=
29008 ac_ltlibobjs=
29009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29010 # 1. Remove the extension, and $U if already installed.
29011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29014 # will be set to the directory where LIBOBJS objects are built.
29015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29017 done
29018 LIBOBJS=$ac_libobjs
29019
29020 LTLIBOBJS=$ac_ltlibobjs
29021
29022
29023
29024
29025 : ${CONFIG_STATUS=./config.status}
29026 ac_write_fail=0
29027 ac_clean_files_save=$ac_clean_files
29028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29031 as_write_fail=0
29032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29033 #! $SHELL
29034 # Generated by $as_me.
29035 # Run this file to recreate the current configuration.
29036 # Compiler output produced by configure, useful for debugging
29037 # configure, is in config.log if it exists.
29038
29039 debug=false
29040 ac_cs_recheck=false
29041 ac_cs_silent=false
29042
29043 SHELL=\${CONFIG_SHELL-$SHELL}
29044 export SHELL
29045 _ASEOF
29046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29047 ## -------------------- ##
29048 ## M4sh Initialization. ##
29049 ## -------------------- ##
29050
29051 # Be more Bourne compatible
29052 DUALCASE=1; export DUALCASE # for MKS sh
29053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29054 emulate sh
29055 NULLCMD=:
29056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29057 # is contrary to our usage. Disable this feature.
29058 alias -g '${1+"$@"}'='"$@"'
29059 setopt NO_GLOB_SUBST
29060 else
29061 case `(set -o) 2>/dev/null` in #(
29062 *posix*) :
29063 set -o posix ;; #(
29064 *) :
29065 ;;
29066 esac
29067 fi
29068
29069
29070 as_nl='
29071 '
29072 export as_nl
29073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29074 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29077 # Prefer a ksh shell builtin over an external printf program on Solaris,
29078 # but without wasting forks for bash or zsh.
29079 if test -z "$BASH_VERSION$ZSH_VERSION" \
29080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29081 as_echo='print -r --'
29082 as_echo_n='print -rn --'
29083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29084 as_echo='printf %s\n'
29085 as_echo_n='printf %s'
29086 else
29087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29088 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29089 as_echo_n='/usr/ucb/echo -n'
29090 else
29091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29092 as_echo_n_body='eval
29093 arg=$1;
29094 case $arg in #(
29095 *"$as_nl"*)
29096 expr "X$arg" : "X\\(.*\\)$as_nl";
29097 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29098 esac;
29099 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29100 '
29101 export as_echo_n_body
29102 as_echo_n='sh -c $as_echo_n_body as_echo'
29103 fi
29104 export as_echo_body
29105 as_echo='sh -c $as_echo_body as_echo'
29106 fi
29107
29108 # The user is always right.
29109 if test "${PATH_SEPARATOR+set}" != set; then
29110 PATH_SEPARATOR=:
29111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29113 PATH_SEPARATOR=';'
29114 }
29115 fi
29116
29117
29118 # IFS
29119 # We need space, tab and new line, in precisely that order. Quoting is
29120 # there to prevent editors from complaining about space-tab.
29121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29122 # splitting by setting IFS to empty value.)
29123 IFS=" "" $as_nl"
29124
29125 # Find who we are. Look in the path if we contain no directory separator.
29126 case $0 in #((
29127 *[\\/]* ) as_myself=$0 ;;
29128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29129 for as_dir in $PATH
29130 do
29131 IFS=$as_save_IFS
29132 test -z "$as_dir" && as_dir=.
29133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29134 done
29135 IFS=$as_save_IFS
29136
29137 ;;
29138 esac
29139 # We did not find ourselves, most probably we were run as `sh COMMAND'
29140 # in which case we are not to be found in the path.
29141 if test "x$as_myself" = x; then
29142 as_myself=$0
29143 fi
29144 if test ! -f "$as_myself"; then
29145 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29146 exit 1
29147 fi
29148
29149 # Unset variables that we do not need and which cause bugs (e.g. in
29150 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29151 # suppresses any "Segmentation fault" message there. '((' could
29152 # trigger a bug in pdksh 5.2.14.
29153 for as_var in BASH_ENV ENV MAIL MAILPATH
29154 do eval test x\${$as_var+set} = xset \
29155 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29156 done
29157 PS1='$ '
29158 PS2='> '
29159 PS4='+ '
29160
29161 # NLS nuisances.
29162 LC_ALL=C
29163 export LC_ALL
29164 LANGUAGE=C
29165 export LANGUAGE
29166
29167 # CDPATH.
29168 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29169
29170
29171 # as_fn_error ERROR [LINENO LOG_FD]
29172 # ---------------------------------
29173 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29174 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29175 # script with status $?, using 1 if that was 0.
29176 as_fn_error ()
29177 {
29178 as_status=$?; test $as_status -eq 0 && as_status=1
29179 if test "$3"; then
29180 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29181 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29182 fi
29183 $as_echo "$as_me: error: $1" >&2
29184 as_fn_exit $as_status
29185 } # as_fn_error
29186
29187
29188 # as_fn_set_status STATUS
29189 # -----------------------
29190 # Set $? to STATUS, without forking.
29191 as_fn_set_status ()
29192 {
29193 return $1
29194 } # as_fn_set_status
29195
29196 # as_fn_exit STATUS
29197 # -----------------
29198 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29199 as_fn_exit ()
29200 {
29201 set +e
29202 as_fn_set_status $1
29203 exit $1
29204 } # as_fn_exit
29205
29206 # as_fn_unset VAR
29207 # ---------------
29208 # Portably unset VAR.
29209 as_fn_unset ()
29210 {
29211 { eval $1=; unset $1;}
29212 }
29213 as_unset=as_fn_unset
29214 # as_fn_append VAR VALUE
29215 # ----------------------
29216 # Append the text in VALUE to the end of the definition contained in VAR. Take
29217 # advantage of any shell optimizations that allow amortized linear growth over
29218 # repeated appends, instead of the typical quadratic growth present in naive
29219 # implementations.
29220 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29221 eval 'as_fn_append ()
29222 {
29223 eval $1+=\$2
29224 }'
29225 else
29226 as_fn_append ()
29227 {
29228 eval $1=\$$1\$2
29229 }
29230 fi # as_fn_append
29231
29232 # as_fn_arith ARG...
29233 # ------------------
29234 # Perform arithmetic evaluation on the ARGs, and store the result in the
29235 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29236 # must be portable across $(()) and expr.
29237 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29238 eval 'as_fn_arith ()
29239 {
29240 as_val=$(( $* ))
29241 }'
29242 else
29243 as_fn_arith ()
29244 {
29245 as_val=`expr "$@" || test $? -eq 1`
29246 }
29247 fi # as_fn_arith
29248
29249
29250 if expr a : '\(a\)' >/dev/null 2>&1 &&
29251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29252 as_expr=expr
29253 else
29254 as_expr=false
29255 fi
29256
29257 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29258 as_basename=basename
29259 else
29260 as_basename=false
29261 fi
29262
29263 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29264 as_dirname=dirname
29265 else
29266 as_dirname=false
29267 fi
29268
29269 as_me=`$as_basename -- "$0" ||
29270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29271 X"$0" : 'X\(//\)$' \| \
29272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29273 $as_echo X/"$0" |
29274 sed '/^.*\/\([^/][^/]*\)\/*$/{
29275 s//\1/
29276 q
29277 }
29278 /^X\/\(\/\/\)$/{
29279 s//\1/
29280 q
29281 }
29282 /^X\/\(\/\).*/{
29283 s//\1/
29284 q
29285 }
29286 s/.*/./; q'`
29287
29288 # Avoid depending upon Character Ranges.
29289 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29290 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29291 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29292 as_cr_digits='0123456789'
29293 as_cr_alnum=$as_cr_Letters$as_cr_digits
29294
29295 ECHO_C= ECHO_N= ECHO_T=
29296 case `echo -n x` in #(((((
29297 -n*)
29298 case `echo 'xy\c'` in
29299 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29300 xy) ECHO_C='\c';;
29301 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29302 ECHO_T=' ';;
29303 esac;;
29304 *)
29305 ECHO_N='-n';;
29306 esac
29307
29308 rm -f conf$$ conf$$.exe conf$$.file
29309 if test -d conf$$.dir; then
29310 rm -f conf$$.dir/conf$$.file
29311 else
29312 rm -f conf$$.dir
29313 mkdir conf$$.dir 2>/dev/null
29314 fi
29315 if (echo >conf$$.file) 2>/dev/null; then
29316 if ln -s conf$$.file conf$$ 2>/dev/null; then
29317 as_ln_s='ln -s'
29318 # ... but there are two gotchas:
29319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29321 # In both cases, we have to default to `cp -p'.
29322 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29323 as_ln_s='cp -p'
29324 elif ln conf$$.file conf$$ 2>/dev/null; then
29325 as_ln_s=ln
29326 else
29327 as_ln_s='cp -p'
29328 fi
29329 else
29330 as_ln_s='cp -p'
29331 fi
29332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29333 rmdir conf$$.dir 2>/dev/null
29334
29335
29336 # as_fn_mkdir_p
29337 # -------------
29338 # Create "$as_dir" as a directory, including parents if necessary.
29339 as_fn_mkdir_p ()
29340 {
29341
29342 case $as_dir in #(
29343 -*) as_dir=./$as_dir;;
29344 esac
29345 test -d "$as_dir" || eval $as_mkdir_p || {
29346 as_dirs=
29347 while :; do
29348 case $as_dir in #(
29349 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29350 *) as_qdir=$as_dir;;
29351 esac
29352 as_dirs="'$as_qdir' $as_dirs"
29353 as_dir=`$as_dirname -- "$as_dir" ||
29354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29355 X"$as_dir" : 'X\(//\)[^/]' \| \
29356 X"$as_dir" : 'X\(//\)$' \| \
29357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29358 $as_echo X"$as_dir" |
29359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29360 s//\1/
29361 q
29362 }
29363 /^X\(\/\/\)[^/].*/{
29364 s//\1/
29365 q
29366 }
29367 /^X\(\/\/\)$/{
29368 s//\1/
29369 q
29370 }
29371 /^X\(\/\).*/{
29372 s//\1/
29373 q
29374 }
29375 s/.*/./; q'`
29376 test -d "$as_dir" && break
29377 done
29378 test -z "$as_dirs" || eval "mkdir $as_dirs"
29379 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29380
29381
29382 } # as_fn_mkdir_p
29383 if mkdir -p . 2>/dev/null; then
29384 as_mkdir_p='mkdir -p "$as_dir"'
29385 else
29386 test -d ./-p && rmdir ./-p
29387 as_mkdir_p=false
29388 fi
29389
29390 if test -x / >/dev/null 2>&1; then
29391 as_test_x='test -x'
29392 else
29393 if ls -dL / >/dev/null 2>&1; then
29394 as_ls_L_option=L
29395 else
29396 as_ls_L_option=
29397 fi
29398 as_test_x='
29399 eval sh -c '\''
29400 if test -d "$1"; then
29401 test -d "$1/.";
29402 else
29403 case $1 in #(
29404 -*)set "./$1";;
29405 esac;
29406 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29407 ???[sx]*):;;*)false;;esac;fi
29408 '\'' sh
29409 '
29410 fi
29411 as_executable_p=$as_test_x
29412
29413 # Sed expression to map a string onto a valid CPP name.
29414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29415
29416 # Sed expression to map a string onto a valid variable name.
29417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29418
29419
29420 exec 6>&1
29421 ## ----------------------------------- ##
29422 ## Main body of $CONFIG_STATUS script. ##
29423 ## ----------------------------------- ##
29424 _ASEOF
29425 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29426
29427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29428 # Save the log message, to keep $0 and so on meaningful, and to
29429 # report actual input values of CONFIG_FILES etc. instead of their
29430 # values after options handling.
29431 ac_log="
29432 This file was extended by $as_me, which was
29433 generated by GNU Autoconf 2.64. Invocation command line was
29434
29435 CONFIG_FILES = $CONFIG_FILES
29436 CONFIG_HEADERS = $CONFIG_HEADERS
29437 CONFIG_LINKS = $CONFIG_LINKS
29438 CONFIG_COMMANDS = $CONFIG_COMMANDS
29439 $ $0 $@
29440
29441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29442 "
29443
29444 _ACEOF
29445
29446 case $ac_config_files in *"
29447 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29448 esac
29449
29450 case $ac_config_headers in *"
29451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29452 esac
29453
29454
29455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29456 # Files that config.status was made for.
29457 config_files="$ac_config_files"
29458 config_headers="$ac_config_headers"
29459 config_links="$ac_config_links"
29460 config_commands="$ac_config_commands"
29461
29462 _ACEOF
29463
29464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29465 ac_cs_usage="\
29466 \`$as_me' instantiates files and other configuration actions
29467 from templates according to the current configuration. Unless the files
29468 and actions are specified as TAGs, all are instantiated by default.
29469
29470 Usage: $0 [OPTION]... [TAG]...
29471
29472 -h, --help print this help, then exit
29473 -V, --version print version number and configuration settings, then exit
29474 -q, --quiet, --silent
29475 do not print progress messages
29476 -d, --debug don't remove temporary files
29477 --recheck update $as_me by reconfiguring in the same conditions
29478 --file=FILE[:TEMPLATE]
29479 instantiate the configuration file FILE
29480 --header=FILE[:TEMPLATE]
29481 instantiate the configuration header FILE
29482
29483 Configuration files:
29484 $config_files
29485
29486 Configuration headers:
29487 $config_headers
29488
29489 Configuration links:
29490 $config_links
29491
29492 Configuration commands:
29493 $config_commands
29494
29495 Report bugs to the package provider."
29496
29497 _ACEOF
29498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29499 ac_cs_version="\\
29500 config.status
29501 configured by $0, generated by GNU Autoconf 2.64,
29502 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29503
29504 Copyright (C) 2009 Free Software Foundation, Inc.
29505 This config.status script is free software; the Free Software Foundation
29506 gives unlimited permission to copy, distribute and modify it."
29507
29508 ac_pwd='$ac_pwd'
29509 srcdir='$srcdir'
29510 AWK='$AWK'
29511 test -n "\$AWK" || AWK=awk
29512 _ACEOF
29513
29514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29515 # The default lists apply if the user does not specify any file.
29516 ac_need_defaults=:
29517 while test $# != 0
29518 do
29519 case $1 in
29520 --*=*)
29521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29523 ac_shift=:
29524 ;;
29525 *)
29526 ac_option=$1
29527 ac_optarg=$2
29528 ac_shift=shift
29529 ;;
29530 esac
29531
29532 case $ac_option in
29533 # Handling of the options.
29534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29535 ac_cs_recheck=: ;;
29536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29537 $as_echo "$ac_cs_version"; exit ;;
29538 --debug | --debu | --deb | --de | --d | -d )
29539 debug=: ;;
29540 --file | --fil | --fi | --f )
29541 $ac_shift
29542 case $ac_optarg in
29543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29544 esac
29545 as_fn_append CONFIG_FILES " '$ac_optarg'"
29546 ac_need_defaults=false;;
29547 --header | --heade | --head | --hea )
29548 $ac_shift
29549 case $ac_optarg in
29550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29551 esac
29552 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29553 ac_need_defaults=false;;
29554 --he | --h)
29555 # Conflict between --help and --header
29556 as_fn_error "ambiguous option: \`$1'
29557 Try \`$0 --help' for more information.";;
29558 --help | --hel | -h )
29559 $as_echo "$ac_cs_usage"; exit ;;
29560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29562 ac_cs_silent=: ;;
29563
29564 # This is an error.
29565 -*) as_fn_error "unrecognized option: \`$1'
29566 Try \`$0 --help' for more information." ;;
29567
29568 *) as_fn_append ac_config_targets " $1"
29569 ac_need_defaults=false ;;
29570
29571 esac
29572 shift
29573 done
29574
29575 ac_configure_extra_args=
29576
29577 if $ac_cs_silent; then
29578 exec 6>/dev/null
29579 ac_configure_extra_args="$ac_configure_extra_args --silent"
29580 fi
29581
29582 _ACEOF
29583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29584 if \$ac_cs_recheck; then
29585 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29586 shift
29587 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29588 CONFIG_SHELL='$SHELL'
29589 export CONFIG_SHELL
29590 exec "\$@"
29591 fi
29592
29593 _ACEOF
29594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29595 exec 5>>config.log
29596 {
29597 echo
29598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29599 ## Running $as_me. ##
29600 _ASBOX
29601 $as_echo "$ac_log"
29602 } >&5
29603
29604 _ACEOF
29605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29606 #
29607 # INIT-COMMANDS
29608 #
29609 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29610 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29611 subdirs='$subdirs'
29612
29613 _ACEOF
29614
29615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29616
29617 # Handling of arguments.
29618 for ac_config_target in $ac_config_targets
29619 do
29620 case $ac_config_target in
29621 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29622 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29623 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29624 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29625 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29626 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29627 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29628 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29629 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29630
29631 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29632 esac
29633 done
29634
29635
29636 # If the user did not use the arguments to specify the items to instantiate,
29637 # then the envvar interface is used. Set only those that are not.
29638 # We use the long form for the default assignment because of an extremely
29639 # bizarre bug on SunOS 4.1.3.
29640 if $ac_need_defaults; then
29641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29643 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29645 fi
29646
29647 # Have a temporary directory for convenience. Make it in the build tree
29648 # simply because there is no reason against having it here, and in addition,
29649 # creating and moving files from /tmp can sometimes cause problems.
29650 # Hook for its removal unless debugging.
29651 # Note that there is a small window in which the directory will not be cleaned:
29652 # after its creation but before its name has been assigned to `$tmp'.
29653 $debug ||
29654 {
29655 tmp=
29656 trap 'exit_status=$?
29657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29658 ' 0
29659 trap 'as_fn_exit 1' 1 2 13 15
29660 }
29661 # Create a (secure) tmp directory for tmp files.
29662
29663 {
29664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29665 test -n "$tmp" && test -d "$tmp"
29666 } ||
29667 {
29668 tmp=./conf$$-$RANDOM
29669 (umask 077 && mkdir "$tmp")
29670 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29671
29672 # Set up the scripts for CONFIG_FILES section.
29673 # No need to generate them if there are no CONFIG_FILES.
29674 # This happens for instance with `./config.status config.h'.
29675 if test -n "$CONFIG_FILES"; then
29676
29677 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29678 ac_cs_awk_getline=:
29679 ac_cs_awk_pipe_init=
29680 ac_cs_awk_read_file='
29681 while ((getline aline < (F[key])) > 0)
29682 print(aline)
29683 close(F[key])'
29684 ac_cs_awk_pipe_fini=
29685 else
29686 ac_cs_awk_getline=false
29687 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29688 ac_cs_awk_read_file='
29689 print "|#_!!_#|"
29690 print "cat " F[key] " &&"
29691 '$ac_cs_awk_pipe_init
29692 # The final `:' finishes the AND list.
29693 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29694 fi
29695 ac_cr=`echo X | tr X '\015'`
29696 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29697 # But we know of no other shell where ac_cr would be empty at this
29698 # point, so we can use a bashism as a fallback.
29699 if test "x$ac_cr" = x; then
29700 eval ac_cr=\$\'\\r\'
29701 fi
29702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29704 ac_cs_awk_cr='\r'
29705 else
29706 ac_cs_awk_cr=$ac_cr
29707 fi
29708
29709 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29710 _ACEOF
29711
29712 # Create commands to substitute file output variables.
29713 {
29714 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29715 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29716 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29717 echo "_ACAWK" &&
29718 echo "_ACEOF"
29719 } >conf$$files.sh &&
29720 . ./conf$$files.sh ||
29721 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29722 rm -f conf$$files.sh
29723
29724 {
29725 echo "cat >conf$$subs.awk <<_ACEOF" &&
29726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29727 echo "_ACEOF"
29728 } >conf$$subs.sh ||
29729 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29730 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29731 ac_delim='%!_!# '
29732 for ac_last_try in false false false false false :; do
29733 . ./conf$$subs.sh ||
29734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29735
29736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29737 if test $ac_delim_n = $ac_delim_num; then
29738 break
29739 elif $ac_last_try; then
29740 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29741 else
29742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29743 fi
29744 done
29745 rm -f conf$$subs.sh
29746
29747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29748 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29749 _ACEOF
29750 sed -n '
29751 h
29752 s/^/S["/; s/!.*/"]=/
29753 p
29754 g
29755 s/^[^!]*!//
29756 :repl
29757 t repl
29758 s/'"$ac_delim"'$//
29759 t delim
29760 :nl
29761 h
29762 s/\(.\{148\}\).*/\1/
29763 t more1
29764 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29765 p
29766 n
29767 b repl
29768 :more1
29769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29770 p
29771 g
29772 s/.\{148\}//
29773 t nl
29774 :delim
29775 h
29776 s/\(.\{148\}\).*/\1/
29777 t more2
29778 s/["\\]/\\&/g; s/^/"/; s/$/"/
29779 p
29780 b
29781 :more2
29782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29783 p
29784 g
29785 s/.\{148\}//
29786 t delim
29787 ' <conf$$subs.awk | sed '
29788 /^[^""]/{
29789 N
29790 s/\n//
29791 }
29792 ' >>$CONFIG_STATUS || ac_write_fail=1
29793 rm -f conf$$subs.awk
29794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29795 _ACAWK
29796 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29797 for (key in S) S_is_set[key] = 1
29798 FS = "\a"
29799 \$ac_cs_awk_pipe_init
29800 }
29801 {
29802 line = $ 0
29803 nfields = split(line, field, "@")
29804 substed = 0
29805 len = length(field[1])
29806 for (i = 2; i < nfields; i++) {
29807 key = field[i]
29808 keylen = length(key)
29809 if (S_is_set[key]) {
29810 value = S[key]
29811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29812 len += length(value) + length(field[++i])
29813 substed = 1
29814 } else
29815 len += 1 + keylen
29816 }
29817 if (nfields == 3 && !substed) {
29818 key = field[2]
29819 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29820 \$ac_cs_awk_read_file
29821 next
29822 }
29823 }
29824 print line
29825 }
29826 \$ac_cs_awk_pipe_fini
29827 _ACAWK
29828 _ACEOF
29829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29830 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29831 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29832 else
29833 cat
29834 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29835 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29836 _ACEOF
29837
29838 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29839 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29840 # trailing colons and then remove the whole line if VPATH becomes empty
29841 # (actually we leave an empty line to preserve line numbers).
29842 if test "x$srcdir" = x.; then
29843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29844 s/:*\$(srcdir):*/:/
29845 s/:*\${srcdir}:*/:/
29846 s/:*@srcdir@:*/:/
29847 s/^\([^=]*=[ ]*\):*/\1/
29848 s/:*$//
29849 s/^[^=]*=[ ]*$//
29850 }'
29851 fi
29852
29853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29854 fi # test -n "$CONFIG_FILES"
29855
29856 # Set up the scripts for CONFIG_HEADERS section.
29857 # No need to generate them if there are no CONFIG_HEADERS.
29858 # This happens for instance with `./config.status Makefile'.
29859 if test -n "$CONFIG_HEADERS"; then
29860 cat >"$tmp/defines.awk" <<\_ACAWK ||
29861 BEGIN {
29862 _ACEOF
29863
29864 # Transform confdefs.h into an awk script `defines.awk', embedded as
29865 # here-document in config.status, that substitutes the proper values into
29866 # config.h.in to produce config.h.
29867
29868 # Create a delimiter string that does not exist in confdefs.h, to ease
29869 # handling of long lines.
29870 ac_delim='%!_!# '
29871 for ac_last_try in false false :; do
29872 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29873 if test -z "$ac_t"; then
29874 break
29875 elif $ac_last_try; then
29876 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29877 else
29878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29879 fi
29880 done
29881
29882 # For the awk script, D is an array of macro values keyed by name,
29883 # likewise P contains macro parameters if any. Preserve backslash
29884 # newline sequences.
29885
29886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29887 sed -n '
29888 s/.\{148\}/&'"$ac_delim"'/g
29889 t rset
29890 :rset
29891 s/^[ ]*#[ ]*define[ ][ ]*/ /
29892 t def
29893 d
29894 :def
29895 s/\\$//
29896 t bsnl
29897 s/["\\]/\\&/g
29898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29899 D["\1"]=" \3"/p
29900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29901 d
29902 :bsnl
29903 s/["\\]/\\&/g
29904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29905 D["\1"]=" \3\\\\\\n"\\/p
29906 t cont
29907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29908 t cont
29909 d
29910 :cont
29911 n
29912 s/.\{148\}/&'"$ac_delim"'/g
29913 t clear
29914 :clear
29915 s/\\$//
29916 t bsnlc
29917 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29918 d
29919 :bsnlc
29920 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29921 b cont
29922 ' <confdefs.h | sed '
29923 s/'"$ac_delim"'/"\\\
29924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29925
29926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29927 for (key in D) D_is_set[key] = 1
29928 FS = "\a"
29929 }
29930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29931 line = \$ 0
29932 split(line, arg, " ")
29933 if (arg[1] == "#") {
29934 defundef = arg[2]
29935 mac1 = arg[3]
29936 } else {
29937 defundef = substr(arg[1], 2)
29938 mac1 = arg[2]
29939 }
29940 split(mac1, mac2, "(") #)
29941 macro = mac2[1]
29942 prefix = substr(line, 1, index(line, defundef) - 1)
29943 if (D_is_set[macro]) {
29944 # Preserve the white space surrounding the "#".
29945 print prefix "define", macro P[macro] D[macro]
29946 next
29947 } else {
29948 # Replace #undef with comments. This is necessary, for example,
29949 # in the case of _POSIX_SOURCE, which is predefined and required
29950 # on some systems where configure will not decide to define it.
29951 if (defundef == "undef") {
29952 print "/*", prefix defundef, macro, "*/"
29953 next
29954 }
29955 }
29956 }
29957 { print }
29958 _ACAWK
29959 _ACEOF
29960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29961 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29962 fi # test -n "$CONFIG_HEADERS"
29963
29964
29965 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29966 shift
29967 for ac_tag
29968 do
29969 case $ac_tag in
29970 :[FHLC]) ac_mode=$ac_tag; continue;;
29971 esac
29972 case $ac_mode$ac_tag in
29973 :[FHL]*:*);;
29974 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29975 :[FH]-) ac_tag=-:-;;
29976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29977 esac
29978 ac_save_IFS=$IFS
29979 IFS=:
29980 set x $ac_tag
29981 IFS=$ac_save_IFS
29982 shift
29983 ac_file=$1
29984 shift
29985
29986 case $ac_mode in
29987 :L) ac_source=$1;;
29988 :[FH])
29989 ac_file_inputs=
29990 for ac_f
29991 do
29992 case $ac_f in
29993 -) ac_f="$tmp/stdin";;
29994 *) # Look for the file first in the build tree, then in the source tree
29995 # (if the path is not absolute). The absolute path cannot be DOS-style,
29996 # because $ac_f cannot contain `:'.
29997 test -f "$ac_f" ||
29998 case $ac_f in
29999 [\\/$]*) false;;
30000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30001 esac ||
30002 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30003 esac
30004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30005 as_fn_append ac_file_inputs " '$ac_f'"
30006 done
30007
30008 # Let's still pretend it is `configure' which instantiates (i.e., don't
30009 # use $as_me), people would be surprised to read:
30010 # /* config.h. Generated by config.status. */
30011 configure_input='Generated from '`
30012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30013 `' by configure.'
30014 if test x"$ac_file" != x-; then
30015 configure_input="$ac_file. $configure_input"
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30017 $as_echo "$as_me: creating $ac_file" >&6;}
30018 fi
30019 # Neutralize special characters interpreted by sed in replacement strings.
30020 case $configure_input in #(
30021 *\&* | *\|* | *\\* )
30022 ac_sed_conf_input=`$as_echo "$configure_input" |
30023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30024 *) ac_sed_conf_input=$configure_input;;
30025 esac
30026
30027 case $ac_tag in
30028 *:-:* | *:-) cat >"$tmp/stdin" \
30029 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30030 esac
30031 ;;
30032 esac
30033
30034 ac_dir=`$as_dirname -- "$ac_file" ||
30035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30036 X"$ac_file" : 'X\(//\)[^/]' \| \
30037 X"$ac_file" : 'X\(//\)$' \| \
30038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30039 $as_echo X"$ac_file" |
30040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30041 s//\1/
30042 q
30043 }
30044 /^X\(\/\/\)[^/].*/{
30045 s//\1/
30046 q
30047 }
30048 /^X\(\/\/\)$/{
30049 s//\1/
30050 q
30051 }
30052 /^X\(\/\).*/{
30053 s//\1/
30054 q
30055 }
30056 s/.*/./; q'`
30057 as_dir="$ac_dir"; as_fn_mkdir_p
30058 ac_builddir=.
30059
30060 case "$ac_dir" in
30061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30062 *)
30063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30064 # A ".." for each directory in $ac_dir_suffix.
30065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30066 case $ac_top_builddir_sub in
30067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30069 esac ;;
30070 esac
30071 ac_abs_top_builddir=$ac_pwd
30072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30073 # for backward compatibility:
30074 ac_top_builddir=$ac_top_build_prefix
30075
30076 case $srcdir in
30077 .) # We are building in place.
30078 ac_srcdir=.
30079 ac_top_srcdir=$ac_top_builddir_sub
30080 ac_abs_top_srcdir=$ac_pwd ;;
30081 [\\/]* | ?:[\\/]* ) # Absolute name.
30082 ac_srcdir=$srcdir$ac_dir_suffix;
30083 ac_top_srcdir=$srcdir
30084 ac_abs_top_srcdir=$srcdir ;;
30085 *) # Relative name.
30086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30087 ac_top_srcdir=$ac_top_build_prefix$srcdir
30088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30089 esac
30090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30091
30092
30093 case $ac_mode in
30094 :F)
30095 #
30096 # CONFIG_FILE
30097 #
30098
30099 _ACEOF
30100
30101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30102 # If the template does not know about datarootdir, expand it.
30103 # FIXME: This hack should be removed a few years after 2.60.
30104 ac_datarootdir_hack=; ac_datarootdir_seen=
30105 ac_sed_dataroot='
30106 /datarootdir/ {
30107 p
30108 q
30109 }
30110 /@datadir@/p
30111 /@docdir@/p
30112 /@infodir@/p
30113 /@localedir@/p
30114 /@mandir@/p'
30115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30116 *datarootdir*) ac_datarootdir_seen=yes;;
30117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30119 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30120 _ACEOF
30121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30122 ac_datarootdir_hack='
30123 s&@datadir@&$datadir&g
30124 s&@docdir@&$docdir&g
30125 s&@infodir@&$infodir&g
30126 s&@localedir@&$localedir&g
30127 s&@mandir@&$mandir&g
30128 s&\\\${datarootdir}&$datarootdir&g' ;;
30129 esac
30130 _ACEOF
30131
30132 # Neutralize VPATH when `$srcdir' = `.'.
30133 # Shell code in configure.ac might set extrasub.
30134 # FIXME: do we really want to maintain this feature?
30135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30136 ac_sed_extra="$ac_vpsub
30137 $extrasub
30138 _ACEOF
30139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30140 :t
30141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30142 s|@configure_input@|$ac_sed_conf_input|;t t
30143 s&@top_builddir@&$ac_top_builddir_sub&;t t
30144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30145 s&@srcdir@&$ac_srcdir&;t t
30146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30147 s&@top_srcdir@&$ac_top_srcdir&;t t
30148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30149 s&@builddir@&$ac_builddir&;t t
30150 s&@abs_builddir@&$ac_abs_builddir&;t t
30151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30152 $ac_datarootdir_hack
30153 "
30154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30155 if $ac_cs_awk_getline; then
30156 $AWK -f "$tmp/subs.awk"
30157 else
30158 $AWK -f "$tmp/subs.awk" | $SHELL
30159 fi >$tmp/out \
30160 || as_fn_error "could not create $ac_file" "$LINENO" 5
30161
30162 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30163 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30166 which seems to be undefined. Please make sure it is defined." >&5
30167 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30168 which seems to be undefined. Please make sure it is defined." >&2;}
30169
30170 rm -f "$tmp/stdin"
30171 case $ac_file in
30172 -) cat "$tmp/out" && rm -f "$tmp/out";;
30173 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30174 esac \
30175 || as_fn_error "could not create $ac_file" "$LINENO" 5
30176 ;;
30177 :H)
30178 #
30179 # CONFIG_HEADER
30180 #
30181 if test x"$ac_file" != x-; then
30182 {
30183 $as_echo "/* $configure_input */" \
30184 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30185 } >"$tmp/config.h" \
30186 || as_fn_error "could not create $ac_file" "$LINENO" 5
30187 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30188 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30189 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30190 else
30191 rm -f "$ac_file"
30192 mv "$tmp/config.h" "$ac_file" \
30193 || as_fn_error "could not create $ac_file" "$LINENO" 5
30194 fi
30195 else
30196 $as_echo "/* $configure_input */" \
30197 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30198 || as_fn_error "could not create -" "$LINENO" 5
30199 fi
30200 ;;
30201 :L)
30202 #
30203 # CONFIG_LINK
30204 #
30205
30206 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30207 :
30208 else
30209 # Prefer the file from the source tree if names are identical.
30210 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30211 ac_source=$srcdir/$ac_source
30212 fi
30213
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30215 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30216
30217 if test ! -r "$ac_source"; then
30218 as_fn_error "$ac_source: file not found" "$LINENO" 5
30219 fi
30220 rm -f "$ac_file"
30221
30222 # Try a relative symlink, then a hard link, then a copy.
30223 case $srcdir in
30224 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30225 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30226 esac
30227 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30228 ln "$ac_source" "$ac_file" 2>/dev/null ||
30229 cp -p "$ac_source" "$ac_file" ||
30230 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30231 fi
30232 ;;
30233 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30234 $as_echo "$as_me: executing $ac_file commands" >&6;}
30235 ;;
30236 esac
30237
30238
30239 case $ac_file$ac_mode in
30240 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30241 "gccdepdir":C)
30242 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30243 for lang in $subdirs c-family common
30244 do
30245 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30246 done ;;
30247 "as":F) chmod +x as ;;
30248 "collect-ld":F) chmod +x collect-ld ;;
30249 "nm":F) chmod +x nm ;;
30250 "default":C)
30251 case ${CONFIG_HEADERS} in
30252 *auto-host.h:config.in*)
30253 echo > cstamp-h ;;
30254 esac
30255 # Make sure all the subdirs exist.
30256 for d in $subdirs doc build common c-family
30257 do
30258 test -d $d || mkdir $d
30259 done
30260 ;;
30261
30262 esac
30263 done # for ac_tag
30264
30265
30266 as_fn_exit 0
30267 _ACEOF
30268 ac_clean_files=$ac_clean_files_save
30269
30270 test $ac_write_fail = 0 ||
30271 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30272
30273
30274 # configure is writing to config.log, and then calls config.status.
30275 # config.status does its own redirection, appending to config.log.
30276 # Unfortunately, on DOS this fails, as config.log is still kept open
30277 # by configure, so config.status won't be able to write to it; its
30278 # output is simply discarded. So we exec the FD to /dev/null,
30279 # effectively closing config.log, so it can be properly (re)opened and
30280 # appended to by config.status. When coming back to configure, we
30281 # need to make the FD available again.
30282 if test "$no_create" != yes; then
30283 ac_cs_success=:
30284 ac_config_status_args=
30285 test "$silent" = yes &&
30286 ac_config_status_args="$ac_config_status_args --quiet"
30287 exec 5>/dev/null
30288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30289 exec 5>>config.log
30290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30291 # would make configure fail if this is the last instruction.
30292 $ac_cs_success || as_fn_exit $?
30293 fi
30294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30297 fi
30298
30299