]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac (--enable-libssp): New.
[thirdparty/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 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
724 ALL
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
755 AR
756 NM
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
769 LN
770 LN_S
771 AWK
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
801 CPP
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
810 CXX
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
817 CC
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
927 enable_cld
928 enable_frame_pointer
929 enable_win32_registry
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_libtool_lock
934 enable_ld
935 enable_gold
936 with_plugin_ld
937 enable_gnu_indirect_function
938 enable_initfini_array
939 enable_comdat
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
942 with_glibc_version
943 enable_gnu_unique_object
944 enable_linker_build_id
945 enable_libssp
946 enable_default_ssp
947 with_long_double_128
948 with_gc
949 with_system_zlib
950 enable_maintainer_mode
951 enable_link_mutex
952 enable_version_specific_runtime_libs
953 enable_plugin
954 enable_host_shared
955 enable_libquadmath_support
956 with_linker_hash_style
957 with_diagnostics_color
958 enable_default_pie
959 '
960 ac_precious_vars='build_alias
961 host_alias
962 target_alias
963 CC
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
968 CXX
969 CXXFLAGS
970 CCC
971 CXXCPP
972 CPP
973 GMPLIBS
974 GMPINC
975 ISLLIBS
976 ISLINC'
977
978
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1000
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1026
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1030 do
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1036 fi
1037
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1042
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045 case $ac_dashdash$ac_option in
1046 --)
1047 ac_dashdash=yes ;;
1048
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1053
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1058
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1065
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1068
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1073
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1080
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=no ;;
1096
1097 -docdir | --docdir | --docdi | --doc | --do)
1098 ac_prev=docdir ;;
1099 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100 docdir=$ac_optarg ;;
1101
1102 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103 ac_prev=dvidir ;;
1104 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105 dvidir=$ac_optarg ;;
1106
1107 -enable-* | --enable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid feature name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1115 *"
1116 "enable_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval enable_$ac_useropt=\$ac_optarg ;;
1122
1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125 | --exec | --exe | --ex)
1126 ac_prev=exec_prefix ;;
1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129 | --exec=* | --exe=* | --ex=*)
1130 exec_prefix=$ac_optarg ;;
1131
1132 -gas | --gas | --ga | --g)
1133 # Obsolete; use --with-gas.
1134 with_gas=yes ;;
1135
1136 -help | --help | --hel | --he | -h)
1137 ac_init_help=long ;;
1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139 ac_init_help=recursive ;;
1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141 ac_init_help=short ;;
1142
1143 -host | --host | --hos | --ho)
1144 ac_prev=host_alias ;;
1145 -host=* | --host=* | --hos=* | --ho=*)
1146 host_alias=$ac_optarg ;;
1147
1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149 ac_prev=htmldir ;;
1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151 | --ht=*)
1152 htmldir=$ac_optarg ;;
1153
1154 -includedir | --includedir | --includedi | --included | --include \
1155 | --includ | --inclu | --incl | --inc)
1156 ac_prev=includedir ;;
1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158 | --includ=* | --inclu=* | --incl=* | --inc=*)
1159 includedir=$ac_optarg ;;
1160
1161 -infodir | --infodir | --infodi | --infod | --info | --inf)
1162 ac_prev=infodir ;;
1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164 infodir=$ac_optarg ;;
1165
1166 -libdir | --libdir | --libdi | --libd)
1167 ac_prev=libdir ;;
1168 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169 libdir=$ac_optarg ;;
1170
1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172 | --libexe | --libex | --libe)
1173 ac_prev=libexecdir ;;
1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175 | --libexe=* | --libex=* | --libe=*)
1176 libexecdir=$ac_optarg ;;
1177
1178 -localedir | --localedir | --localedi | --localed | --locale)
1179 ac_prev=localedir ;;
1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181 localedir=$ac_optarg ;;
1182
1183 -localstatedir | --localstatedir | --localstatedi | --localstated \
1184 | --localstate | --localstat | --localsta | --localst | --locals)
1185 ac_prev=localstatedir ;;
1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188 localstatedir=$ac_optarg ;;
1189
1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191 ac_prev=mandir ;;
1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193 mandir=$ac_optarg ;;
1194
1195 -nfp | --nfp | --nf)
1196 # Obsolete; use --without-fp.
1197 with_fp=no ;;
1198
1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200 | --no-cr | --no-c | -n)
1201 no_create=yes ;;
1202
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 no_recursion=yes ;;
1206
1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209 | --oldin | --oldi | --old | --ol | --o)
1210 ac_prev=oldincludedir ;;
1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214 oldincludedir=$ac_optarg ;;
1215
1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217 ac_prev=prefix ;;
1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219 prefix=$ac_optarg ;;
1220
1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222 | --program-pre | --program-pr | --program-p)
1223 ac_prev=program_prefix ;;
1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226 program_prefix=$ac_optarg ;;
1227
1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229 | --program-suf | --program-su | --program-s)
1230 ac_prev=program_suffix ;;
1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233 program_suffix=$ac_optarg ;;
1234
1235 -program-transform-name | --program-transform-name \
1236 | --program-transform-nam | --program-transform-na \
1237 | --program-transform-n | --program-transform- \
1238 | --program-transform | --program-transfor \
1239 | --program-transfo | --program-transf \
1240 | --program-trans | --program-tran \
1241 | --progr-tra | --program-tr | --program-t)
1242 ac_prev=program_transform_name ;;
1243 -program-transform-name=* | --program-transform-name=* \
1244 | --program-transform-nam=* | --program-transform-na=* \
1245 | --program-transform-n=* | --program-transform-=* \
1246 | --program-transform=* | --program-transfor=* \
1247 | --program-transfo=* | --program-transf=* \
1248 | --program-trans=* | --program-tran=* \
1249 | --progr-tra=* | --program-tr=* | --program-t=*)
1250 program_transform_name=$ac_optarg ;;
1251
1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253 ac_prev=pdfdir ;;
1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255 pdfdir=$ac_optarg ;;
1256
1257 -psdir | --psdir | --psdi | --psd | --ps)
1258 ac_prev=psdir ;;
1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 psdir=$ac_optarg ;;
1261
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 silent=yes ;;
1265
1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267 ac_prev=sbindir ;;
1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269 | --sbi=* | --sb=*)
1270 sbindir=$ac_optarg ;;
1271
1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274 | --sharedst | --shareds | --shared | --share | --shar \
1275 | --sha | --sh)
1276 ac_prev=sharedstatedir ;;
1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280 | --sha=* | --sh=*)
1281 sharedstatedir=$ac_optarg ;;
1282
1283 -site | --site | --sit)
1284 ac_prev=site ;;
1285 -site=* | --site=* | --sit=*)
1286 site=$ac_optarg ;;
1287
1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289 ac_prev=srcdir ;;
1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291 srcdir=$ac_optarg ;;
1292
1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294 | --syscon | --sysco | --sysc | --sys | --sy)
1295 ac_prev=sysconfdir ;;
1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298 sysconfdir=$ac_optarg ;;
1299
1300 -target | --target | --targe | --targ | --tar | --ta | --t)
1301 ac_prev=target_alias ;;
1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303 target_alias=$ac_optarg ;;
1304
1305 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 verbose=yes ;;
1307
1308 -version | --version | --versio | --versi | --vers | -V)
1309 ac_init_version=: ;;
1310
1311 -with-* | --with-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1319 *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=\$ac_optarg ;;
1326
1327 -without-* | --without-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=no ;;
1342
1343 --x)
1344 # Obsolete; use --with-x.
1345 with_x=yes ;;
1346
1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1348 | --x-incl | --x-inc | --x-in | --x-i)
1349 ac_prev=x_includes ;;
1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1352 x_includes=$ac_optarg ;;
1353
1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1356 ac_prev=x_libraries ;;
1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1359 x_libraries=$ac_optarg ;;
1360
1361 -*) as_fn_error "unrecognized option: \`$ac_option'
1362 Try \`$0 --help' for more information."
1363 ;;
1364
1365 *=*)
1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367 # Reject names that are not valid shell variable names.
1368 case $ac_envvar in #(
1369 '' | [0-9]* | *[!_$as_cr_alnum]* )
1370 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1371 esac
1372 eval $ac_envvar=\$ac_optarg
1373 export $ac_envvar ;;
1374
1375 *)
1376 # FIXME: should be removed in autoconf 3.0.
1377 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1380 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 ;;
1382
1383 esac
1384 done
1385
1386 if test -n "$ac_prev"; then
1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1388 as_fn_error "missing argument to $ac_option"
1389 fi
1390
1391 if test -n "$ac_unrecognized_opts"; then
1392 case $enable_option_checking in
1393 no) ;;
1394 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1397 fi
1398
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1404 do
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1418 done
1419
1420 # There might be people who depend on the old broken behavior: `$host'
1421 # used to hold the argument of --host etc.
1422 # FIXME: To remove some day.
1423 build=$build_alias
1424 host=$host_alias
1425 target=$target_alias
1426
1427 # FIXME: To remove some day.
1428 if test "x$host_alias" != x; then
1429 if test "x$build_alias" = x; then
1430 cross_compiling=maybe
1431 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1432 If a cross compiler is detected then cross compile mode will be used." >&2
1433 elif test "x$build_alias" != "x$host_alias"; then
1434 cross_compiling=yes
1435 fi
1436 fi
1437
1438 ac_tool_prefix=
1439 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1440
1441 test "$silent" = yes && exec 6>/dev/null
1442
1443
1444 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445 ac_ls_di=`ls -di .` &&
1446 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 as_fn_error "working directory cannot be determined"
1448 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449 as_fn_error "pwd does not report name of working directory"
1450
1451
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\/\)$/{
1471 s//\1/
1472 q
1473 }
1474 /^X\(\/\).*/{
1475 s//\1/
1476 q
1477 }
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1482 fi
1483 else
1484 ac_srcdir_defaulted=no
1485 fi
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1489 fi
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1493 pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 srcdir=.
1497 fi
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1510
1511 #
1512 # Report the --help message.
1513 #
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1517 cat <<_ACEOF
1518 \`configure' configures this package to adapt to many kinds of systems.
1519
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1521
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1524
1525 Defaults for the options are specified in brackets.
1526
1527 Configuration:
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print \`checking...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for \`--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1537
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 [PREFIX]
1543
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1548
1549 For better control, use the options below.
1550
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1571 _ACEOF
1572
1573 cat <<\_ACEOF
1574
1575 Program names:
1576 --program-prefix=PREFIX prepend PREFIX to installed program names
1577 --program-suffix=SUFFIX append SUFFIX to installed program names
1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579
1580 System types:
1581 --build=BUILD configure for building on BUILD [guessed]
1582 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1583 --target=TARGET configure for building compilers for TARGET [HOST]
1584 _ACEOF
1585 fi
1586
1587 if test -n "$ac_init_help"; then
1588
1589 cat <<\_ACEOF
1590
1591 Optional Features:
1592 --disable-option-checking ignore unrecognized --enable/--with options
1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1595 --enable-generated-files-in-srcdir
1596 put copies of generated files in source dir intended
1597 for creating source tarballs for users without
1598 texinfo bison or flex
1599 --disable-largefile omit support for large files
1600 --disable-build-format-warnings
1601 don't use -Wformat while building GCC
1602 --enable-werror-always enable -Werror despite compiler version
1603 --enable-checking[=LIST]
1604 enable expensive run-time checks. With LIST, enable
1605 only specific categories of checks. Categories are:
1606 yes,no,all,none,release. Flags are:
1607 assert,df,extra,fold,gc,gcac,gimple,misc,
1608 rtlflag,rtl,runtime,tree,valgrind,types
1609 --enable-coverage[=LEVEL]
1610 enable compiler's code coverage collection. Use to
1611 measure compiler performance and locate unused parts
1612 of the compiler. With LEVEL, specify optimization.
1613 Values are opt, noopt, default is noopt
1614 --enable-gather-detailed-mem-stats
1615 enable detailed memory allocation stats gathering
1616 --enable-valgrind-annotations
1617 enable valgrind runtime interaction
1618 --enable-multilib enable library support for multiple ABIs
1619 --enable-multiarch enable support for multiarch paths
1620 --enable-__cxa_atexit enable __cxa_atexit for C++
1621 --enable-decimal-float={no,yes,bid,dpd}
1622 enable decimal float extension to C. Selecting 'bid'
1623 or 'dpd' choses which decimal floating point format
1624 to use
1625 --enable-fixed-point enable fixed-point arithmetic extension to C
1626 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1627 package
1628 --enable-tls enable or disable generation of tls code overriding
1629 the assembler check for tls support
1630 --enable-vtable-verify enable vtable verification feature
1631 --enable-objc-gc enable the use of Boehm's garbage collector with the
1632 GNU Objective-C runtime
1633 --disable-shared don't provide a shared libgcc
1634 --enable-languages=LIST specify which front-ends to build
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-sjlj-exceptions
1637 arrange to use setjmp/longjmp exception handling
1638 --enable-secureplt enable -msecure-plt by default for PowerPC
1639 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1640 Default to platform configuration
1641 --enable-leading-mingw64-underscores
1642 enable leading underscores on 64 bit mingw targets
1643 --enable-cld enable -mcld by default for 32bit x86
1644 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1645 x86
1646 --disable-win32-registry
1647 disable lookup of installation paths in the Registry
1648 on Windows hosts
1649 --enable-win32-registry enable registry lookup (default)
1650 --enable-win32-registry=KEY
1651 use KEY instead of GCC version as the last portion
1652 of the registry key
1653 --enable-shared[=PKGS] build shared libraries [default=yes]
1654 --enable-static[=PKGS] build static libraries [default=yes]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --disable-libtool-lock avoid locking (might break parallel builds)
1658 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1659 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1660 --enable-gnu-indirect-function
1661 enable the use of the @gnu_indirect_function to
1662 glibc systems
1663 --enable-initfini-array use .init_array/.fini_array sections
1664 --enable-comdat enable COMDAT group support
1665
1666 --enable-fix-cortex-a53-835769
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 835769 by default
1669 --disable-fix-cortex-a53-835769
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 835769 by default
1672
1673
1674 --enable-fix-cortex-a53-843419
1675 enable workaround for AArch64 Cortex-A53 erratum
1676 843419 by default
1677 --disable-fix-cortex-a53-843419
1678 disable workaround for AArch64 Cortex-A53 erratum
1679 843419 by default
1680
1681 --enable-gnu-unique-object
1682 enable the use of the @gnu_unique_object ELF
1683 extension on glibc systems
1684 --enable-linker-build-id
1685 compiler will always pass --build-id to linker
1686 --enable-libssp enable linking against libssp
1687 --enable-default-ssp enable Stack Smashing Protection as default
1688 --enable-maintainer-mode
1689 enable make rules and dependencies not useful (and
1690 sometimes confusing) to the casual installer
1691 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1692 thrashing on the build machine
1693 --enable-version-specific-runtime-libs
1694 specify that runtime libraries should be installed
1695 in a compiler-specific directory
1696 --enable-plugin enable plugin support
1697 --enable-host-shared build host code as shared libraries
1698 --disable-libquadmath-support
1699 disable libquadmath support for Fortran
1700 --enable-default-pie enable Position Independent Executable as default
1701
1702 Optional Packages:
1703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1705 --with-build-libsubdir=DIR Directory where to find libraries for build system
1706 --with-local-prefix=DIR specifies directory to put local include
1707 --with-native-system-header-dir=dir
1708 use dir as the directory to look for standard
1709 system header files in. Defaults to /usr/include.
1710 --with-build-sysroot=sysroot
1711 use sysroot as the system root during the build
1712 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1713 --with-gxx-include-dir=DIR
1714 specifies directory to put g++ header files
1715 --with-cpp-install-dir=DIR
1716 install the user visible C preprocessor in DIR
1717 (relative to PREFIX) as well as PREFIX/bin
1718 --with-gnu-ld arrange to work with GNU ld
1719 --with-ld arrange to use the specified ld (full pathname)
1720 --with-demangler-in-ld try to use demangler in GNU ld
1721 --with-gnu-as arrange to work with GNU as
1722 --with-as arrange to use the specified as (full pathname)
1723 --with-stabs arrange to use stabs instead of host debug format
1724 --with-dwarf2 force the default debug format to be DWARF 2
1725 --with-specs=SPECS add SPECS to driver command-line processing
1726 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1727 --with-bugurl=URL Direct users to URL to report a bug
1728 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1729 --with-gnu-ld assume the C compiler uses GNU ld default=no
1730 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1731 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1732 --with-gcc-major-version-only
1733 use only GCC major number in filesystem paths
1734 --with-pic try to use only PIC/non-PIC objects [default=use
1735 both]
1736 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1737 --with-plugin-ld=[ARG] specify the plugin linker
1738 --with-glibc-version=M.N
1739 assume GCC used with glibc version M.N or later
1740 --with-long-double-128 use 128-bit long double by default
1741 --with-gc={page,zone} this option is not supported anymore. It used to
1742 choose the garbage collection mechanism to use with
1743 the compiler
1744 --with-system-zlib use installed libz
1745 --with-linker-hash-style={sysv,gnu,both}
1746 specify the linker hash style
1747 --with-diagnostics-color={never,auto,auto-if-env,always}
1748 specify the default of -fdiagnostics-color option
1749 auto-if-env stands for -fdiagnostics-color=auto if
1750 GCC_COLOR environment variable is present and
1751 -fdiagnostics-color=never otherwise
1752
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CXX C++ compiler command
1762 CXXFLAGS C++ compiler flags
1763 CXXCPP C++ preprocessor
1764 CPP C preprocessor
1765 GMPLIBS How to link GMP
1766 GMPINC How to find GMP include files
1767 ISLLIBS How to link isl
1768 ISLINC How to find isl include files
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 Report bugs to the package provider.
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" ||
1782 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783 continue
1784 ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803 .) # We are building in place.
1804 ac_srcdir=.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1811 *) # Relative name.
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1821 echo &&
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1824 echo &&
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1826 else
1827 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828 fi || ac_status=$?
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1830 done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835 cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.64
1838
1839 Copyright (C) 2009 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843 exit
1844 fi
1845
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1849
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_compile
1887
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext
1895 if { { ac_try="$ac_compile"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_compile") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest.$ac_objext; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=1
1920 fi
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 return $ac_retval
1923
1924 } # ac_fn_cxx_try_compile
1925
1926 # ac_fn_cxx_try_cpp LINENO
1927 # ------------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_cxx_try_cpp ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } >/dev/null && {
1948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957 fi
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
1960
1961 } # ac_fn_cxx_try_cpp
1962
1963 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # ---------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_cxx_check_header_mongrel ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_cxx_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1991 else
1992 ac_header_compiler=no
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1997
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_cxx_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2007 else
2008 ac_header_preproc=no
2009 fi
2010 rm -f conftest.err conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2013
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2016 yes:no: )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 ;;
2022 no:yes:* )
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ;;
2034 esac
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 eval "$3=\$ac_header_compiler"
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 fi
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047
2048 } # ac_fn_cxx_check_header_mongrel
2049
2050 # ac_fn_cxx_try_run LINENO
2051 # ------------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053 # that executables *can* be run.
2054 ac_fn_cxx_try_run ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2068 { { case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_try") 2>&5
2075 ac_status=$?
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; }; }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: program exited with status $ac_status" >&5
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 ac_retval=$ac_status
2085 fi
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 return $ac_retval
2089
2090 } # ac_fn_cxx_try_run
2091
2092 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2093 # ---------------------------------------------------------
2094 # Tests whether HEADER exists and can be compiled using the include files in
2095 # INCLUDES, setting the cache variable VAR accordingly.
2096 ac_fn_cxx_check_header_compile ()
2097 {
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 $as_echo_n "(cached) " >&6
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_cxx_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
2121 } # ac_fn_cxx_check_header_compile
2122
2123 # ac_fn_c_try_cpp LINENO
2124 # ----------------------
2125 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_c_try_cpp ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_cpp conftest.$ac_ext"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } >/dev/null && {
2145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 }; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154 fi
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 return $ac_retval
2157
2158 } # ac_fn_c_try_cpp
2159
2160 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2161 # ----------------------------------------------
2162 # Tries to find the compile-time value of EXPR in a program that includes
2163 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2164 # computed
2165 ac_fn_cxx_compute_int ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if test "$cross_compiling" = yes; then
2169 # Depending upon the size, compute the lo and hi bounds.
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main ()
2175 {
2176 static int test_array [1 - 2 * !(($2) >= 0)];
2177 test_array [0] = 0
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_cxx_try_compile "$LINENO"; then :
2184 ac_lo=0 ac_mid=0
2185 while :; do
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0
2194
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_cxx_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid; break
2201 else
2202 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203 if test $ac_lo -le $ac_mid; then
2204 ac_lo= ac_hi=
2205 break
2206 fi
2207 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $4
2215 int
2216 main ()
2217 {
2218 static int test_array [1 - 2 * !(($2) < 0)];
2219 test_array [0] = 0
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_cxx_try_compile "$LINENO"; then :
2226 ac_hi=-1 ac_mid=-1
2227 while :; do
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 $4
2231 int
2232 main ()
2233 {
2234 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2235 test_array [0] = 0
2236
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_cxx_try_compile "$LINENO"; then :
2242 ac_lo=$ac_mid; break
2243 else
2244 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2245 if test $ac_mid -le $ac_hi; then
2246 ac_lo= ac_hi=
2247 break
2248 fi
2249 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 done
2253 else
2254 ac_lo= ac_hi=
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 # Binary search between lo and hi bounds.
2260 while test "x$ac_lo" != "x$ac_hi"; do
2261 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 $4
2265 int
2266 main ()
2267 {
2268 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2269 test_array [0] = 0
2270
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 ac_hi=$ac_mid
2277 else
2278 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 done
2282 case $ac_lo in #((
2283 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2284 '') ac_retval=1 ;;
2285 esac
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $4
2290 static long int longval () { return $2; }
2291 static unsigned long int ulongval () { return $2; }
2292 #include <stdio.h>
2293 #include <stdlib.h>
2294 int
2295 main ()
2296 {
2297
2298 FILE *f = fopen ("conftest.val", "w");
2299 if (! f)
2300 return 1;
2301 if (($2) < 0)
2302 {
2303 long int i = longval ();
2304 if (i != ($2))
2305 return 1;
2306 fprintf (f, "%ld", i);
2307 }
2308 else
2309 {
2310 unsigned long int i = ulongval ();
2311 if (i != ($2))
2312 return 1;
2313 fprintf (f, "%lu", i);
2314 }
2315 /* Do not output a trailing newline, as this causes \r\n confusion
2316 on some platforms. */
2317 return ferror (f) || fclose (f) != 0;
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_cxx_try_run "$LINENO"; then :
2324 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2325 else
2326 ac_retval=1
2327 fi
2328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2329 conftest.$ac_objext conftest.beam conftest.$ac_ext
2330 rm -f conftest.val
2331
2332 fi
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 return $ac_retval
2335
2336 } # ac_fn_cxx_compute_int
2337
2338 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2339 # ---------------------------------------------
2340 # Tests whether TYPE exists after having included INCLUDES, setting cache
2341 # variable VAR accordingly.
2342 ac_fn_cxx_check_type ()
2343 {
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 eval "$3=no"
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 $4
2354 int
2355 main ()
2356 {
2357 if (sizeof ($2))
2358 return 0;
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 $4
2367 int
2368 main ()
2369 {
2370 if (sizeof (($2)))
2371 return 0;
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377
2378 else
2379 eval "$3=yes"
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 eval ac_res=\$$3
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389
2390 } # ac_fn_cxx_check_type
2391
2392 # ac_fn_c_find_intX_t LINENO BITS VAR
2393 # -----------------------------------
2394 # Finds a signed integer type with width BITS, setting cache variable VAR
2395 # accordingly.
2396 ac_fn_c_find_intX_t ()
2397 {
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2400 $as_echo_n "checking for int$2_t... " >&6; }
2401 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 eval "$3=no"
2405 for ac_type in int$2_t 'int' 'long int' \
2406 'long long int' 'short int' 'signed char'; do
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2410 int
2411 main ()
2412 {
2413 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2414 test_array [0] = 0
2415
2416 ;
2417 return 0;
2418 }
2419 _ACEOF
2420 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2423 $ac_includes_default
2424 int
2425 main ()
2426 {
2427 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2428 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2429 test_array [0] = 0
2430
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 if ac_fn_cxx_try_compile "$LINENO"; then :
2436
2437 else
2438 case $ac_type in #(
2439 int$2_t) :
2440 eval "$3=yes" ;; #(
2441 *) :
2442 eval "$3=\$ac_type" ;;
2443 esac
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 eval as_val=\$$3
2449 if test "x$as_val" = x""no; then :
2450
2451 else
2452 break
2453 fi
2454 done
2455 fi
2456 eval ac_res=\$$3
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2460
2461 } # ac_fn_c_find_intX_t
2462
2463 # ac_fn_cxx_try_link LINENO
2464 # -------------------------
2465 # Try to link conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_cxx_try_link ()
2467 {
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { { ac_try="$ac_link"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476 $as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_link") 2>conftest.err
2478 ac_status=$?
2479 if test -s conftest.err; then
2480 grep -v '^ *+' conftest.err >conftest.er1
2481 cat conftest.er1 >&5
2482 mv -f conftest.er1 conftest.err
2483 fi
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; } && {
2486 test -z "$ac_cxx_werror_flag" ||
2487 test ! -s conftest.err
2488 } && test -s conftest$ac_exeext && {
2489 test "$cross_compiling" = yes ||
2490 $as_test_x conftest$ac_exeext
2491 }; then :
2492 ac_retval=0
2493 else
2494 $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 ac_retval=1
2498 fi
2499 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2500 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2501 # interfere with the next link command; also delete a directory that is
2502 # left behind by Apple's compiler. We do this before executing the actions.
2503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2505 return $ac_retval
2506
2507 } # ac_fn_cxx_try_link
2508
2509 # ac_fn_c_find_uintX_t LINENO BITS VAR
2510 # ------------------------------------
2511 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2512 # accordingly.
2513 ac_fn_c_find_uintX_t ()
2514 {
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2517 $as_echo_n "checking for uint$2_t... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 eval "$3=no"
2522 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2523 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 $ac_includes_default
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2531 test_array [0] = 0
2532
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2538 case $ac_type in #(
2539 uint$2_t) :
2540 eval "$3=yes" ;; #(
2541 *) :
2542 eval "$3=\$ac_type" ;;
2543 esac
2544 fi
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 eval as_val=\$$3
2547 if test "x$as_val" = x""no; then :
2548
2549 else
2550 break
2551 fi
2552 done
2553 fi
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559 } # ac_fn_c_find_uintX_t
2560
2561 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2562 # ------------------------------------------------
2563 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2564 ac_fn_cxx_check_header_preproc ()
2565 {
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568 $as_echo_n "checking for $2... " >&6; }
2569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 #include <$2>
2575 _ACEOF
2576 if ac_fn_cxx_try_cpp "$LINENO"; then :
2577 eval "$3=yes"
2578 else
2579 eval "$3=no"
2580 fi
2581 rm -f conftest.err conftest.$ac_ext
2582 fi
2583 eval ac_res=\$$3
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587
2588 } # ac_fn_cxx_check_header_preproc
2589
2590 # ac_fn_cxx_check_func LINENO FUNC VAR
2591 # ------------------------------------
2592 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2593 ac_fn_cxx_check_func ()
2594 {
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2605 #define $2 innocuous_$2
2606
2607 /* System header to define __stub macros and hopefully few prototypes,
2608 which can conflict with char $2 (); below.
2609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2610 <limits.h> exists even on freestanding compilers. */
2611
2612 #ifdef __STDC__
2613 # include <limits.h>
2614 #else
2615 # include <assert.h>
2616 #endif
2617
2618 #undef $2
2619
2620 /* Override any GCC internal prototype to avoid an error.
2621 Use char because int might match the return type of a GCC
2622 builtin and then its argument prototype would still apply. */
2623 #ifdef __cplusplus
2624 extern "C"
2625 #endif
2626 char $2 ();
2627 /* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630 #if defined __stub_$2 || defined __stub___$2
2631 choke me
2632 #endif
2633
2634 int
2635 main ()
2636 {
2637 return $2 ();
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 if ac_fn_cxx_try_link "$LINENO"; then :
2643 eval "$3=yes"
2644 else
2645 eval "$3=no"
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext \
2648 conftest$ac_exeext conftest.$ac_ext
2649 fi
2650 eval ac_res=\$$3
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2652 $as_echo "$ac_res" >&6; }
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654
2655 } # ac_fn_cxx_check_func
2656
2657 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2658 # --------------------------------------
2659 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2660 ac_fn_cxx_check_decl ()
2661 {
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 as_decl_name=`echo $2|sed 's/ *(.*//'`
2664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2666 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2672 $4
2673 int
2674 main ()
2675 {
2676 #ifndef $as_decl_name
2677 #ifdef __cplusplus
2678 (void) $as_decl_use;
2679 #else
2680 (void) $as_decl_name;
2681 #endif
2682 #endif
2683
2684 ;
2685 return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_cxx_try_compile "$LINENO"; then :
2689 eval "$3=yes"
2690 else
2691 eval "$3=no"
2692 fi
2693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 fi
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2699
2700 } # ac_fn_cxx_check_decl
2701
2702 # ac_fn_c_try_link LINENO
2703 # -----------------------
2704 # Try to link conftest.$ac_ext, and return whether this succeeded.
2705 ac_fn_c_try_link ()
2706 {
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 rm -f conftest.$ac_objext conftest$ac_exeext
2709 if { { ac_try="$ac_link"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2715 $as_echo "$ac_try_echo"; } >&5
2716 (eval "$ac_link") 2>conftest.err
2717 ac_status=$?
2718 if test -s conftest.err; then
2719 grep -v '^ *+' conftest.err >conftest.er1
2720 cat conftest.er1 >&5
2721 mv -f conftest.er1 conftest.err
2722 fi
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; } && {
2725 test -z "$ac_c_werror_flag" ||
2726 test ! -s conftest.err
2727 } && test -s conftest$ac_exeext && {
2728 test "$cross_compiling" = yes ||
2729 $as_test_x conftest$ac_exeext
2730 }; then :
2731 ac_retval=0
2732 else
2733 $as_echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 ac_retval=1
2737 fi
2738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2740 # interfere with the next link command; also delete a directory that is
2741 # left behind by Apple's compiler. We do this before executing the actions.
2742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744 return $ac_retval
2745
2746 } # ac_fn_c_try_link
2747
2748 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2749 # ----------------------------------------------
2750 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2751 ac_fn_c_check_header_preproc ()
2752 {
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #include <$2>
2762 _ACEOF
2763 if ac_fn_c_try_cpp "$LINENO"; then :
2764 eval "$3=yes"
2765 else
2766 eval "$3=no"
2767 fi
2768 rm -f conftest.err conftest.$ac_ext
2769 fi
2770 eval ac_res=\$$3
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2772 $as_echo "$ac_res" >&6; }
2773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2774
2775 } # ac_fn_c_check_header_preproc
2776
2777 # ac_fn_c_check_func LINENO FUNC VAR
2778 # ----------------------------------
2779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2780 ac_fn_c_check_func ()
2781 {
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2784 $as_echo_n "checking for $2... " >&6; }
2785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2792 #define $2 innocuous_$2
2793
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char $2 (); below.
2796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 <limits.h> exists even on freestanding compilers. */
2798
2799 #ifdef __STDC__
2800 # include <limits.h>
2801 #else
2802 # include <assert.h>
2803 #endif
2804
2805 #undef $2
2806
2807 /* Override any GCC internal prototype to avoid an error.
2808 Use char because int might match the return type of a GCC
2809 builtin and then its argument prototype would still apply. */
2810 #ifdef __cplusplus
2811 extern "C"
2812 #endif
2813 char $2 ();
2814 /* The GNU C library defines this for functions which it implements
2815 to always fail with ENOSYS. Some functions are actually named
2816 something starting with __ and the normal name is an alias. */
2817 #if defined __stub_$2 || defined __stub___$2
2818 choke me
2819 #endif
2820
2821 int
2822 main ()
2823 {
2824 return $2 ();
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_link "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2833 fi
2834 rm -f core conftest.err conftest.$ac_objext \
2835 conftest$ac_exeext conftest.$ac_ext
2836 fi
2837 eval ac_res=\$$3
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2839 $as_echo "$ac_res" >&6; }
2840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2841
2842 } # ac_fn_c_check_func
2843 cat >config.log <<_ACEOF
2844 This file contains any messages produced by compilers while
2845 running configure, to aid debugging if configure makes a mistake.
2846
2847 It was created by $as_me, which was
2848 generated by GNU Autoconf 2.64. Invocation command line was
2849
2850 $ $0 $@
2851
2852 _ACEOF
2853 exec 5>>config.log
2854 {
2855 cat <<_ASUNAME
2856 ## --------- ##
2857 ## Platform. ##
2858 ## --------- ##
2859
2860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2865
2866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2868
2869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2876
2877 _ASUNAME
2878
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 $as_echo "PATH: $as_dir"
2885 done
2886 IFS=$as_save_IFS
2887
2888 } >&5
2889
2890 cat >&5 <<_ACEOF
2891
2892
2893 ## ----------- ##
2894 ## Core tests. ##
2895 ## ----------- ##
2896
2897 _ACEOF
2898
2899
2900 # Keep a trace of the command line.
2901 # Strip out --no-create and --no-recursion so they do not pile up.
2902 # Strip out --silent because we don't want to record it for future runs.
2903 # Also quote any args containing shell meta-characters.
2904 # Make two passes to allow for proper duplicate-argument suppression.
2905 ac_configure_args=
2906 ac_configure_args0=
2907 ac_configure_args1=
2908 ac_must_keep_next=false
2909 for ac_pass in 1 2
2910 do
2911 for ac_arg
2912 do
2913 case $ac_arg in
2914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2916 | -silent | --silent | --silen | --sile | --sil)
2917 continue ;;
2918 *\'*)
2919 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2920 esac
2921 case $ac_pass in
2922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2923 2)
2924 as_fn_append ac_configure_args1 " '$ac_arg'"
2925 if test $ac_must_keep_next = true; then
2926 ac_must_keep_next=false # Got value, back to normal.
2927 else
2928 case $ac_arg in
2929 *=* | --config-cache | -C | -disable-* | --disable-* \
2930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2932 | -with-* | --with-* | -without-* | --without-* | --x)
2933 case "$ac_configure_args0 " in
2934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2935 esac
2936 ;;
2937 -* ) ac_must_keep_next=true ;;
2938 esac
2939 fi
2940 as_fn_append ac_configure_args " '$ac_arg'"
2941 ;;
2942 esac
2943 done
2944 done
2945 { ac_configure_args0=; unset ac_configure_args0;}
2946 { ac_configure_args1=; unset ac_configure_args1;}
2947
2948 # When interrupted or exit'd, cleanup temporary files, and complete
2949 # config.log. We remove comments because anyway the quotes in there
2950 # would cause problems or look ugly.
2951 # WARNING: Use '\'' to represent an apostrophe within the trap.
2952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2953 trap 'exit_status=$?
2954 # Save into config.log some information that might help in debugging.
2955 {
2956 echo
2957
2958 cat <<\_ASBOX
2959 ## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##
2962 _ASBOX
2963 echo
2964 # The following way of writing the cache mishandles newlines in values,
2965 (
2966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967 eval ac_val=\$$ac_var
2968 case $ac_val in #(
2969 *${as_nl}*)
2970 case $ac_var in #(
2971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2973 esac
2974 case $ac_var in #(
2975 _ | IFS | as_nl) ;; #(
2976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977 *) { eval $ac_var=; unset $ac_var;} ;;
2978 esac ;;
2979 esac
2980 done
2981 (set) 2>&1 |
2982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983 *${as_nl}ac_space=\ *)
2984 sed -n \
2985 "s/'\''/'\''\\\\'\'''\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2987 ;; #(
2988 *)
2989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2990 ;;
2991 esac |
2992 sort
2993 )
2994 echo
2995
2996 cat <<\_ASBOX
2997 ## ----------------- ##
2998 ## Output variables. ##
2999 ## ----------------- ##
3000 _ASBOX
3001 echo
3002 for ac_var in $ac_subst_vars
3003 do
3004 eval ac_val=\$$ac_var
3005 case $ac_val in
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 esac
3008 $as_echo "$ac_var='\''$ac_val'\''"
3009 done | sort
3010 echo
3011
3012 if test -n "$ac_subst_files"; then
3013 cat <<\_ASBOX
3014 ## ------------------- ##
3015 ## File substitutions. ##
3016 ## ------------------- ##
3017 _ASBOX
3018 echo
3019 for ac_var in $ac_subst_files
3020 do
3021 eval ac_val=\$$ac_var
3022 case $ac_val in
3023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3024 esac
3025 $as_echo "$ac_var='\''$ac_val'\''"
3026 done | sort
3027 echo
3028 fi
3029
3030 if test -s confdefs.h; then
3031 cat <<\_ASBOX
3032 ## ----------- ##
3033 ## confdefs.h. ##
3034 ## ----------- ##
3035 _ASBOX
3036 echo
3037 cat confdefs.h
3038 echo
3039 fi
3040 test "$ac_signal" != 0 &&
3041 $as_echo "$as_me: caught signal $ac_signal"
3042 $as_echo "$as_me: exit $exit_status"
3043 } >&5
3044 rm -f core *.core core.conftest.* &&
3045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3046 exit $exit_status
3047 ' 0
3048 for ac_signal in 1 2 13 15; do
3049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3050 done
3051 ac_signal=0
3052
3053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3054 rm -f -r conftest* confdefs.h
3055
3056 $as_echo "/* confdefs.h */" > confdefs.h
3057
3058 # Predefined preprocessor variables.
3059
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE_NAME "$PACKAGE_NAME"
3062 _ACEOF
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3066 _ACEOF
3067
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3070 _ACEOF
3071
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_STRING "$PACKAGE_STRING"
3074 _ACEOF
3075
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3078 _ACEOF
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_URL "$PACKAGE_URL"
3082 _ACEOF
3083
3084
3085 # Let the site file select an alternate cache file if it wants to.
3086 # Prefer an explicitly selected file to automatically selected ones.
3087 ac_site_file1=NONE
3088 ac_site_file2=NONE
3089 if test -n "$CONFIG_SITE"; then
3090 ac_site_file1=$CONFIG_SITE
3091 elif test "x$prefix" != xNONE; then
3092 ac_site_file1=$prefix/share/config.site
3093 ac_site_file2=$prefix/etc/config.site
3094 else
3095 ac_site_file1=$ac_default_prefix/share/config.site
3096 ac_site_file2=$ac_default_prefix/etc/config.site
3097 fi
3098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3099 do
3100 test "x$ac_site_file" = xNONE && continue
3101 if test -r "$ac_site_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3104 sed 's/^/| /' "$ac_site_file" >&5
3105 . "$ac_site_file"
3106 fi
3107 done
3108
3109 if test -r "$cache_file"; then
3110 # Some versions of bash will fail to source /dev/null (special
3111 # files actually), so we avoid doing that.
3112 if test -f "$cache_file"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3114 $as_echo "$as_me: loading cache $cache_file" >&6;}
3115 case $cache_file in
3116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3117 *) . "./$cache_file";;
3118 esac
3119 fi
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3122 $as_echo "$as_me: creating cache $cache_file" >&6;}
3123 >$cache_file
3124 fi
3125
3126 # Check that the precious variables saved in the cache have kept the same
3127 # value.
3128 ac_cache_corrupted=false
3129 for ac_var in $ac_precious_vars; do
3130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3131 eval ac_new_set=\$ac_env_${ac_var}_set
3132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3133 eval ac_new_val=\$ac_env_${ac_var}_value
3134 case $ac_old_set,$ac_new_set in
3135 set,)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3138 ac_cache_corrupted=: ;;
3139 ,set)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3142 ac_cache_corrupted=: ;;
3143 ,);;
3144 *)
3145 if test "x$ac_old_val" != "x$ac_new_val"; then
3146 # differences in whitespace do not lead to failure.
3147 ac_old_val_w=`echo x $ac_old_val`
3148 ac_new_val_w=`echo x $ac_new_val`
3149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3152 ac_cache_corrupted=:
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3156 eval $ac_var=\$ac_old_val
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3162 fi;;
3163 esac
3164 # Pass precious variables to config.status.
3165 if test "$ac_new_set" = set; then
3166 case $ac_new_val in
3167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3168 *) ac_arg=$ac_var=$ac_new_val ;;
3169 esac
3170 case " $ac_configure_args " in
3171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3173 esac
3174 fi
3175 done
3176 if $ac_cache_corrupted; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3181 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3182 fi
3183 ## -------------------- ##
3184 ## Main body of script. ##
3185 ## -------------------- ##
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192
3193
3194
3195
3196
3197
3198 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3199
3200
3201 gcc_version=`cat $srcdir/BASE-VER`
3202
3203 # Determine the host, build, and target systems
3204 ac_aux_dir=
3205 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3206 for ac_t in install-sh install.sh shtool; do
3207 if test -f "$ac_dir/$ac_t"; then
3208 ac_aux_dir=$ac_dir
3209 ac_install_sh="$ac_aux_dir/$ac_t -c"
3210 break 2
3211 fi
3212 done
3213 done
3214 if test -z "$ac_aux_dir"; then
3215 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3216 fi
3217
3218 # These three variables are undocumented and unsupported,
3219 # and are intended to be withdrawn in a future Autoconf release.
3220 # They can cause serious problems if a builder's source tree is in a directory
3221 # whose full name contains unusual characters.
3222 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3223 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3224 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3225
3226
3227 # Make sure we can run config.sub.
3228 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3229 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3232 $as_echo_n "checking build system type... " >&6; }
3233 if test "${ac_cv_build+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 ac_build_alias=$build_alias
3237 test "x$ac_build_alias" = x &&
3238 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3239 test "x$ac_build_alias" = x &&
3240 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3242 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3243
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3246 $as_echo "$ac_cv_build" >&6; }
3247 case $ac_cv_build in
3248 *-*-*) ;;
3249 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3250 esac
3251 build=$ac_cv_build
3252 ac_save_IFS=$IFS; IFS='-'
3253 set x $ac_cv_build
3254 shift
3255 build_cpu=$1
3256 build_vendor=$2
3257 shift; shift
3258 # Remember, the first character of IFS is used to create $*,
3259 # except with old shells:
3260 build_os=$*
3261 IFS=$ac_save_IFS
3262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3263
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3266 $as_echo_n "checking host system type... " >&6; }
3267 if test "${ac_cv_host+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test "x$host_alias" = x; then
3271 ac_cv_host=$ac_cv_build
3272 else
3273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3275 fi
3276
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3279 $as_echo "$ac_cv_host" >&6; }
3280 case $ac_cv_host in
3281 *-*-*) ;;
3282 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3283 esac
3284 host=$ac_cv_host
3285 ac_save_IFS=$IFS; IFS='-'
3286 set x $ac_cv_host
3287 shift
3288 host_cpu=$1
3289 host_vendor=$2
3290 shift; shift
3291 # Remember, the first character of IFS is used to create $*,
3292 # except with old shells:
3293 host_os=$*
3294 IFS=$ac_save_IFS
3295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3296
3297
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3299 $as_echo_n "checking target system type... " >&6; }
3300 if test "${ac_cv_target+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test "x$target_alias" = x; then
3304 ac_cv_target=$ac_cv_host
3305 else
3306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3308 fi
3309
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3312 $as_echo "$ac_cv_target" >&6; }
3313 case $ac_cv_target in
3314 *-*-*) ;;
3315 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3316 esac
3317 target=$ac_cv_target
3318 ac_save_IFS=$IFS; IFS='-'
3319 set x $ac_cv_target
3320 shift
3321 target_cpu=$1
3322 target_vendor=$2
3323 shift; shift
3324 # Remember, the first character of IFS is used to create $*,
3325 # except with old shells:
3326 target_os=$*
3327 IFS=$ac_save_IFS
3328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3329
3330
3331 # The aliases save the names the user supplied, while $host etc.
3332 # will get canonicalized.
3333 test -n "$target_alias" &&
3334 test "$program_prefix$program_suffix$program_transform_name" = \
3335 NONENONEs,x,x, &&
3336 program_prefix=${target_alias}-
3337
3338 # Determine the noncanonical host name, for Ada.
3339 case ${build_alias} in
3340 "") build_noncanonical=${build} ;;
3341 *) build_noncanonical=${build_alias} ;;
3342 esac
3343
3344 case ${host_alias} in
3345 "") host_noncanonical=${build_noncanonical} ;;
3346 *) host_noncanonical=${host_alias} ;;
3347 esac
3348
3349
3350
3351
3352 # Determine the noncanonical target name, for directory use.
3353 case ${target_alias} in
3354 "") target_noncanonical=${host_noncanonical} ;;
3355 *) target_noncanonical=${target_alias} ;;
3356 esac
3357
3358
3359
3360
3361 # Used for constructing correct paths for offload compilers.
3362 real_target_noncanonical=${target_noncanonical}
3363 accel_dir_suffix=
3364
3365 # Determine the target- and build-specific subdirectories
3366
3367 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3368 # have matching libraries, they should use host libraries: Makefile.tpl
3369 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3370 # However, they still use the build modules, because the corresponding
3371 # host modules (e.g. bison) are only built for the host when bootstrap
3372 # finishes. So:
3373 # - build_subdir is where we find build modules, and never changes.
3374 # - build_libsubdir is where we find build libraries, and can be overridden.
3375
3376 # Prefix 'build-' so this never conflicts with target_subdir.
3377 build_subdir="build-${build_noncanonical}"
3378
3379 # Check whether --with-build-libsubdir was given.
3380 if test "${with_build_libsubdir+set}" = set; then :
3381 withval=$with_build_libsubdir; build_libsubdir="$withval"
3382 else
3383 build_libsubdir="$build_subdir"
3384 fi
3385
3386 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3387 if ( test $srcdir = . && test -d gcc ) \
3388 || test -d $srcdir/../host-${host_noncanonical}; then
3389 host_subdir="host-${host_noncanonical}"
3390 else
3391 host_subdir=.
3392 fi
3393 # No prefix.
3394 target_subdir=${target_noncanonical}
3395
3396
3397 # Set program_transform_name
3398 test "$program_prefix" != NONE &&
3399 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3400 # Use a double $ so make ignores it.
3401 test "$program_suffix" != NONE &&
3402 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3403 # Double any \ or $.
3404 # By default was `s,x,x', remove it if useless.
3405 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3406 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3407
3408
3409 # Check for bogus environment variables.
3410 # Test if LIBRARY_PATH contains the notation for the current directory
3411 # since this would lead to problems installing/building glibc.
3412 # LIBRARY_PATH contains the current directory if one of the following
3413 # is true:
3414 # - one of the terminals (":" and ";") is the first or last sign
3415 # - two terminals occur directly after each other
3416 # - the path contains an element with a dot in it
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3418 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3419 case ${LIBRARY_PATH} in
3420 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3421 library_path_setting="contains current directory"
3422 ;;
3423 *)
3424 library_path_setting="ok"
3425 ;;
3426 esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3428 $as_echo "$library_path_setting" >&6; }
3429 if test "$library_path_setting" != "ok"; then
3430 as_fn_error "
3431 *** LIBRARY_PATH shouldn't contain the current directory when
3432 *** building gcc. Please change the environment variable
3433 *** and run configure again." "$LINENO" 5
3434 fi
3435
3436 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3437 # since this would lead to problems installing/building glibc.
3438 # GCC_EXEC_PREFIX contains the current directory if one of the following
3439 # is true:
3440 # - one of the terminals (":" and ";") is the first or last sign
3441 # - two terminals occur directly after each other
3442 # - the path contains an element with a dot in it
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3444 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3445 case ${GCC_EXEC_PREFIX} in
3446 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3447 gcc_exec_prefix_setting="contains current directory"
3448 ;;
3449 *)
3450 gcc_exec_prefix_setting="ok"
3451 ;;
3452 esac
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3454 $as_echo "$gcc_exec_prefix_setting" >&6; }
3455 if test "$gcc_exec_prefix_setting" != "ok"; then
3456 as_fn_error "
3457 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3458 *** building gcc. Please change the environment variable
3459 *** and run configure again." "$LINENO" 5
3460 fi
3461
3462 # -----------
3463 # Directories
3464 # -----------
3465
3466 # Specify the local prefix
3467 local_prefix=
3468
3469 # Check whether --with-local-prefix was given.
3470 if test "${with_local_prefix+set}" = set; then :
3471 withval=$with_local_prefix; case "${withval}" in
3472 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3473 no) ;;
3474 *) local_prefix=$with_local_prefix ;;
3475 esac
3476 fi
3477
3478
3479 # Default local prefix if it is empty
3480 if test x$local_prefix = x; then
3481 local_prefix=/usr/local
3482 fi
3483
3484
3485 # Check whether --with-native-system-header-dir was given.
3486 if test "${with_native_system_header_dir+set}" = set; then :
3487 withval=$with_native_system_header_dir;
3488 case ${with_native_system_header_dir} in
3489 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3490 /* | [A-Za-z]:[\\/]*) ;;
3491 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3492 esac
3493 configured_native_system_header_dir="${withval}"
3494
3495 else
3496 configured_native_system_header_dir=
3497 fi
3498
3499
3500
3501 # Check whether --with-build-sysroot was given.
3502 if test "${with_build_sysroot+set}" = set; then :
3503 withval=$with_build_sysroot; if test x"$withval" != x ; then
3504 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3505 fi
3506 else
3507 SYSROOT_CFLAGS_FOR_TARGET=
3508 fi
3509
3510
3511
3512 if test "x$prefix" = xNONE; then
3513 test_prefix=/usr/local
3514 else
3515 test_prefix=$prefix
3516 fi
3517 if test "x$exec_prefix" = xNONE; then
3518 test_exec_prefix=$test_prefix
3519 else
3520 test_exec_prefix=$exec_prefix
3521 fi
3522
3523
3524 # Check whether --with-sysroot was given.
3525 if test "${with_sysroot+set}" = set; then :
3526 withval=$with_sysroot;
3527 case ${with_sysroot} in
3528 /) ;;
3529 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3530 esac
3531 case ${with_sysroot} in
3532 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3533 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3534 esac
3535
3536 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3537 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3538
3539 case ${TARGET_SYSTEM_ROOT} in
3540 "${test_prefix}"|"${test_prefix}/"*|\
3541 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3542 '${prefix}'|'${prefix}/'*|\
3543 '${exec_prefix}'|'${exec_prefix}/'*)
3544 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3545 TARGET_SYSTEM_ROOT_DEFINE="$t"
3546 ;;
3547 esac
3548
3549 else
3550
3551 TARGET_SYSTEM_ROOT=
3552 TARGET_SYSTEM_ROOT_DEFINE=
3553 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3554
3555 fi
3556
3557
3558
3559
3560
3561 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3562 # passed in by the toplevel make and thus we'd get different behavior
3563 # depending on where we built the sources.
3564 gcc_gxx_include_dir=
3565 # Specify the g++ header file directory
3566
3567 # Check whether --with-gxx-include-dir was given.
3568 if test "${with_gxx_include_dir+set}" = set; then :
3569 withval=$with_gxx_include_dir; case "${withval}" in
3570 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3571 no) ;;
3572 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3573 esac
3574 fi
3575
3576
3577 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3578 if test x${gcc_gxx_include_dir} = x; then
3579 if test x${enable_version_specific_runtime_libs} = xyes; then
3580 gcc_gxx_include_dir='${libsubdir}/include/c++'
3581 else
3582 libstdcxx_incdir='include/c++/$(version)'
3583 if test x$host != x$target; then
3584 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3585 fi
3586 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3587 fi
3588 fi
3589
3590 gcc_gxx_include_dir_add_sysroot=0
3591 if test "${with_sysroot+set}" = set; then
3592 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3593 if test "${gcc_gxx_without_sysroot}"; then
3594 if test x${with_sysroot} != x/; then
3595 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3596 fi
3597 gcc_gxx_include_dir_add_sysroot=1
3598 fi
3599 fi
3600
3601
3602 # Check whether --with-cpp_install_dir was given.
3603 if test "${with_cpp_install_dir+set}" = set; then :
3604 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3605 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3606 elif test x$withval != xno; then
3607 cpp_install_dir=$withval
3608 fi
3609 fi
3610
3611
3612 # We would like to our source tree to be readonly. However when releases or
3613 # pre-releases are generated, the flex/bison generated files as well as the
3614 # various formats of manuals need to be included along with the rest of the
3615 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3616 # just that.
3617
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3619 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3620 # Check whether --enable-generated-files-in-srcdir was given.
3621 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3622 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3623 else
3624 generated_files_in_srcdir=no
3625 fi
3626
3627
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3629 $as_echo "$generated_files_in_srcdir" >&6; }
3630
3631 if test "$generated_files_in_srcdir" = "yes"; then
3632 GENINSRC=''
3633 else
3634 GENINSRC='#'
3635 fi
3636
3637
3638 # -------------------
3639 # Find default linker
3640 # -------------------
3641
3642 # With GNU ld
3643
3644 # Check whether --with-gnu-ld was given.
3645 if test "${with_gnu_ld+set}" = set; then :
3646 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3647 else
3648 gnu_ld_flag=no
3649 fi
3650
3651
3652 case $target in
3653 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3654 *) ld64_flag=no;;
3655 esac
3656
3657 # With pre-defined ld
3658
3659 # Check whether --with-ld was given.
3660 if test "${with_ld+set}" = set; then :
3661 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3662 fi
3663
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test ! -x "$DEFAULT_LINKER"; then
3666 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3667 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3668 gnu_ld_flag=yes
3669 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3670 ld64_flag=yes
3671 fi
3672
3673 cat >>confdefs.h <<_ACEOF
3674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3675 _ACEOF
3676
3677 fi
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3680 $as_echo_n "checking whether a default linker was specified... " >&6; }
3681 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3682 if test x"$gnu_ld_flag" = x"no"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3684 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3687 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3688 fi
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694 # With demangler in GNU ld
3695
3696 # Check whether --with-demangler-in-ld was given.
3697 if test "${with_demangler_in_ld+set}" = set; then :
3698 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3699 else
3700 demangler_in_ld=yes
3701 fi
3702
3703
3704 # ----------------------
3705 # Find default assembler
3706 # ----------------------
3707
3708 # With GNU as
3709
3710 # Check whether --with-gnu-as was given.
3711 if test "${with_gnu_as+set}" = set; then :
3712 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3713 else
3714 gas_flag=no
3715 fi
3716
3717
3718
3719 # Check whether --with-as was given.
3720 if test "${with_as+set}" = set; then :
3721 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3722 fi
3723
3724 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3725 if test ! -x "$DEFAULT_ASSEMBLER"; then
3726 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3727 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3728 gas_flag=yes
3729 fi
3730
3731 cat >>confdefs.h <<_ACEOF
3732 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3733 _ACEOF
3734
3735 fi
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3738 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3739 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3740 if test x"$gas_flag" = x"no"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3742 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3745 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3746 fi
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752 # ---------------
3753 # Find C compiler
3754 # ---------------
3755
3756 # If a non-executable a.out is present (e.g. created by GNU as above even if
3757 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3758 # file, even when creating an executable, so an execution test fails.
3759 # Remove possible default executable files to avoid this.
3760 #
3761 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3762 # Autoconf includes it.
3763 rm -f a.out a.exe b.out
3764
3765 # Find the native compiler
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if test "${ac_cv_prog_CC+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 CC=$ac_cv_prog_CC
3800 if test -n "$CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802 $as_echo "$CC" >&6; }
3803 else
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807
3808
3809 fi
3810 if test -z "$ac_cv_prog_CC"; then
3811 ac_ct_CC=$CC
3812 # Extract the first word of "gcc", so it can be a program name with args.
3813 set dummy gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$ac_ct_CC"; then
3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_ac_ct_CC="gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 $as_echo "$ac_ct_CC" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3858 fi
3859 else
3860 CC="$ac_cv_prog_CC"
3861 fi
3862
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}cc; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if test "${ac_cv_prog_CC+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882 ac_cv_prog_CC="${ac_tool_prefix}cc"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902 fi
3903 fi
3904 if test -z "$CC"; then
3905 # Extract the first word of "cc", so it can be a program name with args.
3906 set dummy cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_prog_CC+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 ac_prog_rejected=no
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3924 ac_prog_rejected=yes
3925 continue
3926 fi
3927 ac_cv_prog_CC="cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 if test $ac_prog_rejected = yes; then
3936 # We found a bogon in the path, so make sure we never use it.
3937 set dummy $ac_cv_prog_CC
3938 shift
3939 if test $# != 0; then
3940 # We chose a different compiler from the bogus one.
3941 # However, it has the same basename, so the bogon will be chosen
3942 # first if we set CC to just the basename; use the full file name.
3943 shift
3944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3945 fi
3946 fi
3947 fi
3948 fi
3949 CC=$ac_cv_prog_CC
3950 if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 $as_echo "$CC" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 if test -z "$CC"; then
3961 if test -n "$ac_tool_prefix"; then
3962 for ac_prog in cl.exe
3963 do
3964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if test "${ac_cv_prog_CC+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001 test -n "$CC" && break
4002 done
4003 fi
4004 if test -z "$CC"; then
4005 ac_ct_CC=$CC
4006 for ac_prog in cl.exe
4007 do
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$ac_ct_CC"; then
4016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_ac_ct_CC="$ac_prog"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036 if test -n "$ac_ct_CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038 $as_echo "$ac_ct_CC" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045 test -n "$ac_ct_CC" && break
4046 done
4047
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057 CC=$ac_ct_CC
4058 fi
4059 fi
4060
4061 fi
4062
4063
4064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error "no acceptable C compiler found in \$PATH
4067 See \`config.log' for more details." "$LINENO" 5; }
4068
4069 # Provide some information about the compiler.
4070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4071 set X $ac_compile
4072 ac_compiler=$2
4073 for ac_option in --version -v -V -qversion; do
4074 { { ac_try="$ac_compiler $ac_option >&5"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4082 ac_status=$?
4083 if test -s conftest.err; then
4084 sed '10a\
4085 ... rest of stderr output deleted ...
4086 10q' conftest.err >conftest.er1
4087 cat conftest.er1 >&5
4088 rm -f conftest.er1 conftest.err
4089 fi
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }
4092 done
4093
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097 int
4098 main ()
4099 {
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 ac_clean_files_save=$ac_clean_files
4106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4107 # Try to create an executable without -o first, disregard a.out.
4108 # It will help us diagnose broken compilers, and finding out an intuition
4109 # of exeext.
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4111 $as_echo_n "checking for C compiler default output file name... " >&6; }
4112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4113
4114 # The possible output files:
4115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4116
4117 ac_rmfiles=
4118 for ac_file in $ac_files
4119 do
4120 case $ac_file in
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4123 esac
4124 done
4125 rm -f $ac_rmfiles
4126
4127 if { { ac_try="$ac_link_default"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 $as_echo "$ac_try_echo"; } >&5
4134 (eval "$ac_link_default") 2>&5
4135 ac_status=$?
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }; then :
4138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4141 # so that the user can short-circuit this test for compilers unknown to
4142 # Autoconf.
4143 for ac_file in $ac_files ''
4144 do
4145 test -f "$ac_file" || continue
4146 case $ac_file in
4147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4148 ;;
4149 [ab].out )
4150 # We found the default executable, but exeext='' is most
4151 # certainly right.
4152 break;;
4153 *.* )
4154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4155 then :; else
4156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4157 fi
4158 # We set ac_cv_exeext here because the later test for it is not
4159 # safe: cross compilers may not add the suffix if given an `-o'
4160 # argument, so we may need to know it at that point already.
4161 # Even if this section looks crufty: it has the advantage of
4162 # actually working.
4163 break;;
4164 * )
4165 break;;
4166 esac
4167 done
4168 test "$ac_cv_exeext" = no && ac_cv_exeext=
4169
4170 else
4171 ac_file=''
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4174 $as_echo "$ac_file" >&6; }
4175 if test -z "$ac_file"; then :
4176 $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 { as_fn_set_status 77
4182 as_fn_error "C compiler cannot create executables
4183 See \`config.log' for more details." "$LINENO" 5; }; }
4184 fi
4185 ac_exeext=$ac_cv_exeext
4186
4187 # Check that the compiler produces executables we can run. If not, either
4188 # the compiler is broken, or we cross compile.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4190 $as_echo_n "checking whether the C compiler works... " >&6; }
4191 # If not cross compiling, check that we can run a simple program.
4192 if test "$cross_compiling" != yes; then
4193 if { ac_try='./$ac_file'
4194 { { case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_try") 2>&5
4201 ac_status=$?
4202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203 test $ac_status = 0; }; }; then
4204 cross_compiling=no
4205 else
4206 if test "$cross_compiling" = maybe; then
4207 cross_compiling=yes
4208 else
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error "cannot run C compiled programs.
4212 If you meant to cross compile, use \`--host'.
4213 See \`config.log' for more details." "$LINENO" 5; }
4214 fi
4215 fi
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 $as_echo "yes" >&6; }
4219
4220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4221 ac_clean_files=$ac_clean_files_save
4222 # Check that the compiler produces executables we can run. If not, either
4223 # the compiler is broken, or we cross compile.
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4225 $as_echo_n "checking whether we are cross compiling... " >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4227 $as_echo "$cross_compiling" >&6; }
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4230 $as_echo_n "checking for suffix of executables... " >&6; }
4231 if { { ac_try="$ac_link"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238 (eval "$ac_link") 2>&5
4239 ac_status=$?
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }; then :
4242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4244 # work properly (i.e., refer to `conftest.exe'), while it won't with
4245 # `rm'.
4246 for ac_file in conftest.exe conftest conftest.*; do
4247 test -f "$ac_file" || continue
4248 case $ac_file in
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4251 break;;
4252 * ) break;;
4253 esac
4254 done
4255 else
4256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error "cannot compute suffix of executables: cannot compile and link
4259 See \`config.log' for more details." "$LINENO" 5; }
4260 fi
4261 rm -f conftest$ac_cv_exeext
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4263 $as_echo "$ac_cv_exeext" >&6; }
4264
4265 rm -f conftest.$ac_ext
4266 EXEEXT=$ac_cv_exeext
4267 ac_exeext=$EXEEXT
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4269 $as_echo_n "checking for suffix of object files... " >&6; }
4270 if test "${ac_cv_objext+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main ()
4278 {
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.o conftest.obj
4285 if { { ac_try="$ac_compile"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_compile") 2>&5
4293 ac_status=$?
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }; then :
4296 for ac_file in conftest.o conftest.obj conftest.*; do
4297 test -f "$ac_file" || continue;
4298 case $ac_file in
4299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4301 break;;
4302 esac
4303 done
4304 else
4305 $as_echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310 as_fn_error "cannot compute suffix of object files: cannot compile
4311 See \`config.log' for more details." "$LINENO" 5; }
4312 fi
4313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4316 $as_echo "$ac_cv_objext" >&6; }
4317 OBJEXT=$ac_cv_objext
4318 ac_objext=$OBJEXT
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4320 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4321 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main ()
4329 {
4330 #ifndef __GNUC__
4331 choke me
4332 #endif
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_compiler_gnu=yes
4340 else
4341 ac_compiler_gnu=no
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4349 if test $ac_compiler_gnu = yes; then
4350 GCC=yes
4351 else
4352 GCC=
4353 fi
4354 ac_test_CFLAGS=${CFLAGS+set}
4355 ac_save_CFLAGS=$CFLAGS
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4357 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4358 if test "${ac_cv_prog_cc_g+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_save_c_werror_flag=$ac_c_werror_flag
4362 ac_c_werror_flag=yes
4363 ac_cv_prog_cc_g=no
4364 CFLAGS="-g"
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_prog_cc_g=yes
4378 else
4379 CFLAGS=""
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392
4393 else
4394 ac_c_werror_flag=$ac_save_c_werror_flag
4395 CFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_prog_cc_g=yes
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_c_werror_flag=$ac_save_c_werror_flag
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4418 $as_echo "$ac_cv_prog_cc_g" >&6; }
4419 if test "$ac_test_CFLAGS" = set; then
4420 CFLAGS=$ac_save_CFLAGS
4421 elif test $ac_cv_prog_cc_g = yes; then
4422 if test "$GCC" = yes; then
4423 CFLAGS="-g -O2"
4424 else
4425 CFLAGS="-g"
4426 fi
4427 else
4428 if test "$GCC" = yes; then
4429 CFLAGS="-O2"
4430 else
4431 CFLAGS=
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4435 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4436 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 ac_cv_prog_cc_c89=no
4440 ac_save_CC=$CC
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdarg.h>
4444 #include <stdio.h>
4445 #include <sys/types.h>
4446 #include <sys/stat.h>
4447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4448 struct buf { int x; };
4449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4450 static char *e (p, i)
4451 char **p;
4452 int i;
4453 {
4454 return p[i];
4455 }
4456 static char *f (char * (*g) (char **, int), char **p, ...)
4457 {
4458 char *s;
4459 va_list v;
4460 va_start (v,p);
4461 s = g (p, va_arg (v,int));
4462 va_end (v);
4463 return s;
4464 }
4465
4466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4467 function prototypes and stuff, but not '\xHH' hex character constants.
4468 These don't provoke an error unfortunately, instead are silently treated
4469 as 'x'. The following induces an error, until -std is added to get
4470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4471 array size at least. It's necessary to write '\x00'==0 to get something
4472 that's true only with -std. */
4473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4474
4475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4476 inside strings and character constants. */
4477 #define FOO(x) 'x'
4478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4479
4480 int test (int i, double x);
4481 struct s1 {int (*f) (int a);};
4482 struct s2 {int (*f) (double a);};
4483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4484 int argc;
4485 char **argv;
4486 int
4487 main ()
4488 {
4489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4496 do
4497 CC="$ac_save_CC $ac_arg"
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_prog_cc_c89=$ac_arg
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext
4502 test "x$ac_cv_prog_cc_c89" != "xno" && break
4503 done
4504 rm -f conftest.$ac_ext
4505 CC=$ac_save_CC
4506
4507 fi
4508 # AC_CACHE_VAL
4509 case "x$ac_cv_prog_cc_c89" in
4510 x)
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4512 $as_echo "none needed" >&6; } ;;
4513 xno)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4515 $as_echo "unsupported" >&6; } ;;
4516 *)
4517 CC="$CC $ac_cv_prog_cc_c89"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4520 esac
4521 if test "x$ac_cv_prog_cc_c89" != xno; then :
4522
4523 fi
4524
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 ac_ext=cpp
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536 if test -z "$CXX"; then
4537 if test -n "$CCC"; then
4538 CXX=$CCC
4539 else
4540 if test -n "$ac_tool_prefix"; then
4541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4542 do
4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_CXX+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CXX"; then
4551 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 CXX=$ac_cv_prog_CXX
4571 if test -n "$CXX"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4573 $as_echo "$CXX" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 test -n "$CXX" && break
4581 done
4582 fi
4583 if test -z "$CXX"; then
4584 ac_ct_CXX=$CXX
4585 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4586 do
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$ac_ct_CXX"; then
4595 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_CXX="$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4615 if test -n "$ac_ct_CXX"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4617 $as_echo "$ac_ct_CXX" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623
4624 test -n "$ac_ct_CXX" && break
4625 done
4626
4627 if test "x$ac_ct_CXX" = x; then
4628 CXX="g++"
4629 else
4630 case $cross_compiling:$ac_tool_warned in
4631 yes:)
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4635 esac
4636 CXX=$ac_ct_CXX
4637 fi
4638 fi
4639
4640 fi
4641 fi
4642 # Provide some information about the compiler.
4643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4644 set X $ac_compile
4645 ac_compiler=$2
4646 for ac_option in --version -v -V -qversion; do
4647 { { ac_try="$ac_compiler $ac_option >&5"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4655 ac_status=$?
4656 if test -s conftest.err; then
4657 sed '10a\
4658 ... rest of stderr output deleted ...
4659 10q' conftest.err >conftest.er1
4660 cat conftest.er1 >&5
4661 rm -f conftest.er1 conftest.err
4662 fi
4663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }
4665 done
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4668 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4669 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main ()
4677 {
4678 #ifndef __GNUC__
4679 choke me
4680 #endif
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_cxx_try_compile "$LINENO"; then :
4687 ac_compiler_gnu=yes
4688 else
4689 ac_compiler_gnu=no
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4698 GXX=yes
4699 else
4700 GXX=
4701 fi
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710 ac_cxx_werror_flag=yes
4711 ac_cv_prog_cxx_g=no
4712 CXXFLAGS="-g"
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715
4716 int
4717 main ()
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_cxx_try_compile "$LINENO"; then :
4725 ac_cv_prog_cxx_g=yes
4726 else
4727 CXXFLAGS=""
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4740
4741 else
4742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4743 CXXFLAGS="-g"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746
4747 int
4748 main ()
4749 {
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_cxx_try_compile "$LINENO"; then :
4756 ac_cv_prog_cxx_g=yes
4757 fi
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4766 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4767 if test "$ac_test_CXXFLAGS" = set; then
4768 CXXFLAGS=$ac_save_CXXFLAGS
4769 elif test $ac_cv_prog_cxx_g = yes; then
4770 if test "$GXX" = yes; then
4771 CXXFLAGS="-g -O2"
4772 else
4773 CXXFLAGS="-g"
4774 fi
4775 else
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-O2"
4778 else
4779 CXXFLAGS=
4780 fi
4781 fi
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788
4789
4790
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$GNATBIND"; then
4800 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815 IFS=$as_save_IFS
4816
4817 fi
4818 fi
4819 GNATBIND=$ac_cv_prog_GNATBIND
4820 if test -n "$GNATBIND"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4822 $as_echo "$GNATBIND" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4826 fi
4827
4828
4829 fi
4830 if test -z "$ac_cv_prog_GNATBIND"; then
4831 ac_ct_GNATBIND=$GNATBIND
4832 # Extract the first word of "gnatbind", so it can be a program name with args.
4833 set dummy gnatbind; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$ac_ct_GNATBIND"; then
4840 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4860 if test -n "$ac_ct_GNATBIND"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4862 $as_echo "$ac_ct_GNATBIND" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867
4868 if test "x$ac_ct_GNATBIND" = x; then
4869 GNATBIND="no"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 GNATBIND=$ac_ct_GNATBIND
4878 fi
4879 else
4880 GNATBIND="$ac_cv_prog_GNATBIND"
4881 fi
4882
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$GNATMAKE"; then
4892 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 GNATMAKE=$ac_cv_prog_GNATMAKE
4912 if test -n "$GNATMAKE"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4914 $as_echo "$GNATMAKE" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 fi
4922 if test -z "$ac_cv_prog_GNATMAKE"; then
4923 ac_ct_GNATMAKE=$GNATMAKE
4924 # Extract the first word of "gnatmake", so it can be a program name with args.
4925 set dummy gnatmake; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$ac_ct_GNATMAKE"; then
4932 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4952 if test -n "$ac_ct_GNATMAKE"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4954 $as_echo "$ac_ct_GNATMAKE" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960 if test "x$ac_ct_GNATMAKE" = x; then
4961 GNATMAKE="no"
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969 GNATMAKE=$ac_ct_GNATMAKE
4970 fi
4971 else
4972 GNATMAKE="$ac_cv_prog_GNATMAKE"
4973 fi
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4976 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4977 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 cat >conftest.adb <<EOF
4981 procedure conftest is begin null; end conftest;
4982 EOF
4983 acx_cv_cc_gcc_supports_ada=no
4984 # There is a bug in old released versions of GCC which causes the
4985 # driver to exit successfully when the appropriate language module
4986 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4987 # Therefore we must check for the error message as well as an
4988 # unsuccessful exit.
4989 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4990 # given a .adb file, but produce no object file. So we must check
4991 # if an object file was really produced to guard against this.
4992 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
4993 if test x"$errors" = x && test -f conftest.$ac_objext; then
4994 acx_cv_cc_gcc_supports_ada=yes
4995 fi
4996 rm -f conftest.*
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4999 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5000
5001 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5002 have_gnat=yes
5003 else
5004 have_gnat=no
5005 fi
5006
5007
5008 # Do configure tests with the C++ compiler, since that's what we build with.
5009 ac_ext=cpp
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5014
5015
5016 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5017 # optimizations to be activated explicitly by the toplevel.
5018 case "$CC" in
5019 */prev-gcc/xgcc*) ;;
5020 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5021 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5022 esac
5023
5024
5025
5026 # Determine PICFLAG for target gnatlib.
5027
5028
5029
5030
5031 case "${target}" in
5032 # PIC is the default on some targets or must not be used.
5033 *-*-darwin*)
5034 # For darwin, common symbols are not allowed in MH_DYLIB files
5035 case "${CFLAGS}" in
5036 # If we are using a compiler supporting mdynamic-no-pic
5037 # and the option has been tested as safe to add, then cancel
5038 # it here, since the code generated is incompatible with shared
5039 # libs.
5040 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5041 *) PICFLAG_FOR_TARGET=-fno-common ;;
5042 esac
5043 ;;
5044 alpha*-dec-osf5*)
5045 # PIC is the default.
5046 ;;
5047 hppa*64*-*-hpux*)
5048 # PIC is the default for 64-bit PA HP-UX.
5049 ;;
5050 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5051 ;;
5052 i[34567]86-*-mingw* | x86_64-*-mingw*)
5053 ;;
5054 i[34567]86-*-interix[3-9]*)
5055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5056 # Instead, we relocate shared libraries at runtime.
5057 ;;
5058 i[34567]86-*-nto-qnx*)
5059 # QNX uses GNU C++, but need to define -shared option too, otherwise
5060 # it will coredump.
5061 PICFLAG_FOR_TARGET='-fPIC -shared'
5062 ;;
5063 i[34567]86-pc-msdosdjgpp*)
5064 # DJGPP does not support shared libraries at all.
5065 ;;
5066 ia64*-*-hpux*)
5067 # On IA64 HP-UX, PIC is the default but the pic flag
5068 # sets the default TLS model and affects inlining.
5069 PICFLAG_FOR_TARGET=-fPIC
5070 ;;
5071 mips-sgi-irix6*)
5072 # PIC is the default.
5073 ;;
5074 rs6000-ibm-aix* | powerpc-ibm-aix*)
5075 # All AIX code is PIC.
5076 ;;
5077
5078 # Some targets support both -fPIC and -fpic, but prefer the latter.
5079 # FIXME: Why?
5080 i[34567]86-*-* | x86_64-*-*)
5081 PICFLAG_FOR_TARGET=-fpic
5082 ;;
5083 # FIXME: Override -fPIC default in libgcc only?
5084 sh-*-linux* | sh[2346lbe]*-*-linux*)
5085 PICFLAG_FOR_TARGET=-fpic
5086 ;;
5087 # FIXME: Simplify to sh*-*-netbsd*?
5088 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5089 sh64-*-netbsd* | sh64l*-*-netbsd*)
5090 PICFLAG_FOR_TARGET=-fpic
5091 ;;
5092 # Default to -fPIC unless specified otherwise.
5093 *)
5094 PICFLAG_FOR_TARGET=-fPIC
5095 ;;
5096 esac
5097
5098 # If the user explicitly uses -fpic/-fPIC, keep that.
5099 case "${CFLAGS_FOR_TARGET}" in
5100 *-fpic*)
5101 PICFLAG_FOR_TARGET=-fpic
5102 ;;
5103 *-fPIC*)
5104 PICFLAG_FOR_TARGET=-fPIC
5105 ;;
5106 esac
5107
5108
5109
5110 # -------------------------
5111 # Check C compiler features
5112 # -------------------------
5113
5114
5115 ac_ext=cpp
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5121 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5122 if test -z "$CXXCPP"; then
5123 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 # Double quotes because CXXCPP needs to be expanded
5127 for CXXCPP in "$CXX -E" "/lib/cpp"
5128 do
5129 ac_preproc_ok=false
5130 for ac_cxx_preproc_warn_flag in '' yes
5131 do
5132 # Use a header file that comes with gcc, so configuring glibc
5133 # with a fresh cross-compiler works.
5134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 # <limits.h> exists even on freestanding compilers.
5136 # On the NeXT, cc -E runs the code through the compiler's parser,
5137 # not just through cpp. "Syntax error" is here to catch this case.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if ac_fn_cxx_try_cpp "$LINENO"; then :
5148
5149 else
5150 # Broken: fails on valid input.
5151 continue
5152 fi
5153 rm -f conftest.err conftest.$ac_ext
5154
5155 # OK, works on sane cases. Now check whether nonexistent headers
5156 # can be detected and how.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <ac_nonexistent.h>
5160 _ACEOF
5161 if ac_fn_cxx_try_cpp "$LINENO"; then :
5162 # Broken: success on invalid input.
5163 continue
5164 else
5165 # Passes both tests.
5166 ac_preproc_ok=:
5167 break
5168 fi
5169 rm -f conftest.err conftest.$ac_ext
5170
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then :
5175 break
5176 fi
5177
5178 done
5179 ac_cv_prog_CXXCPP=$CXXCPP
5180
5181 fi
5182 CXXCPP=$ac_cv_prog_CXXCPP
5183 else
5184 ac_cv_prog_CXXCPP=$CXXCPP
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5187 $as_echo "$CXXCPP" >&6; }
5188 ac_preproc_ok=false
5189 for ac_cxx_preproc_warn_flag in '' yes
5190 do
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #ifdef __STDC__
5200 # include <limits.h>
5201 #else
5202 # include <assert.h>
5203 #endif
5204 Syntax error
5205 _ACEOF
5206 if ac_fn_cxx_try_cpp "$LINENO"; then :
5207
5208 else
5209 # Broken: fails on valid input.
5210 continue
5211 fi
5212 rm -f conftest.err conftest.$ac_ext
5213
5214 # OK, works on sane cases. Now check whether nonexistent headers
5215 # can be detected and how.
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <ac_nonexistent.h>
5219 _ACEOF
5220 if ac_fn_cxx_try_cpp "$LINENO"; then :
5221 # Broken: success on invalid input.
5222 continue
5223 else
5224 # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5227 fi
5228 rm -f conftest.err conftest.$ac_ext
5229
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then :
5234
5235 else
5236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5238 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5239 See \`config.log' for more details." "$LINENO" 5; }
5240 fi
5241
5242 ac_ext=cpp
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5250 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5251 if test "${ac_cv_path_GREP+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -z "$GREP"; then
5255 ac_path_GREP_found=false
5256 # Loop through the user's path and test for each of PROGNAME-LIST
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_prog in grep ggrep; do
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5265 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5266 # Check for GNU ac_path_GREP and select it if it is found.
5267 # Check for GNU $ac_path_GREP
5268 case `"$ac_path_GREP" --version 2>&1` in
5269 *GNU*)
5270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5271 *)
5272 ac_count=0
5273 $as_echo_n 0123456789 >"conftest.in"
5274 while :
5275 do
5276 cat "conftest.in" "conftest.in" >"conftest.tmp"
5277 mv "conftest.tmp" "conftest.in"
5278 cp "conftest.in" "conftest.nl"
5279 $as_echo 'GREP' >> "conftest.nl"
5280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282 as_fn_arith $ac_count + 1 && ac_count=$as_val
5283 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5284 # Best one so far, save it but keep looking for a better one
5285 ac_cv_path_GREP="$ac_path_GREP"
5286 ac_path_GREP_max=$ac_count
5287 fi
5288 # 10*(2^10) chars as input seems more than enough
5289 test $ac_count -gt 10 && break
5290 done
5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292 esac
5293
5294 $ac_path_GREP_found && break 3
5295 done
5296 done
5297 done
5298 IFS=$as_save_IFS
5299 if test -z "$ac_cv_path_GREP"; then
5300 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 fi
5302 else
5303 ac_cv_path_GREP=$GREP
5304 fi
5305
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5308 $as_echo "$ac_cv_path_GREP" >&6; }
5309 GREP="$ac_cv_path_GREP"
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5313 $as_echo_n "checking for egrep... " >&6; }
5314 if test "${ac_cv_path_EGREP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5318 then ac_cv_path_EGREP="$GREP -E"
5319 else
5320 if test -z "$EGREP"; then
5321 ac_path_EGREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in egrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5332 # Check for GNU ac_path_EGREP and select it if it is found.
5333 # Check for GNU $ac_path_EGREP
5334 case `"$ac_path_EGREP" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5337 *)
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'EGREP' >> "conftest.nl"
5346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_EGREP="$ac_path_EGREP"
5352 ac_path_EGREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_EGREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_EGREP"; then
5366 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_EGREP=$EGREP
5370 fi
5371
5372 fi
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5375 $as_echo "$ac_cv_path_EGREP" >&6; }
5376 EGREP="$ac_cv_path_EGREP"
5377
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5380 $as_echo_n "checking for ANSI C header files... " >&6; }
5381 if test "${ac_cv_header_stdc+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <stdlib.h>
5387 #include <stdarg.h>
5388 #include <string.h>
5389 #include <float.h>
5390
5391 int
5392 main ()
5393 {
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_cxx_try_compile "$LINENO"; then :
5400 ac_cv_header_stdc=yes
5401 else
5402 ac_cv_header_stdc=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405
5406 if test $ac_cv_header_stdc = yes; then
5407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <string.h>
5411
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414 $EGREP "memchr" >/dev/null 2>&1; then :
5415
5416 else
5417 ac_cv_header_stdc=no
5418 fi
5419 rm -f conftest*
5420
5421 fi
5422
5423 if test $ac_cv_header_stdc = yes; then
5424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <stdlib.h>
5428
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "free" >/dev/null 2>&1; then :
5432
5433 else
5434 ac_cv_header_stdc=no
5435 fi
5436 rm -f conftest*
5437
5438 fi
5439
5440 if test $ac_cv_header_stdc = yes; then
5441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5442 if test "$cross_compiling" = yes; then :
5443 :
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <ctype.h>
5448 #include <stdlib.h>
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 #else
5453 # define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #endif
5459
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5461 int
5462 main ()
5463 {
5464 int i;
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
5468 return 2;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_cxx_try_run "$LINENO"; then :
5473
5474 else
5475 ac_cv_header_stdc=no
5476 fi
5477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5478 conftest.$ac_objext conftest.beam conftest.$ac_ext
5479 fi
5480
5481 fi
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5484 $as_echo "$ac_cv_header_stdc" >&6; }
5485 if test $ac_cv_header_stdc = yes; then
5486
5487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5488
5489 fi
5490
5491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5493 inttypes.h stdint.h unistd.h
5494 do :
5495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5496 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5497 "
5498 eval as_val=\$$as_ac_Header
5499 if test "x$as_val" = x""yes; then :
5500 cat >>confdefs.h <<_ACEOF
5501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 _ACEOF
5503
5504 fi
5505
5506 done
5507
5508
5509
5510 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5511 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5512 MINIX=yes
5513 else
5514 MINIX=
5515 fi
5516
5517
5518 if test "$MINIX" = yes; then
5519
5520 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5521
5522
5523 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5524
5525
5526 $as_echo "#define _MINIX 1" >>confdefs.h
5527
5528 fi
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5532 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5533 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538
5539 # define __EXTENSIONS__ 1
5540 $ac_includes_default
5541 int
5542 main ()
5543 {
5544
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_cxx_try_compile "$LINENO"; then :
5550 ac_cv_safe_to_define___extensions__=yes
5551 else
5552 ac_cv_safe_to_define___extensions__=no
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5557 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5558 test $ac_cv_safe_to_define___extensions__ = yes &&
5559 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5560
5561 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5562
5563 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5564
5565 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5566
5567 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5568
5569
5570 ac_ext=c
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5577 # On Suns, sometimes $CPP names a directory.
5578 if test -n "$CPP" && test -d "$CPP"; then
5579 CPP=
5580 fi
5581 if test -z "$CPP"; then
5582 if test "${ac_cv_prog_CPP+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 # Double quotes because CPP needs to be expanded
5586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5587 do
5588 ac_preproc_ok=false
5589 for ac_c_preproc_warn_flag in '' yes
5590 do
5591 # Use a header file that comes with gcc, so configuring glibc
5592 # with a fresh cross-compiler works.
5593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594 # <limits.h> exists even on freestanding compilers.
5595 # On the NeXT, cc -E runs the code through the compiler's parser,
5596 # not just through cpp. "Syntax error" is here to catch this case.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5604 Syntax error
5605 _ACEOF
5606 if ac_fn_c_try_cpp "$LINENO"; then :
5607
5608 else
5609 # Broken: fails on valid input.
5610 continue
5611 fi
5612 rm -f conftest.err conftest.$ac_ext
5613
5614 # OK, works on sane cases. Now check whether nonexistent headers
5615 # can be detected and how.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <ac_nonexistent.h>
5619 _ACEOF
5620 if ac_fn_c_try_cpp "$LINENO"; then :
5621 # Broken: success on invalid input.
5622 continue
5623 else
5624 # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5627 fi
5628 rm -f conftest.err conftest.$ac_ext
5629
5630 done
5631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5632 rm -f conftest.err conftest.$ac_ext
5633 if $ac_preproc_ok; then :
5634 break
5635 fi
5636
5637 done
5638 ac_cv_prog_CPP=$CPP
5639
5640 fi
5641 CPP=$ac_cv_prog_CPP
5642 else
5643 ac_cv_prog_CPP=$CPP
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5646 $as_echo "$CPP" >&6; }
5647 ac_preproc_ok=false
5648 for ac_c_preproc_warn_flag in '' yes
5649 do
5650 # Use a header file that comes with gcc, so configuring glibc
5651 # with a fresh cross-compiler works.
5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653 # <limits.h> exists even on freestanding compilers.
5654 # On the NeXT, cc -E runs the code through the compiler's parser,
5655 # not just through cpp. "Syntax error" is here to catch this case.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #ifdef __STDC__
5659 # include <limits.h>
5660 #else
5661 # include <assert.h>
5662 #endif
5663 Syntax error
5664 _ACEOF
5665 if ac_fn_c_try_cpp "$LINENO"; then :
5666
5667 else
5668 # Broken: fails on valid input.
5669 continue
5670 fi
5671 rm -f conftest.err conftest.$ac_ext
5672
5673 # OK, works on sane cases. Now check whether nonexistent headers
5674 # can be detected and how.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <ac_nonexistent.h>
5678 _ACEOF
5679 if ac_fn_c_try_cpp "$LINENO"; then :
5680 # Broken: success on invalid input.
5681 continue
5682 else
5683 # Passes both tests.
5684 ac_preproc_ok=:
5685 break
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688
5689 done
5690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691 rm -f conftest.err conftest.$ac_ext
5692 if $ac_preproc_ok; then :
5693
5694 else
5695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5697 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5698 See \`config.log' for more details." "$LINENO" 5; }
5699 fi
5700
5701 ac_ext=cpp
5702 ac_cpp='$CXXCPP $CPPFLAGS'
5703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5706
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5708 $as_echo_n "checking for inline... " >&6; }
5709 if test "${ac_cv_c_inline+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 ac_cv_c_inline=no
5713 for ac_kw in inline __inline__ __inline; do
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #ifndef __cplusplus
5717 typedef int foo_t;
5718 static $ac_kw foo_t static_foo () {return 0; }
5719 $ac_kw foo_t foo () {return 0; }
5720 #endif
5721
5722 _ACEOF
5723 if ac_fn_cxx_try_compile "$LINENO"; then :
5724 ac_cv_c_inline=$ac_kw
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 test "$ac_cv_c_inline" != no && break
5728 done
5729
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5732 $as_echo "$ac_cv_c_inline" >&6; }
5733
5734 case $ac_cv_c_inline in
5735 inline | yes) ;;
5736 *)
5737 case $ac_cv_c_inline in
5738 no) ac_val=;;
5739 *) ac_val=$ac_cv_c_inline;;
5740 esac
5741 cat >>confdefs.h <<_ACEOF
5742 #ifndef __cplusplus
5743 #define inline $ac_val
5744 #endif
5745 _ACEOF
5746 ;;
5747 esac
5748
5749
5750 # Check whether --enable-largefile was given.
5751 if test "${enable_largefile+set}" = set; then :
5752 enableval=$enable_largefile;
5753 fi
5754
5755 if test "$enable_largefile" != no; then
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5758 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5759 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 ac_cv_sys_largefile_CC=no
5763 if test "$GCC" != yes; then
5764 ac_save_CC=$CC
5765 while :; do
5766 # IRIX 6.2 and later do not support large files by default,
5767 # so use the C compiler's -n32 option if that helps.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <sys/types.h>
5771 /* Check that off_t can represent 2**63 - 1 correctly.
5772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5773 since some C++ compilers masquerading as C compilers
5774 incorrectly reject 9223372036854775807. */
5775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5777 && LARGE_OFF_T % 2147483647 == 1)
5778 ? 1 : -1];
5779 int
5780 main ()
5781 {
5782
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_cxx_try_compile "$LINENO"; then :
5788 break
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext
5791 CC="$CC -n32"
5792 if ac_fn_cxx_try_compile "$LINENO"; then :
5793 ac_cv_sys_largefile_CC=' -n32'; break
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext
5796 break
5797 done
5798 CC=$ac_save_CC
5799 rm -f conftest.$ac_ext
5800 fi
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5803 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5804 if test "$ac_cv_sys_largefile_CC" != no; then
5805 CC=$CC$ac_cv_sys_largefile_CC
5806 fi
5807
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5809 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5810 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 while :; do
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 /* Check that off_t can represent 2**63 - 1 correctly.
5818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5819 since some C++ compilers masquerading as C compilers
5820 incorrectly reject 9223372036854775807. */
5821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5823 && LARGE_OFF_T % 2147483647 == 1)
5824 ? 1 : -1];
5825 int
5826 main ()
5827 {
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 if ac_fn_cxx_try_compile "$LINENO"; then :
5834 ac_cv_sys_file_offset_bits=no; break
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #define _FILE_OFFSET_BITS 64
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5848 ? 1 : -1];
5849 int
5850 main ()
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_cxx_try_compile "$LINENO"; then :
5858 ac_cv_sys_file_offset_bits=64; break
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_sys_file_offset_bits=unknown
5862 break
5863 done
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5866 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5867 case $ac_cv_sys_file_offset_bits in #(
5868 no | unknown) ;;
5869 *)
5870 cat >>confdefs.h <<_ACEOF
5871 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5872 _ACEOF
5873 ;;
5874 esac
5875 rm -rf conftest*
5876 if test $ac_cv_sys_file_offset_bits = unknown; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5878 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5879 if test "${ac_cv_sys_large_files+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 while :; do
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5893 ? 1 : -1];
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_cxx_try_compile "$LINENO"; then :
5903 ac_cv_sys_large_files=no; break
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 #define _LARGE_FILES 1
5909 #include <sys/types.h>
5910 /* Check that off_t can represent 2**63 - 1 correctly.
5911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5912 since some C++ compilers masquerading as C compilers
5913 incorrectly reject 9223372036854775807. */
5914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5916 && LARGE_OFF_T % 2147483647 == 1)
5917 ? 1 : -1];
5918 int
5919 main ()
5920 {
5921
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_cxx_try_compile "$LINENO"; then :
5927 ac_cv_sys_large_files=1; break
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 ac_cv_sys_large_files=unknown
5931 break
5932 done
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5935 $as_echo "$ac_cv_sys_large_files" >&6; }
5936 case $ac_cv_sys_large_files in #(
5937 no | unknown) ;;
5938 *)
5939 cat >>confdefs.h <<_ACEOF
5940 #define _LARGE_FILES $ac_cv_sys_large_files
5941 _ACEOF
5942 ;;
5943 esac
5944 rm -rf conftest*
5945 fi
5946 fi
5947
5948
5949 # sizeof(char) is 1 by definition.
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5955 $as_echo_n "checking size of void *... " >&6; }
5956 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5960
5961 else
5962 if test "$ac_cv_type_void_p" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status 77
5966 as_fn_error "cannot compute sizeof (void *)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5968 else
5969 ac_cv_sizeof_void_p=0
5970 fi
5971 fi
5972
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5975 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5976
5977
5978
5979 cat >>confdefs.h <<_ACEOF
5980 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5981 _ACEOF
5982
5983
5984 # The cast to long int works around a bug in the HP C Compiler
5985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5987 # This bug is HP SR number 8606223364.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5989 $as_echo_n "checking size of short... " >&6; }
5990 if test "${ac_cv_sizeof_short+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5994
5995 else
5996 if test "$ac_cv_type_short" = yes; then
5997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5999 { as_fn_set_status 77
6000 as_fn_error "cannot compute sizeof (short)
6001 See \`config.log' for more details." "$LINENO" 5; }; }
6002 else
6003 ac_cv_sizeof_short=0
6004 fi
6005 fi
6006
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6009 $as_echo "$ac_cv_sizeof_short" >&6; }
6010
6011
6012
6013 cat >>confdefs.h <<_ACEOF
6014 #define SIZEOF_SHORT $ac_cv_sizeof_short
6015 _ACEOF
6016
6017
6018 # The cast to long int works around a bug in the HP C Compiler
6019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6021 # This bug is HP SR number 8606223364.
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6023 $as_echo_n "checking size of int... " >&6; }
6024 if test "${ac_cv_sizeof_int+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6028
6029 else
6030 if test "$ac_cv_type_int" = yes; then
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 { as_fn_set_status 77
6034 as_fn_error "cannot compute sizeof (int)
6035 See \`config.log' for more details." "$LINENO" 5; }; }
6036 else
6037 ac_cv_sizeof_int=0
6038 fi
6039 fi
6040
6041 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6043 $as_echo "$ac_cv_sizeof_int" >&6; }
6044
6045
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6049 _ACEOF
6050
6051
6052 # The cast to long int works around a bug in the HP C Compiler
6053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6055 # This bug is HP SR number 8606223364.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6057 $as_echo_n "checking size of long... " >&6; }
6058 if test "${ac_cv_sizeof_long+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6062
6063 else
6064 if test "$ac_cv_type_long" = yes; then
6065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6067 { as_fn_set_status 77
6068 as_fn_error "cannot compute sizeof (long)
6069 See \`config.log' for more details." "$LINENO" 5; }; }
6070 else
6071 ac_cv_sizeof_long=0
6072 fi
6073 fi
6074
6075 fi
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6077 $as_echo "$ac_cv_sizeof_long" >&6; }
6078
6079
6080
6081 cat >>confdefs.h <<_ACEOF
6082 #define SIZEOF_LONG $ac_cv_sizeof_long
6083 _ACEOF
6084
6085
6086 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6087 if test "x$ac_cv_type_long_long" = x""yes; then :
6088
6089 cat >>confdefs.h <<_ACEOF
6090 #define HAVE_LONG_LONG 1
6091 _ACEOF
6092
6093 # The cast to long int works around a bug in the HP C Compiler
6094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6096 # This bug is HP SR number 8606223364.
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6098 $as_echo_n "checking size of long long... " >&6; }
6099 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6103
6104 else
6105 if test "$ac_cv_type_long_long" = yes; then
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 { as_fn_set_status 77
6109 as_fn_error "cannot compute sizeof (long long)
6110 See \`config.log' for more details." "$LINENO" 5; }; }
6111 else
6112 ac_cv_sizeof_long_long=0
6113 fi
6114 fi
6115
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6118 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6119
6120
6121
6122 cat >>confdefs.h <<_ACEOF
6123 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6124 _ACEOF
6125
6126
6127 fi
6128
6129 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6130 case $ac_cv_c_int8_t in #(
6131 no|yes) ;; #(
6132 *)
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define int8_t $ac_cv_c_int8_t
6136 _ACEOF
6137 ;;
6138 esac
6139
6140 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6141 case $ac_cv_c_int16_t in #(
6142 no|yes) ;; #(
6143 *)
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define int16_t $ac_cv_c_int16_t
6147 _ACEOF
6148 ;;
6149 esac
6150
6151 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6152 case $ac_cv_c_int32_t in #(
6153 no|yes) ;; #(
6154 *)
6155
6156 cat >>confdefs.h <<_ACEOF
6157 #define int32_t $ac_cv_c_int32_t
6158 _ACEOF
6159 ;;
6160 esac
6161
6162 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6163 case $ac_cv_c_int64_t in #(
6164 no|yes) ;; #(
6165 *)
6166
6167 cat >>confdefs.h <<_ACEOF
6168 #define int64_t $ac_cv_c_int64_t
6169 _ACEOF
6170 ;;
6171 esac
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6175 $as_echo_n "checking for long long int... " >&6; }
6176 if test "${ac_cv_type_long_long_int+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181
6182 /* For now, do not test the preprocessor; as of 2007 there are too many
6183 implementations with broken preprocessors. Perhaps this can
6184 be revisited in 2012. In the meantime, code should not expect
6185 #if to work with literals wider than 32 bits. */
6186 /* Test literals. */
6187 long long int ll = 9223372036854775807ll;
6188 long long int nll = -9223372036854775807LL;
6189 unsigned long long int ull = 18446744073709551615ULL;
6190 /* Test constant expressions. */
6191 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6192 ? 1 : -1)];
6193 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6194 ? 1 : -1)];
6195 int i = 63;
6196 int
6197 main ()
6198 {
6199 /* Test availability of runtime routines for shift and division. */
6200 long long int llmax = 9223372036854775807ll;
6201 unsigned long long int ullmax = 18446744073709551615ull;
6202 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6203 | (llmax / ll) | (llmax % ll)
6204 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6205 | (ullmax / ull) | (ullmax % ull));
6206 ;
6207 return 0;
6208 }
6209
6210 _ACEOF
6211 if ac_fn_cxx_try_link "$LINENO"; then :
6212 if test "$cross_compiling" = yes; then :
6213 ac_cv_type_long_long_int=yes
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <limits.h>
6218 #ifndef LLONG_MAX
6219 # define HALF \
6220 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6221 # define LLONG_MAX (HALF - 1 + HALF)
6222 #endif
6223 int
6224 main ()
6225 {
6226 long long int n = 1;
6227 int i;
6228 for (i = 0; ; i++)
6229 {
6230 long long int m = n << i;
6231 if (m >> i != n)
6232 return 1;
6233 if (LLONG_MAX / 2 < m)
6234 break;
6235 }
6236 return 0;
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_cxx_try_run "$LINENO"; then :
6242 ac_cv_type_long_long_int=yes
6243 else
6244 ac_cv_type_long_long_int=no
6245 fi
6246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6247 conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 fi
6249
6250 else
6251 ac_cv_type_long_long_int=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6257 $as_echo "$ac_cv_type_long_long_int" >&6; }
6258 if test $ac_cv_type_long_long_int = yes; then
6259
6260 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6261
6262 fi
6263
6264
6265
6266 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6267 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6268
6269 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6270
6271 else
6272 test $ac_cv_type_long_long_int = yes \
6273 && ac_type='long long int' \
6274 || ac_type='long int'
6275
6276 cat >>confdefs.h <<_ACEOF
6277 #define intmax_t $ac_type
6278 _ACEOF
6279
6280 fi
6281
6282
6283
6284 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6285 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6286
6287 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6288
6289 else
6290 for ac_type in 'int' 'long int' 'long long int'; do
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 $ac_includes_default
6294 int
6295 main ()
6296 {
6297 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6298 test_array [0] = 0
6299
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_cxx_try_compile "$LINENO"; then :
6305
6306 cat >>confdefs.h <<_ACEOF
6307 #define intptr_t $ac_type
6308 _ACEOF
6309
6310 ac_type=
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 test -z "$ac_type" && break
6314 done
6315 fi
6316
6317
6318 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6319 case $ac_cv_c_uint8_t in #(
6320 no|yes) ;; #(
6321 *)
6322
6323 $as_echo "#define _UINT8_T 1" >>confdefs.h
6324
6325
6326 cat >>confdefs.h <<_ACEOF
6327 #define uint8_t $ac_cv_c_uint8_t
6328 _ACEOF
6329 ;;
6330 esac
6331
6332 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6333 case $ac_cv_c_uint16_t in #(
6334 no|yes) ;; #(
6335 *)
6336
6337
6338 cat >>confdefs.h <<_ACEOF
6339 #define uint16_t $ac_cv_c_uint16_t
6340 _ACEOF
6341 ;;
6342 esac
6343
6344 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6345 case $ac_cv_c_uint32_t in #(
6346 no|yes) ;; #(
6347 *)
6348
6349 $as_echo "#define _UINT32_T 1" >>confdefs.h
6350
6351
6352 cat >>confdefs.h <<_ACEOF
6353 #define uint32_t $ac_cv_c_uint32_t
6354 _ACEOF
6355 ;;
6356 esac
6357
6358 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6359 case $ac_cv_c_uint64_t in #(
6360 no|yes) ;; #(
6361 *)
6362
6363 $as_echo "#define _UINT64_T 1" >>confdefs.h
6364
6365
6366 cat >>confdefs.h <<_ACEOF
6367 #define uint64_t $ac_cv_c_uint64_t
6368 _ACEOF
6369 ;;
6370 esac
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6374 $as_echo_n "checking for unsigned long long int... " >&6; }
6375 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380
6381 /* For now, do not test the preprocessor; as of 2007 there are too many
6382 implementations with broken preprocessors. Perhaps this can
6383 be revisited in 2012. In the meantime, code should not expect
6384 #if to work with literals wider than 32 bits. */
6385 /* Test literals. */
6386 long long int ll = 9223372036854775807ll;
6387 long long int nll = -9223372036854775807LL;
6388 unsigned long long int ull = 18446744073709551615ULL;
6389 /* Test constant expressions. */
6390 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6391 ? 1 : -1)];
6392 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6393 ? 1 : -1)];
6394 int i = 63;
6395 int
6396 main ()
6397 {
6398 /* Test availability of runtime routines for shift and division. */
6399 long long int llmax = 9223372036854775807ll;
6400 unsigned long long int ullmax = 18446744073709551615ull;
6401 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6402 | (llmax / ll) | (llmax % ll)
6403 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6404 | (ullmax / ull) | (ullmax % ull));
6405 ;
6406 return 0;
6407 }
6408
6409 _ACEOF
6410 if ac_fn_cxx_try_link "$LINENO"; then :
6411 ac_cv_type_unsigned_long_long_int=yes
6412 else
6413 ac_cv_type_unsigned_long_long_int=no
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6419 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6420 if test $ac_cv_type_unsigned_long_long_int = yes; then
6421
6422 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6423
6424 fi
6425
6426
6427
6428 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6430
6431 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6432
6433 else
6434 test $ac_cv_type_unsigned_long_long_int = yes \
6435 && ac_type='unsigned long long int' \
6436 || ac_type='unsigned long int'
6437
6438 cat >>confdefs.h <<_ACEOF
6439 #define uintmax_t $ac_type
6440 _ACEOF
6441
6442 fi
6443
6444
6445
6446 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6447 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6448
6449 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6450
6451 else
6452 for ac_type in 'unsigned int' 'unsigned long int' \
6453 'unsigned long long int'; do
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457 int
6458 main ()
6459 {
6460 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6461 test_array [0] = 0
6462
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_cxx_try_compile "$LINENO"; then :
6468
6469 cat >>confdefs.h <<_ACEOF
6470 #define uintptr_t $ac_type
6471 _ACEOF
6472
6473 ac_type=
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 test -z "$ac_type" && break
6477 done
6478 fi
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6494 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6495 fi
6496
6497 # check what underlying integer type int64_t uses
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6499 $as_echo_n "checking for int64_t underlying type... " >&6; }
6500 if test "${ac_cv_int64_t_type+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503
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> { typedef 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 ac_cv_int64_t_type=long
6524 else
6525 ac_cv_int64_t_type="long long"
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6530 $as_echo "$ac_cv_int64_t_type" >&6; }
6531 if test "$ac_cv_int64_t_type" = "long"; then
6532
6533 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6534
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 #ifdef HAVE_STDINT_H
6540 #include <stdint.h>
6541 #endif
6542 template <typename T> struct X { };
6543 template <>
6544 struct X<long long> { typedef long long t; };
6545
6546 int
6547 main ()
6548 {
6549 X<int64_t>::t x;
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_cxx_try_compile "$LINENO"; then :
6555
6556 else
6557 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6563 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6564 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570
6571 #include <utility>
6572
6573 int
6574 main ()
6575 {
6576 int a, b; std::swap(a,b);
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_cxx_try_compile "$LINENO"; then :
6582 ac_cv_std_swap_in_utility=yes
6583 else
6584 ac_cv_std_swap_in_utility=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6589 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6590 if test $ac_cv_std_swap_in_utility = yes; then
6591
6592 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6593
6594 fi
6595
6596 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6597 # If the host compiler is affected by the bug, and we build with optimization
6598 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6599 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6600 # Since there is no reliable feature check for the presence of this bug,
6601 # we simply use a GCC version number check. (This should never trigger for
6602 # stages 2 or 3 of a native bootstrap.)
6603 aliasing_flags=
6604 if test "$GCC" = yes; then
6605 saved_CXXFLAGS="$CXXFLAGS"
6606
6607 # The following test compilation will succeed if and only if $CXX accepts
6608 # -fno-strict-aliasing *and* is older than GCC 4.3.
6609 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6611 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614
6615 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6616 #error compiler not affected by placement new aliasing bug
6617 #endif
6618
6619 _ACEOF
6620 if ac_fn_cxx_try_compile "$LINENO"; then :
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628
6629 CXXFLAGS="$saved_CXXFLAGS"
6630 fi
6631
6632
6633
6634
6635 # ---------------------
6636 # Warnings and checking
6637 # ---------------------
6638
6639 # Check $CC warning features (if it's GCC).
6640 # We want to use -pedantic, but we don't want warnings about
6641 # * 'long long'
6642 # * variadic macros
6643 # * overlong strings
6644 # * C++11 narrowing conversions in { }
6645 # So, we only use -pedantic if we can disable those warnings.
6646
6647 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6648 # Check whether --enable-build-format-warnings was given.
6649 if test "${enable_build_format_warnings+set}" = set; then :
6650 enableval=$enable_build_format_warnings;
6651 else
6652 enable_build_format_warnings=yes
6653 fi
6654
6655 if test $enable_build_format_warnings = no; then :
6656 wf_opt=-Wno-format
6657 else
6658 wf_opt=
6659 fi
6660 ac_ext=cpp
6661 ac_cpp='$CXXCPP $CPPFLAGS'
6662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6665
6666 loose_warn=
6667 save_CXXFLAGS="$CXXFLAGS"
6668 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6669 # Do the check with the no- prefix removed since gcc silently
6670 # accepts any -Wno-* option on purpose
6671 case $real_option in
6672 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6673 *) option=$real_option ;;
6674 esac
6675 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6678 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6679 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 CXXFLAGS="$option"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685
6686 int
6687 main ()
6688 {
6689
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_cxx_try_compile "$LINENO"; then :
6695 eval "$as_acx_Woption=yes"
6696 else
6697 eval "$as_acx_Woption=no"
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700
6701 fi
6702 eval ac_res=\$$as_acx_Woption
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6704 $as_echo "$ac_res" >&6; }
6705 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6706 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6707 fi
6708 done
6709 CXXFLAGS="$save_CXXFLAGS"
6710 ac_ext=cpp
6711 ac_cpp='$CXXCPP $CPPFLAGS'
6712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715
6716
6717
6718 ac_ext=c
6719 ac_cpp='$CPP $CPPFLAGS'
6720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724 c_loose_warn=
6725 save_CFLAGS="$CFLAGS"
6726 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6727 # Do the check with the no- prefix removed since gcc silently
6728 # accepts any -Wno-* option on purpose
6729 case $real_option in
6730 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6731 *) option=$real_option ;;
6732 esac
6733 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6736 $as_echo_n "checking whether $CC supports $option... " >&6; }
6737 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 CFLAGS="$option"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743
6744 int
6745 main ()
6746 {
6747
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 eval "$as_acx_Woption=yes"
6754 else
6755 eval "$as_acx_Woption=no"
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758
6759 fi
6760 eval ac_res=\$$as_acx_Woption
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6763 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6764 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6765 fi
6766 done
6767 CFLAGS="$save_CFLAGS"
6768 ac_ext=cpp
6769 ac_cpp='$CXXCPP $CPPFLAGS'
6770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6773
6774
6775 ac_ext=cpp
6776 ac_cpp='$CXXCPP $CPPFLAGS'
6777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6780
6781 strict_warn=
6782 save_CXXFLAGS="$CXXFLAGS"
6783 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6784 # Do the check with the no- prefix removed since gcc silently
6785 # accepts any -Wno-* option on purpose
6786 case $real_option in
6787 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6788 *) option=$real_option ;;
6789 esac
6790 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6793 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6794 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 CXXFLAGS="$option"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_cxx_try_compile "$LINENO"; then :
6810 eval "$as_acx_Woption=yes"
6811 else
6812 eval "$as_acx_Woption=no"
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815
6816 fi
6817 eval ac_res=\$$as_acx_Woption
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6821 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6822 fi
6823 done
6824 CXXFLAGS="$save_CXXFLAGS"
6825 ac_ext=cpp
6826 ac_cpp='$CXXCPP $CPPFLAGS'
6827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6830
6831
6832 ac_ext=c
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6837
6838 c_strict_warn=
6839 save_CFLAGS="$CFLAGS"
6840 for real_option in -Wold-style-definition -Wc++-compat; do
6841 # Do the check with the no- prefix removed since gcc silently
6842 # accepts any -Wno-* option on purpose
6843 case $real_option in
6844 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6845 *) option=$real_option ;;
6846 esac
6847 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6850 $as_echo_n "checking whether $CC supports $option... " >&6; }
6851 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 CFLAGS="$option"
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857
6858 int
6859 main ()
6860 {
6861
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 eval "$as_acx_Woption=yes"
6868 else
6869 eval "$as_acx_Woption=no"
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872
6873 fi
6874 eval ac_res=\$$as_acx_Woption
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6878 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6879 fi
6880 done
6881 CFLAGS="$save_CFLAGS"
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894
6895 # Do the check with the no- prefix removed from the warning options
6896 # since gcc silently accepts any -Wno-* option on purpose
6897 if test "$GXX" = yes; then :
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6899 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6900 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 save_CXXFLAGS="$CXXFLAGS"
6904 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907
6908 int
6909 main ()
6910 {
6911
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 if ac_fn_cxx_try_compile "$LINENO"; then :
6917 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6918 else
6919 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 CXXFLAGS="$save_CXXFLAGS"
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6925 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6926 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6927 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6928 fi
6929
6930 fi
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936
6937
6938 ac_ext=cpp
6939 ac_cpp='$CXXCPP $CPPFLAGS'
6940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6943
6944 # Check whether --enable-werror-always was given.
6945 if test "${enable_werror_always+set}" = set; then :
6946 enableval=$enable_werror_always;
6947 else
6948 enable_werror_always=no
6949 fi
6950
6951 if test $enable_werror_always = yes; then :
6952 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6953 fi
6954
6955 ac_ext=cpp
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960
6961
6962
6963 # The above macros do nothing if the compiler is not GCC. However, the
6964 # Makefile has more goo to add other flags, so these variables are used
6965 # to enable warnings only for GCC.
6966 warn_cflags=
6967 warn_cxxflags=
6968 if test "x$GCC" = "xyes"; then
6969 warn_cflags='$(GCC_WARN_CFLAGS)'
6970 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6971 fi
6972
6973
6974
6975 # Disable exceptions and RTTI if building with g++
6976 ac_ext=c
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981
6982 noexception_flags=
6983 save_CFLAGS="$CFLAGS"
6984 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6985 # Do the check with the no- prefix removed since gcc silently
6986 # accepts any -Wno-* option on purpose
6987 case $real_option in
6988 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6989 *) option=$real_option ;;
6990 esac
6991 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6992
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6994 $as_echo_n "checking whether $CC supports $option... " >&6; }
6995 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 CFLAGS="$option"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001
7002 int
7003 main ()
7004 {
7005
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 if ac_fn_c_try_compile "$LINENO"; then :
7011 eval "$as_acx_Woption=yes"
7012 else
7013 eval "$as_acx_Woption=no"
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016
7017 fi
7018 eval ac_res=\$$as_acx_Woption
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7020 $as_echo "$ac_res" >&6; }
7021 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7022 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7023 fi
7024 done
7025 CFLAGS="$save_CFLAGS"
7026 ac_ext=cpp
7027 ac_cpp='$CXXCPP $CPPFLAGS'
7028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7031
7032
7033
7034 # Enable expensive internal checks
7035 is_release=
7036 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7037 is_release=yes
7038 fi
7039
7040 # Check whether --enable-checking was given.
7041 if test "${enable_checking+set}" = set; then :
7042 enableval=$enable_checking; ac_checking_flags="${enableval}"
7043 else
7044
7045 # Determine the default checks.
7046 if test x$is_release = x ; then
7047 ac_checking_flags=yes,extra
7048 else
7049 ac_checking_flags=release
7050 fi
7051 fi
7052
7053 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7054 for check in release $ac_checking_flags
7055 do
7056 case $check in
7057 # these set all the flags to specific states
7058 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7059 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7060 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7061 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7062 ac_tree_checking=1 ; ac_valgrind_checking= ;
7063 ac_types_checking=1 ;;
7064 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7065 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7066 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7067 ac_rtlflag_checking= ; ac_runtime_checking= ;
7068 ac_tree_checking= ; ac_valgrind_checking= ;
7069 ac_types_checking= ;;
7070 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7071 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7072 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7073 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7074 ac_tree_checking=1 ; ac_valgrind_checking= ;
7075 ac_types_checking=1 ;;
7076 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7077 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7078 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7079 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7080 ac_tree_checking= ; ac_valgrind_checking= ;
7081 ac_types_checking= ;;
7082 # these enable particular checks
7083 assert) ac_assert_checking=1 ;;
7084 df) ac_df_checking=1 ;;
7085 extra) ac_extra_checking=1 ;;
7086 fold) ac_fold_checking=1 ;;
7087 gc) ac_gc_checking=1 ;;
7088 gcac) ac_gc_always_collect=1 ;;
7089 gimple) ac_gimple_checking=1 ;;
7090 misc) ac_checking=1 ;;
7091 rtl) ac_rtl_checking=1 ;;
7092 rtlflag) ac_rtlflag_checking=1 ;;
7093 runtime) ac_runtime_checking=1 ;;
7094 tree) ac_tree_checking=1 ;;
7095 types) ac_types_checking=1 ;;
7096 valgrind) ac_valgrind_checking=1 ;;
7097 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7098 esac
7099 done
7100 IFS="$ac_save_IFS"
7101
7102 nocommon_flag=""
7103 if test x$ac_checking != x ; then
7104
7105 $as_echo "#define CHECKING_P 1" >>confdefs.h
7106
7107 nocommon_flag=-fno-common
7108 else
7109 $as_echo "#define CHECKING_P 0" >>confdefs.h
7110
7111 fi
7112
7113 if test x$ac_extra_checking != x ; then
7114
7115 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7116
7117 else
7118 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7119
7120 fi
7121 if test x$ac_df_checking != x ; then
7122
7123 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7124
7125 fi
7126 if test x$ac_assert_checking != x ; then
7127
7128 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7129
7130 fi
7131 if test x$ac_gimple_checking != x ; then
7132
7133 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7134
7135 fi
7136
7137 if test x$ac_runtime_checking != x ; then
7138
7139 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7140
7141 fi
7142 if test x$ac_tree_checking != x ; then
7143
7144 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7145
7146 TREECHECKING=yes
7147 fi
7148 if test x$ac_types_checking != x ; then
7149
7150 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7151
7152 fi
7153
7154 if test x$ac_rtl_checking != x ; then
7155
7156 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7157
7158 fi
7159 if test x$ac_rtlflag_checking != x ; then
7160
7161 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7162
7163 fi
7164 if test x$ac_gc_checking != x ; then
7165
7166 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7167
7168 fi
7169 if test x$ac_gc_always_collect != x ; then
7170
7171 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7172
7173 fi
7174 if test x$ac_fold_checking != x ; then
7175
7176 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7177
7178 fi
7179 valgrind_path_defines=
7180 valgrind_command=
7181
7182 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7183 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7184 have_valgrind_h=yes
7185 else
7186 have_valgrind_h=no
7187 fi
7188
7189
7190
7191 # It is certainly possible that there's valgrind but no valgrind.h.
7192 # GCC relies on making annotations so we must have both.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7194 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 #include <valgrind/memcheck.h>
7198 #ifndef VALGRIND_DISCARD
7199 #error VALGRIND_DISCARD not defined
7200 #endif
7201 _ACEOF
7202 if ac_fn_cxx_try_cpp "$LINENO"; then :
7203 gcc_cv_header_valgrind_memcheck_h=yes
7204 else
7205 gcc_cv_header_valgrind_memcheck_h=no
7206 fi
7207 rm -f conftest.err conftest.$ac_ext
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7209 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7211 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <memcheck.h>
7215 #ifndef VALGRIND_DISCARD
7216 #error VALGRIND_DISCARD not defined
7217 #endif
7218 _ACEOF
7219 if ac_fn_cxx_try_cpp "$LINENO"; then :
7220 gcc_cv_header_memcheck_h=yes
7221 else
7222 gcc_cv_header_memcheck_h=no
7223 fi
7224 rm -f conftest.err conftest.$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7226 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7227 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7228
7229 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7230
7231 fi
7232 if test $gcc_cv_header_memcheck_h = yes; then
7233
7234 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7235
7236 fi
7237
7238 if test x$ac_valgrind_checking != x ; then
7239
7240 # Prepare PATH_SEPARATOR.
7241 # The user is always right.
7242 if test "${PATH_SEPARATOR+set}" != set; then
7243 echo "#! /bin/sh" >conf$$.sh
7244 echo "exit 0" >>conf$$.sh
7245 chmod +x conf$$.sh
7246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7247 PATH_SEPARATOR=';'
7248 else
7249 PATH_SEPARATOR=:
7250 fi
7251 rm -f conf$$.sh
7252 fi
7253
7254 # Find out how to test for executable files. Don't use a zero-byte file,
7255 # as systems may use methods other than mode bits to determine executability.
7256 cat >conf$$.file <<_ASEOF
7257 #! /bin/sh
7258 exit 0
7259 _ASEOF
7260 chmod +x conf$$.file
7261 if test -x conf$$.file >/dev/null 2>&1; then
7262 ac_executable_p="test -x"
7263 else
7264 ac_executable_p="test -f"
7265 fi
7266 rm -f conf$$.file
7267
7268 # Extract the first word of "valgrind", so it can be a program name with args.
7269 set dummy valgrind; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 case "$valgrind_path" in
7276 [\\/]* | ?:[\\/]*)
7277 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7278 ;;
7279 *)
7280 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7281 for ac_dir in $PATH; do
7282 IFS="$ac_save_IFS"
7283 test -z "$ac_dir" && ac_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7286 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7287 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7288 break 2
7289 fi
7290 fi
7291 done
7292 done
7293 IFS="$ac_save_IFS"
7294 ;;
7295 esac
7296 fi
7297 valgrind_path="$ac_cv_path_valgrind_path"
7298 if test -n "$valgrind_path"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7300 $as_echo "$valgrind_path" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306 if test "x$valgrind_path" = "x" \
7307 || (test $have_valgrind_h = no \
7308 && test $gcc_cv_header_memcheck_h = no \
7309 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7310 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7311 fi
7312 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7313 valgrind_command="$valgrind_path -q"
7314
7315 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7316
7317 fi
7318
7319
7320
7321 # Enable code coverage collection
7322 # Check whether --enable-coverage was given.
7323 if test "${enable_coverage+set}" = set; then :
7324 enableval=$enable_coverage; case "${enableval}" in
7325 yes|noopt)
7326 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-inline-functions -fkeep-static-functions"
7327 ;;
7328 opt)
7329 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-inline-functions -fkeep-static-functions"
7330 ;;
7331 no)
7332 # a.k.a. --disable-coverage
7333 coverage_flags=""
7334 ;;
7335 *)
7336 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7337 ;;
7338 esac
7339 else
7340 coverage_flags=""
7341 fi
7342
7343
7344
7345 # Check whether --enable-gather-detailed-mem-stats was given.
7346 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7347 enableval=$enable_gather_detailed_mem_stats;
7348 else
7349 enable_gather_detailed_mem_stats=no
7350 fi
7351
7352 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7353
7354 cat >>confdefs.h <<_ACEOF
7355 #define GATHER_STATISTICS $gather_stats
7356 _ACEOF
7357
7358
7359 # Check whether --enable-valgrind-annotations was given.
7360 if test "${enable_valgrind_annotations+set}" = set; then :
7361 enableval=$enable_valgrind_annotations;
7362 else
7363 enable_valgrind_annotations=no
7364 fi
7365
7366 if test x$enable_valgrind_annotations != xno \
7367 || test x$ac_valgrind_checking != x; then
7368 if (test $have_valgrind_h = no \
7369 && test $gcc_cv_header_memcheck_h = no \
7370 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7371 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7372 fi
7373
7374 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7375
7376 fi
7377
7378 # -------------------------------
7379 # Miscenalleous configure options
7380 # -------------------------------
7381
7382 # With stabs
7383
7384 # Check whether --with-stabs was given.
7385 if test "${with_stabs+set}" = set; then :
7386 withval=$with_stabs; stabs="$with_stabs"
7387 else
7388 stabs=no
7389 fi
7390
7391
7392 # Determine whether or not multilibs are enabled.
7393 # Check whether --enable-multilib was given.
7394 if test "${enable_multilib+set}" = set; then :
7395 enableval=$enable_multilib;
7396 else
7397 enable_multilib=yes
7398 fi
7399
7400
7401
7402 # Determine whether or not multiarch is enabled.
7403 # Check whether --enable-multiarch was given.
7404 if test "${enable_multiarch+set}" = set; then :
7405 enableval=$enable_multiarch; case "${enableval}" in
7406 yes|no|auto) enable_multiarch=$enableval;;
7407 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7408 esac
7409 else
7410 enable_multiarch=auto
7411 fi
7412
7413 if test x${enable_multiarch} = xauto; then
7414 if test x${with_native_system_header_dir} != x; then
7415 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7416 enable_multiarch=no
7417 fi
7418 if test x$host != x$target && test "x$with_sysroot" = x; then
7419 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7420 enable_multiarch=no
7421 fi
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7424 $as_echo_n "checking for multiarch configuration... " >&6; }
7425
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7427 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7428
7429 # needed for setting the multiarch name for soft-float/hard-float ABIs
7430
7431
7432
7433 # Enable __cxa_atexit for C++.
7434 # Check whether --enable-__cxa_atexit was given.
7435 if test "${enable___cxa_atexit+set}" = set; then :
7436 enableval=$enable___cxa_atexit;
7437 fi
7438
7439
7440 # Enable C extension for decimal float if target supports it.
7441
7442 # Check whether --enable-decimal-float was given.
7443 if test "${enable_decimal_float+set}" = set; then :
7444 enableval=$enable_decimal_float;
7445 case $enable_decimal_float in
7446 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7447 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7448 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7449 esac
7450
7451 else
7452
7453 case $target in
7454 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7455 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7456 i?86*-*-mingw* | x86_64*-*-mingw* | \
7457 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7458 enable_decimal_float=yes
7459 ;;
7460 *)
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7462 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7463 enable_decimal_float=no
7464 ;;
7465 esac
7466
7467 fi
7468
7469
7470 # x86's use BID format instead of DPD
7471 case x$enable_decimal_float in
7472 xyes)
7473 case $target in
7474 i?86*-*-* | x86_64*-*-*)
7475 enable_decimal_float=bid
7476 ;;
7477 *)
7478 enable_decimal_float=dpd
7479 ;;
7480 esac
7481 default_decimal_float=$enable_decimal_float
7482 ;;
7483 xno)
7484 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7485 # dependency on libdecnumber.
7486 default_decimal_float=dpd
7487 ;;
7488 esac
7489
7490
7491
7492
7493 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7494
7495 cat >>confdefs.h <<_ACEOF
7496 #define ENABLE_DECIMAL_FLOAT $dfp
7497 _ACEOF
7498
7499
7500 # Use default_decimal_float for dependency.
7501 enable_decimal_float=$default_decimal_float
7502
7503 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7504
7505 cat >>confdefs.h <<_ACEOF
7506 #define ENABLE_DECIMAL_BID_FORMAT $bid
7507 _ACEOF
7508
7509
7510 # Enable C extension for fixed-point arithmetic.
7511 # Check whether --enable-fixed-point was given.
7512 if test "${enable_fixed_point+set}" = set; then :
7513 enableval=$enable_fixed_point;
7514 else
7515
7516 case $target in
7517 arm*)
7518 enable_fixed_point=yes
7519 ;;
7520
7521 mips*-*-*)
7522 enable_fixed_point=yes
7523 ;;
7524 *)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7526 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7527 enable_fixed_point=no
7528 ;;
7529 esac
7530
7531 fi
7532
7533
7534
7535 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7536
7537 cat >>confdefs.h <<_ACEOF
7538 #define ENABLE_FIXED_POINT $fixedpoint
7539 _ACEOF
7540
7541
7542 # Enable threads
7543 # Pass with no value to take the default
7544 # Pass with a value to specify a thread package
7545 # Check whether --enable-threads was given.
7546 if test "${enable_threads+set}" = set; then :
7547 enableval=$enable_threads;
7548 else
7549 enable_threads=''
7550 fi
7551
7552
7553 # Check whether --enable-tls was given.
7554 if test "${enable_tls+set}" = set; then :
7555 enableval=$enable_tls;
7556 case $enable_tls in
7557 yes | no) ;;
7558 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7559 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7560 esac
7561
7562 else
7563 enable_tls=''
7564 fi
7565
7566
7567 # Check whether --enable-vtable-verify was given.
7568 if test "${enable_vtable_verify+set}" = set; then :
7569 enableval=$enable_vtable_verify;
7570 else
7571 enable_vtable_verify=no
7572 fi
7573
7574 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7575
7576 cat >>confdefs.h <<_ACEOF
7577 #define ENABLE_VTABLE_VERIFY $vtable_verify
7578 _ACEOF
7579
7580
7581 # Check whether --enable-objc-gc was given.
7582 if test "${enable_objc_gc+set}" = set; then :
7583 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7584 objc_boehm_gc=''
7585 else
7586 objc_boehm_gc=1
7587 fi
7588 else
7589 objc_boehm_gc=''
7590 fi
7591
7592
7593
7594 # Check whether --with-dwarf2 was given.
7595 if test "${with_dwarf2+set}" = set; then :
7596 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7597 else
7598 dwarf2=no
7599 fi
7600
7601
7602 # Check whether --enable-shared was given.
7603 if test "${enable_shared+set}" = set; then :
7604 enableval=$enable_shared;
7605 case $enable_shared in
7606 yes | no) ;;
7607 *)
7608 enable_shared=no
7609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7610 for pkg in $enableval; do
7611 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7612 enable_shared=yes
7613 fi
7614 done
7615 IFS="$ac_save_ifs"
7616 ;;
7617 esac
7618
7619 else
7620 enable_shared=yes
7621 fi
7622
7623
7624
7625
7626 # Check whether --with-specs was given.
7627 if test "${with_specs+set}" = set; then :
7628 withval=$with_specs; CONFIGURE_SPECS=$withval
7629 else
7630 CONFIGURE_SPECS=
7631
7632 fi
7633
7634
7635
7636
7637
7638 # Check whether --with-pkgversion was given.
7639 if test "${with_pkgversion+set}" = set; then :
7640 withval=$with_pkgversion; case "$withval" in
7641 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7642 no) PKGVERSION= ;;
7643 *) PKGVERSION="($withval) " ;;
7644 esac
7645 else
7646 PKGVERSION="(GCC) "
7647
7648 fi
7649
7650
7651
7652
7653
7654 # Check whether --with-bugurl was given.
7655 if test "${with_bugurl+set}" = set; then :
7656 withval=$with_bugurl; case "$withval" in
7657 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7658 no) BUGURL=
7659 ;;
7660 *) BUGURL="$withval"
7661 ;;
7662 esac
7663 else
7664 BUGURL="https://gcc.gnu.org/bugs/"
7665
7666 fi
7667
7668 case ${BUGURL} in
7669 "")
7670 REPORT_BUGS_TO=
7671 REPORT_BUGS_TEXI=
7672 ;;
7673 *)
7674 REPORT_BUGS_TO="<$BUGURL>"
7675 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7676 ;;
7677 esac;
7678
7679
7680
7681
7682 # Sanity check enable_languages in case someone does not run the toplevel
7683 # configure # script.
7684 # Check whether --enable-languages was given.
7685 if test "${enable_languages+set}" = set; then :
7686 enableval=$enable_languages; case ,${enable_languages}, in
7687 ,,|,yes,)
7688 # go safe -- we cannot be much sure without the toplevel
7689 # configure's
7690 # analysis of which target libs are present and usable
7691 enable_languages=c
7692 ;;
7693 *,all,*)
7694 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7695 ;;
7696 *,c,*)
7697 ;;
7698 *)
7699 enable_languages=c,${enable_languages}
7700 ;;
7701 esac
7702 else
7703 enable_languages=c
7704 fi
7705
7706
7707 if test x"$enable_as_accelerator_for" != x; then
7708
7709 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7710
7711 enable_as_accelerator=yes
7712 case "${target}" in
7713 *-intelmicemul-*)
7714 # In this case we expect offload compiler to be built as native, so we
7715 # need to rename the driver to avoid clashes with host's drivers.
7716 program_transform_name="s&^&${target}-&" ;;
7717 esac
7718 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7719 program_transform_name=`echo $program_transform_name | sed $sedscript`
7720 accel_dir_suffix=/accel/${target_noncanonical}
7721 real_target_noncanonical=${enable_as_accelerator_for}
7722 fi
7723
7724
7725
7726
7727 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7728 tgt=`echo $tgt | sed 's/=.*//'`
7729
7730 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7731 enable_hsa=1
7732 else
7733 enable_offloading=1
7734 fi
7735
7736 if test x"$offload_targets" = x; then
7737 offload_targets=$tgt
7738 else
7739 offload_targets="$offload_targets,$tgt"
7740 fi
7741 done
7742
7743 cat >>confdefs.h <<_ACEOF
7744 #define OFFLOAD_TARGETS "$offload_targets"
7745 _ACEOF
7746
7747 if test x"$enable_offloading" != x; then
7748
7749 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7750
7751 else
7752
7753 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7754
7755 fi
7756
7757 if test x"$enable_hsa" = x1 ; then
7758
7759 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7760
7761 fi
7762
7763
7764 # Check whether --with-multilib-list was given.
7765 if test "${with_multilib_list+set}" = set; then :
7766 withval=$with_multilib_list; :
7767 else
7768 with_multilib_list=default
7769 fi
7770
7771
7772 # -------------------------
7773 # Checks for other programs
7774 # -------------------------
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7778 set x ${MAKE-make}
7779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat >conftest.make <<\_ACEOF
7784 SHELL = /bin/sh
7785 all:
7786 @echo '@@@%%%=$(MAKE)=@@@%%%'
7787 _ACEOF
7788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7790 *@@@%%%=?*=@@@%%%*)
7791 eval ac_cv_prog_make_${ac_make}_set=yes;;
7792 *)
7793 eval ac_cv_prog_make_${ac_make}_set=no;;
7794 esac
7795 rm -f conftest.make
7796 fi
7797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 SET_MAKE=
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 SET_MAKE="MAKE=${MAKE-make}"
7805 fi
7806
7807
7808 # Find some useful tools
7809 for ac_prog in gawk mawk nawk awk
7810 do
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_AWK+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$AWK"; then
7819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_AWK="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 AWK=$ac_cv_prog_AWK
7839 if test -n "$AWK"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7841 $as_echo "$AWK" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 test -n "$AWK" && break
7849 done
7850
7851 # We need awk to create options.c and options.h.
7852 # Bail out if it's missing.
7853 case ${AWK} in
7854 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7855 esac
7856
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7858 $as_echo_n "checking whether ln -s works... " >&6; }
7859 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 rm -f conftestdata_t
7863 echo >conftestdata_f
7864 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7865 then
7866 gcc_cv_prog_LN_S="ln -s"
7867 else
7868 if ln conftestdata_f conftestdata_t 2>/dev/null
7869 then
7870 gcc_cv_prog_LN_S=ln
7871 else
7872 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7873 then
7874 gcc_cv_prog_LN_S="cp -p"
7875 else
7876 gcc_cv_prog_LN_S=cp
7877 fi
7878 fi
7879 fi
7880 rm -f conftestdata_f conftestdata_t
7881
7882 fi
7883 LN_S="$gcc_cv_prog_LN_S"
7884 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7886 $as_echo "yes" >&6; }
7887 else
7888 if test "$gcc_cv_prog_LN_S" = "ln"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7890 $as_echo "no, using ln" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7893 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7894 fi
7895 fi
7896
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7898 $as_echo_n "checking whether ln works... " >&6; }
7899 if test "${acx_cv_prog_LN+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 rm -f conftestdata_t
7903 echo >conftestdata_f
7904 if ln conftestdata_f conftestdata_t 2>/dev/null
7905 then
7906 acx_cv_prog_LN=ln
7907 else
7908 acx_cv_prog_LN=no
7909 fi
7910 rm -f conftestdata_f conftestdata_t
7911
7912 fi
7913 if test $acx_cv_prog_LN = no; then
7914 LN="$LN_S"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7916 $as_echo "no, using $LN" >&6; }
7917 else
7918 LN="$acx_cv_prog_LN"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7921 fi
7922
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 if test -n "$RANLIB"; then
7932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 RANLIB=$ac_cv_prog_RANLIB
7952 if test -n "$RANLIB"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7954 $as_echo "$RANLIB" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961 fi
7962 if test -z "$ac_cv_prog_RANLIB"; then
7963 ac_ct_RANLIB=$RANLIB
7964 # Extract the first word of "ranlib", so it can be a program name with args.
7965 set dummy ranlib; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$ac_ct_RANLIB"; then
7972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_ac_ct_RANLIB="ranlib"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7992 if test -n "$ac_ct_RANLIB"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7994 $as_echo "$ac_ct_RANLIB" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000 if test "x$ac_ct_RANLIB" = x; then
8001 RANLIB=":"
8002 else
8003 case $cross_compiling:$ac_tool_warned in
8004 yes:)
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007 ac_tool_warned=yes ;;
8008 esac
8009 RANLIB=$ac_ct_RANLIB
8010 fi
8011 else
8012 RANLIB="$ac_cv_prog_RANLIB"
8013 fi
8014
8015 ranlib_flags=""
8016
8017
8018 # Find a good install program. We prefer a C program (faster),
8019 # so one script is as good as another. But avoid the broken or
8020 # incompatible versions:
8021 # SysV /etc/install, /usr/sbin/install
8022 # SunOS /usr/etc/install
8023 # IRIX /sbin/install
8024 # AIX /bin/install
8025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8027 # ./install, which can be erroneously created by make from ./install.sh.
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8029 $as_echo_n "checking for a BSD compatible install... " >&6; }
8030 if test -z "$INSTALL"; then
8031 if test "${ac_cv_path_install+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8035 for ac_dir in $PATH; do
8036 # Account for people who put trailing slashes in PATH elements.
8037 case "$ac_dir/" in
8038 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8039 *)
8040 # OSF1 and SCO ODT 3.0 have their own names for install.
8041 for ac_prog in ginstall scoinst install; do
8042 if test -f $ac_dir/$ac_prog; then
8043 if test $ac_prog = install &&
8044 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8045 # AIX install. It has an incompatible calling convention.
8046 # OSF/1 installbsd also uses dspmsg, but is usable.
8047 :
8048 else
8049 ac_cv_path_install="$ac_dir/$ac_prog -c"
8050 break 2
8051 fi
8052 fi
8053 done
8054 ;;
8055 esac
8056 done
8057 IFS="$ac_save_IFS"
8058
8059 fi
8060 if test "${ac_cv_path_install+set}" = set; then
8061 INSTALL="$ac_cv_path_install"
8062 else
8063 # As a last resort, use the slow shell script. We don't cache a
8064 # path for INSTALL within a source directory, because that will
8065 # break other packages using the cache if that directory is
8066 # removed, or if the path is relative.
8067 INSTALL="$ac_install_sh"
8068 fi
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8071 $as_echo "$INSTALL" >&6; }
8072
8073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8074 # It thinks the first close brace ends the variable substitution.
8075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8076
8077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8078
8079
8080 # See if cmp has --ignore-initial.
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8082 $as_echo_n "checking for cmp's capabilities... " >&6; }
8083 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 echo abfoo >t1
8087 echo cdfoo >t2
8088 gcc_cv_prog_cmp_skip=slowcompare
8089 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8090 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8091 :
8092 else
8093 gcc_cv_prog_cmp_skip=gnucompare
8094 fi
8095 fi
8096 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8099 :
8100 else
8101 gcc_cv_prog_cmp_skip=fastcompare
8102 fi
8103 fi
8104 fi
8105 rm t1 t2
8106
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8109 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8110 make_compare_target=$gcc_cv_prog_cmp_skip
8111
8112
8113
8114 # See if we have the mktemp command.
8115 # Extract the first word of "mktemp", so it can be a program name with args.
8116 set dummy mktemp; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$have_mktemp_command"; then
8123 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_have_mktemp_command="yes"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8141 fi
8142 fi
8143 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8144 if test -n "$have_mktemp_command"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8146 $as_echo "$have_mktemp_command" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153
8154 # See if makeinfo has been installed and is modern enough
8155 # that we can use it.
8156
8157 # Extract the first word of "makeinfo", so it can be a program name with args.
8158 set dummy makeinfo; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$MAKEINFO"; then
8165 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_MAKEINFO="makeinfo"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 MAKEINFO=$ac_cv_prog_MAKEINFO
8185 if test -n "$MAKEINFO"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8187 $as_echo "$MAKEINFO" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194 if test -n "$MAKEINFO"; then
8195 # Found it, now check the version.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8197 $as_echo_n "checking for modern makeinfo... " >&6; }
8198 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8202 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8203
8204 case $ac_prog_version in
8205 '') gcc_cv_prog_makeinfo_modern=no;;
8206 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8207 *) gcc_cv_prog_makeinfo_modern=no;;
8208 esac
8209
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8212 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8213 else
8214 gcc_cv_prog_makeinfo_modern=no
8215 fi
8216 if test $gcc_cv_prog_makeinfo_modern = no; then
8217 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8218 fi
8219
8220 if test $gcc_cv_prog_makeinfo_modern = no; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8222 *** Makeinfo is missing or too old.
8223 *** Info documentation will not be built." >&5
8224 $as_echo "$as_me: WARNING:
8225 *** Makeinfo is missing or too old.
8226 *** Info documentation will not be built." >&2;}
8227 BUILD_INFO=
8228 else
8229 BUILD_INFO=info
8230 fi
8231
8232
8233 # Is pod2man recent enough to regenerate manpages?
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8235 $as_echo_n "checking for recent Pod::Man... " >&6; }
8236 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8238 $as_echo "yes" >&6; }
8239 GENERATED_MANPAGES=generated-manpages
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 GENERATED_MANPAGES=
8244 fi
8245
8246
8247 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8248
8249 # How about lex?
8250 for ac_prog in flex
8251 do
8252 # Extract the first word of "$ac_prog", so it can be a program name with args.
8253 set dummy $ac_prog; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_FLEX+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$FLEX"; then
8260 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_FLEX="$ac_prog"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 FLEX=$ac_cv_prog_FLEX
8280 if test -n "$FLEX"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8282 $as_echo "$FLEX" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 test -n "$FLEX" && break
8290 done
8291 test -n "$FLEX" || FLEX="$MISSING flex"
8292
8293
8294 # Bison?
8295 for ac_prog in bison
8296 do
8297 # Extract the first word of "$ac_prog", so it can be a program name with args.
8298 set dummy $ac_prog; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_BISON+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$BISON"; then
8305 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_BISON="$ac_prog"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 BISON=$ac_cv_prog_BISON
8325 if test -n "$BISON"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8327 $as_echo "$BISON" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333
8334 test -n "$BISON" && break
8335 done
8336 test -n "$BISON" || BISON="$MISSING bison"
8337
8338
8339 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8340 # check for build == host before using them.
8341
8342 # NM
8343 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8344 && test -d ../binutils ; then
8345 NM='${objdir}/../binutils/nm-new'
8346 else
8347 # Extract the first word of "nm", so it can be a program name with args.
8348 set dummy nm; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_NM+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$NM"; then
8355 ac_cv_prog_NM="$NM" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_NM="nm"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8373 fi
8374 fi
8375 NM=$ac_cv_prog_NM
8376 if test -n "$NM"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8378 $as_echo "$NM" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384
8385 fi
8386
8387 # AR
8388 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8389 && test -d ../binutils ; then
8390 AR='${objdir}/../binutils/ar'
8391 else
8392 # Extract the first word of "ar", so it can be a program name with args.
8393 set dummy ar; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if test "${ac_cv_prog_AR+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$AR"; then
8400 ac_cv_prog_AR="$AR" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_AR="ar"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8418 fi
8419 fi
8420 AR=$ac_cv_prog_AR
8421 if test -n "$AR"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8423 $as_echo "$AR" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430 fi
8431
8432 # The jit documentation looks better if built with sphinx, but can be
8433 # built with texinfo if sphinx is not available.
8434 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8435 # Extract the first word of "sphinx-build", so it can be a program name with args.
8436 set dummy sphinx-build; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$doc_build_sys"; then
8443 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_doc_build_sys="sphinx"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456 done
8457 done
8458 IFS=$as_save_IFS
8459
8460 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8461 fi
8462 fi
8463 doc_build_sys=$ac_cv_prog_doc_build_sys
8464 if test -n "$doc_build_sys"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8466 $as_echo "$doc_build_sys" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472
8473
8474 # --------------------
8475 # Checks for C headers
8476 # --------------------
8477
8478 # Need to reject headers which give warnings, so that the -Werror bootstrap
8479 # works later. *sigh* This needs to come before all header checks.
8480
8481 ac_c_preproc_warn_flag=yes
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8484 $as_echo_n "checking for ANSI C header files... " >&6; }
8485 if test "${ac_cv_header_stdc+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 #include <stdlib.h>
8491 #include <stdarg.h>
8492 #include <string.h>
8493 #include <float.h>
8494
8495 int
8496 main ()
8497 {
8498
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 if ac_fn_cxx_try_compile "$LINENO"; then :
8504 ac_cv_header_stdc=yes
8505 else
8506 ac_cv_header_stdc=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509
8510 if test $ac_cv_header_stdc = yes; then
8511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <string.h>
8515
8516 _ACEOF
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518 $EGREP "memchr" >/dev/null 2>&1; then :
8519
8520 else
8521 ac_cv_header_stdc=no
8522 fi
8523 rm -f conftest*
8524
8525 fi
8526
8527 if test $ac_cv_header_stdc = yes; then
8528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <stdlib.h>
8532
8533 _ACEOF
8534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8535 $EGREP "free" >/dev/null 2>&1; then :
8536
8537 else
8538 ac_cv_header_stdc=no
8539 fi
8540 rm -f conftest*
8541
8542 fi
8543
8544 if test $ac_cv_header_stdc = yes; then
8545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8546 if test "$cross_compiling" = yes; then :
8547 :
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <ctype.h>
8552 #include <stdlib.h>
8553 #if ((' ' & 0x0FF) == 0x020)
8554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8556 #else
8557 # define ISLOWER(c) \
8558 (('a' <= (c) && (c) <= 'i') \
8559 || ('j' <= (c) && (c) <= 'r') \
8560 || ('s' <= (c) && (c) <= 'z'))
8561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8562 #endif
8563
8564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8565 int
8566 main ()
8567 {
8568 int i;
8569 for (i = 0; i < 256; i++)
8570 if (XOR (islower (i), ISLOWER (i))
8571 || toupper (i) != TOUPPER (i))
8572 return 2;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_cxx_try_run "$LINENO"; then :
8577
8578 else
8579 ac_cv_header_stdc=no
8580 fi
8581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8582 conftest.$ac_objext conftest.beam conftest.$ac_ext
8583 fi
8584
8585 fi
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8588 $as_echo "$ac_cv_header_stdc" >&6; }
8589 if test $ac_cv_header_stdc = yes; then
8590
8591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8592
8593 fi
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8596 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8597 if test "${ac_cv_header_time+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #include <sys/types.h>
8603 #include <sys/time.h>
8604 #include <time.h>
8605
8606 int
8607 main ()
8608 {
8609 if ((struct tm *) 0)
8610 return 0;
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_cxx_try_compile "$LINENO"; then :
8616 ac_cv_header_time=yes
8617 else
8618 ac_cv_header_time=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8623 $as_echo "$ac_cv_header_time" >&6; }
8624 if test $ac_cv_header_time = yes; then
8625
8626 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8627
8628 fi
8629
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8631 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8632 if test "${gcc_cv_header_string+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <string.h>
8638 #include <strings.h>
8639 int
8640 main ()
8641 {
8642
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_cxx_try_compile "$LINENO"; then :
8648 gcc_cv_header_string=yes
8649 else
8650 gcc_cv_header_string=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8655 $as_echo "$gcc_cv_header_string" >&6; }
8656 if test $gcc_cv_header_string = yes; then
8657
8658 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8659
8660 fi
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8663 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8664 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <sys/types.h>
8670 #include <sys/wait.h>
8671 #ifndef WEXITSTATUS
8672 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8673 #endif
8674 #ifndef WIFEXITED
8675 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8676 #endif
8677
8678 int
8679 main ()
8680 {
8681 int s;
8682 wait (&s);
8683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_cxx_try_compile "$LINENO"; then :
8689 ac_cv_header_sys_wait_h=yes
8690 else
8691 ac_cv_header_sys_wait_h=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8696 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8697 if test $ac_cv_header_sys_wait_h = yes; then
8698
8699 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8700
8701 fi
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8704 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8705 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <sys/types.h>
8711 #include <termios.h>
8712 #ifdef TIOCGWINSZ
8713 yes
8714 #endif
8715
8716 _ACEOF
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 $EGREP "yes" >/dev/null 2>&1; then :
8719 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8720 else
8721 ac_cv_sys_tiocgwinsz_in_termios_h=no
8722 fi
8723 rm -f conftest*
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8727 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8728
8729 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8731 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8732 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 #include <sys/types.h>
8738 #include <sys/ioctl.h>
8739 #ifdef TIOCGWINSZ
8740 yes
8741 #endif
8742
8743 _ACEOF
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "yes" >/dev/null 2>&1; then :
8746 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8747 else
8748 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8749 fi
8750 rm -f conftest*
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8754 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8755
8756 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8757
8758 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8759
8760 fi
8761 fi
8762
8763 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8764 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8765 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8766 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8767 do :
8768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8769 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8770 eval as_val=\$$as_ac_Header
8771 if test "x$as_val" = x""yes; then :
8772 cat >>confdefs.h <<_ACEOF
8773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8774 _ACEOF
8775
8776 fi
8777 done
8778
8779
8780 # Check for thread headers.
8781 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8782 if test "x$ac_cv_header_thread_h" = x""yes; then :
8783 have_thread_h=yes
8784 else
8785 have_thread_h=
8786 fi
8787
8788 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8789 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8790 have_pthread_h=yes
8791 else
8792 have_pthread_h=
8793 fi
8794
8795
8796 # These tests can't be done till we know if we have limits.h.
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8798 $as_echo_n "checking for CHAR_BIT... " >&6; }
8799 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #ifdef HAVE_LIMITS_H
8805 #include <limits.h>
8806 #endif
8807 #ifdef CHAR_BIT
8808 found
8809 #endif
8810 _ACEOF
8811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812 $EGREP "found" >/dev/null 2>&1; then :
8813 gcc_cv_decl_char_bit=yes
8814 else
8815 gcc_cv_decl_char_bit=no
8816 fi
8817 rm -f conftest*
8818
8819
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8822 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8823 if test $gcc_cv_decl_char_bit = no; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8825 $as_echo_n "checking number of bits in a byte... " >&6; }
8826 if test "${gcc_cv_c_nbby+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 i=8
8830 gcc_cv_c_nbby=
8831 while test $i -lt 65; do
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834
8835 int
8836 main ()
8837 {
8838 switch(0) {
8839 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8840 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8841 ; }
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847 gcc_cv_c_nbby=$i; break
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 i=`expr $i + 1`
8851 done
8852 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8856 $as_echo "$gcc_cv_c_nbby" >&6; }
8857 if test $gcc_cv_c_nbby = failed; then
8858 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8859 else
8860
8861 cat >>confdefs.h <<_ACEOF
8862 #define CHAR_BIT $gcc_cv_c_nbby
8863 _ACEOF
8864
8865 fi
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8868 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8869 if test "${ac_cv_c_bigendian+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 ac_cv_c_bigendian=unknown
8873 # See if we're dealing with a universal compiler.
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #ifndef __APPLE_CC__
8877 not a universal capable compiler
8878 #endif
8879 typedef int dummy;
8880
8881 _ACEOF
8882 if ac_fn_cxx_try_compile "$LINENO"; then :
8883
8884 # Check for potential -arch flags. It is not universal unless
8885 # there are at least two -arch flags with different values.
8886 ac_arch=
8887 ac_prev=
8888 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8889 if test -n "$ac_prev"; then
8890 case $ac_word in
8891 i?86 | x86_64 | ppc | ppc64)
8892 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8893 ac_arch=$ac_word
8894 else
8895 ac_cv_c_bigendian=universal
8896 break
8897 fi
8898 ;;
8899 esac
8900 ac_prev=
8901 elif test "x$ac_word" = "x-arch"; then
8902 ac_prev=arch
8903 fi
8904 done
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 if test $ac_cv_c_bigendian = unknown; then
8908 # See if sys/param.h defines the BYTE_ORDER macro.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/types.h>
8912 #include <sys/param.h>
8913
8914 int
8915 main ()
8916 {
8917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8919 && LITTLE_ENDIAN)
8920 bogus endian macros
8921 #endif
8922
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_cxx_try_compile "$LINENO"; then :
8928 # It does; now see whether it defined to BIG_ENDIAN or not.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <sys/types.h>
8932 #include <sys/param.h>
8933
8934 int
8935 main ()
8936 {
8937 #if BYTE_ORDER != BIG_ENDIAN
8938 not big endian
8939 #endif
8940
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 ac_cv_c_bigendian=yes
8947 else
8948 ac_cv_c_bigendian=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 if test $ac_cv_c_bigendian = unknown; then
8955 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #include <limits.h>
8959
8960 int
8961 main ()
8962 {
8963 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8964 bogus endian macros
8965 #endif
8966
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_cxx_try_compile "$LINENO"; then :
8972 # It does; now see whether it defined to _BIG_ENDIAN or not.
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 #include <limits.h>
8976
8977 int
8978 main ()
8979 {
8980 #ifndef _BIG_ENDIAN
8981 not big endian
8982 #endif
8983
8984 ;
8985 return 0;
8986 }
8987 _ACEOF
8988 if ac_fn_cxx_try_compile "$LINENO"; then :
8989 ac_cv_c_bigendian=yes
8990 else
8991 ac_cv_c_bigendian=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 fi
8997 if test $ac_cv_c_bigendian = unknown; then
8998 # Compile a test program.
8999 if test "$cross_compiling" = yes; then :
9000 # Try to guess by grepping values from an object file.
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003 short int ascii_mm[] =
9004 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9005 short int ascii_ii[] =
9006 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9007 int use_ascii (int i) {
9008 return ascii_mm[i] + ascii_ii[i];
9009 }
9010 short int ebcdic_ii[] =
9011 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9012 short int ebcdic_mm[] =
9013 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9014 int use_ebcdic (int i) {
9015 return ebcdic_mm[i] + ebcdic_ii[i];
9016 }
9017 extern int foo;
9018
9019 int
9020 main ()
9021 {
9022 return use_ascii (foo) == use_ebcdic (foo);
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_cxx_try_compile "$LINENO"; then :
9028 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9029 ac_cv_c_bigendian=yes
9030 fi
9031 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9032 if test "$ac_cv_c_bigendian" = unknown; then
9033 ac_cv_c_bigendian=no
9034 else
9035 # finding both strings is unlikely to happen, but who knows?
9036 ac_cv_c_bigendian=unknown
9037 fi
9038 fi
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 int
9046 main ()
9047 {
9048
9049 /* Are we little or big endian? From Harbison&Steele. */
9050 union
9051 {
9052 long int l;
9053 char c[sizeof (long int)];
9054 } u;
9055 u.l = 1;
9056 return u.c[sizeof (long int) - 1] == 1;
9057
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 if ac_fn_cxx_try_run "$LINENO"; then :
9063 ac_cv_c_bigendian=no
9064 else
9065 ac_cv_c_bigendian=yes
9066 fi
9067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9068 conftest.$ac_objext conftest.beam conftest.$ac_ext
9069 fi
9070
9071 fi
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9074 $as_echo "$ac_cv_c_bigendian" >&6; }
9075 case $ac_cv_c_bigendian in #(
9076 yes)
9077 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9078 ;; #(
9079 no)
9080 ;; #(
9081 universal)
9082
9083 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9084
9085 ;; #(
9086 *)
9087 as_fn_error "unknown endianness
9088 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9089 esac
9090
9091
9092 # ----------------------
9093 # Checks for C++ headers
9094 # ----------------------
9095
9096 ac_ext=cpp
9097 ac_cpp='$CXXCPP $CPPFLAGS'
9098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9102 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9103 if test -z "$CXXCPP"; then
9104 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 # Double quotes because CXXCPP needs to be expanded
9108 for CXXCPP in "$CXX -E" "/lib/cpp"
9109 do
9110 ac_preproc_ok=false
9111 for ac_cxx_preproc_warn_flag in '' yes
9112 do
9113 # Use a header file that comes with gcc, so configuring glibc
9114 # with a fresh cross-compiler works.
9115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9116 # <limits.h> exists even on freestanding compilers.
9117 # On the NeXT, cc -E runs the code through the compiler's parser,
9118 # not just through cpp. "Syntax error" is here to catch this case.
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 #ifdef __STDC__
9122 # include <limits.h>
9123 #else
9124 # include <assert.h>
9125 #endif
9126 Syntax error
9127 _ACEOF
9128 if ac_fn_cxx_try_cpp "$LINENO"; then :
9129
9130 else
9131 # Broken: fails on valid input.
9132 continue
9133 fi
9134 rm -f conftest.err conftest.$ac_ext
9135
9136 # OK, works on sane cases. Now check whether nonexistent headers
9137 # can be detected and how.
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <ac_nonexistent.h>
9141 _ACEOF
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9143 # Broken: success on invalid input.
9144 continue
9145 else
9146 # Passes both tests.
9147 ac_preproc_ok=:
9148 break
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151
9152 done
9153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9154 rm -f conftest.err conftest.$ac_ext
9155 if $ac_preproc_ok; then :
9156 break
9157 fi
9158
9159 done
9160 ac_cv_prog_CXXCPP=$CXXCPP
9161
9162 fi
9163 CXXCPP=$ac_cv_prog_CXXCPP
9164 else
9165 ac_cv_prog_CXXCPP=$CXXCPP
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9168 $as_echo "$CXXCPP" >&6; }
9169 ac_preproc_ok=false
9170 for ac_cxx_preproc_warn_flag in '' yes
9171 do
9172 # Use a header file that comes with gcc, so configuring glibc
9173 # with a fresh cross-compiler works.
9174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9175 # <limits.h> exists even on freestanding compilers.
9176 # On the NeXT, cc -E runs the code through the compiler's parser,
9177 # not just through cpp. "Syntax error" is here to catch this case.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 #ifdef __STDC__
9181 # include <limits.h>
9182 #else
9183 # include <assert.h>
9184 #endif
9185 Syntax error
9186 _ACEOF
9187 if ac_fn_cxx_try_cpp "$LINENO"; then :
9188
9189 else
9190 # Broken: fails on valid input.
9191 continue
9192 fi
9193 rm -f conftest.err conftest.$ac_ext
9194
9195 # OK, works on sane cases. Now check whether nonexistent headers
9196 # can be detected and how.
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <ac_nonexistent.h>
9200 _ACEOF
9201 if ac_fn_cxx_try_cpp "$LINENO"; then :
9202 # Broken: success on invalid input.
9203 continue
9204 else
9205 # Passes both tests.
9206 ac_preproc_ok=:
9207 break
9208 fi
9209 rm -f conftest.err conftest.$ac_ext
9210
9211 done
9212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9213 rm -f conftest.err conftest.$ac_ext
9214 if $ac_preproc_ok; then :
9215
9216 else
9217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9220 See \`config.log' for more details." >&5
9221 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9222 See \`config.log' for more details." >&2;}; }
9223 fi
9224
9225 ac_ext=cpp
9226 ac_cpp='$CXXCPP $CPPFLAGS'
9227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9230
9231
9232 for ac_header in unordered_map
9233 do :
9234 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9235 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_UNORDERED_MAP 1
9238 _ACEOF
9239
9240 fi
9241 done
9242
9243 for ac_header in tr1/unordered_map
9244 do :
9245 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9246 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_TR1_UNORDERED_MAP 1
9249 _ACEOF
9250
9251 fi
9252 done
9253
9254 for ac_header in ext/hash_map
9255 do :
9256 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9257 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_EXT_HASH_MAP 1
9260 _ACEOF
9261
9262 fi
9263 done
9264
9265
9266 # --------
9267 # Dependency checking.
9268 # --------
9269
9270 rm -rf .tst 2>/dev/null
9271 mkdir .tst 2>/dev/null
9272 if test -d .tst; then
9273 am__leading_dot=.
9274 else
9275 am__leading_dot=_
9276 fi
9277 rmdir .tst 2>/dev/null
9278
9279 DEPDIR="${am__leading_dot}deps"
9280
9281 ac_config_commands="$ac_config_commands depdir"
9282
9283
9284 ac_config_commands="$ac_config_commands gccdepdir"
9285
9286
9287 depcc="$CXX" am_compiler_list=
9288
9289 am_depcomp=$ac_aux_dir/depcomp
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9291 $as_echo_n "checking dependency style of $depcc... " >&6; }
9292 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 if test -f "$am_depcomp"; then
9296 # We make a subdir and do the tests there. Otherwise we can end up
9297 # making bogus files that we don't know about and never remove. For
9298 # instance it was reported that on HP-UX the gcc test will end up
9299 # making a dummy file named `D' -- because `-MD' means `put the output
9300 # in D'.
9301 mkdir conftest.dir
9302 # Copy depcomp to subdir because otherwise we won't find it if we're
9303 # using a relative directory.
9304 cp "$am_depcomp" conftest.dir
9305 cd conftest.dir
9306 # We will build objects and dependencies in a subdirectory because
9307 # it helps to detect inapplicable dependency modes. For instance
9308 # both Tru64's cc and ICC support -MD to output dependencies as a
9309 # side effect of compilation, but ICC will put the dependencies in
9310 # the current directory while Tru64 will put them in the object
9311 # directory.
9312 mkdir sub
9313
9314 am_cv_CXX_dependencies_compiler_type=none
9315 if test "$am_compiler_list" = ""; then
9316 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9317 fi
9318 for depmode in $am_compiler_list; do
9319 if test $depmode = none; then break; fi
9320
9321 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9322 # Setup a source with many dependencies, because some compilers
9323 # like to wrap large dependency lists on column 80 (with \), and
9324 # we should not choose a depcomp mode which is confused by this.
9325 #
9326 # We need to recreate these files for each test, as the compiler may
9327 # overwrite some of them when testing with obscure command lines.
9328 # This happens at least with the AIX C compiler.
9329 : > sub/conftest.c
9330 for i in 1 2 3 4 5 6; do
9331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9333 # Solaris 8's {/usr,}/bin/sh.
9334 touch sub/conftst$i.h
9335 done
9336 echo "include sub/conftest.Po" > confmf
9337
9338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9339 # mode. It turns out that the SunPro C++ compiler does not properly
9340 # handle `-M -o', and we need to detect this.
9341 depcmd="depmode=$depmode \
9342 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9343 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9344 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9345 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9346 if env $depcmd > conftest.err 2>&1 &&
9347 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9348 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9349 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9350 # icc doesn't choke on unknown options, it will just issue warnings
9351 # or remarks (even with -Werror). So we grep stderr for any message
9352 # that says an option was ignored or not supported.
9353 # When given -MP, icc 7.0 and 7.1 complain thusly:
9354 # icc: Command line warning: ignoring option '-M'; no argument required
9355 # The diagnosis changed in icc 8.0:
9356 # icc: Command line remark: option '-MP' not supported
9357 if (grep 'ignoring option' conftest.err ||
9358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9359 am_cv_CXX_dependencies_compiler_type=$depmode
9360 $as_echo "$as_me:$LINENO: success" >&5
9361 break
9362 fi
9363 fi
9364 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9365 sed -e 's/^/| /' < conftest.err >&5
9366 done
9367
9368 cd ..
9369 rm -rf conftest.dir
9370 else
9371 am_cv_CXX_dependencies_compiler_type=none
9372 fi
9373
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9376 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9377 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9378 then as_fn_error "no usable dependency style found" "$LINENO" 5
9379 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9380
9381 fi
9382
9383
9384 # --------
9385 # UNSORTED
9386 # --------
9387
9388
9389 # These libraries may be used by collect2.
9390 # We may need a special search path to get them linked.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9392 $as_echo_n "checking for collect2 libraries... " >&6; }
9393 if test "${gcc_cv_collect2_libs+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 save_LIBS="$LIBS"
9397 for libs in '' -lld -lmld \
9398 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9399 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9400 do
9401 LIBS="$libs"
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char ldopen ();
9412 int
9413 main ()
9414 {
9415 return ldopen ();
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_cxx_try_link "$LINENO"; then :
9421 gcc_cv_collect2_libs="$libs"; break
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425 done
9426 LIBS="$save_LIBS"
9427 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9430 $as_echo "$gcc_cv_collect2_libs" >&6; }
9431 case $gcc_cv_collect2_libs in
9432 "none required") ;;
9433 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9434 esac
9435
9436
9437 # When building Ada code on Alpha, we need exc_resume which is usually in
9438 # -lexc. So test for it.
9439 save_LIBS="$LIBS"
9440 LIBS=
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9442 $as_echo_n "checking for library containing exc_resume... " >&6; }
9443 if test "${ac_cv_search_exc_resume+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_func_search_save_LIBS=$LIBS
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char exc_resume ();
9457 int
9458 main ()
9459 {
9460 return exc_resume ();
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 for ac_lib in '' exc; do
9466 if test -z "$ac_lib"; then
9467 ac_res="none required"
9468 else
9469 ac_res=-l$ac_lib
9470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9471 fi
9472 if ac_fn_cxx_try_link "$LINENO"; then :
9473 ac_cv_search_exc_resume=$ac_res
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext
9477 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 break
9479 fi
9480 done
9481 if test "${ac_cv_search_exc_resume+set}" = set; then :
9482
9483 else
9484 ac_cv_search_exc_resume=no
9485 fi
9486 rm conftest.$ac_ext
9487 LIBS=$ac_func_search_save_LIBS
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9490 $as_echo "$ac_cv_search_exc_resume" >&6; }
9491 ac_res=$ac_cv_search_exc_resume
9492 if test "$ac_res" != no; then :
9493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9494
9495 fi
9496
9497 GNAT_LIBEXC="$LIBS"
9498 LIBS="$save_LIBS"
9499
9500
9501 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9502 save_LIBS="$LIBS"
9503 LIBS=
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9505 $as_echo_n "checking for library containing kstat_open... " >&6; }
9506 if test "${ac_cv_search_kstat_open+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_func_search_save_LIBS=$LIBS
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char kstat_open ();
9520 int
9521 main ()
9522 {
9523 return kstat_open ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 for ac_lib in '' kstat; do
9529 if test -z "$ac_lib"; then
9530 ac_res="none required"
9531 else
9532 ac_res=-l$ac_lib
9533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9534 fi
9535 if ac_fn_cxx_try_link "$LINENO"; then :
9536 ac_cv_search_kstat_open=$ac_res
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext
9540 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 break
9542 fi
9543 done
9544 if test "${ac_cv_search_kstat_open+set}" = set; then :
9545
9546 else
9547 ac_cv_search_kstat_open=no
9548 fi
9549 rm conftest.$ac_ext
9550 LIBS=$ac_func_search_save_LIBS
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9553 $as_echo "$ac_cv_search_kstat_open" >&6; }
9554 ac_res=$ac_cv_search_kstat_open
9555 if test "$ac_res" != no; then :
9556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9557
9558 fi
9559
9560 EXTRA_GCC_LIBS="$LIBS"
9561 LIBS="$save_LIBS"
9562
9563
9564 # Some systems put ldexp and frexp in libm instead of libc; assume
9565 # they're both in the same place. jcf-dump needs them.
9566 save_LIBS="$LIBS"
9567 LIBS=
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9569 $as_echo_n "checking for library containing ldexp... " >&6; }
9570 if test "${ac_cv_search_ldexp+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 ac_func_search_save_LIBS=$LIBS
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9580 #ifdef __cplusplus
9581 extern "C"
9582 #endif
9583 char ldexp ();
9584 int
9585 main ()
9586 {
9587 return ldexp ();
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 for ac_lib in '' m; do
9593 if test -z "$ac_lib"; then
9594 ac_res="none required"
9595 else
9596 ac_res=-l$ac_lib
9597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9598 fi
9599 if ac_fn_cxx_try_link "$LINENO"; then :
9600 ac_cv_search_ldexp=$ac_res
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext
9604 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 break
9606 fi
9607 done
9608 if test "${ac_cv_search_ldexp+set}" = set; then :
9609
9610 else
9611 ac_cv_search_ldexp=no
9612 fi
9613 rm conftest.$ac_ext
9614 LIBS=$ac_func_search_save_LIBS
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9617 $as_echo "$ac_cv_search_ldexp" >&6; }
9618 ac_res=$ac_cv_search_ldexp
9619 if test "$ac_res" != no; then :
9620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9621
9622 fi
9623
9624 LDEXP_LIB="$LIBS"
9625 LIBS="$save_LIBS"
9626
9627
9628 # Use <inttypes.h> only if it exists,
9629 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9630 # PRId64
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9632 $as_echo_n "checking for inttypes.h... " >&6; }
9633 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 #define __STDC_FORMAT_MACROS
9639 #include <sys/types.h>
9640 #include <inttypes.h>
9641 int
9642 main ()
9643 {
9644 intmax_t i = -1;
9645 #ifndef PRId64
9646 choke me
9647 #endif
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_cxx_try_compile "$LINENO"; then :
9653 gcc_cv_header_inttypes_h=yes
9654 else
9655 gcc_cv_header_inttypes_h=no
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 fi
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9661 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9662 if test $gcc_cv_header_inttypes_h = yes; then
9663
9664 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9665
9666 fi
9667
9668
9669
9670 for ac_func in times clock kill getrlimit setrlimit atoq \
9671 popen sysconf strsignal getrusage nl_langinfo \
9672 gettimeofday mbstowcs wcswidth mmap setlocale \
9673 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
9674 do :
9675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9676 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9677 eval as_val=\$$as_ac_var
9678 if test "x$as_val" = x""yes; then :
9679 cat >>confdefs.h <<_ACEOF
9680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9681 _ACEOF
9682
9683 fi
9684 done
9685
9686
9687 if test x$ac_cv_func_mbstowcs = xyes; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9689 $as_echo_n "checking whether mbstowcs works... " >&6; }
9690 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test "$cross_compiling" = yes; then :
9694 gcc_cv_func_mbstowcs_works=yes
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #include <stdlib.h>
9699 int main()
9700 {
9701 mbstowcs(0, "", 0);
9702 return 0;
9703 }
9704 _ACEOF
9705 if ac_fn_cxx_try_run "$LINENO"; then :
9706 gcc_cv_func_mbstowcs_works=yes
9707 else
9708 gcc_cv_func_mbstowcs_works=no
9709 fi
9710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9711 conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 fi
9713
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9716 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9717 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9718
9719 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9720
9721 fi
9722 fi
9723
9724 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9725 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9726
9727 else
9728
9729 cat >>confdefs.h <<_ACEOF
9730 #define ssize_t int
9731 _ACEOF
9732
9733 fi
9734
9735 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9736 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9737
9738 else
9739
9740 cat >>confdefs.h <<_ACEOF
9741 #define caddr_t char *
9742 _ACEOF
9743
9744 fi
9745
9746
9747
9748 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9749 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9750 gcc_header_sys_mman_h=yes
9751 else
9752 gcc_header_sys_mman_h=no
9753 fi
9754
9755 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9756 if test "x$ac_cv_func_mmap" = x""yes; then :
9757 gcc_func_mmap=yes
9758 else
9759 gcc_func_mmap=no
9760 fi
9761
9762 if test "$gcc_header_sys_mman_h" != yes \
9763 || test "$gcc_func_mmap" != yes; then
9764 gcc_cv_func_mmap_file=no
9765 gcc_cv_func_mmap_dev_zero=no
9766 gcc_cv_func_mmap_anon=no
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9769 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9770 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 # Add a system to this blacklist if
9774 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9775 # memory area containing the same data that you'd get if you applied
9776 # read() to the same fd. The only system known to have a problem here
9777 # is VMS, where text files have record structure.
9778 case "$host_os" in
9779 *vms* | ultrix*)
9780 gcc_cv_func_mmap_file=no ;;
9781 *)
9782 gcc_cv_func_mmap_file=yes;;
9783 esac
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9786 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9788 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9789 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 # Add a system to this blacklist if it has mmap() but /dev/zero
9793 # does not exist, or if mmapping /dev/zero does not give anonymous
9794 # zeroed pages with both the following properties:
9795 # 1. If you map N consecutive pages in with one call, and then
9796 # unmap any subset of those pages, the pages that were not
9797 # explicitly unmapped remain accessible.
9798 # 2. If you map two adjacent blocks of memory and then unmap them
9799 # both at once, they must both go away.
9800 # Systems known to be in this category are Windows (all variants),
9801 # VMS, and Darwin.
9802 case "$host_os" in
9803 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9804 gcc_cv_func_mmap_dev_zero=no ;;
9805 *)
9806 gcc_cv_func_mmap_dev_zero=yes;;
9807 esac
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9810 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9811
9812 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9814 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9815 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <sys/types.h>
9821 #include <sys/mman.h>
9822 #include <unistd.h>
9823
9824 #ifndef MAP_ANONYMOUS
9825 #define MAP_ANONYMOUS MAP_ANON
9826 #endif
9827
9828 int
9829 main ()
9830 {
9831 int n = MAP_ANONYMOUS;
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_cxx_try_compile "$LINENO"; then :
9837 gcc_cv_decl_map_anon=yes
9838 else
9839 gcc_cv_decl_map_anon=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9844 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9845
9846 if test $gcc_cv_decl_map_anon = no; then
9847 gcc_cv_func_mmap_anon=no
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9850 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9851 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9855 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9856 # doesn't give anonymous zeroed pages with the same properties listed
9857 # above for use of /dev/zero.
9858 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9859 case "$host_os" in
9860 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9861 gcc_cv_func_mmap_anon=no ;;
9862 *)
9863 gcc_cv_func_mmap_anon=yes;;
9864 esac
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9867 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9868 fi
9869 fi
9870
9871 if test $gcc_cv_func_mmap_file = yes; then
9872
9873 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9874
9875 fi
9876 if test $gcc_cv_func_mmap_dev_zero = yes; then
9877
9878 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9879
9880 fi
9881 if test $gcc_cv_func_mmap_anon = yes; then
9882
9883 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9884
9885 fi
9886
9887
9888 case "${host}" in
9889 *-*-*vms*)
9890 # Under VMS, vfork works very differently than on Unix. The standard test
9891 # won't work, and it isn't easily adaptable. It makes more sense to
9892 # just force it.
9893 ac_cv_func_vfork_works=yes
9894 ;;
9895 esac
9896 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9897 if test "x$ac_cv_type_pid_t" = x""yes; then :
9898
9899 else
9900
9901 cat >>confdefs.h <<_ACEOF
9902 #define pid_t int
9903 _ACEOF
9904
9905 fi
9906
9907 for ac_header in vfork.h
9908 do :
9909 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9910 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9911 cat >>confdefs.h <<_ACEOF
9912 #define HAVE_VFORK_H 1
9913 _ACEOF
9914
9915 fi
9916 done
9917
9918 for ac_func in fork vfork
9919 do :
9920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9921 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9922 eval as_val=\$$as_ac_var
9923 if test "x$as_val" = x""yes; then :
9924 cat >>confdefs.h <<_ACEOF
9925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 _ACEOF
9927
9928 fi
9929 done
9930
9931 if test "x$ac_cv_func_fork" = xyes; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9933 $as_echo_n "checking for working fork... " >&6; }
9934 if test "${ac_cv_func_fork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_fork_works=cross
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 int
9944 main ()
9945 {
9946
9947 /* By Ruediger Kuhlmann. */
9948 return fork () < 0;
9949
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_cxx_try_run "$LINENO"; then :
9955 ac_cv_func_fork_works=yes
9956 else
9957 ac_cv_func_fork_works=no
9958 fi
9959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9960 conftest.$ac_objext conftest.beam conftest.$ac_ext
9961 fi
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9965 $as_echo "$ac_cv_func_fork_works" >&6; }
9966
9967 else
9968 ac_cv_func_fork_works=$ac_cv_func_fork
9969 fi
9970 if test "x$ac_cv_func_fork_works" = xcross; then
9971 case $host in
9972 *-*-amigaos* | *-*-msdosdjgpp*)
9973 # Override, as these systems have only a dummy fork() stub
9974 ac_cv_func_fork_works=no
9975 ;;
9976 *)
9977 ac_cv_func_fork_works=yes
9978 ;;
9979 esac
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9981 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9982 fi
9983 ac_cv_func_vfork_works=$ac_cv_func_vfork
9984 if test "x$ac_cv_func_vfork" = xyes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9986 $as_echo_n "checking for working vfork... " >&6; }
9987 if test "${ac_cv_func_vfork_works+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test "$cross_compiling" = yes; then :
9991 ac_cv_func_vfork_works=cross
9992 else
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 /* Thanks to Paul Eggert for this test. */
9996 $ac_includes_default
9997 #include <sys/wait.h>
9998 #ifdef HAVE_VFORK_H
9999 # include <vfork.h>
10000 #endif
10001 /* On some sparc systems, changes by the child to local and incoming
10002 argument registers are propagated back to the parent. The compiler
10003 is told about this with #include <vfork.h>, but some compilers
10004 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10005 static variable whose address is put into a register that is
10006 clobbered by the vfork. */
10007 static void
10008 #ifdef __cplusplus
10009 sparc_address_test (int arg)
10010 # else
10011 sparc_address_test (arg) int arg;
10012 #endif
10013 {
10014 static pid_t child;
10015 if (!child) {
10016 child = vfork ();
10017 if (child < 0) {
10018 perror ("vfork");
10019 _exit(2);
10020 }
10021 if (!child) {
10022 arg = getpid();
10023 write(-1, "", 0);
10024 _exit (arg);
10025 }
10026 }
10027 }
10028
10029 int
10030 main ()
10031 {
10032 pid_t parent = getpid ();
10033 pid_t child;
10034
10035 sparc_address_test (0);
10036
10037 child = vfork ();
10038
10039 if (child == 0) {
10040 /* Here is another test for sparc vfork register problems. This
10041 test uses lots of local variables, at least as many local
10042 variables as main has allocated so far including compiler
10043 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10044 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10045 reuse the register of parent for one of the local variables,
10046 since it will think that parent can't possibly be used any more
10047 in this routine. Assigning to the local variable will thus
10048 munge parent in the parent process. */
10049 pid_t
10050 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10051 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10052 /* Convince the compiler that p..p7 are live; otherwise, it might
10053 use the same hardware register for all 8 local variables. */
10054 if (p != p1 || p != p2 || p != p3 || p != p4
10055 || p != p5 || p != p6 || p != p7)
10056 _exit(1);
10057
10058 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10059 from child file descriptors. If the child closes a descriptor
10060 before it execs or exits, this munges the parent's descriptor
10061 as well. Test for this by closing stdout in the child. */
10062 _exit(close(fileno(stdout)) != 0);
10063 } else {
10064 int status;
10065 struct stat st;
10066
10067 while (wait(&status) != child)
10068 ;
10069 return (
10070 /* Was there some problem with vforking? */
10071 child < 0
10072
10073 /* Did the child fail? (This shouldn't happen.) */
10074 || status
10075
10076 /* Did the vfork/compiler bug occur? */
10077 || parent != getpid()
10078
10079 /* Did the file descriptor bug occur? */
10080 || fstat(fileno(stdout), &st) != 0
10081 );
10082 }
10083 }
10084 _ACEOF
10085 if ac_fn_cxx_try_run "$LINENO"; then :
10086 ac_cv_func_vfork_works=yes
10087 else
10088 ac_cv_func_vfork_works=no
10089 fi
10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10091 conftest.$ac_objext conftest.beam conftest.$ac_ext
10092 fi
10093
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10096 $as_echo "$ac_cv_func_vfork_works" >&6; }
10097
10098 fi;
10099 if test "x$ac_cv_func_fork_works" = xcross; then
10100 ac_cv_func_vfork_works=$ac_cv_func_vfork
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10102 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10103 fi
10104
10105 if test "x$ac_cv_func_vfork_works" = xyes; then
10106
10107 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10108
10109 else
10110
10111 $as_echo "#define vfork fork" >>confdefs.h
10112
10113 fi
10114 if test "x$ac_cv_func_fork_works" = xyes; then
10115
10116 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10117
10118 fi
10119
10120
10121
10122 if test "X$prefix" = "XNONE"; then
10123 acl_final_prefix="$ac_default_prefix"
10124 else
10125 acl_final_prefix="$prefix"
10126 fi
10127 if test "X$exec_prefix" = "XNONE"; then
10128 acl_final_exec_prefix='${prefix}'
10129 else
10130 acl_final_exec_prefix="$exec_prefix"
10131 fi
10132 acl_save_prefix="$prefix"
10133 prefix="$acl_final_prefix"
10134 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10135 prefix="$acl_save_prefix"
10136
10137
10138 # Check whether --with-gnu-ld was given.
10139 if test "${with_gnu_ld+set}" = set; then :
10140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10141 else
10142 with_gnu_ld=no
10143 fi
10144
10145 # Prepare PATH_SEPARATOR.
10146 # The user is always right.
10147 if test "${PATH_SEPARATOR+set}" != set; then
10148 echo "#! /bin/sh" >conf$$.sh
10149 echo "exit 0" >>conf$$.sh
10150 chmod +x conf$$.sh
10151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10152 PATH_SEPARATOR=';'
10153 else
10154 PATH_SEPARATOR=:
10155 fi
10156 rm -f conf$$.sh
10157 fi
10158 ac_prog=ld
10159 if test "$GCC" = yes; then
10160 # Check if gcc -print-prog-name=ld gives a path.
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10162 $as_echo_n "checking for ld used by GCC... " >&6; }
10163 case $host in
10164 *-*-mingw*)
10165 # gcc leaves a trailing carriage return which upsets mingw
10166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10167 *)
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10169 esac
10170 case $ac_prog in
10171 # Accept absolute paths.
10172 [\\/]* | [A-Za-z]:[\\/]*)
10173 re_direlt='/[^/][^/]*/\.\./'
10174 # Canonicalize the path of ld
10175 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10177 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10178 done
10179 test -z "$LD" && LD="$ac_prog"
10180 ;;
10181 "")
10182 # If it fails, then pretend we aren't using GCC.
10183 ac_prog=ld
10184 ;;
10185 *)
10186 # If it is relative, then search for the first ld in PATH.
10187 with_gnu_ld=unknown
10188 ;;
10189 esac
10190 elif test "$with_gnu_ld" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10192 $as_echo_n "checking for GNU ld... " >&6; }
10193 else
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10195 $as_echo_n "checking for non-GNU ld... " >&6; }
10196 fi
10197 if test "${acl_cv_path_LD+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 if test -z "$LD"; then
10201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10202 for ac_dir in $PATH; do
10203 test -z "$ac_dir" && ac_dir=.
10204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10205 acl_cv_path_LD="$ac_dir/$ac_prog"
10206 # Check to see if the program is GNU ld. I'd rather use --version,
10207 # but apparently some GNU ld's only accept -v.
10208 # Break only if it was the GNU/non-GNU ld that we prefer.
10209 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10210 test "$with_gnu_ld" != no && break
10211 else
10212 test "$with_gnu_ld" != yes && break
10213 fi
10214 fi
10215 done
10216 IFS="$ac_save_ifs"
10217 else
10218 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10219 fi
10220 fi
10221
10222 LD="$acl_cv_path_LD"
10223 if test -n "$LD"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10225 $as_echo "$LD" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10229 fi
10230 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10232 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10233 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10237 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10238 acl_cv_prog_gnu_ld=yes
10239 else
10240 acl_cv_prog_gnu_ld=no
10241 fi
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10244 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10245 with_gnu_ld=$acl_cv_prog_gnu_ld
10246
10247
10248
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10250 $as_echo_n "checking for shared library run path origin... " >&6; }
10251 if test "${acl_cv_rpath+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254
10255 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10256 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10257 . ./conftest.sh
10258 rm -f ./conftest.sh
10259 acl_cv_rpath=done
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10263 $as_echo "$acl_cv_rpath" >&6; }
10264 wl="$acl_cv_wl"
10265 libext="$acl_cv_libext"
10266 shlibext="$acl_cv_shlibext"
10267 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10268 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10269 hardcode_direct="$acl_cv_hardcode_direct"
10270 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10271 # Check whether --enable-rpath was given.
10272 if test "${enable_rpath+set}" = set; then :
10273 enableval=$enable_rpath; :
10274 else
10275 enable_rpath=yes
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285 use_additional=yes
10286
10287 acl_save_prefix="$prefix"
10288 prefix="$acl_final_prefix"
10289 acl_save_exec_prefix="$exec_prefix"
10290 exec_prefix="$acl_final_exec_prefix"
10291
10292 eval additional_includedir=\"$includedir\"
10293 eval additional_libdir=\"$libdir\"
10294
10295 exec_prefix="$acl_save_exec_prefix"
10296 prefix="$acl_save_prefix"
10297
10298
10299 # Check whether --with-libiconv-prefix was given.
10300 if test "${with_libiconv_prefix+set}" = set; then :
10301 withval=$with_libiconv_prefix;
10302 if test "X$withval" = "Xno"; then
10303 use_additional=no
10304 else
10305 if test "X$withval" = "X"; then
10306
10307 acl_save_prefix="$prefix"
10308 prefix="$acl_final_prefix"
10309 acl_save_exec_prefix="$exec_prefix"
10310 exec_prefix="$acl_final_exec_prefix"
10311
10312 eval additional_includedir=\"$includedir\"
10313 eval additional_libdir=\"$libdir\"
10314
10315 exec_prefix="$acl_save_exec_prefix"
10316 prefix="$acl_save_prefix"
10317
10318 else
10319 additional_includedir="$withval/include"
10320 additional_libdir="$withval/lib"
10321 fi
10322 fi
10323
10324 fi
10325
10326 LIBICONV=
10327 LTLIBICONV=
10328 INCICONV=
10329 rpathdirs=
10330 ltrpathdirs=
10331 names_already_handled=
10332 names_next_round='iconv '
10333 while test -n "$names_next_round"; do
10334 names_this_round="$names_next_round"
10335 names_next_round=
10336 for name in $names_this_round; do
10337 already_handled=
10338 for n in $names_already_handled; do
10339 if test "$n" = "$name"; then
10340 already_handled=yes
10341 break
10342 fi
10343 done
10344 if test -z "$already_handled"; then
10345 names_already_handled="$names_already_handled $name"
10346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10347 eval value=\"\$HAVE_LIB$uppername\"
10348 if test -n "$value"; then
10349 if test "$value" = yes; then
10350 eval value=\"\$LIB$uppername\"
10351 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10352 eval value=\"\$LTLIB$uppername\"
10353 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10354 else
10355 :
10356 fi
10357 else
10358 found_dir=
10359 found_la=
10360 found_so=
10361 found_a=
10362 if test $use_additional = yes; then
10363 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10364 found_dir="$additional_libdir"
10365 found_so="$additional_libdir/lib$name.$shlibext"
10366 if test -f "$additional_libdir/lib$name.la"; then
10367 found_la="$additional_libdir/lib$name.la"
10368 fi
10369 else
10370 if test -f "$additional_libdir/lib$name.$libext"; then
10371 found_dir="$additional_libdir"
10372 found_a="$additional_libdir/lib$name.$libext"
10373 if test -f "$additional_libdir/lib$name.la"; then
10374 found_la="$additional_libdir/lib$name.la"
10375 fi
10376 fi
10377 fi
10378 fi
10379 if test "X$found_dir" = "X"; then
10380 for x in $LDFLAGS $LTLIBICONV; do
10381
10382 acl_save_prefix="$prefix"
10383 prefix="$acl_final_prefix"
10384 acl_save_exec_prefix="$exec_prefix"
10385 exec_prefix="$acl_final_exec_prefix"
10386 eval x=\"$x\"
10387 exec_prefix="$acl_save_exec_prefix"
10388 prefix="$acl_save_prefix"
10389
10390 case "$x" in
10391 -L*)
10392 dir=`echo "X$x" | sed -e 's/^X-L//'`
10393 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10394 found_dir="$dir"
10395 found_so="$dir/lib$name.$shlibext"
10396 if test -f "$dir/lib$name.la"; then
10397 found_la="$dir/lib$name.la"
10398 fi
10399 else
10400 if test -f "$dir/lib$name.$libext"; then
10401 found_dir="$dir"
10402 found_a="$dir/lib$name.$libext"
10403 if test -f "$dir/lib$name.la"; then
10404 found_la="$dir/lib$name.la"
10405 fi
10406 fi
10407 fi
10408 ;;
10409 esac
10410 if test "X$found_dir" != "X"; then
10411 break
10412 fi
10413 done
10414 fi
10415 if test "X$found_dir" != "X"; then
10416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10417 if test "X$found_so" != "X"; then
10418 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10420 else
10421 haveit=
10422 for x in $ltrpathdirs; do
10423 if test "X$x" = "X$found_dir"; then
10424 haveit=yes
10425 break
10426 fi
10427 done
10428 if test -z "$haveit"; then
10429 ltrpathdirs="$ltrpathdirs $found_dir"
10430 fi
10431 if test "$hardcode_direct" = yes; then
10432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10433 else
10434 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10436 haveit=
10437 for x in $rpathdirs; do
10438 if test "X$x" = "X$found_dir"; then
10439 haveit=yes
10440 break
10441 fi
10442 done
10443 if test -z "$haveit"; then
10444 rpathdirs="$rpathdirs $found_dir"
10445 fi
10446 else
10447 haveit=
10448 for x in $LDFLAGS $LIBICONV; do
10449
10450 acl_save_prefix="$prefix"
10451 prefix="$acl_final_prefix"
10452 acl_save_exec_prefix="$exec_prefix"
10453 exec_prefix="$acl_final_exec_prefix"
10454 eval x=\"$x\"
10455 exec_prefix="$acl_save_exec_prefix"
10456 prefix="$acl_save_prefix"
10457
10458 if test "X$x" = "X-L$found_dir"; then
10459 haveit=yes
10460 break
10461 fi
10462 done
10463 if test -z "$haveit"; then
10464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10465 fi
10466 if test "$hardcode_minus_L" != no; then
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10468 else
10469 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10470 fi
10471 fi
10472 fi
10473 fi
10474 else
10475 if test "X$found_a" != "X"; then
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10477 else
10478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10479 fi
10480 fi
10481 additional_includedir=
10482 case "$found_dir" in
10483 */lib | */lib/)
10484 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10485 additional_includedir="$basedir/include"
10486 ;;
10487 esac
10488 if test "X$additional_includedir" != "X"; then
10489 if test "X$additional_includedir" != "X/usr/include"; then
10490 haveit=
10491 if test "X$additional_includedir" = "X/usr/local/include"; then
10492 if test -n "$GCC"; then
10493 case $host_os in
10494 linux*) haveit=yes;;
10495 esac
10496 fi
10497 fi
10498 if test -z "$haveit"; then
10499 for x in $CPPFLAGS $INCICONV; do
10500
10501 acl_save_prefix="$prefix"
10502 prefix="$acl_final_prefix"
10503 acl_save_exec_prefix="$exec_prefix"
10504 exec_prefix="$acl_final_exec_prefix"
10505 eval x=\"$x\"
10506 exec_prefix="$acl_save_exec_prefix"
10507 prefix="$acl_save_prefix"
10508
10509 if test "X$x" = "X-I$additional_includedir"; then
10510 haveit=yes
10511 break
10512 fi
10513 done
10514 if test -z "$haveit"; then
10515 if test -d "$additional_includedir"; then
10516 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10517 fi
10518 fi
10519 fi
10520 fi
10521 fi
10522 if test -n "$found_la"; then
10523 save_libdir="$libdir"
10524 case "$found_la" in
10525 */* | *\\*) . "$found_la" ;;
10526 *) . "./$found_la" ;;
10527 esac
10528 libdir="$save_libdir"
10529 for dep in $dependency_libs; do
10530 case "$dep" in
10531 -L*)
10532 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10533 if test "X$additional_libdir" != "X/usr/lib"; then
10534 haveit=
10535 if test "X$additional_libdir" = "X/usr/local/lib"; then
10536 if test -n "$GCC"; then
10537 case $host_os in
10538 linux*) haveit=yes;;
10539 esac
10540 fi
10541 fi
10542 if test -z "$haveit"; then
10543 haveit=
10544 for x in $LDFLAGS $LIBICONV; do
10545
10546 acl_save_prefix="$prefix"
10547 prefix="$acl_final_prefix"
10548 acl_save_exec_prefix="$exec_prefix"
10549 exec_prefix="$acl_final_exec_prefix"
10550 eval x=\"$x\"
10551 exec_prefix="$acl_save_exec_prefix"
10552 prefix="$acl_save_prefix"
10553
10554 if test "X$x" = "X-L$additional_libdir"; then
10555 haveit=yes
10556 break
10557 fi
10558 done
10559 if test -z "$haveit"; then
10560 if test -d "$additional_libdir"; then
10561 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10562 fi
10563 fi
10564 haveit=
10565 for x in $LDFLAGS $LTLIBICONV; do
10566
10567 acl_save_prefix="$prefix"
10568 prefix="$acl_final_prefix"
10569 acl_save_exec_prefix="$exec_prefix"
10570 exec_prefix="$acl_final_exec_prefix"
10571 eval x=\"$x\"
10572 exec_prefix="$acl_save_exec_prefix"
10573 prefix="$acl_save_prefix"
10574
10575 if test "X$x" = "X-L$additional_libdir"; then
10576 haveit=yes
10577 break
10578 fi
10579 done
10580 if test -z "$haveit"; then
10581 if test -d "$additional_libdir"; then
10582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10583 fi
10584 fi
10585 fi
10586 fi
10587 ;;
10588 -R*)
10589 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10590 if test "$enable_rpath" != no; then
10591 haveit=
10592 for x in $rpathdirs; do
10593 if test "X$x" = "X$dir"; then
10594 haveit=yes
10595 break
10596 fi
10597 done
10598 if test -z "$haveit"; then
10599 rpathdirs="$rpathdirs $dir"
10600 fi
10601 haveit=
10602 for x in $ltrpathdirs; do
10603 if test "X$x" = "X$dir"; then
10604 haveit=yes
10605 break
10606 fi
10607 done
10608 if test -z "$haveit"; then
10609 ltrpathdirs="$ltrpathdirs $dir"
10610 fi
10611 fi
10612 ;;
10613 -l*)
10614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10615 ;;
10616 *.la)
10617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10618 ;;
10619 *)
10620 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10622 ;;
10623 esac
10624 done
10625 fi
10626 else
10627 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10629 fi
10630 fi
10631 fi
10632 done
10633 done
10634 if test "X$rpathdirs" != "X"; then
10635 if test -n "$hardcode_libdir_separator"; then
10636 alldirs=
10637 for found_dir in $rpathdirs; do
10638 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10639 done
10640 acl_save_libdir="$libdir"
10641 libdir="$alldirs"
10642 eval flag=\"$hardcode_libdir_flag_spec\"
10643 libdir="$acl_save_libdir"
10644 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10645 else
10646 for found_dir in $rpathdirs; do
10647 acl_save_libdir="$libdir"
10648 libdir="$found_dir"
10649 eval flag=\"$hardcode_libdir_flag_spec\"
10650 libdir="$acl_save_libdir"
10651 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10652 done
10653 fi
10654 fi
10655 if test "X$ltrpathdirs" != "X"; then
10656 for found_dir in $ltrpathdirs; do
10657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10658 done
10659 fi
10660
10661
10662
10663
10664
10665
10666
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10668 $as_echo_n "checking for iconv... " >&6; }
10669 if test "${am_cv_func_iconv+set}" = set; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672
10673 am_cv_func_iconv="no, consider installing GNU libiconv"
10674 am_cv_lib_iconv=no
10675 am_save_CPPFLAGS="$CPPFLAGS"
10676 CPPFLAGS="$CPPFLAGS $INCICONV"
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include <stdlib.h>
10680 #include <iconv.h>
10681 int
10682 main ()
10683 {
10684 iconv_t cd = iconv_open("","");
10685 iconv(cd,NULL,NULL,NULL,NULL);
10686 iconv_close(cd);
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_cxx_try_link "$LINENO"; then :
10692 am_cv_func_iconv=yes
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 CPPFLAGS="$am_save_CPPFLAGS"
10697
10698 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10699 for _libs in .libs _libs; do
10700 am_save_CPPFLAGS="$CPPFLAGS"
10701 am_save_LIBS="$LIBS"
10702 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10703 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706 #include <stdlib.h>
10707 #include <iconv.h>
10708 int
10709 main ()
10710 {
10711 iconv_t cd = iconv_open("","");
10712 iconv(cd,NULL,NULL,NULL,NULL);
10713 iconv_close(cd);
10714 ;
10715 return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_cxx_try_link "$LINENO"; then :
10719 INCICONV="-I../libiconv/include"
10720 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10721 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10722 am_cv_lib_iconv=yes
10723 am_cv_func_iconv=yes
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 CPPFLAGS="$am_save_CPPFLAGS"
10728 LIBS="$am_save_LIBS"
10729 if test "$am_cv_func_iconv" = "yes"; then
10730 break
10731 fi
10732 done
10733 fi
10734
10735 if test "$am_cv_func_iconv" != yes; then
10736 am_save_CPPFLAGS="$CPPFLAGS"
10737 am_save_LIBS="$LIBS"
10738 CPPFLAGS="$LIBS $INCICONV"
10739 LIBS="$LIBS $LIBICONV"
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <stdlib.h>
10743 #include <iconv.h>
10744 int
10745 main ()
10746 {
10747 iconv_t cd = iconv_open("","");
10748 iconv(cd,NULL,NULL,NULL,NULL);
10749 iconv_close(cd);
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_cxx_try_link "$LINENO"; then :
10755 am_cv_lib_iconv=yes
10756 am_cv_func_iconv=yes
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 CPPFLAGS="$am_save_CPPFLAGS"
10761 LIBS="$am_save_LIBS"
10762 fi
10763
10764 fi
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10766 $as_echo "$am_cv_func_iconv" >&6; }
10767 if test "$am_cv_func_iconv" = yes; then
10768
10769 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10770
10771 fi
10772 if test "$am_cv_lib_iconv" = yes; then
10773
10774 for element in $INCICONV; do
10775 haveit=
10776 for x in $CPPFLAGS; do
10777
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
10782 eval x=\"$x\"
10783 exec_prefix="$acl_save_exec_prefix"
10784 prefix="$acl_save_prefix"
10785
10786 if test "X$x" = "X$element"; then
10787 haveit=yes
10788 break
10789 fi
10790 done
10791 if test -z "$haveit"; then
10792 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10793 fi
10794 done
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10797 $as_echo_n "checking how to link with libiconv... " >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10799 $as_echo "$LIBICONV" >&6; }
10800 else
10801 LIBICONV=
10802 LTLIBICONV=
10803 fi
10804
10805
10806
10807 if test "$am_cv_func_iconv" = yes; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10809 $as_echo_n "checking for iconv declaration... " >&6; }
10810 if test "${am_cv_proto_iconv+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816
10817 #include <stdlib.h>
10818 #include <iconv.h>
10819 extern
10820 #ifdef __cplusplus
10821 "C"
10822 #endif
10823 #if defined(__STDC__) || defined(__cplusplus)
10824 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10825 #else
10826 size_t iconv();
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 if ac_fn_cxx_try_compile "$LINENO"; then :
10838 am_cv_proto_iconv_arg1=""
10839 else
10840 am_cv_proto_iconv_arg1="const"
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 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);"
10844 fi
10845
10846 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10848 }$am_cv_proto_iconv" >&5
10849 $as_echo "${ac_t:-
10850 }$am_cv_proto_iconv" >&6; }
10851
10852 cat >>confdefs.h <<_ACEOF
10853 #define ICONV_CONST $am_cv_proto_iconv_arg1
10854 _ACEOF
10855
10856 fi
10857
10858
10859 # Until we have in-tree GNU iconv:
10860 LIBICONV_DEP=
10861 if test -f "$LTLIBICONV"; then
10862 LIBICONV_DEP=$LTLIBICONV
10863 fi
10864
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10868 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10869 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #include <locale.h>
10875 int
10876 main ()
10877 {
10878 return LC_MESSAGES
10879 ;
10880 return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_cxx_try_link "$LINENO"; then :
10884 am_cv_val_LC_MESSAGES=yes
10885 else
10886 am_cv_val_LC_MESSAGES=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10892 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10893 if test $am_cv_val_LC_MESSAGES = yes; then
10894
10895 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10896
10897 fi
10898
10899
10900
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10902 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10903 if test "${am_cv_langinfo_codeset+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <langinfo.h>
10909 int
10910 main ()
10911 {
10912 char* cs = nl_langinfo(CODESET);
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_cxx_try_link "$LINENO"; then :
10918 am_cv_langinfo_codeset=yes
10919 else
10920 am_cv_langinfo_codeset=no
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10927 $as_echo "$am_cv_langinfo_codeset" >&6; }
10928 if test $am_cv_langinfo_codeset = yes; then
10929
10930 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10931
10932 fi
10933
10934
10935 # We will need to find libiberty.h and ansidecl.h
10936 saved_CFLAGS="$CFLAGS"
10937 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10938 saved_CXXFLAGS="$CXXFLAGS"
10939 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10940
10941 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10942 # normal autoconf function for these. But force definition of
10943 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10944 # basename handling in libiberty.h.
10945 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10946 #undef HAVE_DECL_BASENAME
10947 #define HAVE_DECL_BASENAME 1
10948 #include \"ansidecl.h\"
10949 #include \"system.h\"
10950 "
10951 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10952 ac_have_decl=1
10953 else
10954 ac_have_decl=0
10955 fi
10956
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_BASENAME $ac_have_decl
10959 _ACEOF
10960 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10961 #undef HAVE_DECL_BASENAME
10962 #define HAVE_DECL_BASENAME 1
10963 #include \"ansidecl.h\"
10964 #include \"system.h\"
10965 "
10966 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10967 ac_have_decl=1
10968 else
10969 ac_have_decl=0
10970 fi
10971
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_DECL_STRSTR $ac_have_decl
10974 _ACEOF
10975
10976
10977 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10978 madvise stpcpy strnlen strsignal strverscmp \
10979 strtol strtoul strtoll strtoull setenv unsetenv \
10980 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10981 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
10982 do
10983 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10985 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10986 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #undef $ac_tr_decl
10992 #define $ac_tr_decl 1
10993
10994 #include "ansidecl.h"
10995 #include "system.h"
10996
10997 int
10998 main ()
10999 {
11000 #ifndef $ac_func
11001 char *(*pfn) = (char *(*)) $ac_func ;
11002 #endif
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_cxx_try_compile "$LINENO"; then :
11008 eval "gcc_cv_have_decl_$ac_func=yes"
11009 else
11010 eval "gcc_cv_have_decl_$ac_func=no"
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 fi
11014
11015 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11018 #define $ac_tr_decl 1
11019 _ACEOF
11020
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11024 #define $ac_tr_decl 0
11025 _ACEOF
11026
11027 fi
11028
11029 done
11030
11031
11032 for ac_func in getrlimit setrlimit getrusage
11033 do
11034 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11036 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11037 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 #undef $ac_tr_decl
11043 #define $ac_tr_decl 1
11044
11045 #include "ansidecl.h"
11046 #include "system.h"
11047 #ifdef HAVE_SYS_RESOURCE_H
11048 #include <sys/resource.h>
11049 #endif
11050
11051
11052 int
11053 main ()
11054 {
11055 #ifndef $ac_func
11056 char *(*pfn) = (char *(*)) $ac_func ;
11057 #endif
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_cxx_try_compile "$LINENO"; then :
11063 eval "gcc_cv_have_decl_$ac_func=yes"
11064 else
11065 eval "gcc_cv_have_decl_$ac_func=no"
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 fi
11069
11070 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11072 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11073 #define $ac_tr_decl 1
11074 _ACEOF
11075
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11079 #define $ac_tr_decl 0
11080 _ACEOF
11081
11082 fi
11083
11084 done
11085
11086
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089
11090 #include "ansidecl.h"
11091 #include "system.h"
11092 #ifdef HAVE_SYS_RESOURCE_H
11093 #include <sys/resource.h>
11094 #endif
11095
11096 int
11097 main ()
11098 {
11099 rlim_t l = 0;
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_cxx_try_compile "$LINENO"; then :
11105
11106 else
11107
11108 $as_echo "#define rlim_t long" >>confdefs.h
11109
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112
11113 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11114 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11115 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11116 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11117 for ac_func in ldgetname
11118 do
11119 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11121 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11122 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11127 #undef $ac_tr_decl
11128 #define $ac_tr_decl 1
11129
11130 #include "ansidecl.h"
11131 #include "system.h"
11132 #ifdef HAVE_LDFCN_H
11133 #undef FREAD
11134 #undef FWRITE
11135 #include <ldfcn.h>
11136 #endif
11137
11138
11139 int
11140 main ()
11141 {
11142 #ifndef $ac_func
11143 char *(*pfn) = (char *(*)) $ac_func ;
11144 #endif
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 if ac_fn_cxx_try_compile "$LINENO"; then :
11150 eval "gcc_cv_have_decl_$ac_func=yes"
11151 else
11152 eval "gcc_cv_have_decl_$ac_func=no"
11153 fi
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 fi
11156
11157 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11160 #define $ac_tr_decl 1
11161 _ACEOF
11162
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11166 #define $ac_tr_decl 0
11167 _ACEOF
11168
11169 fi
11170
11171 done
11172
11173
11174 for ac_func in times
11175 do
11176 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11179 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #undef $ac_tr_decl
11185 #define $ac_tr_decl 1
11186
11187 #include "ansidecl.h"
11188 #include "system.h"
11189 #ifdef HAVE_SYS_TIMES_H
11190 #include <sys/times.h>
11191 #endif
11192
11193
11194 int
11195 main ()
11196 {
11197 #ifndef $ac_func
11198 char *(*pfn) = (char *(*)) $ac_func ;
11199 #endif
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_cxx_try_compile "$LINENO"; then :
11205 eval "gcc_cv_have_decl_$ac_func=yes"
11206 else
11207 eval "gcc_cv_have_decl_$ac_func=no"
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 fi
11211
11212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11215 #define $ac_tr_decl 1
11216 _ACEOF
11217
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11221 #define $ac_tr_decl 0
11222 _ACEOF
11223
11224 fi
11225
11226 done
11227
11228
11229 for ac_func in sigaltstack
11230 do
11231 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11233 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11234 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #undef $ac_tr_decl
11240 #define $ac_tr_decl 1
11241
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #include <signal.h>
11245
11246
11247 int
11248 main ()
11249 {
11250 #ifndef $ac_func
11251 char *(*pfn) = (char *(*)) $ac_func ;
11252 #endif
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_cxx_try_compile "$LINENO"; then :
11258 eval "gcc_cv_have_decl_$ac_func=yes"
11259 else
11260 eval "gcc_cv_have_decl_$ac_func=no"
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 fi
11264
11265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11268 #define $ac_tr_decl 1
11269 _ACEOF
11270
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11274 #define $ac_tr_decl 0
11275 _ACEOF
11276
11277 fi
11278
11279 done
11280
11281
11282 # More time-related stuff.
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11284 $as_echo_n "checking for struct tms... " >&6; }
11285 if test "${ac_cv_struct_tms+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291
11292 #include "ansidecl.h"
11293 #include "system.h"
11294 #ifdef HAVE_SYS_TIMES_H
11295 #include <sys/times.h>
11296 #endif
11297
11298 int
11299 main ()
11300 {
11301 struct tms tms;
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 if ac_fn_cxx_try_compile "$LINENO"; then :
11307 ac_cv_struct_tms=yes
11308 else
11309 ac_cv_struct_tms=no
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11314 $as_echo "$ac_cv_struct_tms" >&6; }
11315 if test $ac_cv_struct_tms = yes; then
11316
11317 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11318
11319 fi
11320
11321 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11322 # revisit after autoconf 2.50.
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11324 $as_echo_n "checking for clock_t... " >&6; }
11325 if test "${gcc_cv_type_clock_t+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 #include "ansidecl.h"
11333 #include "system.h"
11334
11335 int
11336 main ()
11337 {
11338 clock_t x;
11339 ;
11340 return 0;
11341 }
11342 _ACEOF
11343 if ac_fn_cxx_try_compile "$LINENO"; then :
11344 gcc_cv_type_clock_t=yes
11345 else
11346 gcc_cv_type_clock_t=no
11347 fi
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11351 $as_echo "$gcc_cv_type_clock_t" >&6; }
11352 if test $gcc_cv_type_clock_t = yes; then
11353
11354 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11355
11356 fi
11357
11358 # Check if F_SETLKW is supported by fcntl.
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11360 $as_echo_n "checking for F_SETLKW... " >&6; }
11361 if test "${ac_cv_f_setlkw+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 #include <fcntl.h>
11369 int
11370 main ()
11371 {
11372
11373 struct flock fl;
11374 fl.l_whence = 0;
11375 fl.l_start = 0;
11376 fl.l_len = 0;
11377 fl.l_pid = 0;
11378 return fcntl (1, F_SETLKW, &fl);
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_cxx_try_compile "$LINENO"; then :
11384 ac_cv_f_setlkw=yes
11385 else
11386 ac_cv_f_setlkw=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 fi
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11391 $as_echo "$ac_cv_f_setlkw" >&6; }
11392 if test $ac_cv_f_setlkw = yes; then
11393
11394 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11395
11396 fi
11397
11398 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11399 CFLAGS="$saved_CFLAGS"
11400 CXXFLAGS="$saved_CXXFLAGS"
11401
11402 # mkdir takes a single argument on some systems.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11404 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11405 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410
11411 #include <sys/types.h>
11412 #ifdef HAVE_SYS_STAT_H
11413 # include <sys/stat.h>
11414 #endif
11415 #ifdef HAVE_UNISTD_H
11416 # include <unistd.h>
11417 #endif
11418 #ifdef HAVE_DIRECT_H
11419 # include <direct.h>
11420 #endif
11421 int
11422 main ()
11423 {
11424 mkdir ("foo", 0);
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_cxx_try_compile "$LINENO"; then :
11430 gcc_cv_mkdir_takes_one_arg=no
11431 else
11432 gcc_cv_mkdir_takes_one_arg=yes
11433 fi
11434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11437 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11438 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11439
11440 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11441
11442 fi
11443
11444
11445 # File extensions
11446 manext='.1'
11447 objext='.o'
11448
11449
11450
11451 # With Setjmp/Longjmp based exception handling.
11452 # Check whether --enable-sjlj-exceptions was given.
11453 if test "${enable_sjlj_exceptions+set}" = set; then :
11454 enableval=$enable_sjlj_exceptions; case $target in
11455 *-*-hpux10*)
11456 if test $enableval != yes; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11458 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11459 enableval=yes
11460 fi
11461 ;;
11462 esac
11463 force_sjlj_exceptions=yes
11464 else
11465 case $target in
11466 *-*-hpux10*)
11467 force_sjlj_exceptions=yes
11468 enableval=yes
11469 ;;
11470 lm32*-*-*)
11471 force_sjlj_exceptions=yes
11472 enableval=yes
11473 ;;
11474 *)
11475 force_sjlj_exceptions=no
11476 ;;
11477 esac
11478 fi
11479
11480 if test $force_sjlj_exceptions = yes; then
11481 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11482
11483 cat >>confdefs.h <<_ACEOF
11484 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11485 _ACEOF
11486
11487 fi
11488
11489 # --------------------------------------------------------
11490 # Build, host, and target specific configuration fragments
11491 # --------------------------------------------------------
11492
11493 # Collect build-machine-specific information.
11494 . ${srcdir}/config.build || exit 1
11495
11496 # Collect host-machine-specific information.
11497 . ${srcdir}/config.host || exit 1
11498
11499 target_gtfiles=
11500
11501 # Collect target-machine-specific information.
11502 . ${srcdir}/config.gcc || exit 1
11503
11504 extra_objs="${host_extra_objs} ${extra_objs}"
11505 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11506
11507 # Default the target-machine variables that were not explicitly set.
11508 if test x"$tm_file" = x
11509 then tm_file=$cpu_type/$cpu_type.h; fi
11510
11511 if test x"$extra_headers" = x
11512 then extra_headers=; fi
11513
11514 if test x$md_file = x
11515 then md_file=$cpu_type/$cpu_type.md; fi
11516
11517 if test x$out_file = x
11518 then out_file=$cpu_type/$cpu_type.c; fi
11519
11520 if test x"$tmake_file" = x
11521 then tmake_file=$cpu_type/t-$cpu_type
11522 fi
11523
11524 # Support --enable-initfini-array.
11525 if test x$enable_initfini_array != xno; then
11526 tm_file="${tm_file} initfini-array.h"
11527 fi
11528
11529 if test x"$dwarf2" = xyes
11530 then tm_file="$tm_file tm-dwarf2.h"
11531 fi
11532
11533 # Say what files are being used for the output code and MD file.
11534 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11535 echo "Using \`$srcdir/config/$md_file' as machine description file."
11536
11537 # If any of the xm_file variables contain nonexistent files, warn
11538 # about them and drop them.
11539
11540 bx=
11541 for x in $build_xm_file; do
11542 if test -f $srcdir/config/$x
11543 then bx="$bx $x"
11544 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11545 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11546 fi
11547 done
11548 build_xm_file="$bx"
11549
11550 hx=
11551 for x in $host_xm_file; do
11552 if test -f $srcdir/config/$x
11553 then hx="$hx $x"
11554 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11555 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11556 fi
11557 done
11558 host_xm_file="$hx"
11559
11560 tx=
11561 for x in $xm_file; do
11562 if test -f $srcdir/config/$x
11563 then tx="$tx $x"
11564 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11565 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11566 fi
11567 done
11568 xm_file="$tx"
11569
11570 count=a
11571 for f in $tm_file; do
11572 count=${count}x
11573 done
11574 if test $count = ax; then
11575 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11576 else
11577 echo "Using the following target machine macro files:"
11578 for f in $tm_file; do
11579 echo " $srcdir/config/$f"
11580 done
11581 fi
11582
11583 if test x$use_long_long_for_widest_fast_int = xyes; then
11584
11585 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11586
11587 fi
11588
11589 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11590
11591 cat >>confdefs.h <<_ACEOF
11592 #define HAVE_GNU_LD $gnu_ld_bool
11593 _ACEOF
11594
11595
11596 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11597
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_GNU_AS $gnu_as_bool
11600 _ACEOF
11601
11602
11603 count=a
11604 for f in $host_xm_file; do
11605 count=${count}x
11606 done
11607 if test $count = a; then
11608 :
11609 elif test $count = ax; then
11610 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11611 else
11612 echo "Using the following host machine macro files:"
11613 for f in $host_xm_file; do
11614 echo " $srcdir/config/$f"
11615 done
11616 fi
11617 echo "Using ${out_host_hook_obj} for host machine hooks."
11618
11619 if test "$host_xm_file" != "$build_xm_file"; then
11620 count=a
11621 for f in $build_xm_file; do
11622 count=${count}x
11623 done
11624 if test $count = a; then
11625 :
11626 elif test $count = ax; then
11627 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11628 else
11629 echo "Using the following build machine macro files:"
11630 for f in $build_xm_file; do
11631 echo " $srcdir/config/$f"
11632 done
11633 fi
11634 fi
11635
11636 if test -n "$configured_native_system_header_dir"; then
11637 native_system_header_dir=$configured_native_system_header_dir
11638 fi
11639 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11640
11641
11642 case ${host} in
11643 powerpc*-*-darwin*)
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11645 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11646 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651
11652 #include <sys/cdefs.h>
11653 #include <sys/signal.h>
11654 #include <ucontext.h>
11655 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11656
11657 _ACEOF
11658 if ac_fn_cxx_try_compile "$LINENO"; then :
11659 gcc_cv_mcontext_underscores=no
11660 else
11661 gcc_cv_mcontext_underscores=yes
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11666 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11667 if test $gcc_cv_mcontext_underscores = yes; then
11668
11669 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11670
11671 fi
11672 ;;
11673 esac
11674
11675 # ---------
11676 # Threading
11677 # ---------
11678
11679 # Check if a valid thread package
11680 case ${enable_threads} in
11681 "" | no)
11682 # No threads
11683 target_thread_file='single'
11684 ;;
11685 yes)
11686 # default
11687 target_thread_file='single'
11688 ;;
11689 aix | dce | lynx | mipssde | posix | rtems | \
11690 single | tpf | vxworks | win32)
11691 target_thread_file=${enable_threads}
11692 ;;
11693 *)
11694 echo "${enable_threads} is an unknown thread package" 1>&2
11695 exit 1
11696 ;;
11697 esac
11698
11699 if test x${thread_file} = x; then
11700 # No thread file set by target-specific clauses in config.gcc,
11701 # so use file chosen by default logic above
11702 thread_file=${target_thread_file}
11703 fi
11704
11705 # --------
11706 # UNSORTED
11707 # --------
11708
11709 use_cxa_atexit=no
11710 if test x$enable___cxa_atexit = xyes || \
11711 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11712 if test x$host = x$target; then
11713 case $host in
11714 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11715 # keyed to flag_use_cxa_atexit
11716 *-*-mingw32*)
11717 use_cxa_atexit=yes
11718 ;;
11719 powerpc-ibm-aix*)
11720 use_cxa_atexit=yes
11721 ;;
11722 *)
11723 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11724 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11725 use_cxa_atexit=yes
11726 else
11727 echo "__cxa_atexit can't be enabled on this target"
11728 fi
11729
11730 ;;
11731 esac
11732 else
11733 # We can't check for __cxa_atexit when building a cross, so assume
11734 # it is available
11735 use_cxa_atexit=yes
11736 fi
11737 if test x$use_cxa_atexit = xyes; then
11738
11739 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11740
11741 fi
11742 fi
11743
11744 # Look for a file containing extra machine modes.
11745 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11746 extra_modes_file='$(srcdir)'/config/${extra_modes}
11747
11748
11749 cat >>confdefs.h <<_ACEOF
11750 #define EXTRA_MODES_FILE "config/$extra_modes"
11751 _ACEOF
11752
11753 fi
11754
11755 # Convert extra_options into a form suitable for Makefile use.
11756 extra_opt_files=
11757 all_opt_files=
11758 for f in $extra_options; do
11759 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11760 all_opt_files="$all_opt_files $srcdir/config/$f"
11761 done
11762
11763
11764 # auto-host.h is the file containing items generated by autoconf and is
11765 # the first file included by config.h.
11766 # If host=build, it is correct to have bconfig include auto-host.h
11767 # as well. If host!=build, we are in error and need to do more
11768 # work to find out the build config parameters.
11769 if test x$host = x$build
11770 then
11771 build_auto=auto-host.h
11772 else
11773 # We create a subdir, then run autoconf in the subdir.
11774 # To prevent recursion we set host and build for the new
11775 # invocation of configure to the build for this invocation
11776 # of configure.
11777 tempdir=build.$$
11778 rm -rf $tempdir
11779 mkdir $tempdir
11780 cd $tempdir
11781 case ${srcdir} in
11782 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11783 *) realsrcdir=../${srcdir};;
11784 esac
11785 # Clearing GMPINC is necessary to prevent host headers being
11786 # used by the build compiler. Defining GENERATOR_FILE stops
11787 # system.h from including gmp.h.
11788 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11789 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11790 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11791 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11792 ${realsrcdir}/configure \
11793 --enable-languages=${enable_languages-all} \
11794 --target=$target_alias --host=$build_alias --build=$build_alias
11795
11796 # We just finished tests for the build machine, so rename
11797 # the file auto-build.h in the gcc directory.
11798 mv auto-host.h ../auto-build.h
11799 cd ..
11800 rm -rf $tempdir
11801 build_auto=auto-build.h
11802 fi
11803
11804
11805 tm_file="${tm_file} defaults.h"
11806 tm_p_file="${tm_p_file} tm-preds.h"
11807 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11808 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11809 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11810 # put this back in temporarily.
11811 xm_file="auto-host.h ansidecl.h ${xm_file}"
11812
11813 # --------
11814 # UNSORTED
11815 # --------
11816
11817 # Compile in configure arguments.
11818 if test -f configargs.h ; then
11819 # Being re-configured.
11820 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11821 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11822 else
11823 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11824 fi
11825
11826 # Double all backslashes and backslash all quotes to turn
11827 # gcc_config_arguments into a C string.
11828 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11829 $gcc_config_arguments
11830 EOF
11831 gcc_config_arguments_str=`cat conftest.out`
11832 rm -f conftest.out
11833
11834 cat > configargs.h <<EOF
11835 /* Generated automatically. */
11836 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11837 static const char thread_model[] = "$thread_file";
11838
11839 static const struct {
11840 const char *name, *value;
11841 } configure_default_options[] = $configure_default_options;
11842 EOF
11843
11844 gcc_BASEVER=`cat $srcdir/BASE-VER`
11845 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11846 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11847 if test -f $srcdir/REVISION ; then
11848 gcc_REVISION=`cat $srcdir/REVISION`
11849 else
11850 gcc_REVISION=""
11851 fi
11852 cat > plugin-version.h <<EOF
11853 #include "configargs.h"
11854
11855 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11856 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11857 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11858 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11859
11860 static char basever[] = "$gcc_BASEVER";
11861 static char datestamp[] = "$gcc_DATESTAMP";
11862 static char devphase[] = "$gcc_DEVPHASE";
11863 static char revision[] = "$gcc_REVISION";
11864
11865 /* FIXME plugins: We should make the version information more precise.
11866 One way to do is to add a checksum. */
11867
11868 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11869 devphase, revision,
11870 configuration_arguments};
11871 EOF
11872
11873 # Determine what GCC version number to use in filesystem paths.
11874
11875 get_gcc_base_ver="cat"
11876
11877 # Check whether --with-gcc-major-version-only was given.
11878 if test "${with_gcc_major_version_only+set}" = set; then :
11879 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11880 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11881 fi
11882
11883 fi
11884
11885
11886
11887
11888 # Internationalization
11889 # If we haven't got the data from the intl directory,
11890 # assume NLS is disabled.
11891 USE_NLS=no
11892 LIBINTL=
11893 LIBINTL_DEP=
11894 INCINTL=
11895 XGETTEXT=
11896 GMSGFMT=
11897 POSUB=
11898
11899 if test -f ../intl/config.intl; then
11900 . ../intl/config.intl
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11903 $as_echo_n "checking whether NLS is requested... " >&6; }
11904 if test x"$USE_NLS" != xyes; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909 $as_echo "yes" >&6; }
11910
11911 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11912
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11915 $as_echo_n "checking for catalogs to be installed... " >&6; }
11916 # Look for .po and .gmo files in the source directory.
11917 CATALOGS=
11918 XLINGUAS=
11919 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11920 # If there aren't any .gmo files the shell will give us the
11921 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11922 # weeded out.
11923 case "$cat" in *\**)
11924 continue;;
11925 esac
11926 # The quadruple backslash is collapsed to a double backslash
11927 # by the backticks, then collapsed again by the double quotes,
11928 # leaving us with one backslash in the sed expression (right
11929 # before the dot that mustn't act as a wildcard).
11930 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11931 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11932 # The user is allowed to set LINGUAS to a list of languages to
11933 # install catalogs for. If it's empty that means "all of them."
11934 if test "x$LINGUAS" = x; then
11935 CATALOGS="$CATALOGS $cat"
11936 XLINGUAS="$XLINGUAS $lang"
11937 else
11938 case "$LINGUAS" in *$lang*)
11939 CATALOGS="$CATALOGS $cat"
11940 XLINGUAS="$XLINGUAS $lang"
11941 ;;
11942 esac
11943 fi
11944 done
11945 LINGUAS="$XLINGUAS"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11947 $as_echo "$LINGUAS" >&6; }
11948
11949
11950 DATADIRNAME=share
11951
11952 INSTOBJEXT=.mo
11953
11954 GENCAT=gencat
11955
11956 CATOBJEXT=.gmo
11957
11958 fi
11959
11960 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11961 # -liconv on the link line twice.
11962 case "$LIBINTL" in *$LIBICONV*)
11963 LIBICONV= ;;
11964 esac
11965
11966 # Check whether --enable-secureplt was given.
11967 if test "${enable_secureplt+set}" = set; then :
11968 enableval=$enable_secureplt;
11969 fi
11970
11971
11972 # Check whether --enable-mingw-wildcard was given.
11973 if test "${enable_mingw_wildcard+set}" = set; then :
11974 enableval=$enable_mingw_wildcard;
11975 else
11976 enable_mingw_wildcard=platform
11977 fi
11978
11979 if test x"$enable_mingw_wildcard" != xplatform ; then :
11980
11981 cat >>confdefs.h <<_ACEOF
11982 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11983 _ACEOF
11984
11985 fi
11986
11987 # Check whether --enable-leading-mingw64-underscores was given.
11988 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11989 enableval=$enable_leading_mingw64_underscores;
11990 fi
11991
11992 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11993
11994 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11995
11996 fi
11997
11998 # Check whether --enable-cld was given.
11999 if test "${enable_cld+set}" = set; then :
12000 enableval=$enable_cld;
12001 else
12002 enable_cld=no
12003 fi
12004
12005
12006 # Check whether --enable-frame-pointer was given.
12007 if test "${enable_frame_pointer+set}" = set; then :
12008 enableval=$enable_frame_pointer;
12009 else
12010
12011 case $target_os in
12012 linux* | darwin[8912]*)
12013 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12014 # DWARF2.
12015 enable_frame_pointer=no
12016 ;;
12017 *)
12018 enable_frame_pointer=yes
12019 ;;
12020 esac
12021
12022 fi
12023
12024
12025 # Windows32 Registry support for specifying GCC installation paths.
12026 # Check whether --enable-win32-registry was given.
12027 if test "${enable_win32_registry+set}" = set; then :
12028 enableval=$enable_win32_registry;
12029 fi
12030
12031
12032 case $host_os in
12033 win32 | pe | cygwin* | mingw32*)
12034 if test "x$enable_win32_registry" != xno; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12036 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12037 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_func_search_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char RegOpenKeyExA ();
12051 int
12052 main ()
12053 {
12054 return RegOpenKeyExA ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 for ac_lib in '' advapi32; do
12060 if test -z "$ac_lib"; then
12061 ac_res="none required"
12062 else
12063 ac_res=-l$ac_lib
12064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12065 fi
12066 if ac_fn_cxx_try_link "$LINENO"; then :
12067 ac_cv_search_RegOpenKeyExA=$ac_res
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext
12071 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12072 break
12073 fi
12074 done
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076
12077 else
12078 ac_cv_search_RegOpenKeyExA=no
12079 fi
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12084 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12085 ac_res=$ac_cv_search_RegOpenKeyExA
12086 if test "$ac_res" != no; then :
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12088
12089 else
12090 enable_win32_registry=no
12091 fi
12092
12093 fi
12094
12095 if test "x$enable_win32_registry" != xno; then
12096
12097 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12098
12099
12100 if test "x$enable_win32_registry" != xyes \
12101 && test "x$enable_win32_registry" != x; then
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12105 _ACEOF
12106
12107 fi
12108 fi
12109 ;;
12110 esac
12111
12112 # Get an absolute path to the GCC top-level source directory
12113 holddir=`${PWDCMD-pwd}`
12114 cd $srcdir
12115 topdir=`${PWDCMD-pwd}`
12116 cd $holddir
12117
12118 # Conditionalize the makefile for this host machine.
12119 xmake_file=
12120 for f in ${host_xmake_file}
12121 do
12122 if test -f ${srcdir}/config/$f
12123 then
12124 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12125 fi
12126 done
12127
12128 # Conditionalize the makefile for this target machine.
12129 tmake_file_=
12130 for f in ${tmake_file}
12131 do
12132 if test -f ${srcdir}/config/$f
12133 then
12134 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12135 fi
12136 done
12137 tmake_file="${tmake_file_}"
12138
12139 out_object_file=`basename $out_file .c`.o
12140 common_out_object_file=`basename $common_out_file .c`.o
12141
12142 tm_file_list="options.h"
12143 tm_include_list="options.h insn-constants.h"
12144 for f in $tm_file; do
12145 case $f in
12146 ./* )
12147 f=`echo $f | sed 's/^..//'`
12148 tm_file_list="${tm_file_list} $f"
12149 tm_include_list="${tm_include_list} $f"
12150 ;;
12151 defaults.h )
12152 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12153 tm_include_list="${tm_include_list} $f"
12154 ;;
12155 * )
12156 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12157 tm_include_list="${tm_include_list} config/$f"
12158 ;;
12159 esac
12160 done
12161
12162 tm_p_file_list=
12163 tm_p_include_list=
12164 for f in $tm_p_file; do
12165 case $f in
12166 tm-preds.h )
12167 tm_p_file_list="${tm_p_file_list} $f"
12168 tm_p_include_list="${tm_p_include_list} $f"
12169 ;;
12170 * )
12171 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12172 tm_p_include_list="${tm_p_include_list} config/$f"
12173 esac
12174 done
12175
12176 xm_file_list=
12177 xm_include_list=
12178 for f in $xm_file; do
12179 case $f in
12180 ansidecl.h )
12181 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12182 xm_include_list="${xm_include_list} $f"
12183 ;;
12184 auto-host.h )
12185 xm_file_list="${xm_file_list} $f"
12186 xm_include_list="${xm_include_list} $f"
12187 ;;
12188 * )
12189 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12190 xm_include_list="${xm_include_list} config/$f"
12191 ;;
12192 esac
12193 done
12194
12195 host_xm_file_list=
12196 host_xm_include_list=
12197 for f in $host_xm_file; do
12198 case $f in
12199 ansidecl.h )
12200 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12201 host_xm_include_list="${host_xm_include_list} $f"
12202 ;;
12203 auto-host.h )
12204 host_xm_file_list="${host_xm_file_list} $f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12206 ;;
12207 * )
12208 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12209 host_xm_include_list="${host_xm_include_list} config/$f"
12210 ;;
12211 esac
12212 done
12213
12214 build_xm_file_list=
12215 for f in $build_xm_file; do
12216 case $f in
12217 ansidecl.h )
12218 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12219 build_xm_include_list="${build_xm_include_list} $f"
12220 ;;
12221 auto-build.h | auto-host.h )
12222 build_xm_file_list="${build_xm_file_list} $f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12224 ;;
12225 * )
12226 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12227 build_xm_include_list="${build_xm_include_list} config/$f"
12228 ;;
12229 esac
12230 done
12231
12232 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12233 # cross-compiler which does not use the native headers and libraries.
12234 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12235 CROSS=
12236 ALL=all.internal
12237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12238 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12239
12240 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12241 test x$build != x$host || test "x$with_build_sysroot" != x; then
12242 if test "x$with_build_sysroot" != x; then
12243 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12244 else
12245 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12246 fi
12247
12248 if test x$host != x$target
12249 then
12250 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12251 ALL=all.cross
12252 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12253 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12254 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12255 fi
12256
12257 if test "x$with_build_sysroot" != "x"; then
12258 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12259 elif test "x$with_sysroot" = x; then
12260 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12261 elif test "x$with_sysroot" = xyes; then
12262 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12263 else
12264 target_header_dir="${with_sysroot}${native_system_header_dir}"
12265 fi
12266 else
12267 target_header_dir=${native_system_header_dir}
12268 fi
12269
12270 # If this is a cross-compiler that does not
12271 # have its own set of headers then define
12272 # inhibit_libc
12273
12274 # If this is using newlib, without having the headers available now,
12275 # then define inhibit_libc in LIBGCC2_CFLAGS.
12276 # This prevents libgcc2 from containing any code which requires libc
12277 # support.
12278 : ${inhibit_libc=false}
12279 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12280 test x$with_newlib = xyes ; } &&
12281 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12282 inhibit_libc=true
12283 fi
12284
12285
12286 # When building gcc with a cross-compiler, we need to adjust things so
12287 # that the generator programs are still built with the native compiler.
12288 # Also, we cannot run fixincludes.
12289
12290 # These are the normal (build=host) settings:
12291 CC_FOR_BUILD='$(CC)'
12292 CXX_FOR_BUILD='$(CXX)'
12293 BUILD_CFLAGS='$(ALL_CFLAGS)'
12294 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12295 BUILD_LDFLAGS='$(LDFLAGS)'
12296 STMP_FIXINC=stmp-fixinc
12297
12298 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12299 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12300
12301 # And these apply if build != host, or we are generating coverage data
12302 if test x$build != x$host || test "x$coverage_flags" != x
12303 then
12304 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12305 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12306 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12307
12308 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12309 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12310 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12311 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12312 fi
12313
12314
12315
12316 # Expand extra_headers to include complete path.
12317 # This substitutes for lots of t-* files.
12318 extra_headers_list=
12319 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12320 for file in ${extra_headers} ; do
12321 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12322 done
12323
12324 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12325 if test x"$use_gcc_tgmath" = xyes
12326 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12327 fi
12328
12329 # Define collect2 in Makefile.
12330 case $host_can_use_collect2 in
12331 no) collect2= ;;
12332 *) collect2='collect2$(exeext)' ;;
12333 esac
12334
12335
12336 # Add a definition of USE_COLLECT2 if system wants one.
12337 case $use_collect2 in
12338 no) use_collect2= ;;
12339 "") ;;
12340 *)
12341 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12342 xm_defines="${xm_defines} USE_COLLECT2"
12343 case $host_can_use_collect2 in
12344 no)
12345 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12346 ;;
12347 esac
12348 ;;
12349 esac
12350
12351
12352 cat >>confdefs.h <<_ACEOF
12353 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12354 _ACEOF
12355
12356
12357 # ---------------------------
12358 # Assembler & linker features
12359 # ---------------------------
12360
12361 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12362 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12363 # However when ld-new is first executed from the build tree, libtool will
12364 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12365 # to the build tree. While doing this we need to use the previous-stage
12366 # linker, or we have an infinite loop. The presence of a shell script as
12367 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12368 # the gcc/collect-ld script. So we need to know how libtool works, or
12369 # exec-tool will fail.
12370
12371
12372 case `pwd` in
12373 *\ * | *\ *)
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12375 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12376 esac
12377
12378
12379
12380 macro_version='2.2.7a'
12381 macro_revision='1.3134'
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395 ltmain="$ac_aux_dir/ltmain.sh"
12396
12397 # Backslashify metacharacters that are still active within
12398 # double-quoted strings.
12399 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12400
12401 # Same as above, but do not quote variable references.
12402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12403
12404 # Sed substitution to delay expansion of an escaped shell variable in a
12405 # double_quote_subst'ed string.
12406 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12407
12408 # Sed substitution to delay expansion of an escaped single quote.
12409 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12410
12411 # Sed substitution to avoid accidental globbing in evaled expressions
12412 no_glob_subst='s/\*/\\\*/g'
12413
12414 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12416 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12419 $as_echo_n "checking how to print strings... " >&6; }
12420 # Test print first, because it will be a builtin if present.
12421 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12422 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12423 ECHO='print -r --'
12424 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12425 ECHO='printf %s\n'
12426 else
12427 # Use this function as a fallback that always works.
12428 func_fallback_echo ()
12429 {
12430 eval 'cat <<_LTECHO_EOF
12431 $1
12432 _LTECHO_EOF'
12433 }
12434 ECHO='func_fallback_echo'
12435 fi
12436
12437 # func_echo_all arg...
12438 # Invoke $ECHO with all args, space-separated.
12439 func_echo_all ()
12440 {
12441 $ECHO ""
12442 }
12443
12444 case "$ECHO" in
12445 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12446 $as_echo "printf" >&6; } ;;
12447 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12448 $as_echo "print -r" >&6; } ;;
12449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12450 $as_echo "cat" >&6; } ;;
12451 esac
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12467 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12468 if test "${ac_cv_path_SED+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12472 for ac_i in 1 2 3 4 5 6 7; do
12473 ac_script="$ac_script$as_nl$ac_script"
12474 done
12475 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12476 { ac_script=; unset ac_script;}
12477 if test -z "$SED"; then
12478 ac_path_SED_found=false
12479 # Loop through the user's path and test for each of PROGNAME-LIST
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_prog in sed gsed; do
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12488 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12489 # Check for GNU ac_path_SED and select it if it is found.
12490 # Check for GNU $ac_path_SED
12491 case `"$ac_path_SED" --version 2>&1` in
12492 *GNU*)
12493 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12494 *)
12495 ac_count=0
12496 $as_echo_n 0123456789 >"conftest.in"
12497 while :
12498 do
12499 cat "conftest.in" "conftest.in" >"conftest.tmp"
12500 mv "conftest.tmp" "conftest.in"
12501 cp "conftest.in" "conftest.nl"
12502 $as_echo '' >> "conftest.nl"
12503 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12505 as_fn_arith $ac_count + 1 && ac_count=$as_val
12506 if test $ac_count -gt ${ac_path_SED_max-0}; then
12507 # Best one so far, save it but keep looking for a better one
12508 ac_cv_path_SED="$ac_path_SED"
12509 ac_path_SED_max=$ac_count
12510 fi
12511 # 10*(2^10) chars as input seems more than enough
12512 test $ac_count -gt 10 && break
12513 done
12514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12515 esac
12516
12517 $ac_path_SED_found && break 3
12518 done
12519 done
12520 done
12521 IFS=$as_save_IFS
12522 if test -z "$ac_cv_path_SED"; then
12523 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12524 fi
12525 else
12526 ac_cv_path_SED=$SED
12527 fi
12528
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12531 $as_echo "$ac_cv_path_SED" >&6; }
12532 SED="$ac_cv_path_SED"
12533 rm -f conftest.sed
12534
12535 test -z "$SED" && SED=sed
12536 Xsed="$SED -e 1s/^X//"
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12549 $as_echo_n "checking for fgrep... " >&6; }
12550 if test "${ac_cv_path_FGREP+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12554 then ac_cv_path_FGREP="$GREP -F"
12555 else
12556 if test -z "$FGREP"; then
12557 ac_path_FGREP_found=false
12558 # Loop through the user's path and test for each of PROGNAME-LIST
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12561 do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_prog in fgrep; do
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12567 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12568 # Check for GNU ac_path_FGREP and select it if it is found.
12569 # Check for GNU $ac_path_FGREP
12570 case `"$ac_path_FGREP" --version 2>&1` in
12571 *GNU*)
12572 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12573 *)
12574 ac_count=0
12575 $as_echo_n 0123456789 >"conftest.in"
12576 while :
12577 do
12578 cat "conftest.in" "conftest.in" >"conftest.tmp"
12579 mv "conftest.tmp" "conftest.in"
12580 cp "conftest.in" "conftest.nl"
12581 $as_echo 'FGREP' >> "conftest.nl"
12582 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12584 as_fn_arith $ac_count + 1 && ac_count=$as_val
12585 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12586 # Best one so far, save it but keep looking for a better one
12587 ac_cv_path_FGREP="$ac_path_FGREP"
12588 ac_path_FGREP_max=$ac_count
12589 fi
12590 # 10*(2^10) chars as input seems more than enough
12591 test $ac_count -gt 10 && break
12592 done
12593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12594 esac
12595
12596 $ac_path_FGREP_found && break 3
12597 done
12598 done
12599 done
12600 IFS=$as_save_IFS
12601 if test -z "$ac_cv_path_FGREP"; then
12602 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12603 fi
12604 else
12605 ac_cv_path_FGREP=$FGREP
12606 fi
12607
12608 fi
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12611 $as_echo "$ac_cv_path_FGREP" >&6; }
12612 FGREP="$ac_cv_path_FGREP"
12613
12614
12615 test -z "$GREP" && GREP=grep
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635 # Check whether --with-gnu-ld was given.
12636 if test "${with_gnu_ld+set}" = set; then :
12637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12638 else
12639 with_gnu_ld=no
12640 fi
12641
12642 ac_prog=ld
12643 if test "$GCC" = yes; then
12644 # Check if gcc -print-prog-name=ld gives a path.
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12646 $as_echo_n "checking for ld used by $CC... " >&6; }
12647 case $host in
12648 *-*-mingw*)
12649 # gcc leaves a trailing carriage return which upsets mingw
12650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12651 *)
12652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12653 esac
12654 case $ac_prog in
12655 # Accept absolute paths.
12656 [\\/]* | ?:[\\/]*)
12657 re_direlt='/[^/][^/]*/\.\./'
12658 # Canonicalize the pathname of ld
12659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12662 done
12663 test -z "$LD" && LD="$ac_prog"
12664 ;;
12665 "")
12666 # If it fails, then pretend we aren't using GCC.
12667 ac_prog=ld
12668 ;;
12669 *)
12670 # If it is relative, then search for the first ld in PATH.
12671 with_gnu_ld=unknown
12672 ;;
12673 esac
12674 elif test "$with_gnu_ld" = yes; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12676 $as_echo_n "checking for GNU ld... " >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12679 $as_echo_n "checking for non-GNU ld... " >&6; }
12680 fi
12681 if test "${lt_cv_path_LD+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if test -z "$LD"; then
12685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12686 for ac_dir in $PATH; do
12687 IFS="$lt_save_ifs"
12688 test -z "$ac_dir" && ac_dir=.
12689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12690 lt_cv_path_LD="$ac_dir/$ac_prog"
12691 # Check to see if the program is GNU ld. I'd rather use --version,
12692 # but apparently some variants of GNU ld only accept -v.
12693 # Break only if it was the GNU/non-GNU ld that we prefer.
12694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12695 *GNU* | *'with BFD'*)
12696 test "$with_gnu_ld" != no && break
12697 ;;
12698 *)
12699 test "$with_gnu_ld" != yes && break
12700 ;;
12701 esac
12702 fi
12703 done
12704 IFS="$lt_save_ifs"
12705 else
12706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12707 fi
12708 fi
12709
12710 LD="$lt_cv_path_LD"
12711 if test -n "$LD"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12713 $as_echo "$LD" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12717 fi
12718 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12720 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12721 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12725 case `$LD -v 2>&1 </dev/null` in
12726 *GNU* | *'with BFD'*)
12727 lt_cv_prog_gnu_ld=yes
12728 ;;
12729 *)
12730 lt_cv_prog_gnu_ld=no
12731 ;;
12732 esac
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12735 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12736 with_gnu_ld=$lt_cv_prog_gnu_ld
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12747 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12748 if test "${lt_cv_path_NM+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$NM"; then
12752 # Let the user override the test.
12753 lt_cv_path_NM="$NM"
12754 else
12755 lt_nm_to_check="${ac_tool_prefix}nm"
12756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12757 lt_nm_to_check="$lt_nm_to_check nm"
12758 fi
12759 for lt_tmp_nm in $lt_nm_to_check; do
12760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12762 IFS="$lt_save_ifs"
12763 test -z "$ac_dir" && ac_dir=.
12764 tmp_nm="$ac_dir/$lt_tmp_nm"
12765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12766 # Check to see if the nm accepts a BSD-compat flag.
12767 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12768 # nm: unknown option "B" ignored
12769 # Tru64's nm complains that /dev/null is an invalid object file
12770 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12771 */dev/null* | *'Invalid file or object type'*)
12772 lt_cv_path_NM="$tmp_nm -B"
12773 break
12774 ;;
12775 *)
12776 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12777 */dev/null*)
12778 lt_cv_path_NM="$tmp_nm -p"
12779 break
12780 ;;
12781 *)
12782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12783 continue # so that we can try to find one that supports BSD flags
12784 ;;
12785 esac
12786 ;;
12787 esac
12788 fi
12789 done
12790 IFS="$lt_save_ifs"
12791 done
12792 : ${lt_cv_path_NM=no}
12793 fi
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12796 $as_echo "$lt_cv_path_NM" >&6; }
12797 if test "$lt_cv_path_NM" != "no"; then
12798 NM="$lt_cv_path_NM"
12799 else
12800 # Didn't find any BSD compatible name lister, look for dumpbin.
12801 if test -n "$DUMPBIN"; then :
12802 # Let the user override the test.
12803 else
12804 if test -n "$ac_tool_prefix"; then
12805 for ac_prog in dumpbin "link -dump"
12806 do
12807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$DUMPBIN"; then
12815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832 fi
12833 fi
12834 DUMPBIN=$ac_cv_prog_DUMPBIN
12835 if test -n "$DUMPBIN"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12837 $as_echo "$DUMPBIN" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842
12843
12844 test -n "$DUMPBIN" && break
12845 done
12846 fi
12847 if test -z "$DUMPBIN"; then
12848 ac_ct_DUMPBIN=$DUMPBIN
12849 for ac_prog in dumpbin "link -dump"
12850 do
12851 # Extract the first word of "$ac_prog", so it can be a program name with args.
12852 set dummy $ac_prog; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test -n "$ac_ct_DUMPBIN"; then
12859 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12863 do
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 break 2
12871 fi
12872 done
12873 done
12874 IFS=$as_save_IFS
12875
12876 fi
12877 fi
12878 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12879 if test -n "$ac_ct_DUMPBIN"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12881 $as_echo "$ac_ct_DUMPBIN" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886
12887
12888 test -n "$ac_ct_DUMPBIN" && break
12889 done
12890
12891 if test "x$ac_ct_DUMPBIN" = x; then
12892 DUMPBIN=":"
12893 else
12894 case $cross_compiling:$ac_tool_warned in
12895 yes:)
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12898 ac_tool_warned=yes ;;
12899 esac
12900 DUMPBIN=$ac_ct_DUMPBIN
12901 fi
12902 fi
12903
12904 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12905 *COFF*)
12906 DUMPBIN="$DUMPBIN -symbols"
12907 ;;
12908 *)
12909 DUMPBIN=:
12910 ;;
12911 esac
12912 fi
12913
12914 if test "$DUMPBIN" != ":"; then
12915 NM="$DUMPBIN"
12916 fi
12917 fi
12918 test -z "$NM" && NM=nm
12919
12920
12921
12922
12923
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12926 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12927 if test "${lt_cv_nm_interface+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 lt_cv_nm_interface="BSD nm"
12931 echo "int some_variable = 0;" > conftest.$ac_ext
12932 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12933 (eval "$ac_compile" 2>conftest.err)
12934 cat conftest.err >&5
12935 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12936 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12937 cat conftest.err >&5
12938 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12939 cat conftest.out >&5
12940 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12941 lt_cv_nm_interface="MS dumpbin"
12942 fi
12943 rm -f conftest*
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12946 $as_echo "$lt_cv_nm_interface" >&6; }
12947
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12949 $as_echo_n "checking whether ln -s works... " >&6; }
12950 LN_S=$as_ln_s
12951 if test "$LN_S" = "ln -s"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12956 $as_echo "no, using $LN_S" >&6; }
12957 fi
12958
12959 # find the maximum length of command line arguments
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12961 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12962 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 i=0
12966 teststring="ABCD"
12967
12968 case $build_os in
12969 msdosdjgpp*)
12970 # On DJGPP, this test can blow up pretty badly due to problems in libc
12971 # (any single argument exceeding 2000 bytes causes a buffer overrun
12972 # during glob expansion). Even if it were fixed, the result of this
12973 # check would be larger than it should be.
12974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12975 ;;
12976
12977 gnu*)
12978 # Under GNU Hurd, this test is not required because there is
12979 # no limit to the length of command line arguments.
12980 # Libtool will interpret -1 as no limit whatsoever
12981 lt_cv_sys_max_cmd_len=-1;
12982 ;;
12983
12984 cygwin* | mingw* | cegcc*)
12985 # On Win9x/ME, this test blows up -- it succeeds, but takes
12986 # about 5 minutes as the teststring grows exponentially.
12987 # Worse, since 9x/ME are not pre-emptively multitasking,
12988 # you end up with a "frozen" computer, even though with patience
12989 # the test eventually succeeds (with a max line length of 256k).
12990 # Instead, let's just punt: use the minimum linelength reported by
12991 # all of the supported platforms: 8192 (on NT/2K/XP).
12992 lt_cv_sys_max_cmd_len=8192;
12993 ;;
12994
12995 mint*)
12996 # On MiNT this can take a long time and run out of memory.
12997 lt_cv_sys_max_cmd_len=8192;
12998 ;;
12999
13000 amigaos*)
13001 # On AmigaOS with pdksh, this test takes hours, literally.
13002 # So we just punt and use a minimum line length of 8192.
13003 lt_cv_sys_max_cmd_len=8192;
13004 ;;
13005
13006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13007 # This has been around since 386BSD, at least. Likely further.
13008 if test -x /sbin/sysctl; then
13009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13010 elif test -x /usr/sbin/sysctl; then
13011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13012 else
13013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13014 fi
13015 # And add a safety zone
13016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13018 ;;
13019
13020 interix*)
13021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13022 lt_cv_sys_max_cmd_len=196608
13023 ;;
13024
13025 osf*)
13026 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13027 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13028 # nice to cause kernel panics so lets avoid the loop below.
13029 # First set a reasonable default.
13030 lt_cv_sys_max_cmd_len=16384
13031 #
13032 if test -x /sbin/sysconfig; then
13033 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13034 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13035 esac
13036 fi
13037 ;;
13038 sco3.2v5*)
13039 lt_cv_sys_max_cmd_len=102400
13040 ;;
13041 sysv5* | sco5v6* | sysv4.2uw2*)
13042 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13043 if test -n "$kargmax"; then
13044 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13045 else
13046 lt_cv_sys_max_cmd_len=32768
13047 fi
13048 ;;
13049 *)
13050 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13051 if test -n "$lt_cv_sys_max_cmd_len"; then
13052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13054 else
13055 # Make teststring a little bigger before we do anything with it.
13056 # a 1K string should be a reasonable start.
13057 for i in 1 2 3 4 5 6 7 8 ; do
13058 teststring=$teststring$teststring
13059 done
13060 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13061 # If test is not a shell built-in, we'll probably end up computing a
13062 # maximum length that is only half of the actual maximum length, but
13063 # we can't tell.
13064 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13065 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13066 test $i != 17 # 1/2 MB should be enough
13067 do
13068 i=`expr $i + 1`
13069 teststring=$teststring$teststring
13070 done
13071 # Only check the string length outside the loop.
13072 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13073 teststring=
13074 # Add a significant safety factor because C++ compilers can tack on
13075 # massive amounts of additional arguments before passing them to the
13076 # linker. It appears as though 1/2 is a usable value.
13077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13078 fi
13079 ;;
13080 esac
13081
13082 fi
13083
13084 if test -n $lt_cv_sys_max_cmd_len ; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13086 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13089 $as_echo "none" >&6; }
13090 fi
13091 max_cmd_len=$lt_cv_sys_max_cmd_len
13092
13093
13094
13095
13096
13097
13098 : ${CP="cp -f"}
13099 : ${MV="mv -f"}
13100 : ${RM="rm -f"}
13101
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13103 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13104 # Try some XSI features
13105 xsi_shell=no
13106 ( _lt_dummy="a/b/c"
13107 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13108 = c,a/b,, \
13109 && eval 'test $(( 1 + 1 )) -eq 2 \
13110 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13111 && xsi_shell=yes
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13113 $as_echo "$xsi_shell" >&6; }
13114
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13117 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13118 lt_shell_append=no
13119 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13120 >/dev/null 2>&1 \
13121 && lt_shell_append=yes
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13123 $as_echo "$lt_shell_append" >&6; }
13124
13125
13126 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13127 lt_unset=unset
13128 else
13129 lt_unset=false
13130 fi
13131
13132
13133
13134
13135
13136 # test EBCDIC or ASCII
13137 case `echo X|tr X '\101'` in
13138 A) # ASCII based system
13139 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13140 lt_SP2NL='tr \040 \012'
13141 lt_NL2SP='tr \015\012 \040\040'
13142 ;;
13143 *) # EBCDIC based system
13144 lt_SP2NL='tr \100 \n'
13145 lt_NL2SP='tr \r\n \100\100'
13146 ;;
13147 esac
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13158 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13159 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 lt_cv_ld_reload_flag='-r'
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13165 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13166 reload_flag=$lt_cv_ld_reload_flag
13167 case $reload_flag in
13168 "" | " "*) ;;
13169 *) reload_flag=" $reload_flag" ;;
13170 esac
13171 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13172 case $host_os in
13173 darwin*)
13174 if test "$GCC" = yes; then
13175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13176 else
13177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13178 fi
13179 ;;
13180 esac
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190 if test -n "$ac_tool_prefix"; then
13191 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13192 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 if test -n "$OBJDUMP"; then
13199 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13211 fi
13212 done
13213 done
13214 IFS=$as_save_IFS
13215
13216 fi
13217 fi
13218 OBJDUMP=$ac_cv_prog_OBJDUMP
13219 if test -n "$OBJDUMP"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13221 $as_echo "$OBJDUMP" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226
13227
13228 fi
13229 if test -z "$ac_cv_prog_OBJDUMP"; then
13230 ac_ct_OBJDUMP=$OBJDUMP
13231 # Extract the first word of "objdump", so it can be a program name with args.
13232 set dummy objdump; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 if test -n "$ac_ct_OBJDUMP"; then
13239 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252 done
13253 done
13254 IFS=$as_save_IFS
13255
13256 fi
13257 fi
13258 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13259 if test -n "$ac_ct_OBJDUMP"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13261 $as_echo "$ac_ct_OBJDUMP" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 fi
13266
13267 if test "x$ac_ct_OBJDUMP" = x; then
13268 OBJDUMP="false"
13269 else
13270 case $cross_compiling:$ac_tool_warned in
13271 yes:)
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13274 ac_tool_warned=yes ;;
13275 esac
13276 OBJDUMP=$ac_ct_OBJDUMP
13277 fi
13278 else
13279 OBJDUMP="$ac_cv_prog_OBJDUMP"
13280 fi
13281
13282 test -z "$OBJDUMP" && OBJDUMP=objdump
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13293 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13294 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 lt_cv_file_magic_cmd='$MAGIC_CMD'
13298 lt_cv_file_magic_test_file=
13299 lt_cv_deplibs_check_method='unknown'
13300 # Need to set the preceding variable on all platforms that support
13301 # interlibrary dependencies.
13302 # 'none' -- dependencies not supported.
13303 # `unknown' -- same as none, but documents that we really don't know.
13304 # 'pass_all' -- all dependencies passed with no checks.
13305 # 'test_compile' -- check by making test program.
13306 # 'file_magic [[regex]]' -- check by looking for files in library path
13307 # which responds to the $file_magic_cmd with a given extended regex.
13308 # If you have `file' or equivalent on your system and you're not sure
13309 # whether `pass_all' will *always* work, you probably want this one.
13310
13311 case $host_os in
13312 aix[4-9]*)
13313 lt_cv_deplibs_check_method=pass_all
13314 ;;
13315
13316 beos*)
13317 lt_cv_deplibs_check_method=pass_all
13318 ;;
13319
13320 bsdi[45]*)
13321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13322 lt_cv_file_magic_cmd='/usr/bin/file -L'
13323 lt_cv_file_magic_test_file=/shlib/libc.so
13324 ;;
13325
13326 cygwin*)
13327 # func_win32_libid is a shell function defined in ltmain.sh
13328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13329 lt_cv_file_magic_cmd='func_win32_libid'
13330 ;;
13331
13332 mingw* | pw32*)
13333 # Base MSYS/MinGW do not provide the 'file' command needed by
13334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13335 # unless we find 'file', for example because we are cross-compiling.
13336 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13337 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13339 lt_cv_file_magic_cmd='func_win32_libid'
13340 else
13341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13342 lt_cv_file_magic_cmd='$OBJDUMP -f'
13343 fi
13344 ;;
13345
13346 cegcc*)
13347 # use the weaker test based on 'objdump'. See mingw*.
13348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13349 lt_cv_file_magic_cmd='$OBJDUMP -f'
13350 ;;
13351
13352 darwin* | rhapsody*)
13353 lt_cv_deplibs_check_method=pass_all
13354 ;;
13355
13356 freebsd* | dragonfly*)
13357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13358 case $host_cpu in
13359 i*86 )
13360 # Not sure whether the presence of OpenBSD here was a mistake.
13361 # Let's accept both of them until this is cleared up.
13362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13363 lt_cv_file_magic_cmd=/usr/bin/file
13364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13365 ;;
13366 esac
13367 else
13368 lt_cv_deplibs_check_method=pass_all
13369 fi
13370 ;;
13371
13372 gnu*)
13373 lt_cv_deplibs_check_method=pass_all
13374 ;;
13375
13376 haiku*)
13377 lt_cv_deplibs_check_method=pass_all
13378 ;;
13379
13380 hpux10.20* | hpux11*)
13381 lt_cv_file_magic_cmd=/usr/bin/file
13382 case $host_cpu in
13383 ia64*)
13384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13386 ;;
13387 hppa*64*)
13388 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]'
13389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13390 ;;
13391 *)
13392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13394 ;;
13395 esac
13396 ;;
13397
13398 interix[3-9]*)
13399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13401 ;;
13402
13403 irix5* | irix6* | nonstopux*)
13404 case $LD in
13405 *-32|*"-32 ") libmagic=32-bit;;
13406 *-n32|*"-n32 ") libmagic=N32;;
13407 *-64|*"-64 ") libmagic=64-bit;;
13408 *) libmagic=never-match;;
13409 esac
13410 lt_cv_deplibs_check_method=pass_all
13411 ;;
13412
13413 # This must be Linux ELF.
13414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13415 lt_cv_deplibs_check_method=pass_all
13416 ;;
13417
13418 netbsd*)
13419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13421 else
13422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13423 fi
13424 ;;
13425
13426 newos6*)
13427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13428 lt_cv_file_magic_cmd=/usr/bin/file
13429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13430 ;;
13431
13432 *nto* | *qnx*)
13433 lt_cv_deplibs_check_method=pass_all
13434 ;;
13435
13436 openbsd*)
13437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13439 else
13440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13441 fi
13442 ;;
13443
13444 osf3* | osf4* | osf5*)
13445 lt_cv_deplibs_check_method=pass_all
13446 ;;
13447
13448 rdos*)
13449 lt_cv_deplibs_check_method=pass_all
13450 ;;
13451
13452 solaris*)
13453 lt_cv_deplibs_check_method=pass_all
13454 ;;
13455
13456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13457 lt_cv_deplibs_check_method=pass_all
13458 ;;
13459
13460 sysv4 | sysv4.3*)
13461 case $host_vendor in
13462 motorola)
13463 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]'
13464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13465 ;;
13466 ncr)
13467 lt_cv_deplibs_check_method=pass_all
13468 ;;
13469 sequent)
13470 lt_cv_file_magic_cmd='/bin/file'
13471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13472 ;;
13473 sni)
13474 lt_cv_file_magic_cmd='/bin/file'
13475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13476 lt_cv_file_magic_test_file=/lib/libc.so
13477 ;;
13478 siemens)
13479 lt_cv_deplibs_check_method=pass_all
13480 ;;
13481 pc)
13482 lt_cv_deplibs_check_method=pass_all
13483 ;;
13484 esac
13485 ;;
13486
13487 tpf*)
13488 lt_cv_deplibs_check_method=pass_all
13489 ;;
13490 esac
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13494 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13495 file_magic_cmd=$lt_cv_file_magic_cmd
13496 deplibs_check_method=$lt_cv_deplibs_check_method
13497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510 if test -n "$ac_tool_prefix"; then
13511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13512 set dummy ${ac_tool_prefix}ar; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if test "${ac_cv_prog_AR+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test -n "$AR"; then
13519 ac_cv_prog_AR="$AR" # Let the user override the test.
13520 else
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13523 do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_prog_AR="${ac_tool_prefix}ar"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13531 fi
13532 done
13533 done
13534 IFS=$as_save_IFS
13535
13536 fi
13537 fi
13538 AR=$ac_cv_prog_AR
13539 if test -n "$AR"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13541 $as_echo "$AR" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545 fi
13546
13547
13548 fi
13549 if test -z "$ac_cv_prog_AR"; then
13550 ac_ct_AR=$AR
13551 # Extract the first word of "ar", so it can be a program name with args.
13552 set dummy ar; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$ac_ct_AR"; then
13559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13568 ac_cv_prog_ac_ct_AR="ar"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13571 fi
13572 done
13573 done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13579 if test -n "$ac_ct_AR"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13581 $as_echo "$ac_ct_AR" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 fi
13586
13587 if test "x$ac_ct_AR" = x; then
13588 AR="false"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 AR=$ac_ct_AR
13597 fi
13598 else
13599 AR="$ac_cv_prog_AR"
13600 fi
13601
13602 test -z "$AR" && AR=ar
13603 test -z "$AR_FLAGS" && AR_FLAGS=cru
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}strip; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if test "${ac_cv_prog_STRIP+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 if test -n "$STRIP"; then
13624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 STRIP=$ac_cv_prog_STRIP
13644 if test -n "$STRIP"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13646 $as_echo "$STRIP" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652
13653 fi
13654 if test -z "$ac_cv_prog_STRIP"; then
13655 ac_ct_STRIP=$STRIP
13656 # Extract the first word of "strip", so it can be a program name with args.
13657 set dummy strip; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 if test -n "$ac_ct_STRIP"; then
13664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13668 do
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673 ac_cv_prog_ac_ct_STRIP="strip"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13676 fi
13677 done
13678 done
13679 IFS=$as_save_IFS
13680
13681 fi
13682 fi
13683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13684 if test -n "$ac_ct_STRIP"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13686 $as_echo "$ac_ct_STRIP" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13690 fi
13691
13692 if test "x$ac_ct_STRIP" = x; then
13693 STRIP=":"
13694 else
13695 case $cross_compiling:$ac_tool_warned in
13696 yes:)
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13699 ac_tool_warned=yes ;;
13700 esac
13701 STRIP=$ac_ct_STRIP
13702 fi
13703 else
13704 STRIP="$ac_cv_prog_STRIP"
13705 fi
13706
13707 test -z "$STRIP" && STRIP=:
13708
13709
13710
13711
13712
13713
13714 if test -n "$ac_tool_prefix"; then
13715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13716 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$RANLIB"; then
13723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 RANLIB=$ac_cv_prog_RANLIB
13743 if test -n "$RANLIB"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13745 $as_echo "$RANLIB" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 if test -z "$ac_cv_prog_RANLIB"; then
13754 ac_ct_RANLIB=$RANLIB
13755 # Extract the first word of "ranlib", so it can be a program name with args.
13756 set dummy ranlib; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$ac_ct_RANLIB"; then
13763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13767 do
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772 ac_cv_prog_ac_ct_RANLIB="ranlib"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13775 fi
13776 done
13777 done
13778 IFS=$as_save_IFS
13779
13780 fi
13781 fi
13782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13783 if test -n "$ac_ct_RANLIB"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13785 $as_echo "$ac_ct_RANLIB" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789 fi
13790
13791 if test "x$ac_ct_RANLIB" = x; then
13792 RANLIB=":"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795 yes:)
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798 ac_tool_warned=yes ;;
13799 esac
13800 RANLIB=$ac_ct_RANLIB
13801 fi
13802 else
13803 RANLIB="$ac_cv_prog_RANLIB"
13804 fi
13805
13806 test -z "$RANLIB" && RANLIB=:
13807
13808
13809
13810
13811
13812
13813 # Determine commands to create old-style static archives.
13814 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13815 old_postinstall_cmds='chmod 644 $oldlib'
13816 old_postuninstall_cmds=
13817
13818 if test -n "$RANLIB"; then
13819 case $host_os in
13820 openbsd*)
13821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13822 ;;
13823 *)
13824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13825 ;;
13826 esac
13827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13828 fi
13829
13830 case $host_os in
13831 darwin*)
13832 lock_old_archive_extraction=yes ;;
13833 *)
13834 lock_old_archive_extraction=no ;;
13835 esac
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875 # If no C compiler was specified, use CC.
13876 LTCC=${LTCC-"$CC"}
13877
13878 # If no C compiler flags were specified, use CFLAGS.
13879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13880
13881 # Allow CC to be a program name with arguments.
13882 compiler=$CC
13883
13884
13885 # Check for command to grab the raw symbol name followed by C symbol from nm.
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13887 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891
13892 # These are sane defaults that work on at least a few old systems.
13893 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13894
13895 # Character class describing NM global symbol codes.
13896 symcode='[BCDEGRST]'
13897
13898 # Regexp to match symbols that can be accessed directly from C.
13899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13900
13901 # Define system-specific variables.
13902 case $host_os in
13903 aix*)
13904 symcode='[BCDT]'
13905 ;;
13906 cygwin* | mingw* | pw32* | cegcc*)
13907 symcode='[ABCDGISTW]'
13908 ;;
13909 hpux*)
13910 if test "$host_cpu" = ia64; then
13911 symcode='[ABCDEGRST]'
13912 fi
13913 ;;
13914 irix* | nonstopux*)
13915 symcode='[BCDEGRST]'
13916 ;;
13917 osf*)
13918 symcode='[BCDEGQRST]'
13919 ;;
13920 solaris*)
13921 symcode='[BDRT]'
13922 ;;
13923 sco3.2v5*)
13924 symcode='[DT]'
13925 ;;
13926 sysv4.2uw2*)
13927 symcode='[DT]'
13928 ;;
13929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13930 symcode='[ABDT]'
13931 ;;
13932 sysv4)
13933 symcode='[DFNSTU]'
13934 ;;
13935 esac
13936
13937 # If we're using GNU nm, then use its standard symbol codes.
13938 case `$NM -V 2>&1` in
13939 *GNU* | *'with BFD'*)
13940 symcode='[ABCDGIRSTW]' ;;
13941 esac
13942
13943 # Transform an extracted symbol line into a proper C declaration.
13944 # Some systems (esp. on ia64) link data and code symbols differently,
13945 # so use this general approach.
13946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13947
13948 # Transform an extracted symbol line into symbol name and symbol address
13949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13950 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'"
13951
13952 # Handle CRLF in mingw tool chain
13953 opt_cr=
13954 case $build_os in
13955 mingw*)
13956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13957 ;;
13958 esac
13959
13960 # Try without a prefix underscore, then with it.
13961 for ac_symprfx in "" "_"; do
13962
13963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13964 symxfrm="\\1 $ac_symprfx\\2 \\2"
13965
13966 # Write the raw and C identifiers.
13967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13968 # Fake it for dumpbin and say T for any non-static function
13969 # and D for any global variable.
13970 # Also find C++ and __fastcall symbols from MSVC++,
13971 # which start with @ or ?.
13972 lt_cv_sys_global_symbol_pipe="$AWK '"\
13973 " {last_section=section; section=\$ 3};"\
13974 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13975 " \$ 0!~/External *\|/{next};"\
13976 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13977 " {if(hide[section]) next};"\
13978 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13979 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13980 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13981 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13982 " ' prfx=^$ac_symprfx"
13983 else
13984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13985 fi
13986
13987 # Check to see that the pipe works correctly.
13988 pipe_works=no
13989
13990 rm -f conftest*
13991 cat > conftest.$ac_ext <<_LT_EOF
13992 #ifdef __cplusplus
13993 extern "C" {
13994 #endif
13995 char nm_test_var;
13996 void nm_test_func(void);
13997 void nm_test_func(void){}
13998 #ifdef __cplusplus
13999 }
14000 #endif
14001 int main(){nm_test_var='a';nm_test_func();return(0);}
14002 _LT_EOF
14003
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005 (eval $ac_compile) 2>&5
14006 ac_status=$?
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; then
14009 # Now try to grab the symbols.
14010 nlist=conftest.nm
14011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14012 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14013 ac_status=$?
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; } && test -s "$nlist"; then
14016 # Try sorting and uniquifying the output.
14017 if sort "$nlist" | uniq > "$nlist"T; then
14018 mv -f "$nlist"T "$nlist"
14019 else
14020 rm -f "$nlist"T
14021 fi
14022
14023 # Make sure that we snagged all the symbols we need.
14024 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14025 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14026 cat <<_LT_EOF > conftest.$ac_ext
14027 #ifdef __cplusplus
14028 extern "C" {
14029 #endif
14030
14031 _LT_EOF
14032 # Now generate the symbol file.
14033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14034
14035 cat <<_LT_EOF >> conftest.$ac_ext
14036
14037 /* The mapping between symbol names and symbols. */
14038 const struct {
14039 const char *name;
14040 void *address;
14041 }
14042 lt__PROGRAM__LTX_preloaded_symbols[] =
14043 {
14044 { "@PROGRAM@", (void *) 0 },
14045 _LT_EOF
14046 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14047 cat <<\_LT_EOF >> conftest.$ac_ext
14048 {0, (void *) 0}
14049 };
14050
14051 /* This works around a problem in FreeBSD linker */
14052 #ifdef FREEBSD_WORKAROUND
14053 static const void *lt_preloaded_setup() {
14054 return lt__PROGRAM__LTX_preloaded_symbols;
14055 }
14056 #endif
14057
14058 #ifdef __cplusplus
14059 }
14060 #endif
14061 _LT_EOF
14062 # Now try linking the two files.
14063 mv conftest.$ac_objext conftstm.$ac_objext
14064 lt_save_LIBS="$LIBS"
14065 lt_save_CFLAGS="$CFLAGS"
14066 LIBS="conftstm.$ac_objext"
14067 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14069 (eval $ac_link) 2>&5
14070 ac_status=$?
14071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14072 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14073 pipe_works=yes
14074 fi
14075 LIBS="$lt_save_LIBS"
14076 CFLAGS="$lt_save_CFLAGS"
14077 else
14078 echo "cannot find nm_test_func in $nlist" >&5
14079 fi
14080 else
14081 echo "cannot find nm_test_var in $nlist" >&5
14082 fi
14083 else
14084 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14085 fi
14086 else
14087 echo "$progname: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 fi
14090 rm -rf conftest* conftst*
14091
14092 # Do not use the global_symbol_pipe unless it works.
14093 if test "$pipe_works" = yes; then
14094 break
14095 else
14096 lt_cv_sys_global_symbol_pipe=
14097 fi
14098 done
14099
14100 fi
14101
14102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14103 lt_cv_sys_global_symbol_to_cdecl=
14104 fi
14105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14107 $as_echo "failed" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14110 $as_echo "ok" >&6; }
14111 fi
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134 # Check whether --enable-libtool-lock was given.
14135 if test "${enable_libtool_lock+set}" = set; then :
14136 enableval=$enable_libtool_lock;
14137 fi
14138
14139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14140
14141 # Some flags need to be propagated to the compiler or linker for good
14142 # libtool support.
14143 case $host in
14144 ia64-*-hpux*)
14145 # Find out which ABI we are using.
14146 echo 'int i;' > conftest.$ac_ext
14147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; }; then
14152 case `/usr/bin/file conftest.$ac_objext` in
14153 *ELF-32*)
14154 HPUX_IA64_MODE="32"
14155 ;;
14156 *ELF-64*)
14157 HPUX_IA64_MODE="64"
14158 ;;
14159 esac
14160 fi
14161 rm -rf conftest*
14162 ;;
14163 *-*-irix6*)
14164 # Find out which ABI we are using.
14165 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167 (eval $ac_compile) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 if test "$lt_cv_prog_gnu_ld" = yes; then
14172 case `/usr/bin/file conftest.$ac_objext` in
14173 *32-bit*)
14174 LD="${LD-ld} -melf32bsmip"
14175 ;;
14176 *N32*)
14177 LD="${LD-ld} -melf32bmipn32"
14178 ;;
14179 *64-bit*)
14180 LD="${LD-ld} -melf64bmip"
14181 ;;
14182 esac
14183 else
14184 case `/usr/bin/file conftest.$ac_objext` in
14185 *32-bit*)
14186 LD="${LD-ld} -32"
14187 ;;
14188 *N32*)
14189 LD="${LD-ld} -n32"
14190 ;;
14191 *64-bit*)
14192 LD="${LD-ld} -64"
14193 ;;
14194 esac
14195 fi
14196 fi
14197 rm -rf conftest*
14198 ;;
14199
14200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14202 # Find out which ABI we are using.
14203 echo 'int i;' > conftest.$ac_ext
14204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14205 (eval $ac_compile) 2>&5
14206 ac_status=$?
14207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208 test $ac_status = 0; }; then
14209 case `/usr/bin/file conftest.o` in
14210 *32-bit*)
14211 case $host in
14212 x86_64-*kfreebsd*-gnu)
14213 LD="${LD-ld} -m elf_i386_fbsd"
14214 ;;
14215 x86_64-*linux*)
14216 case `/usr/bin/file conftest.o` in
14217 *x86-64*)
14218 LD="${LD-ld} -m elf32_x86_64"
14219 ;;
14220 *)
14221 LD="${LD-ld} -m elf_i386"
14222 ;;
14223 esac
14224 ;;
14225 powerpc64le-*linux*)
14226 LD="${LD-ld} -m elf32lppclinux"
14227 ;;
14228 powerpc64-*linux*)
14229 LD="${LD-ld} -m elf32ppclinux"
14230 ;;
14231 s390x-*linux*)
14232 LD="${LD-ld} -m elf_s390"
14233 ;;
14234 sparc64-*linux*)
14235 LD="${LD-ld} -m elf32_sparc"
14236 ;;
14237 esac
14238 ;;
14239 *64-bit*)
14240 case $host in
14241 x86_64-*kfreebsd*-gnu)
14242 LD="${LD-ld} -m elf_x86_64_fbsd"
14243 ;;
14244 x86_64-*linux*)
14245 LD="${LD-ld} -m elf_x86_64"
14246 ;;
14247 powerpcle-*linux*)
14248 LD="${LD-ld} -m elf64lppc"
14249 ;;
14250 powerpc-*linux*)
14251 LD="${LD-ld} -m elf64ppc"
14252 ;;
14253 s390*-*linux*|s390*-*tpf*)
14254 LD="${LD-ld} -m elf64_s390"
14255 ;;
14256 sparc*-*linux*)
14257 LD="${LD-ld} -m elf64_sparc"
14258 ;;
14259 esac
14260 ;;
14261 esac
14262 fi
14263 rm -rf conftest*
14264 ;;
14265
14266 *-*-sco3.2v5*)
14267 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14268 SAVE_CFLAGS="$CFLAGS"
14269 CFLAGS="$CFLAGS -belf"
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14271 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14272 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 ac_ext=c
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14280
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283
14284 int
14285 main ()
14286 {
14287
14288 ;
14289 return 0;
14290 }
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 lt_cv_cc_needs_belf=yes
14294 else
14295 lt_cv_cc_needs_belf=no
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305 fi
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14307 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14308 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14309 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14310 CFLAGS="$SAVE_CFLAGS"
14311 fi
14312 ;;
14313 sparc*-*solaris*)
14314 # Find out which ABI we are using.
14315 echo 'int i;' > conftest.$ac_ext
14316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14317 (eval $ac_compile) 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320 test $ac_status = 0; }; then
14321 case `/usr/bin/file conftest.o` in
14322 *64-bit*)
14323 case $lt_cv_prog_gnu_ld in
14324 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14325 *)
14326 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14327 LD="${LD-ld} -64"
14328 fi
14329 ;;
14330 esac
14331 ;;
14332 esac
14333 fi
14334 rm -rf conftest*
14335 ;;
14336 esac
14337
14338 need_locks="$enable_libtool_lock"
14339
14340
14341 case $host_os in
14342 rhapsody* | darwin*)
14343 if test -n "$ac_tool_prefix"; then
14344 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14345 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 if test -n "$DSYMUTIL"; then
14352 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14356 do
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365 done
14366 done
14367 IFS=$as_save_IFS
14368
14369 fi
14370 fi
14371 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14372 if test -n "$DSYMUTIL"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14374 $as_echo "$DSYMUTIL" >&6; }
14375 else
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14378 fi
14379
14380
14381 fi
14382 if test -z "$ac_cv_prog_DSYMUTIL"; then
14383 ac_ct_DSYMUTIL=$DSYMUTIL
14384 # Extract the first word of "dsymutil", so it can be a program name with args.
14385 set dummy dsymutil; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$ac_ct_DSYMUTIL"; then
14392 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14412 if test -n "$ac_ct_DSYMUTIL"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14414 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420 if test "x$ac_ct_DSYMUTIL" = x; then
14421 DSYMUTIL=":"
14422 else
14423 case $cross_compiling:$ac_tool_warned in
14424 yes:)
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14427 ac_tool_warned=yes ;;
14428 esac
14429 DSYMUTIL=$ac_ct_DSYMUTIL
14430 fi
14431 else
14432 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14433 fi
14434
14435 if test -n "$ac_tool_prefix"; then
14436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14437 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 if test -n "$NMEDIT"; then
14444 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14448 do
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14453 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14456 fi
14457 done
14458 done
14459 IFS=$as_save_IFS
14460
14461 fi
14462 fi
14463 NMEDIT=$ac_cv_prog_NMEDIT
14464 if test -n "$NMEDIT"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14466 $as_echo "$NMEDIT" >&6; }
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471
14472
14473 fi
14474 if test -z "$ac_cv_prog_NMEDIT"; then
14475 ac_ct_NMEDIT=$NMEDIT
14476 # Extract the first word of "nmedit", so it can be a program name with args.
14477 set dummy nmedit; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$ac_ct_NMEDIT"; then
14484 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14488 do
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14496 fi
14497 done
14498 done
14499 IFS=$as_save_IFS
14500
14501 fi
14502 fi
14503 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14504 if test -n "$ac_ct_NMEDIT"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14506 $as_echo "$ac_ct_NMEDIT" >&6; }
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14510 fi
14511
14512 if test "x$ac_ct_NMEDIT" = x; then
14513 NMEDIT=":"
14514 else
14515 case $cross_compiling:$ac_tool_warned in
14516 yes:)
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14519 ac_tool_warned=yes ;;
14520 esac
14521 NMEDIT=$ac_ct_NMEDIT
14522 fi
14523 else
14524 NMEDIT="$ac_cv_prog_NMEDIT"
14525 fi
14526
14527 if test -n "$ac_tool_prefix"; then
14528 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14529 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if test "${ac_cv_prog_LIPO+set}" = set; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test -n "$LIPO"; then
14536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14545 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14548 fi
14549 done
14550 done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 LIPO=$ac_cv_prog_LIPO
14556 if test -n "$LIPO"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14558 $as_echo "$LIPO" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563
14564
14565 fi
14566 if test -z "$ac_cv_prog_LIPO"; then
14567 ac_ct_LIPO=$LIPO
14568 # Extract the first word of "lipo", so it can be a program name with args.
14569 set dummy lipo; ac_word=$2
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14571 $as_echo_n "checking for $ac_word... " >&6; }
14572 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 if test -n "$ac_ct_LIPO"; then
14576 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14577 else
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14580 do
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_ac_ct_LIPO="lipo"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14588 fi
14589 done
14590 done
14591 IFS=$as_save_IFS
14592
14593 fi
14594 fi
14595 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14596 if test -n "$ac_ct_LIPO"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14598 $as_echo "$ac_ct_LIPO" >&6; }
14599 else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 $as_echo "no" >&6; }
14602 fi
14603
14604 if test "x$ac_ct_LIPO" = x; then
14605 LIPO=":"
14606 else
14607 case $cross_compiling:$ac_tool_warned in
14608 yes:)
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14611 ac_tool_warned=yes ;;
14612 esac
14613 LIPO=$ac_ct_LIPO
14614 fi
14615 else
14616 LIPO="$ac_cv_prog_LIPO"
14617 fi
14618
14619 if test -n "$ac_tool_prefix"; then
14620 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14621 set dummy ${ac_tool_prefix}otool; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$OTOOL"; then
14628 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14632 do
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14640 fi
14641 done
14642 done
14643 IFS=$as_save_IFS
14644
14645 fi
14646 fi
14647 OTOOL=$ac_cv_prog_OTOOL
14648 if test -n "$OTOOL"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14650 $as_echo "$OTOOL" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655
14656
14657 fi
14658 if test -z "$ac_cv_prog_OTOOL"; then
14659 ac_ct_OTOOL=$OTOOL
14660 # Extract the first word of "otool", so it can be a program name with args.
14661 set dummy otool; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$ac_ct_OTOOL"; then
14668 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14672 do
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14677 ac_cv_prog_ac_ct_OTOOL="otool"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14680 fi
14681 done
14682 done
14683 IFS=$as_save_IFS
14684
14685 fi
14686 fi
14687 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14688 if test -n "$ac_ct_OTOOL"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14690 $as_echo "$ac_ct_OTOOL" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14694 fi
14695
14696 if test "x$ac_ct_OTOOL" = x; then
14697 OTOOL=":"
14698 else
14699 case $cross_compiling:$ac_tool_warned in
14700 yes:)
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14703 ac_tool_warned=yes ;;
14704 esac
14705 OTOOL=$ac_ct_OTOOL
14706 fi
14707 else
14708 OTOOL="$ac_cv_prog_OTOOL"
14709 fi
14710
14711 if test -n "$ac_tool_prefix"; then
14712 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14713 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715 $as_echo_n "checking for $ac_word... " >&6; }
14716 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if test -n "$OTOOL64"; then
14720 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14721 else
14722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723 for as_dir in $PATH
14724 do
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14729 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733 done
14734 done
14735 IFS=$as_save_IFS
14736
14737 fi
14738 fi
14739 OTOOL64=$ac_cv_prog_OTOOL64
14740 if test -n "$OTOOL64"; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14742 $as_echo "$OTOOL64" >&6; }
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 fi
14747
14748
14749 fi
14750 if test -z "$ac_cv_prog_OTOOL64"; then
14751 ac_ct_OTOOL64=$OTOOL64
14752 # Extract the first word of "otool64", so it can be a program name with args.
14753 set dummy otool64; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if test -n "$ac_ct_OTOOL64"; then
14760 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14761 else
14762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763 for as_dir in $PATH
14764 do
14765 IFS=$as_save_IFS
14766 test -z "$as_dir" && as_dir=.
14767 for ac_exec_ext in '' $ac_executable_extensions; do
14768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14769 ac_cv_prog_ac_ct_OTOOL64="otool64"
14770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14771 break 2
14772 fi
14773 done
14774 done
14775 IFS=$as_save_IFS
14776
14777 fi
14778 fi
14779 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14780 if test -n "$ac_ct_OTOOL64"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14782 $as_echo "$ac_ct_OTOOL64" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14786 fi
14787
14788 if test "x$ac_ct_OTOOL64" = x; then
14789 OTOOL64=":"
14790 else
14791 case $cross_compiling:$ac_tool_warned in
14792 yes:)
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14795 ac_tool_warned=yes ;;
14796 esac
14797 OTOOL64=$ac_ct_OTOOL64
14798 fi
14799 else
14800 OTOOL64="$ac_cv_prog_OTOOL64"
14801 fi
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14830 $as_echo_n "checking for -single_module linker flag... " >&6; }
14831 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 lt_cv_apple_cc_single_mod=no
14835 if test -z "${LT_MULTI_MODULE}"; then
14836 # By default we will add the -single_module flag. You can override
14837 # by either setting the environment variable LT_MULTI_MODULE
14838 # non-empty at configure time, or by adding -multi_module to the
14839 # link flags.
14840 rm -rf libconftest.dylib*
14841 echo "int foo(void){return 1;}" > conftest.c
14842 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14843 -dynamiclib -Wl,-single_module conftest.c" >&5
14844 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14845 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14846 _lt_result=$?
14847 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14848 lt_cv_apple_cc_single_mod=yes
14849 else
14850 cat conftest.err >&5
14851 fi
14852 rm -rf libconftest.dylib*
14853 rm -f conftest.*
14854 fi
14855 fi
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14857 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14859 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14860 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 lt_cv_ld_exported_symbols_list=no
14864 save_LDFLAGS=$LDFLAGS
14865 echo "_main" > conftest.sym
14866 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869
14870 int
14871 main ()
14872 {
14873
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 lt_cv_ld_exported_symbols_list=yes
14880 else
14881 lt_cv_ld_exported_symbols_list=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LDFLAGS="$save_LDFLAGS"
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14889 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14891 $as_echo_n "checking for -force_load linker flag... " >&6; }
14892 if test "${lt_cv_ld_force_load+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 lt_cv_ld_force_load=no
14896 cat > conftest.c << _LT_EOF
14897 int forced_loaded() { return 2;}
14898 _LT_EOF
14899 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14900 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14901 echo "$AR cru libconftest.a conftest.o" >&5
14902 $AR cru libconftest.a conftest.o 2>&5
14903 cat > conftest.c << _LT_EOF
14904 int main() { return 0;}
14905 _LT_EOF
14906 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14907 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14908 _lt_result=$?
14909 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14910 lt_cv_ld_force_load=yes
14911 else
14912 cat conftest.err >&5
14913 fi
14914 rm -f conftest.err libconftest.a conftest conftest.c
14915 rm -rf conftest.dSYM
14916
14917 fi
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14919 $as_echo "$lt_cv_ld_force_load" >&6; }
14920 case $host_os in
14921 rhapsody* | darwin1.[012])
14922 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14923 darwin1.*)
14924 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14925 darwin*) # darwin 5.x on
14926 # if running on 10.5 or later, the deployment target defaults
14927 # to the OS version, if on x86, and 10.4, the deployment
14928 # target defaults to 10.4. Don't you love it?
14929 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14930 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14931 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14932 10.[012][,.]*)
14933 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14934 10.*)
14935 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14936 esac
14937 ;;
14938 esac
14939 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14940 _lt_dar_single_mod='$single_module'
14941 fi
14942 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14943 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14944 else
14945 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14946 fi
14947 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14948 _lt_dsymutil='~$DSYMUTIL $lib || :'
14949 else
14950 _lt_dsymutil=
14951 fi
14952 ;;
14953 esac
14954
14955
14956 for ac_header in dlfcn.h
14957 do :
14958 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14959 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_DLFCN_H 1
14962 _ACEOF
14963
14964 fi
14965 done
14966
14967
14968
14969
14970
14971 # Set options
14972
14973
14974
14975 enable_dlopen=no
14976
14977
14978 enable_win32_dll=no
14979
14980
14981 # Check whether --enable-shared was given.
14982 if test "${enable_shared+set}" = set; then :
14983 enableval=$enable_shared; p=${PACKAGE-default}
14984 case $enableval in
14985 yes) enable_shared=yes ;;
14986 no) enable_shared=no ;;
14987 *)
14988 enable_shared=no
14989 # Look at the argument we got. We use all the common list separators.
14990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14991 for pkg in $enableval; do
14992 IFS="$lt_save_ifs"
14993 if test "X$pkg" = "X$p"; then
14994 enable_shared=yes
14995 fi
14996 done
14997 IFS="$lt_save_ifs"
14998 ;;
14999 esac
15000 else
15001 enable_shared=yes
15002 fi
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012 # Check whether --enable-static was given.
15013 if test "${enable_static+set}" = set; then :
15014 enableval=$enable_static; p=${PACKAGE-default}
15015 case $enableval in
15016 yes) enable_static=yes ;;
15017 no) enable_static=no ;;
15018 *)
15019 enable_static=no
15020 # Look at the argument we got. We use all the common list separators.
15021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15022 for pkg in $enableval; do
15023 IFS="$lt_save_ifs"
15024 if test "X$pkg" = "X$p"; then
15025 enable_static=yes
15026 fi
15027 done
15028 IFS="$lt_save_ifs"
15029 ;;
15030 esac
15031 else
15032 enable_static=yes
15033 fi
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044 # Check whether --with-pic was given.
15045 if test "${with_pic+set}" = set; then :
15046 withval=$with_pic; pic_mode="$withval"
15047 else
15048 pic_mode=default
15049 fi
15050
15051
15052 test -z "$pic_mode" && pic_mode=default
15053
15054
15055
15056
15057
15058
15059
15060 # Check whether --enable-fast-install was given.
15061 if test "${enable_fast_install+set}" = set; then :
15062 enableval=$enable_fast_install; p=${PACKAGE-default}
15063 case $enableval in
15064 yes) enable_fast_install=yes ;;
15065 no) enable_fast_install=no ;;
15066 *)
15067 enable_fast_install=no
15068 # Look at the argument we got. We use all the common list separators.
15069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15070 for pkg in $enableval; do
15071 IFS="$lt_save_ifs"
15072 if test "X$pkg" = "X$p"; then
15073 enable_fast_install=yes
15074 fi
15075 done
15076 IFS="$lt_save_ifs"
15077 ;;
15078 esac
15079 else
15080 enable_fast_install=yes
15081 fi
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093 # This can be used to rebuild libtool when needed
15094 LIBTOOL_DEPS="$ltmain"
15095
15096 # Always use our own libtool.
15097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124 test -z "$LN_S" && LN_S="ln -s"
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139 if test -n "${ZSH_VERSION+set}" ; then
15140 setopt NO_GLOB_SUBST
15141 fi
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15144 $as_echo_n "checking for objdir... " >&6; }
15145 if test "${lt_cv_objdir+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 rm -f .libs 2>/dev/null
15149 mkdir .libs 2>/dev/null
15150 if test -d .libs; then
15151 lt_cv_objdir=.libs
15152 else
15153 # MS-DOS does not allow filenames that begin with a dot.
15154 lt_cv_objdir=_libs
15155 fi
15156 rmdir .libs 2>/dev/null
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15159 $as_echo "$lt_cv_objdir" >&6; }
15160 objdir=$lt_cv_objdir
15161
15162
15163
15164
15165
15166 cat >>confdefs.h <<_ACEOF
15167 #define LT_OBJDIR "$lt_cv_objdir/"
15168 _ACEOF
15169
15170
15171
15172
15173 case $host_os in
15174 aix3*)
15175 # AIX sometimes has problems with the GCC collect2 program. For some
15176 # reason, if we set the COLLECT_NAMES environment variable, the problems
15177 # vanish in a puff of smoke.
15178 if test "X${COLLECT_NAMES+set}" != Xset; then
15179 COLLECT_NAMES=
15180 export COLLECT_NAMES
15181 fi
15182 ;;
15183 esac
15184
15185 # Global variables:
15186 ofile=libtool
15187 can_build_shared=yes
15188
15189 # All known linkers require a `.a' archive for static linking (except MSVC,
15190 # which needs '.lib').
15191 libext=a
15192
15193 with_gnu_ld="$lt_cv_prog_gnu_ld"
15194
15195 old_CC="$CC"
15196 old_CFLAGS="$CFLAGS"
15197
15198 # Set sane defaults for various variables
15199 test -z "$CC" && CC=cc
15200 test -z "$LTCC" && LTCC=$CC
15201 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15202 test -z "$LD" && LD=ld
15203 test -z "$ac_objext" && ac_objext=o
15204
15205 for cc_temp in $compiler""; do
15206 case $cc_temp in
15207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15209 \-*) ;;
15210 *) break;;
15211 esac
15212 done
15213 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15214
15215
15216 # Only perform the check for file, if the check method requires it
15217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15218 case $deplibs_check_method in
15219 file_magic*)
15220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 case $MAGIC_CMD in
15227 [\\/*] | ?:[\\/]*)
15228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15229 ;;
15230 *)
15231 lt_save_MAGIC_CMD="$MAGIC_CMD"
15232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15234 for ac_dir in $ac_dummy; do
15235 IFS="$lt_save_ifs"
15236 test -z "$ac_dir" && ac_dir=.
15237 if test -f $ac_dir/${ac_tool_prefix}file; then
15238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15239 if test -n "$file_magic_test_file"; then
15240 case $deplibs_check_method in
15241 "file_magic "*)
15242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15245 $EGREP "$file_magic_regex" > /dev/null; then
15246 :
15247 else
15248 cat <<_LT_EOF 1>&2
15249
15250 *** Warning: the command libtool uses to detect shared libraries,
15251 *** $file_magic_cmd, produces output that libtool cannot recognize.
15252 *** The result is that libtool may fail to recognize shared libraries
15253 *** as such. This will affect the creation of libtool libraries that
15254 *** depend on shared libraries, but programs linked with such libtool
15255 *** libraries will work regardless of this problem. Nevertheless, you
15256 *** may want to report the problem to your system manager and/or to
15257 *** bug-libtool@gnu.org
15258
15259 _LT_EOF
15260 fi ;;
15261 esac
15262 fi
15263 break
15264 fi
15265 done
15266 IFS="$lt_save_ifs"
15267 MAGIC_CMD="$lt_save_MAGIC_CMD"
15268 ;;
15269 esac
15270 fi
15271
15272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15273 if test -n "$MAGIC_CMD"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15275 $as_echo "$MAGIC_CMD" >&6; }
15276 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15279 fi
15280
15281
15282
15283
15284
15285 if test -z "$lt_cv_path_MAGIC_CMD"; then
15286 if test -n "$ac_tool_prefix"; then
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15288 $as_echo_n "checking for file... " >&6; }
15289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 case $MAGIC_CMD in
15293 [\\/*] | ?:[\\/]*)
15294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15295 ;;
15296 *)
15297 lt_save_MAGIC_CMD="$MAGIC_CMD"
15298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15300 for ac_dir in $ac_dummy; do
15301 IFS="$lt_save_ifs"
15302 test -z "$ac_dir" && ac_dir=.
15303 if test -f $ac_dir/file; then
15304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15305 if test -n "$file_magic_test_file"; then
15306 case $deplibs_check_method in
15307 "file_magic "*)
15308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15311 $EGREP "$file_magic_regex" > /dev/null; then
15312 :
15313 else
15314 cat <<_LT_EOF 1>&2
15315
15316 *** Warning: the command libtool uses to detect shared libraries,
15317 *** $file_magic_cmd, produces output that libtool cannot recognize.
15318 *** The result is that libtool may fail to recognize shared libraries
15319 *** as such. This will affect the creation of libtool libraries that
15320 *** depend on shared libraries, but programs linked with such libtool
15321 *** libraries will work regardless of this problem. Nevertheless, you
15322 *** may want to report the problem to your system manager and/or to
15323 *** bug-libtool@gnu.org
15324
15325 _LT_EOF
15326 fi ;;
15327 esac
15328 fi
15329 break
15330 fi
15331 done
15332 IFS="$lt_save_ifs"
15333 MAGIC_CMD="$lt_save_MAGIC_CMD"
15334 ;;
15335 esac
15336 fi
15337
15338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15339 if test -n "$MAGIC_CMD"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15341 $as_echo "$MAGIC_CMD" >&6; }
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15345 fi
15346
15347
15348 else
15349 MAGIC_CMD=:
15350 fi
15351 fi
15352
15353 fi
15354 ;;
15355 esac
15356
15357 # Use C for the default configuration in the libtool script
15358
15359 lt_save_CC="$CC"
15360 ac_ext=c
15361 ac_cpp='$CPP $CPPFLAGS'
15362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15365
15366
15367 # Source file extension for C test sources.
15368 ac_ext=c
15369
15370 # Object file extension for compiled C test sources.
15371 objext=o
15372 objext=$objext
15373
15374 # Code to be used in simple compile tests
15375 lt_simple_compile_test_code="int some_variable = 0;"
15376
15377 # Code to be used in simple link tests
15378 lt_simple_link_test_code='int main(){return(0);}'
15379
15380
15381
15382
15383
15384
15385
15386 # If no C compiler was specified, use CC.
15387 LTCC=${LTCC-"$CC"}
15388
15389 # If no C compiler flags were specified, use CFLAGS.
15390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15391
15392 # Allow CC to be a program name with arguments.
15393 compiler=$CC
15394
15395 # Save the default compiler, since it gets overwritten when the other
15396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15397 compiler_DEFAULT=$CC
15398
15399 # save warnings/boilerplate of simple test code
15400 ac_outfile=conftest.$ac_objext
15401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15403 _lt_compiler_boilerplate=`cat conftest.err`
15404 $RM conftest*
15405
15406 ac_outfile=conftest.$ac_objext
15407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15409 _lt_linker_boilerplate=`cat conftest.err`
15410 $RM -r conftest*
15411
15412
15413 ## CAVEAT EMPTOR:
15414 ## There is no encapsulation within the following macros, do not change
15415 ## the running order or otherwise move them around unless you know exactly
15416 ## what you are doing...
15417 if test -n "$compiler"; then
15418
15419 lt_prog_compiler_no_builtin_flag=
15420
15421 if test "$GCC" = yes; then
15422 case $cc_basename in
15423 nvcc*)
15424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15425 *)
15426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15427 esac
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15432 $as_echo_n "(cached) " >&6
15433 else
15434 lt_cv_prog_compiler_rtti_exceptions=no
15435 ac_outfile=conftest.$ac_objext
15436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15437 lt_compiler_flag="-fno-rtti -fno-exceptions"
15438 # Insert the option either (1) after the last *FLAGS variable, or
15439 # (2) before a word containing "conftest.", or (3) at the end.
15440 # Note that $ac_compile itself does not contain backslashes and begins
15441 # with a dollar sign (not a hyphen), so the echo should work correctly.
15442 # The option is referenced via a variable to avoid confusing sed.
15443 lt_compile=`echo "$ac_compile" | $SED \
15444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15446 -e 's:$: $lt_compiler_flag:'`
15447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15448 (eval "$lt_compile" 2>conftest.err)
15449 ac_status=$?
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 if (exit $ac_status) && test -s "$ac_outfile"; then
15453 # The compiler can only warn and ignore the option if not recognized
15454 # So say no if there are warnings other than the usual output.
15455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15458 lt_cv_prog_compiler_rtti_exceptions=yes
15459 fi
15460 fi
15461 $RM conftest*
15462
15463 fi
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15466
15467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15469 else
15470 :
15471 fi
15472
15473 fi
15474
15475
15476
15477
15478
15479
15480 lt_prog_compiler_wl=
15481 lt_prog_compiler_pic=
15482 lt_prog_compiler_static=
15483
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15485 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15486
15487 if test "$GCC" = yes; then
15488 lt_prog_compiler_wl='-Wl,'
15489 lt_prog_compiler_static='-static'
15490
15491 case $host_os in
15492 aix*)
15493 # All AIX code is PIC.
15494 if test "$host_cpu" = ia64; then
15495 # AIX 5 now supports IA64 processor
15496 lt_prog_compiler_static='-Bstatic'
15497 fi
15498 lt_prog_compiler_pic='-fPIC'
15499 ;;
15500
15501 amigaos*)
15502 case $host_cpu in
15503 powerpc)
15504 # see comment about AmigaOS4 .so support
15505 lt_prog_compiler_pic='-fPIC'
15506 ;;
15507 m68k)
15508 # FIXME: we need at least 68020 code to build shared libraries, but
15509 # adding the `-m68020' flag to GCC prevents building anything better,
15510 # like `-m68040'.
15511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15512 ;;
15513 esac
15514 ;;
15515
15516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15517 # PIC is the default for these OSes.
15518 ;;
15519
15520 mingw* | cygwin* | pw32* | os2* | cegcc*)
15521 # This hack is so that the source file can tell whether it is being
15522 # built for inclusion in a dll (and should export symbols for example).
15523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15524 # (--disable-auto-import) libraries
15525 lt_prog_compiler_pic='-DDLL_EXPORT'
15526 ;;
15527
15528 darwin* | rhapsody*)
15529 # PIC is the default on this platform
15530 # Common symbols not allowed in MH_DYLIB files
15531 lt_prog_compiler_pic='-fno-common'
15532 ;;
15533
15534 haiku*)
15535 # PIC is the default for Haiku.
15536 # The "-static" flag exists, but is broken.
15537 lt_prog_compiler_static=
15538 ;;
15539
15540 hpux*)
15541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15543 # sets the default TLS model and affects inlining.
15544 case $host_cpu in
15545 hppa*64*)
15546 # +Z the default
15547 ;;
15548 *)
15549 lt_prog_compiler_pic='-fPIC'
15550 ;;
15551 esac
15552 ;;
15553
15554 interix[3-9]*)
15555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15556 # Instead, we relocate shared libraries at runtime.
15557 ;;
15558
15559 msdosdjgpp*)
15560 # Just because we use GCC doesn't mean we suddenly get shared libraries
15561 # on systems that don't support them.
15562 lt_prog_compiler_can_build_shared=no
15563 enable_shared=no
15564 ;;
15565
15566 *nto* | *qnx*)
15567 # QNX uses GNU C++, but need to define -shared option too, otherwise
15568 # it will coredump.
15569 lt_prog_compiler_pic='-fPIC -shared'
15570 ;;
15571
15572 sysv4*MP*)
15573 if test -d /usr/nec; then
15574 lt_prog_compiler_pic=-Kconform_pic
15575 fi
15576 ;;
15577
15578 *)
15579 lt_prog_compiler_pic='-fPIC'
15580 ;;
15581 esac
15582
15583 case $cc_basename in
15584 nvcc*) # Cuda Compiler Driver 2.2
15585 lt_prog_compiler_wl='-Xlinker '
15586 lt_prog_compiler_pic='-Xcompiler -fPIC'
15587 ;;
15588 esac
15589 else
15590 # PORTME Check for flag to pass linker flags through the system compiler.
15591 case $host_os in
15592 aix*)
15593 lt_prog_compiler_wl='-Wl,'
15594 if test "$host_cpu" = ia64; then
15595 # AIX 5 now supports IA64 processor
15596 lt_prog_compiler_static='-Bstatic'
15597 else
15598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15599 fi
15600 ;;
15601
15602 mingw* | cygwin* | pw32* | os2* | cegcc*)
15603 # This hack is so that the source file can tell whether it is being
15604 # built for inclusion in a dll (and should export symbols for example).
15605 lt_prog_compiler_pic='-DDLL_EXPORT'
15606 ;;
15607
15608 hpux9* | hpux10* | hpux11*)
15609 lt_prog_compiler_wl='-Wl,'
15610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15611 # not for PA HP-UX.
15612 case $host_cpu in
15613 hppa*64*|ia64*)
15614 # +Z the default
15615 ;;
15616 *)
15617 lt_prog_compiler_pic='+Z'
15618 ;;
15619 esac
15620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15621 lt_prog_compiler_static='${wl}-a ${wl}archive'
15622 ;;
15623
15624 irix5* | irix6* | nonstopux*)
15625 lt_prog_compiler_wl='-Wl,'
15626 # PIC (with -KPIC) is the default.
15627 lt_prog_compiler_static='-non_shared'
15628 ;;
15629
15630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15631 case $cc_basename in
15632 # old Intel for x86_64 which still supported -KPIC.
15633 ecc*)
15634 lt_prog_compiler_wl='-Wl,'
15635 lt_prog_compiler_pic='-KPIC'
15636 lt_prog_compiler_static='-static'
15637 ;;
15638 # icc used to be incompatible with GCC.
15639 # ICC 10 doesn't accept -KPIC any more.
15640 icc* | ifort*)
15641 lt_prog_compiler_wl='-Wl,'
15642 lt_prog_compiler_pic='-fPIC'
15643 lt_prog_compiler_static='-static'
15644 ;;
15645 # Lahey Fortran 8.1.
15646 lf95*)
15647 lt_prog_compiler_wl='-Wl,'
15648 lt_prog_compiler_pic='--shared'
15649 lt_prog_compiler_static='--static'
15650 ;;
15651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15652 # Portland Group compilers (*not* the Pentium gcc compiler,
15653 # which looks to be a dead project)
15654 lt_prog_compiler_wl='-Wl,'
15655 lt_prog_compiler_pic='-fpic'
15656 lt_prog_compiler_static='-Bstatic'
15657 ;;
15658 ccc*)
15659 lt_prog_compiler_wl='-Wl,'
15660 # All Alpha code is PIC.
15661 lt_prog_compiler_static='-non_shared'
15662 ;;
15663 xl* | bgxl* | bgf* | mpixl*)
15664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='-qpic'
15667 lt_prog_compiler_static='-qstaticlink'
15668 ;;
15669 *)
15670 case `$CC -V 2>&1 | sed 5q` in
15671 *Sun\ F* | *Sun*Fortran*)
15672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15673 lt_prog_compiler_pic='-KPIC'
15674 lt_prog_compiler_static='-Bstatic'
15675 lt_prog_compiler_wl=''
15676 ;;
15677 *Sun\ C*)
15678 # Sun C 5.9
15679 lt_prog_compiler_pic='-KPIC'
15680 lt_prog_compiler_static='-Bstatic'
15681 lt_prog_compiler_wl='-Wl,'
15682 ;;
15683 esac
15684 ;;
15685 esac
15686 ;;
15687
15688 newsos6)
15689 lt_prog_compiler_pic='-KPIC'
15690 lt_prog_compiler_static='-Bstatic'
15691 ;;
15692
15693 *nto* | *qnx*)
15694 # QNX uses GNU C++, but need to define -shared option too, otherwise
15695 # it will coredump.
15696 lt_prog_compiler_pic='-fPIC -shared'
15697 ;;
15698
15699 osf3* | osf4* | osf5*)
15700 lt_prog_compiler_wl='-Wl,'
15701 # All OSF/1 code is PIC.
15702 lt_prog_compiler_static='-non_shared'
15703 ;;
15704
15705 rdos*)
15706 lt_prog_compiler_static='-non_shared'
15707 ;;
15708
15709 solaris*)
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15712 case $cc_basename in
15713 f77* | f90* | f95*)
15714 lt_prog_compiler_wl='-Qoption ld ';;
15715 *)
15716 lt_prog_compiler_wl='-Wl,';;
15717 esac
15718 ;;
15719
15720 sunos4*)
15721 lt_prog_compiler_wl='-Qoption ld '
15722 lt_prog_compiler_pic='-PIC'
15723 lt_prog_compiler_static='-Bstatic'
15724 ;;
15725
15726 sysv4 | sysv4.2uw2* | sysv4.3*)
15727 lt_prog_compiler_wl='-Wl,'
15728 lt_prog_compiler_pic='-KPIC'
15729 lt_prog_compiler_static='-Bstatic'
15730 ;;
15731
15732 sysv4*MP*)
15733 if test -d /usr/nec ;then
15734 lt_prog_compiler_pic='-Kconform_pic'
15735 lt_prog_compiler_static='-Bstatic'
15736 fi
15737 ;;
15738
15739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15740 lt_prog_compiler_wl='-Wl,'
15741 lt_prog_compiler_pic='-KPIC'
15742 lt_prog_compiler_static='-Bstatic'
15743 ;;
15744
15745 unicos*)
15746 lt_prog_compiler_wl='-Wl,'
15747 lt_prog_compiler_can_build_shared=no
15748 ;;
15749
15750 uts4*)
15751 lt_prog_compiler_pic='-pic'
15752 lt_prog_compiler_static='-Bstatic'
15753 ;;
15754
15755 *)
15756 lt_prog_compiler_can_build_shared=no
15757 ;;
15758 esac
15759 fi
15760
15761 case $host_os in
15762 # For platforms which do not support PIC, -DPIC is meaningless:
15763 *djgpp*)
15764 lt_prog_compiler_pic=
15765 ;;
15766 *)
15767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15768 ;;
15769 esac
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15771 $as_echo "$lt_prog_compiler_pic" >&6; }
15772
15773
15774
15775
15776
15777
15778 #
15779 # Check to make sure the PIC flag actually works.
15780 #
15781 if test -n "$lt_prog_compiler_pic"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15783 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15784 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 lt_cv_prog_compiler_pic_works=no
15788 ac_outfile=conftest.$ac_objext
15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 # The option is referenced via a variable to avoid confusing sed.
15796 lt_compile=`echo "$ac_compile" | $SED \
15797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15799 -e 's:$: $lt_compiler_flag:'`
15800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15801 (eval "$lt_compile" 2>conftest.err)
15802 ac_status=$?
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 if (exit $ac_status) && test -s "$ac_outfile"; then
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings other than the usual output.
15808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15811 lt_cv_prog_compiler_pic_works=yes
15812 fi
15813 fi
15814 $RM conftest*
15815
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15818 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15819
15820 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15821 case $lt_prog_compiler_pic in
15822 "" | " "*) ;;
15823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15824 esac
15825 else
15826 lt_prog_compiler_pic=
15827 lt_prog_compiler_can_build_shared=no
15828 fi
15829
15830 fi
15831
15832
15833
15834
15835
15836
15837 #
15838 # Check to make sure the static flag actually works.
15839 #
15840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15843 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 lt_cv_prog_compiler_static_works=no
15847 save_LDFLAGS="$LDFLAGS"
15848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15851 # The linker can only warn and ignore the option if not recognized
15852 # So say no if there are warnings
15853 if test -s conftest.err; then
15854 # Append any errors to the config.log.
15855 cat conftest.err 1>&5
15856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15858 if diff conftest.exp conftest.er2 >/dev/null; then
15859 lt_cv_prog_compiler_static_works=yes
15860 fi
15861 else
15862 lt_cv_prog_compiler_static_works=yes
15863 fi
15864 fi
15865 $RM -r conftest*
15866 LDFLAGS="$save_LDFLAGS"
15867
15868 fi
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15871
15872 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15873 :
15874 else
15875 lt_prog_compiler_static=
15876 fi
15877
15878
15879
15880
15881
15882
15883
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15886 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 lt_cv_prog_compiler_c_o=no
15890 $RM -r conftest 2>/dev/null
15891 mkdir conftest
15892 cd conftest
15893 mkdir out
15894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15895
15896 lt_compiler_flag="-o out/conftest2.$ac_objext"
15897 # Insert the option either (1) after the last *FLAGS variable, or
15898 # (2) before a word containing "conftest.", or (3) at the end.
15899 # Note that $ac_compile itself does not contain backslashes and begins
15900 # with a dollar sign (not a hyphen), so the echo should work correctly.
15901 lt_compile=`echo "$ac_compile" | $SED \
15902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15904 -e 's:$: $lt_compiler_flag:'`
15905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15906 (eval "$lt_compile" 2>out/conftest.err)
15907 ac_status=$?
15908 cat out/conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15911 then
15912 # The compiler can only warn and ignore the option if not recognized
15913 # So say no if there are warnings
15914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15917 lt_cv_prog_compiler_c_o=yes
15918 fi
15919 fi
15920 chmod u+w . 2>&5
15921 $RM conftest*
15922 # SGI C++ compiler will create directory out/ii_files/ for
15923 # template instantiation
15924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15925 $RM out/* && rmdir out
15926 cd ..
15927 $RM -r conftest
15928 $RM conftest*
15929
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15933
15934
15935
15936
15937
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 lt_cv_prog_compiler_c_o=no
15945 $RM -r conftest 2>/dev/null
15946 mkdir conftest
15947 cd conftest
15948 mkdir out
15949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15950
15951 lt_compiler_flag="-o out/conftest2.$ac_objext"
15952 # Insert the option either (1) after the last *FLAGS variable, or
15953 # (2) before a word containing "conftest.", or (3) at the end.
15954 # Note that $ac_compile itself does not contain backslashes and begins
15955 # with a dollar sign (not a hyphen), so the echo should work correctly.
15956 lt_compile=`echo "$ac_compile" | $SED \
15957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15959 -e 's:$: $lt_compiler_flag:'`
15960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15961 (eval "$lt_compile" 2>out/conftest.err)
15962 ac_status=$?
15963 cat out/conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15966 then
15967 # The compiler can only warn and ignore the option if not recognized
15968 # So say no if there are warnings
15969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15972 lt_cv_prog_compiler_c_o=yes
15973 fi
15974 fi
15975 chmod u+w . 2>&5
15976 $RM conftest*
15977 # SGI C++ compiler will create directory out/ii_files/ for
15978 # template instantiation
15979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15980 $RM out/* && rmdir out
15981 cd ..
15982 $RM -r conftest
15983 $RM conftest*
15984
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15988
15989
15990
15991
15992 hard_links="nottested"
15993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15994 # do not overwrite the value of need_locks provided by the user
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15996 $as_echo_n "checking if we can lock with hard links... " >&6; }
15997 hard_links=yes
15998 $RM conftest*
15999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16000 touch conftest.a
16001 ln conftest.a conftest.b 2>&5 || hard_links=no
16002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16004 $as_echo "$hard_links" >&6; }
16005 if test "$hard_links" = no; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16008 need_locks=warn
16009 fi
16010 else
16011 need_locks=no
16012 fi
16013
16014
16015
16016
16017
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16021
16022 runpath_var=
16023 allow_undefined_flag=
16024 always_export_symbols=no
16025 archive_cmds=
16026 archive_expsym_cmds=
16027 compiler_needs_object=no
16028 enable_shared_with_static_runtimes=no
16029 export_dynamic_flag_spec=
16030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16031 hardcode_automatic=no
16032 hardcode_direct=no
16033 hardcode_direct_absolute=no
16034 hardcode_libdir_flag_spec=
16035 hardcode_libdir_flag_spec_ld=
16036 hardcode_libdir_separator=
16037 hardcode_minus_L=no
16038 hardcode_shlibpath_var=unsupported
16039 inherit_rpath=no
16040 link_all_deplibs=unknown
16041 module_cmds=
16042 module_expsym_cmds=
16043 old_archive_from_new_cmds=
16044 old_archive_from_expsyms_cmds=
16045 thread_safe_flag_spec=
16046 whole_archive_flag_spec=
16047 # include_expsyms should be a list of space-separated symbols to be *always*
16048 # included in the symbol list
16049 include_expsyms=
16050 # exclude_expsyms can be an extended regexp of symbols to exclude
16051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16053 # as well as any symbol that contains `d'.
16054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16056 # platforms (ab)use it in PIC code, but their linkers get confused if
16057 # the symbol is explicitly referenced. Since portable code cannot
16058 # rely on this symbol name, it's probably fine to never include it in
16059 # preloaded symbol tables.
16060 # Exclude shared library initialization/finalization symbols.
16061 extract_expsyms_cmds=
16062
16063 case $host_os in
16064 cygwin* | mingw* | pw32* | cegcc*)
16065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16066 # When not using gcc, we currently assume that we are using
16067 # Microsoft Visual C++.
16068 if test "$GCC" != yes; then
16069 with_gnu_ld=no
16070 fi
16071 ;;
16072 interix*)
16073 # we just hope/assume this is gcc and not c89 (= MSVC++)
16074 with_gnu_ld=yes
16075 ;;
16076 openbsd*)
16077 with_gnu_ld=no
16078 ;;
16079 esac
16080
16081 ld_shlibs=yes
16082
16083 # On some targets, GNU ld is compatible enough with the native linker
16084 # that we're better off using the native interface for both.
16085 lt_use_gnu_ld_interface=no
16086 if test "$with_gnu_ld" = yes; then
16087 case $host_os in
16088 aix*)
16089 # The AIX port of GNU ld has always aspired to compatibility
16090 # with the native linker. However, as the warning in the GNU ld
16091 # block says, versions before 2.19.5* couldn't really create working
16092 # shared libraries, regardless of the interface used.
16093 case `$LD -v 2>&1` in
16094 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16095 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16096 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16097 *)
16098 lt_use_gnu_ld_interface=yes
16099 ;;
16100 esac
16101 ;;
16102 *)
16103 lt_use_gnu_ld_interface=yes
16104 ;;
16105 esac
16106 fi
16107
16108 if test "$lt_use_gnu_ld_interface" = yes; then
16109 # If archive_cmds runs LD, not CC, wlarc should be empty
16110 wlarc='${wl}'
16111
16112 # Set some defaults for GNU ld with shared library support. These
16113 # are reset later if shared libraries are not supported. Putting them
16114 # here allows them to be overridden if necessary.
16115 runpath_var=LD_RUN_PATH
16116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16117 export_dynamic_flag_spec='${wl}--export-dynamic'
16118 # ancient GNU ld didn't support --whole-archive et. al.
16119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16120 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16121 else
16122 whole_archive_flag_spec=
16123 fi
16124 supports_anon_versioning=no
16125 case `$LD -v 2>&1` in
16126 *GNU\ gold*) supports_anon_versioning=yes ;;
16127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16130 *\ 2.11.*) ;; # other 2.11 versions
16131 *) supports_anon_versioning=yes ;;
16132 esac
16133
16134 # See if GNU ld supports shared libraries.
16135 case $host_os in
16136 aix[3-9]*)
16137 # On AIX/PPC, the GNU linker is very broken
16138 if test "$host_cpu" != ia64; then
16139 ld_shlibs=no
16140 cat <<_LT_EOF 1>&2
16141
16142 *** Warning: the GNU linker, at least up to release 2.19, is reported
16143 *** to be unable to reliably create shared libraries on AIX.
16144 *** Therefore, libtool is disabling shared libraries support. If you
16145 *** really care for shared libraries, you may want to install binutils
16146 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16147 *** You will then need to restart the configuration process.
16148
16149 _LT_EOF
16150 fi
16151 ;;
16152
16153 amigaos*)
16154 case $host_cpu in
16155 powerpc)
16156 # see comment about AmigaOS4 .so support
16157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158 archive_expsym_cmds=''
16159 ;;
16160 m68k)
16161 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)'
16162 hardcode_libdir_flag_spec='-L$libdir'
16163 hardcode_minus_L=yes
16164 ;;
16165 esac
16166 ;;
16167
16168 beos*)
16169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16170 allow_undefined_flag=unsupported
16171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16172 # support --undefined. This deserves some investigation. FIXME
16173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 else
16175 ld_shlibs=no
16176 fi
16177 ;;
16178
16179 cygwin* | mingw* | pw32* | cegcc*)
16180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16181 # as there is no search path for DLLs.
16182 hardcode_libdir_flag_spec='-L$libdir'
16183 export_dynamic_flag_spec='${wl}--export-all-symbols'
16184 allow_undefined_flag=unsupported
16185 always_export_symbols=no
16186 enable_shared_with_static_runtimes=yes
16187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16188
16189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16191 # If the export-symbols file already is a .def file (1st line
16192 # is EXPORTS), use it as is; otherwise, prepend...
16193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16194 cp $export_symbols $output_objdir/$soname.def;
16195 else
16196 echo EXPORTS > $output_objdir/$soname.def;
16197 cat $export_symbols >> $output_objdir/$soname.def;
16198 fi~
16199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16200 else
16201 ld_shlibs=no
16202 fi
16203 ;;
16204
16205 haiku*)
16206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207 link_all_deplibs=yes
16208 ;;
16209
16210 interix[3-9]*)
16211 hardcode_direct=no
16212 hardcode_shlibpath_var=no
16213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16214 export_dynamic_flag_spec='${wl}-E'
16215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16216 # Instead, shared libraries are loaded at an image base (0x10000000 by
16217 # default) and relocated if they conflict, which is a slow very memory
16218 # consuming and fragmenting process. To avoid this, we pick a random,
16219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16222 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'
16223 ;;
16224
16225 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16226 tmp_diet=no
16227 if test "$host_os" = linux-dietlibc; then
16228 case $cc_basename in
16229 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16230 esac
16231 fi
16232 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16233 && test "$tmp_diet" = no
16234 then
16235 tmp_addflag=' $pic_flag'
16236 tmp_sharedflag='-shared'
16237 case $cc_basename,$host_cpu in
16238 pgcc*) # Portland Group C compiler
16239 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'
16240 tmp_addflag=' $pic_flag'
16241 ;;
16242 pgf77* | pgf90* | pgf95* | pgfortran*)
16243 # Portland Group f77 and f90 compilers
16244 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'
16245 tmp_addflag=' $pic_flag -Mnomain' ;;
16246 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16247 tmp_addflag=' -i_dynamic' ;;
16248 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16249 tmp_addflag=' -i_dynamic -nofor_main' ;;
16250 ifc* | ifort*) # Intel Fortran compiler
16251 tmp_addflag=' -nofor_main' ;;
16252 lf95*) # Lahey Fortran 8.1
16253 whole_archive_flag_spec=
16254 tmp_sharedflag='--shared' ;;
16255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16256 tmp_sharedflag='-qmkshrobj'
16257 tmp_addflag= ;;
16258 nvcc*) # Cuda Compiler Driver 2.2
16259 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'
16260 compiler_needs_object=yes
16261 ;;
16262 esac
16263 case `$CC -V 2>&1 | sed 5q` in
16264 *Sun\ C*) # Sun C 5.9
16265 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'
16266 compiler_needs_object=yes
16267 tmp_sharedflag='-G' ;;
16268 *Sun\ F*) # Sun Fortran 8.3
16269 tmp_sharedflag='-G' ;;
16270 esac
16271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272
16273 if test "x$supports_anon_versioning" = xyes; then
16274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16276 echo "local: *; };" >> $output_objdir/$libname.ver~
16277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16278 fi
16279
16280 case $cc_basename in
16281 xlf* | bgf* | bgxlf* | mpixlf*)
16282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16284 hardcode_libdir_flag_spec=
16285 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16286 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16287 if test "x$supports_anon_versioning" = xyes; then
16288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16290 echo "local: *; };" >> $output_objdir/$libname.ver~
16291 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16292 fi
16293 ;;
16294 esac
16295 else
16296 ld_shlibs=no
16297 fi
16298 ;;
16299
16300 netbsd*)
16301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16303 wlarc=
16304 else
16305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16307 fi
16308 ;;
16309
16310 solaris*)
16311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16312 ld_shlibs=no
16313 cat <<_LT_EOF 1>&2
16314
16315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16316 *** create shared libraries on Solaris systems. Therefore, libtool
16317 *** is disabling shared libraries support. We urge you to upgrade GNU
16318 *** binutils to release 2.9.1 or newer. Another option is to modify
16319 *** your PATH or compiler configuration so that the native linker is
16320 *** used, and then restart.
16321
16322 _LT_EOF
16323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326 else
16327 ld_shlibs=no
16328 fi
16329 ;;
16330
16331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16332 case `$LD -v 2>&1` in
16333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16334 ld_shlibs=no
16335 cat <<_LT_EOF 1>&2
16336
16337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16338 *** reliably create shared libraries on SCO systems. Therefore, libtool
16339 *** is disabling shared libraries support. We urge you to upgrade GNU
16340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16341 *** your PATH or compiler configuration so that the native linker is
16342 *** used, and then restart.
16343
16344 _LT_EOF
16345 ;;
16346 *)
16347 # For security reasons, it is highly recommended that you always
16348 # use absolute paths for naming shared libraries, and exclude the
16349 # DT_RUNPATH tag from executables and libraries. But doing so
16350 # requires that you compile everything twice, which is a pain.
16351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16355 else
16356 ld_shlibs=no
16357 fi
16358 ;;
16359 esac
16360 ;;
16361
16362 sunos4*)
16363 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16364 wlarc=
16365 hardcode_direct=yes
16366 hardcode_shlibpath_var=no
16367 ;;
16368
16369 *)
16370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16373 else
16374 ld_shlibs=no
16375 fi
16376 ;;
16377 esac
16378
16379 if test "$ld_shlibs" = no; then
16380 runpath_var=
16381 hardcode_libdir_flag_spec=
16382 export_dynamic_flag_spec=
16383 whole_archive_flag_spec=
16384 fi
16385 else
16386 # PORTME fill in a description of your system's linker (not GNU ld)
16387 case $host_os in
16388 aix3*)
16389 allow_undefined_flag=unsupported
16390 always_export_symbols=yes
16391 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'
16392 # Note: this linker hardcodes the directories in LIBPATH if there
16393 # are no directories specified by -L.
16394 hardcode_minus_L=yes
16395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16396 # Neither direct hardcoding nor static linking is supported with a
16397 # broken collect2.
16398 hardcode_direct=unsupported
16399 fi
16400 ;;
16401
16402 aix[4-9]*)
16403 if test "$host_cpu" = ia64; then
16404 # On IA64, the linker does run time linking by default, so we don't
16405 # have to do anything special.
16406 aix_use_runtimelinking=no
16407 exp_sym_flag='-Bexport'
16408 no_entry_flag=""
16409 else
16410 # If we're using GNU nm, then we don't want the "-C" option.
16411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16412 # Also, AIX nm treats weak defined symbols like other global
16413 # defined symbols, whereas GNU nm marks them as "W".
16414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16415 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'
16416 else
16417 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16418 fi
16419 aix_use_runtimelinking=no
16420
16421 # Test if we are trying to use run time linking or normal
16422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16423 # need to do runtime linking.
16424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16425 for ld_flag in $LDFLAGS; do
16426 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16427 aix_use_runtimelinking=yes
16428 break
16429 fi
16430 done
16431 ;;
16432 esac
16433
16434 exp_sym_flag='-bexport'
16435 no_entry_flag='-bnoentry'
16436 fi
16437
16438 # When large executables or shared objects are built, AIX ld can
16439 # have problems creating the table of contents. If linking a library
16440 # or program results in "error TOC overflow" add -mminimal-toc to
16441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16443
16444 archive_cmds=''
16445 hardcode_direct=yes
16446 hardcode_direct_absolute=yes
16447 hardcode_libdir_separator=':'
16448 link_all_deplibs=yes
16449 file_list_spec='${wl}-f,'
16450
16451 if test "$GCC" = yes; then
16452 case $host_os in aix4.[012]|aix4.[012].*)
16453 # We only want to do this on AIX 4.2 and lower, the check
16454 # below for broken collect2 doesn't work under 4.3+
16455 collect2name=`${CC} -print-prog-name=collect2`
16456 if test -f "$collect2name" &&
16457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16458 then
16459 # We have reworked collect2
16460 :
16461 else
16462 # We have old collect2
16463 hardcode_direct=unsupported
16464 # It fails to find uninstalled libraries when the uninstalled
16465 # path is not listed in the libpath. Setting hardcode_minus_L
16466 # to unsupported forces relinking
16467 hardcode_minus_L=yes
16468 hardcode_libdir_flag_spec='-L$libdir'
16469 hardcode_libdir_separator=
16470 fi
16471 ;;
16472 esac
16473 shared_flag='-shared'
16474 if test "$aix_use_runtimelinking" = yes; then
16475 shared_flag="$shared_flag "'${wl}-G'
16476 fi
16477 else
16478 # not using gcc
16479 if test "$host_cpu" = ia64; then
16480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16481 # chokes on -Wl,-G. The following line is correct:
16482 shared_flag='-G'
16483 else
16484 if test "$aix_use_runtimelinking" = yes; then
16485 shared_flag='${wl}-G'
16486 else
16487 shared_flag='${wl}-bM:SRE'
16488 fi
16489 fi
16490 fi
16491
16492 export_dynamic_flag_spec='${wl}-bexpall'
16493 # It seems that -bexpall does not export symbols beginning with
16494 # underscore (_), so it is better to generate a list of symbols to export.
16495 always_export_symbols=yes
16496 if test "$aix_use_runtimelinking" = yes; then
16497 # Warning - without using the other runtime loading flags (-brtl),
16498 # -berok will link without error, but may produce a broken library.
16499 allow_undefined_flag='-berok'
16500 # Determine the default libpath from the value encoded in an
16501 # empty executable.
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504
16505 int
16506 main ()
16507 {
16508
16509 ;
16510 return 0;
16511 }
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16514
16515 lt_aix_libpath_sed='
16516 /Import File Strings/,/^$/ {
16517 /^0/ {
16518 s/^0 *\(.*\)$/\1/
16519 p
16520 }
16521 }'
16522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16523 # Check for a 64-bit object if we didn't find anything.
16524 if test -z "$aix_libpath"; then
16525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16526 fi
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16531
16532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16533 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"
16534 else
16535 if test "$host_cpu" = ia64; then
16536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16537 allow_undefined_flag="-z nodefs"
16538 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"
16539 else
16540 # Determine the default libpath from the value encoded in an
16541 # empty executable.
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16544
16545 int
16546 main ()
16547 {
16548
16549 ;
16550 return 0;
16551 }
16552 _ACEOF
16553 if ac_fn_c_try_link "$LINENO"; then :
16554
16555 lt_aix_libpath_sed='
16556 /Import File Strings/,/^$/ {
16557 /^0/ {
16558 s/^0 *\(.*\)$/\1/
16559 p
16560 }
16561 }'
16562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 # Check for a 64-bit object if we didn't find anything.
16564 if test -z "$aix_libpath"; then
16565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 fi
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16571
16572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16573 # Warning - without using the other run time loading flags,
16574 # -berok will link without error, but may produce a broken library.
16575 no_undefined_flag=' ${wl}-bernotok'
16576 allow_undefined_flag=' ${wl}-berok'
16577 if test "$with_gnu_ld" = yes; then
16578 # We only use this code for GNU lds that support --whole-archive.
16579 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16580 else
16581 # Exported symbols can be pulled into shared objects from archives
16582 whole_archive_flag_spec='$convenience'
16583 fi
16584 archive_cmds_need_lc=yes
16585 # This is similar to how AIX traditionally builds its shared libraries.
16586 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'
16587 fi
16588 fi
16589 ;;
16590
16591 amigaos*)
16592 case $host_cpu in
16593 powerpc)
16594 # see comment about AmigaOS4 .so support
16595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16596 archive_expsym_cmds=''
16597 ;;
16598 m68k)
16599 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)'
16600 hardcode_libdir_flag_spec='-L$libdir'
16601 hardcode_minus_L=yes
16602 ;;
16603 esac
16604 ;;
16605
16606 bsdi[45]*)
16607 export_dynamic_flag_spec=-rdynamic
16608 ;;
16609
16610 cygwin* | mingw* | pw32* | cegcc*)
16611 # When not using gcc, we currently assume that we are using
16612 # Microsoft Visual C++.
16613 # hardcode_libdir_flag_spec is actually meaningless, as there is
16614 # no search path for DLLs.
16615 hardcode_libdir_flag_spec=' '
16616 allow_undefined_flag=unsupported
16617 # Tell ltmain to make .lib files, not .a files.
16618 libext=lib
16619 # Tell ltmain to make .dll files, not .so files.
16620 shrext_cmds=".dll"
16621 # FIXME: Setting linknames here is a bad hack.
16622 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16623 # The linker will automatically build a .lib file if we build a DLL.
16624 old_archive_from_new_cmds='true'
16625 # FIXME: Should let the user specify the lib program.
16626 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16627 fix_srcfile_path='`cygpath -w "$srcfile"`'
16628 enable_shared_with_static_runtimes=yes
16629 ;;
16630
16631 darwin* | rhapsody*)
16632
16633
16634 archive_cmds_need_lc=no
16635 hardcode_direct=no
16636 hardcode_automatic=yes
16637 hardcode_shlibpath_var=unsupported
16638 if test "$lt_cv_ld_force_load" = "yes"; then
16639 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\"`'
16640 else
16641 whole_archive_flag_spec=''
16642 fi
16643 link_all_deplibs=yes
16644 allow_undefined_flag="$_lt_dar_allow_undefined"
16645 case $cc_basename in
16646 ifort*) _lt_dar_can_shared=yes ;;
16647 *) _lt_dar_can_shared=$GCC ;;
16648 esac
16649 if test "$_lt_dar_can_shared" = "yes"; then
16650 output_verbose_link_cmd=func_echo_all
16651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16653 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}"
16654 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}"
16655
16656 else
16657 ld_shlibs=no
16658 fi
16659
16660 ;;
16661
16662 dgux*)
16663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_libdir_flag_spec='-L$libdir'
16665 hardcode_shlibpath_var=no
16666 ;;
16667
16668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16669 # support. Future versions do this automatically, but an explicit c++rt0.o
16670 # does not break anything, and helps significantly (at the cost of a little
16671 # extra space).
16672 freebsd2.2*)
16673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16674 hardcode_libdir_flag_spec='-R$libdir'
16675 hardcode_direct=yes
16676 hardcode_shlibpath_var=no
16677 ;;
16678
16679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16680 freebsd2.*)
16681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_direct=yes
16683 hardcode_minus_L=yes
16684 hardcode_shlibpath_var=no
16685 ;;
16686
16687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16688 freebsd* | dragonfly*)
16689 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16690 hardcode_libdir_flag_spec='-R$libdir'
16691 hardcode_direct=yes
16692 hardcode_shlibpath_var=no
16693 ;;
16694
16695 hpux9*)
16696 if test "$GCC" = yes; then
16697 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'
16698 else
16699 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'
16700 fi
16701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16702 hardcode_libdir_separator=:
16703 hardcode_direct=yes
16704
16705 # hardcode_minus_L: Not really in the search PATH,
16706 # but as the default location of the library.
16707 hardcode_minus_L=yes
16708 export_dynamic_flag_spec='${wl}-E'
16709 ;;
16710
16711 hpux10*)
16712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16714 else
16715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16716 fi
16717 if test "$with_gnu_ld" = no; then
16718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16719 hardcode_libdir_flag_spec_ld='+b $libdir'
16720 hardcode_libdir_separator=:
16721 hardcode_direct=yes
16722 hardcode_direct_absolute=yes
16723 export_dynamic_flag_spec='${wl}-E'
16724 # hardcode_minus_L: Not really in the search PATH,
16725 # but as the default location of the library.
16726 hardcode_minus_L=yes
16727 fi
16728 ;;
16729
16730 hpux11*)
16731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16732 case $host_cpu in
16733 hppa*64*)
16734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 ;;
16736 ia64*)
16737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738 ;;
16739 *)
16740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16741 ;;
16742 esac
16743 else
16744 case $host_cpu in
16745 hppa*64*)
16746 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 ;;
16748 ia64*)
16749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16750 ;;
16751 *)
16752
16753 # Older versions of the 11.00 compiler do not understand -b yet
16754 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16756 $as_echo_n "checking if $CC understands -b... " >&6; }
16757 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16760 lt_cv_prog_compiler__b=no
16761 save_LDFLAGS="$LDFLAGS"
16762 LDFLAGS="$LDFLAGS -b"
16763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16765 # The linker can only warn and ignore the option if not recognized
16766 # So say no if there are warnings
16767 if test -s conftest.err; then
16768 # Append any errors to the config.log.
16769 cat conftest.err 1>&5
16770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16772 if diff conftest.exp conftest.er2 >/dev/null; then
16773 lt_cv_prog_compiler__b=yes
16774 fi
16775 else
16776 lt_cv_prog_compiler__b=yes
16777 fi
16778 fi
16779 $RM -r conftest*
16780 LDFLAGS="$save_LDFLAGS"
16781
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16784 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16785
16786 if test x"$lt_cv_prog_compiler__b" = xyes; then
16787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16788 else
16789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16790 fi
16791
16792 ;;
16793 esac
16794 fi
16795 if test "$with_gnu_ld" = no; then
16796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16797 hardcode_libdir_separator=:
16798
16799 case $host_cpu in
16800 hppa*64*|ia64*)
16801 hardcode_direct=no
16802 hardcode_shlibpath_var=no
16803 ;;
16804 *)
16805 hardcode_direct=yes
16806 hardcode_direct_absolute=yes
16807 export_dynamic_flag_spec='${wl}-E'
16808
16809 # hardcode_minus_L: Not really in the search PATH,
16810 # but as the default location of the library.
16811 hardcode_minus_L=yes
16812 ;;
16813 esac
16814 fi
16815 ;;
16816
16817 irix5* | irix6* | nonstopux*)
16818 if test "$GCC" = yes; then
16819 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'
16820 # Try to use the -exported_symbol ld option, if it does not
16821 # work, assume that -exports_file does not work either and
16822 # implicitly export all symbols.
16823 save_LDFLAGS="$LDFLAGS"
16824 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827 int foo(void) {}
16828 _ACEOF
16829 if ac_fn_c_try_link "$LINENO"; then :
16830 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'
16831
16832 fi
16833 rm -f core conftest.err conftest.$ac_objext \
16834 conftest$ac_exeext conftest.$ac_ext
16835 LDFLAGS="$save_LDFLAGS"
16836 else
16837 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'
16838 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'
16839 fi
16840 archive_cmds_need_lc='no'
16841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16842 hardcode_libdir_separator=:
16843 inherit_rpath=yes
16844 link_all_deplibs=yes
16845 ;;
16846
16847 netbsd*)
16848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16850 else
16851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16852 fi
16853 hardcode_libdir_flag_spec='-R$libdir'
16854 hardcode_direct=yes
16855 hardcode_shlibpath_var=no
16856 ;;
16857
16858 newsos6)
16859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860 hardcode_direct=yes
16861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16862 hardcode_libdir_separator=:
16863 hardcode_shlibpath_var=no
16864 ;;
16865
16866 *nto* | *qnx*)
16867 ;;
16868
16869 openbsd*)
16870 if test -f /usr/libexec/ld.so; then
16871 hardcode_direct=yes
16872 hardcode_shlibpath_var=no
16873 hardcode_direct_absolute=yes
16874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16878 export_dynamic_flag_spec='${wl}-E'
16879 else
16880 case $host_os in
16881 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_libdir_flag_spec='-R$libdir'
16884 ;;
16885 *)
16886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16888 ;;
16889 esac
16890 fi
16891 else
16892 ld_shlibs=no
16893 fi
16894 ;;
16895
16896 os2*)
16897 hardcode_libdir_flag_spec='-L$libdir'
16898 hardcode_minus_L=yes
16899 allow_undefined_flag=unsupported
16900 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'
16901 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16902 ;;
16903
16904 osf3*)
16905 if test "$GCC" = yes; then
16906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16907 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'
16908 else
16909 allow_undefined_flag=' -expect_unresolved \*'
16910 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'
16911 fi
16912 archive_cmds_need_lc='no'
16913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16914 hardcode_libdir_separator=:
16915 ;;
16916
16917 osf4* | osf5*) # as osf3* with the addition of -msym flag
16918 if test "$GCC" = yes; then
16919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16920 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'
16921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16922 else
16923 allow_undefined_flag=' -expect_unresolved \*'
16924 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'
16925 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~
16926 $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'
16927
16928 # Both c and cxx compiler support -rpath directly
16929 hardcode_libdir_flag_spec='-rpath $libdir'
16930 fi
16931 archive_cmds_need_lc='no'
16932 hardcode_libdir_separator=:
16933 ;;
16934
16935 solaris*)
16936 no_undefined_flag=' -z defs'
16937 if test "$GCC" = yes; then
16938 wlarc='${wl}'
16939 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16941 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16942 else
16943 case `$CC -V 2>&1` in
16944 *"Compilers 5.0"*)
16945 wlarc=''
16946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16949 ;;
16950 *)
16951 wlarc='${wl}'
16952 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16954 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16955 ;;
16956 esac
16957 fi
16958 hardcode_libdir_flag_spec='-R$libdir'
16959 hardcode_shlibpath_var=no
16960 case $host_os in
16961 solaris2.[0-5] | solaris2.[0-5].*) ;;
16962 *)
16963 # The compiler driver will combine and reorder linker options,
16964 # but understands `-z linker_flag'. GCC discards it without `$wl',
16965 # but is careful enough not to reorder.
16966 # Supported since Solaris 2.6 (maybe 2.5.1?)
16967 if test "$GCC" = yes; then
16968 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16969 else
16970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16971 fi
16972 ;;
16973 esac
16974 link_all_deplibs=yes
16975 ;;
16976
16977 sunos4*)
16978 if test "x$host_vendor" = xsequent; then
16979 # Use $CC to link under sequent, because it throws in some extra .o
16980 # files that make .init and .fini sections work.
16981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16982 else
16983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16984 fi
16985 hardcode_libdir_flag_spec='-L$libdir'
16986 hardcode_direct=yes
16987 hardcode_minus_L=yes
16988 hardcode_shlibpath_var=no
16989 ;;
16990
16991 sysv4)
16992 case $host_vendor in
16993 sni)
16994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_direct=yes # is this really true???
16996 ;;
16997 siemens)
16998 ## LD is ld it makes a PLAMLIB
16999 ## CC just makes a GrossModule.
17000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17001 reload_cmds='$CC -r -o $output$reload_objs'
17002 hardcode_direct=no
17003 ;;
17004 motorola)
17005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17007 ;;
17008 esac
17009 runpath_var='LD_RUN_PATH'
17010 hardcode_shlibpath_var=no
17011 ;;
17012
17013 sysv4.3*)
17014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_shlibpath_var=no
17016 export_dynamic_flag_spec='-Bexport'
17017 ;;
17018
17019 sysv4*MP*)
17020 if test -d /usr/nec; then
17021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_shlibpath_var=no
17023 runpath_var=LD_RUN_PATH
17024 hardcode_runpath_var=yes
17025 ld_shlibs=yes
17026 fi
17027 ;;
17028
17029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17030 no_undefined_flag='${wl}-z,text'
17031 archive_cmds_need_lc=no
17032 hardcode_shlibpath_var=no
17033 runpath_var='LD_RUN_PATH'
17034
17035 if test "$GCC" = yes; then
17036 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 else
17039 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 fi
17042 ;;
17043
17044 sysv5* | sco3.2v5* | sco5v6*)
17045 # Note: We can NOT use -z defs as we might desire, because we do not
17046 # link with -lc, and that would cause any symbols used from libc to
17047 # always be unresolved, which means just about no library would
17048 # ever link correctly. If we're not using GNU ld we use -z text
17049 # though, which does catch some bad symbols but isn't as heavy-handed
17050 # as -z defs.
17051 no_undefined_flag='${wl}-z,text'
17052 allow_undefined_flag='${wl}-z,nodefs'
17053 archive_cmds_need_lc=no
17054 hardcode_shlibpath_var=no
17055 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17056 hardcode_libdir_separator=':'
17057 link_all_deplibs=yes
17058 export_dynamic_flag_spec='${wl}-Bexport'
17059 runpath_var='LD_RUN_PATH'
17060
17061 if test "$GCC" = yes; then
17062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 else
17065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 fi
17068 ;;
17069
17070 uts4*)
17071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_libdir_flag_spec='-L$libdir'
17073 hardcode_shlibpath_var=no
17074 ;;
17075
17076 *)
17077 ld_shlibs=no
17078 ;;
17079 esac
17080
17081 if test x$host_vendor = xsni; then
17082 case $host in
17083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17084 export_dynamic_flag_spec='${wl}-Blargedynsym'
17085 ;;
17086 esac
17087 fi
17088 fi
17089
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17091 $as_echo "$ld_shlibs" >&6; }
17092 test "$ld_shlibs" = no && can_build_shared=no
17093
17094 with_gnu_ld=$with_gnu_ld
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110 #
17111 # Do we need to explicitly link libc?
17112 #
17113 case "x$archive_cmds_need_lc" in
17114 x|xyes)
17115 # Assume -lc should be added
17116 archive_cmds_need_lc=yes
17117
17118 if test "$enable_shared" = yes && test "$GCC" = yes; then
17119 case $archive_cmds in
17120 *'~'*)
17121 # FIXME: we may have to deal with multi-command sequences.
17122 ;;
17123 '$CC '*)
17124 # Test whether the compiler implicitly links with -lc since on some
17125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17126 # to ld, don't add -lc before -lgcc.
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17128 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17129 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 $RM conftest*
17133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17134
17135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17136 (eval $ac_compile) 2>&5
17137 ac_status=$?
17138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17139 test $ac_status = 0; } 2>conftest.err; then
17140 soname=conftest
17141 lib=conftest
17142 libobjs=conftest.$ac_objext
17143 deplibs=
17144 wl=$lt_prog_compiler_wl
17145 pic_flag=$lt_prog_compiler_pic
17146 compiler_flags=-v
17147 linker_flags=-v
17148 verstring=
17149 output_objdir=.
17150 libname=conftest
17151 lt_save_allow_undefined_flag=$allow_undefined_flag
17152 allow_undefined_flag=
17153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17154 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }
17158 then
17159 lt_cv_archive_cmds_need_lc=no
17160 else
17161 lt_cv_archive_cmds_need_lc=yes
17162 fi
17163 allow_undefined_flag=$lt_save_allow_undefined_flag
17164 else
17165 cat conftest.err 1>&5
17166 fi
17167 $RM conftest*
17168
17169 fi
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17171 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17172 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17173 ;;
17174 esac
17175 fi
17176 ;;
17177 esac
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17337
17338 if test "$GCC" = yes; then
17339 case $host_os in
17340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17341 *) lt_awk_arg="/^libraries:/" ;;
17342 esac
17343 case $host_os in
17344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17345 *) lt_sed_strip_eq="s,=/,/,g" ;;
17346 esac
17347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17348 case $lt_search_path_spec in
17349 *\;*)
17350 # if the path contains ";" then we assume it to be the separator
17351 # otherwise default to the standard path separator (i.e. ":") - it is
17352 # assumed that no part of a normal pathname contains ";" but that should
17353 # okay in the real world where ";" in dirpaths is itself problematic.
17354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17355 ;;
17356 *)
17357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17358 ;;
17359 esac
17360 # Ok, now we have the path, separated by spaces, we can step through it
17361 # and add multilib dir if necessary.
17362 lt_tmp_lt_search_path_spec=
17363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17364 for lt_sys_path in $lt_search_path_spec; do
17365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17367 else
17368 test -d "$lt_sys_path" && \
17369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17370 fi
17371 done
17372 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17373 BEGIN {RS=" "; FS="/|\n";} {
17374 lt_foo="";
17375 lt_count=0;
17376 for (lt_i = NF; lt_i > 0; lt_i--) {
17377 if ($lt_i != "" && $lt_i != ".") {
17378 if ($lt_i == "..") {
17379 lt_count++;
17380 } else {
17381 if (lt_count == 0) {
17382 lt_foo="/" $lt_i lt_foo;
17383 } else {
17384 lt_count--;
17385 }
17386 }
17387 }
17388 }
17389 if (lt_foo != "") { lt_freq[lt_foo]++; }
17390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17391 }'`
17392 # AWK program above erroneously prepends '/' to C:/dos/paths
17393 # for these hosts.
17394 case $host_os in
17395 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17397 esac
17398 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17399 else
17400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17401 fi
17402 library_names_spec=
17403 libname_spec='lib$name'
17404 soname_spec=
17405 shrext_cmds=".so"
17406 postinstall_cmds=
17407 postuninstall_cmds=
17408 finish_cmds=
17409 finish_eval=
17410 shlibpath_var=
17411 shlibpath_overrides_runpath=unknown
17412 version_type=none
17413 dynamic_linker="$host_os ld.so"
17414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17415 need_lib_prefix=unknown
17416 hardcode_into_libs=no
17417
17418 # when you set need_version to no, make sure it does not cause -set_version
17419 # flags to be left without arguments
17420 need_version=unknown
17421
17422 case $host_os in
17423 aix3*)
17424 version_type=linux
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17426 shlibpath_var=LIBPATH
17427
17428 # AIX 3 has no versioning support, so we append a major version to the name.
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 ;;
17431
17432 aix[4-9]*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 hardcode_into_libs=yes
17437 if test "$host_cpu" = ia64; then
17438 # AIX 5 supports IA64
17439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 else
17442 # With GCC up to 2.95.x, collect2 would create an import file
17443 # for dependence libraries. The import file would start with
17444 # the line `#! .'. This would cause the generated library to
17445 # depend on `.', always an invalid library. This was fixed in
17446 # development snapshots of GCC prior to 3.0.
17447 case $host_os in
17448 aix4 | aix4.[01] | aix4.[01].*)
17449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17450 echo ' yes '
17451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17452 :
17453 else
17454 can_build_shared=no
17455 fi
17456 ;;
17457 esac
17458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17459 # soname into executable. Probably we can add versioning support to
17460 # collect2, so additional links can be useful in future.
17461 if test "$aix_use_runtimelinking" = yes; then
17462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17463 # instead of lib<name>.a to let people know that these are not
17464 # typical AIX shared libraries.
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 else
17467 # We preserve .a as extension for shared libraries through AIX4.2
17468 # and later when we are not doing run time linking.
17469 library_names_spec='${libname}${release}.a $libname.a'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 fi
17472 shlibpath_var=LIBPATH
17473 fi
17474 ;;
17475
17476 amigaos*)
17477 case $host_cpu in
17478 powerpc)
17479 # Since July 2007 AmigaOS4 officially supports .so libraries.
17480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 ;;
17483 m68k)
17484 library_names_spec='$libname.ixlibrary $libname.a'
17485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17486 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'
17487 ;;
17488 esac
17489 ;;
17490
17491 beos*)
17492 library_names_spec='${libname}${shared_ext}'
17493 dynamic_linker="$host_os ld.so"
17494 shlibpath_var=LIBRARY_PATH
17495 ;;
17496
17497 bsdi[45]*)
17498 version_type=linux
17499 need_version=no
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17503 shlibpath_var=LD_LIBRARY_PATH
17504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17506 # the default ld.so.conf also contains /usr/contrib/lib and
17507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17508 # libtool to hard-code these into programs
17509 ;;
17510
17511 cygwin* | mingw* | pw32* | cegcc*)
17512 version_type=windows
17513 shrext_cmds=".dll"
17514 need_version=no
17515 need_lib_prefix=no
17516
17517 case $GCC,$host_os in
17518 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17519 library_names_spec='$libname.dll.a'
17520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17521 postinstall_cmds='base_file=`basename \${file}`~
17522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17523 dldir=$destdir/`dirname \$dlpath`~
17524 test -d \$dldir || mkdir -p \$dldir~
17525 $install_prog $dir/$dlname \$dldir/$dlname~
17526 chmod a+x \$dldir/$dlname~
17527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17529 fi'
17530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17531 dlpath=$dir/\$dldll~
17532 $RM \$dlpath'
17533 shlibpath_overrides_runpath=yes
17534
17535 case $host_os in
17536 cygwin*)
17537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17539
17540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17541 ;;
17542 mingw* | cegcc*)
17543 # MinGW DLLs use traditional 'lib' prefix
17544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545 ;;
17546 pw32*)
17547 # pw32 DLLs use 'pw' prefix rather than 'lib'
17548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17549 ;;
17550 esac
17551 ;;
17552
17553 *)
17554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17555 ;;
17556 esac
17557 dynamic_linker='Win32 ld.exe'
17558 # FIXME: first we should search . and the directory the executable is in
17559 shlibpath_var=PATH
17560 ;;
17561
17562 darwin* | rhapsody*)
17563 dynamic_linker="$host_os dyld"
17564 version_type=darwin
17565 need_lib_prefix=no
17566 need_version=no
17567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17568 soname_spec='${libname}${release}${major}$shared_ext'
17569 shlibpath_overrides_runpath=yes
17570 shlibpath_var=DYLD_LIBRARY_PATH
17571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17572
17573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17575 ;;
17576
17577 dgux*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 ;;
17585
17586 freebsd* | dragonfly*)
17587 # DragonFly does not have aout. When/if they implement a new
17588 # versioning mechanism, adjust this.
17589 if test -x /usr/bin/objformat; then
17590 objformat=`/usr/bin/objformat`
17591 else
17592 case $host_os in
17593 freebsd[23].*) objformat=aout ;;
17594 *) objformat=elf ;;
17595 esac
17596 fi
17597 version_type=freebsd-$objformat
17598 case $version_type in
17599 freebsd-elf*)
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17601 need_version=no
17602 need_lib_prefix=no
17603 ;;
17604 freebsd-*)
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17606 need_version=yes
17607 ;;
17608 esac
17609 shlibpath_var=LD_LIBRARY_PATH
17610 case $host_os in
17611 freebsd2.*)
17612 shlibpath_overrides_runpath=yes
17613 ;;
17614 freebsd3.[01]* | freebsdelf3.[01]*)
17615 shlibpath_overrides_runpath=yes
17616 hardcode_into_libs=yes
17617 ;;
17618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17620 shlibpath_overrides_runpath=no
17621 hardcode_into_libs=yes
17622 ;;
17623 *) # from 4.6 on, and DragonFly
17624 shlibpath_overrides_runpath=yes
17625 hardcode_into_libs=yes
17626 ;;
17627 esac
17628 ;;
17629
17630 gnu*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 hardcode_into_libs=yes
17638 ;;
17639
17640 haiku*)
17641 version_type=linux
17642 need_lib_prefix=no
17643 need_version=no
17644 dynamic_linker="$host_os runtime_loader"
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes
17649 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17650 hardcode_into_libs=yes
17651 ;;
17652
17653 hpux9* | hpux10* | hpux11*)
17654 # Give a soname corresponding to the major version so that dld.sl refuses to
17655 # link against other versions.
17656 version_type=sunos
17657 need_lib_prefix=no
17658 need_version=no
17659 case $host_cpu in
17660 ia64*)
17661 shrext_cmds='.so'
17662 hardcode_into_libs=yes
17663 dynamic_linker="$host_os dld.so"
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 if test "X$HPUX_IA64_MODE" = X32; then
17669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17670 else
17671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17672 fi
17673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17674 ;;
17675 hppa*64*)
17676 shrext_cmds='.sl'
17677 hardcode_into_libs=yes
17678 dynamic_linker="$host_os dld.sl"
17679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17685 ;;
17686 *)
17687 shrext_cmds='.sl'
17688 dynamic_linker="$host_os dld.sl"
17689 shlibpath_var=SHLIB_PATH
17690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17694 esac
17695 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17696 postinstall_cmds='chmod 555 $lib'
17697 # or fails outright, so override atomically:
17698 install_override_mode=555
17699 ;;
17700
17701 interix[3-9]*)
17702 version_type=linux
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 shlibpath_overrides_runpath=no
17710 hardcode_into_libs=yes
17711 ;;
17712
17713 irix5* | irix6* | nonstopux*)
17714 case $host_os in
17715 nonstopux*) version_type=nonstopux ;;
17716 *)
17717 if test "$lt_cv_prog_gnu_ld" = yes; then
17718 version_type=linux
17719 else
17720 version_type=irix
17721 fi ;;
17722 esac
17723 need_lib_prefix=no
17724 need_version=no
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17727 case $host_os in
17728 irix5* | nonstopux*)
17729 libsuff= shlibsuff=
17730 ;;
17731 *)
17732 case $LD in # libtool.m4 will add one of these switches to LD
17733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17734 libsuff= shlibsuff= libmagic=32-bit;;
17735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17736 libsuff=32 shlibsuff=N32 libmagic=N32;;
17737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17738 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17739 *) libsuff= shlibsuff= libmagic=never-match;;
17740 esac
17741 ;;
17742 esac
17743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17744 shlibpath_overrides_runpath=no
17745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17747 hardcode_into_libs=yes
17748 ;;
17749
17750 # No shared lib support for Linux oldld, aout, or coff.
17751 linux*oldld* | linux*aout* | linux*coff*)
17752 dynamic_linker=no
17753 ;;
17754
17755 # This must be Linux ELF.
17756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17757 version_type=linux
17758 need_lib_prefix=no
17759 need_version=no
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17761 soname_spec='${libname}${release}${shared_ext}$major'
17762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=no
17765
17766 # Some binutils ld are patched to set DT_RUNPATH
17767 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 lt_cv_shlibpath_overrides_runpath=no
17771 save_LDFLAGS=$LDFLAGS
17772 save_libdir=$libdir
17773 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17774 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777
17778 int
17779 main ()
17780 {
17781
17782 ;
17783 return 0;
17784 }
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17788 lt_cv_shlibpath_overrides_runpath=yes
17789 fi
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LDFLAGS=$save_LDFLAGS
17794 libdir=$save_libdir
17795
17796 fi
17797
17798 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17799
17800 # This implies no fast_install, which is unacceptable.
17801 # Some rework will be needed to allow for fast_install
17802 # before this can be enabled.
17803 hardcode_into_libs=yes
17804
17805 # Append ld.so.conf contents to the search path
17806 if test -f /etc/ld.so.conf; then
17807 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' ' '`
17808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17809 fi
17810
17811 # We used to test for /lib/ld.so.1 and disable shared libraries on
17812 # powerpc, because MkLinux only supported shared libraries with the
17813 # GNU dynamic linker. Since this was broken with cross compilers,
17814 # most powerpc-linux boxes support dynamic linking these days and
17815 # people can always --disable-shared, the test was removed, and we
17816 # assume the GNU/Linux dynamic linker is in use.
17817 dynamic_linker='GNU/Linux ld.so'
17818 ;;
17819
17820 netbsd*)
17821 version_type=sunos
17822 need_lib_prefix=no
17823 need_version=no
17824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17827 dynamic_linker='NetBSD (a.out) ld.so'
17828 else
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 dynamic_linker='NetBSD ld.elf_so'
17832 fi
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17836 ;;
17837
17838 newsos6)
17839 version_type=linux
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 shlibpath_overrides_runpath=yes
17843 ;;
17844
17845 *nto* | *qnx*)
17846 version_type=qnx
17847 need_lib_prefix=no
17848 need_version=no
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=no
17853 hardcode_into_libs=yes
17854 dynamic_linker='ldqnx.so'
17855 ;;
17856
17857 openbsd*)
17858 version_type=sunos
17859 sys_lib_dlsearch_path_spec="/usr/lib"
17860 need_lib_prefix=no
17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17862 case $host_os in
17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17864 *) need_version=no ;;
17865 esac
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17870 case $host_os in
17871 openbsd2.[89] | openbsd2.[89].*)
17872 shlibpath_overrides_runpath=no
17873 ;;
17874 *)
17875 shlibpath_overrides_runpath=yes
17876 ;;
17877 esac
17878 else
17879 shlibpath_overrides_runpath=yes
17880 fi
17881 ;;
17882
17883 os2*)
17884 libname_spec='$name'
17885 shrext_cmds=".dll"
17886 need_lib_prefix=no
17887 library_names_spec='$libname${shared_ext} $libname.a'
17888 dynamic_linker='OS/2 ld.exe'
17889 shlibpath_var=LIBPATH
17890 ;;
17891
17892 osf3* | osf4* | osf5*)
17893 version_type=osf
17894 need_lib_prefix=no
17895 need_version=no
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17901 ;;
17902
17903 rdos*)
17904 dynamic_linker=no
17905 ;;
17906
17907 solaris*)
17908 version_type=linux
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 # ldd complains unless libraries are executable
17917 postinstall_cmds='chmod +x $lib'
17918 ;;
17919
17920 sunos4*)
17921 version_type=sunos
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 shlibpath_overrides_runpath=yes
17926 if test "$with_gnu_ld" = yes; then
17927 need_lib_prefix=no
17928 fi
17929 need_version=yes
17930 ;;
17931
17932 sysv4 | sysv4.3*)
17933 version_type=linux
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 soname_spec='${libname}${release}${shared_ext}$major'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 case $host_vendor in
17938 sni)
17939 shlibpath_overrides_runpath=no
17940 need_lib_prefix=no
17941 runpath_var=LD_RUN_PATH
17942 ;;
17943 siemens)
17944 need_lib_prefix=no
17945 ;;
17946 motorola)
17947 need_lib_prefix=no
17948 need_version=no
17949 shlibpath_overrides_runpath=no
17950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17951 ;;
17952 esac
17953 ;;
17954
17955 sysv4*MP*)
17956 if test -d /usr/nec ;then
17957 version_type=linux
17958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17959 soname_spec='$libname${shared_ext}.$major'
17960 shlibpath_var=LD_LIBRARY_PATH
17961 fi
17962 ;;
17963
17964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17965 version_type=freebsd-elf
17966 need_lib_prefix=no
17967 need_version=no
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath=yes
17972 hardcode_into_libs=yes
17973 if test "$with_gnu_ld" = yes; then
17974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17975 else
17976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17977 case $host_os in
17978 sco3.2v5*)
17979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17980 ;;
17981 esac
17982 fi
17983 sys_lib_dlsearch_path_spec='/usr/lib'
17984 ;;
17985
17986 tpf*)
17987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17988 version_type=linux
17989 need_lib_prefix=no
17990 need_version=no
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=no
17994 hardcode_into_libs=yes
17995 ;;
17996
17997 uts4*)
17998 version_type=linux
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18002 ;;
18003
18004 *)
18005 dynamic_linker=no
18006 ;;
18007 esac
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18009 $as_echo "$dynamic_linker" >&6; }
18010 test "$dynamic_linker" = no && can_build_shared=no
18011
18012 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18013 if test "$GCC" = yes; then
18014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18015 fi
18016
18017 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18019 fi
18020 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18022 fi
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18116 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18117 hardcode_action=
18118 if test -n "$hardcode_libdir_flag_spec" ||
18119 test -n "$runpath_var" ||
18120 test "X$hardcode_automatic" = "Xyes" ; then
18121
18122 # We can hardcode non-existent directories.
18123 if test "$hardcode_direct" != no &&
18124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18125 # have to relink, otherwise we might link with an installed library
18126 # when we should be linking with a yet-to-be-installed one
18127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18128 test "$hardcode_minus_L" != no; then
18129 # Linking always hardcodes the temporary library directory.
18130 hardcode_action=relink
18131 else
18132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18133 hardcode_action=immediate
18134 fi
18135 else
18136 # We cannot hardcode anything, or else we can only hardcode existing
18137 # directories.
18138 hardcode_action=unsupported
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18141 $as_echo "$hardcode_action" >&6; }
18142
18143 if test "$hardcode_action" = relink ||
18144 test "$inherit_rpath" = yes; then
18145 # Fast installation is not supported
18146 enable_fast_install=no
18147 elif test "$shlibpath_overrides_runpath" = yes ||
18148 test "$enable_shared" = no; then
18149 # Fast installation is not necessary
18150 enable_fast_install=needless
18151 fi
18152
18153
18154
18155
18156
18157
18158 if test "x$enable_dlopen" != xyes; then
18159 enable_dlopen=unknown
18160 enable_dlopen_self=unknown
18161 enable_dlopen_self_static=unknown
18162 else
18163 lt_cv_dlopen=no
18164 lt_cv_dlopen_libs=
18165
18166 case $host_os in
18167 beos*)
18168 lt_cv_dlopen="load_add_on"
18169 lt_cv_dlopen_libs=
18170 lt_cv_dlopen_self=yes
18171 ;;
18172
18173 mingw* | pw32* | cegcc*)
18174 lt_cv_dlopen="LoadLibrary"
18175 lt_cv_dlopen_libs=
18176 ;;
18177
18178 cygwin*)
18179 lt_cv_dlopen="dlopen"
18180 lt_cv_dlopen_libs=
18181 ;;
18182
18183 darwin*)
18184 # if libdl is installed we need to link against it
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 ac_check_lib_save_LIBS=$LIBS
18191 LIBS="-ldl $LIBS"
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 char dlopen ();
18202 int
18203 main ()
18204 {
18205 return dlopen ();
18206 ;
18207 return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_link "$LINENO"; then :
18211 ac_cv_lib_dl_dlopen=yes
18212 else
18213 ac_cv_lib_dl_dlopen=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18217 LIBS=$ac_check_lib_save_LIBS
18218 fi
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18220 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18221 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18223 else
18224
18225 lt_cv_dlopen="dyld"
18226 lt_cv_dlopen_libs=
18227 lt_cv_dlopen_self=yes
18228
18229 fi
18230
18231 ;;
18232
18233 *)
18234 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18235 if test "x$ac_cv_func_shl_load" = x""yes; then :
18236 lt_cv_dlopen="shl_load"
18237 else
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18239 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18240 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18242 else
18243 ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-ldld $LIBS"
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char shl_load ();
18255 int
18256 main ()
18257 {
18258 return shl_load ();
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 if ac_fn_c_try_link "$LINENO"; then :
18264 ac_cv_lib_dld_shl_load=yes
18265 else
18266 ac_cv_lib_dld_shl_load=no
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18271 fi
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18273 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18274 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18275 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18276 else
18277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18278 if test "x$ac_cv_func_dlopen" = x""yes; then :
18279 lt_cv_dlopen="dlopen"
18280 else
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18282 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18283 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 ac_check_lib_save_LIBS=$LIBS
18287 LIBS="-ldl $LIBS"
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char dlopen ();
18298 int
18299 main ()
18300 {
18301 return dlopen ();
18302 ;
18303 return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"; then :
18307 ac_cv_lib_dl_dlopen=yes
18308 else
18309 ac_cv_lib_dl_dlopen=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18316 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18317 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18319 else
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18321 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 ac_check_lib_save_LIBS=$LIBS
18326 LIBS="-lsvld $LIBS"
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18333 #ifdef __cplusplus
18334 extern "C"
18335 #endif
18336 char dlopen ();
18337 int
18338 main ()
18339 {
18340 return dlopen ();
18341 ;
18342 return 0;
18343 }
18344 _ACEOF
18345 if ac_fn_c_try_link "$LINENO"; then :
18346 ac_cv_lib_svld_dlopen=yes
18347 else
18348 ac_cv_lib_svld_dlopen=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18353 fi
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18355 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18356 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18358 else
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18360 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18361 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-ldld $LIBS"
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char dld_link ();
18376 int
18377 main ()
18378 {
18379 return dld_link ();
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385 ac_cv_lib_dld_dld_link=yes
18386 else
18387 ac_cv_lib_dld_dld_link=no
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18394 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18395 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18397 fi
18398
18399
18400 fi
18401
18402
18403 fi
18404
18405
18406 fi
18407
18408
18409 fi
18410
18411
18412 fi
18413
18414 ;;
18415 esac
18416
18417 if test "x$lt_cv_dlopen" != xno; then
18418 enable_dlopen=yes
18419 else
18420 enable_dlopen=no
18421 fi
18422
18423 case $lt_cv_dlopen in
18424 dlopen)
18425 save_CPPFLAGS="$CPPFLAGS"
18426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18427
18428 save_LDFLAGS="$LDFLAGS"
18429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18430
18431 save_LIBS="$LIBS"
18432 LIBS="$lt_cv_dlopen_libs $LIBS"
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18435 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18436 if test "${lt_cv_dlopen_self+set}" = set; then :
18437 $as_echo_n "(cached) " >&6
18438 else
18439 if test "$cross_compiling" = yes; then :
18440 lt_cv_dlopen_self=cross
18441 else
18442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18443 lt_status=$lt_dlunknown
18444 cat > conftest.$ac_ext <<_LT_EOF
18445 #line 18445 "configure"
18446 #include "confdefs.h"
18447
18448 #if HAVE_DLFCN_H
18449 #include <dlfcn.h>
18450 #endif
18451
18452 #include <stdio.h>
18453
18454 #ifdef RTLD_GLOBAL
18455 # define LT_DLGLOBAL RTLD_GLOBAL
18456 #else
18457 # ifdef DL_GLOBAL
18458 # define LT_DLGLOBAL DL_GLOBAL
18459 # else
18460 # define LT_DLGLOBAL 0
18461 # endif
18462 #endif
18463
18464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18465 find out it does not work in some platform. */
18466 #ifndef LT_DLLAZY_OR_NOW
18467 # ifdef RTLD_LAZY
18468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18469 # else
18470 # ifdef DL_LAZY
18471 # define LT_DLLAZY_OR_NOW DL_LAZY
18472 # else
18473 # ifdef RTLD_NOW
18474 # define LT_DLLAZY_OR_NOW RTLD_NOW
18475 # else
18476 # ifdef DL_NOW
18477 # define LT_DLLAZY_OR_NOW DL_NOW
18478 # else
18479 # define LT_DLLAZY_OR_NOW 0
18480 # endif
18481 # endif
18482 # endif
18483 # endif
18484 #endif
18485
18486 /* When -fvisbility=hidden is used, assume the code has been annotated
18487 correspondingly for the symbols needed. */
18488 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18489 void fnord () __attribute__((visibility("default")));
18490 #endif
18491
18492 void fnord () { int i=42; }
18493 int main ()
18494 {
18495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18496 int status = $lt_dlunknown;
18497
18498 if (self)
18499 {
18500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18501 else
18502 {
18503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18504 else puts (dlerror ());
18505 }
18506 /* dlclose (self); */
18507 }
18508 else
18509 puts (dlerror ());
18510
18511 return status;
18512 }
18513 _LT_EOF
18514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18515 (eval $ac_link) 2>&5
18516 ac_status=$?
18517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18518 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18519 (./conftest; exit; ) >&5 2>/dev/null
18520 lt_status=$?
18521 case x$lt_status in
18522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18525 esac
18526 else :
18527 # compilation failed
18528 lt_cv_dlopen_self=no
18529 fi
18530 fi
18531 rm -fr conftest*
18532
18533
18534 fi
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18536 $as_echo "$lt_cv_dlopen_self" >&6; }
18537
18538 if test "x$lt_cv_dlopen_self" = xyes; then
18539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18541 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18542 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18543 $as_echo_n "(cached) " >&6
18544 else
18545 if test "$cross_compiling" = yes; then :
18546 lt_cv_dlopen_self_static=cross
18547 else
18548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549 lt_status=$lt_dlunknown
18550 cat > conftest.$ac_ext <<_LT_EOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18553
18554 #if HAVE_DLFCN_H
18555 #include <dlfcn.h>
18556 #endif
18557
18558 #include <stdio.h>
18559
18560 #ifdef RTLD_GLOBAL
18561 # define LT_DLGLOBAL RTLD_GLOBAL
18562 #else
18563 # ifdef DL_GLOBAL
18564 # define LT_DLGLOBAL DL_GLOBAL
18565 # else
18566 # define LT_DLGLOBAL 0
18567 # endif
18568 #endif
18569
18570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571 find out it does not work in some platform. */
18572 #ifndef LT_DLLAZY_OR_NOW
18573 # ifdef RTLD_LAZY
18574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18575 # else
18576 # ifdef DL_LAZY
18577 # define LT_DLLAZY_OR_NOW DL_LAZY
18578 # else
18579 # ifdef RTLD_NOW
18580 # define LT_DLLAZY_OR_NOW RTLD_NOW
18581 # else
18582 # ifdef DL_NOW
18583 # define LT_DLLAZY_OR_NOW DL_NOW
18584 # else
18585 # define LT_DLLAZY_OR_NOW 0
18586 # endif
18587 # endif
18588 # endif
18589 # endif
18590 #endif
18591
18592 /* When -fvisbility=hidden is used, assume the code has been annotated
18593 correspondingly for the symbols needed. */
18594 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18595 void fnord () __attribute__((visibility("default")));
18596 #endif
18597
18598 void fnord () { int i=42; }
18599 int main ()
18600 {
18601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18602 int status = $lt_dlunknown;
18603
18604 if (self)
18605 {
18606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18607 else
18608 {
18609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18610 else puts (dlerror ());
18611 }
18612 /* dlclose (self); */
18613 }
18614 else
18615 puts (dlerror ());
18616
18617 return status;
18618 }
18619 _LT_EOF
18620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18621 (eval $ac_link) 2>&5
18622 ac_status=$?
18623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18625 (./conftest; exit; ) >&5 2>/dev/null
18626 lt_status=$?
18627 case x$lt_status in
18628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18631 esac
18632 else :
18633 # compilation failed
18634 lt_cv_dlopen_self_static=no
18635 fi
18636 fi
18637 rm -fr conftest*
18638
18639
18640 fi
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18642 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18643 fi
18644
18645 CPPFLAGS="$save_CPPFLAGS"
18646 LDFLAGS="$save_LDFLAGS"
18647 LIBS="$save_LIBS"
18648 ;;
18649 esac
18650
18651 case $lt_cv_dlopen_self in
18652 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18653 *) enable_dlopen_self=unknown ;;
18654 esac
18655
18656 case $lt_cv_dlopen_self_static in
18657 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18658 *) enable_dlopen_self_static=unknown ;;
18659 esac
18660 fi
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678 striplib=
18679 old_striplib=
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18681 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18682 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687 else
18688 # FIXME - insert some real tests, host_os isn't really good enough
18689 case $host_os in
18690 darwin*)
18691 if test -n "$STRIP" ; then
18692 striplib="$STRIP -x"
18693 old_striplib="$STRIP -S"
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18695 $as_echo "yes" >&6; }
18696 else
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18698 $as_echo "no" >&6; }
18699 fi
18700 ;;
18701 *)
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18704 ;;
18705 esac
18706 fi
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719 # Report which library types will actually be built
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18721 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18723 $as_echo "$can_build_shared" >&6; }
18724
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18726 $as_echo_n "checking whether to build shared libraries... " >&6; }
18727 test "$can_build_shared" = "no" && enable_shared=no
18728
18729 # On AIX, shared libraries and static libraries use the same namespace, and
18730 # are all built from PIC.
18731 case $host_os in
18732 aix3*)
18733 test "$enable_shared" = yes && enable_static=no
18734 if test -n "$RANLIB"; then
18735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18736 postinstall_cmds='$RANLIB $lib'
18737 fi
18738 ;;
18739
18740 aix[4-9]*)
18741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18742 test "$enable_shared" = yes && enable_static=no
18743 fi
18744 ;;
18745 esac
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18747 $as_echo "$enable_shared" >&6; }
18748
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18750 $as_echo_n "checking whether to build static libraries... " >&6; }
18751 # Make sure either enable_shared or enable_static is yes.
18752 test "$enable_shared" = yes || enable_static=yes
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18754 $as_echo "$enable_static" >&6; }
18755
18756
18757
18758
18759 fi
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 CC="$lt_save_CC"
18767
18768 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18769 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18770 (test "X$CXX" != "Xg++"))) ; then
18771 ac_ext=cpp
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18777 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18778 if test -z "$CXXCPP"; then
18779 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 # Double quotes because CXXCPP needs to be expanded
18783 for CXXCPP in "$CXX -E" "/lib/cpp"
18784 do
18785 ac_preproc_ok=false
18786 for ac_cxx_preproc_warn_flag in '' yes
18787 do
18788 # Use a header file that comes with gcc, so configuring glibc
18789 # with a fresh cross-compiler works.
18790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 # <limits.h> exists even on freestanding compilers.
18792 # On the NeXT, cc -E runs the code through the compiler's parser,
18793 # not just through cpp. "Syntax error" is here to catch this case.
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #ifdef __STDC__
18797 # include <limits.h>
18798 #else
18799 # include <assert.h>
18800 #endif
18801 Syntax error
18802 _ACEOF
18803 if ac_fn_cxx_try_cpp "$LINENO"; then :
18804
18805 else
18806 # Broken: fails on valid input.
18807 continue
18808 fi
18809 rm -f conftest.err conftest.$ac_ext
18810
18811 # OK, works on sane cases. Now check whether nonexistent headers
18812 # can be detected and how.
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #include <ac_nonexistent.h>
18816 _ACEOF
18817 if ac_fn_cxx_try_cpp "$LINENO"; then :
18818 # Broken: success on invalid input.
18819 continue
18820 else
18821 # Passes both tests.
18822 ac_preproc_ok=:
18823 break
18824 fi
18825 rm -f conftest.err conftest.$ac_ext
18826
18827 done
18828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18829 rm -f conftest.err conftest.$ac_ext
18830 if $ac_preproc_ok; then :
18831 break
18832 fi
18833
18834 done
18835 ac_cv_prog_CXXCPP=$CXXCPP
18836
18837 fi
18838 CXXCPP=$ac_cv_prog_CXXCPP
18839 else
18840 ac_cv_prog_CXXCPP=$CXXCPP
18841 fi
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18843 $as_echo "$CXXCPP" >&6; }
18844 ac_preproc_ok=false
18845 for ac_cxx_preproc_warn_flag in '' yes
18846 do
18847 # Use a header file that comes with gcc, so configuring glibc
18848 # with a fresh cross-compiler works.
18849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18850 # <limits.h> exists even on freestanding compilers.
18851 # On the NeXT, cc -E runs the code through the compiler's parser,
18852 # not just through cpp. "Syntax error" is here to catch this case.
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855 #ifdef __STDC__
18856 # include <limits.h>
18857 #else
18858 # include <assert.h>
18859 #endif
18860 Syntax error
18861 _ACEOF
18862 if ac_fn_cxx_try_cpp "$LINENO"; then :
18863
18864 else
18865 # Broken: fails on valid input.
18866 continue
18867 fi
18868 rm -f conftest.err conftest.$ac_ext
18869
18870 # OK, works on sane cases. Now check whether nonexistent headers
18871 # can be detected and how.
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 #include <ac_nonexistent.h>
18875 _ACEOF
18876 if ac_fn_cxx_try_cpp "$LINENO"; then :
18877 # Broken: success on invalid input.
18878 continue
18879 else
18880 # Passes both tests.
18881 ac_preproc_ok=:
18882 break
18883 fi
18884 rm -f conftest.err conftest.$ac_ext
18885
18886 done
18887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18888 rm -f conftest.err conftest.$ac_ext
18889 if $ac_preproc_ok; then :
18890
18891 else
18892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18894 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18895 See \`config.log' for more details." "$LINENO" 5; }
18896 fi
18897
18898 ac_ext=cpp
18899 ac_cpp='$CXXCPP $CPPFLAGS'
18900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18903
18904 else
18905 _lt_caught_CXX_error=yes
18906 fi
18907
18908 ac_ext=cpp
18909 ac_cpp='$CXXCPP $CPPFLAGS'
18910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18913
18914 archive_cmds_need_lc_CXX=no
18915 allow_undefined_flag_CXX=
18916 always_export_symbols_CXX=no
18917 archive_expsym_cmds_CXX=
18918 compiler_needs_object_CXX=no
18919 export_dynamic_flag_spec_CXX=
18920 hardcode_direct_CXX=no
18921 hardcode_direct_absolute_CXX=no
18922 hardcode_libdir_flag_spec_CXX=
18923 hardcode_libdir_flag_spec_ld_CXX=
18924 hardcode_libdir_separator_CXX=
18925 hardcode_minus_L_CXX=no
18926 hardcode_shlibpath_var_CXX=unsupported
18927 hardcode_automatic_CXX=no
18928 inherit_rpath_CXX=no
18929 module_cmds_CXX=
18930 module_expsym_cmds_CXX=
18931 link_all_deplibs_CXX=unknown
18932 old_archive_cmds_CXX=$old_archive_cmds
18933 reload_flag_CXX=$reload_flag
18934 reload_cmds_CXX=$reload_cmds
18935 no_undefined_flag_CXX=
18936 whole_archive_flag_spec_CXX=
18937 enable_shared_with_static_runtimes_CXX=no
18938
18939 # Source file extension for C++ test sources.
18940 ac_ext=cpp
18941
18942 # Object file extension for compiled C++ test sources.
18943 objext=o
18944 objext_CXX=$objext
18945
18946 # No sense in running all these tests if we already determined that
18947 # the CXX compiler isn't working. Some variables (like enable_shared)
18948 # are currently assumed to apply to all compilers on this platform,
18949 # and will be corrupted by setting them based on a non-working compiler.
18950 if test "$_lt_caught_CXX_error" != yes; then
18951 # Code to be used in simple compile tests
18952 lt_simple_compile_test_code="int some_variable = 0;"
18953
18954 # Code to be used in simple link tests
18955 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18956
18957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18958
18959
18960
18961
18962
18963
18964 # If no C compiler was specified, use CC.
18965 LTCC=${LTCC-"$CC"}
18966
18967 # If no C compiler flags were specified, use CFLAGS.
18968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18969
18970 # Allow CC to be a program name with arguments.
18971 compiler=$CC
18972
18973
18974 # save warnings/boilerplate of simple test code
18975 ac_outfile=conftest.$ac_objext
18976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18978 _lt_compiler_boilerplate=`cat conftest.err`
18979 $RM conftest*
18980
18981 ac_outfile=conftest.$ac_objext
18982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18984 _lt_linker_boilerplate=`cat conftest.err`
18985 $RM -r conftest*
18986
18987
18988 # Allow CC to be a program name with arguments.
18989 lt_save_CC=$CC
18990 lt_save_LD=$LD
18991 lt_save_GCC=$GCC
18992 GCC=$GXX
18993 lt_save_with_gnu_ld=$with_gnu_ld
18994 lt_save_path_LD=$lt_cv_path_LD
18995 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18996 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18997 else
18998 $as_unset lt_cv_prog_gnu_ld
18999 fi
19000 if test -n "${lt_cv_path_LDCXX+set}"; then
19001 lt_cv_path_LD=$lt_cv_path_LDCXX
19002 else
19003 $as_unset lt_cv_path_LD
19004 fi
19005 test -z "${LDCXX+set}" || LD=$LDCXX
19006 CC=${CXX-"c++"}
19007 compiler=$CC
19008 compiler_CXX=$CC
19009 for cc_temp in $compiler""; do
19010 case $cc_temp in
19011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19013 \-*) ;;
19014 *) break;;
19015 esac
19016 done
19017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19018
19019
19020 if test -n "$compiler"; then
19021 # We don't want -fno-exception when compiling C++ code, so set the
19022 # no_builtin_flag separately
19023 if test "$GXX" = yes; then
19024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19025 else
19026 lt_prog_compiler_no_builtin_flag_CXX=
19027 fi
19028
19029 if test "$GXX" = yes; then
19030 # Set up default GNU C++ configuration
19031
19032
19033
19034 # Check whether --with-gnu-ld was given.
19035 if test "${with_gnu_ld+set}" = set; then :
19036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19037 else
19038 with_gnu_ld=no
19039 fi
19040
19041 ac_prog=ld
19042 if test "$GCC" = yes; then
19043 # Check if gcc -print-prog-name=ld gives a path.
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19045 $as_echo_n "checking for ld used by $CC... " >&6; }
19046 case $host in
19047 *-*-mingw*)
19048 # gcc leaves a trailing carriage return which upsets mingw
19049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19050 *)
19051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19052 esac
19053 case $ac_prog in
19054 # Accept absolute paths.
19055 [\\/]* | ?:[\\/]*)
19056 re_direlt='/[^/][^/]*/\.\./'
19057 # Canonicalize the pathname of ld
19058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19061 done
19062 test -z "$LD" && LD="$ac_prog"
19063 ;;
19064 "")
19065 # If it fails, then pretend we aren't using GCC.
19066 ac_prog=ld
19067 ;;
19068 *)
19069 # If it is relative, then search for the first ld in PATH.
19070 with_gnu_ld=unknown
19071 ;;
19072 esac
19073 elif test "$with_gnu_ld" = yes; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19075 $as_echo_n "checking for GNU ld... " >&6; }
19076 else
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19078 $as_echo_n "checking for non-GNU ld... " >&6; }
19079 fi
19080 if test "${lt_cv_path_LD+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 if test -z "$LD"; then
19084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19085 for ac_dir in $PATH; do
19086 IFS="$lt_save_ifs"
19087 test -z "$ac_dir" && ac_dir=.
19088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19089 lt_cv_path_LD="$ac_dir/$ac_prog"
19090 # Check to see if the program is GNU ld. I'd rather use --version,
19091 # but apparently some variants of GNU ld only accept -v.
19092 # Break only if it was the GNU/non-GNU ld that we prefer.
19093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19094 *GNU* | *'with BFD'*)
19095 test "$with_gnu_ld" != no && break
19096 ;;
19097 *)
19098 test "$with_gnu_ld" != yes && break
19099 ;;
19100 esac
19101 fi
19102 done
19103 IFS="$lt_save_ifs"
19104 else
19105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19106 fi
19107 fi
19108
19109 LD="$lt_cv_path_LD"
19110 if test -n "$LD"; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19112 $as_echo "$LD" >&6; }
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19116 fi
19117 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19121 $as_echo_n "(cached) " >&6
19122 else
19123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19124 case `$LD -v 2>&1 </dev/null` in
19125 *GNU* | *'with BFD'*)
19126 lt_cv_prog_gnu_ld=yes
19127 ;;
19128 *)
19129 lt_cv_prog_gnu_ld=no
19130 ;;
19131 esac
19132 fi
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19135 with_gnu_ld=$lt_cv_prog_gnu_ld
19136
19137
19138
19139
19140
19141
19142
19143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19144 # archiving commands below assume that GNU ld is being used.
19145 if test "$with_gnu_ld" = yes; then
19146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147 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'
19148
19149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19151
19152 # If archive_cmds runs LD, not CC, wlarc should be empty
19153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19154 # investigate it a little bit more. (MM)
19155 wlarc='${wl}'
19156
19157 # ancient GNU ld didn't support --whole-archive et. al.
19158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19159 $GREP 'no-whole-archive' > /dev/null; then
19160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19161 else
19162 whole_archive_flag_spec_CXX=
19163 fi
19164 else
19165 with_gnu_ld=no
19166 wlarc=
19167
19168 # A generic and very simple default shared library creation
19169 # command for GNU C++ for the case where it uses the native
19170 # linker, instead of GNU ld. If possible, this setting should
19171 # overridden to take advantage of the native linker features on
19172 # the platform it is being used on.
19173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19174 fi
19175
19176 # Commands to make compiler produce verbose output that lists
19177 # what "hidden" libraries, object files and flags are used when
19178 # linking a shared library.
19179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19180
19181 else
19182 GXX=no
19183 with_gnu_ld=no
19184 wlarc=
19185 fi
19186
19187 # PORTME: fill in a description of your system's C++ link characteristics
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19190 ld_shlibs_CXX=yes
19191 case $host_os in
19192 aix3*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 aix[4-9]*)
19197 if test "$host_cpu" = ia64; then
19198 # On IA64, the linker does run time linking by default, so we don't
19199 # have to do anything special.
19200 aix_use_runtimelinking=no
19201 exp_sym_flag='-Bexport'
19202 no_entry_flag=""
19203 else
19204 aix_use_runtimelinking=no
19205
19206 # Test if we are trying to use run time linking or normal
19207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19208 # need to do runtime linking.
19209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19210 for ld_flag in $LDFLAGS; do
19211 case $ld_flag in
19212 *-brtl*)
19213 aix_use_runtimelinking=yes
19214 break
19215 ;;
19216 esac
19217 done
19218 ;;
19219 esac
19220
19221 exp_sym_flag='-bexport'
19222 no_entry_flag='-bnoentry'
19223 fi
19224
19225 # When large executables or shared objects are built, AIX ld can
19226 # have problems creating the table of contents. If linking a library
19227 # or program results in "error TOC overflow" add -mminimal-toc to
19228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19230
19231 archive_cmds_CXX=''
19232 hardcode_direct_CXX=yes
19233 hardcode_direct_absolute_CXX=yes
19234 hardcode_libdir_separator_CXX=':'
19235 link_all_deplibs_CXX=yes
19236 file_list_spec_CXX='${wl}-f,'
19237
19238 if test "$GXX" = yes; then
19239 case $host_os in aix4.[012]|aix4.[012].*)
19240 # We only want to do this on AIX 4.2 and lower, the check
19241 # below for broken collect2 doesn't work under 4.3+
19242 collect2name=`${CC} -print-prog-name=collect2`
19243 if test -f "$collect2name" &&
19244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19245 then
19246 # We have reworked collect2
19247 :
19248 else
19249 # We have old collect2
19250 hardcode_direct_CXX=unsupported
19251 # It fails to find uninstalled libraries when the uninstalled
19252 # path is not listed in the libpath. Setting hardcode_minus_L
19253 # to unsupported forces relinking
19254 hardcode_minus_L_CXX=yes
19255 hardcode_libdir_flag_spec_CXX='-L$libdir'
19256 hardcode_libdir_separator_CXX=
19257 fi
19258 esac
19259 shared_flag='-shared'
19260 if test "$aix_use_runtimelinking" = yes; then
19261 shared_flag="$shared_flag "'${wl}-G'
19262 fi
19263 else
19264 # not using gcc
19265 if test "$host_cpu" = ia64; then
19266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19267 # chokes on -Wl,-G. The following line is correct:
19268 shared_flag='-G'
19269 else
19270 if test "$aix_use_runtimelinking" = yes; then
19271 shared_flag='${wl}-G'
19272 else
19273 shared_flag='${wl}-bM:SRE'
19274 fi
19275 fi
19276 fi
19277
19278 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19279 # It seems that -bexpall does not export symbols beginning with
19280 # underscore (_), so it is better to generate a list of symbols to
19281 # export.
19282 always_export_symbols_CXX=yes
19283 if test "$aix_use_runtimelinking" = yes; then
19284 # Warning - without using the other runtime loading flags (-brtl),
19285 # -berok will link without error, but may produce a broken library.
19286 allow_undefined_flag_CXX='-berok'
19287 # Determine the default libpath from the value encoded in an empty
19288 # executable.
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19291
19292 int
19293 main ()
19294 {
19295
19296 ;
19297 return 0;
19298 }
19299 _ACEOF
19300 if ac_fn_cxx_try_link "$LINENO"; then :
19301
19302 lt_aix_libpath_sed='
19303 /Import File Strings/,/^$/ {
19304 /^0/ {
19305 s/^0 *\(.*\)$/\1/
19306 p
19307 }
19308 }'
19309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19310 # Check for a 64-bit object if we didn't find anything.
19311 if test -z "$aix_libpath"; then
19312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19313 fi
19314 fi
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19318
19319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19320
19321 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"
19322 else
19323 if test "$host_cpu" = ia64; then
19324 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19325 allow_undefined_flag_CXX="-z nodefs"
19326 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"
19327 else
19328 # Determine the default libpath from the value encoded in an
19329 # empty executable.
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19332
19333 int
19334 main ()
19335 {
19336
19337 ;
19338 return 0;
19339 }
19340 _ACEOF
19341 if ac_fn_cxx_try_link "$LINENO"; then :
19342
19343 lt_aix_libpath_sed='
19344 /Import File Strings/,/^$/ {
19345 /^0/ {
19346 s/^0 *\(.*\)$/\1/
19347 p
19348 }
19349 }'
19350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19351 # Check for a 64-bit object if we didn't find anything.
19352 if test -z "$aix_libpath"; then
19353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19354 fi
19355 fi
19356 rm -f core conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19359
19360 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19361 # Warning - without using the other run time loading flags,
19362 # -berok will link without error, but may produce a broken library.
19363 no_undefined_flag_CXX=' ${wl}-bernotok'
19364 allow_undefined_flag_CXX=' ${wl}-berok'
19365 if test "$with_gnu_ld" = yes; then
19366 # We only use this code for GNU lds that support --whole-archive.
19367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19368 else
19369 # Exported symbols can be pulled into shared objects from archives
19370 whole_archive_flag_spec_CXX='$convenience'
19371 fi
19372 archive_cmds_need_lc_CXX=yes
19373 # This is similar to how AIX traditionally builds its shared
19374 # libraries.
19375 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'
19376 fi
19377 fi
19378 ;;
19379
19380 beos*)
19381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19382 allow_undefined_flag_CXX=unsupported
19383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19384 # support --undefined. This deserves some investigation. FIXME
19385 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19386 else
19387 ld_shlibs_CXX=no
19388 fi
19389 ;;
19390
19391 chorus*)
19392 case $cc_basename in
19393 *)
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19396 ;;
19397 esac
19398 ;;
19399
19400 cygwin* | mingw* | pw32* | cegcc*)
19401 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19402 # as there is no search path for DLLs.
19403 hardcode_libdir_flag_spec_CXX='-L$libdir'
19404 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19405 allow_undefined_flag_CXX=unsupported
19406 always_export_symbols_CXX=no
19407 enable_shared_with_static_runtimes_CXX=yes
19408
19409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19410 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'
19411 # If the export-symbols file already is a .def file (1st line
19412 # is EXPORTS), use it as is; otherwise, prepend...
19413 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19414 cp $export_symbols $output_objdir/$soname.def;
19415 else
19416 echo EXPORTS > $output_objdir/$soname.def;
19417 cat $export_symbols >> $output_objdir/$soname.def;
19418 fi~
19419 $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'
19420 else
19421 ld_shlibs_CXX=no
19422 fi
19423 ;;
19424 darwin* | rhapsody*)
19425
19426
19427 archive_cmds_need_lc_CXX=no
19428 hardcode_direct_CXX=no
19429 hardcode_automatic_CXX=yes
19430 hardcode_shlibpath_var_CXX=unsupported
19431 if test "$lt_cv_ld_force_load" = "yes"; then
19432 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\"`'
19433 else
19434 whole_archive_flag_spec_CXX=''
19435 fi
19436 link_all_deplibs_CXX=yes
19437 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19438 case $cc_basename in
19439 ifort*) _lt_dar_can_shared=yes ;;
19440 *) _lt_dar_can_shared=$GCC ;;
19441 esac
19442 if test "$_lt_dar_can_shared" = "yes"; then
19443 output_verbose_link_cmd=func_echo_all
19444 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}"
19445 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19446 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}"
19447 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}"
19448 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19449 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}"
19450 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}"
19451 fi
19452
19453 else
19454 ld_shlibs_CXX=no
19455 fi
19456
19457 ;;
19458
19459 dgux*)
19460 case $cc_basename in
19461 ec++*)
19462 # FIXME: insert proper C++ library support
19463 ld_shlibs_CXX=no
19464 ;;
19465 ghcx*)
19466 # Green Hills C++ Compiler
19467 # FIXME: insert proper C++ library support
19468 ld_shlibs_CXX=no
19469 ;;
19470 *)
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19473 ;;
19474 esac
19475 ;;
19476
19477 freebsd2.*)
19478 # C++ shared libraries reported to be fairly broken before
19479 # switch to ELF
19480 ld_shlibs_CXX=no
19481 ;;
19482
19483 freebsd-elf*)
19484 archive_cmds_need_lc_CXX=no
19485 ;;
19486
19487 freebsd* | dragonfly*)
19488 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19489 # conventions
19490 ld_shlibs_CXX=yes
19491 ;;
19492
19493 gnu*)
19494 ;;
19495
19496 haiku*)
19497 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19498 link_all_deplibs_CXX=yes
19499 ;;
19500
19501 hpux9*)
19502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19503 hardcode_libdir_separator_CXX=:
19504 export_dynamic_flag_spec_CXX='${wl}-E'
19505 hardcode_direct_CXX=yes
19506 hardcode_minus_L_CXX=yes # Not in the search PATH,
19507 # but as the default
19508 # location of the library.
19509
19510 case $cc_basename in
19511 CC*)
19512 # FIXME: insert proper C++ library support
19513 ld_shlibs_CXX=no
19514 ;;
19515 aCC*)
19516 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'
19517 # Commands to make compiler produce verbose output that lists
19518 # what "hidden" libraries, object files and flags are used when
19519 # linking a shared library.
19520 #
19521 # There doesn't appear to be a way to prevent this compiler from
19522 # explicitly linking system object files so we need to strip them
19523 # from the output so that they don't get included in the library
19524 # dependencies.
19525 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"'
19526 ;;
19527 *)
19528 if test "$GXX" = yes; then
19529 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'
19530 else
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19533 fi
19534 ;;
19535 esac
19536 ;;
19537
19538 hpux10*|hpux11*)
19539 if test $with_gnu_ld = no; then
19540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19541 hardcode_libdir_separator_CXX=:
19542
19543 case $host_cpu in
19544 hppa*64*|ia64*)
19545 ;;
19546 *)
19547 export_dynamic_flag_spec_CXX='${wl}-E'
19548 ;;
19549 esac
19550 fi
19551 case $host_cpu in
19552 hppa*64*|ia64*)
19553 hardcode_direct_CXX=no
19554 hardcode_shlibpath_var_CXX=no
19555 ;;
19556 *)
19557 hardcode_direct_CXX=yes
19558 hardcode_direct_absolute_CXX=yes
19559 hardcode_minus_L_CXX=yes # Not in the search PATH,
19560 # but as the default
19561 # location of the library.
19562 ;;
19563 esac
19564
19565 case $cc_basename in
19566 CC*)
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19569 ;;
19570 aCC*)
19571 case $host_cpu in
19572 hppa*64*)
19573 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19574 ;;
19575 ia64*)
19576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 ;;
19578 *)
19579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 ;;
19581 esac
19582 # Commands to make compiler produce verbose output that lists
19583 # what "hidden" libraries, object files and flags are used when
19584 # linking a shared library.
19585 #
19586 # There doesn't appear to be a way to prevent this compiler from
19587 # explicitly linking system object files so we need to strip them
19588 # from the output so that they don't get included in the library
19589 # dependencies.
19590 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"'
19591 ;;
19592 *)
19593 if test "$GXX" = yes; then
19594 if test $with_gnu_ld = no; then
19595 case $host_cpu in
19596 hppa*64*)
19597 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 ;;
19599 ia64*)
19600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 ;;
19602 *)
19603 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'
19604 ;;
19605 esac
19606 fi
19607 else
19608 # FIXME: insert proper C++ library support
19609 ld_shlibs_CXX=no
19610 fi
19611 ;;
19612 esac
19613 ;;
19614
19615 interix[3-9]*)
19616 hardcode_direct_CXX=no
19617 hardcode_shlibpath_var_CXX=no
19618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19619 export_dynamic_flag_spec_CXX='${wl}-E'
19620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19621 # Instead, shared libraries are loaded at an image base (0x10000000 by
19622 # default) and relocated if they conflict, which is a slow very memory
19623 # consuming and fragmenting process. To avoid this, we pick a random,
19624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19626 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'
19627 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'
19628 ;;
19629 irix5* | irix6*)
19630 case $cc_basename in
19631 CC*)
19632 # SGI C++
19633 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'
19634
19635 # Archives containing C++ object files must be created using
19636 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19637 # necessary to make sure instantiated templates are included
19638 # in the archive.
19639 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19640 ;;
19641 *)
19642 if test "$GXX" = yes; then
19643 if test "$with_gnu_ld" = no; then
19644 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'
19645 else
19646 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'
19647 fi
19648 fi
19649 link_all_deplibs_CXX=yes
19650 ;;
19651 esac
19652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19653 hardcode_libdir_separator_CXX=:
19654 inherit_rpath_CXX=yes
19655 ;;
19656
19657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19658 case $cc_basename in
19659 KCC*)
19660 # Kuck and Associates, Inc. (KAI) C++ Compiler
19661
19662 # KCC will only create a shared library if the output file
19663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19664 # to its proper name (with version) after linking.
19665 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'
19666 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'
19667 # Commands to make compiler produce verbose output that lists
19668 # what "hidden" libraries, object files and flags are used when
19669 # linking a shared library.
19670 #
19671 # There doesn't appear to be a way to prevent this compiler from
19672 # explicitly linking system object files so we need to strip them
19673 # from the output so that they don't get included in the library
19674 # dependencies.
19675 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"'
19676
19677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19679
19680 # Archives containing C++ object files must be created using
19681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19683 ;;
19684 icpc* | ecpc* )
19685 # Intel C++
19686 with_gnu_ld=yes
19687 # version 8.0 and above of icpc choke on multiply defined symbols
19688 # if we add $predep_objects and $postdep_objects, however 7.1 and
19689 # earlier do not add the objects themselves.
19690 case `$CC -V 2>&1` in
19691 *"Version 7."*)
19692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19693 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'
19694 ;;
19695 *) # Version 8.0 or newer
19696 tmp_idyn=
19697 case $host_cpu in
19698 ia64*) tmp_idyn=' -i_dynamic';;
19699 esac
19700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19701 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'
19702 ;;
19703 esac
19704 archive_cmds_need_lc_CXX=no
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19708 ;;
19709 pgCC* | pgcpp*)
19710 # Portland Group C++ compiler
19711 case `$CC -V` in
19712 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19713 prelink_cmds_CXX='tpldir=Template.dir~
19714 rm -rf $tpldir~
19715 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19716 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19717 old_archive_cmds_CXX='tpldir=Template.dir~
19718 rm -rf $tpldir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19720 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19721 $RANLIB $oldlib'
19722 archive_cmds_CXX='tpldir=Template.dir~
19723 rm -rf $tpldir~
19724 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19725 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19726 archive_expsym_cmds_CXX='tpldir=Template.dir~
19727 rm -rf $tpldir~
19728 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19729 $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'
19730 ;;
19731 *) # Version 6 and above use weak symbols
19732 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19733 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'
19734 ;;
19735 esac
19736
19737 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19739 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'
19740 ;;
19741 cxx*)
19742 # Compaq C++
19743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19744 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'
19745
19746 runpath_var=LD_RUN_PATH
19747 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19748 hardcode_libdir_separator_CXX=:
19749
19750 # Commands to make compiler produce verbose output that lists
19751 # what "hidden" libraries, object files and flags are used when
19752 # linking a shared library.
19753 #
19754 # There doesn't appear to be a way to prevent this compiler from
19755 # explicitly linking system object files so we need to strip them
19756 # from the output so that they don't get included in the library
19757 # dependencies.
19758 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'
19759 ;;
19760 xl* | mpixl* | bgxl*)
19761 # IBM XL 8.0 on PPC, with GNU ld
19762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19764 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19765 if test "x$supports_anon_versioning" = xyes; then
19766 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19768 echo "local: *; };" >> $output_objdir/$libname.ver~
19769 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19770 fi
19771 ;;
19772 *)
19773 case `$CC -V 2>&1 | sed 5q` in
19774 *Sun\ C*)
19775 # Sun C++ 5.9
19776 no_undefined_flag_CXX=' -zdefs'
19777 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19778 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'
19779 hardcode_libdir_flag_spec_CXX='-R$libdir'
19780 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'
19781 compiler_needs_object_CXX=yes
19782
19783 # Not sure whether something based on
19784 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19785 # would be better.
19786 output_verbose_link_cmd='func_echo_all'
19787
19788 # Archives containing C++ object files must be created using
19789 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19790 # necessary to make sure instantiated templates are included
19791 # in the archive.
19792 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19793 ;;
19794 esac
19795 ;;
19796 esac
19797 ;;
19798
19799 lynxos*)
19800 # FIXME: insert proper C++ library support
19801 ld_shlibs_CXX=no
19802 ;;
19803
19804 m88k*)
19805 # FIXME: insert proper C++ library support
19806 ld_shlibs_CXX=no
19807 ;;
19808
19809 mvs*)
19810 case $cc_basename in
19811 cxx*)
19812 # FIXME: insert proper C++ library support
19813 ld_shlibs_CXX=no
19814 ;;
19815 *)
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19818 ;;
19819 esac
19820 ;;
19821
19822 netbsd*)
19823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19824 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19825 wlarc=
19826 hardcode_libdir_flag_spec_CXX='-R$libdir'
19827 hardcode_direct_CXX=yes
19828 hardcode_shlibpath_var_CXX=no
19829 fi
19830 # Workaround some broken pre-1.5 toolchains
19831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19832 ;;
19833
19834 *nto* | *qnx*)
19835 ld_shlibs_CXX=yes
19836 ;;
19837
19838 openbsd2*)
19839 # C++ shared libraries are fairly broken
19840 ld_shlibs_CXX=no
19841 ;;
19842
19843 openbsd*)
19844 if test -f /usr/libexec/ld.so; then
19845 hardcode_direct_CXX=yes
19846 hardcode_shlibpath_var_CXX=no
19847 hardcode_direct_absolute_CXX=yes
19848 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19851 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19852 export_dynamic_flag_spec_CXX='${wl}-E'
19853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19854 fi
19855 output_verbose_link_cmd=func_echo_all
19856 else
19857 ld_shlibs_CXX=no
19858 fi
19859 ;;
19860
19861 osf3* | osf4* | osf5*)
19862 case $cc_basename in
19863 KCC*)
19864 # Kuck and Associates, Inc. (KAI) C++ Compiler
19865
19866 # KCC will only create a shared library if the output file
19867 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19868 # to its proper name (with version) after linking.
19869 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'
19870
19871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19872 hardcode_libdir_separator_CXX=:
19873
19874 # Archives containing C++ object files must be created using
19875 # the KAI C++ compiler.
19876 case $host in
19877 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19878 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19879 esac
19880 ;;
19881 RCC*)
19882 # Rational C++ 2.4.1
19883 # FIXME: insert proper C++ library support
19884 ld_shlibs_CXX=no
19885 ;;
19886 cxx*)
19887 case $host in
19888 osf3*)
19889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19890 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'
19891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19892 ;;
19893 *)
19894 allow_undefined_flag_CXX=' -expect_unresolved \*'
19895 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'
19896 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19897 echo "-hidden">> $lib.exp~
19898 $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~
19899 $RM $lib.exp'
19900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19901 ;;
19902 esac
19903
19904 hardcode_libdir_separator_CXX=:
19905
19906 # Commands to make compiler produce verbose output that lists
19907 # what "hidden" libraries, object files and flags are used when
19908 # linking a shared library.
19909 #
19910 # There doesn't appear to be a way to prevent this compiler from
19911 # explicitly linking system object files so we need to strip them
19912 # from the output so that they don't get included in the library
19913 # dependencies.
19914 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"'
19915 ;;
19916 *)
19917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19919 case $host in
19920 osf3*)
19921 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'
19922 ;;
19923 *)
19924 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'
19925 ;;
19926 esac
19927
19928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19929 hardcode_libdir_separator_CXX=:
19930
19931 # Commands to make compiler produce verbose output that lists
19932 # what "hidden" libraries, object files and flags are used when
19933 # linking a shared library.
19934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19935
19936 else
19937 # FIXME: insert proper C++ library support
19938 ld_shlibs_CXX=no
19939 fi
19940 ;;
19941 esac
19942 ;;
19943
19944 psos*)
19945 # FIXME: insert proper C++ library support
19946 ld_shlibs_CXX=no
19947 ;;
19948
19949 sunos4*)
19950 case $cc_basename in
19951 CC*)
19952 # Sun C++ 4.x
19953 # FIXME: insert proper C++ library support
19954 ld_shlibs_CXX=no
19955 ;;
19956 lcc*)
19957 # Lucid
19958 # FIXME: insert proper C++ library support
19959 ld_shlibs_CXX=no
19960 ;;
19961 *)
19962 # FIXME: insert proper C++ library support
19963 ld_shlibs_CXX=no
19964 ;;
19965 esac
19966 ;;
19967
19968 solaris*)
19969 case $cc_basename in
19970 CC*)
19971 # Sun C++ 4.2, 5.x and Centerline C++
19972 archive_cmds_need_lc_CXX=yes
19973 no_undefined_flag_CXX=' -zdefs'
19974 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19975 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19976 $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'
19977
19978 hardcode_libdir_flag_spec_CXX='-R$libdir'
19979 hardcode_shlibpath_var_CXX=no
19980 case $host_os in
19981 solaris2.[0-5] | solaris2.[0-5].*) ;;
19982 *)
19983 # The compiler driver will combine and reorder linker options,
19984 # but understands `-z linker_flag'.
19985 # Supported since Solaris 2.6 (maybe 2.5.1?)
19986 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19987 ;;
19988 esac
19989 link_all_deplibs_CXX=yes
19990
19991 output_verbose_link_cmd='func_echo_all'
19992
19993 # Archives containing C++ object files must be created using
19994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19995 # necessary to make sure instantiated templates are included
19996 # in the archive.
19997 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19998 ;;
19999 gcx*)
20000 # Green Hills C++ Compiler
20001 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20002
20003 # The C++ compiler must be used to create the archive.
20004 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20005 ;;
20006 *)
20007 # GNU C++ compiler with Solaris linker
20008 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20009 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20010 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20011 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20013 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20014
20015 # Commands to make compiler produce verbose output that lists
20016 # what "hidden" libraries, object files and flags are used when
20017 # linking a shared library.
20018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20019 else
20020 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20021 # platform.
20022 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20023 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20024 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20025
20026 # Commands to make compiler produce verbose output that lists
20027 # what "hidden" libraries, object files and flags are used when
20028 # linking a shared library.
20029 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20030 fi
20031
20032 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20033 case $host_os in
20034 solaris2.[0-5] | solaris2.[0-5].*) ;;
20035 *)
20036 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20037 ;;
20038 esac
20039 fi
20040 ;;
20041 esac
20042 ;;
20043
20044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20045 no_undefined_flag_CXX='${wl}-z,text'
20046 archive_cmds_need_lc_CXX=no
20047 hardcode_shlibpath_var_CXX=no
20048 runpath_var='LD_RUN_PATH'
20049
20050 case $cc_basename in
20051 CC*)
20052 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20053 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20054 ;;
20055 *)
20056 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058 ;;
20059 esac
20060 ;;
20061
20062 sysv5* | sco3.2v5* | sco5v6*)
20063 # Note: We can NOT use -z defs as we might desire, because we do not
20064 # link with -lc, and that would cause any symbols used from libc to
20065 # always be unresolved, which means just about no library would
20066 # ever link correctly. If we're not using GNU ld we use -z text
20067 # though, which does catch some bad symbols but isn't as heavy-handed
20068 # as -z defs.
20069 no_undefined_flag_CXX='${wl}-z,text'
20070 allow_undefined_flag_CXX='${wl}-z,nodefs'
20071 archive_cmds_need_lc_CXX=no
20072 hardcode_shlibpath_var_CXX=no
20073 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20074 hardcode_libdir_separator_CXX=':'
20075 link_all_deplibs_CXX=yes
20076 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20077 runpath_var='LD_RUN_PATH'
20078
20079 case $cc_basename in
20080 CC*)
20081 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20082 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20083 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20084 '"$old_archive_cmds_CXX"
20085 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20086 '"$reload_cmds_CXX"
20087 ;;
20088 *)
20089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 ;;
20092 esac
20093 ;;
20094
20095 tandem*)
20096 case $cc_basename in
20097 NCC*)
20098 # NonStop-UX NCC 3.20
20099 # FIXME: insert proper C++ library support
20100 ld_shlibs_CXX=no
20101 ;;
20102 *)
20103 # FIXME: insert proper C++ library support
20104 ld_shlibs_CXX=no
20105 ;;
20106 esac
20107 ;;
20108
20109 vxworks*)
20110 # FIXME: insert proper C++ library support
20111 ld_shlibs_CXX=no
20112 ;;
20113
20114 *)
20115 # FIXME: insert proper C++ library support
20116 ld_shlibs_CXX=no
20117 ;;
20118 esac
20119
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20121 $as_echo "$ld_shlibs_CXX" >&6; }
20122 test "$ld_shlibs_CXX" = no && can_build_shared=no
20123
20124 GCC_CXX="$GXX"
20125 LD_CXX="$LD"
20126
20127 ## CAVEAT EMPTOR:
20128 ## There is no encapsulation within the following macros, do not change
20129 ## the running order or otherwise move them around unless you know exactly
20130 ## what you are doing...
20131 # Dependencies to place before and after the object being linked:
20132 predep_objects_CXX=
20133 postdep_objects_CXX=
20134 predeps_CXX=
20135 postdeps_CXX=
20136 compiler_lib_search_path_CXX=
20137
20138 cat > conftest.$ac_ext <<_LT_EOF
20139 class Foo
20140 {
20141 public:
20142 Foo (void) { a = 0; }
20143 private:
20144 int a;
20145 };
20146 _LT_EOF
20147
20148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20149 (eval $ac_compile) 2>&5
20150 ac_status=$?
20151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20152 test $ac_status = 0; }; then
20153 # Parse the compiler output and extract the necessary
20154 # objects, libraries and library flags.
20155
20156 # Sentinel used to keep track of whether or not we are before
20157 # the conftest object file.
20158 pre_test_object_deps_done=no
20159
20160 for p in `eval "$output_verbose_link_cmd"`; do
20161 case $p in
20162
20163 -L* | -R* | -l*)
20164 # Some compilers place space between "-{L,R}" and the path.
20165 # Remove the space.
20166 if test $p = "-L" ||
20167 test $p = "-R"; then
20168 prev=$p
20169 continue
20170 else
20171 prev=
20172 fi
20173
20174 if test "$pre_test_object_deps_done" = no; then
20175 case $p in
20176 -L* | -R*)
20177 # Internal compiler library paths should come after those
20178 # provided the user. The postdeps already come after the
20179 # user supplied libs so there is no need to process them.
20180 if test -z "$compiler_lib_search_path_CXX"; then
20181 compiler_lib_search_path_CXX="${prev}${p}"
20182 else
20183 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20184 fi
20185 ;;
20186 # The "-l" case would never come before the object being
20187 # linked, so don't bother handling this case.
20188 esac
20189 else
20190 if test -z "$postdeps_CXX"; then
20191 postdeps_CXX="${prev}${p}"
20192 else
20193 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20194 fi
20195 fi
20196 ;;
20197
20198 *.$objext)
20199 # This assumes that the test object file only shows up
20200 # once in the compiler output.
20201 if test "$p" = "conftest.$objext"; then
20202 pre_test_object_deps_done=yes
20203 continue
20204 fi
20205
20206 if test "$pre_test_object_deps_done" = no; then
20207 if test -z "$predep_objects_CXX"; then
20208 predep_objects_CXX="$p"
20209 else
20210 predep_objects_CXX="$predep_objects_CXX $p"
20211 fi
20212 else
20213 if test -z "$postdep_objects_CXX"; then
20214 postdep_objects_CXX="$p"
20215 else
20216 postdep_objects_CXX="$postdep_objects_CXX $p"
20217 fi
20218 fi
20219 ;;
20220
20221 *) ;; # Ignore the rest.
20222
20223 esac
20224 done
20225
20226 # Clean up.
20227 rm -f a.out a.exe
20228 else
20229 echo "libtool.m4: error: problem compiling CXX test program"
20230 fi
20231
20232 $RM -f confest.$objext
20233
20234 # PORTME: override above test on systems where it is broken
20235 case $host_os in
20236 interix[3-9]*)
20237 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20238 # hack all around it, let's just trust "g++" to DTRT.
20239 predep_objects_CXX=
20240 postdep_objects_CXX=
20241 postdeps_CXX=
20242 ;;
20243
20244 linux*)
20245 case `$CC -V 2>&1 | sed 5q` in
20246 *Sun\ C*)
20247 # Sun C++ 5.9
20248
20249 # The more standards-conforming stlport4 library is
20250 # incompatible with the Cstd library. Avoid specifying
20251 # it if it's in CXXFLAGS. Ignore libCrun as
20252 # -library=stlport4 depends on it.
20253 case " $CXX $CXXFLAGS " in
20254 *" -library=stlport4 "*)
20255 solaris_use_stlport4=yes
20256 ;;
20257 esac
20258
20259 if test "$solaris_use_stlport4" != yes; then
20260 postdeps_CXX='-library=Cstd -library=Crun'
20261 fi
20262 ;;
20263 esac
20264 ;;
20265
20266 solaris*)
20267 case $cc_basename in
20268 CC*)
20269 # The more standards-conforming stlport4 library is
20270 # incompatible with the Cstd library. Avoid specifying
20271 # it if it's in CXXFLAGS. Ignore libCrun as
20272 # -library=stlport4 depends on it.
20273 case " $CXX $CXXFLAGS " in
20274 *" -library=stlport4 "*)
20275 solaris_use_stlport4=yes
20276 ;;
20277 esac
20278
20279 # Adding this requires a known-good setup of shared libraries for
20280 # Sun compiler versions before 5.6, else PIC objects from an old
20281 # archive will be linked into the output, leading to subtle bugs.
20282 if test "$solaris_use_stlport4" != yes; then
20283 postdeps_CXX='-library=Cstd -library=Crun'
20284 fi
20285 ;;
20286 esac
20287 ;;
20288 esac
20289
20290
20291 case " $postdeps_CXX " in
20292 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20293 esac
20294 compiler_lib_search_dirs_CXX=
20295 if test -n "${compiler_lib_search_path_CXX}"; then
20296 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20297 fi
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329 lt_prog_compiler_wl_CXX=
20330 lt_prog_compiler_pic_CXX=
20331 lt_prog_compiler_static_CXX=
20332
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20334 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20335
20336 # C++ specific cases for pic, static, wl, etc.
20337 if test "$GXX" = yes; then
20338 lt_prog_compiler_wl_CXX='-Wl,'
20339 lt_prog_compiler_static_CXX='-static'
20340
20341 case $host_os in
20342 aix*)
20343 # All AIX code is PIC.
20344 if test "$host_cpu" = ia64; then
20345 # AIX 5 now supports IA64 processor
20346 lt_prog_compiler_static_CXX='-Bstatic'
20347 fi
20348 lt_prog_compiler_pic_CXX='-fPIC'
20349 ;;
20350
20351 amigaos*)
20352 case $host_cpu in
20353 powerpc)
20354 # see comment about AmigaOS4 .so support
20355 lt_prog_compiler_pic_CXX='-fPIC'
20356 ;;
20357 m68k)
20358 # FIXME: we need at least 68020 code to build shared libraries, but
20359 # adding the `-m68020' flag to GCC prevents building anything better,
20360 # like `-m68040'.
20361 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20362 ;;
20363 esac
20364 ;;
20365
20366 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20367 # PIC is the default for these OSes.
20368 ;;
20369 mingw* | cygwin* | os2* | pw32* | cegcc*)
20370 # This hack is so that the source file can tell whether it is being
20371 # built for inclusion in a dll (and should export symbols for example).
20372 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20373 # (--disable-auto-import) libraries
20374 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20375 ;;
20376 darwin* | rhapsody*)
20377 # PIC is the default on this platform
20378 # Common symbols not allowed in MH_DYLIB files
20379 lt_prog_compiler_pic_CXX='-fno-common'
20380 ;;
20381 *djgpp*)
20382 # DJGPP does not support shared libraries at all
20383 lt_prog_compiler_pic_CXX=
20384 ;;
20385 haiku*)
20386 # PIC is the default for Haiku.
20387 # The "-static" flag exists, but is broken.
20388 lt_prog_compiler_static_CXX=
20389 ;;
20390 interix[3-9]*)
20391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20392 # Instead, we relocate shared libraries at runtime.
20393 ;;
20394 sysv4*MP*)
20395 if test -d /usr/nec; then
20396 lt_prog_compiler_pic_CXX=-Kconform_pic
20397 fi
20398 ;;
20399 hpux*)
20400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20402 # sets the default TLS model and affects inlining.
20403 case $host_cpu in
20404 hppa*64*)
20405 ;;
20406 *)
20407 lt_prog_compiler_pic_CXX='-fPIC'
20408 ;;
20409 esac
20410 ;;
20411 *qnx* | *nto*)
20412 # QNX uses GNU C++, but need to define -shared option too, otherwise
20413 # it will coredump.
20414 lt_prog_compiler_pic_CXX='-fPIC -shared'
20415 ;;
20416 *)
20417 lt_prog_compiler_pic_CXX='-fPIC'
20418 ;;
20419 esac
20420 else
20421 case $host_os in
20422 aix[4-9]*)
20423 # All AIX code is PIC.
20424 if test "$host_cpu" = ia64; then
20425 # AIX 5 now supports IA64 processor
20426 lt_prog_compiler_static_CXX='-Bstatic'
20427 else
20428 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20429 fi
20430 ;;
20431 chorus*)
20432 case $cc_basename in
20433 cxch68*)
20434 # Green Hills C++ Compiler
20435 # _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"
20436 ;;
20437 esac
20438 ;;
20439 dgux*)
20440 case $cc_basename in
20441 ec++*)
20442 lt_prog_compiler_pic_CXX='-KPIC'
20443 ;;
20444 ghcx*)
20445 # Green Hills C++ Compiler
20446 lt_prog_compiler_pic_CXX='-pic'
20447 ;;
20448 *)
20449 ;;
20450 esac
20451 ;;
20452 freebsd* | dragonfly*)
20453 # FreeBSD uses GNU C++
20454 ;;
20455 hpux9* | hpux10* | hpux11*)
20456 case $cc_basename in
20457 CC*)
20458 lt_prog_compiler_wl_CXX='-Wl,'
20459 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20460 if test "$host_cpu" != ia64; then
20461 lt_prog_compiler_pic_CXX='+Z'
20462 fi
20463 ;;
20464 aCC*)
20465 lt_prog_compiler_wl_CXX='-Wl,'
20466 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20467 case $host_cpu in
20468 hppa*64*|ia64*)
20469 # +Z the default
20470 ;;
20471 *)
20472 lt_prog_compiler_pic_CXX='+Z'
20473 ;;
20474 esac
20475 ;;
20476 *)
20477 ;;
20478 esac
20479 ;;
20480 interix*)
20481 # This is c89, which is MS Visual C++ (no shared libs)
20482 # Anyone wants to do a port?
20483 ;;
20484 irix5* | irix6* | nonstopux*)
20485 case $cc_basename in
20486 CC*)
20487 lt_prog_compiler_wl_CXX='-Wl,'
20488 lt_prog_compiler_static_CXX='-non_shared'
20489 # CC pic flag -KPIC is the default.
20490 ;;
20491 *)
20492 ;;
20493 esac
20494 ;;
20495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20496 case $cc_basename in
20497 KCC*)
20498 # KAI C++ Compiler
20499 lt_prog_compiler_wl_CXX='--backend -Wl,'
20500 lt_prog_compiler_pic_CXX='-fPIC'
20501 ;;
20502 ecpc* )
20503 # old Intel C++ for x86_64 which still supported -KPIC.
20504 lt_prog_compiler_wl_CXX='-Wl,'
20505 lt_prog_compiler_pic_CXX='-KPIC'
20506 lt_prog_compiler_static_CXX='-static'
20507 ;;
20508 icpc* )
20509 # Intel C++, used to be incompatible with GCC.
20510 # ICC 10 doesn't accept -KPIC any more.
20511 lt_prog_compiler_wl_CXX='-Wl,'
20512 lt_prog_compiler_pic_CXX='-fPIC'
20513 lt_prog_compiler_static_CXX='-static'
20514 ;;
20515 pgCC* | pgcpp*)
20516 # Portland Group C++ compiler
20517 lt_prog_compiler_wl_CXX='-Wl,'
20518 lt_prog_compiler_pic_CXX='-fpic'
20519 lt_prog_compiler_static_CXX='-Bstatic'
20520 ;;
20521 cxx*)
20522 # Compaq C++
20523 # Make sure the PIC flag is empty. It appears that all Alpha
20524 # Linux and Compaq Tru64 Unix objects are PIC.
20525 lt_prog_compiler_pic_CXX=
20526 lt_prog_compiler_static_CXX='-non_shared'
20527 ;;
20528 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20529 # IBM XL 8.0, 9.0 on PPC and BlueGene
20530 lt_prog_compiler_wl_CXX='-Wl,'
20531 lt_prog_compiler_pic_CXX='-qpic'
20532 lt_prog_compiler_static_CXX='-qstaticlink'
20533 ;;
20534 *)
20535 case `$CC -V 2>&1 | sed 5q` in
20536 *Sun\ C*)
20537 # Sun C++ 5.9
20538 lt_prog_compiler_pic_CXX='-KPIC'
20539 lt_prog_compiler_static_CXX='-Bstatic'
20540 lt_prog_compiler_wl_CXX='-Qoption ld '
20541 ;;
20542 esac
20543 ;;
20544 esac
20545 ;;
20546 lynxos*)
20547 ;;
20548 m88k*)
20549 ;;
20550 mvs*)
20551 case $cc_basename in
20552 cxx*)
20553 lt_prog_compiler_pic_CXX='-W c,exportall'
20554 ;;
20555 *)
20556 ;;
20557 esac
20558 ;;
20559 netbsd*)
20560 ;;
20561 *qnx* | *nto*)
20562 # QNX uses GNU C++, but need to define -shared option too, otherwise
20563 # it will coredump.
20564 lt_prog_compiler_pic_CXX='-fPIC -shared'
20565 ;;
20566 osf3* | osf4* | osf5*)
20567 case $cc_basename in
20568 KCC*)
20569 lt_prog_compiler_wl_CXX='--backend -Wl,'
20570 ;;
20571 RCC*)
20572 # Rational C++ 2.4.1
20573 lt_prog_compiler_pic_CXX='-pic'
20574 ;;
20575 cxx*)
20576 # Digital/Compaq C++
20577 lt_prog_compiler_wl_CXX='-Wl,'
20578 # Make sure the PIC flag is empty. It appears that all Alpha
20579 # Linux and Compaq Tru64 Unix objects are PIC.
20580 lt_prog_compiler_pic_CXX=
20581 lt_prog_compiler_static_CXX='-non_shared'
20582 ;;
20583 *)
20584 ;;
20585 esac
20586 ;;
20587 psos*)
20588 ;;
20589 solaris*)
20590 case $cc_basename in
20591 CC*)
20592 # Sun C++ 4.2, 5.x and Centerline C++
20593 lt_prog_compiler_pic_CXX='-KPIC'
20594 lt_prog_compiler_static_CXX='-Bstatic'
20595 lt_prog_compiler_wl_CXX='-Qoption ld '
20596 ;;
20597 gcx*)
20598 # Green Hills C++ Compiler
20599 lt_prog_compiler_pic_CXX='-PIC'
20600 ;;
20601 *)
20602 ;;
20603 esac
20604 ;;
20605 sunos4*)
20606 case $cc_basename in
20607 CC*)
20608 # Sun C++ 4.x
20609 lt_prog_compiler_pic_CXX='-pic'
20610 lt_prog_compiler_static_CXX='-Bstatic'
20611 ;;
20612 lcc*)
20613 # Lucid
20614 lt_prog_compiler_pic_CXX='-pic'
20615 ;;
20616 *)
20617 ;;
20618 esac
20619 ;;
20620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20621 case $cc_basename in
20622 CC*)
20623 lt_prog_compiler_wl_CXX='-Wl,'
20624 lt_prog_compiler_pic_CXX='-KPIC'
20625 lt_prog_compiler_static_CXX='-Bstatic'
20626 ;;
20627 esac
20628 ;;
20629 tandem*)
20630 case $cc_basename in
20631 NCC*)
20632 # NonStop-UX NCC 3.20
20633 lt_prog_compiler_pic_CXX='-KPIC'
20634 ;;
20635 *)
20636 ;;
20637 esac
20638 ;;
20639 vxworks*)
20640 ;;
20641 *)
20642 lt_prog_compiler_can_build_shared_CXX=no
20643 ;;
20644 esac
20645 fi
20646
20647 case $host_os in
20648 # For platforms which do not support PIC, -DPIC is meaningless:
20649 *djgpp*)
20650 lt_prog_compiler_pic_CXX=
20651 ;;
20652 *)
20653 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20654 ;;
20655 esac
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20657 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20658
20659
20660
20661 #
20662 # Check to make sure the PIC flag actually works.
20663 #
20664 if test -n "$lt_prog_compiler_pic_CXX"; then
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20667 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20668 $as_echo_n "(cached) " >&6
20669 else
20670 lt_cv_prog_compiler_pic_works_CXX=no
20671 ac_outfile=conftest.$ac_objext
20672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20673 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20674 # Insert the option either (1) after the last *FLAGS variable, or
20675 # (2) before a word containing "conftest.", or (3) at the end.
20676 # Note that $ac_compile itself does not contain backslashes and begins
20677 # with a dollar sign (not a hyphen), so the echo should work correctly.
20678 # The option is referenced via a variable to avoid confusing sed.
20679 lt_compile=`echo "$ac_compile" | $SED \
20680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20682 -e 's:$: $lt_compiler_flag:'`
20683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20684 (eval "$lt_compile" 2>conftest.err)
20685 ac_status=$?
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 if (exit $ac_status) && test -s "$ac_outfile"; then
20689 # The compiler can only warn and ignore the option if not recognized
20690 # So say no if there are warnings other than the usual output.
20691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20694 lt_cv_prog_compiler_pic_works_CXX=yes
20695 fi
20696 fi
20697 $RM conftest*
20698
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20701 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20702
20703 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20704 case $lt_prog_compiler_pic_CXX in
20705 "" | " "*) ;;
20706 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20707 esac
20708 else
20709 lt_prog_compiler_pic_CXX=
20710 lt_prog_compiler_can_build_shared_CXX=no
20711 fi
20712
20713 fi
20714
20715
20716
20717 #
20718 # Check to make sure the static flag actually works.
20719 #
20720 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20722 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20723 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20725 else
20726 lt_cv_prog_compiler_static_works_CXX=no
20727 save_LDFLAGS="$LDFLAGS"
20728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20729 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20731 # The linker can only warn and ignore the option if not recognized
20732 # So say no if there are warnings
20733 if test -s conftest.err; then
20734 # Append any errors to the config.log.
20735 cat conftest.err 1>&5
20736 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20738 if diff conftest.exp conftest.er2 >/dev/null; then
20739 lt_cv_prog_compiler_static_works_CXX=yes
20740 fi
20741 else
20742 lt_cv_prog_compiler_static_works_CXX=yes
20743 fi
20744 fi
20745 $RM -r conftest*
20746 LDFLAGS="$save_LDFLAGS"
20747
20748 fi
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20750 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20751
20752 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20753 :
20754 else
20755 lt_prog_compiler_static_CXX=
20756 fi
20757
20758
20759
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20763 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20765 else
20766 lt_cv_prog_compiler_c_o_CXX=no
20767 $RM -r conftest 2>/dev/null
20768 mkdir conftest
20769 cd conftest
20770 mkdir out
20771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20772
20773 lt_compiler_flag="-o out/conftest2.$ac_objext"
20774 # Insert the option either (1) after the last *FLAGS variable, or
20775 # (2) before a word containing "conftest.", or (3) at the end.
20776 # Note that $ac_compile itself does not contain backslashes and begins
20777 # with a dollar sign (not a hyphen), so the echo should work correctly.
20778 lt_compile=`echo "$ac_compile" | $SED \
20779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20781 -e 's:$: $lt_compiler_flag:'`
20782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20783 (eval "$lt_compile" 2>out/conftest.err)
20784 ac_status=$?
20785 cat out/conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20788 then
20789 # The compiler can only warn and ignore the option if not recognized
20790 # So say no if there are warnings
20791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20794 lt_cv_prog_compiler_c_o_CXX=yes
20795 fi
20796 fi
20797 chmod u+w . 2>&5
20798 $RM conftest*
20799 # SGI C++ compiler will create directory out/ii_files/ for
20800 # template instantiation
20801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20802 $RM out/* && rmdir out
20803 cd ..
20804 $RM -r conftest
20805 $RM conftest*
20806
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20809 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20810
20811
20812
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20815 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20817 else
20818 lt_cv_prog_compiler_c_o_CXX=no
20819 $RM -r conftest 2>/dev/null
20820 mkdir conftest
20821 cd conftest
20822 mkdir out
20823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20824
20825 lt_compiler_flag="-o out/conftest2.$ac_objext"
20826 # Insert the option either (1) after the last *FLAGS variable, or
20827 # (2) before a word containing "conftest.", or (3) at the end.
20828 # Note that $ac_compile itself does not contain backslashes and begins
20829 # with a dollar sign (not a hyphen), so the echo should work correctly.
20830 lt_compile=`echo "$ac_compile" | $SED \
20831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20833 -e 's:$: $lt_compiler_flag:'`
20834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20835 (eval "$lt_compile" 2>out/conftest.err)
20836 ac_status=$?
20837 cat out/conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20840 then
20841 # The compiler can only warn and ignore the option if not recognized
20842 # So say no if there are warnings
20843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20846 lt_cv_prog_compiler_c_o_CXX=yes
20847 fi
20848 fi
20849 chmod u+w . 2>&5
20850 $RM conftest*
20851 # SGI C++ compiler will create directory out/ii_files/ for
20852 # template instantiation
20853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20854 $RM out/* && rmdir out
20855 cd ..
20856 $RM -r conftest
20857 $RM conftest*
20858
20859 fi
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20861 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20862
20863
20864
20865
20866 hard_links="nottested"
20867 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20868 # do not overwrite the value of need_locks provided by the user
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20870 $as_echo_n "checking if we can lock with hard links... " >&6; }
20871 hard_links=yes
20872 $RM conftest*
20873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20874 touch conftest.a
20875 ln conftest.a conftest.b 2>&5 || hard_links=no
20876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20878 $as_echo "$hard_links" >&6; }
20879 if test "$hard_links" = no; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20881 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20882 need_locks=warn
20883 fi
20884 else
20885 need_locks=no
20886 fi
20887
20888
20889
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20891 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20892
20893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20894 case $host_os in
20895 aix[4-9]*)
20896 # If we're using GNU nm, then we don't want the "-C" option.
20897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20898 # Also, AIX nm treats weak defined symbols like other global defined
20899 # symbols, whereas GNU nm marks them as "W".
20900 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20901 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'
20902 else
20903 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20904 fi
20905 ;;
20906 pw32*)
20907 export_symbols_cmds_CXX="$ltdll_cmds"
20908 ;;
20909 cygwin* | mingw* | cegcc*)
20910 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'
20911 ;;
20912 *)
20913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20914 ;;
20915 esac
20916 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20917
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20919 $as_echo "$ld_shlibs_CXX" >&6; }
20920 test "$ld_shlibs_CXX" = no && can_build_shared=no
20921
20922 with_gnu_ld_CXX=$with_gnu_ld
20923
20924
20925
20926
20927
20928
20929 #
20930 # Do we need to explicitly link libc?
20931 #
20932 case "x$archive_cmds_need_lc_CXX" in
20933 x|xyes)
20934 # Assume -lc should be added
20935 archive_cmds_need_lc_CXX=yes
20936
20937 if test "$enable_shared" = yes && test "$GCC" = yes; then
20938 case $archive_cmds_CXX in
20939 *'~'*)
20940 # FIXME: we may have to deal with multi-command sequences.
20941 ;;
20942 '$CC '*)
20943 # Test whether the compiler implicitly links with -lc since on some
20944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20945 # to ld, don't add -lc before -lgcc.
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20948 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20949 $as_echo_n "(cached) " >&6
20950 else
20951 $RM conftest*
20952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20953
20954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20955 (eval $ac_compile) 2>&5
20956 ac_status=$?
20957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20958 test $ac_status = 0; } 2>conftest.err; then
20959 soname=conftest
20960 lib=conftest
20961 libobjs=conftest.$ac_objext
20962 deplibs=
20963 wl=$lt_prog_compiler_wl_CXX
20964 pic_flag=$lt_prog_compiler_pic_CXX
20965 compiler_flags=-v
20966 linker_flags=-v
20967 verstring=
20968 output_objdir=.
20969 libname=conftest
20970 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20971 allow_undefined_flag_CXX=
20972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20973 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20974 ac_status=$?
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; }
20977 then
20978 lt_cv_archive_cmds_need_lc_CXX=no
20979 else
20980 lt_cv_archive_cmds_need_lc_CXX=yes
20981 fi
20982 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20983 else
20984 cat conftest.err 1>&5
20985 fi
20986 $RM conftest*
20987
20988 fi
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20990 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20991 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20992 ;;
20993 esac
20994 fi
20995 ;;
20996 esac
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21062 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21063
21064 library_names_spec=
21065 libname_spec='lib$name'
21066 soname_spec=
21067 shrext_cmds=".so"
21068 postinstall_cmds=
21069 postuninstall_cmds=
21070 finish_cmds=
21071 finish_eval=
21072 shlibpath_var=
21073 shlibpath_overrides_runpath=unknown
21074 version_type=none
21075 dynamic_linker="$host_os ld.so"
21076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21077 need_lib_prefix=unknown
21078 hardcode_into_libs=no
21079
21080 # when you set need_version to no, make sure it does not cause -set_version
21081 # flags to be left without arguments
21082 need_version=unknown
21083
21084 case $host_os in
21085 aix3*)
21086 version_type=linux
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21088 shlibpath_var=LIBPATH
21089
21090 # AIX 3 has no versioning support, so we append a major version to the name.
21091 soname_spec='${libname}${release}${shared_ext}$major'
21092 ;;
21093
21094 aix[4-9]*)
21095 version_type=linux
21096 need_lib_prefix=no
21097 need_version=no
21098 hardcode_into_libs=yes
21099 if test "$host_cpu" = ia64; then
21100 # AIX 5 supports IA64
21101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 else
21104 # With GCC up to 2.95.x, collect2 would create an import file
21105 # for dependence libraries. The import file would start with
21106 # the line `#! .'. This would cause the generated library to
21107 # depend on `.', always an invalid library. This was fixed in
21108 # development snapshots of GCC prior to 3.0.
21109 case $host_os in
21110 aix4 | aix4.[01] | aix4.[01].*)
21111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21112 echo ' yes '
21113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21114 :
21115 else
21116 can_build_shared=no
21117 fi
21118 ;;
21119 esac
21120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21121 # soname into executable. Probably we can add versioning support to
21122 # collect2, so additional links can be useful in future.
21123 if test "$aix_use_runtimelinking" = yes; then
21124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21125 # instead of lib<name>.a to let people know that these are not
21126 # typical AIX shared libraries.
21127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21128 else
21129 # We preserve .a as extension for shared libraries through AIX4.2
21130 # and later when we are not doing run time linking.
21131 library_names_spec='${libname}${release}.a $libname.a'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21133 fi
21134 shlibpath_var=LIBPATH
21135 fi
21136 ;;
21137
21138 amigaos*)
21139 case $host_cpu in
21140 powerpc)
21141 # Since July 2007 AmigaOS4 officially supports .so libraries.
21142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21144 ;;
21145 m68k)
21146 library_names_spec='$libname.ixlibrary $libname.a'
21147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21148 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'
21149 ;;
21150 esac
21151 ;;
21152
21153 beos*)
21154 library_names_spec='${libname}${shared_ext}'
21155 dynamic_linker="$host_os ld.so"
21156 shlibpath_var=LIBRARY_PATH
21157 ;;
21158
21159 bsdi[45]*)
21160 version_type=linux
21161 need_version=no
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 soname_spec='${libname}${release}${shared_ext}$major'
21164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21165 shlibpath_var=LD_LIBRARY_PATH
21166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21168 # the default ld.so.conf also contains /usr/contrib/lib and
21169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21170 # libtool to hard-code these into programs
21171 ;;
21172
21173 cygwin* | mingw* | pw32* | cegcc*)
21174 version_type=windows
21175 shrext_cmds=".dll"
21176 need_version=no
21177 need_lib_prefix=no
21178
21179 case $GCC,$host_os in
21180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21181 library_names_spec='$libname.dll.a'
21182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21183 postinstall_cmds='base_file=`basename \${file}`~
21184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21185 dldir=$destdir/`dirname \$dlpath`~
21186 test -d \$dldir || mkdir -p \$dldir~
21187 $install_prog $dir/$dlname \$dldir/$dlname~
21188 chmod a+x \$dldir/$dlname~
21189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21191 fi'
21192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21193 dlpath=$dir/\$dldll~
21194 $RM \$dlpath'
21195 shlibpath_overrides_runpath=yes
21196
21197 case $host_os in
21198 cygwin*)
21199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21201
21202 ;;
21203 mingw* | cegcc*)
21204 # MinGW DLLs use traditional 'lib' prefix
21205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21206 ;;
21207 pw32*)
21208 # pw32 DLLs use 'pw' prefix rather than 'lib'
21209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21210 ;;
21211 esac
21212 ;;
21213
21214 *)
21215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21216 ;;
21217 esac
21218 dynamic_linker='Win32 ld.exe'
21219 # FIXME: first we should search . and the directory the executable is in
21220 shlibpath_var=PATH
21221 ;;
21222
21223 darwin* | rhapsody*)
21224 dynamic_linker="$host_os dyld"
21225 version_type=darwin
21226 need_lib_prefix=no
21227 need_version=no
21228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21229 soname_spec='${libname}${release}${major}$shared_ext'
21230 shlibpath_overrides_runpath=yes
21231 shlibpath_var=DYLD_LIBRARY_PATH
21232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21233
21234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21235 ;;
21236
21237 dgux*)
21238 version_type=linux
21239 need_lib_prefix=no
21240 need_version=no
21241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21242 soname_spec='${libname}${release}${shared_ext}$major'
21243 shlibpath_var=LD_LIBRARY_PATH
21244 ;;
21245
21246 freebsd* | dragonfly*)
21247 # DragonFly does not have aout. When/if they implement a new
21248 # versioning mechanism, adjust this.
21249 if test -x /usr/bin/objformat; then
21250 objformat=`/usr/bin/objformat`
21251 else
21252 case $host_os in
21253 freebsd[23].*) objformat=aout ;;
21254 *) objformat=elf ;;
21255 esac
21256 fi
21257 version_type=freebsd-$objformat
21258 case $version_type in
21259 freebsd-elf*)
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21261 need_version=no
21262 need_lib_prefix=no
21263 ;;
21264 freebsd-*)
21265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21266 need_version=yes
21267 ;;
21268 esac
21269 shlibpath_var=LD_LIBRARY_PATH
21270 case $host_os in
21271 freebsd2.*)
21272 shlibpath_overrides_runpath=yes
21273 ;;
21274 freebsd3.[01]* | freebsdelf3.[01]*)
21275 shlibpath_overrides_runpath=yes
21276 hardcode_into_libs=yes
21277 ;;
21278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21280 shlibpath_overrides_runpath=no
21281 hardcode_into_libs=yes
21282 ;;
21283 *) # from 4.6 on, and DragonFly
21284 shlibpath_overrides_runpath=yes
21285 hardcode_into_libs=yes
21286 ;;
21287 esac
21288 ;;
21289
21290 gnu*)
21291 version_type=linux
21292 need_lib_prefix=no
21293 need_version=no
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21295 soname_spec='${libname}${release}${shared_ext}$major'
21296 shlibpath_var=LD_LIBRARY_PATH
21297 hardcode_into_libs=yes
21298 ;;
21299
21300 haiku*)
21301 version_type=linux
21302 need_lib_prefix=no
21303 need_version=no
21304 dynamic_linker="$host_os runtime_loader"
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LIBRARY_PATH
21308 shlibpath_overrides_runpath=yes
21309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21310 hardcode_into_libs=yes
21311 ;;
21312
21313 hpux9* | hpux10* | hpux11*)
21314 # Give a soname corresponding to the major version so that dld.sl refuses to
21315 # link against other versions.
21316 version_type=sunos
21317 need_lib_prefix=no
21318 need_version=no
21319 case $host_cpu in
21320 ia64*)
21321 shrext_cmds='.so'
21322 hardcode_into_libs=yes
21323 dynamic_linker="$host_os dld.so"
21324 shlibpath_var=LD_LIBRARY_PATH
21325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21327 soname_spec='${libname}${release}${shared_ext}$major'
21328 if test "X$HPUX_IA64_MODE" = X32; then
21329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21330 else
21331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21332 fi
21333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21334 ;;
21335 hppa*64*)
21336 shrext_cmds='.sl'
21337 hardcode_into_libs=yes
21338 dynamic_linker="$host_os dld.sl"
21339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 soname_spec='${libname}${release}${shared_ext}$major'
21343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21345 ;;
21346 *)
21347 shrext_cmds='.sl'
21348 dynamic_linker="$host_os dld.sl"
21349 shlibpath_var=SHLIB_PATH
21350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
21354 esac
21355 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21356 postinstall_cmds='chmod 555 $lib'
21357 # or fails outright, so override atomically:
21358 install_override_mode=555
21359 ;;
21360
21361 interix[3-9]*)
21362 version_type=linux
21363 need_lib_prefix=no
21364 need_version=no
21365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21368 shlibpath_var=LD_LIBRARY_PATH
21369 shlibpath_overrides_runpath=no
21370 hardcode_into_libs=yes
21371 ;;
21372
21373 irix5* | irix6* | nonstopux*)
21374 case $host_os in
21375 nonstopux*) version_type=nonstopux ;;
21376 *)
21377 if test "$lt_cv_prog_gnu_ld" = yes; then
21378 version_type=linux
21379 else
21380 version_type=irix
21381 fi ;;
21382 esac
21383 need_lib_prefix=no
21384 need_version=no
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21387 case $host_os in
21388 irix5* | nonstopux*)
21389 libsuff= shlibsuff=
21390 ;;
21391 *)
21392 case $LD in # libtool.m4 will add one of these switches to LD
21393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21394 libsuff= shlibsuff= libmagic=32-bit;;
21395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21396 libsuff=32 shlibsuff=N32 libmagic=N32;;
21397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21399 *) libsuff= shlibsuff= libmagic=never-match;;
21400 esac
21401 ;;
21402 esac
21403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21404 shlibpath_overrides_runpath=no
21405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21407 hardcode_into_libs=yes
21408 ;;
21409
21410 # No shared lib support for Linux oldld, aout, or coff.
21411 linux*oldld* | linux*aout* | linux*coff*)
21412 dynamic_linker=no
21413 ;;
21414
21415 # This must be Linux ELF.
21416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21417 version_type=linux
21418 need_lib_prefix=no
21419 need_version=no
21420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21421 soname_spec='${libname}${release}${shared_ext}$major'
21422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21423 shlibpath_var=LD_LIBRARY_PATH
21424 shlibpath_overrides_runpath=no
21425
21426 # Some binutils ld are patched to set DT_RUNPATH
21427 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 lt_cv_shlibpath_overrides_runpath=no
21431 save_LDFLAGS=$LDFLAGS
21432 save_libdir=$libdir
21433 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21434 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21437
21438 int
21439 main ()
21440 {
21441
21442 ;
21443 return 0;
21444 }
21445 _ACEOF
21446 if ac_fn_cxx_try_link "$LINENO"; then :
21447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21448 lt_cv_shlibpath_overrides_runpath=yes
21449 fi
21450 fi
21451 rm -f core conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LDFLAGS=$save_LDFLAGS
21454 libdir=$save_libdir
21455
21456 fi
21457
21458 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21459
21460 # This implies no fast_install, which is unacceptable.
21461 # Some rework will be needed to allow for fast_install
21462 # before this can be enabled.
21463 hardcode_into_libs=yes
21464
21465 # Append ld.so.conf contents to the search path
21466 if test -f /etc/ld.so.conf; then
21467 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' ' '`
21468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21469 fi
21470
21471 # We used to test for /lib/ld.so.1 and disable shared libraries on
21472 # powerpc, because MkLinux only supported shared libraries with the
21473 # GNU dynamic linker. Since this was broken with cross compilers,
21474 # most powerpc-linux boxes support dynamic linking these days and
21475 # people can always --disable-shared, the test was removed, and we
21476 # assume the GNU/Linux dynamic linker is in use.
21477 dynamic_linker='GNU/Linux ld.so'
21478 ;;
21479
21480 netbsd*)
21481 version_type=sunos
21482 need_lib_prefix=no
21483 need_version=no
21484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21487 dynamic_linker='NetBSD (a.out) ld.so'
21488 else
21489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21490 soname_spec='${libname}${release}${shared_ext}$major'
21491 dynamic_linker='NetBSD ld.elf_so'
21492 fi
21493 shlibpath_var=LD_LIBRARY_PATH
21494 shlibpath_overrides_runpath=yes
21495 hardcode_into_libs=yes
21496 ;;
21497
21498 newsos6)
21499 version_type=linux
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 shlibpath_var=LD_LIBRARY_PATH
21502 shlibpath_overrides_runpath=yes
21503 ;;
21504
21505 *nto* | *qnx*)
21506 version_type=qnx
21507 need_lib_prefix=no
21508 need_version=no
21509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21510 soname_spec='${libname}${release}${shared_ext}$major'
21511 shlibpath_var=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath=no
21513 hardcode_into_libs=yes
21514 dynamic_linker='ldqnx.so'
21515 ;;
21516
21517 openbsd*)
21518 version_type=sunos
21519 sys_lib_dlsearch_path_spec="/usr/lib"
21520 need_lib_prefix=no
21521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21522 case $host_os in
21523 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21524 *) need_version=no ;;
21525 esac
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21528 shlibpath_var=LD_LIBRARY_PATH
21529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21530 case $host_os in
21531 openbsd2.[89] | openbsd2.[89].*)
21532 shlibpath_overrides_runpath=no
21533 ;;
21534 *)
21535 shlibpath_overrides_runpath=yes
21536 ;;
21537 esac
21538 else
21539 shlibpath_overrides_runpath=yes
21540 fi
21541 ;;
21542
21543 os2*)
21544 libname_spec='$name'
21545 shrext_cmds=".dll"
21546 need_lib_prefix=no
21547 library_names_spec='$libname${shared_ext} $libname.a'
21548 dynamic_linker='OS/2 ld.exe'
21549 shlibpath_var=LIBPATH
21550 ;;
21551
21552 osf3* | osf4* | osf5*)
21553 version_type=osf
21554 need_lib_prefix=no
21555 need_version=no
21556 soname_spec='${libname}${release}${shared_ext}$major'
21557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21558 shlibpath_var=LD_LIBRARY_PATH
21559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21561 ;;
21562
21563 rdos*)
21564 dynamic_linker=no
21565 ;;
21566
21567 solaris*)
21568 version_type=linux
21569 need_lib_prefix=no
21570 need_version=no
21571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21572 soname_spec='${libname}${release}${shared_ext}$major'
21573 shlibpath_var=LD_LIBRARY_PATH
21574 shlibpath_overrides_runpath=yes
21575 hardcode_into_libs=yes
21576 # ldd complains unless libraries are executable
21577 postinstall_cmds='chmod +x $lib'
21578 ;;
21579
21580 sunos4*)
21581 version_type=sunos
21582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21584 shlibpath_var=LD_LIBRARY_PATH
21585 shlibpath_overrides_runpath=yes
21586 if test "$with_gnu_ld" = yes; then
21587 need_lib_prefix=no
21588 fi
21589 need_version=yes
21590 ;;
21591
21592 sysv4 | sysv4.3*)
21593 version_type=linux
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 soname_spec='${libname}${release}${shared_ext}$major'
21596 shlibpath_var=LD_LIBRARY_PATH
21597 case $host_vendor in
21598 sni)
21599 shlibpath_overrides_runpath=no
21600 need_lib_prefix=no
21601 runpath_var=LD_RUN_PATH
21602 ;;
21603 siemens)
21604 need_lib_prefix=no
21605 ;;
21606 motorola)
21607 need_lib_prefix=no
21608 need_version=no
21609 shlibpath_overrides_runpath=no
21610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21611 ;;
21612 esac
21613 ;;
21614
21615 sysv4*MP*)
21616 if test -d /usr/nec ;then
21617 version_type=linux
21618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21619 soname_spec='$libname${shared_ext}.$major'
21620 shlibpath_var=LD_LIBRARY_PATH
21621 fi
21622 ;;
21623
21624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21625 version_type=freebsd-elf
21626 need_lib_prefix=no
21627 need_version=no
21628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21629 soname_spec='${libname}${release}${shared_ext}$major'
21630 shlibpath_var=LD_LIBRARY_PATH
21631 shlibpath_overrides_runpath=yes
21632 hardcode_into_libs=yes
21633 if test "$with_gnu_ld" = yes; then
21634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21635 else
21636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21637 case $host_os in
21638 sco3.2v5*)
21639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21640 ;;
21641 esac
21642 fi
21643 sys_lib_dlsearch_path_spec='/usr/lib'
21644 ;;
21645
21646 tpf*)
21647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21648 version_type=linux
21649 need_lib_prefix=no
21650 need_version=no
21651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21652 shlibpath_var=LD_LIBRARY_PATH
21653 shlibpath_overrides_runpath=no
21654 hardcode_into_libs=yes
21655 ;;
21656
21657 uts4*)
21658 version_type=linux
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21660 soname_spec='${libname}${release}${shared_ext}$major'
21661 shlibpath_var=LD_LIBRARY_PATH
21662 ;;
21663
21664 *)
21665 dynamic_linker=no
21666 ;;
21667 esac
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21669 $as_echo "$dynamic_linker" >&6; }
21670 test "$dynamic_linker" = no && can_build_shared=no
21671
21672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21673 if test "$GCC" = yes; then
21674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21675 fi
21676
21677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21679 fi
21680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21681 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21682 fi
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21723 hardcode_action_CXX=
21724 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21725 test -n "$runpath_var_CXX" ||
21726 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21727
21728 # We can hardcode non-existent directories.
21729 if test "$hardcode_direct_CXX" != no &&
21730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21731 # have to relink, otherwise we might link with an installed library
21732 # when we should be linking with a yet-to-be-installed one
21733 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21734 test "$hardcode_minus_L_CXX" != no; then
21735 # Linking always hardcodes the temporary library directory.
21736 hardcode_action_CXX=relink
21737 else
21738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21739 hardcode_action_CXX=immediate
21740 fi
21741 else
21742 # We cannot hardcode anything, or else we can only hardcode existing
21743 # directories.
21744 hardcode_action_CXX=unsupported
21745 fi
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21747 $as_echo "$hardcode_action_CXX" >&6; }
21748
21749 if test "$hardcode_action_CXX" = relink ||
21750 test "$inherit_rpath_CXX" = yes; then
21751 # Fast installation is not supported
21752 enable_fast_install=no
21753 elif test "$shlibpath_overrides_runpath" = yes ||
21754 test "$enable_shared" = no; then
21755 # Fast installation is not necessary
21756 enable_fast_install=needless
21757 fi
21758
21759
21760
21761
21762
21763
21764
21765 fi # test -n "$compiler"
21766
21767 CC=$lt_save_CC
21768 LDCXX=$LD
21769 LD=$lt_save_LD
21770 GCC=$lt_save_GCC
21771 with_gnu_ld=$lt_save_with_gnu_ld
21772 lt_cv_path_LDCXX=$lt_cv_path_LD
21773 lt_cv_path_LD=$lt_save_path_LD
21774 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21775 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21776 fi # test "$_lt_caught_CXX_error" != yes
21777
21778 ac_ext=cpp
21779 ac_cpp='$CXXCPP $CPPFLAGS'
21780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799 # Only expand once:
21800
21801
21802
21803
21804
21805 # Identify the assembler which will work hand-in-glove with the newly
21806 # built GCC, so that we can examine its features. This is the assembler
21807 # which will be driven by the driver program.
21808 #
21809 # If build != host, and we aren't building gas in-tree, we identify a
21810 # build->target assembler and hope that it will have the same features
21811 # as the host->target assembler we'll be using.
21812 gcc_cv_gas_major_version=
21813 gcc_cv_gas_minor_version=
21814 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21815
21816 if test "${gcc_cv_as+set}" = set; then :
21817
21818 else
21819
21820 if test -x "$DEFAULT_ASSEMBLER"; then
21821 gcc_cv_as="$DEFAULT_ASSEMBLER"
21822 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21823 && test -f ../gas/Makefile \
21824 && test x$build = x$host; then
21825 gcc_cv_as=../gas/as-new$build_exeext
21826 elif test -x as$build_exeext; then
21827 # Build using assembler in the current directory.
21828 gcc_cv_as=./as$build_exeext
21829 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21830 gcc_cv_as="$AS_FOR_TARGET"
21831 else
21832 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21833 set dummy $AS_FOR_TARGET; ac_word=$2
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 case $gcc_cv_as in
21840 [\\/]* | ?:[\\/]*)
21841 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21842 ;;
21843 *)
21844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845 for as_dir in $PATH
21846 do
21847 IFS=$as_save_IFS
21848 test -z "$as_dir" && as_dir=.
21849 for ac_exec_ext in '' $ac_executable_extensions; do
21850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21851 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 break 2
21854 fi
21855 done
21856 done
21857 IFS=$as_save_IFS
21858
21859 ;;
21860 esac
21861 fi
21862 gcc_cv_as=$ac_cv_path_gcc_cv_as
21863 if test -n "$gcc_cv_as"; then
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21865 $as_echo "$gcc_cv_as" >&6; }
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868 $as_echo "no" >&6; }
21869 fi
21870
21871
21872 fi
21873 fi
21874
21875 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21876
21877 case "$ORIGINAL_AS_FOR_TARGET" in
21878 ./as | ./as$build_exeext) ;;
21879 *) ac_config_files="$ac_config_files as:exec-tool.in"
21880 ;;
21881 esac
21882
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21884 $as_echo_n "checking what assembler to use... " >&6; }
21885 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21886 # Single tree build which includes gas. We want to prefer it
21887 # over whatever linker top-level may have detected, since
21888 # we'll use what we're building after installation anyway.
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21890 $as_echo "newly built gas" >&6; }
21891 in_tree_gas=yes
21892 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21893 for f in $gcc_cv_as_bfd_srcdir/configure \
21894 $gcc_cv_as_gas_srcdir/configure \
21895 $gcc_cv_as_gas_srcdir/configure.ac \
21896 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21897 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21898 if test x$gcc_cv_gas_version != x; then
21899 break
21900 fi
21901 done
21902 case $gcc_cv_gas_version in
21903 VERSION=[0-9]*) ;;
21904 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21905 esac
21906 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21907 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21908 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21909 case $gcc_cv_gas_patch_version in
21910 "") gcc_cv_gas_patch_version="0" ;;
21911 esac
21912 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21913 + $gcc_cv_gas_minor_version \) \* 1000 \
21914 + $gcc_cv_gas_patch_version`
21915
21916 in_tree_gas_is_elf=no
21917 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21918 || (grep 'obj_format = multi' ../gas/Makefile \
21919 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21920 then
21921 in_tree_gas_is_elf=yes
21922 fi
21923 else
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21925 $as_echo "$gcc_cv_as" >&6; }
21926 in_tree_gas=no
21927 fi
21928
21929 default_ld=
21930 # Check whether --enable-ld was given.
21931 if test "${enable_ld+set}" = set; then :
21932 enableval=$enable_ld; case "${enableval}" in
21933 no)
21934 default_ld=ld.gold
21935 ;;
21936 esac
21937 fi
21938
21939
21940 install_gold_as_default=no
21941 # Check whether --enable-gold was given.
21942 if test "${enable_gold+set}" = set; then :
21943 enableval=$enable_gold; case "${enableval}" in
21944 default)
21945 install_gold_as_default=yes
21946 ;;
21947 yes)
21948 if test x${default_ld} != x; then
21949 install_gold_as_default=yes
21950 fi
21951 ;;
21952 no)
21953 ;;
21954 *)
21955 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21956 ;;
21957 esac
21958 fi
21959
21960
21961 # Identify the linker which will work hand-in-glove with the newly
21962 # built GCC, so that we can examine its features. This is the linker
21963 # which will be driven by the driver program.
21964 #
21965 # If build != host, and we aren't building gas in-tree, we identify a
21966 # build->target linker and hope that it will have the same features
21967 # as the host->target linker we'll be using.
21968 gcc_cv_gld_major_version=
21969 gcc_cv_gld_minor_version=
21970 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21971 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21972 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21973
21974 if test "${gcc_cv_ld+set}" = set; then :
21975
21976 else
21977
21978 if test -x "$DEFAULT_LINKER"; then
21979 gcc_cv_ld="$DEFAULT_LINKER"
21980 elif test $install_gold_as_default = yes \
21981 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21982 && test -f ../gold/Makefile \
21983 && test x$build = x$host; then
21984 gcc_cv_ld=../gold/ld-new$build_exeext
21985 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21986 && test -f ../ld/Makefile \
21987 && test x$build = x$host; then
21988 gcc_cv_ld=../ld/ld-new$build_exeext
21989 elif test -x collect-ld$build_exeext; then
21990 # Build using linker in the current directory.
21991 gcc_cv_ld=./collect-ld$build_exeext
21992 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21993 gcc_cv_ld="$LD_FOR_TARGET"
21994 else
21995 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21996 set dummy $LD_FOR_TARGET; ac_word=$2
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21998 $as_echo_n "checking for $ac_word... " >&6; }
21999 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22000 $as_echo_n "(cached) " >&6
22001 else
22002 case $gcc_cv_ld in
22003 [\\/]* | ?:[\\/]*)
22004 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22005 ;;
22006 *)
22007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22008 for as_dir in $PATH
22009 do
22010 IFS=$as_save_IFS
22011 test -z "$as_dir" && as_dir=.
22012 for ac_exec_ext in '' $ac_executable_extensions; do
22013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22014 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22016 break 2
22017 fi
22018 done
22019 done
22020 IFS=$as_save_IFS
22021
22022 ;;
22023 esac
22024 fi
22025 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22026 if test -n "$gcc_cv_ld"; then
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22028 $as_echo "$gcc_cv_ld" >&6; }
22029 else
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031 $as_echo "no" >&6; }
22032 fi
22033
22034
22035 fi
22036 fi
22037
22038 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22039 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22040 # if the PLUGIN_LD is set ld-new, just have it as ld
22041 # as that is the installed named.
22042 if test x$PLUGIN_LD_SUFFIX = xld-new \
22043 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22044 PLUGIN_LD_SUFFIX=ld
22045 fi
22046
22047 # Check whether --with-plugin-ld was given.
22048 if test "${with_plugin_ld+set}" = set; then :
22049 withval=$with_plugin_ld; if test x"$withval" != x; then
22050 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22051 PLUGIN_LD_SUFFIX="$withval"
22052 fi
22053 fi
22054
22055
22056
22057 cat >>confdefs.h <<_ACEOF
22058 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22059 _ACEOF
22060
22061
22062 # Check to see if we are using gold instead of ld
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22064 $as_echo_n "checking whether we are using gold... " >&6; }
22065 ld_is_gold=no
22066 if test x$gcc_cv_ld != x; then
22067 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22068 | grep "GNU gold" > /dev/null; then
22069 ld_is_gold=yes
22070 fi
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22073 $as_echo "$ld_is_gold" >&6; }
22074
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22076 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22077 # Check to see if default ld is not gold, but gold is
22078 # available and has support for split stack. If gcc was configured
22079 # with gold then no checking is done.
22080 #
22081 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22082
22083 # For platforms other than powerpc64*, enable as appropriate.
22084
22085 gold_non_default=no
22086 ld_gold=`which ${gcc_cv_ld}.gold`
22087 # Make sure this gold has minimal split stack support
22088 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22089 ld_vers=`$ld_gold --version | sed 1q`
22090 gold_vers=`echo $ld_vers | sed -n \
22091 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22092 case $target in
22093 # check that the gold version contains the complete split stack support
22094 # on powerpc64 big and little endian
22095 powerpc64*-*-*)
22096 case "$gold_vers" in
22097 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22098 ;;
22099 *) gold_non_default=no
22100 ;;
22101 esac
22102 ;;
22103 esac
22104 fi
22105 if test $gold_non_default = yes; then
22106
22107 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22108
22109 fi
22110 fi
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22112 $as_echo "$gold_non_default" >&6; }
22113
22114 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22115
22116 case "$ORIGINAL_LD_FOR_TARGET" in
22117 ./collect-ld | ./collect-ld$build_exeext) ;;
22118 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22119 ;;
22120 esac
22121
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22123 $as_echo_n "checking what linker to use... " >&6; }
22124 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22125 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22126 # Single tree build which includes ld. We want to prefer it
22127 # over whatever linker top-level may have detected, since
22128 # we'll use what we're building after installation anyway.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22130 $as_echo "newly built ld" >&6; }
22131 in_tree_ld=yes
22132 in_tree_ld_is_elf=no
22133 if (grep 'EMUL = .*elf' ../ld/Makefile \
22134 || grep 'EMUL = .*linux' ../ld/Makefile \
22135 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22136 in_tree_ld_is_elf=yes
22137 elif test "$ld_is_gold" = yes; then
22138 in_tree_ld_is_elf=yes
22139 fi
22140 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22141 do
22142 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22143 if test x$gcc_cv_gld_version != x; then
22144 break
22145 fi
22146 done
22147 case $gcc_cv_gld_version in
22148 VERSION=[0-9]*) ;;
22149 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22150 esac
22151 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22152 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22153 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22154 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22155 else
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22157 $as_echo "$gcc_cv_ld" >&6; }
22158 in_tree_ld=no
22159 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22160 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22161 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22162 fi
22163
22164
22165
22166
22167 # Figure out what nm we will be using.
22168 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22169 if test "${gcc_cv_nm+set}" = set; then :
22170
22171 else
22172
22173 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22174 && test -f ../binutils/Makefile \
22175 && test x$build = x$host; then
22176 gcc_cv_nm=../binutils/nm-new$build_exeext
22177 elif test -x nm$build_exeext; then
22178 gcc_cv_nm=./nm$build_exeext
22179 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22180 gcc_cv_nm="$NM_FOR_TARGET"
22181 else
22182 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22183 set dummy $NM_FOR_TARGET; ac_word=$2
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22185 $as_echo_n "checking for $ac_word... " >&6; }
22186 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 case $gcc_cv_nm in
22190 [\\/]* | ?:[\\/]*)
22191 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22192 ;;
22193 *)
22194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22196 do
22197 IFS=$as_save_IFS
22198 test -z "$as_dir" && as_dir=.
22199 for ac_exec_ext in '' $ac_executable_extensions; do
22200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22201 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 break 2
22204 fi
22205 done
22206 done
22207 IFS=$as_save_IFS
22208
22209 ;;
22210 esac
22211 fi
22212 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22213 if test -n "$gcc_cv_nm"; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22215 $as_echo "$gcc_cv_nm" >&6; }
22216 else
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218 $as_echo "no" >&6; }
22219 fi
22220
22221
22222 fi
22223 fi
22224
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22226 $as_echo_n "checking what nm to use... " >&6; }
22227 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22228 # Single tree build which includes binutils.
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22230 $as_echo "newly built nm" >&6; }
22231 in_tree_nm=yes
22232 else
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22234 $as_echo "$gcc_cv_nm" >&6; }
22235 in_tree_nm=no
22236 fi
22237
22238 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22239
22240 case "$ORIGINAL_NM_FOR_TARGET" in
22241 ./nm | ./nm$build_exeext) ;;
22242 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22243 ;;
22244 esac
22245
22246
22247 # Figure out what objdump we will be using.
22248 if test "${gcc_cv_objdump+set}" = set; then :
22249
22250 else
22251
22252 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22253 && test -f ../binutils/Makefile \
22254 && test x$build = x$host; then
22255 # Single tree build which includes binutils.
22256 gcc_cv_objdump=../binutils/objdump$build_exeext
22257 elif test -x objdump$build_exeext; then
22258 gcc_cv_objdump=./objdump$build_exeext
22259 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22260 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22261 else
22262 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22263 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22265 $as_echo_n "checking for $ac_word... " >&6; }
22266 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 case $gcc_cv_objdump in
22270 [\\/]* | ?:[\\/]*)
22271 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22272 ;;
22273 *)
22274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22275 for as_dir in $PATH
22276 do
22277 IFS=$as_save_IFS
22278 test -z "$as_dir" && as_dir=.
22279 for ac_exec_ext in '' $ac_executable_extensions; do
22280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22281 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22283 break 2
22284 fi
22285 done
22286 done
22287 IFS=$as_save_IFS
22288
22289 ;;
22290 esac
22291 fi
22292 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22293 if test -n "$gcc_cv_objdump"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22295 $as_echo "$gcc_cv_objdump" >&6; }
22296 else
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22299 fi
22300
22301
22302 fi
22303 fi
22304
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22306 $as_echo_n "checking what objdump to use... " >&6; }
22307 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22308 # Single tree build which includes binutils.
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22310 $as_echo "newly built objdump" >&6; }
22311 elif test x$gcc_cv_objdump = x; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22313 $as_echo "not found" >&6; }
22314 else
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22316 $as_echo "$gcc_cv_objdump" >&6; }
22317 fi
22318
22319 # Figure out what readelf we will be using.
22320 if test "${gcc_cv_readelf+set}" = set; then :
22321
22322 else
22323
22324 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22325 && test -f ../binutils/Makefile \
22326 && test x$build = x$host; then
22327 # Single tree build which includes binutils.
22328 gcc_cv_readelf=../binutils/readelf$build_exeext
22329 elif test -x readelf$build_exeext; then
22330 gcc_cv_readelf=./readelf$build_exeext
22331 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22332 gcc_cv_readelf="$READELF_FOR_TARGET"
22333 else
22334 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22335 set dummy $READELF_FOR_TARGET; ac_word=$2
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22337 $as_echo_n "checking for $ac_word... " >&6; }
22338 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22339 $as_echo_n "(cached) " >&6
22340 else
22341 case $gcc_cv_readelf in
22342 [\\/]* | ?:[\\/]*)
22343 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22344 ;;
22345 *)
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22348 do
22349 IFS=$as_save_IFS
22350 test -z "$as_dir" && as_dir=.
22351 for ac_exec_ext in '' $ac_executable_extensions; do
22352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22353 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22355 break 2
22356 fi
22357 done
22358 done
22359 IFS=$as_save_IFS
22360
22361 ;;
22362 esac
22363 fi
22364 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22365 if test -n "$gcc_cv_readelf"; then
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22367 $as_echo "$gcc_cv_readelf" >&6; }
22368 else
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 $as_echo "no" >&6; }
22371 fi
22372
22373
22374 fi
22375 fi
22376
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22378 $as_echo_n "checking what readelf to use... " >&6; }
22379 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22380 # Single tree build which includes binutils.
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22382 $as_echo "newly built readelf" >&6; }
22383 elif test x$gcc_cv_readelf = x; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22385 $as_echo "not found" >&6; }
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22388 $as_echo "$gcc_cv_readelf" >&6; }
22389 fi
22390
22391 # Figure out what assembler alignment features are present.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22393 $as_echo_n "checking assembler flags... " >&6; }
22394 if test "${gcc_cv_as_flags+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 case "$target" in
22398 i[34567]86-*-linux*)
22399 gcc_cv_as_flags=--32
22400 ;;
22401 x86_64-*-linux-gnux32)
22402 gcc_cv_as_flags=--x32
22403 ;;
22404 x86_64-*-linux*)
22405 gcc_cv_as_flags=--64
22406 ;;
22407 powerpc*-*-darwin*)
22408 gcc_cv_as_flags="-arch ppc"
22409 ;;
22410 *)
22411 gcc_cv_as_flags=" "
22412 ;;
22413 esac
22414 fi
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22416 $as_echo "$gcc_cv_as_flags" >&6; }
22417
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22419 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22420 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 gcc_cv_as_balign_and_p2align=no
22424 if test $in_tree_gas = yes; then
22425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22426 then gcc_cv_as_balign_and_p2align=yes
22427 fi
22428 elif test x$gcc_cv_as != x; then
22429 $as_echo '.balign 4
22430 .p2align 2' > conftest.s
22431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; }
22437 then
22438 gcc_cv_as_balign_and_p2align=yes
22439 else
22440 echo "configure: failed program was" >&5
22441 cat conftest.s >&5
22442 fi
22443 rm -f conftest.o conftest.s
22444 fi
22445 fi
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22447 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22448 if test $gcc_cv_as_balign_and_p2align = yes; then
22449
22450 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22451
22452 fi
22453
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22456 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22457 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 gcc_cv_as_max_skip_p2align=no
22461 if test $in_tree_gas = yes; then
22462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22463 then gcc_cv_as_max_skip_p2align=yes
22464 fi
22465 elif test x$gcc_cv_as != x; then
22466 $as_echo '.p2align 4,,7' > conftest.s
22467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22469 (eval $ac_try) 2>&5
22470 ac_status=$?
22471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22472 test $ac_status = 0; }; }
22473 then
22474 gcc_cv_as_max_skip_p2align=yes
22475 else
22476 echo "configure: failed program was" >&5
22477 cat conftest.s >&5
22478 fi
22479 rm -f conftest.o conftest.s
22480 fi
22481 fi
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22483 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22484 if test $gcc_cv_as_max_skip_p2align = yes; then
22485
22486 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22487
22488 fi
22489
22490
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22492 $as_echo_n "checking assembler for .literal16... " >&6; }
22493 if test "${gcc_cv_as_literal16+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 gcc_cv_as_literal16=no
22497 if test $in_tree_gas = yes; then
22498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22499 then gcc_cv_as_literal16=yes
22500 fi
22501 elif test x$gcc_cv_as != x; then
22502 $as_echo '.literal16' > conftest.s
22503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22509 then
22510 gcc_cv_as_literal16=yes
22511 else
22512 echo "configure: failed program was" >&5
22513 cat conftest.s >&5
22514 fi
22515 rm -f conftest.o conftest.s
22516 fi
22517 fi
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22519 $as_echo "$gcc_cv_as_literal16" >&6; }
22520 if test $gcc_cv_as_literal16 = yes; then
22521
22522 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22523
22524 fi
22525
22526
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22528 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22529 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22531 else
22532 gcc_cv_as_subsection_m1=no
22533 if test $in_tree_gas = yes; then
22534 if test $in_tree_gas_is_elf = yes \
22535 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22536 then gcc_cv_as_subsection_m1=yes
22537 fi
22538 elif test x$gcc_cv_as != x; then
22539 $as_echo 'conftest_label1: .word 0
22540 .subsection -1
22541 conftest_label2: .word 0
22542 .previous' > conftest.s
22543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }
22549 then
22550 if test x$gcc_cv_nm != x; then
22551 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22552 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22553 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22554 then :
22555 else gcc_cv_as_subsection_m1=yes
22556 fi
22557 rm -f conftest.nm1 conftest.nm2
22558 fi
22559 else
22560 echo "configure: failed program was" >&5
22561 cat conftest.s >&5
22562 fi
22563 rm -f conftest.o conftest.s
22564 fi
22565 fi
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22567 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22568 if test $gcc_cv_as_subsection_m1 = yes; then
22569
22570 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22571
22572 fi
22573
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22576 $as_echo_n "checking assembler for .weak... " >&6; }
22577 if test "${gcc_cv_as_weak+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22579 else
22580 gcc_cv_as_weak=no
22581 if test $in_tree_gas = yes; then
22582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22583 then gcc_cv_as_weak=yes
22584 fi
22585 elif test x$gcc_cv_as != x; then
22586 $as_echo ' .weak foobar' > conftest.s
22587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22592 test $ac_status = 0; }; }
22593 then
22594 gcc_cv_as_weak=yes
22595 else
22596 echo "configure: failed program was" >&5
22597 cat conftest.s >&5
22598 fi
22599 rm -f conftest.o conftest.s
22600 fi
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22603 $as_echo "$gcc_cv_as_weak" >&6; }
22604 if test $gcc_cv_as_weak = yes; then
22605
22606 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22607
22608 fi
22609
22610
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22612 $as_echo_n "checking assembler for .weakref... " >&6; }
22613 if test "${gcc_cv_as_weakref+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 gcc_cv_as_weakref=no
22617 if test $in_tree_gas = yes; then
22618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22619 then gcc_cv_as_weakref=yes
22620 fi
22621 elif test x$gcc_cv_as != x; then
22622 $as_echo ' .weakref foobar, barfnot' > conftest.s
22623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628 test $ac_status = 0; }; }
22629 then
22630 gcc_cv_as_weakref=yes
22631 else
22632 echo "configure: failed program was" >&5
22633 cat conftest.s >&5
22634 fi
22635 rm -f conftest.o conftest.s
22636 fi
22637 fi
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22639 $as_echo "$gcc_cv_as_weakref" >&6; }
22640 if test $gcc_cv_as_weakref = yes; then
22641
22642 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22643
22644 fi
22645
22646
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22648 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22649 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22651 else
22652 gcc_cv_as_nsubspa_comdat=no
22653 if test $in_tree_gas = yes; then
22654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22655 then gcc_cv_as_nsubspa_comdat=yes
22656 fi
22657 elif test x$gcc_cv_as != x; then
22658 $as_echo ' .SPACE $TEXT$
22659 .NSUBSPA $CODE$,COMDAT' > conftest.s
22660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22666 then
22667 gcc_cv_as_nsubspa_comdat=yes
22668 else
22669 echo "configure: failed program was" >&5
22670 cat conftest.s >&5
22671 fi
22672 rm -f conftest.o conftest.s
22673 fi
22674 fi
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22676 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22677 if test $gcc_cv_as_nsubspa_comdat = yes; then
22678
22679 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22680
22681 fi
22682
22683
22684 # .hidden needs to be supported in both the assembler and the linker,
22685 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22686 # This is irritatingly difficult to feature test for; we have to check the
22687 # date string after the version number. If we've got an in-tree
22688 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22689 # to be safe.
22690 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22691 case "${target}" in
22692 *-*-aix*)
22693 conftest_s=' .globl foobar,hidden'
22694 ;;
22695 *)
22696 conftest_s=' .hidden foobar
22697 foobar:'
22698 ;;
22699 esac
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22701 $as_echo_n "checking assembler for .hidden... " >&6; }
22702 if test "${gcc_cv_as_hidden+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22704 else
22705 gcc_cv_as_hidden=no
22706 if test $in_tree_gas = yes; then
22707 if test $in_tree_gas_is_elf = yes \
22708 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22709 then gcc_cv_as_hidden=yes
22710 fi
22711 elif test x$gcc_cv_as != x; then
22712 $as_echo "$conftest_s" > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22720 gcc_cv_as_hidden=yes
22721 else
22722 echo "configure: failed program was" >&5
22723 cat conftest.s >&5
22724 fi
22725 rm -f conftest.o conftest.s
22726 fi
22727 fi
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22729 $as_echo "$gcc_cv_as_hidden" >&6; }
22730
22731
22732 case "${target}" in
22733 *-*-darwin*)
22734 # Darwin as has some visibility support, though with a different syntax.
22735 gcc_cv_as_hidden=yes
22736 ;;
22737 esac
22738
22739 # gnu_indirect_function type is an extension proposed at
22740 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22741 # selection of function implementation
22742 # Check whether --enable-gnu-indirect-function was given.
22743 if test "${enable_gnu_indirect_function+set}" = set; then :
22744 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22745 yes | no) ;;
22746 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22747 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22748 esac
22749 else
22750 enable_gnu_indirect_function="$default_gnu_indirect_function"
22751 fi
22752
22753
22754 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22755
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22758 _ACEOF
22759
22760
22761
22762 if test $in_tree_ld != yes ; then
22763 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22764 if echo "$ld_ver" | grep GNU > /dev/null; then
22765 if test x"$ld_is_gold" = xyes; then
22766 # GNU gold --version looks like this:
22767 #
22768 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22769 #
22770 # We extract the binutils version which is more familiar and specific
22771 # than the gold version.
22772 ld_vers=`echo $ld_ver | sed -n \
22773 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22774 else
22775 # GNU ld --version looks like this:
22776 #
22777 # GNU ld (GNU Binutils) 2.21.51.20110225
22778 ld_vers=`echo $ld_ver | sed -n \
22779 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22780 fi
22781 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'`
22782 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22783 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22784 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22785 else
22786 case "${target}" in
22787 *-*-solaris2*)
22788 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22789 # format.
22790 #
22791 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22792 # /usr/ccs/bin/ld has been configured.
22793 ld_ver=`$gcc_cv_ld -V 2>&1`
22794 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22795 ld_vers=`echo $ld_ver | sed -n \
22796 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22797 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22798 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22799 fi
22800 ;;
22801 esac
22802 fi
22803 fi
22804
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22806 $as_echo_n "checking linker for .hidden support... " >&6; }
22807 if test "${gcc_cv_ld_hidden+set}" = set; then :
22808 $as_echo_n "(cached) " >&6
22809 else
22810 if test $in_tree_ld = yes ; then
22811 gcc_cv_ld_hidden=no
22812 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 \
22813 && test $in_tree_ld_is_elf = yes; then
22814 gcc_cv_ld_hidden=yes
22815 fi
22816 else
22817 gcc_cv_ld_hidden=yes
22818 if test x"$ld_is_gold" = xyes; then
22819 :
22820 elif echo "$ld_ver" | grep GNU > /dev/null; then
22821 case "${target}" in
22822 mmix-knuth-mmixware)
22823 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22824 gcc_cv_ld_hidden=no
22825 ;;
22826 esac
22827 if test 0"$ld_date" -lt 20020404; then
22828 if test -n "$ld_date"; then
22829 # If there was date string, but was earlier than 2002-04-04, fail
22830 gcc_cv_ld_hidden=no
22831 elif test -z "$ld_vers"; then
22832 # If there was no date string nor ld version number, something is wrong
22833 gcc_cv_ld_hidden=no
22834 else
22835 test -z "$ld_vers_patch" && ld_vers_patch=0
22836 if test "$ld_vers_major" -lt 2; then
22837 gcc_cv_ld_hidden=no
22838 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22839 gcc_cv_ld_hidden="no"
22840 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22841 gcc_cv_ld_hidden=no
22842 fi
22843 fi
22844 fi
22845 else
22846 case "${target}" in
22847 *-*-aix[789]*)
22848 gcc_cv_ld_hidden=yes
22849 ;;
22850 *-*-darwin*)
22851 # Darwin ld has some visibility support.
22852 gcc_cv_ld_hidden=yes
22853 ;;
22854 hppa64*-*-hpux* | ia64*-*-hpux*)
22855 gcc_cv_ld_hidden=yes
22856 ;;
22857 *-*-solaris2.1[0-9]*)
22858 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22859 # .symbolic was only added in Solaris 9 12/02.
22860 gcc_cv_ld_hidden=yes
22861 ;;
22862 *)
22863 gcc_cv_ld_hidden=no
22864 ;;
22865 esac
22866 fi
22867 fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22870 $as_echo "$gcc_cv_ld_hidden" >&6; }
22871 libgcc_visibility=no
22872
22873
22874 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22875 libgcc_visibility=yes
22876
22877 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22878
22879 fi
22880
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22882 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22883 gcc_cv_ld_ro_rw_mix=unknown
22884 if test $in_tree_ld = yes ; then
22885 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 \
22886 && test $in_tree_ld_is_elf = yes; then
22887 gcc_cv_ld_ro_rw_mix=read-write
22888 fi
22889 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22890 echo '.section myfoosect, "a"' > conftest1.s
22891 echo '.section myfoosect, "aw"' > conftest2.s
22892 echo '.byte 1' >> conftest2.s
22893 echo '.section myfoosect, "a"' > conftest3.s
22894 echo '.byte 0' >> conftest3.s
22895 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22896 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22897 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22898 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22899 conftest2.o conftest3.o > /dev/null 2>&1; then
22900 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22901 | sed -e '/myfoosect/!d' -e N`
22902 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22903 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22904 gcc_cv_ld_ro_rw_mix=read-only
22905 else
22906 gcc_cv_ld_ro_rw_mix=read-write
22907 fi
22908 fi
22909 fi
22910 rm -f conftest.* conftest[123].*
22911 fi
22912 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22913
22914 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22915
22916 fi
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22918 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22919
22920 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22921 case "${target}" in
22922 *-*-solaris2*)
22923 #
22924 # Solaris 2 ld -V output looks like this for a regular version:
22925 #
22926 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22927 #
22928 # but test versions add stuff at the end:
22929 #
22930 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22931 #
22932 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22933 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22934 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22935 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22936 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22937 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22938 fi
22939 ;;
22940 esac
22941 fi
22942
22943 # Check whether --enable-initfini-array was given.
22944 if test "${enable_initfini_array+set}" = set; then :
22945 enableval=$enable_initfini_array;
22946 else
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22949 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22950 if test "${gcc_cv_initfini_array+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22954 case "${target}" in
22955 ia64-*)
22956 if test "$cross_compiling" = yes; then :
22957 gcc_cv_initfini_array=no
22958 else
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22961
22962 #ifndef __ELF__
22963 #error Not an ELF OS
22964 #endif
22965 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22966 if it can be used. */
22967 static int x = -1;
22968 int main (void) { return x; }
22969 int foo (void) { x = 0; }
22970 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22971
22972 _ACEOF
22973 if ac_fn_cxx_try_run "$LINENO"; then :
22974 gcc_cv_initfini_array=yes
22975 else
22976 gcc_cv_initfini_array=no
22977 fi
22978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22979 conftest.$ac_objext conftest.beam conftest.$ac_ext
22980 fi
22981 ;;
22982 *)
22983 gcc_cv_initfini_array=no
22984 if test $in_tree_ld = yes ; then
22985 if test "$gcc_cv_gld_major_version" -eq 2 \
22986 -a "$gcc_cv_gld_minor_version" -ge 22 \
22987 -o "$gcc_cv_gld_major_version" -gt 2 \
22988 && test $in_tree_ld_is_elf = yes; then
22989 gcc_cv_initfini_array=yes
22990 fi
22991 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22992 case $target:$gas in
22993 *:yes)
22994 sh_flags='"a"'
22995 sh_type='%progbits'
22996 ;;
22997 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22998 sh_flags='"a"'
22999 sh_type='@progbits'
23000 ;;
23001 sparc*-*-solaris2*:no)
23002 sh_flags='#alloc'
23003 sh_type='#progbits'
23004 sh_quote='"'
23005 ;;
23006 esac
23007 case "$target:$gnu_ld" in
23008 *:yes)
23009 cat > conftest.s <<EOF
23010 .section .dtors,$sh_flags,$sh_type
23011 .balign 4
23012 .byte 'A', 'A', 'A', 'A'
23013 .section .ctors,$sh_flags,$sh_type
23014 .balign 4
23015 .byte 'B', 'B', 'B', 'B'
23016 .section .fini_array.65530,$sh_flags,$sh_type
23017 .balign 4
23018 .byte 'C', 'C', 'C', 'C'
23019 .section .init_array.65530,$sh_flags,$sh_type
23020 .balign 4
23021 .byte 'D', 'D', 'D', 'D'
23022 .section .dtors.64528,$sh_flags,$sh_type
23023 .balign 4
23024 .byte 'E', 'E', 'E', 'E'
23025 .section .ctors.64528,$sh_flags,$sh_type
23026 .balign 4
23027 .byte 'F', 'F', 'F', 'F'
23028 .section .fini_array.01005,$sh_flags,$sh_type
23029 .balign 4
23030 .byte 'G', 'G', 'G', 'G'
23031 .section .init_array.01005,$sh_flags,$sh_type
23032 .balign 4
23033 .byte 'H', 'H', 'H', 'H'
23034 .text
23035 .globl _start
23036 _start:
23037 EOF
23038 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23039 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23040 && $gcc_cv_objdump -s -j .init_array conftest \
23041 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23042 && $gcc_cv_objdump -s -j .fini_array conftest \
23043 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23044 gcc_cv_initfini_array=yes
23045 fi
23046 ;;
23047 *-*-solaris2*:no)
23048 # When Solaris ld added constructor priority support, it was
23049 # decided to only handle .init_array.N/.fini_array.N since
23050 # there was no need for backwards compatibility with
23051 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23052 # sections with correct execution order resp. to
23053 # .init_array/.fini_array, while gld merges them into
23054 # .init_array/.fini_array.
23055 cat > conftest.s <<EOF
23056 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23057 .align 4
23058 .byte 'C', 'C', 'C', 'C'
23059 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23060 .align 4
23061 .byte 'D', 'D', 'D', 'D'
23062 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23063 .align 4
23064 .byte 'G', 'G', 'G', 'G'
23065 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23066 .align 4
23067 .byte 'H', 'H', 'H', 'H'
23068 .text
23069 .globl _start
23070 _start:
23071 EOF
23072 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23073 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23074 && $gcc_cv_objdump -s -j .init_array conftest \
23075 | grep HHHHDDDD > /dev/null 2>&1 \
23076 && $gcc_cv_objdump -s -j .fini_array conftest \
23077 | grep GGGGCCCC > /dev/null 2>&1; then
23078 gcc_cv_initfini_array=yes
23079 fi
23080 ;;
23081 esac
23082 rm -f conftest conftest.*
23083 fi
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23086
23087 #ifndef __ELF__
23088 # error Not an ELF OS
23089 #endif
23090 #include <stdlib.h>
23091 #if defined __GLIBC_PREREQ
23092 # if __GLIBC_PREREQ (2, 4)
23093 # else
23094 # error GLIBC 2.4 required
23095 # endif
23096 #else
23097 # if defined __sun__ && defined __svr4__
23098 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23099 # else
23100 # error The C library not known to support .init_array/.fini_array
23101 # endif
23102 #endif
23103
23104 _ACEOF
23105 if ac_fn_cxx_try_cpp "$LINENO"; then :
23106
23107 else
23108 gcc_cv_initfini_array=no
23109 fi
23110 rm -f conftest.err conftest.$ac_ext;;
23111 esac
23112 else
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23114 $as_echo_n "checking cross compile... guessing... " >&6; }
23115 gcc_cv_initfini_array=no
23116 fi
23117 fi
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23119 $as_echo "$gcc_cv_initfini_array" >&6; }
23120 enable_initfini_array=$gcc_cv_initfini_array
23121
23122 fi
23123
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23127 _ACEOF
23128
23129
23130
23131 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23133 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23134 if test "${gcc_cv_as_leb128+set}" = set; then :
23135 $as_echo_n "(cached) " >&6
23136 else
23137 gcc_cv_as_leb128=no
23138 if test $in_tree_gas = yes; then
23139 if test $in_tree_gas_is_elf = yes \
23140 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23141 then gcc_cv_as_leb128=yes
23142 fi
23143 elif test x$gcc_cv_as != x; then
23144 $as_echo ' .data
23145 .uleb128 L2 - L1
23146 L1:
23147 .uleb128 1280
23148 .sleb128 -1010
23149 L2:' > conftest.s
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23156 then
23157 # GAS versions before 2.11 do not support uleb128,
23158 # despite appearing to.
23159 # ??? There exists an elf-specific test that will crash
23160 # the assembler. Perhaps it's better to figure out whether
23161 # arbitrary sections are supported and try the test.
23162 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23163 if echo "$as_ver" | grep GNU > /dev/null; then
23164 as_vers=`echo $as_ver | sed -n \
23165 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23166 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23167 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23168 if test $as_major -eq 2 && test $as_minor -lt 11
23169 then :
23170 else gcc_cv_as_leb128=yes
23171 fi
23172 fi
23173 else
23174 echo "configure: failed program was" >&5
23175 cat conftest.s >&5
23176 fi
23177 rm -f conftest.o conftest.s
23178 fi
23179 fi
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23181 $as_echo "$gcc_cv_as_leb128" >&6; }
23182 if test $gcc_cv_as_leb128 = yes; then
23183
23184 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23185
23186 fi
23187 if test $gcc_cv_as_leb128 != yes; then
23188
23189 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23190
23191 fi
23192
23193 # Check if we have assembler support for unwind directives.
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23195 $as_echo_n "checking assembler for cfi directives... " >&6; }
23196 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23199 gcc_cv_as_cfi_directive=no
23200 if test x$gcc_cv_as != x; then
23201 $as_echo ' .text
23202 .cfi_startproc
23203 .cfi_offset 0, 0
23204 .cfi_same_value 1
23205 .cfi_def_cfa 1, 2
23206 .cfi_escape 1, 2, 3, 4, 5
23207 .cfi_endproc' > conftest.s
23208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23210 (eval $ac_try) 2>&5
23211 ac_status=$?
23212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23213 test $ac_status = 0; }; }
23214 then
23215 case "$target" in
23216 *-*-solaris*)
23217 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23218 # read-only and read-write sections, we need to make sure that the
23219 # assembler used emits read-write .eh_frame sections.
23220 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23221 if test "x$gcc_cv_objdump" != x; then
23222 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23223 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23224 gcc_cv_as_cfi_directive=no
23225 else
23226 case "$target" in
23227 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23228 # On Solaris/x86, make sure that GCC and assembler agree on using
23229 # read-only .eh_frame sections for 64-bit.
23230 if test x$gas = xyes; then
23231 as_ix86_64_opt="--64"
23232 else
23233 as_ix86_64_opt="-xarch=amd64"
23234 fi
23235 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23236 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23237 sed -e /.eh_frame/!d -e N | \
23238 grep READONLY > /dev/null; then
23239 gcc_cv_as_cfi_directive=yes
23240 else
23241 gcc_cv_as_cfi_directive=no
23242 fi
23243 ;;
23244 *)
23245 gcc_cv_as_cfi_directive=yes
23246 ;;
23247 esac
23248 fi
23249 else
23250 # no objdump, err on the side of caution
23251 gcc_cv_as_cfi_directive=no
23252 fi
23253 else
23254 gcc_cv_as_cfi_directive=yes
23255 fi
23256 ;;
23257 *-*-*)
23258 gcc_cv_as_cfi_directive=yes
23259 ;;
23260 esac
23261 else
23262 echo "configure: failed program was" >&5
23263 cat conftest.s >&5
23264 fi
23265 rm -f conftest.o conftest.s
23266 fi
23267 fi
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23269 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23270
23271
23272 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23274 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23275 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278 gcc_cv_as_cfi_advance_working=no
23279 if test x$gcc_cv_as != x; then
23280 $as_echo ' .text
23281 .cfi_startproc
23282 .cfi_adjust_cfa_offset 64
23283 .skip 75040, 0
23284 .cfi_adjust_cfa_offset 128
23285 .cfi_endproc' > conftest.s
23286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23288 (eval $ac_try) 2>&5
23289 ac_status=$?
23290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23291 test $ac_status = 0; }; }
23292 then
23293
23294 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23295 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23296 gcc_cv_as_cfi_advance_working=yes
23297 fi
23298
23299 else
23300 echo "configure: failed program was" >&5
23301 cat conftest.s >&5
23302 fi
23303 rm -f conftest.o conftest.s
23304 fi
23305 fi
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23307 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23308
23309
23310 else
23311 # no objdump, err on the side of caution
23312 gcc_cv_as_cfi_advance_working=no
23313 fi
23314
23315
23316 cat >>confdefs.h <<_ACEOF
23317 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23318 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23319 _ACEOF
23320
23321
23322
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23324 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23325 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23327 else
23328 gcc_cv_as_cfi_personality_directive=no
23329 if test x$gcc_cv_as != x; then
23330 $as_echo ' .text
23331 .cfi_startproc
23332 .cfi_personality 0, symbol
23333 .cfi_endproc' > conftest.s
23334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23339 test $ac_status = 0; }; }
23340 then
23341 gcc_cv_as_cfi_personality_directive=yes
23342 else
23343 echo "configure: failed program was" >&5
23344 cat conftest.s >&5
23345 fi
23346 rm -f conftest.o conftest.s
23347 fi
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23350 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23351
23352
23353
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23356 then echo 1; else echo 0; fi`
23357 _ACEOF
23358
23359
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23361 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23362 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 gcc_cv_as_cfi_sections_directive=no
23366 if test x$gcc_cv_as != x; then
23367 $as_echo ' .text
23368 .cfi_sections .debug_frame, .eh_frame
23369 .cfi_startproc
23370 .cfi_endproc' > conftest.s
23371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23376 test $ac_status = 0; }; }
23377 then
23378 case $target_os in
23379 win32 | pe | cygwin* | mingw32*)
23380 # Need to check that we generated the correct relocation for the
23381 # .debug_frame section. This was fixed for binutils 2.21.
23382 gcc_cv_as_cfi_sections_directive=no
23383 if test "x$gcc_cv_objdump" != x; then
23384 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23385 grep secrel > /dev/null; then
23386 gcc_cv_as_cfi_sections_directive=yes
23387 fi
23388 fi
23389 ;;
23390 *)
23391 gcc_cv_as_cfi_sections_directive=yes
23392 ;;
23393 esac
23394 else
23395 echo "configure: failed program was" >&5
23396 cat conftest.s >&5
23397 fi
23398 rm -f conftest.o conftest.s
23399 fi
23400 fi
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23402 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23403
23404
23405
23406
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23409 then echo 1; else echo 0; fi`
23410 _ACEOF
23411
23412
23413 # GAS versions up to and including 2.11.0 may mis-optimize
23414 # .eh_frame data.
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23416 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23417 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23418 $as_echo_n "(cached) " >&6
23419 else
23420 gcc_cv_as_eh_frame=no
23421 if test $in_tree_gas = yes; then
23422 if test $in_tree_gas_is_elf = yes \
23423 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23424 then gcc_cv_as_eh_frame=yes
23425 fi
23426 elif test x$gcc_cv_as != x; then
23427 $as_echo ' .text
23428 .LFB1:
23429 .4byte 0
23430 .L1:
23431 .4byte 0
23432 .LFE1:
23433 .section .eh_frame,"aw",@progbits
23434 __FRAME_BEGIN__:
23435 .4byte .LECIE1-.LSCIE1
23436 .LSCIE1:
23437 .4byte 0x0
23438 .byte 0x1
23439 .ascii "z\0"
23440 .byte 0x1
23441 .byte 0x78
23442 .byte 0x1a
23443 .byte 0x0
23444 .byte 0x4
23445 .4byte 1
23446 .p2align 1
23447 .LECIE1:
23448 .LSFDE1:
23449 .4byte .LEFDE1-.LASFDE1
23450 .LASFDE1:
23451 .4byte .LASFDE1-__FRAME_BEGIN__
23452 .4byte .LFB1
23453 .4byte .LFE1-.LFB1
23454 .byte 0x4
23455 .4byte .LFE1-.LFB1
23456 .byte 0x4
23457 .4byte .L1-.LFB1
23458 .LEFDE1:' > conftest.s
23459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464 test $ac_status = 0; }; }
23465 then
23466 cat > conftest.lit <<EOF
23467 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23468 0010 01000000 12000000 18000000 00000000 ................
23469 0020 08000000 04080000 0044 .........D
23470 EOF
23471 cat > conftest.big <<EOF
23472 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23473 0010 00000001 00000012 00000018 00000000 ................
23474 0020 00000008 04000000 0844 .........D
23475 EOF
23476 # If the assembler didn't choke, and we can objdump,
23477 # and we got the correct data, then succeed.
23478 # The text in the here-document typically retains its unix-style line
23479 # endings, while the output of objdump will use host line endings.
23480 # Therefore, use diff -b for the comparisons.
23481 if test x$gcc_cv_objdump != x \
23482 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23483 | tail -3 > conftest.got \
23484 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23485 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23486 then
23487 gcc_cv_as_eh_frame=yes
23488 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493 test $ac_status = 0; }; }; then
23494 gcc_cv_as_eh_frame=buggy
23495 else
23496 # Uh oh, what do we do now?
23497 gcc_cv_as_eh_frame=no
23498 fi
23499 else
23500 echo "configure: failed program was" >&5
23501 cat conftest.s >&5
23502 fi
23503 rm -f conftest.o conftest.s
23504 fi
23505 fi
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23507 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23508
23509
23510
23511 if test $gcc_cv_as_eh_frame = buggy; then
23512
23513 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23514
23515 fi
23516
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23518 $as_echo_n "checking assembler for section merging support... " >&6; }
23519 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23520 $as_echo_n "(cached) " >&6
23521 else
23522 gcc_cv_as_shf_merge=no
23523 if test $in_tree_gas = yes; then
23524 if test $in_tree_gas_is_elf = yes \
23525 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23526 then gcc_cv_as_shf_merge=yes
23527 fi
23528 elif test x$gcc_cv_as != x; then
23529 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23535 test $ac_status = 0; }; }
23536 then
23537 gcc_cv_as_shf_merge=yes
23538 else
23539 echo "configure: failed program was" >&5
23540 cat conftest.s >&5
23541 fi
23542 rm -f conftest.o conftest.s
23543 fi
23544 fi
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23546 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23547
23548
23549 if test $gcc_cv_as_shf_merge = no; then
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23551 $as_echo_n "checking assembler for section merging support... " >&6; }
23552 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23553 $as_echo_n "(cached) " >&6
23554 else
23555 gcc_cv_as_shf_merge=no
23556 if test $in_tree_gas = yes; then
23557 if test $in_tree_gas_is_elf = yes \
23558 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23559 then gcc_cv_as_shf_merge=yes
23560 fi
23561 elif test x$gcc_cv_as != x; then
23562 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23568 test $ac_status = 0; }; }
23569 then
23570 gcc_cv_as_shf_merge=yes
23571 else
23572 echo "configure: failed program was" >&5
23573 cat conftest.s >&5
23574 fi
23575 rm -f conftest.o conftest.s
23576 fi
23577 fi
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23579 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23580
23581
23582 fi
23583
23584 cat >>confdefs.h <<_ACEOF
23585 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23586 _ACEOF
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23590 $as_echo_n "checking assembler for stabs directive... " >&6; }
23591 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 gcc_cv_as_stabs_directive=no
23595 if test x$gcc_cv_as != x; then
23596 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23602 test $ac_status = 0; }; }
23603 then
23604 gcc_cv_as_stabs_directive=yes
23605 else
23606 echo "configure: failed program was" >&5
23607 cat conftest.s >&5
23608 fi
23609 rm -f conftest.o conftest.s
23610 fi
23611 fi
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23613 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23614 if test $gcc_cv_as_stabs_directive = yes; then
23615
23616 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23617
23618 fi
23619
23620
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23622 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23623 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23624 $as_echo_n "(cached) " >&6
23625 else
23626 gcc_cv_as_comdat_group=no
23627 if test $in_tree_gas = yes; then
23628 if test $in_tree_gas_is_elf = yes \
23629 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23630 then gcc_cv_as_comdat_group=yes
23631 fi
23632 elif test x$gcc_cv_as != x; then
23633 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23639 test $ac_status = 0; }; }
23640 then
23641 gcc_cv_as_comdat_group=yes
23642 else
23643 echo "configure: failed program was" >&5
23644 cat conftest.s >&5
23645 fi
23646 rm -f conftest.o conftest.s
23647 fi
23648 fi
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23650 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23651
23652
23653 if test $gcc_cv_as_comdat_group = yes; then
23654 gcc_cv_as_comdat_group_percent=no
23655 gcc_cv_as_comdat_group_group=no
23656 else
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23658 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23659 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23661 else
23662 gcc_cv_as_comdat_group_percent=no
23663 if test $in_tree_gas = yes; then
23664 if test $in_tree_gas_is_elf = yes \
23665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23666 then gcc_cv_as_comdat_group_percent=yes
23667 fi
23668 elif test x$gcc_cv_as != x; then
23669 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23675 test $ac_status = 0; }; }
23676 then
23677 gcc_cv_as_comdat_group_percent=yes
23678 else
23679 echo "configure: failed program was" >&5
23680 cat conftest.s >&5
23681 fi
23682 rm -f conftest.o conftest.s
23683 fi
23684 fi
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23686 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23687
23688
23689 if test $gcc_cv_as_comdat_group_percent = yes; then
23690 gcc_cv_as_comdat_group_group=no
23691 else
23692 case "${target}" in
23693 # Sun as uses a completely different syntax.
23694 *-*-solaris2*)
23695 case "${target}" in
23696 sparc*-*-solaris2*)
23697 conftest_s='
23698 .group foo,".text%foo",#comdat
23699 .section ".text%foo", #alloc,#execinstr,#progbits
23700 .globl foo
23701 foo:
23702 '
23703 ;;
23704 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23705 conftest_s='
23706 .group foo,.text%foo,#comdat
23707 .section .text%foo, "ax", @progbits
23708 .globl foo
23709 foo:
23710 '
23711 ;;
23712 esac
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23714 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23715 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23717 else
23718 gcc_cv_as_comdat_group_group=no
23719 if test x$gcc_cv_as != x; then
23720 $as_echo "$conftest_s" > conftest.s
23721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23727 then
23728 gcc_cv_as_comdat_group_group=yes
23729 else
23730 echo "configure: failed program was" >&5
23731 cat conftest.s >&5
23732 fi
23733 rm -f conftest.o conftest.s
23734 fi
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23737 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23738
23739
23740 ;;
23741 esac
23742 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23743 gcc_cv_as_comdat_group_group=no
23744 fi
23745 fi
23746 fi
23747 if test x"$ld_is_gold" = xyes; then
23748 comdat_group=yes
23749 elif test $in_tree_ld = yes ; then
23750 comdat_group=no
23751 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 \
23752 && test $in_tree_ld_is_elf = yes; then
23753 comdat_group=yes
23754 fi
23755 elif echo "$ld_ver" | grep GNU > /dev/null; then
23756 comdat_group=yes
23757 if test 0"$ld_date" -lt 20050308; then
23758 if test -n "$ld_date"; then
23759 # If there was date string, but was earlier than 2005-03-08, fail
23760 comdat_group=no
23761 elif test "$ld_vers_major" -lt 2; then
23762 comdat_group=no
23763 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23764 comdat_group=no
23765 fi
23766 fi
23767 else
23768 case "${target}" in
23769 *-*-solaris2.1[1-9]*)
23770 comdat_group=no
23771 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23772 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23773 # version 1.688.
23774 #
23775 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23776 # least ld version 1.2267.
23777 if test "$ld_vers_major" -gt 1; then
23778 comdat_group=yes
23779 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23780 comdat_group=yes
23781 elif test "$ld_vers_minor" -ge 2267; then
23782 comdat_group=yes
23783 fi
23784 ;;
23785 *)
23786 # Assume linkers other than GNU ld don't support COMDAT group.
23787 comdat_group=no
23788 ;;
23789 esac
23790 fi
23791 # Allow overriding the automatic COMDAT group tests above.
23792 # Check whether --enable-comdat was given.
23793 if test "${enable_comdat+set}" = set; then :
23794 enableval=$enable_comdat; comdat_group="$enable_comdat"
23795 fi
23796
23797 if test $comdat_group = no; then
23798 gcc_cv_as_comdat_group=no
23799 gcc_cv_as_comdat_group_percent=no
23800 gcc_cv_as_comdat_group_group=no
23801 fi
23802
23803 cat >>confdefs.h <<_ACEOF
23804 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23805 || test $gcc_cv_as_comdat_group_percent = yes \
23806 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23807 _ACEOF
23808
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23811 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23812 if test "${gcc_cv_as_discriminator+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814 else
23815 gcc_cv_as_discriminator=no
23816 if test $in_tree_gas = yes; then
23817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23818 then gcc_cv_as_discriminator=yes
23819 fi
23820 elif test x$gcc_cv_as != x; then
23821 $as_echo ' .text
23822 .file 1 "conf.c"
23823 .loc 1 1 0 discriminator 1' > conftest.s
23824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829 test $ac_status = 0; }; }
23830 then
23831 gcc_cv_as_discriminator=yes
23832 else
23833 echo "configure: failed program was" >&5
23834 cat conftest.s >&5
23835 fi
23836 rm -f conftest.o conftest.s
23837 fi
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23840 $as_echo "$gcc_cv_as_discriminator" >&6; }
23841 if test $gcc_cv_as_discriminator = yes; then
23842
23843 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23844
23845 fi
23846
23847
23848 # Thread-local storage - the check is heavily parameterized.
23849 conftest_s=
23850 tls_first_major=
23851 tls_first_minor=
23852 tls_as_opt=
23853 case "$target" in
23854 alpha*-*-*)
23855 conftest_s='
23856 .section ".tdata","awT",@progbits
23857 foo: .long 25
23858 .text
23859 ldq $27,__tls_get_addr($29) !literal!1
23860 lda $16,foo($29) !tlsgd!1
23861 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23862 ldq $27,__tls_get_addr($29) !literal!2
23863 lda $16,foo($29) !tlsldm!2
23864 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23865 ldq $1,foo($29) !gotdtprel
23866 ldah $2,foo($29) !dtprelhi
23867 lda $3,foo($2) !dtprello
23868 lda $4,foo($29) !dtprel
23869 ldq $1,foo($29) !gottprel
23870 ldah $2,foo($29) !tprelhi
23871 lda $3,foo($2) !tprello
23872 lda $4,foo($29) !tprel'
23873 tls_first_major=2
23874 tls_first_minor=13
23875 tls_as_opt=--fatal-warnings
23876 ;;
23877 arc*-*-*)
23878 conftest_s='
23879 add_s r0,r0, @foo@tpoff'
23880 tls_first_major=2
23881 tls_first_minor=23
23882 ;;
23883 cris-*-*|crisv32-*-*)
23884 conftest_s='
23885 .section ".tdata","awT",@progbits
23886 x: .long 25
23887 .text
23888 move.d x:IE,$r10
23889 nop'
23890 tls_first_major=2
23891 tls_first_minor=20
23892 tls_as_opt=--fatal-warnings
23893 ;;
23894 frv*-*-*)
23895 conftest_s='
23896 .section ".tdata","awT",@progbits
23897 x: .long 25
23898 .text
23899 call #gettlsoff(x)'
23900 tls_first_major=2
23901 tls_first_minor=14
23902 ;;
23903 hppa*-*-linux*)
23904 conftest_s='
23905 t1: .reg %r20
23906 t2: .reg %r21
23907 gp: .reg %r19
23908 .section ".tdata","awT",@progbits
23909 foo: .long 25
23910 .text
23911 .align 4
23912 addil LT%foo-$tls_gdidx$,gp
23913 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23914 b __tls_get_addr
23915 nop
23916 addil LT%foo-$tls_ldidx$,gp
23917 b __tls_get_addr
23918 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23919 addil LR%foo-$tls_dtpoff$,%ret0
23920 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23921 mfctl %cr27,%t1
23922 addil LT%foo-$tls_ieoff$,gp
23923 ldw RT%foo-$tls_ieoff$(%r1),%t2
23924 add %t1,%t2,%t3
23925 mfctl %cr27,%t1
23926 addil LR%foo-$tls_leoff$,%t1
23927 ldo RR%foo-$tls_leoff$(%r1),%t2'
23928 tls_first_major=2
23929 tls_first_minor=15
23930 tls_as_opt=--fatal-warnings
23931 ;;
23932 arm*-*-*)
23933 conftest_s='
23934 .section ".tdata","awT",%progbits
23935 foo: .long 25
23936 .text
23937 .word foo(gottpoff)
23938 .word foo(tpoff)
23939 .word foo(tlsgd)
23940 .word foo(tlsldm)
23941 .word foo(tlsldo)'
23942 tls_first_major=2
23943 tls_first_minor=17
23944 ;;
23945 i[34567]86-*-* | x86_64-*-*)
23946 case "$target" in
23947 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23948 on_solaris=yes
23949 ;;
23950 *)
23951 on_solaris=no
23952 ;;
23953 esac
23954 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23955 conftest_s='
23956 .section .tdata,"awt",@progbits'
23957 tls_first_major=0
23958 tls_first_minor=0
23959 tls_section_flag=t
23960
23961 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23962
23963 else
23964 conftest_s='
23965 .section ".tdata","awT",@progbits'
23966 tls_first_major=2
23967 tls_first_minor=14
23968 tls_section_flag=T
23969 tls_as_opt="--fatal-warnings"
23970 fi
23971 case "$target" in
23972 i[34567]86-*-*)
23973 conftest_s="$conftest_s
23974 foo: .long 25
23975 .text
23976 movl %gs:0, %eax
23977 leal foo@tlsgd(,%ebx,1), %eax
23978 leal foo@tlsldm(%ebx), %eax
23979 leal foo@dtpoff(%eax), %edx
23980 movl foo@gottpoff(%ebx), %eax
23981 subl foo@gottpoff(%ebx), %eax
23982 addl foo@gotntpoff(%ebx), %eax
23983 movl foo@indntpoff, %eax
23984 movl \$foo@tpoff, %eax
23985 subl \$foo@tpoff, %eax
23986 leal foo@ntpoff(%ecx), %eax"
23987 ;;
23988 x86_64-*-*)
23989 if test x$on_solaris = xyes; then
23990 case $gas_flag in
23991 yes) tls_as_opt="$tls_as_opt --64" ;;
23992 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23993 esac
23994 fi
23995 conftest_s="$conftest_s
23996 foo: .long 25
23997 .text
23998 movq %fs:0, %rax
23999 leaq foo@tlsgd(%rip), %rdi
24000 leaq foo@tlsld(%rip), %rdi
24001 leaq foo@dtpoff(%rax), %rdx
24002 movq foo@gottpoff(%rip), %rax
24003 movq \$foo@tpoff, %rax"
24004 ;;
24005 esac
24006 ;;
24007 ia64-*-*)
24008 conftest_s='
24009 .section ".tdata","awT",@progbits
24010 foo: data8 25
24011 .text
24012 addl r16 = @ltoff(@dtpmod(foo#)), gp
24013 addl r17 = @ltoff(@dtprel(foo#)), gp
24014 addl r18 = @ltoff(@tprel(foo#)), gp
24015 addl r19 = @dtprel(foo#), gp
24016 adds r21 = @dtprel(foo#), r13
24017 movl r23 = @dtprel(foo#)
24018 addl r20 = @tprel(foo#), gp
24019 adds r22 = @tprel(foo#), r13
24020 movl r24 = @tprel(foo#)'
24021 tls_first_major=2
24022 tls_first_minor=13
24023 tls_as_opt=--fatal-warnings
24024 ;;
24025 microblaze*-*-*)
24026 conftest_s='
24027 .section .tdata,"awT",@progbits
24028 x:
24029 .word 2
24030 .text
24031 addik r5,r20,x@TLSGD
24032 addik r5,r20,x@TLSLDM'
24033 tls_first_major=2
24034 tls_first_minor=20
24035 tls_as_opt='--fatal-warnings'
24036 ;;
24037 mips*-*-*)
24038 conftest_s='
24039 .section .tdata,"awT",@progbits
24040 x:
24041 .word 2
24042 .text
24043 addiu $4, $28, %tlsgd(x)
24044 addiu $4, $28, %tlsldm(x)
24045 lui $4, %dtprel_hi(x)
24046 addiu $4, $4, %dtprel_lo(x)
24047 lw $4, %gottprel(x)($28)
24048 lui $4, %tprel_hi(x)
24049 addiu $4, $4, %tprel_lo(x)'
24050 tls_first_major=2
24051 tls_first_minor=16
24052 tls_as_opt='-32 --fatal-warnings'
24053 ;;
24054 m68k-*-*)
24055 conftest_s='
24056 .section .tdata,"awT",@progbits
24057 x:
24058 .word 2
24059 .text
24060 foo:
24061 move.l x@TLSGD(%a5),%a0
24062 move.l x@TLSLDM(%a5),%a0
24063 move.l x@TLSLDO(%a5),%a0
24064 move.l x@TLSIE(%a5),%a0
24065 move.l x@TLSLE(%a5),%a0'
24066 tls_first_major=2
24067 tls_first_minor=19
24068 tls_as_opt='--fatal-warnings'
24069 ;;
24070 nios2-*-*)
24071 conftest_s='
24072 .section ".tdata","awT",@progbits'
24073 tls_first_major=2
24074 tls_first_minor=23
24075 tls_as_opt="--fatal-warnings"
24076 ;;
24077 aarch64*-*-*)
24078 conftest_s='
24079 .section ".tdata","awT",%progbits
24080 foo: .long 25
24081 .text
24082 adrp x0, :tlsgd:x
24083 add x0, x0, #:tlsgd_lo12:x
24084 bl __tls_get_addr
24085 nop'
24086 tls_first_major=2
24087 tls_first_minor=20
24088 tls_as_opt='--fatal-warnings'
24089 ;;
24090 powerpc-ibm-aix*)
24091 conftest_s='
24092 .extern __get_tpointer
24093 .toc
24094 LC..1:
24095 .tc a[TC],a[TL]@le
24096 .csect .text[PR]
24097 .tlstest:
24098 lwz 9,LC..1(2)
24099 bla __get_tpointer
24100 lwzx 3,9,3
24101 .globl a
24102 .csect a[TL],4
24103 a:
24104 .space 4'
24105 tls_first_major=0
24106 tls_first_minor=0
24107 ;;
24108 powerpc64*-*-*)
24109 conftest_s='
24110 .section ".tdata","awT",@progbits
24111 .align 3
24112 ld0: .space 8
24113 ld1: .space 8
24114 x1: .space 8
24115 x2: .space 8
24116 x3: .space 8
24117 .text
24118 addi 3,2,ld0@got@tlsgd
24119 bl .__tls_get_addr
24120 nop
24121 addi 3,2,ld1@toc
24122 bl .__tls_get_addr
24123 nop
24124 addi 3,2,x1@got@tlsld
24125 bl .__tls_get_addr
24126 nop
24127 addi 9,3,x1@dtprel
24128 bl .__tls_get_addr
24129 nop
24130 addis 9,3,x2@dtprel@ha
24131 addi 9,9,x2@dtprel@l
24132 bl .__tls_get_addr
24133 nop
24134 ld 9,x3@got@dtprel(2)
24135 add 9,9,3
24136 bl .__tls_get_addr
24137 nop'
24138 tls_first_major=2
24139 tls_first_minor=14
24140 tls_as_opt="-a64 --fatal-warnings"
24141 ;;
24142 powerpc*-*-*)
24143 conftest_s='
24144 .section ".tdata","awT",@progbits
24145 .align 2
24146 ld0: .space 4
24147 ld1: .space 4
24148 x1: .space 4
24149 x2: .space 4
24150 x3: .space 4
24151 .text
24152 addi 3,31,ld0@got@tlsgd
24153 bl __tls_get_addr
24154 addi 3,31,x1@got@tlsld
24155 bl __tls_get_addr
24156 addi 9,3,x1@dtprel
24157 addis 9,3,x2@dtprel@ha
24158 addi 9,9,x2@dtprel@l
24159 lwz 9,x3@got@tprel(31)
24160 add 9,9,x@tls
24161 addi 9,2,x1@tprel
24162 addis 9,2,x2@tprel@ha
24163 addi 9,9,x2@tprel@l'
24164 tls_first_major=2
24165 tls_first_minor=14
24166 tls_as_opt="-a32 --fatal-warnings"
24167 ;;
24168 riscv*-*-*)
24169 conftest_s='
24170 .section .tdata,"awT",@progbits
24171 x: .word 2
24172 .text
24173 la.tls.gd a0,x
24174 call __tls_get_addr'
24175 tls_first_major=2
24176 tls_first_minor=21
24177 tls_as_opt='--fatal-warnings'
24178 ;;
24179 s390-*-*)
24180 conftest_s='
24181 .section ".tdata","awT",@progbits
24182 foo: .long 25
24183 .text
24184 .long foo@TLSGD
24185 .long foo@TLSLDM
24186 .long foo@DTPOFF
24187 .long foo@NTPOFF
24188 .long foo@GOTNTPOFF
24189 .long foo@INDNTPOFF
24190 l %r1,foo@GOTNTPOFF(%r12)
24191 l %r1,0(%r1):tls_load:foo
24192 bas %r14,0(%r1,%r13):tls_gdcall:foo
24193 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24194 tls_first_major=2
24195 tls_first_minor=14
24196 tls_as_opt="-m31 --fatal-warnings"
24197 ;;
24198 s390x-*-*)
24199 conftest_s='
24200 .section ".tdata","awT",@progbits
24201 foo: .long 25
24202 .text
24203 .quad foo@TLSGD
24204 .quad foo@TLSLDM
24205 .quad foo@DTPOFF
24206 .quad foo@NTPOFF
24207 .quad foo@GOTNTPOFF
24208 lg %r1,foo@GOTNTPOFF(%r12)
24209 larl %r1,foo@INDNTPOFF
24210 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24211 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24212 tls_first_major=2
24213 tls_first_minor=14
24214 tls_as_opt="-m64 -Aesame --fatal-warnings"
24215 ;;
24216 sh-*-* | sh[123456789lbe]*-*-*)
24217 conftest_s='
24218 .section ".tdata","awT",@progbits
24219 foo: .long 25
24220 .text
24221 .long foo@TLSGD
24222 .long foo@TLSLDM
24223 .long foo@DTPOFF
24224 .long foo@GOTTPOFF
24225 .long foo@TPOFF'
24226 tls_first_major=2
24227 tls_first_minor=13
24228 tls_as_opt=--fatal-warnings
24229 ;;
24230 sparc*-*-*)
24231 case "$target" in
24232 sparc*-sun-solaris2.*)
24233 on_solaris=yes
24234 ;;
24235 *)
24236 on_solaris=no
24237 ;;
24238 esac
24239 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24240 conftest_s='
24241 .section ".tdata",#alloc,#write,#tls'
24242 tls_first_major=0
24243 tls_first_minor=0
24244 else
24245 conftest_s='
24246 .section ".tdata","awT",@progbits'
24247 tls_first_major=2
24248 tls_first_minor=14
24249 tls_as_opt="-32 --fatal-warnings"
24250 fi
24251 conftest_s="$conftest_s
24252 foo: .long 25
24253 .text
24254 sethi %tgd_hi22(foo), %o0
24255 add %o0, %tgd_lo10(foo), %o1
24256 add %l7, %o1, %o0, %tgd_add(foo)
24257 call __tls_get_addr, %tgd_call(foo)
24258 sethi %tldm_hi22(foo), %l1
24259 add %l1, %tldm_lo10(foo), %l2
24260 add %l7, %l2, %o0, %tldm_add(foo)
24261 call __tls_get_addr, %tldm_call(foo)
24262 sethi %tldo_hix22(foo), %l3
24263 xor %l3, %tldo_lox10(foo), %l4
24264 add %o0, %l4, %l5, %tldo_add(foo)
24265 sethi %tie_hi22(foo), %o3
24266 add %o3, %tie_lo10(foo), %o3
24267 ld [%l7 + %o3], %o2, %tie_ld(foo)
24268 add %g7, %o2, %o4, %tie_add(foo)
24269 sethi %tle_hix22(foo), %l1
24270 xor %l1, %tle_lox10(foo), %o5
24271 ld [%g7 + %o5], %o1"
24272 ;;
24273 tilepro*-*-*)
24274 conftest_s='
24275 .section ".tdata","awT",@progbits
24276 foo: .long 25
24277 .text
24278 addli r0, zero, tls_gd(foo)
24279 auli r0, zero, tls_gd_ha16(foo)
24280 addli r0, r0, tls_gd_lo16(foo)
24281 jal __tls_get_addr
24282 addli r0, zero, tls_ie(foo)
24283 auli r0, r0, tls_ie_ha16(foo)
24284 addli r0, r0, tls_ie_lo16(foo)'
24285 tls_first_major=2
24286 tls_first_minor=22
24287 tls_as_opt="--fatal-warnings"
24288 ;;
24289 tilegx*-*-*)
24290 conftest_s='
24291 .section ".tdata","awT",@progbits
24292 foo: .long 25
24293 .text
24294 shl16insli r0, zero, hw0_last_tls_gd(foo)
24295 shl16insli r0, zero, hw1_last_tls_gd(foo)
24296 shl16insli r0, r0, hw0_tls_gd(foo)
24297 jal __tls_get_addr
24298 shl16insli r0, zero, hw1_last_tls_ie(foo)
24299 shl16insli r0, r0, hw0_tls_ie(foo)'
24300 tls_first_major=2
24301 tls_first_minor=22
24302 tls_as_opt="--fatal-warnings"
24303 ;;
24304 xtensa*-*-*)
24305 conftest_s='
24306 .section ".tdata","awT",@progbits
24307 foo: .long 25
24308 .text
24309 movi a8, foo@TLSFUNC
24310 movi a10, foo@TLSARG
24311 callx8.tls a8, foo@TLSCALL'
24312 tls_first_major=2
24313 tls_first_minor=19
24314 ;;
24315 esac
24316 set_have_as_tls=no
24317 if test "x$enable_tls" = xno ; then
24318 : # TLS explicitly disabled.
24319 elif test "x$enable_tls" = xyes ; then
24320 set_have_as_tls=yes # TLS explicitly enabled.
24321 elif test -z "$tls_first_major"; then
24322 : # If we don't have a check, assume no support.
24323 else
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24325 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24326 if test "${gcc_cv_as_tls+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329 gcc_cv_as_tls=no
24330 if test $in_tree_gas = yes; then
24331 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24332 then gcc_cv_as_tls=yes
24333 fi
24334 elif test x$gcc_cv_as != x; then
24335 $as_echo "$conftest_s" > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_tls=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24347 fi
24348 rm -f conftest.o conftest.s
24349 fi
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24352 $as_echo "$gcc_cv_as_tls" >&6; }
24353 if test $gcc_cv_as_tls = yes; then
24354 set_have_as_tls=yes
24355 fi
24356
24357 fi
24358 if test $set_have_as_tls = yes ; then
24359
24360 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24361
24362 fi
24363
24364 # Target-specific assembler checks.
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24367 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24368 gcc_cv_ld_static_dynamic=no
24369 gcc_cv_ld_static_option='-Bstatic'
24370 gcc_cv_ld_dynamic_option='-Bdynamic'
24371 if test $in_tree_ld = yes ; then
24372 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
24373 gcc_cv_ld_static_dynamic=yes
24374 fi
24375 elif test x$gcc_cv_ld != x; then
24376 # Check if linker supports -Bstatic/-Bdynamic option
24377 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24378 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24379 gcc_cv_ld_static_dynamic=yes
24380 else
24381 case "$target" in
24382 # AIX ld uses -b flags
24383 *-*-aix4.[23]* | *-*-aix[5-9]*)
24384 gcc_cv_ld_static_dynamic=yes
24385 gcc_cv_ld_static_option="-bstatic"
24386 gcc_cv_ld_dynamic_option="-bdynamic"
24387 ;;
24388 # HP-UX ld uses -a flags to select between shared and archive.
24389 *-*-hpux*)
24390 if test x"$gnu_ld" = xno; then
24391 gcc_cv_ld_static_dynamic=yes
24392 gcc_cv_ld_static_option="-aarchive_shared"
24393 gcc_cv_ld_dynamic_option="-adefault"
24394 fi
24395 ;;
24396 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24397 *-*-solaris2*)
24398 gcc_cv_ld_static_dynamic=yes
24399 ;;
24400 esac
24401 fi
24402 fi
24403 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24404
24405 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24406
24407
24408 cat >>confdefs.h <<_ACEOF
24409 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24410 _ACEOF
24411
24412
24413 cat >>confdefs.h <<_ACEOF
24414 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24415 _ACEOF
24416
24417 fi
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24419 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24420
24421 if test x"$demangler_in_ld" = xyes; then
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24423 $as_echo_n "checking linker --demangle support... " >&6; }
24424 gcc_cv_ld_demangle=no
24425 if test $in_tree_ld = yes; then
24426 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 \
24427 gcc_cv_ld_demangle=yes
24428 fi
24429 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24430 # Check if the GNU linker supports --demangle option
24431 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24432 gcc_cv_ld_demangle=yes
24433 fi
24434 fi
24435 if test x"$gcc_cv_ld_demangle" = xyes; then
24436
24437 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24438
24439 fi
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24441 $as_echo "$gcc_cv_ld_demangle" >&6; }
24442 fi
24443
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24445 $as_echo_n "checking linker plugin support... " >&6; }
24446 gcc_cv_lto_plugin=0
24447 if test -f liblto_plugin.la; then
24448 save_ld_ver="$ld_ver"
24449 save_ld_vers_major="$ld_vers_major"
24450 save_ld_vers_minor="$ld_vers_minor"
24451 save_ld_is_gold="$ld_is_gold"
24452
24453 ld_is_gold=no
24454
24455 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24456 ld_ver="GNU ld"
24457 # FIXME: ld_is_gold?
24458 ld_vers_major="$gcc_cv_gld_major_version"
24459 ld_vers_minor="$gcc_cv_gld_minor_version"
24460 else
24461 # Determine plugin linker version.
24462 # FIXME: Partial duplicate from above, generalize.
24463 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24464 if echo "$ld_ver" | grep GNU > /dev/null; then
24465 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24466 ld_is_gold=yes
24467 ld_vers=`echo $ld_ver | sed -n \
24468 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24469 else
24470 ld_vers=`echo $ld_ver | sed -n \
24471 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24472 fi
24473 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24474 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24475 fi
24476 fi
24477
24478 # Determine plugin support.
24479 if echo "$ld_ver" | grep GNU > /dev/null; then
24480 # Require GNU ld or gold 2.21+ for plugin support by default.
24481 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24482 gcc_cv_lto_plugin=2
24483 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24484 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24485 gcc_cv_lto_plugin=1
24486 fi
24487 fi
24488
24489 ld_ver="$save_ld_ver"
24490 ld_vers_major="$save_ld_vers_major"
24491 ld_vers_minor="$save_ld_vers_minor"
24492 ld_is_gold="$save_ld_is_gold"
24493 fi
24494
24495 cat >>confdefs.h <<_ACEOF
24496 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24497 _ACEOF
24498
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24500 $as_echo "$gcc_cv_lto_plugin" >&6; }
24501
24502 # Target OS-specific assembler checks.
24503
24504 case "$target_os" in
24505 darwin*)
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24507 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24508 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_mmacosx_version_min=no
24512 if test x$gcc_cv_as != x; then
24513 $as_echo '.text' > conftest.s
24514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24520 then
24521 gcc_cv_as_mmacosx_version_min=yes
24522 else
24523 echo "configure: failed program was" >&5
24524 cat conftest.s >&5
24525 fi
24526 rm -f conftest.o conftest.s
24527 fi
24528 fi
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24530 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24531 if test $gcc_cv_as_mmacosx_version_min = yes; then
24532
24533 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24534
24535 fi
24536
24537 ;;
24538 esac
24539
24540 # Target CPU-specific assembler checks.
24541
24542 case "$target" in
24543 aarch64*-*-*)
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24545 $as_echo_n "checking assembler for -mabi option... " >&6; }
24546 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_aarch64_mabi=no
24550 if test x$gcc_cv_as != x; then
24551 $as_echo '.text' > conftest.s
24552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557 test $ac_status = 0; }; }
24558 then
24559 gcc_cv_as_aarch64_mabi=yes
24560 else
24561 echo "configure: failed program was" >&5
24562 cat conftest.s >&5
24563 fi
24564 rm -f conftest.o conftest.s
24565 fi
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24568 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24569
24570
24571 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24572
24573 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24574
24575 else
24576 if test x$with_abi = xilp32; then
24577 as_fn_error "Assembler does not support -mabi=ilp32.\
24578 Upgrade the Assembler." "$LINENO" 5
24579 fi
24580 if test x"$with_multilib_list" = xdefault; then
24581 TM_MULTILIB_CONFIG=lp64
24582 else
24583 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24584 for aarch64_multilib in ${aarch64_multilibs}; do
24585 case ${aarch64_multilib} in
24586 ilp32)
24587 as_fn_error "Assembler does not support -mabi=ilp32.\
24588 Upgrade the Assembler." "$LINENO" 5
24589 ;;
24590 *)
24591 ;;
24592 esac
24593 done
24594 fi
24595 fi
24596 # Check if we have binutils support for relocations types needed by -fpic
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24598 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24599 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24601 else
24602 gcc_cv_as_aarch64_picreloc=no
24603 if test x$gcc_cv_as != x; then
24604 $as_echo '
24605 .text
24606 ldr x0, [x2, #:gotpage_lo15:globalsym]
24607 ' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_aarch64_picreloc=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24619 fi
24620 rm -f conftest.o conftest.s
24621 fi
24622 fi
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24624 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24625 if test $gcc_cv_as_aarch64_picreloc = yes; then
24626
24627 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24628
24629 fi
24630
24631 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24632 # Check whether --enable-fix-cortex-a53-835769 was given.
24633 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24634 enableval=$enable_fix_cortex_a53_835769;
24635 case $enableval in
24636 yes)
24637 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24638 ;;
24639 no)
24640 ;;
24641 *)
24642 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24643 Valid choices are 'yes' and 'no'." "$LINENO" 5
24644 ;;
24645
24646 esac
24647
24648 fi
24649
24650 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24651 # Check whether --enable-fix-cortex-a53-843419 was given.
24652 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24653 enableval=$enable_fix_cortex_a53_843419;
24654 case $enableval in
24655 yes)
24656 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24657 ;;
24658 no)
24659 ;;
24660 *)
24661 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24662 Valid choices are 'yes' and 'no'." "$LINENO" 5
24663 ;;
24664
24665 esac
24666
24667 fi
24668
24669 ;;
24670
24671 # All TARGET_ABI_OSF targets.
24672 alpha*-*-linux* | alpha*-*-*bsd*)
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24674 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24675 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24677 else
24678 gcc_cv_as_alpha_explicit_relocs=no
24679 if test $in_tree_gas = yes; then
24680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24681 then gcc_cv_as_alpha_explicit_relocs=yes
24682 fi
24683 elif test x$gcc_cv_as != x; then
24684 $as_echo ' .set nomacro
24685 .text
24686 extbl $3, $2, $3 !lituse_bytoff!1
24687 ldq $2, a($29) !literal!1
24688 ldq $4, b($29) !literal!2
24689 ldq_u $3, 0($2) !lituse_base!1
24690 ldq $27, f($29) !literal!5
24691 jsr $26, ($27), f !lituse_jsr!5
24692 ldah $29, 0($26) !gpdisp!3
24693 lda $0, c($29) !gprel
24694 ldah $1, d($29) !gprelhigh
24695 lda $1, d($1) !gprellow
24696 lda $29, 0($29) !gpdisp!3' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_alpha_explicit_relocs=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24708 fi
24709 rm -f conftest.o conftest.s
24710 fi
24711 fi
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24713 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24714 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24715
24716 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24717
24718 fi
24719
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24721 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24722 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_alpha_jsrdirect_relocs=no
24726 if test $in_tree_gas = yes; then
24727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24728 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24729 fi
24730 elif test x$gcc_cv_as != x; then
24731 $as_echo ' .set nomacro
24732 .text
24733 ldq $27, a($29) !literal!1
24734 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740 test $ac_status = 0; }; }
24741 then
24742 gcc_cv_as_alpha_jsrdirect_relocs=yes
24743 else
24744 echo "configure: failed program was" >&5
24745 cat conftest.s >&5
24746 fi
24747 rm -f conftest.o conftest.s
24748 fi
24749 fi
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24751 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24752 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24753
24754 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24755
24756 fi
24757
24758 ;;
24759
24760 avr-*-*)
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24762 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24763 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24764 $as_echo_n "(cached) " >&6
24765 else
24766 gcc_cv_as_avr_mlink_relax=no
24767 if test x$gcc_cv_as != x; then
24768 $as_echo '.text' > conftest.s
24769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774 test $ac_status = 0; }; }
24775 then
24776 gcc_cv_as_avr_mlink_relax=yes
24777 else
24778 echo "configure: failed program was" >&5
24779 cat conftest.s >&5
24780 fi
24781 rm -f conftest.o conftest.s
24782 fi
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24785 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24786 if test $gcc_cv_as_avr_mlink_relax = yes; then
24787
24788 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24789
24790 fi
24791
24792
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24794 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24795 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24796 $as_echo_n "(cached) " >&6
24797 else
24798 gcc_cv_as_avr_mrmw=no
24799 if test x$gcc_cv_as != x; then
24800 $as_echo '.text' > conftest.s
24801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }
24807 then
24808 gcc_cv_as_avr_mrmw=yes
24809 else
24810 echo "configure: failed program was" >&5
24811 cat conftest.s >&5
24812 fi
24813 rm -f conftest.o conftest.s
24814 fi
24815 fi
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24817 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24818 if test $gcc_cv_as_avr_mrmw = yes; then
24819
24820 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24821
24822 fi
24823
24824
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24826 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24827 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 gcc_cv_as_avr_mgccisr=no
24831 if test x$gcc_cv_as != x; then
24832 $as_echo '.text
24833 __gcc_isr 1
24834 __gcc_isr 2
24835 __gcc_isr 0,r24
24836 ' > conftest.s
24837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24839 (eval $ac_try) 2>&5
24840 ac_status=$?
24841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842 test $ac_status = 0; }; }
24843 then
24844 gcc_cv_as_avr_mgccisr=yes
24845 else
24846 echo "configure: failed program was" >&5
24847 cat conftest.s >&5
24848 fi
24849 rm -f conftest.o conftest.s
24850 fi
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24853 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24854 if test $gcc_cv_as_avr_mgccisr = yes; then
24855
24856 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24857
24858 fi
24859
24860
24861 # Check how default linker description file implements .rodata for
24862 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24863 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24865 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24866 cat > conftest.s <<EOF
24867 .section .rodata,"a",@progbits
24868 .global xxvaryy
24869 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24870 xxvaryy:
24871 .word 1
24872 EOF
24873 rm -f conftest.nm
24874 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24876 (eval $ac_try) 2>&5
24877 ac_status=$?
24878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24879 test $ac_status = 0; }; }
24880 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24886 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24892 if test -s conftest.nm
24893 then
24894 if grep ' R xxvaryy' conftest.nm > /dev/null; then
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24896 $as_echo "yes" >&6; }
24897
24898 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24899
24900 else
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24902 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24903 echo "$as_me: nm output was" >&5
24904 cat conftest.nm >&5
24905 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24907 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24908 fi
24909 else
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24911 $as_echo "test failed" >&6; }
24912 echo "$as_me: failed program was" >&5
24913 cat conftest.s >&5
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24915 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24916 fi
24917 rm -f conftest.s conftest.o conftest.elf conftest.nm
24918 ;;
24919
24920 cris-*-*)
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24922 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24923 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_cris_no_mul_bug=no
24927 if test $in_tree_gas = yes; then
24928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24929 then gcc_cv_as_cris_no_mul_bug=yes
24930 fi
24931 elif test x$gcc_cv_as != x; then
24932 $as_echo '.text' > conftest.s
24933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938 test $ac_status = 0; }; }
24939 then
24940 gcc_cv_as_cris_no_mul_bug=yes
24941 else
24942 echo "configure: failed program was" >&5
24943 cat conftest.s >&5
24944 fi
24945 rm -f conftest.o conftest.s
24946 fi
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24949 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24950 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24951
24952 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24953
24954 fi
24955
24956 ;;
24957
24958 sparc*-*-*)
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24960 $as_echo_n "checking assembler for .register... " >&6; }
24961 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 gcc_cv_as_sparc_register_op=no
24965 if test x$gcc_cv_as != x; then
24966 $as_echo '.register %g2, #scratch' > conftest.s
24967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24972 test $ac_status = 0; }; }
24973 then
24974 gcc_cv_as_sparc_register_op=yes
24975 else
24976 echo "configure: failed program was" >&5
24977 cat conftest.s >&5
24978 fi
24979 rm -f conftest.o conftest.s
24980 fi
24981 fi
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24983 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24984 if test $gcc_cv_as_sparc_register_op = yes; then
24985
24986 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24987
24988 fi
24989
24990
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24992 $as_echo_n "checking assembler for -relax option... " >&6; }
24993 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24994 $as_echo_n "(cached) " >&6
24995 else
24996 gcc_cv_as_sparc_relax=no
24997 if test x$gcc_cv_as != x; then
24998 $as_echo '.text' > conftest.s
24999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004 test $ac_status = 0; }; }
25005 then
25006 gcc_cv_as_sparc_relax=yes
25007 else
25008 echo "configure: failed program was" >&5
25009 cat conftest.s >&5
25010 fi
25011 rm -f conftest.o conftest.s
25012 fi
25013 fi
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25015 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25016 if test $gcc_cv_as_sparc_relax = yes; then
25017
25018 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25019
25020 fi
25021
25022
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25024 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25025 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25026 $as_echo_n "(cached) " >&6
25027 else
25028 gcc_cv_as_sparc_gotdata_op=no
25029 if test x$gcc_cv_as != x; then
25030 $as_echo '.text
25031 .align 4
25032 foo:
25033 nop
25034 bar:
25035 sethi %gdop_hix22(foo), %g1
25036 xor %g1, %gdop_lox10(foo), %g1
25037 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25044 then
25045 if test x$gcc_cv_ld != x \
25046 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25047 if test x$gcc_cv_objdump != x; then
25048 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25049 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25050 gcc_cv_as_sparc_gotdata_op=no
25051 else
25052 gcc_cv_as_sparc_gotdata_op=yes
25053 fi
25054 fi
25055 fi
25056 rm -f conftest
25057 else
25058 echo "configure: failed program was" >&5
25059 cat conftest.s >&5
25060 fi
25061 rm -f conftest.o conftest.s
25062 fi
25063 fi
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25065 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25066 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25067
25068 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25069
25070 fi
25071
25072
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25074 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25075 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25076 $as_echo_n "(cached) " >&6
25077 else
25078 gcc_cv_as_sparc_ua_pcrel=no
25079 if test x$gcc_cv_as != x; then
25080 $as_echo '.text
25081 foo:
25082 nop
25083 .data
25084 .align 4
25085 .byte 0
25086 .uaword %r_disp32(foo)' > conftest.s
25087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25089 (eval $ac_try) 2>&5
25090 ac_status=$?
25091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092 test $ac_status = 0; }; }
25093 then
25094 if test x$gcc_cv_ld != x \
25095 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25096 gcc_cv_as_sparc_ua_pcrel=yes
25097 fi
25098 rm -f conftest
25099 else
25100 echo "configure: failed program was" >&5
25101 cat conftest.s >&5
25102 fi
25103 rm -f conftest.o conftest.s
25104 fi
25105 fi
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25107 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25108 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25109
25110 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25111
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25114 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25115 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_sparc_ua_pcrel_hidden=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo '.data
25121 .align 4
25122 .byte 0x31
25123 .uaword %r_disp32(foo)
25124 .byte 0x32, 0x33, 0x34
25125 .global foo
25126 .hidden foo
25127 foo:
25128 .skip 4' > conftest.s
25129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25135 then
25136 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25137 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25138 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25139 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25140 if $gcc_cv_objdump -R conftest 2> /dev/null \
25141 | grep 'DISP32' > /dev/null 2>&1; then
25142 :
25143 else
25144 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25145 fi
25146 fi
25147 rm -f conftest
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25151 fi
25152 rm -f conftest.o conftest.s
25153 fi
25154 fi
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25156 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25157 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25158
25159 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25160
25161 fi
25162
25163
25164 fi
25165 # unaligned pcrel relocs
25166
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25168 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25169 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25170 $as_echo_n "(cached) " >&6
25171 else
25172 gcc_cv_as_sparc_offsetable_lo10=no
25173 if test x$gcc_cv_as != x; then
25174 $as_echo '.text
25175 or %g1, %lo(ab) + 12, %g1
25176 or %g1, %lo(ab + 12), %g1' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 if test x$gcc_cv_objdump != x \
25185 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25186 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25187 gcc_cv_as_sparc_offsetable_lo10=yes
25188 fi
25189 else
25190 echo "configure: failed program was" >&5
25191 cat conftest.s >&5
25192 fi
25193 rm -f conftest.o conftest.s
25194 fi
25195 fi
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25197 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25198 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25199
25200 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25201
25202 fi
25203
25204
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25206 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25207 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 gcc_cv_as_sparc_fmaf=no
25211 if test x$gcc_cv_as != x; then
25212 $as_echo '.text
25213 .register %g2, #scratch
25214 .register %g3, #scratch
25215 .align 4
25216 fmaddd %f0, %f2, %f4, %f6
25217 addxccc %g1, %g2, %g3
25218 fsrl32 %f2, %f4, %f8
25219 fnaddd %f10, %f12, %f14' > conftest.s
25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25226 then
25227 gcc_cv_as_sparc_fmaf=yes
25228 else
25229 echo "configure: failed program was" >&5
25230 cat conftest.s >&5
25231 fi
25232 rm -f conftest.o conftest.s
25233 fi
25234 fi
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25236 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25237 if test $gcc_cv_as_sparc_fmaf = yes; then
25238
25239 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25240
25241 fi
25242
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25245 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25246 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_sparc_sparc4=no
25250 if test x$gcc_cv_as != x; then
25251 $as_echo '.text
25252 .register %g2, #scratch
25253 .register %g3, #scratch
25254 .align 4
25255 cxbe %g2, %g3, 1f
25256 1: cwbneg %g2, %g3, 1f
25257 1: sha1
25258 md5
25259 aes_kexpand0 %f4, %f6, %f8
25260 des_round %f38, %f40, %f42, %f44
25261 camellia_f %f54, %f56, %f58, %f60
25262 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25265 (eval $ac_try) 2>&5
25266 ac_status=$?
25267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25268 test $ac_status = 0; }; }
25269 then
25270 gcc_cv_as_sparc_sparc4=yes
25271 else
25272 echo "configure: failed program was" >&5
25273 cat conftest.s >&5
25274 fi
25275 rm -f conftest.o conftest.s
25276 fi
25277 fi
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25279 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25280 if test $gcc_cv_as_sparc_sparc4 = yes; then
25281
25282 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25283
25284 fi
25285
25286
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25288 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25289 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25290 $as_echo_n "(cached) " >&6
25291 else
25292 gcc_cv_as_sparc_sparc5=no
25293 if test x$gcc_cv_as != x; then
25294 $as_echo '.text
25295 .register %g2, #scratch
25296 .register %g3, #scratch
25297 .align 4
25298 subxc %g1, %g2, %g3
25299 fpadd8 %f0, %f2, %f4' > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_sparc_sparc5=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25311 fi
25312 rm -f conftest.o conftest.s
25313 fi
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25316 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25317 if test $gcc_cv_as_sparc_sparc5 = yes; then
25318
25319 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25320
25321 fi
25322
25323
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25325 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25326 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25328 else
25329 gcc_cv_as_sparc_sparc6=no
25330 if test x$gcc_cv_as != x; then
25331 $as_echo '.text
25332 .register %g2, #scratch
25333 .register %g3, #scratch
25334 .align 4
25335 rd %entropy, %g1
25336 fpsll64x %f0, %f2, %f4' > conftest.s
25337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25342 test $ac_status = 0; }; }
25343 then
25344 gcc_cv_as_sparc_sparc6=yes
25345 else
25346 echo "configure: failed program was" >&5
25347 cat conftest.s >&5
25348 fi
25349 rm -f conftest.o conftest.s
25350 fi
25351 fi
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25353 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25354 if test $gcc_cv_as_sparc_sparc6 = yes; then
25355
25356 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25357
25358 fi
25359
25360
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25362 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25363 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 gcc_cv_as_sparc_leon=no
25367 if test x$gcc_cv_as != x; then
25368 $as_echo '.text
25369 .register %g2, #scratch
25370 .register %g3, #scratch
25371 .align 4
25372 smac %g2, %g3, %g1
25373 umac %g2, %g3, %g1
25374 casa [%g2] 0xb, %g3, %g1' > conftest.s
25375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380 test $ac_status = 0; }; }
25381 then
25382 gcc_cv_as_sparc_leon=yes
25383 else
25384 echo "configure: failed program was" >&5
25385 cat conftest.s >&5
25386 fi
25387 rm -f conftest.o conftest.s
25388 fi
25389 fi
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25391 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25392 if test $gcc_cv_as_sparc_leon = yes; then
25393
25394 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25395
25396 fi
25397
25398 ;;
25399
25400 i[34567]86-*-* | x86_64-*-*)
25401 case $target_os in
25402 cygwin*)
25403 # Full C++ conformance when using a shared libstdc++-v3 requires some
25404 # support from the Cygwin DLL, which in more recent versions exports
25405 # wrappers to aid in interposing and redirecting operators new, delete,
25406 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25407 # are configuring for a version of Cygwin that exports the wrappers.
25408 if test x$host = x$target && test x$host_cpu = xi686; then
25409 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25410 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25411 gcc_ac_cygwin_dll_wrappers=yes
25412 else
25413 gcc_ac_cygwin_dll_wrappers=no
25414 fi
25415
25416 else
25417 # Can't check presence of libc functions during cross-compile, so
25418 # we just have to assume we're building for an up-to-date target.
25419 gcc_ac_cygwin_dll_wrappers=yes
25420 fi
25421
25422 cat >>confdefs.h <<_ACEOF
25423 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25424 _ACEOF
25425
25426 esac
25427 case $target_os in
25428 cygwin* | pe | mingw32*)
25429 # Recent binutils allows the three-operand form of ".comm" on PE. This
25430 # definition is used unconditionally to initialise the default state of
25431 # the target option variable that governs usage of the feature.
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25433 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25434 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 gcc_cv_as_comm_has_align=no
25438 if test $in_tree_gas = yes; then
25439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25440 then gcc_cv_as_comm_has_align=yes
25441 fi
25442 elif test x$gcc_cv_as != x; then
25443 $as_echo '.comm foo,1,32' > conftest.s
25444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25446 (eval $ac_try) 2>&5
25447 ac_status=$?
25448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25449 test $ac_status = 0; }; }
25450 then
25451 gcc_cv_as_comm_has_align=yes
25452 else
25453 echo "configure: failed program was" >&5
25454 cat conftest.s >&5
25455 fi
25456 rm -f conftest.o conftest.s
25457 fi
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25460 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25461
25462
25463
25464 cat >>confdefs.h <<_ACEOF
25465 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25466 _ACEOF
25467
25468 # Used for DWARF 2 in PE
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25470 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25471 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 gcc_cv_as_ix86_pe_secrel32=no
25475 if test $in_tree_gas = yes; then
25476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25477 then gcc_cv_as_ix86_pe_secrel32=yes
25478 fi
25479 elif test x$gcc_cv_as != x; then
25480 $as_echo '.text
25481 foo: nop
25482 .data
25483 .secrel32 foo' > conftest.s
25484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25489 test $ac_status = 0; }; }
25490 then
25491 if test x$gcc_cv_ld != x \
25492 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25493 gcc_cv_as_ix86_pe_secrel32=yes
25494 fi
25495 rm -f conftest
25496 else
25497 echo "configure: failed program was" >&5
25498 cat conftest.s >&5
25499 fi
25500 rm -f conftest.o conftest.s
25501 fi
25502 fi
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25504 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25505 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25506
25507 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25508
25509 fi
25510
25511 # Test if the assembler supports the extended form of the .section
25512 # directive that specifies section alignment. LTO support uses this,
25513 # but normally only after installation, so we warn but don't fail the
25514 # configure if LTO is enabled but the assembler does not support it.
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25516 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25517 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25519 else
25520 gcc_cv_as_section_has_align=no
25521 if test $in_tree_gas = yes; then
25522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25523 then gcc_cv_as_section_has_align=yes
25524 fi
25525 elif test x$gcc_cv_as != x; then
25526 $as_echo '.section lto_test,"dr0"' > conftest.s
25527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25532 test $ac_status = 0; }; }
25533 then
25534 gcc_cv_as_section_has_align=yes
25535 else
25536 echo "configure: failed program was" >&5
25537 cat conftest.s >&5
25538 fi
25539 rm -f conftest.o conftest.s
25540 fi
25541 fi
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25543 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25544
25545
25546 if test x$gcc_cv_as_section_has_align != xyes; then
25547 case ",$enable_languages," in
25548 *,lto,*)
25549 { $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
25550 $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;}
25551 ;;
25552 esac
25553 fi
25554 ;;
25555 esac
25556
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25558 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25559 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25561 else
25562 gcc_cv_as_ix86_xbrace_comment=no
25563 if test x$gcc_cv_as != x; then
25564 $as_echo '.text' > conftest.s
25565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25571 then
25572 gcc_cv_as_ix86_xbrace_comment=yes
25573 else
25574 echo "configure: failed program was" >&5
25575 cat conftest.s >&5
25576 fi
25577 rm -f conftest.o conftest.s
25578 fi
25579 fi
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25581 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25582 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25583
25584 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25585
25586 fi
25587
25588
25589 # Test if the assembler supports the section flag 'e' for specifying
25590 # an excluded section.
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25592 $as_echo_n "checking assembler for .section with e... " >&6; }
25593 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_section_has_e=no
25597 if test $in_tree_gas = yes; then
25598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25599 then gcc_cv_as_section_has_e=yes
25600 fi
25601 elif test x$gcc_cv_as != x; then
25602 $as_echo '.section foo1,"e"
25603 .byte 0,0,0,0' > conftest.s
25604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 then
25611 gcc_cv_as_section_has_e=yes
25612 else
25613 echo "configure: failed program was" >&5
25614 cat conftest.s >&5
25615 fi
25616 rm -f conftest.o conftest.s
25617 fi
25618 fi
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25620 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25621
25622
25623
25624 cat >>confdefs.h <<_ACEOF
25625 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25626 _ACEOF
25627
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25630 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25631 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_ix86_filds=no
25635 if test x$gcc_cv_as != x; then
25636 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25643 then
25644 gcc_cv_as_ix86_filds=yes
25645 else
25646 echo "configure: failed program was" >&5
25647 cat conftest.s >&5
25648 fi
25649 rm -f conftest.o conftest.s
25650 fi
25651 fi
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25653 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25654 if test $gcc_cv_as_ix86_filds = yes; then
25655
25656 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25657
25658 fi
25659
25660
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25662 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25663 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25664 $as_echo_n "(cached) " >&6
25665 else
25666 gcc_cv_as_ix86_fildq=no
25667 if test x$gcc_cv_as != x; then
25668 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25675 then
25676 gcc_cv_as_ix86_fildq=yes
25677 else
25678 echo "configure: failed program was" >&5
25679 cat conftest.s >&5
25680 fi
25681 rm -f conftest.o conftest.s
25682 fi
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25685 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25686 if test $gcc_cv_as_ix86_fildq = yes; then
25687
25688 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25689
25690 fi
25691
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25694 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25695 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25696 $as_echo_n "(cached) " >&6
25697 else
25698 gcc_cv_as_ix86_cmov_sun_syntax=no
25699 if test x$gcc_cv_as != x; then
25700 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706 test $ac_status = 0; }; }
25707 then
25708 gcc_cv_as_ix86_cmov_sun_syntax=yes
25709 else
25710 echo "configure: failed program was" >&5
25711 cat conftest.s >&5
25712 fi
25713 rm -f conftest.o conftest.s
25714 fi
25715 fi
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25717 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25718 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25719
25720 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25721
25722 fi
25723
25724
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25726 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25727 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25729 else
25730 gcc_cv_as_ix86_ffreep=no
25731 if test x$gcc_cv_as != x; then
25732 $as_echo 'ffreep %st(1)' > conftest.s
25733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 then
25740 gcc_cv_as_ix86_ffreep=yes
25741 else
25742 echo "configure: failed program was" >&5
25743 cat conftest.s >&5
25744 fi
25745 rm -f conftest.o conftest.s
25746 fi
25747 fi
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25749 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25750 if test $gcc_cv_as_ix86_ffreep = yes; then
25751
25752 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25753
25754 fi
25755
25756
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25758 $as_echo_n "checking assembler for .quad directive... " >&6; }
25759 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25761 else
25762 gcc_cv_as_ix86_quad=no
25763 if test x$gcc_cv_as != x; then
25764 $as_echo '.quad 0' > conftest.s
25765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; }
25771 then
25772 gcc_cv_as_ix86_quad=yes
25773 else
25774 echo "configure: failed program was" >&5
25775 cat conftest.s >&5
25776 fi
25777 rm -f conftest.o conftest.s
25778 fi
25779 fi
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25781 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25782 if test $gcc_cv_as_ix86_quad = yes; then
25783
25784 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25785
25786 fi
25787
25788
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25790 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25791 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794 gcc_cv_as_ix86_sahf=no
25795 if test x$gcc_cv_as != x; then
25796 $as_echo '.code64
25797 sahf' > 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_ix86_sahf=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_ix86_sahf" >&5
25814 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25815 if test $gcc_cv_as_ix86_sahf = yes; then
25816
25817 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25818
25819 fi
25820
25821
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25823 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25824 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25825 $as_echo_n "(cached) " >&6
25826 else
25827 gcc_cv_as_ix86_interunit_movq=no
25828 if test x$gcc_cv_as != x; then
25829 $as_echo '.code64
25830 movq %mm0, %rax
25831 movq %rax, %xmm0' > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 gcc_cv_as_ix86_interunit_movq=yes
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25843 fi
25844 rm -f conftest.o conftest.s
25845 fi
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25848 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25849
25850
25851
25852 cat >>confdefs.h <<_ACEOF
25853 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25854 _ACEOF
25855
25856
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25858 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25859 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_ix86_hle=no
25863 if test x$gcc_cv_as != x; then
25864 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 gcc_cv_as_ix86_hle=yes
25873 else
25874 echo "configure: failed program was" >&5
25875 cat conftest.s >&5
25876 fi
25877 rm -f conftest.o conftest.s
25878 fi
25879 fi
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25881 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25882 if test $gcc_cv_as_ix86_hle = yes; then
25883
25884 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25885
25886 fi
25887
25888
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25890 $as_echo_n "checking assembler for swap suffix... " >&6; }
25891 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25894 gcc_cv_as_ix86_swap=no
25895 if test x$gcc_cv_as != x; then
25896 $as_echo 'movl.s %esp, %ebp' > conftest.s
25897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25902 test $ac_status = 0; }; }
25903 then
25904 gcc_cv_as_ix86_swap=yes
25905 else
25906 echo "configure: failed program was" >&5
25907 cat conftest.s >&5
25908 fi
25909 rm -f conftest.o conftest.s
25910 fi
25911 fi
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25913 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25914 if test $gcc_cv_as_ix86_swap = yes; then
25915
25916 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25917
25918 fi
25919
25920
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25922 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25923 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_as_ix86_diff_sect_delta=no
25927 if test x$gcc_cv_as != x; then
25928 $as_echo '.section .rodata
25929 .L1:
25930 .long .L2-.L1
25931 .long .L3-.L1
25932 .text
25933 .L3: nop
25934 .L2: nop' > conftest.s
25935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25941 then
25942 gcc_cv_as_ix86_diff_sect_delta=yes
25943 else
25944 echo "configure: failed program was" >&5
25945 cat conftest.s >&5
25946 fi
25947 rm -f conftest.o conftest.s
25948 fi
25949 fi
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25951 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25952 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25953
25954 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25955
25956 fi
25957
25958
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25960 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25961 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25963 else
25964 gcc_cv_as_ix86_rep_lock_prefix=no
25965 if test x$gcc_cv_as != x; then
25966 $as_echo 'rep movsl
25967 rep ret
25968 rep nop
25969 rep bsf %ecx, %eax
25970 rep bsr %ecx, %eax
25971 lock addl %edi, (%eax,%esi)
25972 lock orl $0, (%esp)' > conftest.s
25973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25975 (eval $ac_try) 2>&5
25976 ac_status=$?
25977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25978 test $ac_status = 0; }; }
25979 then
25980 gcc_cv_as_ix86_rep_lock_prefix=yes
25981 else
25982 echo "configure: failed program was" >&5
25983 cat conftest.s >&5
25984 fi
25985 rm -f conftest.o conftest.s
25986 fi
25987 fi
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25989 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25990 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25991
25992 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25993
25994 fi
25995
25996
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25998 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25999 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26001 else
26002 gcc_cv_as_ix86_ud2=no
26003 if test x$gcc_cv_as != x; then
26004 $as_echo 'ud2' > conftest.s
26005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26007 (eval $ac_try) 2>&5
26008 ac_status=$?
26009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }; }
26011 then
26012 gcc_cv_as_ix86_ud2=yes
26013 else
26014 echo "configure: failed program was" >&5
26015 cat conftest.s >&5
26016 fi
26017 rm -f conftest.o conftest.s
26018 fi
26019 fi
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26021 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26022 if test $gcc_cv_as_ix86_ud2 = yes; then
26023
26024 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26025
26026 fi
26027
26028
26029 # Enforce 32-bit output with gas and gld.
26030 if test x$gas = xyes; then
26031 as_ix86_gas_32_opt="--32"
26032 fi
26033 if echo "$ld_ver" | grep GNU > /dev/null; then
26034 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26035 ld_ix86_gld_32_opt="-melf_i386_sol2"
26036 else
26037 ld_ix86_gld_32_opt="-melf_i386"
26038 fi
26039 fi
26040
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26042 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26043 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_ix86_tlsgdplt=no
26047 if test x$gcc_cv_as != x; then
26048 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26055 then
26056 if test x$gcc_cv_ld != x \
26057 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26058 gcc_cv_as_ix86_tlsgdplt=yes
26059 fi
26060 rm -f conftest
26061 else
26062 echo "configure: failed program was" >&5
26063 cat conftest.s >&5
26064 fi
26065 rm -f conftest.o conftest.s
26066 fi
26067 fi
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26069 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26070 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26071
26072 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26073
26074 fi
26075
26076
26077 conftest_s='
26078 .section .tdata,"aw'$tls_section_flag'",@progbits
26079 tls_ld:
26080 .section .text,"ax",@progbits
26081 call tls_ld@tlsldmplt'
26082
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26084 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26085 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26087 else
26088 gcc_cv_as_ix86_tlsldmplt=no
26089 if test x$gcc_cv_as != x; then
26090 $as_echo "$conftest_s" > conftest.s
26091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; }
26097 then
26098 if test x$gcc_cv_ld != x \
26099 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26100 gcc_cv_as_ix86_tlsldmplt=yes
26101 fi
26102 rm -f conftest
26103 else
26104 echo "configure: failed program was" >&5
26105 cat conftest.s >&5
26106 fi
26107 rm -f conftest.o conftest.s
26108 fi
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26111 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26112
26113
26114
26115 cat >>confdefs.h <<_ACEOF
26116 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26117 _ACEOF
26118
26119
26120 conftest_s='
26121 .section .text,"ax",@progbits
26122 .globl _start
26123 .type _start, @function
26124 _start:
26125 leal value@tlsldm(%ebx), %eax
26126 call ___tls_get_addr@plt
26127
26128 .section .tdata,"aw'$tls_section_flag'",@progbits
26129 .type value, @object
26130 value:'
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26132 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26133 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26134 $as_echo_n "(cached) " >&6
26135 else
26136 gcc_cv_as_ix86_tlsldm=no
26137 if test x$gcc_cv_as != x; then
26138 $as_echo "$conftest_s" > conftest.s
26139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }
26145 then
26146 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26147 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26148 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26149 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26150 gcc_cv_as_ix86_tlsldm=yes
26151 fi
26152 fi
26153 rm -f conftest
26154 else
26155 echo "configure: failed program was" >&5
26156 cat conftest.s >&5
26157 fi
26158 rm -f conftest.o conftest.s
26159 fi
26160 fi
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26162 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26163
26164
26165
26166 cat >>confdefs.h <<_ACEOF
26167 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26168 _ACEOF
26169
26170
26171 conftest_s='
26172 .data
26173 bar:
26174 .byte 1
26175 .text
26176 .global _start
26177 _start:
26178 cmpl $0, bar@GOT
26179 jmp *_start@GOT'
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26181 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26182 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26184 else
26185 gcc_cv_as_ix86_got32x=no
26186 if test x$gcc_cv_as != x; then
26187 $as_echo "$conftest_s" > conftest.s
26188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26193 test $ac_status = 0; }; }
26194 then
26195 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26196 && test x$gcc_cv_readelf != x \
26197 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26198 | grep R_386_GOT32X > /dev/null 2>&1 \
26199 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26200 if $gcc_cv_objdump -dw conftest 2>&1 \
26201 | grep 0xffffff > /dev/null 2>&1; then
26202 gcc_cv_as_ix86_got32x=no
26203 else
26204 gcc_cv_as_ix86_got32x=yes
26205 fi
26206 fi
26207 rm -f conftest
26208 else
26209 echo "configure: failed program was" >&5
26210 cat conftest.s >&5
26211 fi
26212 rm -f conftest.o conftest.s
26213 fi
26214 fi
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26216 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26217
26218
26219
26220 cat >>confdefs.h <<_ACEOF
26221 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26222 _ACEOF
26223
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26226 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26227 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_ix86_gotoff_in_data=no
26231 if test $in_tree_gas = yes; then
26232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26233 then gcc_cv_as_ix86_gotoff_in_data=yes
26234 fi
26235 elif test x$gcc_cv_as != x; then
26236 $as_echo ' .text
26237 .L0:
26238 nop
26239 .data
26240 .long .L0@GOTOFF' > conftest.s
26241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26243 (eval $ac_try) 2>&5
26244 ac_status=$?
26245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26246 test $ac_status = 0; }; }
26247 then
26248 gcc_cv_as_ix86_gotoff_in_data=yes
26249 else
26250 echo "configure: failed program was" >&5
26251 cat conftest.s >&5
26252 fi
26253 rm -f conftest.o conftest.s
26254 fi
26255 fi
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26257 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26258
26259
26260
26261 cat >>confdefs.h <<_ACEOF
26262 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26263 _ACEOF
26264
26265
26266 conftest_s='
26267 .section .text,"ax",@progbits
26268 .globl _start
26269 .type _start, @function
26270 _start:
26271 leal ld@tlsldm(%ecx), %eax
26272 call *___tls_get_addr@GOT(%ecx)
26273 leal gd@tlsgd(%ecx), %eax
26274 call *___tls_get_addr@GOT(%ecx)
26275
26276 .section .tdata,"aw'$tls_section_flag'",@progbits
26277 .type ld, @object
26278 ld:
26279 .byte 0
26280 .globl gd
26281 .type gd, @object
26282 gd:
26283 .byte 0'
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26285 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26286 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26289 gcc_cv_as_ix86_tls_get_addr_via_got=no
26290 if test x$gcc_cv_as != x; then
26291 $as_echo "$conftest_s" > conftest.s
26292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26294 (eval $ac_try) 2>&5
26295 ac_status=$?
26296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26297 test $ac_status = 0; }; }
26298 then
26299 if test x$gcc_cv_ld != x \
26300 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26301 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26302 fi
26303 rm -f conftest
26304 else
26305 echo "configure: failed program was" >&5
26306 cat conftest.s >&5
26307 fi
26308 rm -f conftest.o conftest.s
26309 fi
26310 fi
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26312 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26313
26314
26315
26316 cat >>confdefs.h <<_ACEOF
26317 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26318 _ACEOF
26319
26320 ;;
26321
26322 ia64*-*-*)
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26324 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26325 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26326 $as_echo_n "(cached) " >&6
26327 else
26328 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26329 if test $in_tree_gas = yes; then
26330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26331 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26332 fi
26333 elif test x$gcc_cv_as != x; then
26334 $as_echo ' .text
26335 addl r15 = @ltoffx(x#), gp
26336 ;;
26337 ld8.mov r16 = [r15], x#' > conftest.s
26338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26343 test $ac_status = 0; }; }
26344 then
26345 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26346 else
26347 echo "configure: failed program was" >&5
26348 cat conftest.s >&5
26349 fi
26350 rm -f conftest.o conftest.s
26351 fi
26352 fi
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26354 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26355 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26356
26357 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26358
26359 fi
26360
26361
26362 ;;
26363
26364 powerpc*-*-*)
26365
26366 case $target in
26367 *-*-darwin*)
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26369 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26370 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26371 $as_echo_n "(cached) " >&6
26372 else
26373 gcc_cv_as_machine_directive=no
26374 if test x$gcc_cv_as != x; then
26375 $as_echo ' .machine ppc7400' > conftest.s
26376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26381 test $ac_status = 0; }; }
26382 then
26383 gcc_cv_as_machine_directive=yes
26384 else
26385 echo "configure: failed program was" >&5
26386 cat conftest.s >&5
26387 fi
26388 rm -f conftest.o conftest.s
26389 fi
26390 fi
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26392 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26393
26394
26395 if test x$gcc_cv_as_machine_directive != xyes; then
26396 echo "*** This target requires an assembler supporting \".machine\"" >&2
26397 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26398 test x$build = x$target && exit 1
26399 fi
26400 ;;
26401 esac
26402
26403 case $target in
26404 *-*-aix*) conftest_s=' .machine "pwr5"
26405 .csect .text[PR]
26406 mfcr 3,128';;
26407 *-*-darwin*) conftest_s=' .text
26408 mfcr r3,128';;
26409 *) conftest_s=' .machine power4
26410 .text
26411 mfcr 3,128';;
26412 esac
26413
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26415 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26416 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 gcc_cv_as_powerpc_mfcrf=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26422 then gcc_cv_as_powerpc_mfcrf=yes
26423 fi
26424 elif test x$gcc_cv_as != x; then
26425 $as_echo "$conftest_s" > conftest.s
26426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26432 then
26433 gcc_cv_as_powerpc_mfcrf=yes
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26437 fi
26438 rm -f conftest.o conftest.s
26439 fi
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26442 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26443 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26444
26445 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26446
26447 fi
26448
26449
26450 case $target in
26451 *-*-aix*) conftest_s=' .machine "pwr5"
26452 .csect .text[PR]
26453 popcntb 3,3';;
26454 *) conftest_s=' .machine power5
26455 .text
26456 popcntb 3,3';;
26457 esac
26458
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26460 $as_echo_n "checking assembler for popcntb support... " >&6; }
26461 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26462 $as_echo_n "(cached) " >&6
26463 else
26464 gcc_cv_as_powerpc_popcntb=no
26465 if test $in_tree_gas = yes; then
26466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26467 then gcc_cv_as_powerpc_popcntb=yes
26468 fi
26469 elif test x$gcc_cv_as != x; then
26470 $as_echo "$conftest_s" > conftest.s
26471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 then
26478 gcc_cv_as_powerpc_popcntb=yes
26479 else
26480 echo "configure: failed program was" >&5
26481 cat conftest.s >&5
26482 fi
26483 rm -f conftest.o conftest.s
26484 fi
26485 fi
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26487 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26488 if test $gcc_cv_as_powerpc_popcntb = yes; then
26489
26490 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26491
26492 fi
26493
26494
26495 case $target in
26496 *-*-aix*) conftest_s=' .machine "pwr5x"
26497 .csect .text[PR]
26498 frin 1,1';;
26499 *) conftest_s=' .machine power5
26500 .text
26501 frin 1,1';;
26502 esac
26503
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26505 $as_echo_n "checking assembler for fp round support... " >&6; }
26506 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26507 $as_echo_n "(cached) " >&6
26508 else
26509 gcc_cv_as_powerpc_fprnd=no
26510 if test $in_tree_gas = yes; then
26511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26512 then gcc_cv_as_powerpc_fprnd=yes
26513 fi
26514 elif test x$gcc_cv_as != x; then
26515 $as_echo "$conftest_s" > conftest.s
26516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26521 test $ac_status = 0; }; }
26522 then
26523 gcc_cv_as_powerpc_fprnd=yes
26524 else
26525 echo "configure: failed program was" >&5
26526 cat conftest.s >&5
26527 fi
26528 rm -f conftest.o conftest.s
26529 fi
26530 fi
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26532 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26533 if test $gcc_cv_as_powerpc_fprnd = yes; then
26534
26535 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26536
26537 fi
26538
26539
26540 case $target in
26541 *-*-aix*) conftest_s=' .machine "pwr6"
26542 .csect .text[PR]
26543 mffgpr 1,3';;
26544 *) conftest_s=' .machine power6
26545 .text
26546 mffgpr 1,3';;
26547 esac
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26550 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26551 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_powerpc_mfpgpr=no
26555 if test $in_tree_gas = yes; then
26556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26557 then gcc_cv_as_powerpc_mfpgpr=yes
26558 fi
26559 elif test x$gcc_cv_as != x; then
26560 $as_echo "$conftest_s" > conftest.s
26561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566 test $ac_status = 0; }; }
26567 then
26568 gcc_cv_as_powerpc_mfpgpr=yes
26569 else
26570 echo "configure: failed program was" >&5
26571 cat conftest.s >&5
26572 fi
26573 rm -f conftest.o conftest.s
26574 fi
26575 fi
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26577 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26578 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26579
26580 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26581
26582 fi
26583
26584
26585 case $target in
26586 *-*-aix*) conftest_s=' .csect .text[PR]
26587 LCF..0:
26588 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26589 *-*-darwin*)
26590 conftest_s=' .text
26591 LCF0:
26592 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26593 *) conftest_s=' .text
26594 .LCF0:
26595 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26596 esac
26597
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26599 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26600 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26602 else
26603 gcc_cv_as_powerpc_rel16=no
26604 if test $in_tree_gas = yes; then
26605 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26606 then gcc_cv_as_powerpc_rel16=yes
26607 fi
26608 elif test x$gcc_cv_as != x; then
26609 $as_echo "$conftest_s" > conftest.s
26610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26612 (eval $ac_try) 2>&5
26613 ac_status=$?
26614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26615 test $ac_status = 0; }; }
26616 then
26617 gcc_cv_as_powerpc_rel16=yes
26618 else
26619 echo "configure: failed program was" >&5
26620 cat conftest.s >&5
26621 fi
26622 rm -f conftest.o conftest.s
26623 fi
26624 fi
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26626 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26627 if test $gcc_cv_as_powerpc_rel16 = yes; then
26628
26629 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26630
26631 fi
26632
26633
26634 case $target in
26635 *-*-aix*) conftest_s=' .machine "pwr6"
26636 .csect .text[PR]
26637 cmpb 3,4,5';;
26638 *) conftest_s=' .machine power6
26639 .text
26640 cmpb 3,4,5';;
26641 esac
26642
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26644 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26645 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26646 $as_echo_n "(cached) " >&6
26647 else
26648 gcc_cv_as_powerpc_cmpb=no
26649 if test $in_tree_gas = yes; then
26650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26651 then gcc_cv_as_powerpc_cmpb=yes
26652 fi
26653 elif test x$gcc_cv_as != x; then
26654 $as_echo "$conftest_s" > conftest.s
26655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26657 (eval $ac_try) 2>&5
26658 ac_status=$?
26659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26660 test $ac_status = 0; }; }
26661 then
26662 gcc_cv_as_powerpc_cmpb=yes
26663 else
26664 echo "configure: failed program was" >&5
26665 cat conftest.s >&5
26666 fi
26667 rm -f conftest.o conftest.s
26668 fi
26669 fi
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26671 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26672 if test $gcc_cv_as_powerpc_cmpb = yes; then
26673
26674 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26675
26676 fi
26677
26678
26679 case $target in
26680 *-*-aix*) conftest_s=' .machine "pwr6"
26681 .csect .text[PR]
26682 dadd 1,2,3';;
26683 *) conftest_s=' .machine power6
26684 .text
26685 dadd 1,2,3';;
26686 esac
26687
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26689 $as_echo_n "checking assembler for decimal float support... " >&6; }
26690 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26693 gcc_cv_as_powerpc_dfp=no
26694 if test $in_tree_gas = yes; then
26695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26696 then gcc_cv_as_powerpc_dfp=yes
26697 fi
26698 elif test x$gcc_cv_as != x; then
26699 $as_echo "$conftest_s" > conftest.s
26700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; }
26706 then
26707 gcc_cv_as_powerpc_dfp=yes
26708 else
26709 echo "configure: failed program was" >&5
26710 cat conftest.s >&5
26711 fi
26712 rm -f conftest.o conftest.s
26713 fi
26714 fi
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26716 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26717 if test $gcc_cv_as_powerpc_dfp = yes; then
26718
26719 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26720
26721 fi
26722
26723
26724 case $target in
26725 *-*-aix*) conftest_s=' .machine "pwr7"
26726 .csect .text[PR]
26727 lxvd2x 1,2,3';;
26728 *) conftest_s=' .machine power7
26729 .text
26730 lxvd2x 1,2,3';;
26731 esac
26732
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26734 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26735 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26736 $as_echo_n "(cached) " >&6
26737 else
26738 gcc_cv_as_powerpc_vsx=no
26739 if test $in_tree_gas = yes; then
26740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26741 then gcc_cv_as_powerpc_vsx=yes
26742 fi
26743 elif test x$gcc_cv_as != x; then
26744 $as_echo "$conftest_s" > conftest.s
26745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26750 test $ac_status = 0; }; }
26751 then
26752 gcc_cv_as_powerpc_vsx=yes
26753 else
26754 echo "configure: failed program was" >&5
26755 cat conftest.s >&5
26756 fi
26757 rm -f conftest.o conftest.s
26758 fi
26759 fi
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26761 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26762 if test $gcc_cv_as_powerpc_vsx = yes; then
26763
26764 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26765
26766 fi
26767
26768
26769 case $target in
26770 *-*-aix*) conftest_s=' .machine "pwr7"
26771 .csect .text[PR]
26772 popcntd 3,3';;
26773 *) conftest_s=' .machine power7
26774 .text
26775 popcntd 3,3';;
26776 esac
26777
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26779 $as_echo_n "checking assembler for popcntd support... " >&6; }
26780 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26781 $as_echo_n "(cached) " >&6
26782 else
26783 gcc_cv_as_powerpc_popcntd=no
26784 if test $in_tree_gas = yes; then
26785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26786 then gcc_cv_as_powerpc_popcntd=yes
26787 fi
26788 elif test x$gcc_cv_as != x; then
26789 $as_echo "$conftest_s" > conftest.s
26790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26795 test $ac_status = 0; }; }
26796 then
26797 gcc_cv_as_powerpc_popcntd=yes
26798 else
26799 echo "configure: failed program was" >&5
26800 cat conftest.s >&5
26801 fi
26802 rm -f conftest.o conftest.s
26803 fi
26804 fi
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26806 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26807 if test $gcc_cv_as_powerpc_popcntd = yes; then
26808
26809 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26810
26811 fi
26812
26813
26814 case $target in
26815 *-*-aix*) conftest_s=' .machine "pwr8"
26816 .csect .text[PR]';;
26817 *) conftest_s=' .machine power8
26818 .text';;
26819 esac
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26822 $as_echo_n "checking assembler for power8 support... " >&6; }
26823 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26824 $as_echo_n "(cached) " >&6
26825 else
26826 gcc_cv_as_powerpc_power8=no
26827 if test $in_tree_gas = yes; then
26828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26829 then gcc_cv_as_powerpc_power8=yes
26830 fi
26831 elif test x$gcc_cv_as != x; then
26832 $as_echo "$conftest_s" > conftest.s
26833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838 test $ac_status = 0; }; }
26839 then
26840 gcc_cv_as_powerpc_power8=yes
26841 else
26842 echo "configure: failed program was" >&5
26843 cat conftest.s >&5
26844 fi
26845 rm -f conftest.o conftest.s
26846 fi
26847 fi
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26849 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26850 if test $gcc_cv_as_powerpc_power8 = yes; then
26851
26852 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26853
26854 fi
26855
26856
26857 case $target in
26858 *-*-aix*) conftest_s=' .machine "pwr9"
26859 .csect .text[PR]';;
26860 *) conftest_s=' .machine power9
26861 .text';;
26862 esac
26863
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26865 $as_echo_n "checking assembler for power9 support... " >&6; }
26866 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_powerpc_power9=no
26870 if test $in_tree_gas = yes; then
26871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26872 then gcc_cv_as_powerpc_power9=yes
26873 fi
26874 elif test x$gcc_cv_as != x; then
26875 $as_echo "$conftest_s" > conftest.s
26876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26881 test $ac_status = 0; }; }
26882 then
26883 gcc_cv_as_powerpc_power9=yes
26884 else
26885 echo "configure: failed program was" >&5
26886 cat conftest.s >&5
26887 fi
26888 rm -f conftest.o conftest.s
26889 fi
26890 fi
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26892 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26893 if test $gcc_cv_as_powerpc_power9 = yes; then
26894
26895 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26896
26897 fi
26898
26899
26900 case $target in
26901 *-*-aix*) conftest_s=' .csect .text[PR]
26902 lwsync';;
26903 *) conftest_s=' .text
26904 lwsync';;
26905 esac
26906
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26908 $as_echo_n "checking assembler for lwsync support... " >&6; }
26909 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26910 $as_echo_n "(cached) " >&6
26911 else
26912 gcc_cv_as_powerpc_lwsync=no
26913 if test $in_tree_gas = yes; then
26914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26915 then gcc_cv_as_powerpc_lwsync=yes
26916 fi
26917 elif test x$gcc_cv_as != x; then
26918 $as_echo "$conftest_s" > conftest.s
26919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924 test $ac_status = 0; }; }
26925 then
26926 gcc_cv_as_powerpc_lwsync=yes
26927 else
26928 echo "configure: failed program was" >&5
26929 cat conftest.s >&5
26930 fi
26931 rm -f conftest.o conftest.s
26932 fi
26933 fi
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26935 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26936 if test $gcc_cv_as_powerpc_lwsync = yes; then
26937
26938 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26939
26940 fi
26941
26942
26943 case $target in
26944 *-*-aix*) conftest_s=' .machine "476"
26945 .csect .text[PR]
26946 dci 0';;
26947 *) conftest_s=' .machine "476"
26948 .text
26949 dci 0';;
26950 esac
26951
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26953 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26954 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26955 $as_echo_n "(cached) " >&6
26956 else
26957 gcc_cv_as_powerpc_dci=no
26958 if test $in_tree_gas = yes; then
26959 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26960 then gcc_cv_as_powerpc_dci=yes
26961 fi
26962 elif test x$gcc_cv_as != x; then
26963 $as_echo "$conftest_s" > conftest.s
26964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; }
26970 then
26971 gcc_cv_as_powerpc_dci=yes
26972 else
26973 echo "configure: failed program was" >&5
26974 cat conftest.s >&5
26975 fi
26976 rm -f conftest.o conftest.s
26977 fi
26978 fi
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26980 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26981 if test $gcc_cv_as_powerpc_dci = yes; then
26982
26983 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26984
26985 fi
26986
26987
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26989 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26990 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26991 $as_echo_n "(cached) " >&6
26992 else
26993 gcc_cv_as_powerpc_gnu_attribute=no
26994 if test $in_tree_gas = yes; then
26995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26996 then gcc_cv_as_powerpc_gnu_attribute=yes
26997 fi
26998 elif test x$gcc_cv_as != x; then
26999 $as_echo '.gnu_attribute 4,1' > conftest.s
27000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27005 test $ac_status = 0; }; }
27006 then
27007 gcc_cv_as_powerpc_gnu_attribute=yes
27008 else
27009 echo "configure: failed program was" >&5
27010 cat conftest.s >&5
27011 fi
27012 rm -f conftest.o conftest.s
27013 fi
27014 fi
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27016 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27017 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27018
27019 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27020
27021 fi
27022
27023
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27025 $as_echo_n "checking assembler for tls marker support... " >&6; }
27026 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27027 $as_echo_n "(cached) " >&6
27028 else
27029 gcc_cv_as_powerpc_tls_markers=no
27030 if test $in_tree_gas = yes; then
27031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27032 then gcc_cv_as_powerpc_tls_markers=yes
27033 fi
27034 elif test x$gcc_cv_as != x; then
27035 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27041 test $ac_status = 0; }; }
27042 then
27043 gcc_cv_as_powerpc_tls_markers=yes
27044 else
27045 echo "configure: failed program was" >&5
27046 cat conftest.s >&5
27047 fi
27048 rm -f conftest.o conftest.s
27049 fi
27050 fi
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27052 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27053 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27054
27055 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27056
27057 fi
27058
27059
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27061 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27062 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27063 $as_echo_n "(cached) " >&6
27064 else
27065 gcc_cv_as_powerpc_entry_markers=no
27066 if test $in_tree_gas = yes; then
27067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27068 then gcc_cv_as_powerpc_entry_markers=yes
27069 fi
27070 elif test x$gcc_cv_as != x; then
27071 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077 test $ac_status = 0; }; }
27078 then
27079 gcc_cv_as_powerpc_entry_markers=yes
27080 else
27081 echo "configure: failed program was" >&5
27082 cat conftest.s >&5
27083 fi
27084 rm -f conftest.o conftest.s
27085 fi
27086 fi
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27088 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27089 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27090
27091 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27092
27093 fi
27094
27095
27096 case $target in
27097 *-*-aix*)
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27099 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27100 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27101 $as_echo_n "(cached) " >&6
27102 else
27103 gcc_cv_as_aix_ref=no
27104 if test $in_tree_gas = yes; then
27105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27106 then gcc_cv_as_aix_ref=yes
27107 fi
27108 elif test x$gcc_cv_as != x; then
27109 $as_echo ' .csect stuff[rw]
27110 stuff:
27111 .long 1
27112 .extern sym
27113 .ref sym
27114 ' > conftest.s
27115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; }
27121 then
27122 gcc_cv_as_aix_ref=yes
27123 else
27124 echo "configure: failed program was" >&5
27125 cat conftest.s >&5
27126 fi
27127 rm -f conftest.o conftest.s
27128 fi
27129 fi
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27131 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27132 if test $gcc_cv_as_aix_ref = yes; then
27133
27134 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27135
27136 fi
27137
27138
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27140 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27141 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27142 $as_echo_n "(cached) " >&6
27143 else
27144 gcc_cv_as_aix_dwloc=no
27145 if test $in_tree_gas = yes; then
27146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27147 then gcc_cv_as_aix_dwloc=yes
27148 fi
27149 elif test x$gcc_cv_as != x; then
27150 $as_echo ' .dwsect 0xA0000
27151 Lframe..0:
27152 .vbyte 4,Lframe..0
27153 ' > conftest.s
27154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27156 (eval $ac_try) 2>&5
27157 ac_status=$?
27158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27159 test $ac_status = 0; }; }
27160 then
27161 gcc_cv_as_aix_dwloc=yes
27162 else
27163 echo "configure: failed program was" >&5
27164 cat conftest.s >&5
27165 fi
27166 rm -f conftest.o conftest.s
27167 fi
27168 fi
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27170 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27171 if test $gcc_cv_as_aix_dwloc = yes; then
27172
27173 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27174
27175 fi
27176
27177 ;;
27178 esac
27179 ;;
27180
27181 mips*-*-*)
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27183 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27184 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27185 $as_echo_n "(cached) " >&6
27186 else
27187 gcc_cv_as_mips_explicit_relocs=no
27188 if test $in_tree_gas = yes; then
27189 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27190 then gcc_cv_as_mips_explicit_relocs=yes
27191 fi
27192 elif test x$gcc_cv_as != x; then
27193 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27199 test $ac_status = 0; }; }
27200 then
27201 gcc_cv_as_mips_explicit_relocs=yes
27202 else
27203 echo "configure: failed program was" >&5
27204 cat conftest.s >&5
27205 fi
27206 rm -f conftest.o conftest.s
27207 fi
27208 fi
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27210 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27211 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27212 if test x$target_cpu_default = x
27213 then target_cpu_default=MASK_EXPLICIT_RELOCS
27214 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27215 fi
27216 fi
27217
27218
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27220 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27221 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27222 $as_echo_n "(cached) " >&6
27223 else
27224 gcc_cv_as_mips_no_shared=no
27225 if test $in_tree_gas = yes; then
27226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27227 then gcc_cv_as_mips_no_shared=yes
27228 fi
27229 elif test x$gcc_cv_as != x; then
27230 $as_echo 'nop' > conftest.s
27231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27233 (eval $ac_try) 2>&5
27234 ac_status=$?
27235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27236 test $ac_status = 0; }; }
27237 then
27238 gcc_cv_as_mips_no_shared=yes
27239 else
27240 echo "configure: failed program was" >&5
27241 cat conftest.s >&5
27242 fi
27243 rm -f conftest.o conftest.s
27244 fi
27245 fi
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27247 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27248 if test $gcc_cv_as_mips_no_shared = yes; then
27249
27250 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27251
27252 fi
27253
27254
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27256 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27257 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27258 $as_echo_n "(cached) " >&6
27259 else
27260 gcc_cv_as_mips_gnu_attribute=no
27261 if test $in_tree_gas = yes; then
27262 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27263 then gcc_cv_as_mips_gnu_attribute=yes
27264 fi
27265 elif test x$gcc_cv_as != x; then
27266 $as_echo '.gnu_attribute 4,1' > conftest.s
27267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27272 test $ac_status = 0; }; }
27273 then
27274 gcc_cv_as_mips_gnu_attribute=yes
27275 else
27276 echo "configure: failed program was" >&5
27277 cat conftest.s >&5
27278 fi
27279 rm -f conftest.o conftest.s
27280 fi
27281 fi
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27283 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27284 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27285
27286 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27287
27288 fi
27289
27290
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27292 $as_echo_n "checking assembler for .module support... " >&6; }
27293 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27294 $as_echo_n "(cached) " >&6
27295 else
27296 gcc_cv_as_mips_dot_module=no
27297 if test x$gcc_cv_as != x; then
27298 $as_echo '.module mips2
27299 .module fp=xx' > conftest.s
27300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27305 test $ac_status = 0; }; }
27306 then
27307 gcc_cv_as_mips_dot_module=yes
27308 else
27309 echo "configure: failed program was" >&5
27310 cat conftest.s >&5
27311 fi
27312 rm -f conftest.o conftest.s
27313 fi
27314 fi
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27316 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27317 if test $gcc_cv_as_mips_dot_module = yes; then
27318
27319 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27320
27321 fi
27322
27323 if test x$gcc_cv_as_mips_dot_module = xno \
27324 && test x$with_fp_32 != x; then
27325 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27326 fi
27327
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27329 $as_echo_n "checking assembler for .micromips support... " >&6; }
27330 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27331 $as_echo_n "(cached) " >&6
27332 else
27333 gcc_cv_as_micromips_support=no
27334 if test x$gcc_cv_as != x; then
27335 $as_echo '.set micromips' > conftest.s
27336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27338 (eval $ac_try) 2>&5
27339 ac_status=$?
27340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27341 test $ac_status = 0; }; }
27342 then
27343 gcc_cv_as_micromips_support=yes
27344 else
27345 echo "configure: failed program was" >&5
27346 cat conftest.s >&5
27347 fi
27348 rm -f conftest.o conftest.s
27349 fi
27350 fi
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27352 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27353 if test $gcc_cv_as_micromips_support = yes; then
27354
27355 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27356
27357 fi
27358
27359
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27361 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27362 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27363 $as_echo_n "(cached) " >&6
27364 else
27365 gcc_cv_as_mips_dtprelword=no
27366 if test $in_tree_gas = yes; then
27367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27368 then gcc_cv_as_mips_dtprelword=yes
27369 fi
27370 elif test x$gcc_cv_as != x; then
27371 $as_echo '.section .tdata,"awT",@progbits
27372 x:
27373 .word 2
27374 .text
27375 .dtprelword x+0x8000' > conftest.s
27376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381 test $ac_status = 0; }; }
27382 then
27383 gcc_cv_as_mips_dtprelword=yes
27384 else
27385 echo "configure: failed program was" >&5
27386 cat conftest.s >&5
27387 fi
27388 rm -f conftest.o conftest.s
27389 fi
27390 fi
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27392 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27393 if test $gcc_cv_as_mips_dtprelword = yes; then
27394
27395 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27396
27397 fi
27398
27399
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27401 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27402 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27405 gcc_cv_as_mips_dspr1_mult=no
27406 if test x$gcc_cv_as != x; then
27407 $as_echo ' .set mips32r2
27408 .set nodspr2
27409 .set dsp
27410 madd $ac3,$4,$5
27411 maddu $ac3,$4,$5
27412 msub $ac3,$4,$5
27413 msubu $ac3,$4,$5
27414 mult $ac3,$4,$5
27415 multu $ac3,$4,$5' > conftest.s
27416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27421 test $ac_status = 0; }; }
27422 then
27423 gcc_cv_as_mips_dspr1_mult=yes
27424 else
27425 echo "configure: failed program was" >&5
27426 cat conftest.s >&5
27427 fi
27428 rm -f conftest.o conftest.s
27429 fi
27430 fi
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27432 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27433 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27434
27435 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27436
27437 fi
27438
27439
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27441 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27442 gcc_cv_as_ld_jalr_reloc=no
27443 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27444 if test $in_tree_ld = yes ; then
27445 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 \
27446 && test $in_tree_ld_is_elf = yes; then
27447 gcc_cv_as_ld_jalr_reloc=yes
27448 fi
27449 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27450 echo ' .ent x' > conftest.s
27451 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27452 echo ' lw $25,%call16(y)($28)' >> conftest.s
27453 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27454 echo '1: jalr $25' >> conftest.s
27455 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27456 echo '1: jalr $25' >> conftest.s
27457 echo ' .end x' >> conftest.s
27458 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27459 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27460 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27461 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27462 gcc_cv_as_ld_jalr_reloc=yes
27463 fi
27464 fi
27465 rm -f conftest.*
27466 fi
27467 fi
27468 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27469 if test x$target_cpu_default = x; then
27470 target_cpu_default=MASK_RELAX_PIC_CALLS
27471 else
27472 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27473 fi
27474 fi
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27476 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27477
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27479 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27480 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27481 $as_echo_n "(cached) " >&6
27482 else
27483 gcc_cv_ld_mips_personality_relaxation=no
27484 if test $in_tree_ld = yes ; then
27485 if test "$gcc_cv_gld_major_version" -eq 2 \
27486 -a "$gcc_cv_gld_minor_version" -ge 21 \
27487 -o "$gcc_cv_gld_major_version" -gt 2; then
27488 gcc_cv_ld_mips_personality_relaxation=yes
27489 fi
27490 elif test x$gcc_cv_as != x \
27491 -a x$gcc_cv_ld != x \
27492 -a x$gcc_cv_readelf != x ; then
27493 cat > conftest.s <<EOF
27494 .cfi_startproc
27495 .cfi_personality 0x80,indirect_ptr
27496 .ent test
27497 test:
27498 nop
27499 .end test
27500 .cfi_endproc
27501
27502 .section .data,"aw",@progbits
27503 indirect_ptr:
27504 .dc.a personality
27505 EOF
27506 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27507 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27508 if $gcc_cv_readelf -d conftest 2>&1 \
27509 | grep TEXTREL > /dev/null 2>&1; then
27510 :
27511 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27512 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27513 :
27514 else
27515 gcc_cv_ld_mips_personality_relaxation=yes
27516 fi
27517 fi
27518 fi
27519 rm -f conftest.s conftest.o conftest
27520 fi
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27522 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27523 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27524
27525 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27526
27527 fi
27528
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27530 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27531 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27534 gcc_cv_as_mips_nan=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo '' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 gcc_cv_as_mips_nan=yes
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27548 fi
27549 rm -f conftest.o conftest.s
27550 fi
27551 fi
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27553 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27554 if test $gcc_cv_as_mips_nan = yes; then
27555
27556 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27557
27558 fi
27559
27560 if test x$gcc_cv_as_mips_nan = xno \
27561 && test x$with_nan != x; then
27562 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27563 fi
27564 ;;
27565 s390*-*-*)
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27567 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27568 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27569 $as_echo_n "(cached) " >&6
27570 else
27571 gcc_cv_as_s390_gnu_attribute=no
27572 if test $in_tree_gas = yes; then
27573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27574 then gcc_cv_as_s390_gnu_attribute=yes
27575 fi
27576 elif test x$gcc_cv_as != x; then
27577 $as_echo '.gnu_attribute 8,1' > conftest.s
27578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583 test $ac_status = 0; }; }
27584 then
27585 gcc_cv_as_s390_gnu_attribute=yes
27586 else
27587 echo "configure: failed program was" >&5
27588 cat conftest.s >&5
27589 fi
27590 rm -f conftest.o conftest.s
27591 fi
27592 fi
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27594 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27595 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27596
27597 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27598
27599 fi
27600
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27602 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27603 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_s390_machine_machinemode=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27609 then gcc_cv_as_s390_machine_machinemode=yes
27610 fi
27611 elif test x$gcc_cv_as != x; then
27612 $as_echo ' .machinemode push
27613 .machinemode pop
27614 .machine push
27615 .machine pop' > conftest.s
27616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27622 then
27623 gcc_cv_as_s390_machine_machinemode=yes
27624 else
27625 echo "configure: failed program was" >&5
27626 cat conftest.s >&5
27627 fi
27628 rm -f conftest.o conftest.s
27629 fi
27630 fi
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27632 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27633 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27634
27635 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27636
27637 fi
27638
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27640 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27641 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27642 $as_echo_n "(cached) " >&6
27643 else
27644 gcc_cv_as_s390_architecture_modifiers=no
27645 if test $in_tree_gas = yes; then
27646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27647 then gcc_cv_as_s390_architecture_modifiers=yes
27648 fi
27649 elif test x$gcc_cv_as != x; then
27650 $as_echo ' .machine z13+vx ' > conftest.s
27651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27656 test $ac_status = 0; }; }
27657 then
27658 gcc_cv_as_s390_architecture_modifiers=yes
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27662 fi
27663 rm -f conftest.o conftest.s
27664 fi
27665 fi
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27667 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27668 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27669
27670 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27671
27672 fi
27673
27674 ;;
27675 esac
27676
27677 # Mips and HP-UX need the GNU assembler.
27678 # Linux on IA64 might be able to use the Intel assembler.
27679
27680 case "$target" in
27681 mips*-*-* | *-*-hpux* )
27682 if test x$gas_flag = xyes \
27683 || test x"$host" != x"$build" \
27684 || test ! -x "$gcc_cv_as" \
27685 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27686 :
27687 else
27688 echo "*** This configuration requires the GNU assembler" >&2
27689 exit 1
27690 fi
27691 ;;
27692 esac
27693
27694 # ??? Not all targets support dwarf2 debug_line, even within a version
27695 # of gas. Moreover, we need to emit a valid instruction to trigger any
27696 # info to the output file. So, as supported targets are added to gas 2.11,
27697 # add some instruction here to (also) show we expect this might work.
27698 # ??? Once 2.11 is released, probably need to add first known working
27699 # version to the per-target configury.
27700 case "$cpu_type" in
27701 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27702 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27703 | tilegx | tilepro | visium | xstormy16 | xtensa)
27704 insn="nop"
27705 ;;
27706 ia64 | s390)
27707 insn="nop 0"
27708 ;;
27709 mmix)
27710 insn="swym 0"
27711 ;;
27712 esac
27713 if test x"$insn" != x; then
27714 conftest_s="\
27715 .file 1 \"conftest.s\"
27716 .loc 1 3 0
27717 $insn"
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27719 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27720 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27721 $as_echo_n "(cached) " >&6
27722 else
27723 gcc_cv_as_dwarf2_debug_line=no
27724 if test $in_tree_gas = yes; then
27725 if test $in_tree_gas_is_elf = yes \
27726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27727 then gcc_cv_as_dwarf2_debug_line=yes
27728 fi
27729 elif test x$gcc_cv_as != x; then
27730 $as_echo "$conftest_s" > conftest.s
27731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; }
27737 then
27738 if test x$gcc_cv_objdump != x \
27739 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27740 | grep debug_line > /dev/null 2>&1; then
27741 gcc_cv_as_dwarf2_debug_line=yes
27742 fi
27743 else
27744 echo "configure: failed program was" >&5
27745 cat conftest.s >&5
27746 fi
27747 rm -f conftest.o conftest.s
27748 fi
27749 fi
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27751 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27752
27753
27754
27755 # The .debug_line file table must be in the exact order that
27756 # we specified the files, since these indices are also used
27757 # by DW_AT_decl_file. Approximate this test by testing if
27758 # the assembler bitches if the same index is assigned twice.
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27760 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27761 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27762 $as_echo_n "(cached) " >&6
27763 else
27764 gcc_cv_as_dwarf2_file_buggy=no
27765 if test x$gcc_cv_as != x; then
27766 $as_echo ' .file 1 "foo.s"
27767 .file 1 "bar.s"' > conftest.s
27768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27774 then
27775 gcc_cv_as_dwarf2_file_buggy=yes
27776 else
27777 echo "configure: failed program was" >&5
27778 cat conftest.s >&5
27779 fi
27780 rm -f conftest.o conftest.s
27781 fi
27782 fi
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27784 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27785
27786
27787
27788 if test $gcc_cv_as_dwarf2_debug_line = yes \
27789 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27790
27791 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27792
27793 fi
27794
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27796 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27797 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27798 $as_echo_n "(cached) " >&6
27799 else
27800 gcc_cv_as_gdwarf2_flag=no
27801 if test $in_tree_gas = yes; then
27802 if test $in_tree_gas_is_elf = yes \
27803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27804 then gcc_cv_as_gdwarf2_flag=yes
27805 fi
27806 elif test x$gcc_cv_as != x; then
27807 $as_echo "$insn" > conftest.s
27808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; }
27814 then
27815 gcc_cv_as_gdwarf2_flag=yes
27816 else
27817 echo "configure: failed program was" >&5
27818 cat conftest.s >&5
27819 fi
27820 rm -f conftest.o conftest.s
27821 fi
27822 fi
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27824 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27825 if test $gcc_cv_as_gdwarf2_flag = yes; then
27826
27827 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27828
27829 fi
27830
27831
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27833 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27834 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27835 $as_echo_n "(cached) " >&6
27836 else
27837 gcc_cv_as_gstabs_flag=no
27838 if test $in_tree_gas = yes; then
27839 if test $in_tree_gas_is_elf = yes \
27840 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27841 then gcc_cv_as_gstabs_flag=yes
27842 fi
27843 elif test x$gcc_cv_as != x; then
27844 $as_echo "$insn" > conftest.s
27845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27847 (eval $ac_try) 2>&5
27848 ac_status=$?
27849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27850 test $ac_status = 0; }; }
27851 then
27852 gcc_cv_as_gstabs_flag=yes
27853 else
27854 echo "configure: failed program was" >&5
27855 cat conftest.s >&5
27856 fi
27857 rm -f conftest.o conftest.s
27858 fi
27859 fi
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27861 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27862 if test $gcc_cv_as_gstabs_flag = yes; then
27863
27864 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27865
27866 fi
27867
27868
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27870 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27871 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27872 $as_echo_n "(cached) " >&6
27873 else
27874 gcc_cv_as_debug_prefix_map_flag=no
27875 if test $in_tree_gas = yes; then
27876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27877 then gcc_cv_as_debug_prefix_map_flag=yes
27878 fi
27879 elif test x$gcc_cv_as != x; then
27880 $as_echo "$insn" > conftest.s
27881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27883 (eval $ac_try) 2>&5
27884 ac_status=$?
27885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27886 test $ac_status = 0; }; }
27887 then
27888 gcc_cv_as_debug_prefix_map_flag=yes
27889 else
27890 echo "configure: failed program was" >&5
27891 cat conftest.s >&5
27892 fi
27893 rm -f conftest.o conftest.s
27894 fi
27895 fi
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27897 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27898 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27899
27900 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27901
27902 fi
27903
27904 fi
27905
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27907 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27908 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27909 $as_echo_n "(cached) " >&6
27910 else
27911 gcc_cv_as_compress_debug=no
27912 if test x$gcc_cv_as != x; then
27913 $as_echo '' > conftest.s
27914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27916 (eval $ac_try) 2>&5
27917 ac_status=$?
27918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27919 test $ac_status = 0; }; }
27920 then
27921 # gas compiled without zlib cannot compress debug sections and warns
27922 # about it, but still exits successfully. So check for this, too.
27923 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27924 then
27925 gcc_cv_as_compress_debug=0
27926 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27927 # defaulting to the ELF gABI format.
27928 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27929 then
27930 gcc_cv_as_compress_debug=2
27931 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27932 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27933 # Before binutils 2.26, gas only supported --compress-debug-options and
27934 # emitted the traditional GNU format.
27935 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27936 then
27937 gcc_cv_as_compress_debug=1
27938 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27939 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27940 else
27941 gcc_cv_as_compress_debug=0
27942 fi
27943 else
27944 echo "configure: failed program was" >&5
27945 cat conftest.s >&5
27946 fi
27947 rm -f conftest.o conftest.s
27948 fi
27949 fi
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27951 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27952
27953
27954
27955 cat >>confdefs.h <<_ACEOF
27956 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27957 _ACEOF
27958
27959
27960 cat >>confdefs.h <<_ACEOF
27961 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27962 _ACEOF
27963
27964
27965 cat >>confdefs.h <<_ACEOF
27966 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27967 _ACEOF
27968
27969
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27971 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27972 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27973 $as_echo_n "(cached) " >&6
27974 else
27975 gcc_cv_as_lcomm_with_alignment=no
27976 if test x$gcc_cv_as != x; then
27977 $as_echo '.lcomm bar,4,16' > conftest.s
27978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27980 (eval $ac_try) 2>&5
27981 ac_status=$?
27982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27983 test $ac_status = 0; }; }
27984 then
27985 gcc_cv_as_lcomm_with_alignment=yes
27986 else
27987 echo "configure: failed program was" >&5
27988 cat conftest.s >&5
27989 fi
27990 rm -f conftest.o conftest.s
27991 fi
27992 fi
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27994 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27995 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27996
27997 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27998
27999 fi
28000
28001
28002 if test x$with_sysroot = x && test x$host = x$target \
28003 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28004 && test "$prefix" != "NONE"; then
28005
28006 cat >>confdefs.h <<_ACEOF
28007 #define PREFIX_INCLUDE_DIR "$prefix/include"
28008 _ACEOF
28009
28010 fi
28011
28012 # Determine the version of glibc, if any, used on the target.
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28014 $as_echo_n "checking for target glibc version... " >&6; }
28015
28016 # Check whether --with-glibc-version was given.
28017 if test "${with_glibc_version+set}" = set; then :
28018 withval=$with_glibc_version;
28019 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28020 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28021 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28022 else
28023 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28024 fi
28025 else
28026
28027 glibc_version_major=0
28028 glibc_version_minor=0
28029 if test -f $target_header_dir/features.h \
28030 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28031 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28032 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28033 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28034 fi
28035 fi
28036
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28038 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28039
28040 cat >>confdefs.h <<_ACEOF
28041 #define TARGET_GLIBC_MAJOR $glibc_version_major
28042 _ACEOF
28043
28044
28045 cat >>confdefs.h <<_ACEOF
28046 #define TARGET_GLIBC_MINOR $glibc_version_minor
28047 _ACEOF
28048
28049
28050 # Check whether --enable-gnu-unique-object was given.
28051 if test "${enable_gnu_unique_object+set}" = set; then :
28052 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28053 yes | no) ;;
28054 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28055 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28056 esac
28057 else
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28059 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28060 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28061 $as_echo_n "(cached) " >&6
28062 else
28063 gcc_cv_as_gnu_unique_object=no
28064 if test $in_tree_gas = yes; then
28065 if test $in_tree_gas_is_elf = yes \
28066 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28067 then gcc_cv_as_gnu_unique_object=yes
28068 fi
28069 elif test x$gcc_cv_as != x; then
28070 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28076 test $ac_status = 0; }; }
28077 then
28078 gcc_cv_as_gnu_unique_object=yes
28079 else
28080 echo "configure: failed program was" >&5
28081 cat conftest.s >&5
28082 fi
28083 rm -f conftest.o conftest.s
28084 fi
28085 fi
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28087 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28088 if test $gcc_cv_as_gnu_unique_object = yes; then
28089 # We need to unquote above to to use the definition from config.gcc.
28090 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28091
28092 if test $glibc_version_major -gt 2 \
28093 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28094 enable_gnu_unique_object=yes
28095 fi
28096
28097 fi
28098
28099 fi
28100
28101 if test x$enable_gnu_unique_object = xyes; then
28102
28103 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28104
28105 fi
28106
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28108 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28109 if test "${gcc_cv_as_line_zero+set}" = set; then :
28110 $as_echo_n "(cached) " >&6
28111 else
28112 gcc_cv_as_line_zero=no
28113 if test $in_tree_gas = yes; then
28114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28115 then gcc_cv_as_line_zero=yes
28116 fi
28117 elif test "x$gcc_cv_as" != x; then
28118 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28119 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28124 test $ac_status = 0; }; } &&
28125 test "x`cat conftest.out`" = x
28126 then
28127 gcc_cv_as_line_zero=yes
28128 else
28129 echo "configure: failed program was" >&5
28130 cat conftest.s >&5
28131 echo "configure: error output was" >&5
28132 cat conftest.out >&5
28133 fi
28134 rm -f conftest.o conftest.s conftest.out
28135 fi
28136 fi
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28138 $as_echo "$gcc_cv_as_line_zero" >&6; }
28139 if test "x$gcc_cv_as_line_zero" = xyes; then
28140
28141 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28142
28143 fi
28144
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28146 $as_echo_n "checking support for thin archives... " >&6; }
28147 thin_archive_support=no
28148 echo 'int main (void) { return 0; }' > conftest.c
28149 if ($AR --version | sed 1q | grep "GNU ar" \
28150 && $CC $CFLAGS -c conftest.c \
28151 && $AR rcT conftest.a conftest.o \
28152 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28153 thin_archive_support=yes
28154 fi
28155 rm -f conftest.c conftest.o conftest.a conftest
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28157 $as_echo "$thin_archive_support" >&6; }
28158
28159
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28161 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28162 gcc_cv_ld_eh_frame_hdr=no
28163 if test $in_tree_ld = yes ; then
28164 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 \
28165 && test $in_tree_ld_is_elf = yes; then
28166 gcc_cv_ld_eh_frame_hdr=yes
28167 fi
28168 elif test x$gcc_cv_ld != x; then
28169 if echo "$ld_ver" | grep GNU > /dev/null; then
28170 # Check if linker supports --eh-frame-hdr option
28171 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28172 gcc_cv_ld_eh_frame_hdr=yes
28173 fi
28174 else
28175 case "$target" in
28176 *-*-solaris2*)
28177 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28178 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28179 gcc_cv_ld_eh_frame_hdr=yes
28180 fi
28181 ;;
28182 esac
28183 fi
28184 fi
28185
28186 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28187
28188 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28189
28190 fi
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28192 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28193
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28195 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28196 gcc_cv_ld_eh_frame_ciev3=no
28197 if test $in_tree_ld = yes ; then
28198 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 \
28199 && test $in_tree_ld_is_elf = yes; then
28200 gcc_cv_ld_eh_frame_ciev3=yes
28201 fi
28202 elif test x$gcc_cv_ld != x; then
28203 if echo "$ld_ver" | grep GNU > /dev/null; then
28204 gcc_cv_ld_eh_frame_ciev3=yes
28205 if test 0"$ld_date" -lt 20040513; then
28206 if test -n "$ld_date"; then
28207 # If there was date string, but was earlier than 2004-05-13, fail
28208 gcc_cv_ld_eh_frame_ciev3=no
28209 elif test "$ld_vers_major" -lt 2; then
28210 gcc_cv_ld_eh_frame_ciev3=no
28211 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28212 gcc_cv_ld_eh_frame_ciev3=no
28213 fi
28214 fi
28215 else
28216 case "$target" in
28217 *-*-solaris2*)
28218 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28219 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28220 gcc_cv_ld_eh_frame_ciev3=yes
28221 fi
28222 ;;
28223 esac
28224 fi
28225 fi
28226
28227 cat >>confdefs.h <<_ACEOF
28228 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28229 _ACEOF
28230
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28232 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28233
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28235 $as_echo_n "checking linker position independent executable support... " >&6; }
28236 gcc_cv_ld_pie=no
28237 if test $in_tree_ld = yes ; then
28238 case "$target" in
28239 # Full PIE support on Solaris was only introduced in gld 2.26.
28240 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28241 *) gcc_gld_pie_min_version=15 ;;
28242 esac
28243 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28244 && test $in_tree_ld_is_elf = yes; then
28245 gcc_cv_ld_pie=yes
28246 fi
28247 elif test x$gcc_cv_ld != x; then
28248 # Check if linker supports -pie option
28249 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28250 gcc_cv_ld_pie=yes
28251 case "$target" in
28252 *-*-solaris2*)
28253 if echo "$ld_ver" | grep GNU > /dev/null \
28254 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28255 gcc_cv_ld_pie=no
28256 fi
28257 ;;
28258 esac
28259 else
28260 case "$target" in
28261 *-*-solaris2.1[1-9]*)
28262 # Solaris 11.x and Solaris 12 added PIE support.
28263 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28264 gcc_cv_ld_pie=yes
28265 fi
28266 ;;
28267 esac
28268 fi
28269 fi
28270 if test x"$gcc_cv_ld_pie" = xyes; then
28271
28272 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28273
28274 fi
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28276 $as_echo "$gcc_cv_ld_pie" >&6; }
28277
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28279 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28280 gcc_cv_ld_pie_copyreloc=no
28281 if test $gcc_cv_ld_pie = yes ; then
28282 if test $in_tree_ld = yes ; then
28283 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
28284 gcc_cv_ld_pie_copyreloc=yes
28285 fi
28286 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28287 # Check if linker supports -pie option with copy reloc
28288 case "$target" in
28289 i?86-*-linux* | x86_64-*-linux*)
28290 cat > conftest1.s <<EOF
28291 .globl a_glob
28292 .data
28293 .type a_glob, @object
28294 .size a_glob, 4
28295 a_glob:
28296 .long 2
28297 EOF
28298 cat > conftest2.s <<EOF
28299 .text
28300 .globl main
28301 .type main, @function
28302 main:
28303 movl %eax, a_glob(%rip)
28304 .size main, .-main
28305 .globl ptr
28306 .section .data.rel,"aw",@progbits
28307 .type ptr, @object
28308 ptr:
28309 .quad a_glob
28310 EOF
28311 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28312 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28313 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28314 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28315 gcc_cv_ld_pie_copyreloc=yes
28316 fi
28317 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28318 ;;
28319 esac
28320 fi
28321 fi
28322
28323 cat >>confdefs.h <<_ACEOF
28324 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28325 _ACEOF
28326
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28328 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28329
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28331 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28332 gcc_cv_ld_eh_gc_sections=no
28333 if test $in_tree_ld = yes ; then
28334 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 \
28335 && test $in_tree_ld_is_elf = yes; then
28336 gcc_cv_ld_eh_gc_sections=yes
28337 fi
28338 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28339 cat > conftest.s <<EOF
28340 .section .text
28341 .globl _start
28342 .type _start, @function
28343 _start:
28344 .long foo
28345 .size _start, .-_start
28346 .section .text.foo,"ax",@progbits
28347 .type foo, @function
28348 foo:
28349 .long 0
28350 .size foo, .-foo
28351 .section .gcc_except_table.foo,"a",@progbits
28352 .L0:
28353 .long 0
28354 .section .eh_frame,"a",@progbits
28355 .long .L0
28356 EOF
28357 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28358 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28359 | grep "gc-sections option ignored" > /dev/null; then
28360 gcc_cv_ld_eh_gc_sections=no
28361 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28362 | grep gcc_except_table > /dev/null; then
28363 gcc_cv_ld_eh_gc_sections=yes
28364 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28365 if test x$gcc_cv_as_comdat_group != xyes; then
28366 gcc_cv_ld_eh_gc_sections=no
28367 cat > conftest.s <<EOF
28368 .section .text
28369 .globl _start
28370 .type _start, @function
28371 _start:
28372 .long foo
28373 .size _start, .-_start
28374 .section .gnu.linkonce.t.foo,"ax",@progbits
28375 .type foo, @function
28376 foo:
28377 .long 0
28378 .size foo, .-foo
28379 .section .gcc_except_table.foo,"a",@progbits
28380 .L0:
28381 .long 0
28382 .section .eh_frame,"a",@progbits
28383 .long .L0
28384 EOF
28385 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28386 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28387 | grep "gc-sections option ignored" > /dev/null; then
28388 gcc_cv_ld_eh_gc_sections=no
28389 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28390 | grep gcc_except_table > /dev/null; then
28391 gcc_cv_ld_eh_gc_sections=yes
28392 fi
28393 fi
28394 fi
28395 fi
28396 fi
28397 rm -f conftest.s conftest.o conftest
28398 fi
28399 case "$target" in
28400 hppa*-*-linux*)
28401 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28402 gcc_cv_ld_eh_gc_sections=no
28403 ;;
28404 esac
28405 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28406
28407 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28408
28409 fi
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28411 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28412
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28414 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28415 gcc_cv_ld_eh_gc_sections_bug=no
28416 if test $in_tree_ld = yes ; then
28417 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 \
28418 && test $in_tree_ld_is_elf = yes; then
28419 gcc_cv_ld_eh_gc_sections_bug=yes
28420 fi
28421 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
28422 gcc_cv_ld_eh_gc_sections_bug=yes
28423 cat > conftest.s <<EOF
28424 .section .text
28425 .globl _start
28426 .type _start, @function
28427 _start:
28428 .long foo
28429 .size _start, .-_start
28430 .section .text.startup.foo,"ax",@progbits
28431 .type foo, @function
28432 foo:
28433 .long 0
28434 .size foo, .-foo
28435 .section .gcc_except_table.foo,"a",@progbits
28436 .L0:
28437 .long 0
28438 .section .eh_frame,"a",@progbits
28439 .long .L0
28440 EOF
28441 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28442 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28443 | grep "gc-sections option ignored" > /dev/null; then
28444 :
28445 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28446 | grep gcc_except_table > /dev/null; then
28447 gcc_cv_ld_eh_gc_sections_bug=no
28448 fi
28449 fi
28450 rm -f conftest.s conftest.o conftest
28451 fi
28452 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28453
28454 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28455
28456 fi
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28458 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28459
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28461 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28462 # gold/gld support compressed debug sections since binutils 2.19/2.21
28463 # In binutils 2.26, gld gained support for the ELF gABI format.
28464 if test $in_tree_ld = yes ; then
28465 gcc_cv_ld_compress_debug=0
28466 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 \
28467 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28468 gcc_cv_ld_compress_debug=2
28469 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28470 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28471 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28472 gcc_cv_ld_compress_debug=3
28473 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28474 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 \
28475 && test $in_tree_ld_is_elf = yes; then
28476 gcc_cv_ld_compress_debug=1
28477 fi
28478 elif echo "$ld_ver" | grep GNU > /dev/null; then
28479 if test "$ld_vers_major" -lt 2 \
28480 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28481 gcc_cv_ld_compress_debug=0
28482 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28483 gcc_cv_ld_compress_debug=1
28484 else
28485 gcc_cv_ld_compress_debug=3
28486 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28487 fi
28488 if test $ld_is_gold = yes; then
28489 gcc_cv_ld_compress_debug=2
28490 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28491 fi
28492 else
28493 case "${target}" in
28494 *-*-solaris2*)
28495 # Introduced in Solaris 11.2.
28496 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28497 gcc_cv_ld_compress_debug=3
28498 gcc_cv_ld_compress_debug_option="-z compress-sections"
28499 else
28500 gcc_cv_ld_compress_debug=0
28501 fi
28502 ;;
28503 *)
28504 # Assume linkers other than GNU ld don't support compessed debug
28505 # sections.
28506 gcc_cv_ld_compress_debug=0
28507 ;;
28508 esac
28509 fi
28510
28511 cat >>confdefs.h <<_ACEOF
28512 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28513 _ACEOF
28514
28515
28516 cat >>confdefs.h <<_ACEOF
28517 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28518 _ACEOF
28519
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28521 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28522
28523 if test x"$ld64_flag" = x"yes"; then
28524
28525 # Set defaults for possibly untestable items.
28526 gcc_cv_ld64_export_dynamic=0
28527
28528 if test "$build" = "$host"; then
28529 darwin_try_test=1
28530 else
28531 darwin_try_test=0
28532 fi
28533
28534 # On Darwin, because of FAT library support, it is often possible to execute
28535 # exes from compatible archs even when the host differs from the build system.
28536 case "$build","$host" in
28537 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28538 darwin_try_test=1;;
28539 *) ;;
28540 esac
28541
28542 # If the configurer specified a minimum ld64 version to be supported, then use
28543 # that to determine feature support.
28544 if test x"${gcc_cv_ld64_version}" != x; then
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28546 $as_echo_n "checking ld64 specified version... " >&6; }
28547 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28549 $as_echo "$gcc_cv_ld64_major" >&6; }
28550 if test "$gcc_cv_ld64_major" -ge 236; then
28551 gcc_cv_ld64_export_dynamic=1
28552 fi
28553 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28554 # If the version was not specified, try to find it.
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28556 $as_echo_n "checking linker version... " >&6; }
28557 if test x"${gcc_cv_ld64_version}" = x; then
28558 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28559 fi
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28561 $as_echo "$gcc_cv_ld64_version" >&6; }
28562
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28564 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28565 gcc_cv_ld64_export_dynamic=1
28566 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28567 gcc_cv_ld64_export_dynamic=0
28568 fi
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28570 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28571 fi
28572
28573 if test x"${gcc_cv_ld64_version}" != x; then
28574
28575 cat >>confdefs.h <<_ACEOF
28576 #define LD64_VERSION "${gcc_cv_ld64_version}"
28577 _ACEOF
28578
28579 fi
28580
28581
28582 cat >>confdefs.h <<_ACEOF
28583 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28584 _ACEOF
28585
28586 fi
28587
28588 # --------
28589 # UNSORTED
28590 # --------
28591
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28593 $as_echo_n "checking linker --as-needed support... " >&6; }
28594 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28595 $as_echo_n "(cached) " >&6
28596 else
28597 gcc_cv_ld_as_needed=no
28598 gcc_cv_ld_as_needed_option='--as-needed'
28599 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28600 if test $in_tree_ld = yes ; then
28601 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 \
28602 && test $in_tree_ld_is_elf = yes; then
28603 gcc_cv_ld_as_needed=yes
28604 fi
28605 elif test x$gcc_cv_ld != x; then
28606 # Check if linker supports --as-needed and --no-as-needed options
28607 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28608 gcc_cv_ld_as_needed=yes
28609 fi
28610 case "$target:$gnu_ld" in
28611 *-*-solaris2*:no)
28612 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28613 # forms.
28614 gcc_cv_ld_as_needed=yes
28615 gcc_cv_ld_as_needed_option="-z ignore"
28616 gcc_cv_ld_no_as_needed_option="-z record"
28617 ;;
28618 esac
28619 fi
28620 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28621 # dl_iterate_phdr, i.e. since Solaris 11.
28622 case "$target" in
28623 *-*-solaris2.1[1-9]*)
28624 case "$target" in
28625 i?86-*-* | x86_64-*-*)
28626 if echo "$ld_ver" | grep GNU > /dev/null; then
28627 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28628 gcc_cv_ld_as_needed=no
28629 fi
28630 ;;
28631 esac
28632 ;;
28633 *-*-solaris2*)
28634 gcc_cv_ld_as_needed=no
28635 ;;
28636 esac
28637
28638 fi
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28640 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28641 if test x"$gcc_cv_ld_as_needed" = xyes; then
28642
28643 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28644
28645
28646 cat >>confdefs.h <<_ACEOF
28647 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28648 _ACEOF
28649
28650
28651 cat >>confdefs.h <<_ACEOF
28652 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28653 _ACEOF
28654
28655 fi
28656
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28658 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28659 saved_LDFLAGS="$LDFLAGS"
28660 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28661 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28663 /* end confdefs.h. */
28664 int main(void) {return 0;}
28665 _ACEOF
28666 if ac_fn_cxx_try_link "$LINENO"; then :
28667 gcc_cv_ld_clearcap=yes; break
28668 else
28669 gcc_cv_ld_clearcap=no
28670 fi
28671 rm -f core conftest.err conftest.$ac_objext \
28672 conftest$ac_exeext conftest.$ac_ext
28673 done
28674 LDFLAGS="$saved_LDFLAGS"
28675 if test "x$gcc_cv_ld_clearcap" = xyes; then
28676
28677 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28678
28679 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28680
28681 fi
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28683 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28684
28685 case "$target" in
28686 powerpc*-*-*)
28687 case "$target" in
28688 *le-*-linux*)
28689 emul_name="-melf32lppc"
28690 ;;
28691 *)
28692 emul_name="-melf32ppc"
28693 ;;
28694 esac
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28696 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28697 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28698 $as_echo_n "(cached) " >&6
28699 else
28700 gcc_cv_ld_ppc_attr=no
28701 if test x"$ld_is_gold" = xyes; then
28702 gcc_cv_ld_ppc_attr=yes
28703 elif test $in_tree_ld = yes ; then
28704 if test "$gcc_cv_gld_major_version" -eq 2 \
28705 -a "$gcc_cv_gld_minor_version" -ge 28 \
28706 -o "$gcc_cv_gld_major_version" -gt 2; then
28707 gcc_cv_ld_ppc_attr=yes
28708 fi
28709 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28710 # check that merging the long double .gnu_attribute doesn't warn
28711 cat > conftest1.s <<EOF
28712 .gnu_attribute 4,1
28713 EOF
28714 cat > conftest2.s <<EOF
28715 .gnu_attribute 4,9
28716 EOF
28717 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28718 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28719 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28720 && test ! -s conftest.err; then
28721 gcc_cv_ld_ppc_attr=yes
28722 fi
28723 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28724 fi
28725
28726 fi
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28728 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28729 if test x$gcc_cv_ld_ppc_attr = xyes; then
28730
28731 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28732
28733 fi
28734 ;;
28735 esac
28736
28737 case "$target:$tm_file" in
28738 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28739 case "$target" in
28740 *le-*-linux*)
28741 emul_name="-melf64lppc"
28742 ;;
28743 *-*-linux*)
28744 emul_name="-melf64ppc"
28745 ;;
28746 *-*-freebsd*)
28747 emul_name="-melf64ppc_fbsd"
28748 ;;
28749 esac
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28751 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28752 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28753 $as_echo_n "(cached) " >&6
28754 else
28755 gcc_cv_ld_no_dot_syms=no
28756 if test x"$ld_is_gold" = xyes; then
28757 gcc_cv_ld_no_dot_syms=yes
28758 elif test $in_tree_ld = yes ; then
28759 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
28760 gcc_cv_ld_no_dot_syms=yes
28761 fi
28762 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28763 cat > conftest1.s <<EOF
28764 .text
28765 bl .foo
28766 EOF
28767 cat > conftest2.s <<EOF
28768 .section ".opd","aw"
28769 .align 3
28770 .globl foo
28771 .type foo,@function
28772 foo:
28773 .quad .LEfoo,.TOC.@tocbase,0
28774 .text
28775 .LEfoo:
28776 blr
28777 .size foo,.-.LEfoo
28778 EOF
28779 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28780 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28781 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28782 gcc_cv_ld_no_dot_syms=yes
28783 fi
28784 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28785 fi
28786
28787 fi
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28789 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28790 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28791
28792 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28793
28794 fi
28795
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28797 $as_echo_n "checking linker large toc support... " >&6; }
28798 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28799 $as_echo_n "(cached) " >&6
28800 else
28801 gcc_cv_ld_large_toc=no
28802 if test x"$ld_is_gold" = xyes; then
28803 gcc_cv_ld_large_toc=yes
28804 elif test $in_tree_ld = yes ; then
28805 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
28806 gcc_cv_ld_large_toc=yes
28807 fi
28808 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28809 cat > conftest.s <<EOF
28810 .section ".tbss","awT",@nobits
28811 .align 3
28812 ie0: .space 8
28813 .global _start
28814 .text
28815 _start:
28816 addis 9,13,ie0@got@tprel@ha
28817 ld 9,ie0@got@tprel@l(9)
28818 EOF
28819 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28820 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28821 gcc_cv_ld_large_toc=yes
28822 fi
28823 rm -f conftest conftest.o conftest.s
28824 fi
28825
28826 fi
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28828 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28829 if test x"$gcc_cv_ld_large_toc" = xyes; then
28830
28831 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28832
28833 fi
28834
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28836 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28837 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28838 $as_echo_n "(cached) " >&6
28839 else
28840 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28841 cat > conftest.s <<EOF
28842 .global _start
28843 .text
28844 _start:
28845 addis 9,2,x@got@ha
28846 .section .data.rel.ro,"aw",@progbits
28847 .p2align 16
28848 .space 32768
28849 x: .quad .TOC.
28850 EOF
28851 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28852 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28853 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)) }'`
28854 fi
28855 rm -f conftest conftest.o conftest.s
28856 fi
28857
28858 fi
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28860 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28861 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28862
28863 cat >>confdefs.h <<_ACEOF
28864 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28865 _ACEOF
28866
28867 fi
28868 ;;
28869 esac
28870
28871 case "$target" in
28872 *-*-aix*)
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28874 $as_echo_n "checking linker large toc support... " >&6; }
28875 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28876 $as_echo_n "(cached) " >&6
28877 else
28878 gcc_cv_ld_large_toc=no
28879 if test x$gcc_cv_as != x ; then
28880 cat > conftest.s <<EOF
28881 .toc
28882 LC..1:
28883 .tc a[TC],a[RW]
28884 .extern a[RW]
28885 .csect .text[PR]
28886 .largetoctest:
28887 addis 9,LC..1@u(2)
28888 ld 3,LC..1@l(9)
28889 EOF
28890 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28891 gcc_cv_ld_large_toc=yes
28892 fi
28893 rm -f conftest conftest.o conftest.s
28894 fi
28895
28896 fi
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28898 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28899 if test x"$gcc_cv_ld_large_toc" = xyes; then
28900
28901 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28902
28903 fi
28904 ;;
28905 esac
28906
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28908 $as_echo_n "checking linker --build-id support... " >&6; }
28909 if test "${gcc_cv_ld_buildid+set}" = set; then :
28910 $as_echo_n "(cached) " >&6
28911 else
28912 gcc_cv_ld_buildid=no
28913 if test $in_tree_ld = yes ; then
28914 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28915 "$gcc_cv_gld_minor_version" -ge 18 -o \
28916 "$gcc_cv_gld_major_version" -gt 2 \
28917 && test $in_tree_ld_is_elf = yes; then
28918 gcc_cv_ld_buildid=yes
28919 fi
28920 elif test x$gcc_cv_ld != x; then
28921 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28922 gcc_cv_ld_buildid=yes
28923 fi
28924 fi
28925 fi
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28927 $as_echo "$gcc_cv_ld_buildid" >&6; }
28928 if test x"$gcc_cv_ld_buildid" = xyes; then
28929
28930 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28931
28932 fi
28933
28934 # Check whether --enable-linker-build-id was given.
28935 if test "${enable_linker_build_id+set}" = set; then :
28936 enableval=$enable_linker_build_id;
28937 else
28938 enable_linker_build_id=no
28939 fi
28940
28941
28942 if test x"$enable_linker_build_id" = xyes; then
28943 if test x"$gcc_cv_ld_buildid" = xyes; then
28944
28945 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28946
28947 else
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28949 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28950 fi
28951 fi
28952
28953 # In binutils 2.21, GNU ld gained support for new emulations fully
28954 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28956 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28957 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28958 $as_echo_n "(cached) " >&6
28959 else
28960 gcc_cv_ld_sol2_emulation=no
28961 if test $in_tree_ld = yes ; then
28962 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28963 "$gcc_cv_gld_minor_version" -ge 21 -o \
28964 "$gcc_cv_gld_major_version" -gt 2 \
28965 && test $in_tree_ld_is_elf = yes; then
28966 gcc_cv_ld_sol2_emulation=yes
28967 fi
28968 elif test x$gcc_cv_ld != x; then
28969 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28970 grep _sol2 > /dev/null; then
28971 gcc_cv_ld_sol2_emulation=yes
28972 fi
28973 fi
28974 fi
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28976 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28977 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28978
28979 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28980
28981 fi
28982
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28984 $as_echo_n "checking linker --sysroot support... " >&6; }
28985 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28986 $as_echo_n "(cached) " >&6
28987 else
28988 gcc_cv_ld_sysroot=no
28989 if test $in_tree_ld = yes ; then
28990 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
28991 gcc_cv_ld_sysroot=yes
28992 fi
28993 elif test x$gcc_cv_ld != x; then
28994 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28995 gcc_cv_ld_sysroot=yes
28996 fi
28997 fi
28998 fi
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29000 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29001 if test x"$gcc_cv_ld_sysroot" = xyes; then
29002
29003 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29004
29005 fi
29006
29007 case $target in
29008 *-*-solaris2*)
29009 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29011 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29012 if test "${gcc_cv_solaris_crts+set}" = set; then :
29013 $as_echo_n "(cached) " >&6
29014 else
29015 gcc_cv_solaris_crts=no
29016 if test x$host != x$target; then
29017 if test "x$with_sysroot" = xyes; then
29018 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29019 else
29020 target_sysroot="${with_sysroot}"
29021 fi
29022 fi
29023 target_libdir="$target_sysroot/usr/lib"
29024 # At the time they were added, gcrt1.o became a symlink for backwards
29025 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29026 case $target in
29027 i?86-*-solaris2* | x86_64-*-solaris2*)
29028 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29029 ;;
29030 sparc*-*-solaris2*)
29031 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29032 ;;
29033 esac
29034 fi
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29036 $as_echo "$gcc_cv_solaris_crts" >&6; }
29037 ;;
29038 esac
29039 if test x$gcc_cv_solaris_crts = xyes; then
29040
29041 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29042
29043 fi
29044
29045 # Check whether --enable-libssp was given.
29046 if test "${enable_libssp+set}" = set; then :
29047 enableval=$enable_libssp; case "${enableval}" in
29048 yes|no)
29049 ;;
29050 *)
29051 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29052 ;;
29053 esac
29054 fi
29055
29056
29057 # Test for stack protector support in target C library.
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29059 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29060 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29061 $as_echo_n "(cached) " >&6
29062 else
29063 gcc_cv_libc_provides_ssp=no
29064 if test "x$enable_libssp" = "xno"; then
29065 gcc_cv_libc_provides_ssp=yes
29066 elif test "x$enable_libssp" = "xyes"; then
29067 gcc_cv_libc_provides_ssp=no
29068 else
29069 case "$target" in
29070 *-*-musl*)
29071 # All versions of musl provide stack protector
29072 gcc_cv_libc_provides_ssp=yes;;
29073 *-*-linux* | *-*-kfreebsd*-gnu)
29074 # glibc 2.4 and later provides __stack_chk_fail and
29075 # either __stack_chk_guard, or TLS access to stack guard canary.
29076
29077 if test $glibc_version_major -gt 2 \
29078 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29079 gcc_cv_libc_provides_ssp=yes
29080 else
29081
29082 if test -f $target_header_dir/features.h \
29083 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29084 $target_header_dir/features.h > /dev/null; then
29085 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29086 $target_header_dir/features.h > /dev/null && \
29087 test -f $target_header_dir/bits/uClibc_config.h && \
29088 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29089 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29090 gcc_cv_libc_provides_ssp=yes
29091 fi
29092 # all versions of Bionic support stack protector
29093 elif test -f $target_header_dir/sys/cdefs.h \
29094 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29095 $target_header_dir/sys/cdefs.h > /dev/null; then
29096 gcc_cv_libc_provides_ssp=yes
29097 fi
29098 fi
29099 ;;
29100 *-*-gnu*)
29101 # Avoid complicated tests (see
29102 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29103 # simply assert that glibc does provide this, which is true for all
29104 # realistically usable GNU/Hurd configurations.
29105 # All supported versions of musl provide it as well
29106 gcc_cv_libc_provides_ssp=yes;;
29107 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29108 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29109 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29110 gcc_cv_libc_provides_ssp=yes
29111 else
29112 echo "no __stack_chk_fail on this target"
29113 fi
29114
29115 ;;
29116 *) gcc_cv_libc_provides_ssp=no ;;
29117 esac
29118 fi
29119 fi
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29121 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29122
29123 if test x$gcc_cv_libc_provides_ssp = xyes; then
29124
29125 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29126
29127 fi
29128
29129 # Check whether --enable-default-ssp was given.
29130 # Check whether --enable-default-ssp was given.
29131 if test "${enable_default_ssp+set}" = set; then :
29132 enableval=$enable_default_ssp;
29133 if test x$gcc_cv_libc_provides_ssp = xyes; then
29134 case "$target" in
29135 ia64*-*-*) enable_default_ssp=no ;;
29136 *) enable_default_ssp=$enableval ;;
29137 esac
29138 else
29139 enable_default_ssp=no
29140 fi
29141 else
29142 enable_default_ssp=no
29143 fi
29144
29145 if test x$enable_default_ssp = xyes ; then
29146
29147 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29148
29149 fi
29150
29151
29152 # Test for <sys/sdt.h> on the target.
29153
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29155 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29156 have_sys_sdt_h=no
29157 if test -f $target_header_dir/sys/sdt.h; then
29158 have_sys_sdt_h=yes
29159
29160 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29161
29162 fi
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29164 $as_echo "$have_sys_sdt_h" >&6; }
29165
29166 # Check if TFmode long double should be used by default or not.
29167 # Some glibc targets used DFmode long double, but with glibc 2.4
29168 # and later they can use TFmode.
29169 case "$target" in
29170 powerpc*-*-linux* | \
29171 sparc*-*-linux* | \
29172 s390*-*-linux* | \
29173 alpha*-*-linux*)
29174
29175 # Check whether --with-long-double-128 was given.
29176 if test "${with_long_double_128+set}" = set; then :
29177 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29178 else
29179
29180 if test $glibc_version_major -gt 2 \
29181 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29182 gcc_cv_target_ldbl128=yes
29183 else
29184
29185 gcc_cv_target_ldbl128=no
29186 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29187 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29188 && gcc_cv_target_ldbl128=yes
29189
29190 fi
29191 fi
29192
29193 ;;
29194 esac
29195 if test x$gcc_cv_target_ldbl128 = xyes; then
29196
29197 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29198
29199 fi
29200
29201 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29202 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29203 gcc_cv_libc_provides_hwcap_in_tcb=no
29204 case "$target" in
29205 powerpc*-*-linux*)
29206
29207 if test $glibc_version_major -gt 2 \
29208 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29209 gcc_cv_libc_provides_hwcap_in_tcb=yes
29210 fi
29211 ;;
29212 esac
29213 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29214
29215 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29216
29217 fi
29218
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29220 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29221 gcc_cv_target_dl_iterate_phdr=unknown
29222 case "$target" in
29223 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29224 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29225 # libdl there, both complicating its use and breaking compatibility
29226 # between Solaris 10 updates.
29227 *-*-solaris2.1[1-9]*)
29228 # <link.h> needs both a dl_iterate_phdr declaration and support for
29229 # compilation with largefile support.
29230 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29231 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29232 gcc_cv_target_dl_iterate_phdr=yes
29233 else
29234 gcc_cv_target_dl_iterate_phdr=no
29235 fi
29236 ;;
29237 *-*-dragonfly* | *-*-freebsd*)
29238 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29239 gcc_cv_target_dl_iterate_phdr=yes
29240 else
29241 gcc_cv_target_dl_iterate_phdr=no
29242 fi
29243 ;;
29244 *-linux-musl*)
29245 gcc_cv_target_dl_iterate_phdr=yes
29246 ;;
29247 esac
29248
29249 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29250
29251 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29252
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29255 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29256
29257 # We no longer support different GC mechanisms. Emit an error if
29258 # the user configures with --with-gc.
29259
29260 # Check whether --with-gc was given.
29261 if test "${with_gc+set}" = set; then :
29262 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29263 fi
29264
29265
29266 # Libraries to use on the host. This will normally be set by the top
29267 # level Makefile. Here we simply capture the value for our Makefile.
29268 if test -z "${HOST_LIBS+set}"; then
29269 HOST_LIBS=
29270 fi
29271
29272
29273 # Use the system's zlib library.
29274
29275 # Use the system's zlib library.
29276 zlibdir="-L\$(top_builddir)/../zlib"
29277 zlibinc="-I\$(top_srcdir)/../zlib"
29278
29279 # Check whether --with-system-zlib was given.
29280 if test "${with_system_zlib+set}" = set; then :
29281 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29282 zlibdir=
29283 zlibinc=
29284 fi
29285
29286 fi
29287
29288
29289
29290
29291
29292
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29294 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29295 # Check whether --enable-maintainer-mode was given.
29296 if test "${enable_maintainer_mode+set}" = set; then :
29297 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29298 else
29299 maintainer_mode=no
29300 fi
29301
29302
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29304 $as_echo "$maintainer_mode" >&6; }
29305
29306 if test "$maintainer_mode" = "yes"; then
29307 MAINT=''
29308 else
29309 MAINT='#'
29310 fi
29311
29312
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29314 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29315 # Check whether --enable-link-mutex was given.
29316 if test "${enable_link_mutex+set}" = set; then :
29317 enableval=$enable_link_mutex; do_link_mutex=$enableval
29318 else
29319 do_link_mutex=no
29320 fi
29321
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29323 $as_echo "$do_link_mutex" >&6; }
29324
29325 if test "$do_link_mutex" = "yes"; then
29326 DO_LINK_MUTEX=true
29327 else
29328 DO_LINK_MUTEX=false
29329 fi
29330
29331
29332 # --------------
29333 # Language hooks
29334 # --------------
29335
29336 # Make empty files to contain the specs and options for each language.
29337 # Then add #include lines to for a compiler that has specs and/or options.
29338
29339 subdirs=
29340 lang_opt_files=
29341 lang_specs_files=
29342 lang_tree_files=
29343 # These (without "all_") are set in each config-lang.in.
29344 # `language' must be a single word so is spelled singularly.
29345 all_languages=
29346 all_compilers=
29347 all_outputs='Makefile'
29348 # List of language makefile fragments.
29349 all_lang_makefrags=
29350 # Additional files for gengtype
29351 all_gtfiles="$target_gtfiles"
29352
29353 # These are the languages that are set in --enable-languages,
29354 # and are available in the GCC tree.
29355 all_selected_languages=
29356
29357 # Add the language fragments.
29358 # Languages are added via two mechanisms. Some information must be
29359 # recorded in makefile variables, these are defined in config-lang.in.
29360 # We accumulate them and plug them into the main Makefile.
29361 # The other mechanism is a set of hooks for each of the main targets
29362 # like `clean', `install', etc.
29363
29364 language_hooks="Make-hooks"
29365
29366 for lang in ${srcdir}/*/config-lang.in
29367 do
29368 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29369
29370 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29371 if test "x$lang_alias" = x
29372 then
29373 echo "$lang doesn't set \$language." 1>&2
29374 exit 1
29375 fi
29376 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29377 subdirs="$subdirs $subdir"
29378
29379 # $gcc_subdir is where the gcc integration files are to be found
29380 # for a language, both for internal compiler purposes (compiler
29381 # sources implementing front-end to GCC tree converters), and for
29382 # build infrastructure purposes (Make-lang.in, etc.)
29383 #
29384 # This will be <subdir> (relative to $srcdir) if a line like
29385 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29386 # is found in <langdir>/config-lang.in, and will remain <langdir>
29387 # otherwise.
29388 #
29389 # Except for the language alias (fetched above), the regular
29390 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29391 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29392 # only this and the language alias.
29393
29394 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29395 if [ "$gcc_subdir" = "" ]; then
29396 gcc_subdir="$subdir"
29397 fi
29398
29399 case ",$enable_languages," in
29400 *,$lang_alias,*)
29401 all_selected_languages="$all_selected_languages $lang_alias"
29402 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29403 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29404 fi
29405 ;;
29406 esac
29407
29408 language=
29409 boot_language=
29410 compilers=
29411 outputs=
29412 gtfiles=
29413 subdir_requires=
29414 . ${srcdir}/$gcc_subdir/config-lang.in
29415 if test "x$language" = x
29416 then
29417 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29418 exit 1
29419 fi
29420
29421 ok=:
29422 case ",$enable_languages," in
29423 *,$lang_alias,*) ;;
29424 *)
29425 for i in $subdir_requires; do
29426 test -f "${srcdir}/$i/config-lang.in" && continue
29427 ok=false
29428 break
29429 done
29430 ;;
29431 esac
29432 $ok || continue
29433
29434 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29435 if test -f $srcdir/$gcc_subdir/lang.opt; then
29436 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29437 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29438 fi
29439 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29440 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29441 fi
29442 all_languages="$all_languages $language"
29443 all_compilers="$all_compilers $compilers"
29444 all_outputs="$all_outputs $outputs"
29445 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29446 case ",$enable_languages," in
29447 *,lto,*)
29448
29449 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29450
29451 enable_lto=yes
29452
29453 ;;
29454 *) ;;
29455 esac
29456 done
29457
29458 check_languages=
29459 for language in $all_selected_languages
29460 do
29461 check_languages="$check_languages check-$language"
29462 done
29463
29464 # We link each language in with a set of hooks, reached indirectly via
29465 # lang.${target}. Only do so for selected languages.
29466
29467 rm -f Make-hooks
29468 touch Make-hooks
29469 target_list="all.cross start.encap rest.encap tags \
29470 install-common install-man install-info install-pdf install-html dvi \
29471 pdf html uninstall info man srcextra srcman srcinfo \
29472 mostlyclean clean distclean maintainer-clean install-plugin"
29473
29474 for t in $target_list
29475 do
29476 x=
29477 for lang in $all_selected_languages
29478 do
29479 x="$x $lang.$t"
29480 done
29481 echo "lang.$t: $x" >> Make-hooks
29482 done
29483
29484 # --------
29485 # Option include files
29486 # --------
29487
29488 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29489 option_includes="option-includes.mk"
29490
29491
29492 # --------
29493 # UNSORTED
29494 # --------
29495
29496 # Create .gdbinit.
29497
29498 echo "dir ." > .gdbinit
29499 echo "dir ${srcdir}" >> .gdbinit
29500 if test x$gdb_needs_out_file_path = xyes
29501 then
29502 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29503 fi
29504 if test "x$subdirs" != x; then
29505 for s in $subdirs
29506 do
29507 echo "dir ${srcdir}/$s" >> .gdbinit
29508 done
29509 fi
29510 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29511 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29512
29513 # Put a breakpoint on __asan_report_error to help with debugging buffer
29514 # overflow.
29515 case "$CFLAGS" in
29516 *-fsanitize=address*)
29517 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29518 ;;
29519 esac
29520
29521 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29522
29523
29524
29525 # Find a directory in which to install a shared libgcc.
29526
29527 # Check whether --enable-version-specific-runtime-libs was given.
29528 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29529 enableval=$enable_version_specific_runtime_libs;
29530 fi
29531
29532
29533 # Substitute configuration variables
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596 # Echo link setup.
29597 if test x${build} = x${host} ; then
29598 if test x${host} = x${target} ; then
29599 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29600 else
29601 echo "Links are now set up to build a cross-compiler" 1>&2
29602 echo " from ${host} to ${target}." 1>&2
29603 fi
29604 else
29605 if test x${host} = x${target} ; then
29606 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29607 echo " for ${target}." 1>&2
29608 else
29609 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29610 echo " from ${host} to ${target}." 1>&2
29611 fi
29612 fi
29613
29614
29615
29616
29617
29618
29619 if test "x${ISLLIBS}" != "x" ; then
29620
29621 $as_echo "#define HAVE_isl 1" >>confdefs.h
29622
29623 fi
29624
29625 # Check for plugin support
29626 # Check whether --enable-plugin was given.
29627 if test "${enable_plugin+set}" = set; then :
29628 enableval=$enable_plugin; enable_plugin=$enableval
29629 else
29630 enable_plugin=yes; default_plugin=yes
29631 fi
29632
29633
29634 pluginlibs=
29635
29636 case "${host}" in
29637 *-*-darwin*)
29638 if test x$build = x$host; then
29639 export_sym_check="nm${exeext} -g"
29640 elif test x$host = x$target; then
29641 export_sym_check="$gcc_cv_nm -g"
29642 else
29643 export_sym_check=
29644 fi
29645 ;;
29646 *)
29647 if test x$build = x$host; then
29648 export_sym_check="objdump${exeext} -T"
29649 elif test x$host = x$target; then
29650 export_sym_check="$gcc_cv_objdump -T"
29651 else
29652 export_sym_check=
29653 fi
29654 ;;
29655 esac
29656
29657 if test x"$enable_plugin" = x"yes"; then
29658
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29660 $as_echo_n "checking for exported symbols... " >&6; }
29661 if test "x$export_sym_check" != x; then
29662 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29663 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29664 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29665 : # No need to use a flag
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29667 $as_echo "yes" >&6; }
29668 else
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29672 $as_echo_n "checking for -rdynamic... " >&6; }
29673 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29674 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29675 plugin_rdynamic=yes
29676 pluginlibs="-rdynamic"
29677 else
29678 plugin_rdynamic=no
29679 enable_plugin=no
29680 fi
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29682 $as_echo "$plugin_rdynamic" >&6; }
29683 fi
29684 else
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29686 $as_echo "unable to check" >&6; }
29687 fi
29688
29689 # Check -ldl
29690 saved_LIBS="$LIBS"
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29692 $as_echo_n "checking for library containing dlopen... " >&6; }
29693 if test "${ac_cv_search_dlopen+set}" = set; then :
29694 $as_echo_n "(cached) " >&6
29695 else
29696 ac_func_search_save_LIBS=$LIBS
29697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698 /* end confdefs.h. */
29699
29700 /* Override any GCC internal prototype to avoid an error.
29701 Use char because int might match the return type of a GCC
29702 builtin and then its argument prototype would still apply. */
29703 #ifdef __cplusplus
29704 extern "C"
29705 #endif
29706 char dlopen ();
29707 int
29708 main ()
29709 {
29710 return dlopen ();
29711 ;
29712 return 0;
29713 }
29714 _ACEOF
29715 for ac_lib in '' dl; do
29716 if test -z "$ac_lib"; then
29717 ac_res="none required"
29718 else
29719 ac_res=-l$ac_lib
29720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29721 fi
29722 if ac_fn_cxx_try_link "$LINENO"; then :
29723 ac_cv_search_dlopen=$ac_res
29724 fi
29725 rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext
29727 if test "${ac_cv_search_dlopen+set}" = set; then :
29728 break
29729 fi
29730 done
29731 if test "${ac_cv_search_dlopen+set}" = set; then :
29732
29733 else
29734 ac_cv_search_dlopen=no
29735 fi
29736 rm conftest.$ac_ext
29737 LIBS=$ac_func_search_save_LIBS
29738 fi
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29740 $as_echo "$ac_cv_search_dlopen" >&6; }
29741 ac_res=$ac_cv_search_dlopen
29742 if test "$ac_res" != no; then :
29743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29744
29745 fi
29746
29747 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29748 pluginlibs="$pluginlibs -ldl"
29749 fi
29750 LIBS="$saved_LIBS"
29751
29752 # Check that we can build shared objects with -fPIC -shared
29753 saved_LDFLAGS="$LDFLAGS"
29754 saved_CFLAGS="$CFLAGS"
29755 case "${host}" in
29756 *-*-darwin*)
29757 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29758 CFLAGS="$CFLAGS -fPIC"
29759 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29760 ;;
29761 *)
29762 CFLAGS="$CFLAGS -fPIC"
29763 LDFLAGS="$LDFLAGS -fPIC -shared"
29764 ;;
29765 esac
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29767 $as_echo_n "checking for -fPIC -shared... " >&6; }
29768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769 /* end confdefs.h. */
29770 extern int X;
29771 int
29772 main ()
29773 {
29774 return X == 0;
29775 ;
29776 return 0;
29777 }
29778 _ACEOF
29779 if ac_fn_cxx_try_link "$LINENO"; then :
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29781 $as_echo "yes" >&6; }; have_pic_shared=yes
29782 else
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784 $as_echo "no" >&6; }; have_pic_shared=no
29785 fi
29786 rm -f core conftest.err conftest.$ac_objext \
29787 conftest$ac_exeext conftest.$ac_ext
29788 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29789 pluginlibs=
29790 enable_plugin=no
29791 fi
29792 LDFLAGS="$saved_LDFLAGS"
29793 CFLAGS="$saved_CFLAGS"
29794
29795 # If plugin support had been requested but not available, fail.
29796 if test x"$enable_plugin" = x"no" ; then
29797 if test x"$default_plugin" != x"yes"; then
29798 as_fn_error "
29799 Building GCC with plugin support requires a host that supports
29800 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29801 fi
29802 fi
29803 fi
29804
29805
29806
29807 if test x"$enable_plugin" = x"yes"; then
29808
29809 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29810
29811 fi
29812
29813
29814 # Enable --enable-host-shared
29815 # Check whether --enable-host-shared was given.
29816 if test "${enable_host_shared+set}" = set; then :
29817 enableval=$enable_host_shared; PICFLAG=-fPIC
29818 else
29819 PICFLAG=
29820 fi
29821
29822
29823
29824
29825
29826 # Check whether --enable-libquadmath-support was given.
29827 if test "${enable_libquadmath_support+set}" = set; then :
29828 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29829 else
29830 ENABLE_LIBQUADMATH_SUPPORT=yes
29831 fi
29832
29833 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29834
29835 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29836
29837 fi
29838
29839
29840 # Specify what hash style to use by default.
29841
29842 # Check whether --with-linker-hash-style was given.
29843 if test "${with_linker_hash_style+set}" = set; then :
29844 withval=$with_linker_hash_style; case x"$withval" in
29845 xsysv)
29846 LINKER_HASH_STYLE=sysv
29847 ;;
29848 xgnu)
29849 LINKER_HASH_STYLE=gnu
29850 ;;
29851 xboth)
29852 LINKER_HASH_STYLE=both
29853 ;;
29854 *)
29855 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29856 ;;
29857 esac
29858 else
29859 LINKER_HASH_STYLE=''
29860 fi
29861
29862 if test x"${LINKER_HASH_STYLE}" != x; then
29863
29864 cat >>confdefs.h <<_ACEOF
29865 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29866 _ACEOF
29867
29868 fi
29869
29870 # Specify what should be the default of -fdiagnostics-color option.
29871
29872 # Check whether --with-diagnostics-color was given.
29873 if test "${with_diagnostics_color+set}" = set; then :
29874 withval=$with_diagnostics_color; case x"$withval" in
29875 xnever)
29876 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29877 ;;
29878 xauto)
29879 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29880 ;;
29881 xauto-if-env)
29882 DIAGNOSTICS_COLOR_DEFAULT=-1
29883 ;;
29884 xalways)
29885 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29886 ;;
29887 *)
29888 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29889 ;;
29890 esac
29891 else
29892 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29893 fi
29894
29895
29896 cat >>confdefs.h <<_ACEOF
29897 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29898 _ACEOF
29899
29900
29901 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29902 # of jit/jit-playback.c.
29903 cat > gcc-driver-name.h <<EOF
29904 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29905 EOF
29906
29907 # Check whether --enable-default-pie was given.
29908 # Check whether --enable-default-pie was given.
29909 if test "${enable_default_pie+set}" = set; then :
29910 enableval=$enable_default_pie; enable_default_pie=$enableval
29911 else
29912 enable_default_pie=no
29913 fi
29914
29915 if test x$enable_default_pie = xyes ; then
29916
29917 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29918
29919 fi
29920
29921
29922 # Check if -fno-PIE works.
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29924 $as_echo_n "checking for -fno-PIE option... " >&6; }
29925 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29926 $as_echo_n "(cached) " >&6
29927 else
29928 saved_CXXFLAGS="$CXXFLAGS"
29929 CXXFLAGS="$CXXFLAGS -fno-PIE"
29930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29931 /* end confdefs.h. */
29932 int main(void) {return 0;}
29933 _ACEOF
29934 if ac_fn_cxx_try_compile "$LINENO"; then :
29935 gcc_cv_c_no_fpie=yes
29936 else
29937 gcc_cv_c_no_fpie=no
29938 fi
29939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29940 CXXFLAGS="$saved_CXXFLAGS"
29941 fi
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29943 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29944 if test "$gcc_cv_c_no_fpie" = "yes"; then
29945 NO_PIE_CFLAGS="-fno-PIE"
29946 fi
29947
29948
29949 # Check if -no-pie works.
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29951 $as_echo_n "checking for -no-pie option... " >&6; }
29952 if test "${gcc_cv_no_pie+set}" = set; then :
29953 $as_echo_n "(cached) " >&6
29954 else
29955 saved_LDFLAGS="$LDFLAGS"
29956 LDFLAGS="$LDFLAGS -no-pie"
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29959 int main(void) {return 0;}
29960 _ACEOF
29961 if ac_fn_cxx_try_link "$LINENO"; then :
29962 gcc_cv_no_pie=yes
29963 else
29964 gcc_cv_no_pie=no
29965 fi
29966 rm -f core conftest.err conftest.$ac_objext \
29967 conftest$ac_exeext conftest.$ac_ext
29968 LDFLAGS="$saved_LDFLAGS"
29969 fi
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29971 $as_echo "$gcc_cv_no_pie" >&6; }
29972 if test "$gcc_cv_no_pie" = "yes"; then
29973 NO_PIE_FLAG="-no-pie"
29974 fi
29975
29976
29977 # Check linker supports '-z bndplt'
29978 ld_bndplt_support=no
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29980 $as_echo_n "checking linker -z bndplt option... " >&6; }
29981 if test x"$ld_is_gold" = xno; then
29982 if test $in_tree_ld = yes ; then
29983 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
29984 ld_bndplt_support=yes
29985 fi
29986 elif test x$gcc_cv_ld != x; then
29987 # Check if linker supports -a bndplt option
29988 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29989 ld_bndplt_support=yes
29990 fi
29991 fi
29992 fi
29993 if test x"$ld_bndplt_support" = xyes; then
29994
29995 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29996
29997 fi
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29999 $as_echo "$ld_bndplt_support" >&6; }
30000
30001 # Check linker supports '--push-state'/'--pop-state'
30002 ld_pushpopstate_support=no
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30004 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30005 if test x"$ld_is_gold" = xno; then
30006 if test $in_tree_ld = yes ; then
30007 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
30008 ld_pushpopstate_support=yes
30009 fi
30010 elif test x$gcc_cv_ld != x; then
30011 # Check if linker supports --push-state/--pop-state options
30012 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30013 ld_pushpopstate_support=yes
30014 fi
30015 fi
30016 fi
30017 if test x"$ld_pushpopstate_support" = xyes; then
30018
30019 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30020
30021 fi
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30023 $as_echo "$ld_pushpopstate_support" >&6; }
30024
30025 # Configure the subdirectories
30026 # AC_CONFIG_SUBDIRS($subdirs)
30027
30028 # Create the Makefile
30029 # and configure language subdirectories
30030 ac_config_files="$ac_config_files $all_outputs"
30031
30032
30033 ac_config_commands="$ac_config_commands default"
30034
30035 cat >confcache <<\_ACEOF
30036 # This file is a shell script that caches the results of configure
30037 # tests run on this system so they can be shared between configure
30038 # scripts and configure runs, see configure's option --config-cache.
30039 # It is not useful on other systems. If it contains results you don't
30040 # want to keep, you may remove or edit it.
30041 #
30042 # config.status only pays attention to the cache file if you give it
30043 # the --recheck option to rerun configure.
30044 #
30045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30047 # following values.
30048
30049 _ACEOF
30050
30051 # The following way of writing the cache mishandles newlines in values,
30052 # but we know of no workaround that is simple, portable, and efficient.
30053 # So, we kill variables containing newlines.
30054 # Ultrix sh set writes to stderr and can't be redirected directly,
30055 # and sets the high bit in the cache file unless we assign to the vars.
30056 (
30057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30058 eval ac_val=\$$ac_var
30059 case $ac_val in #(
30060 *${as_nl}*)
30061 case $ac_var in #(
30062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30064 esac
30065 case $ac_var in #(
30066 _ | IFS | as_nl) ;; #(
30067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30068 *) { eval $ac_var=; unset $ac_var;} ;;
30069 esac ;;
30070 esac
30071 done
30072
30073 (set) 2>&1 |
30074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30075 *${as_nl}ac_space=\ *)
30076 # `set' does not quote correctly, so add quotes: double-quote
30077 # substitution turns \\\\ into \\, and sed turns \\ into \.
30078 sed -n \
30079 "s/'/'\\\\''/g;
30080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30081 ;; #(
30082 *)
30083 # `set' quotes correctly as required by POSIX, so do not add quotes.
30084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30085 ;;
30086 esac |
30087 sort
30088 ) |
30089 sed '
30090 /^ac_cv_env_/b end
30091 t clear
30092 :clear
30093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30094 t end
30095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30096 :end' >>confcache
30097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30098 if test -w "$cache_file"; then
30099 test "x$cache_file" != "x/dev/null" &&
30100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30101 $as_echo "$as_me: updating cache $cache_file" >&6;}
30102 cat confcache >$cache_file
30103 else
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30105 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30106 fi
30107 fi
30108 rm -f confcache
30109
30110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30111 # Let make expand exec_prefix.
30112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30113
30114 DEFS=-DHAVE_CONFIG_H
30115
30116 ac_libobjs=
30117 ac_ltlibobjs=
30118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30119 # 1. Remove the extension, and $U if already installed.
30120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30123 # will be set to the directory where LIBOBJS objects are built.
30124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30126 done
30127 LIBOBJS=$ac_libobjs
30128
30129 LTLIBOBJS=$ac_ltlibobjs
30130
30131
30132
30133
30134 : ${CONFIG_STATUS=./config.status}
30135 ac_write_fail=0
30136 ac_clean_files_save=$ac_clean_files
30137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30139 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30140 as_write_fail=0
30141 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30142 #! $SHELL
30143 # Generated by $as_me.
30144 # Run this file to recreate the current configuration.
30145 # Compiler output produced by configure, useful for debugging
30146 # configure, is in config.log if it exists.
30147
30148 debug=false
30149 ac_cs_recheck=false
30150 ac_cs_silent=false
30151
30152 SHELL=\${CONFIG_SHELL-$SHELL}
30153 export SHELL
30154 _ASEOF
30155 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30156 ## -------------------- ##
30157 ## M4sh Initialization. ##
30158 ## -------------------- ##
30159
30160 # Be more Bourne compatible
30161 DUALCASE=1; export DUALCASE # for MKS sh
30162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30163 emulate sh
30164 NULLCMD=:
30165 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30166 # is contrary to our usage. Disable this feature.
30167 alias -g '${1+"$@"}'='"$@"'
30168 setopt NO_GLOB_SUBST
30169 else
30170 case `(set -o) 2>/dev/null` in #(
30171 *posix*) :
30172 set -o posix ;; #(
30173 *) :
30174 ;;
30175 esac
30176 fi
30177
30178
30179 as_nl='
30180 '
30181 export as_nl
30182 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30183 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30186 # Prefer a ksh shell builtin over an external printf program on Solaris,
30187 # but without wasting forks for bash or zsh.
30188 if test -z "$BASH_VERSION$ZSH_VERSION" \
30189 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30190 as_echo='print -r --'
30191 as_echo_n='print -rn --'
30192 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30193 as_echo='printf %s\n'
30194 as_echo_n='printf %s'
30195 else
30196 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30197 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30198 as_echo_n='/usr/ucb/echo -n'
30199 else
30200 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30201 as_echo_n_body='eval
30202 arg=$1;
30203 case $arg in #(
30204 *"$as_nl"*)
30205 expr "X$arg" : "X\\(.*\\)$as_nl";
30206 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30207 esac;
30208 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30209 '
30210 export as_echo_n_body
30211 as_echo_n='sh -c $as_echo_n_body as_echo'
30212 fi
30213 export as_echo_body
30214 as_echo='sh -c $as_echo_body as_echo'
30215 fi
30216
30217 # The user is always right.
30218 if test "${PATH_SEPARATOR+set}" != set; then
30219 PATH_SEPARATOR=:
30220 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30221 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30222 PATH_SEPARATOR=';'
30223 }
30224 fi
30225
30226
30227 # IFS
30228 # We need space, tab and new line, in precisely that order. Quoting is
30229 # there to prevent editors from complaining about space-tab.
30230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30231 # splitting by setting IFS to empty value.)
30232 IFS=" "" $as_nl"
30233
30234 # Find who we are. Look in the path if we contain no directory separator.
30235 case $0 in #((
30236 *[\\/]* ) as_myself=$0 ;;
30237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238 for as_dir in $PATH
30239 do
30240 IFS=$as_save_IFS
30241 test -z "$as_dir" && as_dir=.
30242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30243 done
30244 IFS=$as_save_IFS
30245
30246 ;;
30247 esac
30248 # We did not find ourselves, most probably we were run as `sh COMMAND'
30249 # in which case we are not to be found in the path.
30250 if test "x$as_myself" = x; then
30251 as_myself=$0
30252 fi
30253 if test ! -f "$as_myself"; then
30254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30255 exit 1
30256 fi
30257
30258 # Unset variables that we do not need and which cause bugs (e.g. in
30259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30260 # suppresses any "Segmentation fault" message there. '((' could
30261 # trigger a bug in pdksh 5.2.14.
30262 for as_var in BASH_ENV ENV MAIL MAILPATH
30263 do eval test x\${$as_var+set} = xset \
30264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30265 done
30266 PS1='$ '
30267 PS2='> '
30268 PS4='+ '
30269
30270 # NLS nuisances.
30271 LC_ALL=C
30272 export LC_ALL
30273 LANGUAGE=C
30274 export LANGUAGE
30275
30276 # CDPATH.
30277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30278
30279
30280 # as_fn_error ERROR [LINENO LOG_FD]
30281 # ---------------------------------
30282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30284 # script with status $?, using 1 if that was 0.
30285 as_fn_error ()
30286 {
30287 as_status=$?; test $as_status -eq 0 && as_status=1
30288 if test "$3"; then
30289 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30291 fi
30292 $as_echo "$as_me: error: $1" >&2
30293 as_fn_exit $as_status
30294 } # as_fn_error
30295
30296
30297 # as_fn_set_status STATUS
30298 # -----------------------
30299 # Set $? to STATUS, without forking.
30300 as_fn_set_status ()
30301 {
30302 return $1
30303 } # as_fn_set_status
30304
30305 # as_fn_exit STATUS
30306 # -----------------
30307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30308 as_fn_exit ()
30309 {
30310 set +e
30311 as_fn_set_status $1
30312 exit $1
30313 } # as_fn_exit
30314
30315 # as_fn_unset VAR
30316 # ---------------
30317 # Portably unset VAR.
30318 as_fn_unset ()
30319 {
30320 { eval $1=; unset $1;}
30321 }
30322 as_unset=as_fn_unset
30323 # as_fn_append VAR VALUE
30324 # ----------------------
30325 # Append the text in VALUE to the end of the definition contained in VAR. Take
30326 # advantage of any shell optimizations that allow amortized linear growth over
30327 # repeated appends, instead of the typical quadratic growth present in naive
30328 # implementations.
30329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30330 eval 'as_fn_append ()
30331 {
30332 eval $1+=\$2
30333 }'
30334 else
30335 as_fn_append ()
30336 {
30337 eval $1=\$$1\$2
30338 }
30339 fi # as_fn_append
30340
30341 # as_fn_arith ARG...
30342 # ------------------
30343 # Perform arithmetic evaluation on the ARGs, and store the result in the
30344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30345 # must be portable across $(()) and expr.
30346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30347 eval 'as_fn_arith ()
30348 {
30349 as_val=$(( $* ))
30350 }'
30351 else
30352 as_fn_arith ()
30353 {
30354 as_val=`expr "$@" || test $? -eq 1`
30355 }
30356 fi # as_fn_arith
30357
30358
30359 if expr a : '\(a\)' >/dev/null 2>&1 &&
30360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30361 as_expr=expr
30362 else
30363 as_expr=false
30364 fi
30365
30366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30367 as_basename=basename
30368 else
30369 as_basename=false
30370 fi
30371
30372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30373 as_dirname=dirname
30374 else
30375 as_dirname=false
30376 fi
30377
30378 as_me=`$as_basename -- "$0" ||
30379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30380 X"$0" : 'X\(//\)$' \| \
30381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30382 $as_echo X/"$0" |
30383 sed '/^.*\/\([^/][^/]*\)\/*$/{
30384 s//\1/
30385 q
30386 }
30387 /^X\/\(\/\/\)$/{
30388 s//\1/
30389 q
30390 }
30391 /^X\/\(\/\).*/{
30392 s//\1/
30393 q
30394 }
30395 s/.*/./; q'`
30396
30397 # Avoid depending upon Character Ranges.
30398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30401 as_cr_digits='0123456789'
30402 as_cr_alnum=$as_cr_Letters$as_cr_digits
30403
30404 ECHO_C= ECHO_N= ECHO_T=
30405 case `echo -n x` in #(((((
30406 -n*)
30407 case `echo 'xy\c'` in
30408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30409 xy) ECHO_C='\c';;
30410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30411 ECHO_T=' ';;
30412 esac;;
30413 *)
30414 ECHO_N='-n';;
30415 esac
30416
30417 rm -f conf$$ conf$$.exe conf$$.file
30418 if test -d conf$$.dir; then
30419 rm -f conf$$.dir/conf$$.file
30420 else
30421 rm -f conf$$.dir
30422 mkdir conf$$.dir 2>/dev/null
30423 fi
30424 if (echo >conf$$.file) 2>/dev/null; then
30425 if ln -s conf$$.file conf$$ 2>/dev/null; then
30426 as_ln_s='ln -s'
30427 # ... but there are two gotchas:
30428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30430 # In both cases, we have to default to `cp -p'.
30431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30432 as_ln_s='cp -p'
30433 elif ln conf$$.file conf$$ 2>/dev/null; then
30434 as_ln_s=ln
30435 else
30436 as_ln_s='cp -p'
30437 fi
30438 else
30439 as_ln_s='cp -p'
30440 fi
30441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30442 rmdir conf$$.dir 2>/dev/null
30443
30444
30445 # as_fn_mkdir_p
30446 # -------------
30447 # Create "$as_dir" as a directory, including parents if necessary.
30448 as_fn_mkdir_p ()
30449 {
30450
30451 case $as_dir in #(
30452 -*) as_dir=./$as_dir;;
30453 esac
30454 test -d "$as_dir" || eval $as_mkdir_p || {
30455 as_dirs=
30456 while :; do
30457 case $as_dir in #(
30458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30459 *) as_qdir=$as_dir;;
30460 esac
30461 as_dirs="'$as_qdir' $as_dirs"
30462 as_dir=`$as_dirname -- "$as_dir" ||
30463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30464 X"$as_dir" : 'X\(//\)[^/]' \| \
30465 X"$as_dir" : 'X\(//\)$' \| \
30466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30467 $as_echo X"$as_dir" |
30468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30469 s//\1/
30470 q
30471 }
30472 /^X\(\/\/\)[^/].*/{
30473 s//\1/
30474 q
30475 }
30476 /^X\(\/\/\)$/{
30477 s//\1/
30478 q
30479 }
30480 /^X\(\/\).*/{
30481 s//\1/
30482 q
30483 }
30484 s/.*/./; q'`
30485 test -d "$as_dir" && break
30486 done
30487 test -z "$as_dirs" || eval "mkdir $as_dirs"
30488 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30489
30490
30491 } # as_fn_mkdir_p
30492 if mkdir -p . 2>/dev/null; then
30493 as_mkdir_p='mkdir -p "$as_dir"'
30494 else
30495 test -d ./-p && rmdir ./-p
30496 as_mkdir_p=false
30497 fi
30498
30499 if test -x / >/dev/null 2>&1; then
30500 as_test_x='test -x'
30501 else
30502 if ls -dL / >/dev/null 2>&1; then
30503 as_ls_L_option=L
30504 else
30505 as_ls_L_option=
30506 fi
30507 as_test_x='
30508 eval sh -c '\''
30509 if test -d "$1"; then
30510 test -d "$1/.";
30511 else
30512 case $1 in #(
30513 -*)set "./$1";;
30514 esac;
30515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30516 ???[sx]*):;;*)false;;esac;fi
30517 '\'' sh
30518 '
30519 fi
30520 as_executable_p=$as_test_x
30521
30522 # Sed expression to map a string onto a valid CPP name.
30523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30524
30525 # Sed expression to map a string onto a valid variable name.
30526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30527
30528
30529 exec 6>&1
30530 ## ----------------------------------- ##
30531 ## Main body of $CONFIG_STATUS script. ##
30532 ## ----------------------------------- ##
30533 _ASEOF
30534 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30535
30536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30537 # Save the log message, to keep $0 and so on meaningful, and to
30538 # report actual input values of CONFIG_FILES etc. instead of their
30539 # values after options handling.
30540 ac_log="
30541 This file was extended by $as_me, which was
30542 generated by GNU Autoconf 2.64. Invocation command line was
30543
30544 CONFIG_FILES = $CONFIG_FILES
30545 CONFIG_HEADERS = $CONFIG_HEADERS
30546 CONFIG_LINKS = $CONFIG_LINKS
30547 CONFIG_COMMANDS = $CONFIG_COMMANDS
30548 $ $0 $@
30549
30550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30551 "
30552
30553 _ACEOF
30554
30555 case $ac_config_files in *"
30556 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30557 esac
30558
30559 case $ac_config_headers in *"
30560 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30561 esac
30562
30563
30564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30565 # Files that config.status was made for.
30566 config_files="$ac_config_files"
30567 config_headers="$ac_config_headers"
30568 config_links="$ac_config_links"
30569 config_commands="$ac_config_commands"
30570
30571 _ACEOF
30572
30573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30574 ac_cs_usage="\
30575 \`$as_me' instantiates files and other configuration actions
30576 from templates according to the current configuration. Unless the files
30577 and actions are specified as TAGs, all are instantiated by default.
30578
30579 Usage: $0 [OPTION]... [TAG]...
30580
30581 -h, --help print this help, then exit
30582 -V, --version print version number and configuration settings, then exit
30583 -q, --quiet, --silent
30584 do not print progress messages
30585 -d, --debug don't remove temporary files
30586 --recheck update $as_me by reconfiguring in the same conditions
30587 --file=FILE[:TEMPLATE]
30588 instantiate the configuration file FILE
30589 --header=FILE[:TEMPLATE]
30590 instantiate the configuration header FILE
30591
30592 Configuration files:
30593 $config_files
30594
30595 Configuration headers:
30596 $config_headers
30597
30598 Configuration links:
30599 $config_links
30600
30601 Configuration commands:
30602 $config_commands
30603
30604 Report bugs to the package provider."
30605
30606 _ACEOF
30607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30608 ac_cs_version="\\
30609 config.status
30610 configured by $0, generated by GNU Autoconf 2.64,
30611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30612
30613 Copyright (C) 2009 Free Software Foundation, Inc.
30614 This config.status script is free software; the Free Software Foundation
30615 gives unlimited permission to copy, distribute and modify it."
30616
30617 ac_pwd='$ac_pwd'
30618 srcdir='$srcdir'
30619 AWK='$AWK'
30620 test -n "\$AWK" || AWK=awk
30621 _ACEOF
30622
30623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30624 # The default lists apply if the user does not specify any file.
30625 ac_need_defaults=:
30626 while test $# != 0
30627 do
30628 case $1 in
30629 --*=*)
30630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30632 ac_shift=:
30633 ;;
30634 *)
30635 ac_option=$1
30636 ac_optarg=$2
30637 ac_shift=shift
30638 ;;
30639 esac
30640
30641 case $ac_option in
30642 # Handling of the options.
30643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30644 ac_cs_recheck=: ;;
30645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30646 $as_echo "$ac_cs_version"; exit ;;
30647 --debug | --debu | --deb | --de | --d | -d )
30648 debug=: ;;
30649 --file | --fil | --fi | --f )
30650 $ac_shift
30651 case $ac_optarg in
30652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30653 esac
30654 as_fn_append CONFIG_FILES " '$ac_optarg'"
30655 ac_need_defaults=false;;
30656 --header | --heade | --head | --hea )
30657 $ac_shift
30658 case $ac_optarg in
30659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30660 esac
30661 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30662 ac_need_defaults=false;;
30663 --he | --h)
30664 # Conflict between --help and --header
30665 as_fn_error "ambiguous option: \`$1'
30666 Try \`$0 --help' for more information.";;
30667 --help | --hel | -h )
30668 $as_echo "$ac_cs_usage"; exit ;;
30669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30671 ac_cs_silent=: ;;
30672
30673 # This is an error.
30674 -*) as_fn_error "unrecognized option: \`$1'
30675 Try \`$0 --help' for more information." ;;
30676
30677 *) as_fn_append ac_config_targets " $1"
30678 ac_need_defaults=false ;;
30679
30680 esac
30681 shift
30682 done
30683
30684 ac_configure_extra_args=
30685
30686 if $ac_cs_silent; then
30687 exec 6>/dev/null
30688 ac_configure_extra_args="$ac_configure_extra_args --silent"
30689 fi
30690
30691 _ACEOF
30692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30693 if \$ac_cs_recheck; then
30694 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30695 shift
30696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30697 CONFIG_SHELL='$SHELL'
30698 export CONFIG_SHELL
30699 exec "\$@"
30700 fi
30701
30702 _ACEOF
30703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30704 exec 5>>config.log
30705 {
30706 echo
30707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30708 ## Running $as_me. ##
30709 _ASBOX
30710 $as_echo "$ac_log"
30711 } >&5
30712
30713 _ACEOF
30714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30715 #
30716 # INIT-COMMANDS
30717 #
30718 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30719 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30720 subdirs='$subdirs'
30721
30722 _ACEOF
30723
30724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30725
30726 # Handling of arguments.
30727 for ac_config_target in $ac_config_targets
30728 do
30729 case $ac_config_target in
30730 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30731 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30732 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30733 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30734 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30735 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30736 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30737 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30738 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30739
30740 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30741 esac
30742 done
30743
30744
30745 # If the user did not use the arguments to specify the items to instantiate,
30746 # then the envvar interface is used. Set only those that are not.
30747 # We use the long form for the default assignment because of an extremely
30748 # bizarre bug on SunOS 4.1.3.
30749 if $ac_need_defaults; then
30750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30752 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30754 fi
30755
30756 # Have a temporary directory for convenience. Make it in the build tree
30757 # simply because there is no reason against having it here, and in addition,
30758 # creating and moving files from /tmp can sometimes cause problems.
30759 # Hook for its removal unless debugging.
30760 # Note that there is a small window in which the directory will not be cleaned:
30761 # after its creation but before its name has been assigned to `$tmp'.
30762 $debug ||
30763 {
30764 tmp=
30765 trap 'exit_status=$?
30766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30767 ' 0
30768 trap 'as_fn_exit 1' 1 2 13 15
30769 }
30770 # Create a (secure) tmp directory for tmp files.
30771
30772 {
30773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30774 test -n "$tmp" && test -d "$tmp"
30775 } ||
30776 {
30777 tmp=./conf$$-$RANDOM
30778 (umask 077 && mkdir "$tmp")
30779 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30780
30781 # Set up the scripts for CONFIG_FILES section.
30782 # No need to generate them if there are no CONFIG_FILES.
30783 # This happens for instance with `./config.status config.h'.
30784 if test -n "$CONFIG_FILES"; then
30785
30786 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30787 ac_cs_awk_getline=:
30788 ac_cs_awk_pipe_init=
30789 ac_cs_awk_read_file='
30790 while ((getline aline < (F[key])) > 0)
30791 print(aline)
30792 close(F[key])'
30793 ac_cs_awk_pipe_fini=
30794 else
30795 ac_cs_awk_getline=false
30796 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30797 ac_cs_awk_read_file='
30798 print "|#_!!_#|"
30799 print "cat " F[key] " &&"
30800 '$ac_cs_awk_pipe_init
30801 # The final `:' finishes the AND list.
30802 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30803 fi
30804 ac_cr=`echo X | tr X '\015'`
30805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30806 # But we know of no other shell where ac_cr would be empty at this
30807 # point, so we can use a bashism as a fallback.
30808 if test "x$ac_cr" = x; then
30809 eval ac_cr=\$\'\\r\'
30810 fi
30811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30813 ac_cs_awk_cr='\r'
30814 else
30815 ac_cs_awk_cr=$ac_cr
30816 fi
30817
30818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30819 _ACEOF
30820
30821 # Create commands to substitute file output variables.
30822 {
30823 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30824 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30825 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30826 echo "_ACAWK" &&
30827 echo "_ACEOF"
30828 } >conf$$files.sh &&
30829 . ./conf$$files.sh ||
30830 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30831 rm -f conf$$files.sh
30832
30833 {
30834 echo "cat >conf$$subs.awk <<_ACEOF" &&
30835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30836 echo "_ACEOF"
30837 } >conf$$subs.sh ||
30838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30840 ac_delim='%!_!# '
30841 for ac_last_try in false false false false false :; do
30842 . ./conf$$subs.sh ||
30843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30844
30845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30846 if test $ac_delim_n = $ac_delim_num; then
30847 break
30848 elif $ac_last_try; then
30849 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30850 else
30851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30852 fi
30853 done
30854 rm -f conf$$subs.sh
30855
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30858 _ACEOF
30859 sed -n '
30860 h
30861 s/^/S["/; s/!.*/"]=/
30862 p
30863 g
30864 s/^[^!]*!//
30865 :repl
30866 t repl
30867 s/'"$ac_delim"'$//
30868 t delim
30869 :nl
30870 h
30871 s/\(.\{148\}\).*/\1/
30872 t more1
30873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30874 p
30875 n
30876 b repl
30877 :more1
30878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30879 p
30880 g
30881 s/.\{148\}//
30882 t nl
30883 :delim
30884 h
30885 s/\(.\{148\}\).*/\1/
30886 t more2
30887 s/["\\]/\\&/g; s/^/"/; s/$/"/
30888 p
30889 b
30890 :more2
30891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30892 p
30893 g
30894 s/.\{148\}//
30895 t delim
30896 ' <conf$$subs.awk | sed '
30897 /^[^""]/{
30898 N
30899 s/\n//
30900 }
30901 ' >>$CONFIG_STATUS || ac_write_fail=1
30902 rm -f conf$$subs.awk
30903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30904 _ACAWK
30905 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30906 for (key in S) S_is_set[key] = 1
30907 FS = "\a"
30908 \$ac_cs_awk_pipe_init
30909 }
30910 {
30911 line = $ 0
30912 nfields = split(line, field, "@")
30913 substed = 0
30914 len = length(field[1])
30915 for (i = 2; i < nfields; i++) {
30916 key = field[i]
30917 keylen = length(key)
30918 if (S_is_set[key]) {
30919 value = S[key]
30920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30921 len += length(value) + length(field[++i])
30922 substed = 1
30923 } else
30924 len += 1 + keylen
30925 }
30926 if (nfields == 3 && !substed) {
30927 key = field[2]
30928 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30929 \$ac_cs_awk_read_file
30930 next
30931 }
30932 }
30933 print line
30934 }
30935 \$ac_cs_awk_pipe_fini
30936 _ACAWK
30937 _ACEOF
30938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30941 else
30942 cat
30943 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30944 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30945 _ACEOF
30946
30947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30949 # trailing colons and then remove the whole line if VPATH becomes empty
30950 # (actually we leave an empty line to preserve line numbers).
30951 if test "x$srcdir" = x.; then
30952 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30953 s/:*\$(srcdir):*/:/
30954 s/:*\${srcdir}:*/:/
30955 s/:*@srcdir@:*/:/
30956 s/^\([^=]*=[ ]*\):*/\1/
30957 s/:*$//
30958 s/^[^=]*=[ ]*$//
30959 }'
30960 fi
30961
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30963 fi # test -n "$CONFIG_FILES"
30964
30965 # Set up the scripts for CONFIG_HEADERS section.
30966 # No need to generate them if there are no CONFIG_HEADERS.
30967 # This happens for instance with `./config.status Makefile'.
30968 if test -n "$CONFIG_HEADERS"; then
30969 cat >"$tmp/defines.awk" <<\_ACAWK ||
30970 BEGIN {
30971 _ACEOF
30972
30973 # Transform confdefs.h into an awk script `defines.awk', embedded as
30974 # here-document in config.status, that substitutes the proper values into
30975 # config.h.in to produce config.h.
30976
30977 # Create a delimiter string that does not exist in confdefs.h, to ease
30978 # handling of long lines.
30979 ac_delim='%!_!# '
30980 for ac_last_try in false false :; do
30981 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30982 if test -z "$ac_t"; then
30983 break
30984 elif $ac_last_try; then
30985 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30986 else
30987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30988 fi
30989 done
30990
30991 # For the awk script, D is an array of macro values keyed by name,
30992 # likewise P contains macro parameters if any. Preserve backslash
30993 # newline sequences.
30994
30995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30996 sed -n '
30997 s/.\{148\}/&'"$ac_delim"'/g
30998 t rset
30999 :rset
31000 s/^[ ]*#[ ]*define[ ][ ]*/ /
31001 t def
31002 d
31003 :def
31004 s/\\$//
31005 t bsnl
31006 s/["\\]/\\&/g
31007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31008 D["\1"]=" \3"/p
31009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31010 d
31011 :bsnl
31012 s/["\\]/\\&/g
31013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31014 D["\1"]=" \3\\\\\\n"\\/p
31015 t cont
31016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31017 t cont
31018 d
31019 :cont
31020 n
31021 s/.\{148\}/&'"$ac_delim"'/g
31022 t clear
31023 :clear
31024 s/\\$//
31025 t bsnlc
31026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31027 d
31028 :bsnlc
31029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31030 b cont
31031 ' <confdefs.h | sed '
31032 s/'"$ac_delim"'/"\\\
31033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31034
31035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31036 for (key in D) D_is_set[key] = 1
31037 FS = "\a"
31038 }
31039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31040 line = \$ 0
31041 split(line, arg, " ")
31042 if (arg[1] == "#") {
31043 defundef = arg[2]
31044 mac1 = arg[3]
31045 } else {
31046 defundef = substr(arg[1], 2)
31047 mac1 = arg[2]
31048 }
31049 split(mac1, mac2, "(") #)
31050 macro = mac2[1]
31051 prefix = substr(line, 1, index(line, defundef) - 1)
31052 if (D_is_set[macro]) {
31053 # Preserve the white space surrounding the "#".
31054 print prefix "define", macro P[macro] D[macro]
31055 next
31056 } else {
31057 # Replace #undef with comments. This is necessary, for example,
31058 # in the case of _POSIX_SOURCE, which is predefined and required
31059 # on some systems where configure will not decide to define it.
31060 if (defundef == "undef") {
31061 print "/*", prefix defundef, macro, "*/"
31062 next
31063 }
31064 }
31065 }
31066 { print }
31067 _ACAWK
31068 _ACEOF
31069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31070 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31071 fi # test -n "$CONFIG_HEADERS"
31072
31073
31074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31075 shift
31076 for ac_tag
31077 do
31078 case $ac_tag in
31079 :[FHLC]) ac_mode=$ac_tag; continue;;
31080 esac
31081 case $ac_mode$ac_tag in
31082 :[FHL]*:*);;
31083 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31084 :[FH]-) ac_tag=-:-;;
31085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31086 esac
31087 ac_save_IFS=$IFS
31088 IFS=:
31089 set x $ac_tag
31090 IFS=$ac_save_IFS
31091 shift
31092 ac_file=$1
31093 shift
31094
31095 case $ac_mode in
31096 :L) ac_source=$1;;
31097 :[FH])
31098 ac_file_inputs=
31099 for ac_f
31100 do
31101 case $ac_f in
31102 -) ac_f="$tmp/stdin";;
31103 *) # Look for the file first in the build tree, then in the source tree
31104 # (if the path is not absolute). The absolute path cannot be DOS-style,
31105 # because $ac_f cannot contain `:'.
31106 test -f "$ac_f" ||
31107 case $ac_f in
31108 [\\/$]*) false;;
31109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31110 esac ||
31111 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31112 esac
31113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31114 as_fn_append ac_file_inputs " '$ac_f'"
31115 done
31116
31117 # Let's still pretend it is `configure' which instantiates (i.e., don't
31118 # use $as_me), people would be surprised to read:
31119 # /* config.h. Generated by config.status. */
31120 configure_input='Generated from '`
31121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31122 `' by configure.'
31123 if test x"$ac_file" != x-; then
31124 configure_input="$ac_file. $configure_input"
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31126 $as_echo "$as_me: creating $ac_file" >&6;}
31127 fi
31128 # Neutralize special characters interpreted by sed in replacement strings.
31129 case $configure_input in #(
31130 *\&* | *\|* | *\\* )
31131 ac_sed_conf_input=`$as_echo "$configure_input" |
31132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31133 *) ac_sed_conf_input=$configure_input;;
31134 esac
31135
31136 case $ac_tag in
31137 *:-:* | *:-) cat >"$tmp/stdin" \
31138 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31139 esac
31140 ;;
31141 esac
31142
31143 ac_dir=`$as_dirname -- "$ac_file" ||
31144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145 X"$ac_file" : 'X\(//\)[^/]' \| \
31146 X"$ac_file" : 'X\(//\)$' \| \
31147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31148 $as_echo X"$ac_file" |
31149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31150 s//\1/
31151 q
31152 }
31153 /^X\(\/\/\)[^/].*/{
31154 s//\1/
31155 q
31156 }
31157 /^X\(\/\/\)$/{
31158 s//\1/
31159 q
31160 }
31161 /^X\(\/\).*/{
31162 s//\1/
31163 q
31164 }
31165 s/.*/./; q'`
31166 as_dir="$ac_dir"; as_fn_mkdir_p
31167 ac_builddir=.
31168
31169 case "$ac_dir" in
31170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31171 *)
31172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31173 # A ".." for each directory in $ac_dir_suffix.
31174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31175 case $ac_top_builddir_sub in
31176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31178 esac ;;
31179 esac
31180 ac_abs_top_builddir=$ac_pwd
31181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31182 # for backward compatibility:
31183 ac_top_builddir=$ac_top_build_prefix
31184
31185 case $srcdir in
31186 .) # We are building in place.
31187 ac_srcdir=.
31188 ac_top_srcdir=$ac_top_builddir_sub
31189 ac_abs_top_srcdir=$ac_pwd ;;
31190 [\\/]* | ?:[\\/]* ) # Absolute name.
31191 ac_srcdir=$srcdir$ac_dir_suffix;
31192 ac_top_srcdir=$srcdir
31193 ac_abs_top_srcdir=$srcdir ;;
31194 *) # Relative name.
31195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31196 ac_top_srcdir=$ac_top_build_prefix$srcdir
31197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31198 esac
31199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31200
31201
31202 case $ac_mode in
31203 :F)
31204 #
31205 # CONFIG_FILE
31206 #
31207
31208 _ACEOF
31209
31210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31211 # If the template does not know about datarootdir, expand it.
31212 # FIXME: This hack should be removed a few years after 2.60.
31213 ac_datarootdir_hack=; ac_datarootdir_seen=
31214 ac_sed_dataroot='
31215 /datarootdir/ {
31216 p
31217 q
31218 }
31219 /@datadir@/p
31220 /@docdir@/p
31221 /@infodir@/p
31222 /@localedir@/p
31223 /@mandir@/p'
31224 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31225 *datarootdir*) ac_datarootdir_seen=yes;;
31226 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31228 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31229 _ACEOF
31230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31231 ac_datarootdir_hack='
31232 s&@datadir@&$datadir&g
31233 s&@docdir@&$docdir&g
31234 s&@infodir@&$infodir&g
31235 s&@localedir@&$localedir&g
31236 s&@mandir@&$mandir&g
31237 s&\\\${datarootdir}&$datarootdir&g' ;;
31238 esac
31239 _ACEOF
31240
31241 # Neutralize VPATH when `$srcdir' = `.'.
31242 # Shell code in configure.ac might set extrasub.
31243 # FIXME: do we really want to maintain this feature?
31244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31245 ac_sed_extra="$ac_vpsub
31246 $extrasub
31247 _ACEOF
31248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31249 :t
31250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31251 s|@configure_input@|$ac_sed_conf_input|;t t
31252 s&@top_builddir@&$ac_top_builddir_sub&;t t
31253 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31254 s&@srcdir@&$ac_srcdir&;t t
31255 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31256 s&@top_srcdir@&$ac_top_srcdir&;t t
31257 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31258 s&@builddir@&$ac_builddir&;t t
31259 s&@abs_builddir@&$ac_abs_builddir&;t t
31260 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31261 $ac_datarootdir_hack
31262 "
31263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31264 if $ac_cs_awk_getline; then
31265 $AWK -f "$tmp/subs.awk"
31266 else
31267 $AWK -f "$tmp/subs.awk" | $SHELL
31268 fi >$tmp/out \
31269 || as_fn_error "could not create $ac_file" "$LINENO" 5
31270
31271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31275 which seems to be undefined. Please make sure it is defined." >&5
31276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31277 which seems to be undefined. Please make sure it is defined." >&2;}
31278
31279 rm -f "$tmp/stdin"
31280 case $ac_file in
31281 -) cat "$tmp/out" && rm -f "$tmp/out";;
31282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31283 esac \
31284 || as_fn_error "could not create $ac_file" "$LINENO" 5
31285 ;;
31286 :H)
31287 #
31288 # CONFIG_HEADER
31289 #
31290 if test x"$ac_file" != x-; then
31291 {
31292 $as_echo "/* $configure_input */" \
31293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31294 } >"$tmp/config.h" \
31295 || as_fn_error "could not create $ac_file" "$LINENO" 5
31296 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31299 else
31300 rm -f "$ac_file"
31301 mv "$tmp/config.h" "$ac_file" \
31302 || as_fn_error "could not create $ac_file" "$LINENO" 5
31303 fi
31304 else
31305 $as_echo "/* $configure_input */" \
31306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31307 || as_fn_error "could not create -" "$LINENO" 5
31308 fi
31309 ;;
31310 :L)
31311 #
31312 # CONFIG_LINK
31313 #
31314
31315 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31316 :
31317 else
31318 # Prefer the file from the source tree if names are identical.
31319 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31320 ac_source=$srcdir/$ac_source
31321 fi
31322
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31324 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31325
31326 if test ! -r "$ac_source"; then
31327 as_fn_error "$ac_source: file not found" "$LINENO" 5
31328 fi
31329 rm -f "$ac_file"
31330
31331 # Try a relative symlink, then a hard link, then a copy.
31332 case $srcdir in
31333 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31334 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31335 esac
31336 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31337 ln "$ac_source" "$ac_file" 2>/dev/null ||
31338 cp -p "$ac_source" "$ac_file" ||
31339 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31340 fi
31341 ;;
31342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31343 $as_echo "$as_me: executing $ac_file commands" >&6;}
31344 ;;
31345 esac
31346
31347
31348 case $ac_file$ac_mode in
31349 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31350 "gccdepdir":C)
31351 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31352 for lang in $subdirs c-family common
31353 do
31354 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31355 done ;;
31356 "as":F) chmod +x as ;;
31357 "collect-ld":F) chmod +x collect-ld ;;
31358 "nm":F) chmod +x nm ;;
31359 "default":C)
31360 case ${CONFIG_HEADERS} in
31361 *auto-host.h:config.in*)
31362 echo > cstamp-h ;;
31363 esac
31364 # Make sure all the subdirs exist.
31365 for d in $subdirs doc build common c-family
31366 do
31367 test -d $d || mkdir $d
31368 done
31369 ;;
31370
31371 esac
31372 done # for ac_tag
31373
31374
31375 as_fn_exit 0
31376 _ACEOF
31377 ac_clean_files=$ac_clean_files_save
31378
31379 test $ac_write_fail = 0 ||
31380 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31381
31382
31383 # configure is writing to config.log, and then calls config.status.
31384 # config.status does its own redirection, appending to config.log.
31385 # Unfortunately, on DOS this fails, as config.log is still kept open
31386 # by configure, so config.status won't be able to write to it; its
31387 # output is simply discarded. So we exec the FD to /dev/null,
31388 # effectively closing config.log, so it can be properly (re)opened and
31389 # appended to by config.status. When coming back to configure, we
31390 # need to make the FD available again.
31391 if test "$no_create" != yes; then
31392 ac_cs_success=:
31393 ac_config_status_args=
31394 test "$silent" = yes &&
31395 ac_config_status_args="$ac_config_status_args --quiet"
31396 exec 5>/dev/null
31397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31398 exec 5>>config.log
31399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31400 # would make configure fail if this is the last instruction.
31401 $ac_cs_success || as_fn_exit $?
31402 fi
31403 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31405 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31406 fi
31407
31408