]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
update required isl version
[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 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
722 ALL
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
752 AR
753 NM
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
766 LN
767 LN_S
768 AWK
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
798 CPP
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
807 CXX
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
951 '
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 CPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1028 fi
1029
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1034
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
1040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1065
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1098
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1123
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1127
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1134
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1139
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1145
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1152
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1157
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1162
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1169
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1174
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1181
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1186
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1190
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1194
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1198
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1207
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1212
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1219
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1226
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1243
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1248
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1253
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1257
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1263
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1274
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1279
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1284
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1291
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1296
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1299
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1302
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1318
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1334
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1338
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1345
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1352
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1355 ;;
1356
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1366
1367 *)
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 ;;
1374
1375 esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1396 do
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1427 fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1489 fi
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1502
1503 #
1504 # Report the --help message.
1505 #
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1511
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1516
1517 Defaults for the options are specified in brackets.
1518
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1529
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1535
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1540
1541 For better control, use the options below.
1542
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1564
1565 cat <<\_ACEOF
1566
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1571
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1577 fi
1578
1579 if test -n "$ac_init_help"; then
1580
1581 cat <<\_ACEOF
1582
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1634 x86
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1654
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661
1662
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1689
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1738
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link ISL
1754 ISLINC How to find ISL include files
1755
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1758
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1762 fi
1763
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1771
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *)
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1787
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1803
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1817 fi
1818
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1824
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1830 fi
1831
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1835
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1871
1872 } # ac_fn_c_try_compile
1873
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1909
1910 } # ac_fn_cxx_try_compile
1911
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1931 fi
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1946
1947 } # ac_fn_cxx_try_cpp
1948
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ;;
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 fi
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033
2034 } # ac_fn_cxx_check_header_mongrel
2035
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=$ac_status
2071 fi
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2075
2076 } # ac_fn_cxx_try_run
2077
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_cxx_check_header_compile
2108
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2128 fi
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 ac_retval=1
2140 fi
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2143
2144 } # ac_fn_c_try_cpp
2145
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2234 fi
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $4
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2280 int
2281 main ()
2282 {
2283
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2288 {
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2293 }
2294 else
2295 {
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2300 }
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2313 fi
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2317
2318 fi
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2321
2322 } # ac_fn_cxx_compute_int
2323
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $4
2340 int
2341 main ()
2342 {
2343 if (sizeof ($2))
2344 return 0;
2345 ;
2346 return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $4
2353 int
2354 main ()
2355 {
2356 if (sizeof (($2)))
2357 return 0;
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2363
2364 else
2365 eval "$3=yes"
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376 } # ac_fn_cxx_check_type
2377
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2383 {
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2396 int
2397 main ()
2398 {
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2401
2402 ;
2403 return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
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 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2422
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2436
2437 else
2438 break
2439 fi
2440 done
2441 fi
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
2447 } # ac_fn_c_find_intX_t
2448
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2469 fi
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 ac_retval=1
2484 fi
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2492
2493 } # ac_fn_cxx_try_link
2494
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2518
2519 ;
2520 return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2534
2535 else
2536 break
2537 fi
2538 done
2539 fi
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544
2545 } # ac_fn_c_find_uintX_t
2546
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2551 {
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2566 fi
2567 rm -f conftest.err conftest.$ac_ext
2568 fi
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2573
2574 } # ac_fn_cxx_check_header_preproc
2575
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2592
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2597
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2603
2604 #undef $2
2605
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2619
2620 int
2621 main ()
2622 {
2623 return $2 ();
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2635 fi
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640
2641 } # ac_fn_cxx_check_func
2642
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2647 {
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2658 $4
2659 int
2660 main ()
2661 {
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2669
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2685
2686 } # ac_fn_cxx_check_decl
2687
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2692 {
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2708 fi
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_retval=1
2723 fi
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2731
2732 } # ac_fn_c_try_link
2733
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2738 {
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2753 fi
2754 rm -f conftest.err conftest.$ac_ext
2755 fi
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760
2761 } # ac_fn_c_check_header_preproc
2762
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2767 {
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2779
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2784
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790
2791 #undef $2
2792
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2806
2807 int
2808 main ()
2809 {
2810 return $2 ();
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2822 fi
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2827
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2832
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2835
2836 $ $0 $@
2837
2838 _ACEOF
2839 exec 5>>config.log
2840 {
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2845
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2851
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2854
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2862
2863 _ASUNAME
2864
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2873
2874 } >&5
2875
2876 cat >&5 <<_ACEOF
2877
2878
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2882
2883 _ACEOF
2884
2885
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2896 do
2897 for ac_arg
2898 do
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2909 2)
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2922 ;;
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2925 fi
2926 as_fn_append ac_configure_args " '$ac_arg'"
2927 ;;
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2933
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2941 {
2942 echo
2943
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2951 (
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2974 *)
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2976 ;;
2977 esac |
2978 sort
2979 )
2980 echo
2981
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2989 do
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2997
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3006 do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3014 fi
3015
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3025 fi
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3033 ' 0
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3038
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3041
3042 $as_echo "/* confdefs.h */" > confdefs.h
3043
3044 # Predefined preprocessor variables.
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3069
3070
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3083 fi
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3085 do
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3092 fi
3093 done
3094
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3105 fi
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3110 fi
3111
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3130 *)
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3160 fi
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3168 fi
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180
3181
3182
3183
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3185
3186
3187 gcc_version=`cat $srcdir/BASE-VER`
3188
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3197 fi
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3202 fi
3203
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3211
3212
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3229
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3249
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3261 fi
3262
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3282
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3294 fi
3295
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3315
3316
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3323
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3329
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3334
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3339
3340
3341
3342
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3346
3347 # Determine the target- and build-specific subdirectories
3348
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3357
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3360
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3366 fi
3367
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3374 fi
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3377
3378
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3389
3390
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3404 ;;
3405 *)
3406 library_path_setting="ok"
3407 ;;
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3416 fi
3417
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3430 ;;
3431 *)
3432 gcc_exec_prefix_setting="ok"
3433 ;;
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3442 fi
3443
3444 # -----------
3445 # Directories
3446 # -----------
3447
3448 # Specify the local prefix
3449 local_prefix=
3450
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3458 fi
3459
3460
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3464 fi
3465
3466
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3476
3477 else
3478 configured_native_system_header_dir=
3479 fi
3480
3481
3482
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3487 fi
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3490 fi
3491
3492
3493
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3498 fi
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3503 fi
3504
3505
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3517
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3520
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3528 ;;
3529 esac
3530
3531 else
3532
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3536
3537 fi
3538
3539
3540
3541
3542
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3548
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3556 fi
3557
3558
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3567 fi
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3569 fi
3570 fi
3571
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3578 fi
3579 gcc_gxx_include_dir_add_sysroot=1
3580 fi
3581 fi
3582
3583
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3590 fi
3591 fi
3592
3593
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3607 fi
3608
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3612
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3617 fi
3618
3619
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3623
3624 # With GNU ld
3625
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3631 fi
3632
3633
3634 # With pre-defined ld
3635
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3639 fi
3640
3641 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3645 gnu_ld_flag=yes
3646 fi
3647
3648 cat >>confdefs.h <<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 _ACEOF
3651
3652 fi
3653
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3657 if test x"$gnu_ld_flag" = x"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3663 fi
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669 # With demangler in GNU ld
3670
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3674 else
3675 demangler_in_ld=yes
3676 fi
3677
3678
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3682
3683 # With GNU as
3684
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3688 else
3689 gas_flag=no
3690 fi
3691
3692
3693
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3697 fi
3698
3699 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3703 gas_flag=yes
3704 fi
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 _ACEOF
3709
3710 fi
3711
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test x"$gas_flag" = x"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3721 fi
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727 # ---------------
3728 # Find C compiler
3729 # ---------------
3730
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3735 #
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3739
3740 # Find the native compiler
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784 fi
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3833 fi
3834 else
3835 CC="$ac_cv_prog_CC"
3836 fi
3837
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861 done
3862 done
3863 IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 fi
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3901 fi
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920 fi
3921 fi
3922 fi
3923 fi
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3938 do
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976 test -n "$CC" && break
3977 done
3978 fi
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3982 do
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 test -n "$ac_ct_CC" && break
4021 done
4022
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4033 fi
4034 fi
4035
4036 fi
4037
4038
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4043
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4064 fi
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4068
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4088
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4094 do
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4101
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4119 do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 ;;
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 fi
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4139 * )
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4144
4145 else
4146 ac_file=''
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4159 fi
4160 ac_exeext=$ac_cv_exeext
4161
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4189 fi
4190 fi
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4194
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4235 fi
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4239
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4287 fi
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main ()
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4401 fi
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4407 fi
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4428 {
4429 return p[i];
4430 }
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4432 {
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4439 }
4440
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4449
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4454
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4461 int
4462 main ()
4463 {
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4471 do
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4481
4482 fi
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4485 x)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4491 *)
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497
4498 fi
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 test -n "$CXX" && break
4556 done
4557 fi
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4561 do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_CXX" && break
4600 done
4601
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4612 fi
4613 fi
4614
4615 fi
4616 fi
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4637 fi
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4676 fi
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4749 fi
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4755 fi
4756 fi
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764
4765
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 GNATBIND=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803
4804 fi
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843 if test "x$ac_ct_GNATBIND" = x; then
4844 GNATBIND="no"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 GNATBIND=$ac_ct_GNATBIND
4853 fi
4854 else
4855 GNATBIND="$ac_cv_prog_GNATBIND"
4856 fi
4857
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 GNATMAKE=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 fi
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934
4935 if test "x$ac_ct_GNATMAKE" = x; then
4936 GNATMAKE="no"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 GNATMAKE=$ac_ct_GNATMAKE
4945 fi
4946 else
4947 GNATMAKE="$ac_cv_prog_GNATMAKE"
4948 fi
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat >conftest.adb <<EOF
4956 procedure conftest is begin null; end conftest;
4957 EOF
4958 acx_cv_cc_gcc_supports_ada=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x"$errors" = x && test -f conftest.$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada=yes
4970 fi
4971 rm -f conftest.*
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4975
4976 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4977 have_gnat=yes
4978 else
4979 have_gnat=no
4980 fi
4981
4982
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4984 ac_ext=cpp
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989
4990
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4993 case "$CC" in
4994 */prev-gcc/xgcc*) ;;
4995 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 esac
4998
4999
5000
5001 # Determine PICFLAG for target gnatlib.
5002
5003
5004
5005
5006 case "${target}" in
5007 # PIC is the default on some targets or must not be used.
5008 *-*-darwin*)
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5010 case "${CFLAGS}" in
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5014 # libs.
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET=-fno-common ;;
5017 esac
5018 ;;
5019 alpha*-dec-osf5*)
5020 # PIC is the default.
5021 ;;
5022 hppa*64*-*-hpux*)
5023 # PIC is the default for 64-bit PA HP-UX.
5024 ;;
5025 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5026 ;;
5027 i[34567]86-*-mingw* | x86_64-*-mingw*)
5028 ;;
5029 i[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5032 ;;
5033 i[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5035 # it will coredump.
5036 PICFLAG_FOR_TARGET='-fPIC -shared'
5037 ;;
5038 i[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5040 ;;
5041 ia64*-*-hpux*)
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET=-fPIC
5045 ;;
5046 mips-sgi-irix6*)
5047 # PIC is the default.
5048 ;;
5049 rs6000-ibm-aix* | powerpc-ibm-aix*)
5050 # All AIX code is PIC.
5051 ;;
5052
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5054 # FIXME: Why?
5055 i[34567]86-*-* | x86_64-*-*)
5056 PICFLAG_FOR_TARGET=-fpic
5057 ;;
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-*-linux* | sh[2346lbe]*-*-linux*)
5060 PICFLAG_FOR_TARGET=-fpic
5061 ;;
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5064 sh64-*-netbsd* | sh64l*-*-netbsd*)
5065 PICFLAG_FOR_TARGET=-fpic
5066 ;;
5067 # Default to -fPIC unless specified otherwise.
5068 *)
5069 PICFLAG_FOR_TARGET=-fPIC
5070 ;;
5071 esac
5072
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5075 *-fpic*)
5076 PICFLAG_FOR_TARGET=-fpic
5077 ;;
5078 *-fPIC*)
5079 PICFLAG_FOR_TARGET=-fPIC
5080 ;;
5081 esac
5082
5083
5084
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5088
5089
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP in "$CXX -E" "/lib/cpp"
5103 do
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5106 do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_cxx_try_cpp "$LINENO"; then :
5123
5124 else
5125 # Broken: fails on valid input.
5126 continue
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_cxx_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144 rm -f conftest.err conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5151 fi
5152
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5155
5156 fi
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5182
5183 else
5184 # Broken: fails on valid input.
5185 continue
5186 fi
5187 rm -f conftest.err conftest.$ac_ext
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203 rm -f conftest.err conftest.$ac_ext
5204
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5209
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5215 fi
5216
5217 ac_ext=cpp
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5246 *)
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5268
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276 fi
5277 else
5278 ac_cv_path_GREP=$GREP
5279 fi
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5312 *)
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5316 do
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5328 fi
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5334
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342 fi
5343 else
5344 ac_cv_path_EGREP=$EGREP
5345 fi
5346
5347 fi
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5365
5366 int
5367 main ()
5368 {
5369
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_cxx_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376 else
5377 ac_cv_header_stdc=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <string.h>
5386
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5390
5391 else
5392 ac_cv_header_stdc=no
5393 fi
5394 rm -f conftest*
5395
5396 fi
5397
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5403
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5407
5408 else
5409 ac_cv_header_stdc=no
5410 fi
5411 rm -f conftest*
5412
5413 fi
5414
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5418 :
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5434
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 int
5437 main ()
5438 {
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_cxx_try_run "$LINENO"; then :
5448
5449 else
5450 ac_cv_header_stdc=no
5451 fi
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 fi
5455
5456 fi
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5461
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5463
5464 fi
5465
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469 do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5472 "
5473 eval as_val=\$$as_ac_Header
5474 if test "x$as_val" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483
5484
5485 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5487 MINIX=yes
5488 else
5489 MINIX=
5490 fi
5491
5492
5493 if test "$MINIX" = yes; then
5494
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5496
5497
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5499
5500
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5502
5503 fi
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5516 int
5517 main ()
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__=yes
5526 else
5527 ac_cv_safe_to_define___extensions__=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5535
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5537
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5539
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5541
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5543
5544
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5555 fi
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5562 do
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5565 do
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5582
5583 else
5584 # Broken: fails on valid input.
5585 continue
5586 fi
5587 rm -f conftest.err conftest.$ac_ext
5588
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5602 fi
5603 rm -f conftest.err conftest.$ac_ext
5604
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5610 fi
5611
5612 done
5613 ac_cv_prog_CPP=$CPP
5614
5615 fi
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5624 do
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5641
5642 else
5643 # Broken: fails on valid input.
5644 continue
5645 fi
5646 rm -f conftest.err conftest.$ac_ext
5647
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5661 fi
5662 rm -f conftest.err conftest.$ac_ext
5663
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5668
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5674 fi
5675
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_cv_c_inline=no
5688 for ac_kw in inline __inline__ __inline; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #ifndef __cplusplus
5692 typedef int foo_t;
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5695 #endif
5696
5697 _ACEOF
5698 if ac_fn_cxx_try_compile "$LINENO"; then :
5699 ac_cv_c_inline=$ac_kw
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_inline" != no && break
5703 done
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5708
5709 case $ac_cv_c_inline in
5710 inline | yes) ;;
5711 *)
5712 case $ac_cv_c_inline in
5713 no) ac_val=;;
5714 *) ac_val=$ac_cv_c_inline;;
5715 esac
5716 cat >>confdefs.h <<_ACEOF
5717 #ifndef __cplusplus
5718 #define inline $ac_val
5719 #endif
5720 _ACEOF
5721 ;;
5722 esac
5723
5724
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval=$enable_largefile;
5728 fi
5729
5730 if test "$enable_largefile" != no; then
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5754 int
5755 main ()
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_cxx_try_compile "$LINENO"; then :
5763 break
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext
5766 CC="$CC -n32"
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768 ac_cv_sys_largefile_CC=' -n32'; break
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext
5771 break
5772 done
5773 CC=$ac_save_CC
5774 rm -f conftest.$ac_ext
5775 fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no; then
5780 CC=$CC$ac_cv_sys_largefile_CC
5781 fi
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 while :; do
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=no; break
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5824 int
5825 main ()
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=64; break
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_cv_sys_file_offset_bits=unknown
5837 break
5838 done
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5843 no | unknown) ;;
5844 *)
5845 cat >>confdefs.h <<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 _ACEOF
5848 ;;
5849 esac
5850 rm -rf conftest*
5851 if test $ac_cv_sys_file_offset_bits = unknown; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 while :; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=no; break
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5893 int
5894 main ()
5895 {
5896
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=1; break
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_sys_large_files=unknown
5906 break
5907 done
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5912 no | unknown) ;;
5913 *)
5914 cat >>confdefs.h <<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5916 _ACEOF
5917 ;;
5918 esac
5919 rm -rf conftest*
5920 fi
5921 fi
5922
5923
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5935
5936 else
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status 77
5941 as_fn_error "cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5943 else
5944 ac_cv_sizeof_void_p=0
5945 fi
5946 fi
5947
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5951
5952
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5956 _ACEOF
5957
5958
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5969
5970 else
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_short=0
5979 fi
5980 fi
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5985
5986
5987
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5990 _ACEOF
5991
5992
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6003
6004 else
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_int=0
6013 fi
6014 fi
6015
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6019
6020
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6025
6026
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6037
6038 else
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_long=0
6047 fi
6048 fi
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6053
6054
6055
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6058 _ACEOF
6059
6060
6061 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x""yes; then :
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LONG_LONG 1
6066 _ACEOF
6067
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6078
6079 else
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long_long=0
6088 fi
6089 fi
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6094
6095
6096
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6100
6101
6102 fi
6103
6104 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6106 no|yes) ;; #(
6107 *)
6108
6109 cat >>confdefs.h <<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6111 _ACEOF
6112 ;;
6113 esac
6114
6115 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6117 no|yes) ;; #(
6118 *)
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6122 _ACEOF
6123 ;;
6124 esac
6125
6126 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6128 no|yes) ;; #(
6129 *)
6130
6131 cat >>confdefs.h <<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6133 _ACEOF
6134 ;;
6135 esac
6136
6137 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6139 no|yes) ;; #(
6140 *)
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6144 _ACEOF
6145 ;;
6146 esac
6147
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6171 int
6172 main ()
6173 {
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6181 ;
6182 return 0;
6183 }
6184
6185 _ACEOF
6186 if ac_fn_cxx_try_link "$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int=yes
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <limits.h>
6193 #ifndef LLONG_MAX
6194 # define HALF \
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6197 #endif
6198 int
6199 main ()
6200 {
6201 long long int n = 1;
6202 int i;
6203 for (i = 0; ; i++)
6204 {
6205 long long int m = n << i;
6206 if (m >> i != n)
6207 return 1;
6208 if (LLONG_MAX / 2 < m)
6209 break;
6210 }
6211 return 0;
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_cxx_try_run "$LINENO"; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 ac_cv_type_long_long_int=no
6220 fi
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222 conftest.$ac_objext conftest.beam conftest.$ac_ext
6223 fi
6224
6225 else
6226 ac_cv_type_long_long_int=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6234
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6236
6237 fi
6238
6239
6240
6241 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6243
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6245
6246 else
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type='long long int' \
6249 || ac_type='long int'
6250
6251 cat >>confdefs.h <<_ACEOF
6252 #define intmax_t $ac_type
6253 _ACEOF
6254
6255 fi
6256
6257
6258
6259 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6261
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6263
6264 else
6265 for ac_type in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 int
6270 main ()
6271 {
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6280
6281 cat >>confdefs.h <<_ACEOF
6282 #define intptr_t $ac_type
6283 _ACEOF
6284
6285 ac_type=
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6290 fi
6291
6292
6293 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6295 no|yes) ;; #(
6296 *)
6297
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6299
6300
6301 cat >>confdefs.h <<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6303 _ACEOF
6304 ;;
6305 esac
6306
6307 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6309 no|yes) ;; #(
6310 *)
6311
6312
6313 cat >>confdefs.h <<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6315 _ACEOF
6316 ;;
6317 esac
6318
6319 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6321 no|yes) ;; #(
6322 *)
6323
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6325
6326
6327 cat >>confdefs.h <<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6329 _ACEOF
6330 ;;
6331 esac
6332
6333 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6335 no|yes) ;; #(
6336 *)
6337
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6339
6340
6341 cat >>confdefs.h <<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6343 _ACEOF
6344 ;;
6345 esac
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6366 ? 1 : -1)];
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6368 ? 1 : -1)];
6369 int i = 63;
6370 int
6371 main ()
6372 {
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6380 ;
6381 return 0;
6382 }
6383
6384 _ACEOF
6385 if ac_fn_cxx_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=yes
6387 else
6388 ac_cv_type_unsigned_long_long_int=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6396
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6398
6399 fi
6400
6401
6402
6403 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6405
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6407
6408 else
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type='unsigned long long int' \
6411 || ac_type='unsigned long int'
6412
6413 cat >>confdefs.h <<_ACEOF
6414 #define uintmax_t $ac_type
6415 _ACEOF
6416
6417 fi
6418
6419
6420
6421 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6423
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6425
6426 else
6427 for ac_type in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 int
6433 main ()
6434 {
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 test_array [0] = 0
6437
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define uintptr_t $ac_type
6446 _ACEOF
6447
6448 ac_type=
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6453 fi
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6469 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6470 fi
6471
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481
6482 #ifdef HAVE_STDINT_H
6483 #include <stdint.h>
6484 #endif
6485 template <typename T> struct X { };
6486 template <>
6487 struct X<long> { typedef long t; };
6488
6489 int
6490 main ()
6491 {
6492 X<int64_t>::t x;
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_int64_t_type=long
6499 else
6500 ac_cv_int64_t_type="long long"
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6507
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6509
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513
6514 #ifdef HAVE_STDINT_H
6515 #include <stdint.h>
6516 #endif
6517 template <typename T> struct X { };
6518 template <>
6519 struct X<long long> { typedef long long t; };
6520
6521 int
6522 main ()
6523 {
6524 X<int64_t>::t x;
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6530
6531 else
6532 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536
6537 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6538 # If the host compiler is affected by the bug, and we build with optimization
6539 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6540 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6541 # Since there is no reliable feature check for the presence of this bug,
6542 # we simply use a GCC version number check. (This should never trigger for
6543 # stages 2 or 3 of a native bootstrap.)
6544 aliasing_flags=
6545 if test "$GCC" = yes; then
6546 saved_CXXFLAGS="$CXXFLAGS"
6547
6548 # The following test compilation will succeed if and only if $CXX accepts
6549 # -fno-strict-aliasing *and* is older than GCC 4.3.
6550 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6552 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555
6556 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6557 #error compiler not affected by placement new aliasing bug
6558 #endif
6559
6560 _ACEOF
6561 if ac_fn_cxx_try_compile "$LINENO"; then :
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569
6570 CXXFLAGS="$saved_CXXFLAGS"
6571 fi
6572
6573
6574
6575
6576 # ---------------------
6577 # Warnings and checking
6578 # ---------------------
6579
6580 # Check $CC warning features (if it's GCC).
6581 # We want to use -pedantic, but we don't want warnings about
6582 # * 'long long'
6583 # * variadic macros
6584 # * overlong strings
6585 # * C++11 narrowing conversions in { }
6586 # So, we only use -pedantic if we can disable those warnings.
6587
6588 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6589 # Check whether --enable-build-format-warnings was given.
6590 if test "${enable_build_format_warnings+set}" = set; then :
6591 enableval=$enable_build_format_warnings;
6592 else
6593 enable_build_format_warnings=yes
6594 fi
6595
6596 if test $enable_build_format_warnings = no; then :
6597 wf_opt=-Wno-format
6598 else
6599 wf_opt=
6600 fi
6601 ac_ext=cpp
6602 ac_cpp='$CXXCPP $CPPFLAGS'
6603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606
6607 loose_warn=
6608 save_CXXFLAGS="$CXXFLAGS"
6609 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6610 # Do the check with the no- prefix removed since gcc silently
6611 # accepts any -Wno-* option on purpose
6612 case $real_option in
6613 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6614 *) option=$real_option ;;
6615 esac
6616 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6619 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6620 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 CXXFLAGS="$option"
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_cxx_try_compile "$LINENO"; then :
6636 eval "$as_acx_Woption=yes"
6637 else
6638 eval "$as_acx_Woption=no"
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641
6642 fi
6643 eval ac_res=\$$as_acx_Woption
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6645 $as_echo "$ac_res" >&6; }
6646 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6647 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6648 fi
6649 done
6650 CXXFLAGS="$save_CXXFLAGS"
6651 ac_ext=cpp
6652 ac_cpp='$CXXCPP $CPPFLAGS'
6653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6656
6657
6658
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665 c_loose_warn=
6666 save_CFLAGS="$CFLAGS"
6667 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6668 # Do the check with the no- prefix removed since gcc silently
6669 # accepts any -Wno-* option on purpose
6670 case $real_option in
6671 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6672 *) option=$real_option ;;
6673 esac
6674 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6677 $as_echo_n "checking whether $CC supports $option... " >&6; }
6678 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 CFLAGS="$option"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684
6685 int
6686 main ()
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 eval "$as_acx_Woption=yes"
6695 else
6696 eval "$as_acx_Woption=no"
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699
6700 fi
6701 eval ac_res=\$$as_acx_Woption
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6703 $as_echo "$ac_res" >&6; }
6704 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6705 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6706 fi
6707 done
6708 CFLAGS="$save_CFLAGS"
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6714
6715
6716 ac_ext=cpp
6717 ac_cpp='$CXXCPP $CPPFLAGS'
6718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6721
6722 strict_warn=
6723 save_CXXFLAGS="$CXXFLAGS"
6724 for real_option in -Wmissing-format-attribute; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option=$real_option ;;
6730 esac
6731 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6734 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6735 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 CXXFLAGS="$option"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 int
6743 main ()
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_cxx_try_compile "$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6752 else
6753 eval "$as_acx_Woption=no"
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 fi
6758 eval ac_res=\$$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6763 fi
6764 done
6765 CXXFLAGS="$save_CXXFLAGS"
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771
6772
6773 ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779 save_CXXFLAGS="$CXXFLAGS"
6780 for real_option in -Woverloaded-virtual; do
6781 # Do the check with the no- prefix removed since gcc silently
6782 # accepts any -Wno-* option on purpose
6783 case $real_option in
6784 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6785 *) option=$real_option ;;
6786 esac
6787 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6790 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6791 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 CXXFLAGS="$option"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797
6798 int
6799 main ()
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval "$as_acx_Woption=yes"
6808 else
6809 eval "$as_acx_Woption=no"
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812
6813 fi
6814 eval ac_res=\$$as_acx_Woption
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6818 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6819 fi
6820 done
6821 CXXFLAGS="$save_CXXFLAGS"
6822 ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827
6828
6829 ac_ext=c
6830 ac_cpp='$CPP $CPPFLAGS'
6831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834
6835 c_strict_warn=
6836 save_CFLAGS="$CFLAGS"
6837 for real_option in -Wold-style-definition -Wc++-compat; do
6838 # Do the check with the no- prefix removed since gcc silently
6839 # accepts any -Wno-* option on purpose
6840 case $real_option in
6841 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6842 *) option=$real_option ;;
6843 esac
6844 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6847 $as_echo_n "checking whether $CC supports $option... " >&6; }
6848 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 CFLAGS="$option"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855 int
6856 main ()
6857 {
6858
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 eval "$as_acx_Woption=yes"
6865 else
6866 eval "$as_acx_Woption=no"
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 fi
6871 eval ac_res=\$$as_acx_Woption
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6875 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6876 fi
6877 done
6878 CFLAGS="$save_CFLAGS"
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6884
6885
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891
6892 # Do the check with the no- prefix removed from the warning options
6893 # since gcc silently accepts any -Wno-* option on purpose
6894 if test "$GXX" = yes; then :
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6896 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6897 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 save_CXXFLAGS="$CXXFLAGS"
6901 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904
6905 int
6906 main ()
6907 {
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_cxx_try_compile "$LINENO"; then :
6914 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6915 else
6916 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 CXXFLAGS="$save_CXXFLAGS"
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6922 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6923 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6924 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6925 fi
6926
6927 fi
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933
6934
6935 ac_ext=cpp
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940
6941 # Check whether --enable-werror-always was given.
6942 if test "${enable_werror_always+set}" = set; then :
6943 enableval=$enable_werror_always;
6944 else
6945 enable_werror_always=no
6946 fi
6947
6948 if test $enable_werror_always = yes; then :
6949 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6950 fi
6951
6952 ac_ext=cpp
6953 ac_cpp='$CXXCPP $CPPFLAGS'
6954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6957
6958
6959
6960 # The above macros do nothing if the compiler is not GCC. However, the
6961 # Makefile has more goo to add other flags, so these variables are used
6962 # to enable warnings only for GCC.
6963 warn_cflags=
6964 warn_cxxflags=
6965 if test "x$GCC" = "xyes"; then
6966 warn_cflags='$(GCC_WARN_CFLAGS)'
6967 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6968 fi
6969
6970
6971
6972 # Disable exceptions and RTTI if building with g++
6973 ac_ext=c
6974 ac_cpp='$CPP $CPPFLAGS'
6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
6979 noexception_flags=
6980 save_CFLAGS="$CFLAGS"
6981 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6982 # Do the check with the no- prefix removed since gcc silently
6983 # accepts any -Wno-* option on purpose
6984 case $real_option in
6985 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6986 *) option=$real_option ;;
6987 esac
6988 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6991 $as_echo_n "checking whether $CC supports $option... " >&6; }
6992 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 CFLAGS="$option"
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998
6999 int
7000 main ()
7001 {
7002
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 eval "$as_acx_Woption=yes"
7009 else
7010 eval "$as_acx_Woption=no"
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
7014 fi
7015 eval ac_res=\$$as_acx_Woption
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7017 $as_echo "$ac_res" >&6; }
7018 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7019 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7020 fi
7021 done
7022 CFLAGS="$save_CFLAGS"
7023 ac_ext=cpp
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7028
7029
7030
7031 # Enable expensive internal checks
7032 is_release=
7033 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7034 is_release=yes
7035 fi
7036
7037 # Check whether --enable-checking was given.
7038 if test "${enable_checking+set}" = set; then :
7039 enableval=$enable_checking; ac_checking_flags="${enableval}"
7040 else
7041
7042 # Determine the default checks.
7043 if test x$is_release = x ; then
7044 ac_checking_flags=yes
7045 else
7046 ac_checking_flags=release
7047 fi
7048 fi
7049
7050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7051 for check in release $ac_checking_flags
7052 do
7053 case $check in
7054 # these set all the flags to specific states
7055 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7056 ac_fold_checking= ; ac_gc_checking=1 ;
7057 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7058 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7059 ac_tree_checking=1 ; ac_valgrind_checking= ;
7060 ac_types_checking=1 ;;
7061 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7062 ac_fold_checking= ; ac_gc_checking= ;
7063 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7064 ac_rtlflag_checking= ; ac_runtime_checking= ;
7065 ac_tree_checking= ; ac_valgrind_checking= ;
7066 ac_types_checking= ;;
7067 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7068 ac_fold_checking=1 ; ac_gc_checking=1 ;
7069 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7070 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7071 ac_tree_checking=1 ; ac_valgrind_checking= ;
7072 ac_types_checking=1 ;;
7073 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7074 ac_fold_checking= ; ac_gc_checking= ;
7075 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7076 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7077 ac_tree_checking= ; ac_valgrind_checking= ;
7078 ac_types_checking= ;;
7079 # these enable particular checks
7080 assert) ac_assert_checking=1 ;;
7081 df) ac_df_checking=1 ;;
7082 fold) ac_fold_checking=1 ;;
7083 gc) ac_gc_checking=1 ;;
7084 gcac) ac_gc_always_collect=1 ;;
7085 gimple) ac_gimple_checking=1 ;;
7086 misc) ac_checking=1 ;;
7087 rtl) ac_rtl_checking=1 ;;
7088 rtlflag) ac_rtlflag_checking=1 ;;
7089 runtime) ac_runtime_checking=1 ;;
7090 tree) ac_tree_checking=1 ;;
7091 types) ac_types_checking=1 ;;
7092 valgrind) ac_valgrind_checking=1 ;;
7093 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7094 esac
7095 done
7096 IFS="$ac_save_IFS"
7097
7098 nocommon_flag=""
7099 if test x$ac_checking != x ; then
7100
7101 $as_echo "#define CHECKING_P 1" >>confdefs.h
7102
7103 nocommon_flag=-fno-common
7104 else
7105 $as_echo "#define CHECKING_P 0" >>confdefs.h
7106
7107 fi
7108
7109 if test x$ac_df_checking != x ; then
7110
7111 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7112
7113 fi
7114 if test x$ac_assert_checking != x ; then
7115
7116 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7117
7118 fi
7119 if test x$ac_gimple_checking != x ; then
7120
7121 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7122
7123 fi
7124
7125 if test x$ac_runtime_checking != x ; then
7126
7127 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7128
7129 fi
7130 if test x$ac_tree_checking != x ; then
7131
7132 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7133
7134 TREECHECKING=yes
7135 fi
7136 if test x$ac_types_checking != x ; then
7137
7138 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7139
7140 fi
7141
7142 if test x$ac_rtl_checking != x ; then
7143
7144 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7145
7146 fi
7147 if test x$ac_rtlflag_checking != x ; then
7148
7149 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7150
7151 fi
7152 if test x$ac_gc_checking != x ; then
7153
7154 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7155
7156 fi
7157 if test x$ac_gc_always_collect != x ; then
7158
7159 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7160
7161 fi
7162 if test x$ac_fold_checking != x ; then
7163
7164 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7165
7166 fi
7167 valgrind_path_defines=
7168 valgrind_command=
7169
7170 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7171 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7172 have_valgrind_h=yes
7173 else
7174 have_valgrind_h=no
7175 fi
7176
7177
7178
7179 # It is certainly possible that there's valgrind but no valgrind.h.
7180 # GCC relies on making annotations so we must have both.
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7182 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <valgrind/memcheck.h>
7186 #ifndef VALGRIND_DISCARD
7187 #error VALGRIND_DISCARD not defined
7188 #endif
7189 _ACEOF
7190 if ac_fn_cxx_try_cpp "$LINENO"; then :
7191 gcc_cv_header_valgrind_memcheck_h=yes
7192 else
7193 gcc_cv_header_valgrind_memcheck_h=no
7194 fi
7195 rm -f conftest.err conftest.$ac_ext
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7197 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7199 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <memcheck.h>
7203 #ifndef VALGRIND_DISCARD
7204 #error VALGRIND_DISCARD not defined
7205 #endif
7206 _ACEOF
7207 if ac_fn_cxx_try_cpp "$LINENO"; then :
7208 gcc_cv_header_memcheck_h=yes
7209 else
7210 gcc_cv_header_memcheck_h=no
7211 fi
7212 rm -f conftest.err conftest.$ac_ext
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7214 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7215 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7216
7217 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7218
7219 fi
7220 if test $gcc_cv_header_memcheck_h = yes; then
7221
7222 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7223
7224 fi
7225
7226 if test x$ac_valgrind_checking != x ; then
7227
7228 # Prepare PATH_SEPARATOR.
7229 # The user is always right.
7230 if test "${PATH_SEPARATOR+set}" != set; then
7231 echo "#! /bin/sh" >conf$$.sh
7232 echo "exit 0" >>conf$$.sh
7233 chmod +x conf$$.sh
7234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7235 PATH_SEPARATOR=';'
7236 else
7237 PATH_SEPARATOR=:
7238 fi
7239 rm -f conf$$.sh
7240 fi
7241
7242 # Find out how to test for executable files. Don't use a zero-byte file,
7243 # as systems may use methods other than mode bits to determine executability.
7244 cat >conf$$.file <<_ASEOF
7245 #! /bin/sh
7246 exit 0
7247 _ASEOF
7248 chmod +x conf$$.file
7249 if test -x conf$$.file >/dev/null 2>&1; then
7250 ac_executable_p="test -x"
7251 else
7252 ac_executable_p="test -f"
7253 fi
7254 rm -f conf$$.file
7255
7256 # Extract the first word of "valgrind", so it can be a program name with args.
7257 set dummy valgrind; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 case "$valgrind_path" in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7269 for ac_dir in $PATH; do
7270 IFS="$ac_save_IFS"
7271 test -z "$ac_dir" && ac_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7274 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7275 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7276 break 2
7277 fi
7278 fi
7279 done
7280 done
7281 IFS="$ac_save_IFS"
7282 ;;
7283 esac
7284 fi
7285 valgrind_path="$ac_cv_path_valgrind_path"
7286 if test -n "$valgrind_path"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7288 $as_echo "$valgrind_path" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$valgrind_path" = "x" \
7295 || (test $have_valgrind_h = no \
7296 && test $gcc_cv_header_memcheck_h = no \
7297 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7298 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7299 fi
7300 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7301 valgrind_command="$valgrind_path -q"
7302
7303 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7304
7305 fi
7306
7307
7308
7309 # Enable code coverage collection
7310 # Check whether --enable-coverage was given.
7311 if test "${enable_coverage+set}" = set; then :
7312 enableval=$enable_coverage; case "${enableval}" in
7313 yes|noopt)
7314 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7315 ;;
7316 opt)
7317 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7318 ;;
7319 no)
7320 # a.k.a. --disable-coverage
7321 coverage_flags=""
7322 ;;
7323 *)
7324 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7325 ;;
7326 esac
7327 else
7328 coverage_flags=""
7329 fi
7330
7331
7332
7333 # Check whether --enable-gather-detailed-mem-stats was given.
7334 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7335 enableval=$enable_gather_detailed_mem_stats;
7336 else
7337 enable_gather_detailed_mem_stats=no
7338 fi
7339
7340 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7341
7342 cat >>confdefs.h <<_ACEOF
7343 #define GATHER_STATISTICS $gather_stats
7344 _ACEOF
7345
7346
7347 # Check whether --enable-valgrind-annotations was given.
7348 if test "${enable_valgrind_annotations+set}" = set; then :
7349 enableval=$enable_valgrind_annotations;
7350 else
7351 enable_valgrind_annotations=no
7352 fi
7353
7354 if test x$enable_valgrind_annotations != xno \
7355 || test x$ac_valgrind_checking != x; then
7356 if (test $have_valgrind_h = no \
7357 && test $gcc_cv_header_memcheck_h = no \
7358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7359 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7360 fi
7361
7362 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7363
7364 fi
7365
7366 # -------------------------------
7367 # Miscenalleous configure options
7368 # -------------------------------
7369
7370 # With stabs
7371
7372 # Check whether --with-stabs was given.
7373 if test "${with_stabs+set}" = set; then :
7374 withval=$with_stabs; stabs="$with_stabs"
7375 else
7376 stabs=no
7377 fi
7378
7379
7380 # Determine whether or not multilibs are enabled.
7381 # Check whether --enable-multilib was given.
7382 if test "${enable_multilib+set}" = set; then :
7383 enableval=$enable_multilib;
7384 else
7385 enable_multilib=yes
7386 fi
7387
7388
7389
7390 # Determine whether or not multiarch is enabled.
7391 # Check whether --enable-multiarch was given.
7392 if test "${enable_multiarch+set}" = set; then :
7393 enableval=$enable_multiarch; case "${enableval}" in
7394 yes|no|auto) enable_multiarch=$enableval;;
7395 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7396 esac
7397 else
7398 enable_multiarch=auto
7399 fi
7400
7401 if test x${enable_multiarch} = xauto; then
7402 if test x${with_native_system_header_dir} != x; then
7403 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7404 enable_multiarch=no
7405 fi
7406 if test x$host != x$target && test "x$with_sysroot" = x; then
7407 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7408 enable_multiarch=no
7409 fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7412 $as_echo_n "checking for multiarch configuration... " >&6; }
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7415 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7416
7417 # needed for setting the multiarch name for soft-float/hard-float ABIs
7418
7419
7420
7421 # Enable __cxa_atexit for C++.
7422 # Check whether --enable-__cxa_atexit was given.
7423 if test "${enable___cxa_atexit+set}" = set; then :
7424 enableval=$enable___cxa_atexit;
7425 fi
7426
7427
7428 # Enable C extension for decimal float if target supports it.
7429
7430 # Check whether --enable-decimal-float was given.
7431 if test "${enable_decimal_float+set}" = set; then :
7432 enableval=$enable_decimal_float;
7433 case $enable_decimal_float in
7434 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7435 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7436 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7437 esac
7438
7439 else
7440
7441 case $target in
7442 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7443 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7444 i?86*-*-mingw* | x86_64*-*-mingw* | \
7445 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7446 enable_decimal_float=yes
7447 ;;
7448 *)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7450 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7451 enable_decimal_float=no
7452 ;;
7453 esac
7454
7455 fi
7456
7457
7458 # x86's use BID format instead of DPD
7459 case x$enable_decimal_float in
7460 xyes)
7461 case $target in
7462 i?86*-*-* | x86_64*-*-*)
7463 enable_decimal_float=bid
7464 ;;
7465 *)
7466 enable_decimal_float=dpd
7467 ;;
7468 esac
7469 default_decimal_float=$enable_decimal_float
7470 ;;
7471 xno)
7472 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7473 # dependency on libdecnumber.
7474 default_decimal_float=dpd
7475 ;;
7476 esac
7477
7478
7479
7480
7481 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7482
7483 cat >>confdefs.h <<_ACEOF
7484 #define ENABLE_DECIMAL_FLOAT $dfp
7485 _ACEOF
7486
7487
7488 # Use default_decimal_float for dependency.
7489 enable_decimal_float=$default_decimal_float
7490
7491 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7492
7493 cat >>confdefs.h <<_ACEOF
7494 #define ENABLE_DECIMAL_BID_FORMAT $bid
7495 _ACEOF
7496
7497
7498 # Enable C extension for fixed-point arithmetic.
7499 # Check whether --enable-fixed-point was given.
7500 if test "${enable_fixed_point+set}" = set; then :
7501 enableval=$enable_fixed_point;
7502 else
7503
7504 case $target in
7505 arm*)
7506 enable_fixed_point=yes
7507 ;;
7508
7509 mips*-*-*)
7510 enable_fixed_point=yes
7511 ;;
7512 *)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7514 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7515 enable_fixed_point=no
7516 ;;
7517 esac
7518
7519 fi
7520
7521
7522
7523 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_FIXED_POINT $fixedpoint
7527 _ACEOF
7528
7529
7530 # Enable threads
7531 # Pass with no value to take the default
7532 # Pass with a value to specify a thread package
7533 # Check whether --enable-threads was given.
7534 if test "${enable_threads+set}" = set; then :
7535 enableval=$enable_threads;
7536 else
7537 enable_threads=''
7538 fi
7539
7540
7541 # Check whether --enable-tls was given.
7542 if test "${enable_tls+set}" = set; then :
7543 enableval=$enable_tls;
7544 case $enable_tls in
7545 yes | no) ;;
7546 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7547 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7548 esac
7549
7550 else
7551 enable_tls=''
7552 fi
7553
7554
7555 # Check whether --enable-objc-gc was given.
7556 if test "${enable_objc_gc+set}" = set; then :
7557 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7558 objc_boehm_gc=''
7559 else
7560 objc_boehm_gc=1
7561 fi
7562 else
7563 objc_boehm_gc=''
7564 fi
7565
7566
7567
7568 # Check whether --with-dwarf2 was given.
7569 if test "${with_dwarf2+set}" = set; then :
7570 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7571 else
7572 dwarf2=no
7573 fi
7574
7575
7576 # Check whether --enable-shared was given.
7577 if test "${enable_shared+set}" = set; then :
7578 enableval=$enable_shared;
7579 case $enable_shared in
7580 yes | no) ;;
7581 *)
7582 enable_shared=no
7583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7584 for pkg in $enableval; do
7585 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7586 enable_shared=yes
7587 fi
7588 done
7589 IFS="$ac_save_ifs"
7590 ;;
7591 esac
7592
7593 else
7594 enable_shared=yes
7595 fi
7596
7597
7598
7599
7600 # Check whether --with-specs was given.
7601 if test "${with_specs+set}" = set; then :
7602 withval=$with_specs; CONFIGURE_SPECS=$withval
7603 else
7604 CONFIGURE_SPECS=
7605
7606 fi
7607
7608
7609
7610
7611
7612 # Check whether --with-pkgversion was given.
7613 if test "${with_pkgversion+set}" = set; then :
7614 withval=$with_pkgversion; case "$withval" in
7615 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7616 no) PKGVERSION= ;;
7617 *) PKGVERSION="($withval) " ;;
7618 esac
7619 else
7620 PKGVERSION="(GCC) "
7621
7622 fi
7623
7624
7625
7626
7627
7628 # Check whether --with-bugurl was given.
7629 if test "${with_bugurl+set}" = set; then :
7630 withval=$with_bugurl; case "$withval" in
7631 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7632 no) BUGURL=
7633 ;;
7634 *) BUGURL="$withval"
7635 ;;
7636 esac
7637 else
7638 BUGURL="http://gcc.gnu.org/bugs.html"
7639
7640 fi
7641
7642 case ${BUGURL} in
7643 "")
7644 REPORT_BUGS_TO=
7645 REPORT_BUGS_TEXI=
7646 ;;
7647 *)
7648 REPORT_BUGS_TO="<$BUGURL>"
7649 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7650 ;;
7651 esac;
7652
7653
7654
7655
7656 # Sanity check enable_languages in case someone does not run the toplevel
7657 # configure # script.
7658 # Check whether --enable-languages was given.
7659 if test "${enable_languages+set}" = set; then :
7660 enableval=$enable_languages; case ,${enable_languages}, in
7661 ,,|,yes,)
7662 # go safe -- we cannot be much sure without the toplevel
7663 # configure's
7664 # analysis of which target libs are present and usable
7665 enable_languages=c
7666 ;;
7667 *,all,*)
7668 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7669 ;;
7670 *,c,*)
7671 ;;
7672 *)
7673 enable_languages=c,${enable_languages}
7674 ;;
7675 esac
7676 else
7677 enable_languages=c
7678 fi
7679
7680
7681 if test x"$enable_as_accelerator_for" != x; then
7682
7683 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7684
7685 enable_as_accelerator=yes
7686 case "${target}" in
7687 *-intelmicemul-*)
7688 # In this case we expect offload compiler to be built as native, so we
7689 # need to rename the driver to avoid clashes with host's drivers.
7690 program_transform_name="s&^&${target}-&" ;;
7691 esac
7692 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7693 program_transform_name=`echo $program_transform_name | sed $sedscript`
7694 accel_dir_suffix=/accel/${target_noncanonical}
7695 real_target_noncanonical=${enable_as_accelerator_for}
7696 fi
7697
7698
7699
7700
7701 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7702 tgt=`echo $tgt | sed 's/=.*//'`
7703 if test x"$offload_targets" = x; then
7704 offload_targets=$tgt
7705 else
7706 offload_targets="$offload_targets,$tgt"
7707 fi
7708 done
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define OFFLOAD_TARGETS "$offload_targets"
7712 _ACEOF
7713
7714 if test x"$offload_targets" != x; then
7715
7716 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7717
7718 else
7719
7720 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7721
7722 fi
7723
7724
7725 # Check whether --with-multilib-list was given.
7726 if test "${with_multilib_list+set}" = set; then :
7727 withval=$with_multilib_list; :
7728 else
7729 with_multilib_list=default
7730 fi
7731
7732
7733 # -------------------------
7734 # Checks for other programs
7735 # -------------------------
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7738 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7739 set x ${MAKE-make}
7740 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 cat >conftest.make <<\_ACEOF
7745 SHELL = /bin/sh
7746 all:
7747 @echo '@@@%%%=$(MAKE)=@@@%%%'
7748 _ACEOF
7749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7750 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7751 *@@@%%%=?*=@@@%%%*)
7752 eval ac_cv_prog_make_${ac_make}_set=yes;;
7753 *)
7754 eval ac_cv_prog_make_${ac_make}_set=no;;
7755 esac
7756 rm -f conftest.make
7757 fi
7758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760 $as_echo "yes" >&6; }
7761 SET_MAKE=
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 SET_MAKE="MAKE=${MAKE-make}"
7766 fi
7767
7768
7769 # Find some useful tools
7770 for ac_prog in gawk mawk nawk awk
7771 do
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_AWK+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$AWK"; then
7780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_AWK="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 AWK=$ac_cv_prog_AWK
7800 if test -n "$AWK"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7802 $as_echo "$AWK" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 test -n "$AWK" && break
7810 done
7811
7812 # We need awk to create options.c and options.h.
7813 # Bail out if it's missing.
7814 case ${AWK} in
7815 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7816 esac
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7819 $as_echo_n "checking whether ln -s works... " >&6; }
7820 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 rm -f conftestdata_t
7824 echo >conftestdata_f
7825 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7826 then
7827 gcc_cv_prog_LN_S="ln -s"
7828 else
7829 if ln conftestdata_f conftestdata_t 2>/dev/null
7830 then
7831 gcc_cv_prog_LN_S=ln
7832 else
7833 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7834 then
7835 gcc_cv_prog_LN_S="cp -p"
7836 else
7837 gcc_cv_prog_LN_S=cp
7838 fi
7839 fi
7840 fi
7841 rm -f conftestdata_f conftestdata_t
7842
7843 fi
7844 LN_S="$gcc_cv_prog_LN_S"
7845 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848 else
7849 if test "$gcc_cv_prog_LN_S" = "ln"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7851 $as_echo "no, using ln" >&6; }
7852 else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7854 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7855 fi
7856 fi
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7859 $as_echo_n "checking whether ln works... " >&6; }
7860 if test "${acx_cv_prog_LN+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 rm -f conftestdata_t
7864 echo >conftestdata_f
7865 if ln conftestdata_f conftestdata_t 2>/dev/null
7866 then
7867 acx_cv_prog_LN=ln
7868 else
7869 acx_cv_prog_LN=no
7870 fi
7871 rm -f conftestdata_f conftestdata_t
7872
7873 fi
7874 if test $acx_cv_prog_LN = no; then
7875 LN="$LN_S"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7877 $as_echo "no, using $LN" >&6; }
7878 else
7879 LN="$acx_cv_prog_LN"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881 $as_echo "yes" >&6; }
7882 fi
7883
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$RANLIB"; then
7893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 RANLIB=$ac_cv_prog_RANLIB
7913 if test -n "$RANLIB"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7915 $as_echo "$RANLIB" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 fi
7923 if test -z "$ac_cv_prog_RANLIB"; then
7924 ac_ct_RANLIB=$RANLIB
7925 # Extract the first word of "ranlib", so it can be a program name with args.
7926 set dummy ranlib; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$ac_ct_RANLIB"; then
7933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_ac_ct_RANLIB="ranlib"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7953 if test -n "$ac_ct_RANLIB"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7955 $as_echo "$ac_ct_RANLIB" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961 if test "x$ac_ct_RANLIB" = x; then
7962 RANLIB=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 RANLIB=$ac_ct_RANLIB
7971 fi
7972 else
7973 RANLIB="$ac_cv_prog_RANLIB"
7974 fi
7975
7976 ranlib_flags=""
7977
7978
7979 # Find a good install program. We prefer a C program (faster),
7980 # so one script is as good as another. But avoid the broken or
7981 # incompatible versions:
7982 # SysV /etc/install, /usr/sbin/install
7983 # SunOS /usr/etc/install
7984 # IRIX /sbin/install
7985 # AIX /bin/install
7986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7988 # ./install, which can be erroneously created by make from ./install.sh.
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7990 $as_echo_n "checking for a BSD compatible install... " >&6; }
7991 if test -z "$INSTALL"; then
7992 if test "${ac_cv_path_install+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7996 for ac_dir in $PATH; do
7997 # Account for people who put trailing slashes in PATH elements.
7998 case "$ac_dir/" in
7999 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8000 *)
8001 # OSF1 and SCO ODT 3.0 have their own names for install.
8002 for ac_prog in ginstall scoinst install; do
8003 if test -f $ac_dir/$ac_prog; then
8004 if test $ac_prog = install &&
8005 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8006 # AIX install. It has an incompatible calling convention.
8007 # OSF/1 installbsd also uses dspmsg, but is usable.
8008 :
8009 else
8010 ac_cv_path_install="$ac_dir/$ac_prog -c"
8011 break 2
8012 fi
8013 fi
8014 done
8015 ;;
8016 esac
8017 done
8018 IFS="$ac_save_IFS"
8019
8020 fi
8021 if test "${ac_cv_path_install+set}" = set; then
8022 INSTALL="$ac_cv_path_install"
8023 else
8024 # As a last resort, use the slow shell script. We don't cache a
8025 # path for INSTALL within a source directory, because that will
8026 # break other packages using the cache if that directory is
8027 # removed, or if the path is relative.
8028 INSTALL="$ac_install_sh"
8029 fi
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8032 $as_echo "$INSTALL" >&6; }
8033
8034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8035 # It thinks the first close brace ends the variable substitution.
8036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8037
8038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8039
8040
8041 # See if cmp has --ignore-initial.
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8043 $as_echo_n "checking for cmp's capabilities... " >&6; }
8044 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 echo abfoo >t1
8048 echo cdfoo >t2
8049 gcc_cv_prog_cmp_skip=slowcompare
8050 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8051 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8052 :
8053 else
8054 gcc_cv_prog_cmp_skip=gnucompare
8055 fi
8056 fi
8057 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8058 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8059 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8060 :
8061 else
8062 gcc_cv_prog_cmp_skip=fastcompare
8063 fi
8064 fi
8065 fi
8066 rm t1 t2
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8070 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8071 make_compare_target=$gcc_cv_prog_cmp_skip
8072
8073
8074
8075 # See if we have the mktemp command.
8076 # Extract the first word of "mktemp", so it can be a program name with args.
8077 set dummy mktemp; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 if test -n "$have_mktemp_command"; then
8084 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_have_mktemp_command="yes"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097 done
8098 done
8099 IFS=$as_save_IFS
8100
8101 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8102 fi
8103 fi
8104 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8105 if test -n "$have_mktemp_command"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8107 $as_echo "$have_mktemp_command" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114
8115 # See if makeinfo has been installed and is modern enough
8116 # that we can use it.
8117
8118 # Extract the first word of "makeinfo", so it can be a program name with args.
8119 set dummy makeinfo; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$MAKEINFO"; then
8126 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_MAKEINFO="makeinfo"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 MAKEINFO=$ac_cv_prog_MAKEINFO
8146 if test -n "$MAKEINFO"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8148 $as_echo "$MAKEINFO" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153
8154
8155 if test -n "$MAKEINFO"; then
8156 # Found it, now check the version.
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8158 $as_echo_n "checking for modern makeinfo... " >&6; }
8159 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8163 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8164
8165 case $ac_prog_version in
8166 '') gcc_cv_prog_makeinfo_modern=no;;
8167 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8168 *) gcc_cv_prog_makeinfo_modern=no;;
8169 esac
8170
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8173 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8174 else
8175 gcc_cv_prog_makeinfo_modern=no
8176 fi
8177 if test $gcc_cv_prog_makeinfo_modern = no; then
8178 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8179 fi
8180
8181 if test $gcc_cv_prog_makeinfo_modern = no; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8183 *** Makeinfo is missing or too old.
8184 *** Info documentation will not be built." >&5
8185 $as_echo "$as_me: WARNING:
8186 *** Makeinfo is missing or too old.
8187 *** Info documentation will not be built." >&2;}
8188 BUILD_INFO=
8189 else
8190 BUILD_INFO=info
8191 fi
8192
8193
8194 # Is pod2man recent enough to regenerate manpages?
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8196 $as_echo_n "checking for recent Pod::Man... " >&6; }
8197 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8199 $as_echo "yes" >&6; }
8200 GENERATED_MANPAGES=generated-manpages
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 GENERATED_MANPAGES=
8205 fi
8206
8207
8208 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8209
8210 # How about lex?
8211 for ac_prog in flex
8212 do
8213 # Extract the first word of "$ac_prog", so it can be a program name with args.
8214 set dummy $ac_prog; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_FLEX+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$FLEX"; then
8221 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_FLEX="$ac_prog"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 FLEX=$ac_cv_prog_FLEX
8241 if test -n "$FLEX"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8243 $as_echo "$FLEX" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249
8250 test -n "$FLEX" && break
8251 done
8252 test -n "$FLEX" || FLEX="$MISSING flex"
8253
8254
8255 # Bison?
8256 for ac_prog in bison
8257 do
8258 # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy $ac_prog; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_BISON+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 if test -n "$BISON"; then
8266 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_BISON="$ac_prog"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 BISON=$ac_cv_prog_BISON
8286 if test -n "$BISON"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8288 $as_echo "$BISON" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294
8295 test -n "$BISON" && break
8296 done
8297 test -n "$BISON" || BISON="$MISSING bison"
8298
8299
8300 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8301 # check for build == host before using them.
8302
8303 # NM
8304 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8305 && test -d ../binutils ; then
8306 NM='${objdir}/../binutils/nm-new'
8307 else
8308 # Extract the first word of "nm", so it can be a program name with args.
8309 set dummy nm; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_NM+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$NM"; then
8316 ac_cv_prog_NM="$NM" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_NM="nm"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8334 fi
8335 fi
8336 NM=$ac_cv_prog_NM
8337 if test -n "$NM"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8339 $as_echo "$NM" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346 fi
8347
8348 # AR
8349 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8350 && test -d ../binutils ; then
8351 AR='${objdir}/../binutils/ar'
8352 else
8353 # Extract the first word of "ar", so it can be a program name with args.
8354 set dummy ar; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if test "${ac_cv_prog_AR+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$AR"; then
8361 ac_cv_prog_AR="$AR" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_AR="ar"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8379 fi
8380 fi
8381 AR=$ac_cv_prog_AR
8382 if test -n "$AR"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8384 $as_echo "$AR" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391 fi
8392
8393 # The jit documentation looks better if built with sphinx, but can be
8394 # built with texinfo if sphinx is not available.
8395 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8396 # Extract the first word of "sphinx-build", so it can be a program name with args.
8397 set dummy sphinx-build; ac_word=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 if test -n "$doc_build_sys"; then
8404 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_prog_doc_build_sys="sphinx"
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8422 fi
8423 fi
8424 doc_build_sys=$ac_cv_prog_doc_build_sys
8425 if test -n "$doc_build_sys"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8427 $as_echo "$doc_build_sys" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434
8435 # --------------------
8436 # Checks for C headers
8437 # --------------------
8438
8439 # Need to reject headers which give warnings, so that the -Werror bootstrap
8440 # works later. *sigh* This needs to come before all header checks.
8441
8442 ac_c_preproc_warn_flag=yes
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8445 $as_echo_n "checking for ANSI C header files... " >&6; }
8446 if test "${ac_cv_header_stdc+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 #include <stdlib.h>
8452 #include <stdarg.h>
8453 #include <string.h>
8454 #include <float.h>
8455
8456 int
8457 main ()
8458 {
8459
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_cxx_try_compile "$LINENO"; then :
8465 ac_cv_header_stdc=yes
8466 else
8467 ac_cv_header_stdc=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470
8471 if test $ac_cv_header_stdc = yes; then
8472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <string.h>
8476
8477 _ACEOF
8478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8479 $EGREP "memchr" >/dev/null 2>&1; then :
8480
8481 else
8482 ac_cv_header_stdc=no
8483 fi
8484 rm -f conftest*
8485
8486 fi
8487
8488 if test $ac_cv_header_stdc = yes; then
8489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 #include <stdlib.h>
8493
8494 _ACEOF
8495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8496 $EGREP "free" >/dev/null 2>&1; then :
8497
8498 else
8499 ac_cv_header_stdc=no
8500 fi
8501 rm -f conftest*
8502
8503 fi
8504
8505 if test $ac_cv_header_stdc = yes; then
8506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8507 if test "$cross_compiling" = yes; then :
8508 :
8509 else
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <ctype.h>
8513 #include <stdlib.h>
8514 #if ((' ' & 0x0FF) == 0x020)
8515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8517 #else
8518 # define ISLOWER(c) \
8519 (('a' <= (c) && (c) <= 'i') \
8520 || ('j' <= (c) && (c) <= 'r') \
8521 || ('s' <= (c) && (c) <= 'z'))
8522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8523 #endif
8524
8525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8526 int
8527 main ()
8528 {
8529 int i;
8530 for (i = 0; i < 256; i++)
8531 if (XOR (islower (i), ISLOWER (i))
8532 || toupper (i) != TOUPPER (i))
8533 return 2;
8534 return 0;
8535 }
8536 _ACEOF
8537 if ac_fn_cxx_try_run "$LINENO"; then :
8538
8539 else
8540 ac_cv_header_stdc=no
8541 fi
8542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8543 conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 fi
8545
8546 fi
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8549 $as_echo "$ac_cv_header_stdc" >&6; }
8550 if test $ac_cv_header_stdc = yes; then
8551
8552 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8553
8554 fi
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8557 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8558 if test "${ac_cv_header_time+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 #include <sys/types.h>
8564 #include <sys/time.h>
8565 #include <time.h>
8566
8567 int
8568 main ()
8569 {
8570 if ((struct tm *) 0)
8571 return 0;
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_cxx_try_compile "$LINENO"; then :
8577 ac_cv_header_time=yes
8578 else
8579 ac_cv_header_time=no
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8584 $as_echo "$ac_cv_header_time" >&6; }
8585 if test $ac_cv_header_time = yes; then
8586
8587 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8588
8589 fi
8590
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8592 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8593 if test "${gcc_cv_header_string+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <string.h>
8599 #include <strings.h>
8600 int
8601 main ()
8602 {
8603
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_cxx_try_compile "$LINENO"; then :
8609 gcc_cv_header_string=yes
8610 else
8611 gcc_cv_header_string=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8616 $as_echo "$gcc_cv_header_string" >&6; }
8617 if test $gcc_cv_header_string = yes; then
8618
8619 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8620
8621 fi
8622
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8624 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8625 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 #include <sys/types.h>
8631 #include <sys/wait.h>
8632 #ifndef WEXITSTATUS
8633 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8634 #endif
8635 #ifndef WIFEXITED
8636 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8637 #endif
8638
8639 int
8640 main ()
8641 {
8642 int s;
8643 wait (&s);
8644 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_cxx_try_compile "$LINENO"; then :
8650 ac_cv_header_sys_wait_h=yes
8651 else
8652 ac_cv_header_sys_wait_h=no
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8657 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8658 if test $ac_cv_header_sys_wait_h = yes; then
8659
8660 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8661
8662 fi
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8665 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8666 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 #include <sys/types.h>
8672 #include <termios.h>
8673 #ifdef TIOCGWINSZ
8674 yes
8675 #endif
8676
8677 _ACEOF
8678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8679 $EGREP "yes" >/dev/null 2>&1; then :
8680 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8681 else
8682 ac_cv_sys_tiocgwinsz_in_termios_h=no
8683 fi
8684 rm -f conftest*
8685
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8688 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8689
8690 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8692 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8693 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <sys/types.h>
8699 #include <sys/ioctl.h>
8700 #ifdef TIOCGWINSZ
8701 yes
8702 #endif
8703
8704 _ACEOF
8705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706 $EGREP "yes" >/dev/null 2>&1; then :
8707 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8708 else
8709 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8710 fi
8711 rm -f conftest*
8712
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8715 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8716
8717 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8718
8719 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8720
8721 fi
8722 fi
8723
8724 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8725 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8726 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8727 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8728 do :
8729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8730 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8731 eval as_val=\$$as_ac_Header
8732 if test "x$as_val" = x""yes; then :
8733 cat >>confdefs.h <<_ACEOF
8734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 _ACEOF
8736
8737 fi
8738 done
8739
8740
8741 # Check for thread headers.
8742 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8743 if test "x$ac_cv_header_thread_h" = x""yes; then :
8744 have_thread_h=yes
8745 else
8746 have_thread_h=
8747 fi
8748
8749 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8750 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8751 have_pthread_h=yes
8752 else
8753 have_pthread_h=
8754 fi
8755
8756
8757 # These tests can't be done till we know if we have limits.h.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8759 $as_echo_n "checking for CHAR_BIT... " >&6; }
8760 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 #ifdef HAVE_LIMITS_H
8766 #include <limits.h>
8767 #endif
8768 #ifdef CHAR_BIT
8769 found
8770 #endif
8771 _ACEOF
8772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8773 $EGREP "found" >/dev/null 2>&1; then :
8774 gcc_cv_decl_char_bit=yes
8775 else
8776 gcc_cv_decl_char_bit=no
8777 fi
8778 rm -f conftest*
8779
8780
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8783 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8784 if test $gcc_cv_decl_char_bit = no; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8786 $as_echo_n "checking number of bits in a byte... " >&6; }
8787 if test "${gcc_cv_c_nbby+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 i=8
8791 gcc_cv_c_nbby=
8792 while test $i -lt 65; do
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795
8796 int
8797 main ()
8798 {
8799 switch(0) {
8800 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8801 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8802 ; }
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_cxx_try_compile "$LINENO"; then :
8808 gcc_cv_c_nbby=$i; break
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 i=`expr $i + 1`
8812 done
8813 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8814
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8817 $as_echo "$gcc_cv_c_nbby" >&6; }
8818 if test $gcc_cv_c_nbby = failed; then
8819 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8820 else
8821
8822 cat >>confdefs.h <<_ACEOF
8823 #define CHAR_BIT $gcc_cv_c_nbby
8824 _ACEOF
8825
8826 fi
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8829 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8830 if test "${ac_cv_c_bigendian+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 ac_cv_c_bigendian=unknown
8834 # See if we're dealing with a universal compiler.
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 #ifndef __APPLE_CC__
8838 not a universal capable compiler
8839 #endif
8840 typedef int dummy;
8841
8842 _ACEOF
8843 if ac_fn_cxx_try_compile "$LINENO"; then :
8844
8845 # Check for potential -arch flags. It is not universal unless
8846 # there are at least two -arch flags with different values.
8847 ac_arch=
8848 ac_prev=
8849 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8850 if test -n "$ac_prev"; then
8851 case $ac_word in
8852 i?86 | x86_64 | ppc | ppc64)
8853 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8854 ac_arch=$ac_word
8855 else
8856 ac_cv_c_bigendian=universal
8857 break
8858 fi
8859 ;;
8860 esac
8861 ac_prev=
8862 elif test "x$ac_word" = "x-arch"; then
8863 ac_prev=arch
8864 fi
8865 done
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 if test $ac_cv_c_bigendian = unknown; then
8869 # See if sys/param.h defines the BYTE_ORDER macro.
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <sys/types.h>
8873 #include <sys/param.h>
8874
8875 int
8876 main ()
8877 {
8878 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8879 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8880 && LITTLE_ENDIAN)
8881 bogus endian macros
8882 #endif
8883
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_cxx_try_compile "$LINENO"; then :
8889 # It does; now see whether it defined to BIG_ENDIAN or not.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #include <sys/types.h>
8893 #include <sys/param.h>
8894
8895 int
8896 main ()
8897 {
8898 #if BYTE_ORDER != BIG_ENDIAN
8899 not big endian
8900 #endif
8901
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_cxx_try_compile "$LINENO"; then :
8907 ac_cv_c_bigendian=yes
8908 else
8909 ac_cv_c_bigendian=no
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 fi
8915 if test $ac_cv_c_bigendian = unknown; then
8916 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919 #include <limits.h>
8920
8921 int
8922 main ()
8923 {
8924 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8925 bogus endian macros
8926 #endif
8927
8928 ;
8929 return 0;
8930 }
8931 _ACEOF
8932 if ac_fn_cxx_try_compile "$LINENO"; then :
8933 # It does; now see whether it defined to _BIG_ENDIAN or not.
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <limits.h>
8937
8938 int
8939 main ()
8940 {
8941 #ifndef _BIG_ENDIAN
8942 not big endian
8943 #endif
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_cxx_try_compile "$LINENO"; then :
8950 ac_cv_c_bigendian=yes
8951 else
8952 ac_cv_c_bigendian=no
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958 if test $ac_cv_c_bigendian = unknown; then
8959 # Compile a test program.
8960 if test "$cross_compiling" = yes; then :
8961 # Try to guess by grepping values from an object file.
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 short int ascii_mm[] =
8965 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8966 short int ascii_ii[] =
8967 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8968 int use_ascii (int i) {
8969 return ascii_mm[i] + ascii_ii[i];
8970 }
8971 short int ebcdic_ii[] =
8972 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8973 short int ebcdic_mm[] =
8974 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8975 int use_ebcdic (int i) {
8976 return ebcdic_mm[i] + ebcdic_ii[i];
8977 }
8978 extern int foo;
8979
8980 int
8981 main ()
8982 {
8983 return use_ascii (foo) == use_ebcdic (foo);
8984 ;
8985 return 0;
8986 }
8987 _ACEOF
8988 if ac_fn_cxx_try_compile "$LINENO"; then :
8989 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8990 ac_cv_c_bigendian=yes
8991 fi
8992 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8993 if test "$ac_cv_c_bigendian" = unknown; then
8994 ac_cv_c_bigendian=no
8995 else
8996 # finding both strings is unlikely to happen, but who knows?
8997 ac_cv_c_bigendian=unknown
8998 fi
8999 fi
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 else
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 int
9007 main ()
9008 {
9009
9010 /* Are we little or big endian? From Harbison&Steele. */
9011 union
9012 {
9013 long int l;
9014 char c[sizeof (long int)];
9015 } u;
9016 u.l = 1;
9017 return u.c[sizeof (long int) - 1] == 1;
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_cxx_try_run "$LINENO"; then :
9024 ac_cv_c_bigendian=no
9025 else
9026 ac_cv_c_bigendian=yes
9027 fi
9028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9029 conftest.$ac_objext conftest.beam conftest.$ac_ext
9030 fi
9031
9032 fi
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9035 $as_echo "$ac_cv_c_bigendian" >&6; }
9036 case $ac_cv_c_bigendian in #(
9037 yes)
9038 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9039 ;; #(
9040 no)
9041 ;; #(
9042 universal)
9043
9044 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9045
9046 ;; #(
9047 *)
9048 as_fn_error "unknown endianness
9049 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9050 esac
9051
9052
9053 # ----------------------
9054 # Checks for C++ headers
9055 # ----------------------
9056
9057 ac_ext=cpp
9058 ac_cpp='$CXXCPP $CPPFLAGS'
9059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9063 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9064 if test -z "$CXXCPP"; then
9065 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 # Double quotes because CXXCPP needs to be expanded
9069 for CXXCPP in "$CXX -E" "/lib/cpp"
9070 do
9071 ac_preproc_ok=false
9072 for ac_cxx_preproc_warn_flag in '' yes
9073 do
9074 # Use a header file that comes with gcc, so configuring glibc
9075 # with a fresh cross-compiler works.
9076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077 # <limits.h> exists even on freestanding compilers.
9078 # On the NeXT, cc -E runs the code through the compiler's parser,
9079 # not just through cpp. "Syntax error" is here to catch this case.
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 #ifdef __STDC__
9083 # include <limits.h>
9084 #else
9085 # include <assert.h>
9086 #endif
9087 Syntax error
9088 _ACEOF
9089 if ac_fn_cxx_try_cpp "$LINENO"; then :
9090
9091 else
9092 # Broken: fails on valid input.
9093 continue
9094 fi
9095 rm -f conftest.err conftest.$ac_ext
9096
9097 # OK, works on sane cases. Now check whether nonexistent headers
9098 # can be detected and how.
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 #include <ac_nonexistent.h>
9102 _ACEOF
9103 if ac_fn_cxx_try_cpp "$LINENO"; then :
9104 # Broken: success on invalid input.
9105 continue
9106 else
9107 # Passes both tests.
9108 ac_preproc_ok=:
9109 break
9110 fi
9111 rm -f conftest.err conftest.$ac_ext
9112
9113 done
9114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9115 rm -f conftest.err conftest.$ac_ext
9116 if $ac_preproc_ok; then :
9117 break
9118 fi
9119
9120 done
9121 ac_cv_prog_CXXCPP=$CXXCPP
9122
9123 fi
9124 CXXCPP=$ac_cv_prog_CXXCPP
9125 else
9126 ac_cv_prog_CXXCPP=$CXXCPP
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9129 $as_echo "$CXXCPP" >&6; }
9130 ac_preproc_ok=false
9131 for ac_cxx_preproc_warn_flag in '' yes
9132 do
9133 # Use a header file that comes with gcc, so configuring glibc
9134 # with a fresh cross-compiler works.
9135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9136 # <limits.h> exists even on freestanding compilers.
9137 # On the NeXT, cc -E runs the code through the compiler's parser,
9138 # not just through cpp. "Syntax error" is here to catch this case.
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 #ifdef __STDC__
9142 # include <limits.h>
9143 #else
9144 # include <assert.h>
9145 #endif
9146 Syntax error
9147 _ACEOF
9148 if ac_fn_cxx_try_cpp "$LINENO"; then :
9149
9150 else
9151 # Broken: fails on valid input.
9152 continue
9153 fi
9154 rm -f conftest.err conftest.$ac_ext
9155
9156 # OK, works on sane cases. Now check whether nonexistent headers
9157 # can be detected and how.
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 #include <ac_nonexistent.h>
9161 _ACEOF
9162 if ac_fn_cxx_try_cpp "$LINENO"; then :
9163 # Broken: success on invalid input.
9164 continue
9165 else
9166 # Passes both tests.
9167 ac_preproc_ok=:
9168 break
9169 fi
9170 rm -f conftest.err conftest.$ac_ext
9171
9172 done
9173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9174 rm -f conftest.err conftest.$ac_ext
9175 if $ac_preproc_ok; then :
9176
9177 else
9178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9181 See \`config.log' for more details." >&5
9182 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9183 See \`config.log' for more details." >&2;}; }
9184 fi
9185
9186 ac_ext=cpp
9187 ac_cpp='$CXXCPP $CPPFLAGS'
9188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9191
9192
9193 for ac_header in unordered_map
9194 do :
9195 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9196 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_UNORDERED_MAP 1
9199 _ACEOF
9200
9201 fi
9202 done
9203
9204 for ac_header in tr1/unordered_map
9205 do :
9206 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9207 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_TR1_UNORDERED_MAP 1
9210 _ACEOF
9211
9212 fi
9213 done
9214
9215 for ac_header in ext/hash_map
9216 do :
9217 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9218 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_EXT_HASH_MAP 1
9221 _ACEOF
9222
9223 fi
9224 done
9225
9226
9227 # --------
9228 # Dependency checking.
9229 # --------
9230
9231 rm -rf .tst 2>/dev/null
9232 mkdir .tst 2>/dev/null
9233 if test -d .tst; then
9234 am__leading_dot=.
9235 else
9236 am__leading_dot=_
9237 fi
9238 rmdir .tst 2>/dev/null
9239
9240 DEPDIR="${am__leading_dot}deps"
9241
9242 ac_config_commands="$ac_config_commands depdir"
9243
9244
9245 ac_config_commands="$ac_config_commands gccdepdir"
9246
9247
9248 depcc="$CXX" am_compiler_list=
9249
9250 am_depcomp=$ac_aux_dir/depcomp
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9252 $as_echo_n "checking dependency style of $depcc... " >&6; }
9253 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 if test -f "$am_depcomp"; then
9257 # We make a subdir and do the tests there. Otherwise we can end up
9258 # making bogus files that we don't know about and never remove. For
9259 # instance it was reported that on HP-UX the gcc test will end up
9260 # making a dummy file named `D' -- because `-MD' means `put the output
9261 # in D'.
9262 mkdir conftest.dir
9263 # Copy depcomp to subdir because otherwise we won't find it if we're
9264 # using a relative directory.
9265 cp "$am_depcomp" conftest.dir
9266 cd conftest.dir
9267 # We will build objects and dependencies in a subdirectory because
9268 # it helps to detect inapplicable dependency modes. For instance
9269 # both Tru64's cc and ICC support -MD to output dependencies as a
9270 # side effect of compilation, but ICC will put the dependencies in
9271 # the current directory while Tru64 will put them in the object
9272 # directory.
9273 mkdir sub
9274
9275 am_cv_CXX_dependencies_compiler_type=none
9276 if test "$am_compiler_list" = ""; then
9277 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9278 fi
9279 for depmode in $am_compiler_list; do
9280 if test $depmode = none; then break; fi
9281
9282 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9283 # Setup a source with many dependencies, because some compilers
9284 # like to wrap large dependency lists on column 80 (with \), and
9285 # we should not choose a depcomp mode which is confused by this.
9286 #
9287 # We need to recreate these files for each test, as the compiler may
9288 # overwrite some of them when testing with obscure command lines.
9289 # This happens at least with the AIX C compiler.
9290 : > sub/conftest.c
9291 for i in 1 2 3 4 5 6; do
9292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9293 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9294 # Solaris 8's {/usr,}/bin/sh.
9295 touch sub/conftst$i.h
9296 done
9297 echo "include sub/conftest.Po" > confmf
9298
9299 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9300 # mode. It turns out that the SunPro C++ compiler does not properly
9301 # handle `-M -o', and we need to detect this.
9302 depcmd="depmode=$depmode \
9303 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9305 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9306 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9307 if env $depcmd > conftest.err 2>&1 &&
9308 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9309 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9310 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9311 # icc doesn't choke on unknown options, it will just issue warnings
9312 # or remarks (even with -Werror). So we grep stderr for any message
9313 # that says an option was ignored or not supported.
9314 # When given -MP, icc 7.0 and 7.1 complain thusly:
9315 # icc: Command line warning: ignoring option '-M'; no argument required
9316 # The diagnosis changed in icc 8.0:
9317 # icc: Command line remark: option '-MP' not supported
9318 if (grep 'ignoring option' conftest.err ||
9319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9320 am_cv_CXX_dependencies_compiler_type=$depmode
9321 $as_echo "$as_me:$LINENO: success" >&5
9322 break
9323 fi
9324 fi
9325 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9326 sed -e 's/^/| /' < conftest.err >&5
9327 done
9328
9329 cd ..
9330 rm -rf conftest.dir
9331 else
9332 am_cv_CXX_dependencies_compiler_type=none
9333 fi
9334
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9337 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9338 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9339 then as_fn_error "no usable dependency style found" "$LINENO" 5
9340 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9341
9342 fi
9343
9344
9345 # --------
9346 # UNSORTED
9347 # --------
9348
9349
9350 # These libraries may be used by collect2.
9351 # We may need a special search path to get them linked.
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9353 $as_echo_n "checking for collect2 libraries... " >&6; }
9354 if test "${gcc_cv_collect2_libs+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 save_LIBS="$LIBS"
9358 for libs in '' -lld -lmld \
9359 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9360 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9361 do
9362 LIBS="$libs"
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char ldopen ();
9373 int
9374 main ()
9375 {
9376 return ldopen ();
9377 ;
9378 return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_cxx_try_link "$LINENO"; then :
9382 gcc_cv_collect2_libs="$libs"; break
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 done
9387 LIBS="$save_LIBS"
9388 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9391 $as_echo "$gcc_cv_collect2_libs" >&6; }
9392 case $gcc_cv_collect2_libs in
9393 "none required") ;;
9394 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9395 esac
9396
9397
9398 # When building Ada code on Alpha, we need exc_resume which is usually in
9399 # -lexc. So test for it.
9400 save_LIBS="$LIBS"
9401 LIBS=
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9403 $as_echo_n "checking for library containing exc_resume... " >&6; }
9404 if test "${ac_cv_search_exc_resume+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 ac_func_search_save_LIBS=$LIBS
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char exc_resume ();
9418 int
9419 main ()
9420 {
9421 return exc_resume ();
9422 ;
9423 return 0;
9424 }
9425 _ACEOF
9426 for ac_lib in '' exc; do
9427 if test -z "$ac_lib"; then
9428 ac_res="none required"
9429 else
9430 ac_res=-l$ac_lib
9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9432 fi
9433 if ac_fn_cxx_try_link "$LINENO"; then :
9434 ac_cv_search_exc_resume=$ac_res
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext
9438 if test "${ac_cv_search_exc_resume+set}" = set; then :
9439 break
9440 fi
9441 done
9442 if test "${ac_cv_search_exc_resume+set}" = set; then :
9443
9444 else
9445 ac_cv_search_exc_resume=no
9446 fi
9447 rm conftest.$ac_ext
9448 LIBS=$ac_func_search_save_LIBS
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9451 $as_echo "$ac_cv_search_exc_resume" >&6; }
9452 ac_res=$ac_cv_search_exc_resume
9453 if test "$ac_res" != no; then :
9454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9455
9456 fi
9457
9458 GNAT_LIBEXC="$LIBS"
9459 LIBS="$save_LIBS"
9460
9461
9462 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9463 save_LIBS="$LIBS"
9464 LIBS=
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9466 $as_echo_n "checking for library containing kstat_open... " >&6; }
9467 if test "${ac_cv_search_kstat_open+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 ac_func_search_save_LIBS=$LIBS
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9477 #ifdef __cplusplus
9478 extern "C"
9479 #endif
9480 char kstat_open ();
9481 int
9482 main ()
9483 {
9484 return kstat_open ();
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 for ac_lib in '' kstat; do
9490 if test -z "$ac_lib"; then
9491 ac_res="none required"
9492 else
9493 ac_res=-l$ac_lib
9494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9495 fi
9496 if ac_fn_cxx_try_link "$LINENO"; then :
9497 ac_cv_search_kstat_open=$ac_res
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext
9501 if test "${ac_cv_search_kstat_open+set}" = set; then :
9502 break
9503 fi
9504 done
9505 if test "${ac_cv_search_kstat_open+set}" = set; then :
9506
9507 else
9508 ac_cv_search_kstat_open=no
9509 fi
9510 rm conftest.$ac_ext
9511 LIBS=$ac_func_search_save_LIBS
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9514 $as_echo "$ac_cv_search_kstat_open" >&6; }
9515 ac_res=$ac_cv_search_kstat_open
9516 if test "$ac_res" != no; then :
9517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9518
9519 fi
9520
9521 EXTRA_GCC_LIBS="$LIBS"
9522 LIBS="$save_LIBS"
9523
9524
9525 # Some systems put ldexp and frexp in libm instead of libc; assume
9526 # they're both in the same place. jcf-dump needs them.
9527 save_LIBS="$LIBS"
9528 LIBS=
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9530 $as_echo_n "checking for library containing ldexp... " >&6; }
9531 if test "${ac_cv_search_ldexp+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 ac_func_search_save_LIBS=$LIBS
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char ldexp ();
9545 int
9546 main ()
9547 {
9548 return ldexp ();
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 for ac_lib in '' m; do
9554 if test -z "$ac_lib"; then
9555 ac_res="none required"
9556 else
9557 ac_res=-l$ac_lib
9558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9559 fi
9560 if ac_fn_cxx_try_link "$LINENO"; then :
9561 ac_cv_search_ldexp=$ac_res
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext
9565 if test "${ac_cv_search_ldexp+set}" = set; then :
9566 break
9567 fi
9568 done
9569 if test "${ac_cv_search_ldexp+set}" = set; then :
9570
9571 else
9572 ac_cv_search_ldexp=no
9573 fi
9574 rm conftest.$ac_ext
9575 LIBS=$ac_func_search_save_LIBS
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9578 $as_echo "$ac_cv_search_ldexp" >&6; }
9579 ac_res=$ac_cv_search_ldexp
9580 if test "$ac_res" != no; then :
9581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9582
9583 fi
9584
9585 LDEXP_LIB="$LIBS"
9586 LIBS="$save_LIBS"
9587
9588
9589 # Use <inttypes.h> only if it exists,
9590 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9591 # PRId64
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9593 $as_echo_n "checking for inttypes.h... " >&6; }
9594 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #define __STDC_FORMAT_MACROS
9600 #include <sys/types.h>
9601 #include <inttypes.h>
9602 int
9603 main ()
9604 {
9605 intmax_t i = -1;
9606 #ifndef PRId64
9607 choke me
9608 #endif
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_cxx_try_compile "$LINENO"; then :
9614 gcc_cv_header_inttypes_h=yes
9615 else
9616 gcc_cv_header_inttypes_h=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 fi
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9622 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9623 if test $gcc_cv_header_inttypes_h = yes; then
9624
9625 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9626
9627 fi
9628
9629
9630
9631 for ac_func in times clock kill getrlimit setrlimit atoq \
9632 popen sysconf strsignal getrusage nl_langinfo \
9633 gettimeofday mbstowcs wcswidth mmap setlocale \
9634 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
9635 do :
9636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9638 eval as_val=\$$as_ac_var
9639 if test "x$as_val" = x""yes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9642 _ACEOF
9643
9644 fi
9645 done
9646
9647
9648 if test x$ac_cv_func_mbstowcs = xyes; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9650 $as_echo_n "checking whether mbstowcs works... " >&6; }
9651 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test "$cross_compiling" = yes; then :
9655 gcc_cv_func_mbstowcs_works=yes
9656 else
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 #include <stdlib.h>
9660 int main()
9661 {
9662 mbstowcs(0, "", 0);
9663 return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_cxx_try_run "$LINENO"; then :
9667 gcc_cv_func_mbstowcs_works=yes
9668 else
9669 gcc_cv_func_mbstowcs_works=no
9670 fi
9671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9672 conftest.$ac_objext conftest.beam conftest.$ac_ext
9673 fi
9674
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9677 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9678 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9679
9680 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9681
9682 fi
9683 fi
9684
9685 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9687
9688 else
9689
9690 cat >>confdefs.h <<_ACEOF
9691 #define ssize_t int
9692 _ACEOF
9693
9694 fi
9695
9696 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9697 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9698
9699 else
9700
9701 cat >>confdefs.h <<_ACEOF
9702 #define caddr_t char *
9703 _ACEOF
9704
9705 fi
9706
9707
9708
9709 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9710 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9711 gcc_header_sys_mman_h=yes
9712 else
9713 gcc_header_sys_mman_h=no
9714 fi
9715
9716 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9717 if test "x$ac_cv_func_mmap" = x""yes; then :
9718 gcc_func_mmap=yes
9719 else
9720 gcc_func_mmap=no
9721 fi
9722
9723 if test "$gcc_header_sys_mman_h" != yes \
9724 || test "$gcc_func_mmap" != yes; then
9725 gcc_cv_func_mmap_file=no
9726 gcc_cv_func_mmap_dev_zero=no
9727 gcc_cv_func_mmap_anon=no
9728 else
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9730 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9731 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 # Add a system to this blacklist if
9735 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9736 # memory area containing the same data that you'd get if you applied
9737 # read() to the same fd. The only system known to have a problem here
9738 # is VMS, where text files have record structure.
9739 case "$host_os" in
9740 *vms* | ultrix*)
9741 gcc_cv_func_mmap_file=no ;;
9742 *)
9743 gcc_cv_func_mmap_file=yes;;
9744 esac
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9747 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9749 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9750 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 # Add a system to this blacklist if it has mmap() but /dev/zero
9754 # does not exist, or if mmapping /dev/zero does not give anonymous
9755 # zeroed pages with both the following properties:
9756 # 1. If you map N consecutive pages in with one call, and then
9757 # unmap any subset of those pages, the pages that were not
9758 # explicitly unmapped remain accessible.
9759 # 2. If you map two adjacent blocks of memory and then unmap them
9760 # both at once, they must both go away.
9761 # Systems known to be in this category are Windows (all variants),
9762 # VMS, and Darwin.
9763 case "$host_os" in
9764 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9765 gcc_cv_func_mmap_dev_zero=no ;;
9766 *)
9767 gcc_cv_func_mmap_dev_zero=yes;;
9768 esac
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9771 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9772
9773 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9775 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9776 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 #include <sys/types.h>
9782 #include <sys/mman.h>
9783 #include <unistd.h>
9784
9785 #ifndef MAP_ANONYMOUS
9786 #define MAP_ANONYMOUS MAP_ANON
9787 #endif
9788
9789 int
9790 main ()
9791 {
9792 int n = MAP_ANONYMOUS;
9793 ;
9794 return 0;
9795 }
9796 _ACEOF
9797 if ac_fn_cxx_try_compile "$LINENO"; then :
9798 gcc_cv_decl_map_anon=yes
9799 else
9800 gcc_cv_decl_map_anon=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9805 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9806
9807 if test $gcc_cv_decl_map_anon = no; then
9808 gcc_cv_func_mmap_anon=no
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9811 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9812 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9816 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9817 # doesn't give anonymous zeroed pages with the same properties listed
9818 # above for use of /dev/zero.
9819 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9820 case "$host_os" in
9821 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9822 gcc_cv_func_mmap_anon=no ;;
9823 *)
9824 gcc_cv_func_mmap_anon=yes;;
9825 esac
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9828 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9829 fi
9830 fi
9831
9832 if test $gcc_cv_func_mmap_file = yes; then
9833
9834 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9835
9836 fi
9837 if test $gcc_cv_func_mmap_dev_zero = yes; then
9838
9839 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9840
9841 fi
9842 if test $gcc_cv_func_mmap_anon = yes; then
9843
9844 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9845
9846 fi
9847
9848
9849 case "${host}" in
9850 *-*-*vms*)
9851 # Under VMS, vfork works very differently than on Unix. The standard test
9852 # won't work, and it isn't easily adaptable. It makes more sense to
9853 # just force it.
9854 ac_cv_func_vfork_works=yes
9855 ;;
9856 esac
9857 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9858 if test "x$ac_cv_type_pid_t" = x""yes; then :
9859
9860 else
9861
9862 cat >>confdefs.h <<_ACEOF
9863 #define pid_t int
9864 _ACEOF
9865
9866 fi
9867
9868 for ac_header in vfork.h
9869 do :
9870 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9871 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_VFORK_H 1
9874 _ACEOF
9875
9876 fi
9877 done
9878
9879 for ac_func in fork vfork
9880 do :
9881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9883 eval as_val=\$$as_ac_var
9884 if test "x$as_val" = x""yes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887 _ACEOF
9888
9889 fi
9890 done
9891
9892 if test "x$ac_cv_func_fork" = xyes; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9894 $as_echo_n "checking for working fork... " >&6; }
9895 if test "${ac_cv_func_fork_works+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if test "$cross_compiling" = yes; then :
9899 ac_cv_func_fork_works=cross
9900 else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 $ac_includes_default
9904 int
9905 main ()
9906 {
9907
9908 /* By Ruediger Kuhlmann. */
9909 return fork () < 0;
9910
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_cxx_try_run "$LINENO"; then :
9916 ac_cv_func_fork_works=yes
9917 else
9918 ac_cv_func_fork_works=no
9919 fi
9920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9921 conftest.$ac_objext conftest.beam conftest.$ac_ext
9922 fi
9923
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9926 $as_echo "$ac_cv_func_fork_works" >&6; }
9927
9928 else
9929 ac_cv_func_fork_works=$ac_cv_func_fork
9930 fi
9931 if test "x$ac_cv_func_fork_works" = xcross; then
9932 case $host in
9933 *-*-amigaos* | *-*-msdosdjgpp*)
9934 # Override, as these systems have only a dummy fork() stub
9935 ac_cv_func_fork_works=no
9936 ;;
9937 *)
9938 ac_cv_func_fork_works=yes
9939 ;;
9940 esac
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9942 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9943 fi
9944 ac_cv_func_vfork_works=$ac_cv_func_vfork
9945 if test "x$ac_cv_func_vfork" = xyes; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9947 $as_echo_n "checking for working vfork... " >&6; }
9948 if test "${ac_cv_func_vfork_works+set}" = set; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 if test "$cross_compiling" = yes; then :
9952 ac_cv_func_vfork_works=cross
9953 else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 /* Thanks to Paul Eggert for this test. */
9957 $ac_includes_default
9958 #include <sys/wait.h>
9959 #ifdef HAVE_VFORK_H
9960 # include <vfork.h>
9961 #endif
9962 /* On some sparc systems, changes by the child to local and incoming
9963 argument registers are propagated back to the parent. The compiler
9964 is told about this with #include <vfork.h>, but some compilers
9965 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9966 static variable whose address is put into a register that is
9967 clobbered by the vfork. */
9968 static void
9969 #ifdef __cplusplus
9970 sparc_address_test (int arg)
9971 # else
9972 sparc_address_test (arg) int arg;
9973 #endif
9974 {
9975 static pid_t child;
9976 if (!child) {
9977 child = vfork ();
9978 if (child < 0) {
9979 perror ("vfork");
9980 _exit(2);
9981 }
9982 if (!child) {
9983 arg = getpid();
9984 write(-1, "", 0);
9985 _exit (arg);
9986 }
9987 }
9988 }
9989
9990 int
9991 main ()
9992 {
9993 pid_t parent = getpid ();
9994 pid_t child;
9995
9996 sparc_address_test (0);
9997
9998 child = vfork ();
9999
10000 if (child == 0) {
10001 /* Here is another test for sparc vfork register problems. This
10002 test uses lots of local variables, at least as many local
10003 variables as main has allocated so far including compiler
10004 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10005 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10006 reuse the register of parent for one of the local variables,
10007 since it will think that parent can't possibly be used any more
10008 in this routine. Assigning to the local variable will thus
10009 munge parent in the parent process. */
10010 pid_t
10011 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10012 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10013 /* Convince the compiler that p..p7 are live; otherwise, it might
10014 use the same hardware register for all 8 local variables. */
10015 if (p != p1 || p != p2 || p != p3 || p != p4
10016 || p != p5 || p != p6 || p != p7)
10017 _exit(1);
10018
10019 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10020 from child file descriptors. If the child closes a descriptor
10021 before it execs or exits, this munges the parent's descriptor
10022 as well. Test for this by closing stdout in the child. */
10023 _exit(close(fileno(stdout)) != 0);
10024 } else {
10025 int status;
10026 struct stat st;
10027
10028 while (wait(&status) != child)
10029 ;
10030 return (
10031 /* Was there some problem with vforking? */
10032 child < 0
10033
10034 /* Did the child fail? (This shouldn't happen.) */
10035 || status
10036
10037 /* Did the vfork/compiler bug occur? */
10038 || parent != getpid()
10039
10040 /* Did the file descriptor bug occur? */
10041 || fstat(fileno(stdout), &st) != 0
10042 );
10043 }
10044 }
10045 _ACEOF
10046 if ac_fn_cxx_try_run "$LINENO"; then :
10047 ac_cv_func_vfork_works=yes
10048 else
10049 ac_cv_func_vfork_works=no
10050 fi
10051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10052 conftest.$ac_objext conftest.beam conftest.$ac_ext
10053 fi
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10057 $as_echo "$ac_cv_func_vfork_works" >&6; }
10058
10059 fi;
10060 if test "x$ac_cv_func_fork_works" = xcross; then
10061 ac_cv_func_vfork_works=$ac_cv_func_vfork
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10063 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10064 fi
10065
10066 if test "x$ac_cv_func_vfork_works" = xyes; then
10067
10068 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10069
10070 else
10071
10072 $as_echo "#define vfork fork" >>confdefs.h
10073
10074 fi
10075 if test "x$ac_cv_func_fork_works" = xyes; then
10076
10077 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10078
10079 fi
10080
10081
10082
10083 if test "X$prefix" = "XNONE"; then
10084 acl_final_prefix="$ac_default_prefix"
10085 else
10086 acl_final_prefix="$prefix"
10087 fi
10088 if test "X$exec_prefix" = "XNONE"; then
10089 acl_final_exec_prefix='${prefix}'
10090 else
10091 acl_final_exec_prefix="$exec_prefix"
10092 fi
10093 acl_save_prefix="$prefix"
10094 prefix="$acl_final_prefix"
10095 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10096 prefix="$acl_save_prefix"
10097
10098
10099 # Check whether --with-gnu-ld was given.
10100 if test "${with_gnu_ld+set}" = set; then :
10101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10102 else
10103 with_gnu_ld=no
10104 fi
10105
10106 # Prepare PATH_SEPARATOR.
10107 # The user is always right.
10108 if test "${PATH_SEPARATOR+set}" != set; then
10109 echo "#! /bin/sh" >conf$$.sh
10110 echo "exit 0" >>conf$$.sh
10111 chmod +x conf$$.sh
10112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10113 PATH_SEPARATOR=';'
10114 else
10115 PATH_SEPARATOR=:
10116 fi
10117 rm -f conf$$.sh
10118 fi
10119 ac_prog=ld
10120 if test "$GCC" = yes; then
10121 # Check if gcc -print-prog-name=ld gives a path.
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10123 $as_echo_n "checking for ld used by GCC... " >&6; }
10124 case $host in
10125 *-*-mingw*)
10126 # gcc leaves a trailing carriage return which upsets mingw
10127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10128 *)
10129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10130 esac
10131 case $ac_prog in
10132 # Accept absolute paths.
10133 [\\/]* | [A-Za-z]:[\\/]*)
10134 re_direlt='/[^/][^/]*/\.\./'
10135 # Canonicalize the path of ld
10136 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10137 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10138 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10139 done
10140 test -z "$LD" && LD="$ac_prog"
10141 ;;
10142 "")
10143 # If it fails, then pretend we aren't using GCC.
10144 ac_prog=ld
10145 ;;
10146 *)
10147 # If it is relative, then search for the first ld in PATH.
10148 with_gnu_ld=unknown
10149 ;;
10150 esac
10151 elif test "$with_gnu_ld" = yes; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10153 $as_echo_n "checking for GNU ld... " >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10156 $as_echo_n "checking for non-GNU ld... " >&6; }
10157 fi
10158 if test "${acl_cv_path_LD+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 if test -z "$LD"; then
10162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10163 for ac_dir in $PATH; do
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166 acl_cv_path_LD="$ac_dir/$ac_prog"
10167 # Check to see if the program is GNU ld. I'd rather use --version,
10168 # but apparently some GNU ld's only accept -v.
10169 # Break only if it was the GNU/non-GNU ld that we prefer.
10170 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10171 test "$with_gnu_ld" != no && break
10172 else
10173 test "$with_gnu_ld" != yes && break
10174 fi
10175 fi
10176 done
10177 IFS="$ac_save_ifs"
10178 else
10179 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10180 fi
10181 fi
10182
10183 LD="$acl_cv_path_LD"
10184 if test -n "$LD"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10186 $as_echo "$LD" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10193 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10194 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10198 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10199 acl_cv_prog_gnu_ld=yes
10200 else
10201 acl_cv_prog_gnu_ld=no
10202 fi
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10205 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10206 with_gnu_ld=$acl_cv_prog_gnu_ld
10207
10208
10209
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10211 $as_echo_n "checking for shared library run path origin... " >&6; }
10212 if test "${acl_cv_rpath+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215
10216 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10217 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10218 . ./conftest.sh
10219 rm -f ./conftest.sh
10220 acl_cv_rpath=done
10221
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10224 $as_echo "$acl_cv_rpath" >&6; }
10225 wl="$acl_cv_wl"
10226 libext="$acl_cv_libext"
10227 shlibext="$acl_cv_shlibext"
10228 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10229 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10230 hardcode_direct="$acl_cv_hardcode_direct"
10231 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10232 # Check whether --enable-rpath was given.
10233 if test "${enable_rpath+set}" = set; then :
10234 enableval=$enable_rpath; :
10235 else
10236 enable_rpath=yes
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245
10246 use_additional=yes
10247
10248 acl_save_prefix="$prefix"
10249 prefix="$acl_final_prefix"
10250 acl_save_exec_prefix="$exec_prefix"
10251 exec_prefix="$acl_final_exec_prefix"
10252
10253 eval additional_includedir=\"$includedir\"
10254 eval additional_libdir=\"$libdir\"
10255
10256 exec_prefix="$acl_save_exec_prefix"
10257 prefix="$acl_save_prefix"
10258
10259
10260 # Check whether --with-libiconv-prefix was given.
10261 if test "${with_libiconv_prefix+set}" = set; then :
10262 withval=$with_libiconv_prefix;
10263 if test "X$withval" = "Xno"; then
10264 use_additional=no
10265 else
10266 if test "X$withval" = "X"; then
10267
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272
10273 eval additional_includedir=\"$includedir\"
10274 eval additional_libdir=\"$libdir\"
10275
10276 exec_prefix="$acl_save_exec_prefix"
10277 prefix="$acl_save_prefix"
10278
10279 else
10280 additional_includedir="$withval/include"
10281 additional_libdir="$withval/lib"
10282 fi
10283 fi
10284
10285 fi
10286
10287 LIBICONV=
10288 LTLIBICONV=
10289 INCICONV=
10290 rpathdirs=
10291 ltrpathdirs=
10292 names_already_handled=
10293 names_next_round='iconv '
10294 while test -n "$names_next_round"; do
10295 names_this_round="$names_next_round"
10296 names_next_round=
10297 for name in $names_this_round; do
10298 already_handled=
10299 for n in $names_already_handled; do
10300 if test "$n" = "$name"; then
10301 already_handled=yes
10302 break
10303 fi
10304 done
10305 if test -z "$already_handled"; then
10306 names_already_handled="$names_already_handled $name"
10307 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10308 eval value=\"\$HAVE_LIB$uppername\"
10309 if test -n "$value"; then
10310 if test "$value" = yes; then
10311 eval value=\"\$LIB$uppername\"
10312 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10313 eval value=\"\$LTLIB$uppername\"
10314 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10315 else
10316 :
10317 fi
10318 else
10319 found_dir=
10320 found_la=
10321 found_so=
10322 found_a=
10323 if test $use_additional = yes; then
10324 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10325 found_dir="$additional_libdir"
10326 found_so="$additional_libdir/lib$name.$shlibext"
10327 if test -f "$additional_libdir/lib$name.la"; then
10328 found_la="$additional_libdir/lib$name.la"
10329 fi
10330 else
10331 if test -f "$additional_libdir/lib$name.$libext"; then
10332 found_dir="$additional_libdir"
10333 found_a="$additional_libdir/lib$name.$libext"
10334 if test -f "$additional_libdir/lib$name.la"; then
10335 found_la="$additional_libdir/lib$name.la"
10336 fi
10337 fi
10338 fi
10339 fi
10340 if test "X$found_dir" = "X"; then
10341 for x in $LDFLAGS $LTLIBICONV; do
10342
10343 acl_save_prefix="$prefix"
10344 prefix="$acl_final_prefix"
10345 acl_save_exec_prefix="$exec_prefix"
10346 exec_prefix="$acl_final_exec_prefix"
10347 eval x=\"$x\"
10348 exec_prefix="$acl_save_exec_prefix"
10349 prefix="$acl_save_prefix"
10350
10351 case "$x" in
10352 -L*)
10353 dir=`echo "X$x" | sed -e 's/^X-L//'`
10354 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10355 found_dir="$dir"
10356 found_so="$dir/lib$name.$shlibext"
10357 if test -f "$dir/lib$name.la"; then
10358 found_la="$dir/lib$name.la"
10359 fi
10360 else
10361 if test -f "$dir/lib$name.$libext"; then
10362 found_dir="$dir"
10363 found_a="$dir/lib$name.$libext"
10364 if test -f "$dir/lib$name.la"; then
10365 found_la="$dir/lib$name.la"
10366 fi
10367 fi
10368 fi
10369 ;;
10370 esac
10371 if test "X$found_dir" != "X"; then
10372 break
10373 fi
10374 done
10375 fi
10376 if test "X$found_dir" != "X"; then
10377 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10378 if test "X$found_so" != "X"; then
10379 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10380 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10381 else
10382 haveit=
10383 for x in $ltrpathdirs; do
10384 if test "X$x" = "X$found_dir"; then
10385 haveit=yes
10386 break
10387 fi
10388 done
10389 if test -z "$haveit"; then
10390 ltrpathdirs="$ltrpathdirs $found_dir"
10391 fi
10392 if test "$hardcode_direct" = yes; then
10393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10394 else
10395 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10397 haveit=
10398 for x in $rpathdirs; do
10399 if test "X$x" = "X$found_dir"; then
10400 haveit=yes
10401 break
10402 fi
10403 done
10404 if test -z "$haveit"; then
10405 rpathdirs="$rpathdirs $found_dir"
10406 fi
10407 else
10408 haveit=
10409 for x in $LDFLAGS $LIBICONV; do
10410
10411 acl_save_prefix="$prefix"
10412 prefix="$acl_final_prefix"
10413 acl_save_exec_prefix="$exec_prefix"
10414 exec_prefix="$acl_final_exec_prefix"
10415 eval x=\"$x\"
10416 exec_prefix="$acl_save_exec_prefix"
10417 prefix="$acl_save_prefix"
10418
10419 if test "X$x" = "X-L$found_dir"; then
10420 haveit=yes
10421 break
10422 fi
10423 done
10424 if test -z "$haveit"; then
10425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10426 fi
10427 if test "$hardcode_minus_L" != no; then
10428 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10429 else
10430 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10431 fi
10432 fi
10433 fi
10434 fi
10435 else
10436 if test "X$found_a" != "X"; then
10437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10438 else
10439 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10440 fi
10441 fi
10442 additional_includedir=
10443 case "$found_dir" in
10444 */lib | */lib/)
10445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10446 additional_includedir="$basedir/include"
10447 ;;
10448 esac
10449 if test "X$additional_includedir" != "X"; then
10450 if test "X$additional_includedir" != "X/usr/include"; then
10451 haveit=
10452 if test "X$additional_includedir" = "X/usr/local/include"; then
10453 if test -n "$GCC"; then
10454 case $host_os in
10455 linux*) haveit=yes;;
10456 esac
10457 fi
10458 fi
10459 if test -z "$haveit"; then
10460 for x in $CPPFLAGS $INCICONV; do
10461
10462 acl_save_prefix="$prefix"
10463 prefix="$acl_final_prefix"
10464 acl_save_exec_prefix="$exec_prefix"
10465 exec_prefix="$acl_final_exec_prefix"
10466 eval x=\"$x\"
10467 exec_prefix="$acl_save_exec_prefix"
10468 prefix="$acl_save_prefix"
10469
10470 if test "X$x" = "X-I$additional_includedir"; then
10471 haveit=yes
10472 break
10473 fi
10474 done
10475 if test -z "$haveit"; then
10476 if test -d "$additional_includedir"; then
10477 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10478 fi
10479 fi
10480 fi
10481 fi
10482 fi
10483 if test -n "$found_la"; then
10484 save_libdir="$libdir"
10485 case "$found_la" in
10486 */* | *\\*) . "$found_la" ;;
10487 *) . "./$found_la" ;;
10488 esac
10489 libdir="$save_libdir"
10490 for dep in $dependency_libs; do
10491 case "$dep" in
10492 -L*)
10493 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10494 if test "X$additional_libdir" != "X/usr/lib"; then
10495 haveit=
10496 if test "X$additional_libdir" = "X/usr/local/lib"; then
10497 if test -n "$GCC"; then
10498 case $host_os in
10499 linux*) haveit=yes;;
10500 esac
10501 fi
10502 fi
10503 if test -z "$haveit"; then
10504 haveit=
10505 for x in $LDFLAGS $LIBICONV; do
10506
10507 acl_save_prefix="$prefix"
10508 prefix="$acl_final_prefix"
10509 acl_save_exec_prefix="$exec_prefix"
10510 exec_prefix="$acl_final_exec_prefix"
10511 eval x=\"$x\"
10512 exec_prefix="$acl_save_exec_prefix"
10513 prefix="$acl_save_prefix"
10514
10515 if test "X$x" = "X-L$additional_libdir"; then
10516 haveit=yes
10517 break
10518 fi
10519 done
10520 if test -z "$haveit"; then
10521 if test -d "$additional_libdir"; then
10522 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10523 fi
10524 fi
10525 haveit=
10526 for x in $LDFLAGS $LTLIBICONV; do
10527
10528 acl_save_prefix="$prefix"
10529 prefix="$acl_final_prefix"
10530 acl_save_exec_prefix="$exec_prefix"
10531 exec_prefix="$acl_final_exec_prefix"
10532 eval x=\"$x\"
10533 exec_prefix="$acl_save_exec_prefix"
10534 prefix="$acl_save_prefix"
10535
10536 if test "X$x" = "X-L$additional_libdir"; then
10537 haveit=yes
10538 break
10539 fi
10540 done
10541 if test -z "$haveit"; then
10542 if test -d "$additional_libdir"; then
10543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10544 fi
10545 fi
10546 fi
10547 fi
10548 ;;
10549 -R*)
10550 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10551 if test "$enable_rpath" != no; then
10552 haveit=
10553 for x in $rpathdirs; do
10554 if test "X$x" = "X$dir"; then
10555 haveit=yes
10556 break
10557 fi
10558 done
10559 if test -z "$haveit"; then
10560 rpathdirs="$rpathdirs $dir"
10561 fi
10562 haveit=
10563 for x in $ltrpathdirs; do
10564 if test "X$x" = "X$dir"; then
10565 haveit=yes
10566 break
10567 fi
10568 done
10569 if test -z "$haveit"; then
10570 ltrpathdirs="$ltrpathdirs $dir"
10571 fi
10572 fi
10573 ;;
10574 -l*)
10575 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10576 ;;
10577 *.la)
10578 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10579 ;;
10580 *)
10581 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10583 ;;
10584 esac
10585 done
10586 fi
10587 else
10588 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10590 fi
10591 fi
10592 fi
10593 done
10594 done
10595 if test "X$rpathdirs" != "X"; then
10596 if test -n "$hardcode_libdir_separator"; then
10597 alldirs=
10598 for found_dir in $rpathdirs; do
10599 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10600 done
10601 acl_save_libdir="$libdir"
10602 libdir="$alldirs"
10603 eval flag=\"$hardcode_libdir_flag_spec\"
10604 libdir="$acl_save_libdir"
10605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10606 else
10607 for found_dir in $rpathdirs; do
10608 acl_save_libdir="$libdir"
10609 libdir="$found_dir"
10610 eval flag=\"$hardcode_libdir_flag_spec\"
10611 libdir="$acl_save_libdir"
10612 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10613 done
10614 fi
10615 fi
10616 if test "X$ltrpathdirs" != "X"; then
10617 for found_dir in $ltrpathdirs; do
10618 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10619 done
10620 fi
10621
10622
10623
10624
10625
10626
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10629 $as_echo_n "checking for iconv... " >&6; }
10630 if test "${am_cv_func_iconv+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633
10634 am_cv_func_iconv="no, consider installing GNU libiconv"
10635 am_cv_lib_iconv=no
10636 am_save_CPPFLAGS="$CPPFLAGS"
10637 CPPFLAGS="$CPPFLAGS $INCICONV"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <stdlib.h>
10641 #include <iconv.h>
10642 int
10643 main ()
10644 {
10645 iconv_t cd = iconv_open("","");
10646 iconv(cd,NULL,NULL,NULL,NULL);
10647 iconv_close(cd);
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_cxx_try_link "$LINENO"; then :
10653 am_cv_func_iconv=yes
10654 fi
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 CPPFLAGS="$am_save_CPPFLAGS"
10658
10659 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10660 for _libs in .libs _libs; do
10661 am_save_CPPFLAGS="$CPPFLAGS"
10662 am_save_LIBS="$LIBS"
10663 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10664 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <stdlib.h>
10668 #include <iconv.h>
10669 int
10670 main ()
10671 {
10672 iconv_t cd = iconv_open("","");
10673 iconv(cd,NULL,NULL,NULL,NULL);
10674 iconv_close(cd);
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_cxx_try_link "$LINENO"; then :
10680 INCICONV="-I../libiconv/include"
10681 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10682 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10683 am_cv_lib_iconv=yes
10684 am_cv_func_iconv=yes
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 CPPFLAGS="$am_save_CPPFLAGS"
10689 LIBS="$am_save_LIBS"
10690 if test "$am_cv_func_iconv" = "yes"; then
10691 break
10692 fi
10693 done
10694 fi
10695
10696 if test "$am_cv_func_iconv" != yes; then
10697 am_save_CPPFLAGS="$CPPFLAGS"
10698 am_save_LIBS="$LIBS"
10699 CPPFLAGS="$LIBS $INCICONV"
10700 LIBS="$LIBS $LIBICONV"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 #include <stdlib.h>
10704 #include <iconv.h>
10705 int
10706 main ()
10707 {
10708 iconv_t cd = iconv_open("","");
10709 iconv(cd,NULL,NULL,NULL,NULL);
10710 iconv_close(cd);
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_cxx_try_link "$LINENO"; then :
10716 am_cv_lib_iconv=yes
10717 am_cv_func_iconv=yes
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 CPPFLAGS="$am_save_CPPFLAGS"
10722 LIBS="$am_save_LIBS"
10723 fi
10724
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10727 $as_echo "$am_cv_func_iconv" >&6; }
10728 if test "$am_cv_func_iconv" = yes; then
10729
10730 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10731
10732 fi
10733 if test "$am_cv_lib_iconv" = yes; then
10734
10735 for element in $INCICONV; do
10736 haveit=
10737 for x in $CPPFLAGS; do
10738
10739 acl_save_prefix="$prefix"
10740 prefix="$acl_final_prefix"
10741 acl_save_exec_prefix="$exec_prefix"
10742 exec_prefix="$acl_final_exec_prefix"
10743 eval x=\"$x\"
10744 exec_prefix="$acl_save_exec_prefix"
10745 prefix="$acl_save_prefix"
10746
10747 if test "X$x" = "X$element"; then
10748 haveit=yes
10749 break
10750 fi
10751 done
10752 if test -z "$haveit"; then
10753 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10754 fi
10755 done
10756
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10758 $as_echo_n "checking how to link with libiconv... " >&6; }
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10760 $as_echo "$LIBICONV" >&6; }
10761 else
10762 LIBICONV=
10763 LTLIBICONV=
10764 fi
10765
10766
10767
10768 if test "$am_cv_func_iconv" = yes; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10770 $as_echo_n "checking for iconv declaration... " >&6; }
10771 if test "${am_cv_proto_iconv+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777
10778 #include <stdlib.h>
10779 #include <iconv.h>
10780 extern
10781 #ifdef __cplusplus
10782 "C"
10783 #endif
10784 #if defined(__STDC__) || defined(__cplusplus)
10785 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10786 #else
10787 size_t iconv();
10788 #endif
10789
10790 int
10791 main ()
10792 {
10793
10794 ;
10795 return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_cxx_try_compile "$LINENO"; then :
10799 am_cv_proto_iconv_arg1=""
10800 else
10801 am_cv_proto_iconv_arg1="const"
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 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);"
10805 fi
10806
10807 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10809 }$am_cv_proto_iconv" >&5
10810 $as_echo "${ac_t:-
10811 }$am_cv_proto_iconv" >&6; }
10812
10813 cat >>confdefs.h <<_ACEOF
10814 #define ICONV_CONST $am_cv_proto_iconv_arg1
10815 _ACEOF
10816
10817 fi
10818
10819
10820 # Until we have in-tree GNU iconv:
10821 LIBICONV_DEP=
10822 if test -f "$LTLIBICONV"; then
10823 LIBICONV_DEP=$LTLIBICONV
10824 fi
10825
10826
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10829 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10830 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 #include <locale.h>
10836 int
10837 main ()
10838 {
10839 return LC_MESSAGES
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_cxx_try_link "$LINENO"; then :
10845 am_cv_val_LC_MESSAGES=yes
10846 else
10847 am_cv_val_LC_MESSAGES=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10853 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10854 if test $am_cv_val_LC_MESSAGES = yes; then
10855
10856 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10857
10858 fi
10859
10860
10861
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10863 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10864 if test "${am_cv_langinfo_codeset+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869 #include <langinfo.h>
10870 int
10871 main ()
10872 {
10873 char* cs = nl_langinfo(CODESET);
10874 ;
10875 return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_cxx_try_link "$LINENO"; then :
10879 am_cv_langinfo_codeset=yes
10880 else
10881 am_cv_langinfo_codeset=no
10882 fi
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885
10886 fi
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10888 $as_echo "$am_cv_langinfo_codeset" >&6; }
10889 if test $am_cv_langinfo_codeset = yes; then
10890
10891 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10892
10893 fi
10894
10895
10896 # We will need to find libiberty.h and ansidecl.h
10897 saved_CFLAGS="$CFLAGS"
10898 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10899 saved_CXXFLAGS="$CXXFLAGS"
10900 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10901
10902 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10903 # normal autoconf function for these. But force definition of
10904 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10905 # basename handling in libiberty.h.
10906 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10907 #undef HAVE_DECL_BASENAME
10908 #define HAVE_DECL_BASENAME 1
10909 #include \"ansidecl.h\"
10910 #include \"system.h\"
10911 "
10912 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10913 ac_have_decl=1
10914 else
10915 ac_have_decl=0
10916 fi
10917
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_DECL_BASENAME $ac_have_decl
10920 _ACEOF
10921 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10922 #undef HAVE_DECL_BASENAME
10923 #define HAVE_DECL_BASENAME 1
10924 #include \"ansidecl.h\"
10925 #include \"system.h\"
10926 "
10927 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10928 ac_have_decl=1
10929 else
10930 ac_have_decl=0
10931 fi
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define HAVE_DECL_STRSTR $ac_have_decl
10935 _ACEOF
10936
10937
10938 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10939 madvise stpcpy strnlen strsignal strverscmp \
10940 strtol strtoul strtoll strtoull setenv unsetenv \
10941 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10942 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
10943 do
10944 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10946 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10947 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 #undef $ac_tr_decl
10953 #define $ac_tr_decl 1
10954
10955 #include "ansidecl.h"
10956 #include "system.h"
10957
10958 int
10959 main ()
10960 {
10961 #ifndef $ac_func
10962 char *(*pfn) = (char *(*)) $ac_func ;
10963 #endif
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_cxx_try_compile "$LINENO"; then :
10969 eval "gcc_cv_have_decl_$ac_func=yes"
10970 else
10971 eval "gcc_cv_have_decl_$ac_func=no"
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 fi
10975
10976 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10979 #define $ac_tr_decl 1
10980 _ACEOF
10981
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10985 #define $ac_tr_decl 0
10986 _ACEOF
10987
10988 fi
10989
10990 done
10991
10992
10993 for ac_func in getrlimit setrlimit getrusage
10994 do
10995 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10997 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10998 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11003 #undef $ac_tr_decl
11004 #define $ac_tr_decl 1
11005
11006 #include "ansidecl.h"
11007 #include "system.h"
11008 #ifdef HAVE_SYS_RESOURCE_H
11009 #include <sys/resource.h>
11010 #endif
11011
11012
11013 int
11014 main ()
11015 {
11016 #ifndef $ac_func
11017 char *(*pfn) = (char *(*)) $ac_func ;
11018 #endif
11019 ;
11020 return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_cxx_try_compile "$LINENO"; then :
11024 eval "gcc_cv_have_decl_$ac_func=yes"
11025 else
11026 eval "gcc_cv_have_decl_$ac_func=no"
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 fi
11030
11031 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11034 #define $ac_tr_decl 1
11035 _ACEOF
11036
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11040 #define $ac_tr_decl 0
11041 _ACEOF
11042
11043 fi
11044
11045 done
11046
11047
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050
11051 #include "ansidecl.h"
11052 #include "system.h"
11053 #ifdef HAVE_SYS_RESOURCE_H
11054 #include <sys/resource.h>
11055 #endif
11056
11057 int
11058 main ()
11059 {
11060 rlim_t l = 0;
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_cxx_try_compile "$LINENO"; then :
11066
11067 else
11068
11069 $as_echo "#define rlim_t long" >>confdefs.h
11070
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073
11074 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11075 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11076 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11077 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11078 for ac_func in ldgetname
11079 do
11080 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11082 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11083 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088 #undef $ac_tr_decl
11089 #define $ac_tr_decl 1
11090
11091 #include "ansidecl.h"
11092 #include "system.h"
11093 #ifdef HAVE_LDFCN_H
11094 #undef FREAD
11095 #undef FWRITE
11096 #include <ldfcn.h>
11097 #endif
11098
11099
11100 int
11101 main ()
11102 {
11103 #ifndef $ac_func
11104 char *(*pfn) = (char *(*)) $ac_func ;
11105 #endif
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 if ac_fn_cxx_try_compile "$LINENO"; then :
11111 eval "gcc_cv_have_decl_$ac_func=yes"
11112 else
11113 eval "gcc_cv_have_decl_$ac_func=no"
11114 fi
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 fi
11117
11118 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11121 #define $ac_tr_decl 1
11122 _ACEOF
11123
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11127 #define $ac_tr_decl 0
11128 _ACEOF
11129
11130 fi
11131
11132 done
11133
11134
11135 for ac_func in times
11136 do
11137 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11139 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11140 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 #undef $ac_tr_decl
11146 #define $ac_tr_decl 1
11147
11148 #include "ansidecl.h"
11149 #include "system.h"
11150 #ifdef HAVE_SYS_TIMES_H
11151 #include <sys/times.h>
11152 #endif
11153
11154
11155 int
11156 main ()
11157 {
11158 #ifndef $ac_func
11159 char *(*pfn) = (char *(*)) $ac_func ;
11160 #endif
11161 ;
11162 return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_cxx_try_compile "$LINENO"; then :
11166 eval "gcc_cv_have_decl_$ac_func=yes"
11167 else
11168 eval "gcc_cv_have_decl_$ac_func=no"
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 fi
11172
11173 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11176 #define $ac_tr_decl 1
11177 _ACEOF
11178
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11182 #define $ac_tr_decl 0
11183 _ACEOF
11184
11185 fi
11186
11187 done
11188
11189
11190 for ac_func in sigaltstack
11191 do
11192 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11194 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11195 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200 #undef $ac_tr_decl
11201 #define $ac_tr_decl 1
11202
11203 #include "ansidecl.h"
11204 #include "system.h"
11205 #include <signal.h>
11206
11207
11208 int
11209 main ()
11210 {
11211 #ifndef $ac_func
11212 char *(*pfn) = (char *(*)) $ac_func ;
11213 #endif
11214 ;
11215 return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_cxx_try_compile "$LINENO"; then :
11219 eval "gcc_cv_have_decl_$ac_func=yes"
11220 else
11221 eval "gcc_cv_have_decl_$ac_func=no"
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 fi
11225
11226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11228 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11229 #define $ac_tr_decl 1
11230 _ACEOF
11231
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11235 #define $ac_tr_decl 0
11236 _ACEOF
11237
11238 fi
11239
11240 done
11241
11242
11243 # More time-related stuff.
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11245 $as_echo_n "checking for struct tms... " >&6; }
11246 if test "${ac_cv_struct_tms+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252
11253 #include "ansidecl.h"
11254 #include "system.h"
11255 #ifdef HAVE_SYS_TIMES_H
11256 #include <sys/times.h>
11257 #endif
11258
11259 int
11260 main ()
11261 {
11262 struct tms tms;
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 if ac_fn_cxx_try_compile "$LINENO"; then :
11268 ac_cv_struct_tms=yes
11269 else
11270 ac_cv_struct_tms=no
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11275 $as_echo "$ac_cv_struct_tms" >&6; }
11276 if test $ac_cv_struct_tms = yes; then
11277
11278 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11279
11280 fi
11281
11282 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11283 # revisit after autoconf 2.50.
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11285 $as_echo_n "checking for clock_t... " >&6; }
11286 if test "${gcc_cv_type_clock_t+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 #include "ansidecl.h"
11294 #include "system.h"
11295
11296 int
11297 main ()
11298 {
11299 clock_t x;
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_cxx_try_compile "$LINENO"; then :
11305 gcc_cv_type_clock_t=yes
11306 else
11307 gcc_cv_type_clock_t=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11312 $as_echo "$gcc_cv_type_clock_t" >&6; }
11313 if test $gcc_cv_type_clock_t = yes; then
11314
11315 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11316
11317 fi
11318
11319 # Check if F_SETLKW is supported by fcntl.
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11321 $as_echo_n "checking for F_SETLKW... " >&6; }
11322 if test "${ac_cv_f_setlkw+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 #include <fcntl.h>
11330 int
11331 main ()
11332 {
11333
11334 struct flock fl;
11335 fl.l_whence = 0;
11336 fl.l_start = 0;
11337 fl.l_len = 0;
11338 fl.l_pid = 0;
11339 return fcntl (1, F_SETLKW, &fl);
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_cxx_try_compile "$LINENO"; then :
11345 ac_cv_f_setlkw=yes
11346 else
11347 ac_cv_f_setlkw=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11352 $as_echo "$ac_cv_f_setlkw" >&6; }
11353 if test $ac_cv_f_setlkw = yes; then
11354
11355 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11356
11357 fi
11358
11359 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11360 CFLAGS="$saved_CFLAGS"
11361 CXXFLAGS="$saved_CXXFLAGS"
11362
11363 # mkdir takes a single argument on some systems.
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11365 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11366 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11371
11372 #include <sys/types.h>
11373 #ifdef HAVE_SYS_STAT_H
11374 # include <sys/stat.h>
11375 #endif
11376 #ifdef HAVE_UNISTD_H
11377 # include <unistd.h>
11378 #endif
11379 #ifdef HAVE_DIRECT_H
11380 # include <direct.h>
11381 #endif
11382 int
11383 main ()
11384 {
11385 mkdir ("foo", 0);
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_cxx_try_compile "$LINENO"; then :
11391 gcc_cv_mkdir_takes_one_arg=no
11392 else
11393 gcc_cv_mkdir_takes_one_arg=yes
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11398 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11399 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11400
11401 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11402
11403 fi
11404
11405
11406 # File extensions
11407 manext='.1'
11408 objext='.o'
11409
11410
11411
11412 # With Setjmp/Longjmp based exception handling.
11413 # Check whether --enable-sjlj-exceptions was given.
11414 if test "${enable_sjlj_exceptions+set}" = set; then :
11415 enableval=$enable_sjlj_exceptions; case $target in
11416 *-*-hpux10*)
11417 if test $enableval != yes; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11419 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11420 enableval=yes
11421 fi
11422 ;;
11423 esac
11424 force_sjlj_exceptions=yes
11425 else
11426 case $target in
11427 *-*-hpux10*)
11428 force_sjlj_exceptions=yes
11429 enableval=yes
11430 ;;
11431 lm32*-*-*)
11432 force_sjlj_exceptions=yes
11433 enableval=yes
11434 ;;
11435 *)
11436 force_sjlj_exceptions=no
11437 ;;
11438 esac
11439 fi
11440
11441 if test $force_sjlj_exceptions = yes; then
11442 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11443
11444 cat >>confdefs.h <<_ACEOF
11445 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11446 _ACEOF
11447
11448 fi
11449
11450 # --------------------------------------------------------
11451 # Build, host, and target specific configuration fragments
11452 # --------------------------------------------------------
11453
11454 # Collect build-machine-specific information.
11455 . ${srcdir}/config.build
11456
11457 # Collect host-machine-specific information.
11458 . ${srcdir}/config.host
11459
11460 target_gtfiles=
11461
11462 # Collect target-machine-specific information.
11463 . ${srcdir}/config.gcc
11464
11465 extra_objs="${host_extra_objs} ${extra_objs}"
11466 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11467
11468 # Default the target-machine variables that were not explicitly set.
11469 if test x"$tm_file" = x
11470 then tm_file=$cpu_type/$cpu_type.h; fi
11471
11472 if test x"$extra_headers" = x
11473 then extra_headers=; fi
11474
11475 if test x$md_file = x
11476 then md_file=$cpu_type/$cpu_type.md; fi
11477
11478 if test x$out_file = x
11479 then out_file=$cpu_type/$cpu_type.c; fi
11480
11481 if test x"$tmake_file" = x
11482 then tmake_file=$cpu_type/t-$cpu_type
11483 fi
11484
11485 # Support --enable-initfini-array.
11486 if test x$enable_initfini_array != xno; then
11487 tm_file="${tm_file} initfini-array.h"
11488 fi
11489
11490 if test x"$dwarf2" = xyes
11491 then tm_file="$tm_file tm-dwarf2.h"
11492 fi
11493
11494 # Say what files are being used for the output code and MD file.
11495 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11496 echo "Using \`$srcdir/config/$md_file' as machine description file."
11497
11498 # If any of the xm_file variables contain nonexistent files, warn
11499 # about them and drop them.
11500
11501 bx=
11502 for x in $build_xm_file; do
11503 if test -f $srcdir/config/$x
11504 then bx="$bx $x"
11505 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11506 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11507 fi
11508 done
11509 build_xm_file="$bx"
11510
11511 hx=
11512 for x in $host_xm_file; do
11513 if test -f $srcdir/config/$x
11514 then hx="$hx $x"
11515 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11516 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11517 fi
11518 done
11519 host_xm_file="$hx"
11520
11521 tx=
11522 for x in $xm_file; do
11523 if test -f $srcdir/config/$x
11524 then tx="$tx $x"
11525 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11526 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11527 fi
11528 done
11529 xm_file="$tx"
11530
11531 count=a
11532 for f in $tm_file; do
11533 count=${count}x
11534 done
11535 if test $count = ax; then
11536 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11537 else
11538 echo "Using the following target machine macro files:"
11539 for f in $tm_file; do
11540 echo " $srcdir/config/$f"
11541 done
11542 fi
11543
11544 if test x$use_long_long_for_widest_fast_int = xyes; then
11545
11546 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11547
11548 fi
11549
11550 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11551
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_GNU_LD $gnu_ld_bool
11554 _ACEOF
11555
11556
11557 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11558
11559 cat >>confdefs.h <<_ACEOF
11560 #define HAVE_GNU_AS $gnu_as_bool
11561 _ACEOF
11562
11563
11564 count=a
11565 for f in $host_xm_file; do
11566 count=${count}x
11567 done
11568 if test $count = a; then
11569 :
11570 elif test $count = ax; then
11571 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11572 else
11573 echo "Using the following host machine macro files:"
11574 for f in $host_xm_file; do
11575 echo " $srcdir/config/$f"
11576 done
11577 fi
11578 echo "Using ${out_host_hook_obj} for host machine hooks."
11579
11580 if test "$host_xm_file" != "$build_xm_file"; then
11581 count=a
11582 for f in $build_xm_file; do
11583 count=${count}x
11584 done
11585 if test $count = a; then
11586 :
11587 elif test $count = ax; then
11588 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11589 else
11590 echo "Using the following build machine macro files:"
11591 for f in $build_xm_file; do
11592 echo " $srcdir/config/$f"
11593 done
11594 fi
11595 fi
11596
11597 if test -n "$configured_native_system_header_dir"; then
11598 native_system_header_dir=$configured_native_system_header_dir
11599 fi
11600 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11601
11602
11603 case ${host} in
11604 powerpc*-*-darwin*)
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11606 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11607 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612
11613 #include <sys/cdefs.h>
11614 #include <sys/signal.h>
11615 #include <ucontext.h>
11616 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11617
11618 _ACEOF
11619 if ac_fn_cxx_try_compile "$LINENO"; then :
11620 gcc_cv_mcontext_underscores=no
11621 else
11622 gcc_cv_mcontext_underscores=yes
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11627 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11628 if test $gcc_cv_mcontext_underscores = yes; then
11629
11630 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11631
11632 fi
11633 ;;
11634 esac
11635
11636 # ---------
11637 # Threading
11638 # ---------
11639
11640 # Check if a valid thread package
11641 case ${enable_threads} in
11642 "" | no)
11643 # No threads
11644 target_thread_file='single'
11645 ;;
11646 yes)
11647 # default
11648 target_thread_file='single'
11649 ;;
11650 aix | dce | lynx | mipssde | posix | rtems | \
11651 single | tpf | vxworks | win32)
11652 target_thread_file=${enable_threads}
11653 ;;
11654 *)
11655 echo "${enable_threads} is an unknown thread package" 1>&2
11656 exit 1
11657 ;;
11658 esac
11659
11660 if test x${thread_file} = x; then
11661 # No thread file set by target-specific clauses in config.gcc,
11662 # so use file chosen by default logic above
11663 thread_file=${target_thread_file}
11664 fi
11665
11666 # --------
11667 # UNSORTED
11668 # --------
11669
11670 use_cxa_atexit=no
11671 if test x$enable___cxa_atexit = xyes || \
11672 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11673 if test x$host = x$target; then
11674 case $host in
11675 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11676 # keyed to flag_use_cxa_atexit
11677 *-*-mingw32*)
11678 use_cxa_atexit=yes
11679 ;;
11680 powerpc-ibm-aix*)
11681 use_cxa_atexit=yes
11682 ;;
11683 *)
11684 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11685 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11686 use_cxa_atexit=yes
11687 else
11688 echo "__cxa_atexit can't be enabled on this target"
11689 fi
11690
11691 ;;
11692 esac
11693 else
11694 # We can't check for __cxa_atexit when building a cross, so assume
11695 # it is available
11696 use_cxa_atexit=yes
11697 fi
11698 if test x$use_cxa_atexit = xyes; then
11699
11700 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11701
11702 fi
11703 fi
11704
11705 # Look for a file containing extra machine modes.
11706 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11707 extra_modes_file='$(srcdir)'/config/${extra_modes}
11708
11709
11710 cat >>confdefs.h <<_ACEOF
11711 #define EXTRA_MODES_FILE "config/$extra_modes"
11712 _ACEOF
11713
11714 fi
11715
11716 # Convert extra_options into a form suitable for Makefile use.
11717 extra_opt_files=
11718 all_opt_files=
11719 for f in $extra_options; do
11720 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11721 all_opt_files="$all_opt_files $srcdir/config/$f"
11722 done
11723
11724
11725 # auto-host.h is the file containing items generated by autoconf and is
11726 # the first file included by config.h.
11727 # If host=build, it is correct to have bconfig include auto-host.h
11728 # as well. If host!=build, we are in error and need to do more
11729 # work to find out the build config parameters.
11730 if test x$host = x$build
11731 then
11732 build_auto=auto-host.h
11733 else
11734 # We create a subdir, then run autoconf in the subdir.
11735 # To prevent recursion we set host and build for the new
11736 # invocation of configure to the build for this invocation
11737 # of configure.
11738 tempdir=build.$$
11739 rm -rf $tempdir
11740 mkdir $tempdir
11741 cd $tempdir
11742 case ${srcdir} in
11743 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11744 *) realsrcdir=../${srcdir};;
11745 esac
11746 # Clearing GMPINC is necessary to prevent host headers being
11747 # used by the build compiler. Defining GENERATOR_FILE stops
11748 # system.h from including gmp.h.
11749 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11750 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11751 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11752 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11753 ${realsrcdir}/configure \
11754 --enable-languages=${enable_languages-all} \
11755 --target=$target_alias --host=$build_alias --build=$build_alias
11756
11757 # We just finished tests for the build machine, so rename
11758 # the file auto-build.h in the gcc directory.
11759 mv auto-host.h ../auto-build.h
11760 cd ..
11761 rm -rf $tempdir
11762 build_auto=auto-build.h
11763 fi
11764
11765
11766 tm_file="${tm_file} defaults.h"
11767 tm_p_file="${tm_p_file} tm-preds.h"
11768 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11769 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11770 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11771 # put this back in temporarily.
11772 xm_file="auto-host.h ansidecl.h ${xm_file}"
11773
11774 # --------
11775 # UNSORTED
11776 # --------
11777
11778 # Compile in configure arguments.
11779 if test -f configargs.h ; then
11780 # Being re-configured.
11781 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11782 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11783 else
11784 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11785 fi
11786
11787 # Double all backslashes and backslash all quotes to turn
11788 # gcc_config_arguments into a C string.
11789 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11790 $gcc_config_arguments
11791 EOF
11792 gcc_config_arguments_str=`cat conftest.out`
11793 rm -f conftest.out
11794
11795 cat > configargs.h <<EOF
11796 /* Generated automatically. */
11797 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11798 static const char thread_model[] = "$thread_file";
11799
11800 static const struct {
11801 const char *name, *value;
11802 } configure_default_options[] = $configure_default_options;
11803 EOF
11804
11805 gcc_BASEVER=`cat $srcdir/BASE-VER`
11806 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11807 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11808 if test -f $srcdir/REVISION ; then
11809 gcc_REVISION=`cat $srcdir/REVISION`
11810 else
11811 gcc_REVISION=""
11812 fi
11813 cat > plugin-version.h <<EOF
11814 #include "configargs.h"
11815
11816 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11817 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11818 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11819 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11820
11821 static char basever[] = "$gcc_BASEVER";
11822 static char datestamp[] = "$gcc_DATESTAMP";
11823 static char devphase[] = "$gcc_DEVPHASE";
11824 static char revision[] = "$gcc_REVISION";
11825
11826 /* FIXME plugins: We should make the version information more precise.
11827 One way to do is to add a checksum. */
11828
11829 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11830 devphase, revision,
11831 configuration_arguments};
11832 EOF
11833
11834 # Internationalization
11835 # If we haven't got the data from the intl directory,
11836 # assume NLS is disabled.
11837 USE_NLS=no
11838 LIBINTL=
11839 LIBINTL_DEP=
11840 INCINTL=
11841 XGETTEXT=
11842 GMSGFMT=
11843 POSUB=
11844
11845 if test -f ../intl/config.intl; then
11846 . ../intl/config.intl
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11849 $as_echo_n "checking whether NLS is requested... " >&6; }
11850 if test x"$USE_NLS" != xyes; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 $as_echo "yes" >&6; }
11856
11857 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11858
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11861 $as_echo_n "checking for catalogs to be installed... " >&6; }
11862 # Look for .po and .gmo files in the source directory.
11863 CATALOGS=
11864 XLINGUAS=
11865 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11866 # If there aren't any .gmo files the shell will give us the
11867 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11868 # weeded out.
11869 case "$cat" in *\**)
11870 continue;;
11871 esac
11872 # The quadruple backslash is collapsed to a double backslash
11873 # by the backticks, then collapsed again by the double quotes,
11874 # leaving us with one backslash in the sed expression (right
11875 # before the dot that mustn't act as a wildcard).
11876 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11877 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11878 # The user is allowed to set LINGUAS to a list of languages to
11879 # install catalogs for. If it's empty that means "all of them."
11880 if test "x$LINGUAS" = x; then
11881 CATALOGS="$CATALOGS $cat"
11882 XLINGUAS="$XLINGUAS $lang"
11883 else
11884 case "$LINGUAS" in *$lang*)
11885 CATALOGS="$CATALOGS $cat"
11886 XLINGUAS="$XLINGUAS $lang"
11887 ;;
11888 esac
11889 fi
11890 done
11891 LINGUAS="$XLINGUAS"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11893 $as_echo "$LINGUAS" >&6; }
11894
11895
11896 DATADIRNAME=share
11897
11898 INSTOBJEXT=.mo
11899
11900 GENCAT=gencat
11901
11902 CATOBJEXT=.gmo
11903
11904 fi
11905
11906 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11907 # -liconv on the link line twice.
11908 case "$LIBINTL" in *$LIBICONV*)
11909 LIBICONV= ;;
11910 esac
11911
11912 # Check whether --enable-secureplt was given.
11913 if test "${enable_secureplt+set}" = set; then :
11914 enableval=$enable_secureplt;
11915 fi
11916
11917
11918 # Check whether --enable-leading-mingw64-underscores was given.
11919 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11920 enableval=$enable_leading_mingw64_underscores;
11921 fi
11922
11923 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11924
11925 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11926
11927 fi
11928
11929 # Check whether --enable-cld was given.
11930 if test "${enable_cld+set}" = set; then :
11931 enableval=$enable_cld;
11932 else
11933 enable_cld=no
11934 fi
11935
11936
11937 # Check whether --enable-frame-pointer was given.
11938 if test "${enable_frame_pointer+set}" = set; then :
11939 enableval=$enable_frame_pointer;
11940 else
11941
11942 case $target_os in
11943 linux* | darwin[8912]*)
11944 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11945 # DWARF2.
11946 enable_frame_pointer=no
11947 ;;
11948 *)
11949 enable_frame_pointer=yes
11950 ;;
11951 esac
11952
11953 fi
11954
11955
11956 # Windows32 Registry support for specifying GCC installation paths.
11957 # Check whether --enable-win32-registry was given.
11958 if test "${enable_win32_registry+set}" = set; then :
11959 enableval=$enable_win32_registry;
11960 fi
11961
11962
11963 case $host_os in
11964 win32 | pe | cygwin* | mingw32*)
11965 if test "x$enable_win32_registry" != xno; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11967 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11968 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_func_search_save_LIBS=$LIBS
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char RegOpenKeyExA ();
11982 int
11983 main ()
11984 {
11985 return RegOpenKeyExA ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 for ac_lib in '' advapi32; do
11991 if test -z "$ac_lib"; then
11992 ac_res="none required"
11993 else
11994 ac_res=-l$ac_lib
11995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11996 fi
11997 if ac_fn_cxx_try_link "$LINENO"; then :
11998 ac_cv_search_RegOpenKeyExA=$ac_res
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext
12002 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12003 break
12004 fi
12005 done
12006 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12007
12008 else
12009 ac_cv_search_RegOpenKeyExA=no
12010 fi
12011 rm conftest.$ac_ext
12012 LIBS=$ac_func_search_save_LIBS
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12015 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12016 ac_res=$ac_cv_search_RegOpenKeyExA
12017 if test "$ac_res" != no; then :
12018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12019
12020 else
12021 enable_win32_registry=no
12022 fi
12023
12024 fi
12025
12026 if test "x$enable_win32_registry" != xno; then
12027
12028 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12029
12030
12031 if test "x$enable_win32_registry" != xyes \
12032 && test "x$enable_win32_registry" != x; then
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12036 _ACEOF
12037
12038 fi
12039 fi
12040 ;;
12041 esac
12042
12043 # Get an absolute path to the GCC top-level source directory
12044 holddir=`${PWDCMD-pwd}`
12045 cd $srcdir
12046 topdir=`${PWDCMD-pwd}`
12047 cd $holddir
12048
12049 # Conditionalize the makefile for this host machine.
12050 xmake_file=
12051 for f in ${host_xmake_file}
12052 do
12053 if test -f ${srcdir}/config/$f
12054 then
12055 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12056 fi
12057 done
12058
12059 # Conditionalize the makefile for this target machine.
12060 tmake_file_=
12061 for f in ${tmake_file}
12062 do
12063 if test -f ${srcdir}/config/$f
12064 then
12065 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12066 fi
12067 done
12068 tmake_file="${tmake_file_}"
12069
12070 out_object_file=`basename $out_file .c`.o
12071 common_out_object_file=`basename $common_out_file .c`.o
12072
12073 tm_file_list="options.h"
12074 tm_include_list="options.h insn-constants.h"
12075 for f in $tm_file; do
12076 case $f in
12077 ./* )
12078 f=`echo $f | sed 's/^..//'`
12079 tm_file_list="${tm_file_list} $f"
12080 tm_include_list="${tm_include_list} $f"
12081 ;;
12082 defaults.h )
12083 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12084 tm_include_list="${tm_include_list} $f"
12085 ;;
12086 * )
12087 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12088 tm_include_list="${tm_include_list} config/$f"
12089 ;;
12090 esac
12091 done
12092
12093 tm_p_file_list=
12094 tm_p_include_list=
12095 for f in $tm_p_file; do
12096 case $f in
12097 tm-preds.h )
12098 tm_p_file_list="${tm_p_file_list} $f"
12099 tm_p_include_list="${tm_p_include_list} $f"
12100 ;;
12101 * )
12102 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12103 tm_p_include_list="${tm_p_include_list} config/$f"
12104 esac
12105 done
12106
12107 xm_file_list=
12108 xm_include_list=
12109 for f in $xm_file; do
12110 case $f in
12111 ansidecl.h )
12112 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12113 xm_include_list="${xm_include_list} $f"
12114 ;;
12115 auto-host.h )
12116 xm_file_list="${xm_file_list} $f"
12117 xm_include_list="${xm_include_list} $f"
12118 ;;
12119 * )
12120 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12121 xm_include_list="${xm_include_list} config/$f"
12122 ;;
12123 esac
12124 done
12125
12126 host_xm_file_list=
12127 host_xm_include_list=
12128 for f in $host_xm_file; do
12129 case $f in
12130 ansidecl.h )
12131 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12132 host_xm_include_list="${host_xm_include_list} $f"
12133 ;;
12134 auto-host.h )
12135 host_xm_file_list="${host_xm_file_list} $f"
12136 host_xm_include_list="${host_xm_include_list} $f"
12137 ;;
12138 * )
12139 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12140 host_xm_include_list="${host_xm_include_list} config/$f"
12141 ;;
12142 esac
12143 done
12144
12145 build_xm_file_list=
12146 for f in $build_xm_file; do
12147 case $f in
12148 ansidecl.h )
12149 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12150 build_xm_include_list="${build_xm_include_list} $f"
12151 ;;
12152 auto-build.h | auto-host.h )
12153 build_xm_file_list="${build_xm_file_list} $f"
12154 build_xm_include_list="${build_xm_include_list} $f"
12155 ;;
12156 * )
12157 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12158 build_xm_include_list="${build_xm_include_list} config/$f"
12159 ;;
12160 esac
12161 done
12162
12163 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12164 # cross-compiler which does not use the native headers and libraries.
12165 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12166 CROSS=
12167 ALL=all.internal
12168 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12169
12170 if test "x$with_build_sysroot" != x; then
12171 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12172 else
12173 # This value is used, even on a native system, because
12174 # CROSS_SYSTEM_HEADER_DIR is just
12175 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12176 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12177 fi
12178
12179 if test x$host != x$target
12180 then
12181 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12182 ALL=all.cross
12183 SYSTEM_HEADER_DIR=$build_system_header_dir
12184 case "$host","$target" in
12185 # Darwin crosses can use the host system's libraries and headers,
12186 # because of the fat library support. Of course, it must be the
12187 # same version of Darwin on both sides. Allow the user to
12188 # just say --target=foo-darwin without a version number to mean
12189 # "the version on this system".
12190 *-*-darwin*,*-*-darwin*)
12191 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12192 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12193 if test $hostos = $targetos -o $targetos = darwin ; then
12194 CROSS=
12195 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12196 with_headers=yes
12197 fi
12198 ;;
12199
12200 i?86-*-*,x86_64-*-* \
12201 | powerpc*-*-*,powerpc64*-*-*)
12202 CROSS="$CROSS -DNATIVE_CROSS" ;;
12203 esac
12204
12205 case $target in
12206 *-*-mingw*)
12207 if test "x$with_headers" = x; then
12208 with_headers=yes
12209 fi
12210 ;;
12211 *)
12212 ;;
12213 esac
12214 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12215 SYSTEM_HEADER_DIR=$build_system_header_dir
12216 fi
12217
12218 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12219 if test "x$with_headers" != x; then
12220 target_header_dir=$with_headers
12221 elif test "x$with_sysroot" = x; then
12222 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12223 elif test "x$with_build_sysroot" != "x"; then
12224 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12225 elif test "x$with_sysroot" = xyes; then
12226 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12227 else
12228 target_header_dir="${with_sysroot}${native_system_header_dir}"
12229 fi
12230 else
12231 target_header_dir=${native_system_header_dir}
12232 fi
12233
12234 # If this is a cross-compiler that does not
12235 # have its own set of headers then define
12236 # inhibit_libc
12237
12238 # If this is using newlib, without having the headers available now,
12239 # then define inhibit_libc in LIBGCC2_CFLAGS.
12240 # This prevents libgcc2 from containing any code which requires libc
12241 # support.
12242 : ${inhibit_libc=false}
12243 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12244 test x$with_newlib = xyes ; } &&
12245 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12246 inhibit_libc=true
12247 fi
12248
12249
12250 # When building gcc with a cross-compiler, we need to adjust things so
12251 # that the generator programs are still built with the native compiler.
12252 # Also, we cannot run fixincludes.
12253
12254 # These are the normal (build=host) settings:
12255 CC_FOR_BUILD='$(CC)'
12256 CXX_FOR_BUILD='$(CXX)'
12257 BUILD_CFLAGS='$(ALL_CFLAGS)'
12258 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12259 BUILD_LDFLAGS='$(LDFLAGS)'
12260 STMP_FIXINC=stmp-fixinc
12261
12262 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12263 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12264
12265 # And these apply if build != host, or we are generating coverage data
12266 if test x$build != x$host || test "x$coverage_flags" != x
12267 then
12268 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12269 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12270 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12271
12272 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12273 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12274 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12275 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12276 fi
12277
12278
12279
12280 # Expand extra_headers to include complete path.
12281 # This substitutes for lots of t-* files.
12282 extra_headers_list=
12283 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12284 for file in ${extra_headers} ; do
12285 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12286 done
12287
12288 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12289 if test x"$use_gcc_tgmath" = xyes
12290 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12291 fi
12292
12293 # Define collect2 in Makefile.
12294 case $host_can_use_collect2 in
12295 no) collect2= ;;
12296 *) collect2='collect2$(exeext)' ;;
12297 esac
12298
12299
12300 # Add a definition of USE_COLLECT2 if system wants one.
12301 case $use_collect2 in
12302 no) use_collect2= ;;
12303 "") ;;
12304 *)
12305 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12306 xm_defines="${xm_defines} USE_COLLECT2"
12307 case $host_can_use_collect2 in
12308 no)
12309 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12310 ;;
12311 esac
12312 ;;
12313 esac
12314
12315
12316 cat >>confdefs.h <<_ACEOF
12317 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12318 _ACEOF
12319
12320
12321 # ---------------------------
12322 # Assembler & linker features
12323 # ---------------------------
12324
12325 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12326 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12327 # However when ld-new is first executed from the build tree, libtool will
12328 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12329 # to the build tree. While doing this we need to use the previous-stage
12330 # linker, or we have an infinite loop. The presence of a shell script as
12331 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12332 # the gcc/collect-ld script. So we need to know how libtool works, or
12333 # exec-tool will fail.
12334
12335
12336 case `pwd` in
12337 *\ * | *\ *)
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12339 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12340 esac
12341
12342
12343
12344 macro_version='2.2.7a'
12345 macro_revision='1.3134'
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359 ltmain="$ac_aux_dir/ltmain.sh"
12360
12361 # Backslashify metacharacters that are still active within
12362 # double-quoted strings.
12363 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12364
12365 # Same as above, but do not quote variable references.
12366 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12367
12368 # Sed substitution to delay expansion of an escaped shell variable in a
12369 # double_quote_subst'ed string.
12370 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12371
12372 # Sed substitution to delay expansion of an escaped single quote.
12373 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12374
12375 # Sed substitution to avoid accidental globbing in evaled expressions
12376 no_glob_subst='s/\*/\\\*/g'
12377
12378 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12379 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12380 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12383 $as_echo_n "checking how to print strings... " >&6; }
12384 # Test print first, because it will be a builtin if present.
12385 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12386 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12387 ECHO='print -r --'
12388 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12389 ECHO='printf %s\n'
12390 else
12391 # Use this function as a fallback that always works.
12392 func_fallback_echo ()
12393 {
12394 eval 'cat <<_LTECHO_EOF
12395 $1
12396 _LTECHO_EOF'
12397 }
12398 ECHO='func_fallback_echo'
12399 fi
12400
12401 # func_echo_all arg...
12402 # Invoke $ECHO with all args, space-separated.
12403 func_echo_all ()
12404 {
12405 $ECHO ""
12406 }
12407
12408 case "$ECHO" in
12409 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12410 $as_echo "printf" >&6; } ;;
12411 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12412 $as_echo "print -r" >&6; } ;;
12413 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12414 $as_echo "cat" >&6; } ;;
12415 esac
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12431 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12432 if test "${ac_cv_path_SED+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12436 for ac_i in 1 2 3 4 5 6 7; do
12437 ac_script="$ac_script$as_nl$ac_script"
12438 done
12439 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12440 { ac_script=; unset ac_script;}
12441 if test -z "$SED"; then
12442 ac_path_SED_found=false
12443 # Loop through the user's path and test for each of PROGNAME-LIST
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_prog in sed gsed; do
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12452 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12453 # Check for GNU ac_path_SED and select it if it is found.
12454 # Check for GNU $ac_path_SED
12455 case `"$ac_path_SED" --version 2>&1` in
12456 *GNU*)
12457 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12458 *)
12459 ac_count=0
12460 $as_echo_n 0123456789 >"conftest.in"
12461 while :
12462 do
12463 cat "conftest.in" "conftest.in" >"conftest.tmp"
12464 mv "conftest.tmp" "conftest.in"
12465 cp "conftest.in" "conftest.nl"
12466 $as_echo '' >> "conftest.nl"
12467 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12469 as_fn_arith $ac_count + 1 && ac_count=$as_val
12470 if test $ac_count -gt ${ac_path_SED_max-0}; then
12471 # Best one so far, save it but keep looking for a better one
12472 ac_cv_path_SED="$ac_path_SED"
12473 ac_path_SED_max=$ac_count
12474 fi
12475 # 10*(2^10) chars as input seems more than enough
12476 test $ac_count -gt 10 && break
12477 done
12478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12479 esac
12480
12481 $ac_path_SED_found && break 3
12482 done
12483 done
12484 done
12485 IFS=$as_save_IFS
12486 if test -z "$ac_cv_path_SED"; then
12487 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12488 fi
12489 else
12490 ac_cv_path_SED=$SED
12491 fi
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12495 $as_echo "$ac_cv_path_SED" >&6; }
12496 SED="$ac_cv_path_SED"
12497 rm -f conftest.sed
12498
12499 test -z "$SED" && SED=sed
12500 Xsed="$SED -e 1s/^X//"
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12513 $as_echo_n "checking for fgrep... " >&6; }
12514 if test "${ac_cv_path_FGREP+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12518 then ac_cv_path_FGREP="$GREP -F"
12519 else
12520 if test -z "$FGREP"; then
12521 ac_path_FGREP_found=false
12522 # Loop through the user's path and test for each of PROGNAME-LIST
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12525 do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_prog in fgrep; do
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12531 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12532 # Check for GNU ac_path_FGREP and select it if it is found.
12533 # Check for GNU $ac_path_FGREP
12534 case `"$ac_path_FGREP" --version 2>&1` in
12535 *GNU*)
12536 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12537 *)
12538 ac_count=0
12539 $as_echo_n 0123456789 >"conftest.in"
12540 while :
12541 do
12542 cat "conftest.in" "conftest.in" >"conftest.tmp"
12543 mv "conftest.tmp" "conftest.in"
12544 cp "conftest.in" "conftest.nl"
12545 $as_echo 'FGREP' >> "conftest.nl"
12546 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12548 as_fn_arith $ac_count + 1 && ac_count=$as_val
12549 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12550 # Best one so far, save it but keep looking for a better one
12551 ac_cv_path_FGREP="$ac_path_FGREP"
12552 ac_path_FGREP_max=$ac_count
12553 fi
12554 # 10*(2^10) chars as input seems more than enough
12555 test $ac_count -gt 10 && break
12556 done
12557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12558 esac
12559
12560 $ac_path_FGREP_found && break 3
12561 done
12562 done
12563 done
12564 IFS=$as_save_IFS
12565 if test -z "$ac_cv_path_FGREP"; then
12566 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12567 fi
12568 else
12569 ac_cv_path_FGREP=$FGREP
12570 fi
12571
12572 fi
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12575 $as_echo "$ac_cv_path_FGREP" >&6; }
12576 FGREP="$ac_cv_path_FGREP"
12577
12578
12579 test -z "$GREP" && GREP=grep
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599 # Check whether --with-gnu-ld was given.
12600 if test "${with_gnu_ld+set}" = set; then :
12601 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12602 else
12603 with_gnu_ld=no
12604 fi
12605
12606 ac_prog=ld
12607 if test "$GCC" = yes; then
12608 # Check if gcc -print-prog-name=ld gives a path.
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12610 $as_echo_n "checking for ld used by $CC... " >&6; }
12611 case $host in
12612 *-*-mingw*)
12613 # gcc leaves a trailing carriage return which upsets mingw
12614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12615 *)
12616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12617 esac
12618 case $ac_prog in
12619 # Accept absolute paths.
12620 [\\/]* | ?:[\\/]*)
12621 re_direlt='/[^/][^/]*/\.\./'
12622 # Canonicalize the pathname of ld
12623 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12624 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12625 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12626 done
12627 test -z "$LD" && LD="$ac_prog"
12628 ;;
12629 "")
12630 # If it fails, then pretend we aren't using GCC.
12631 ac_prog=ld
12632 ;;
12633 *)
12634 # If it is relative, then search for the first ld in PATH.
12635 with_gnu_ld=unknown
12636 ;;
12637 esac
12638 elif test "$with_gnu_ld" = yes; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12640 $as_echo_n "checking for GNU ld... " >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12643 $as_echo_n "checking for non-GNU ld... " >&6; }
12644 fi
12645 if test "${lt_cv_path_LD+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 if test -z "$LD"; then
12649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12650 for ac_dir in $PATH; do
12651 IFS="$lt_save_ifs"
12652 test -z "$ac_dir" && ac_dir=.
12653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12654 lt_cv_path_LD="$ac_dir/$ac_prog"
12655 # Check to see if the program is GNU ld. I'd rather use --version,
12656 # but apparently some variants of GNU ld only accept -v.
12657 # Break only if it was the GNU/non-GNU ld that we prefer.
12658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12659 *GNU* | *'with BFD'*)
12660 test "$with_gnu_ld" != no && break
12661 ;;
12662 *)
12663 test "$with_gnu_ld" != yes && break
12664 ;;
12665 esac
12666 fi
12667 done
12668 IFS="$lt_save_ifs"
12669 else
12670 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12671 fi
12672 fi
12673
12674 LD="$lt_cv_path_LD"
12675 if test -n "$LD"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12677 $as_echo "$LD" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12684 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12685 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12689 case `$LD -v 2>&1 </dev/null` in
12690 *GNU* | *'with BFD'*)
12691 lt_cv_prog_gnu_ld=yes
12692 ;;
12693 *)
12694 lt_cv_prog_gnu_ld=no
12695 ;;
12696 esac
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12699 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12700 with_gnu_ld=$lt_cv_prog_gnu_ld
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12711 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12712 if test "${lt_cv_path_NM+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 if test -n "$NM"; then
12716 # Let the user override the test.
12717 lt_cv_path_NM="$NM"
12718 else
12719 lt_nm_to_check="${ac_tool_prefix}nm"
12720 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12721 lt_nm_to_check="$lt_nm_to_check nm"
12722 fi
12723 for lt_tmp_nm in $lt_nm_to_check; do
12724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12725 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12726 IFS="$lt_save_ifs"
12727 test -z "$ac_dir" && ac_dir=.
12728 tmp_nm="$ac_dir/$lt_tmp_nm"
12729 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12730 # Check to see if the nm accepts a BSD-compat flag.
12731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12732 # nm: unknown option "B" ignored
12733 # Tru64's nm complains that /dev/null is an invalid object file
12734 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12735 */dev/null* | *'Invalid file or object type'*)
12736 lt_cv_path_NM="$tmp_nm -B"
12737 break
12738 ;;
12739 *)
12740 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12741 */dev/null*)
12742 lt_cv_path_NM="$tmp_nm -p"
12743 break
12744 ;;
12745 *)
12746 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12747 continue # so that we can try to find one that supports BSD flags
12748 ;;
12749 esac
12750 ;;
12751 esac
12752 fi
12753 done
12754 IFS="$lt_save_ifs"
12755 done
12756 : ${lt_cv_path_NM=no}
12757 fi
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12760 $as_echo "$lt_cv_path_NM" >&6; }
12761 if test "$lt_cv_path_NM" != "no"; then
12762 NM="$lt_cv_path_NM"
12763 else
12764 # Didn't find any BSD compatible name lister, look for dumpbin.
12765 if test -n "$DUMPBIN"; then :
12766 # Let the user override the test.
12767 else
12768 if test -n "$ac_tool_prefix"; then
12769 for ac_prog in dumpbin "link -dump"
12770 do
12771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 if test -n "$DUMPBIN"; then
12779 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12780 else
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12783 do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792 done
12793 done
12794 IFS=$as_save_IFS
12795
12796 fi
12797 fi
12798 DUMPBIN=$ac_cv_prog_DUMPBIN
12799 if test -n "$DUMPBIN"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12801 $as_echo "$DUMPBIN" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805 fi
12806
12807
12808 test -n "$DUMPBIN" && break
12809 done
12810 fi
12811 if test -z "$DUMPBIN"; then
12812 ac_ct_DUMPBIN=$DUMPBIN
12813 for ac_prog in dumpbin "link -dump"
12814 do
12815 # Extract the first word of "$ac_prog", so it can be a program name with args.
12816 set dummy $ac_prog; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test -n "$ac_ct_DUMPBIN"; then
12823 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12832 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12835 fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12843 if test -n "$ac_ct_DUMPBIN"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12845 $as_echo "$ac_ct_DUMPBIN" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 fi
12850
12851
12852 test -n "$ac_ct_DUMPBIN" && break
12853 done
12854
12855 if test "x$ac_ct_DUMPBIN" = x; then
12856 DUMPBIN=":"
12857 else
12858 case $cross_compiling:$ac_tool_warned in
12859 yes:)
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12862 ac_tool_warned=yes ;;
12863 esac
12864 DUMPBIN=$ac_ct_DUMPBIN
12865 fi
12866 fi
12867
12868 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12869 *COFF*)
12870 DUMPBIN="$DUMPBIN -symbols"
12871 ;;
12872 *)
12873 DUMPBIN=:
12874 ;;
12875 esac
12876 fi
12877
12878 if test "$DUMPBIN" != ":"; then
12879 NM="$DUMPBIN"
12880 fi
12881 fi
12882 test -z "$NM" && NM=nm
12883
12884
12885
12886
12887
12888
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12890 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12891 if test "${lt_cv_nm_interface+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 lt_cv_nm_interface="BSD nm"
12895 echo "int some_variable = 0;" > conftest.$ac_ext
12896 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12897 (eval "$ac_compile" 2>conftest.err)
12898 cat conftest.err >&5
12899 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12900 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12901 cat conftest.err >&5
12902 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12903 cat conftest.out >&5
12904 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12905 lt_cv_nm_interface="MS dumpbin"
12906 fi
12907 rm -f conftest*
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12910 $as_echo "$lt_cv_nm_interface" >&6; }
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12913 $as_echo_n "checking whether ln -s works... " >&6; }
12914 LN_S=$as_ln_s
12915 if test "$LN_S" = "ln -s"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12920 $as_echo "no, using $LN_S" >&6; }
12921 fi
12922
12923 # find the maximum length of command line arguments
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12925 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12926 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 i=0
12930 teststring="ABCD"
12931
12932 case $build_os in
12933 msdosdjgpp*)
12934 # On DJGPP, this test can blow up pretty badly due to problems in libc
12935 # (any single argument exceeding 2000 bytes causes a buffer overrun
12936 # during glob expansion). Even if it were fixed, the result of this
12937 # check would be larger than it should be.
12938 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12939 ;;
12940
12941 gnu*)
12942 # Under GNU Hurd, this test is not required because there is
12943 # no limit to the length of command line arguments.
12944 # Libtool will interpret -1 as no limit whatsoever
12945 lt_cv_sys_max_cmd_len=-1;
12946 ;;
12947
12948 cygwin* | mingw* | cegcc*)
12949 # On Win9x/ME, this test blows up -- it succeeds, but takes
12950 # about 5 minutes as the teststring grows exponentially.
12951 # Worse, since 9x/ME are not pre-emptively multitasking,
12952 # you end up with a "frozen" computer, even though with patience
12953 # the test eventually succeeds (with a max line length of 256k).
12954 # Instead, let's just punt: use the minimum linelength reported by
12955 # all of the supported platforms: 8192 (on NT/2K/XP).
12956 lt_cv_sys_max_cmd_len=8192;
12957 ;;
12958
12959 mint*)
12960 # On MiNT this can take a long time and run out of memory.
12961 lt_cv_sys_max_cmd_len=8192;
12962 ;;
12963
12964 amigaos*)
12965 # On AmigaOS with pdksh, this test takes hours, literally.
12966 # So we just punt and use a minimum line length of 8192.
12967 lt_cv_sys_max_cmd_len=8192;
12968 ;;
12969
12970 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12971 # This has been around since 386BSD, at least. Likely further.
12972 if test -x /sbin/sysctl; then
12973 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12974 elif test -x /usr/sbin/sysctl; then
12975 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12976 else
12977 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12978 fi
12979 # And add a safety zone
12980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12982 ;;
12983
12984 interix*)
12985 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12986 lt_cv_sys_max_cmd_len=196608
12987 ;;
12988
12989 osf*)
12990 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12991 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12992 # nice to cause kernel panics so lets avoid the loop below.
12993 # First set a reasonable default.
12994 lt_cv_sys_max_cmd_len=16384
12995 #
12996 if test -x /sbin/sysconfig; then
12997 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12998 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12999 esac
13000 fi
13001 ;;
13002 sco3.2v5*)
13003 lt_cv_sys_max_cmd_len=102400
13004 ;;
13005 sysv5* | sco5v6* | sysv4.2uw2*)
13006 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13007 if test -n "$kargmax"; then
13008 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13009 else
13010 lt_cv_sys_max_cmd_len=32768
13011 fi
13012 ;;
13013 *)
13014 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13015 if test -n "$lt_cv_sys_max_cmd_len"; then
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 else
13019 # Make teststring a little bigger before we do anything with it.
13020 # a 1K string should be a reasonable start.
13021 for i in 1 2 3 4 5 6 7 8 ; do
13022 teststring=$teststring$teststring
13023 done
13024 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13025 # If test is not a shell built-in, we'll probably end up computing a
13026 # maximum length that is only half of the actual maximum length, but
13027 # we can't tell.
13028 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13029 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13030 test $i != 17 # 1/2 MB should be enough
13031 do
13032 i=`expr $i + 1`
13033 teststring=$teststring$teststring
13034 done
13035 # Only check the string length outside the loop.
13036 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13037 teststring=
13038 # Add a significant safety factor because C++ compilers can tack on
13039 # massive amounts of additional arguments before passing them to the
13040 # linker. It appears as though 1/2 is a usable value.
13041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13042 fi
13043 ;;
13044 esac
13045
13046 fi
13047
13048 if test -n $lt_cv_sys_max_cmd_len ; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13050 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13053 $as_echo "none" >&6; }
13054 fi
13055 max_cmd_len=$lt_cv_sys_max_cmd_len
13056
13057
13058
13059
13060
13061
13062 : ${CP="cp -f"}
13063 : ${MV="mv -f"}
13064 : ${RM="rm -f"}
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13067 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13068 # Try some XSI features
13069 xsi_shell=no
13070 ( _lt_dummy="a/b/c"
13071 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13072 = c,a/b,, \
13073 && eval 'test $(( 1 + 1 )) -eq 2 \
13074 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13075 && xsi_shell=yes
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13077 $as_echo "$xsi_shell" >&6; }
13078
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13081 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13082 lt_shell_append=no
13083 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13084 >/dev/null 2>&1 \
13085 && lt_shell_append=yes
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13087 $as_echo "$lt_shell_append" >&6; }
13088
13089
13090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13091 lt_unset=unset
13092 else
13093 lt_unset=false
13094 fi
13095
13096
13097
13098
13099
13100 # test EBCDIC or ASCII
13101 case `echo X|tr X '\101'` in
13102 A) # ASCII based system
13103 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13104 lt_SP2NL='tr \040 \012'
13105 lt_NL2SP='tr \015\012 \040\040'
13106 ;;
13107 *) # EBCDIC based system
13108 lt_SP2NL='tr \100 \n'
13109 lt_NL2SP='tr \r\n \100\100'
13110 ;;
13111 esac
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13122 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13123 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 lt_cv_ld_reload_flag='-r'
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13129 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13130 reload_flag=$lt_cv_ld_reload_flag
13131 case $reload_flag in
13132 "" | " "*) ;;
13133 *) reload_flag=" $reload_flag" ;;
13134 esac
13135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13136 case $host_os in
13137 darwin*)
13138 if test "$GCC" = yes; then
13139 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13140 else
13141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13142 fi
13143 ;;
13144 esac
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13156 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$OBJDUMP"; then
13163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176 done
13177 done
13178 IFS=$as_save_IFS
13179
13180 fi
13181 fi
13182 OBJDUMP=$ac_cv_prog_OBJDUMP
13183 if test -n "$OBJDUMP"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13185 $as_echo "$OBJDUMP" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191
13192 fi
13193 if test -z "$ac_cv_prog_OBJDUMP"; then
13194 ac_ct_OBJDUMP=$OBJDUMP
13195 # Extract the first word of "objdump", so it can be a program name with args.
13196 set dummy objdump; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$ac_ct_OBJDUMP"; then
13203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13223 if test -n "$ac_ct_OBJDUMP"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13225 $as_echo "$ac_ct_OBJDUMP" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230
13231 if test "x$ac_ct_OBJDUMP" = x; then
13232 OBJDUMP="false"
13233 else
13234 case $cross_compiling:$ac_tool_warned in
13235 yes:)
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238 ac_tool_warned=yes ;;
13239 esac
13240 OBJDUMP=$ac_ct_OBJDUMP
13241 fi
13242 else
13243 OBJDUMP="$ac_cv_prog_OBJDUMP"
13244 fi
13245
13246 test -z "$OBJDUMP" && OBJDUMP=objdump
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13257 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13258 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 lt_cv_file_magic_cmd='$MAGIC_CMD'
13262 lt_cv_file_magic_test_file=
13263 lt_cv_deplibs_check_method='unknown'
13264 # Need to set the preceding variable on all platforms that support
13265 # interlibrary dependencies.
13266 # 'none' -- dependencies not supported.
13267 # `unknown' -- same as none, but documents that we really don't know.
13268 # 'pass_all' -- all dependencies passed with no checks.
13269 # 'test_compile' -- check by making test program.
13270 # 'file_magic [[regex]]' -- check by looking for files in library path
13271 # which responds to the $file_magic_cmd with a given extended regex.
13272 # If you have `file' or equivalent on your system and you're not sure
13273 # whether `pass_all' will *always* work, you probably want this one.
13274
13275 case $host_os in
13276 aix[4-9]*)
13277 lt_cv_deplibs_check_method=pass_all
13278 ;;
13279
13280 beos*)
13281 lt_cv_deplibs_check_method=pass_all
13282 ;;
13283
13284 bsdi[45]*)
13285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13286 lt_cv_file_magic_cmd='/usr/bin/file -L'
13287 lt_cv_file_magic_test_file=/shlib/libc.so
13288 ;;
13289
13290 cygwin*)
13291 # func_win32_libid is a shell function defined in ltmain.sh
13292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13293 lt_cv_file_magic_cmd='func_win32_libid'
13294 ;;
13295
13296 mingw* | pw32*)
13297 # Base MSYS/MinGW do not provide the 'file' command needed by
13298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13299 # unless we find 'file', for example because we are cross-compiling.
13300 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13301 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13303 lt_cv_file_magic_cmd='func_win32_libid'
13304 else
13305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13306 lt_cv_file_magic_cmd='$OBJDUMP -f'
13307 fi
13308 ;;
13309
13310 cegcc*)
13311 # use the weaker test based on 'objdump'. See mingw*.
13312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13313 lt_cv_file_magic_cmd='$OBJDUMP -f'
13314 ;;
13315
13316 darwin* | rhapsody*)
13317 lt_cv_deplibs_check_method=pass_all
13318 ;;
13319
13320 freebsd* | dragonfly*)
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13322 case $host_cpu in
13323 i*86 )
13324 # Not sure whether the presence of OpenBSD here was a mistake.
13325 # Let's accept both of them until this is cleared up.
13326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13327 lt_cv_file_magic_cmd=/usr/bin/file
13328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13329 ;;
13330 esac
13331 else
13332 lt_cv_deplibs_check_method=pass_all
13333 fi
13334 ;;
13335
13336 gnu*)
13337 lt_cv_deplibs_check_method=pass_all
13338 ;;
13339
13340 haiku*)
13341 lt_cv_deplibs_check_method=pass_all
13342 ;;
13343
13344 hpux10.20* | hpux11*)
13345 lt_cv_file_magic_cmd=/usr/bin/file
13346 case $host_cpu in
13347 ia64*)
13348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13350 ;;
13351 hppa*64*)
13352 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]'
13353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13354 ;;
13355 *)
13356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13358 ;;
13359 esac
13360 ;;
13361
13362 interix[3-9]*)
13363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13365 ;;
13366
13367 irix5* | irix6* | nonstopux*)
13368 case $LD in
13369 *-32|*"-32 ") libmagic=32-bit;;
13370 *-n32|*"-n32 ") libmagic=N32;;
13371 *-64|*"-64 ") libmagic=64-bit;;
13372 *) libmagic=never-match;;
13373 esac
13374 lt_cv_deplibs_check_method=pass_all
13375 ;;
13376
13377 # This must be Linux ELF.
13378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13379 lt_cv_deplibs_check_method=pass_all
13380 ;;
13381
13382 netbsd*)
13383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13385 else
13386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13387 fi
13388 ;;
13389
13390 newos6*)
13391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13392 lt_cv_file_magic_cmd=/usr/bin/file
13393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13394 ;;
13395
13396 *nto* | *qnx*)
13397 lt_cv_deplibs_check_method=pass_all
13398 ;;
13399
13400 openbsd*)
13401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13403 else
13404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13405 fi
13406 ;;
13407
13408 osf3* | osf4* | osf5*)
13409 lt_cv_deplibs_check_method=pass_all
13410 ;;
13411
13412 rdos*)
13413 lt_cv_deplibs_check_method=pass_all
13414 ;;
13415
13416 solaris*)
13417 lt_cv_deplibs_check_method=pass_all
13418 ;;
13419
13420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13421 lt_cv_deplibs_check_method=pass_all
13422 ;;
13423
13424 sysv4 | sysv4.3*)
13425 case $host_vendor in
13426 motorola)
13427 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]'
13428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13429 ;;
13430 ncr)
13431 lt_cv_deplibs_check_method=pass_all
13432 ;;
13433 sequent)
13434 lt_cv_file_magic_cmd='/bin/file'
13435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13436 ;;
13437 sni)
13438 lt_cv_file_magic_cmd='/bin/file'
13439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13440 lt_cv_file_magic_test_file=/lib/libc.so
13441 ;;
13442 siemens)
13443 lt_cv_deplibs_check_method=pass_all
13444 ;;
13445 pc)
13446 lt_cv_deplibs_check_method=pass_all
13447 ;;
13448 esac
13449 ;;
13450
13451 tpf*)
13452 lt_cv_deplibs_check_method=pass_all
13453 ;;
13454 esac
13455
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13458 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13459 file_magic_cmd=$lt_cv_file_magic_cmd
13460 deplibs_check_method=$lt_cv_deplibs_check_method
13461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}ar; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if test "${ac_cv_prog_AR+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$AR"; then
13483 ac_cv_prog_AR="$AR" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13487 do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_prog_AR="${ac_tool_prefix}ar"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496 done
13497 done
13498 IFS=$as_save_IFS
13499
13500 fi
13501 fi
13502 AR=$ac_cv_prog_AR
13503 if test -n "$AR"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13505 $as_echo "$AR" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 fi
13510
13511
13512 fi
13513 if test -z "$ac_cv_prog_AR"; then
13514 ac_ct_AR=$AR
13515 # Extract the first word of "ar", so it can be a program name with args.
13516 set dummy ar; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$ac_ct_AR"; then
13523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_ac_ct_AR="ar"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13543 if test -n "$ac_ct_AR"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13545 $as_echo "$ac_ct_AR" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551 if test "x$ac_ct_AR" = x; then
13552 AR="false"
13553 else
13554 case $cross_compiling:$ac_tool_warned in
13555 yes:)
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13558 ac_tool_warned=yes ;;
13559 esac
13560 AR=$ac_ct_AR
13561 fi
13562 else
13563 AR="$ac_cv_prog_AR"
13564 fi
13565
13566 test -z "$AR" && AR=ar
13567 test -z "$AR_FLAGS" && AR_FLAGS=cru
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}strip; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if test "${ac_cv_prog_STRIP+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 if test -n "$STRIP"; then
13588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13592 do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601 done
13602 done
13603 IFS=$as_save_IFS
13604
13605 fi
13606 fi
13607 STRIP=$ac_cv_prog_STRIP
13608 if test -n "$STRIP"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13610 $as_echo "$STRIP" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616
13617 fi
13618 if test -z "$ac_cv_prog_STRIP"; then
13619 ac_ct_STRIP=$STRIP
13620 # Extract the first word of "strip", so it can be a program name with args.
13621 set dummy strip; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 if test -n "$ac_ct_STRIP"; then
13628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_ac_ct_STRIP="strip"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641 done
13642 done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13648 if test -n "$ac_ct_STRIP"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13650 $as_echo "$ac_ct_STRIP" >&6; }
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656 if test "x$ac_ct_STRIP" = x; then
13657 STRIP=":"
13658 else
13659 case $cross_compiling:$ac_tool_warned in
13660 yes:)
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13663 ac_tool_warned=yes ;;
13664 esac
13665 STRIP=$ac_ct_STRIP
13666 fi
13667 else
13668 STRIP="$ac_cv_prog_STRIP"
13669 fi
13670
13671 test -z "$STRIP" && STRIP=:
13672
13673
13674
13675
13676
13677
13678 if test -n "$ac_tool_prefix"; then
13679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13682 $as_echo_n "checking for $ac_word... " >&6; }
13683 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 if test -n "$RANLIB"; then
13687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13688 else
13689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690 for as_dir in $PATH
13691 do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
13695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 break 2
13699 fi
13700 done
13701 done
13702 IFS=$as_save_IFS
13703
13704 fi
13705 fi
13706 RANLIB=$ac_cv_prog_RANLIB
13707 if test -n "$RANLIB"; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13709 $as_echo "$RANLIB" >&6; }
13710 else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713 fi
13714
13715
13716 fi
13717 if test -z "$ac_cv_prog_RANLIB"; then
13718 ac_ct_RANLIB=$RANLIB
13719 # Extract the first word of "ranlib", so it can be a program name with args.
13720 set dummy ranlib; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 if test -n "$ac_ct_RANLIB"; then
13727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_ac_ct_RANLIB="ranlib"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 break 2
13739 fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13747 if test -n "$ac_ct_RANLIB"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13749 $as_echo "$ac_ct_RANLIB" >&6; }
13750 else
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13753 fi
13754
13755 if test "x$ac_ct_RANLIB" = x; then
13756 RANLIB=":"
13757 else
13758 case $cross_compiling:$ac_tool_warned in
13759 yes:)
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13762 ac_tool_warned=yes ;;
13763 esac
13764 RANLIB=$ac_ct_RANLIB
13765 fi
13766 else
13767 RANLIB="$ac_cv_prog_RANLIB"
13768 fi
13769
13770 test -z "$RANLIB" && RANLIB=:
13771
13772
13773
13774
13775
13776
13777 # Determine commands to create old-style static archives.
13778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13779 old_postinstall_cmds='chmod 644 $oldlib'
13780 old_postuninstall_cmds=
13781
13782 if test -n "$RANLIB"; then
13783 case $host_os in
13784 openbsd*)
13785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13786 ;;
13787 *)
13788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13789 ;;
13790 esac
13791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13792 fi
13793
13794 case $host_os in
13795 darwin*)
13796 lock_old_archive_extraction=yes ;;
13797 *)
13798 lock_old_archive_extraction=no ;;
13799 esac
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839 # If no C compiler was specified, use CC.
13840 LTCC=${LTCC-"$CC"}
13841
13842 # If no C compiler flags were specified, use CFLAGS.
13843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13844
13845 # Allow CC to be a program name with arguments.
13846 compiler=$CC
13847
13848
13849 # Check for command to grab the raw symbol name followed by C symbol from nm.
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13851 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855
13856 # These are sane defaults that work on at least a few old systems.
13857 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13858
13859 # Character class describing NM global symbol codes.
13860 symcode='[BCDEGRST]'
13861
13862 # Regexp to match symbols that can be accessed directly from C.
13863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13864
13865 # Define system-specific variables.
13866 case $host_os in
13867 aix*)
13868 symcode='[BCDT]'
13869 ;;
13870 cygwin* | mingw* | pw32* | cegcc*)
13871 symcode='[ABCDGISTW]'
13872 ;;
13873 hpux*)
13874 if test "$host_cpu" = ia64; then
13875 symcode='[ABCDEGRST]'
13876 fi
13877 ;;
13878 irix* | nonstopux*)
13879 symcode='[BCDEGRST]'
13880 ;;
13881 osf*)
13882 symcode='[BCDEGQRST]'
13883 ;;
13884 solaris*)
13885 symcode='[BDRT]'
13886 ;;
13887 sco3.2v5*)
13888 symcode='[DT]'
13889 ;;
13890 sysv4.2uw2*)
13891 symcode='[DT]'
13892 ;;
13893 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13894 symcode='[ABDT]'
13895 ;;
13896 sysv4)
13897 symcode='[DFNSTU]'
13898 ;;
13899 esac
13900
13901 # If we're using GNU nm, then use its standard symbol codes.
13902 case `$NM -V 2>&1` in
13903 *GNU* | *'with BFD'*)
13904 symcode='[ABCDGIRSTW]' ;;
13905 esac
13906
13907 # Transform an extracted symbol line into a proper C declaration.
13908 # Some systems (esp. on ia64) link data and code symbols differently,
13909 # so use this general approach.
13910 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13911
13912 # Transform an extracted symbol line into symbol name and symbol address
13913 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13914 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'"
13915
13916 # Handle CRLF in mingw tool chain
13917 opt_cr=
13918 case $build_os in
13919 mingw*)
13920 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13921 ;;
13922 esac
13923
13924 # Try without a prefix underscore, then with it.
13925 for ac_symprfx in "" "_"; do
13926
13927 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13928 symxfrm="\\1 $ac_symprfx\\2 \\2"
13929
13930 # Write the raw and C identifiers.
13931 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13932 # Fake it for dumpbin and say T for any non-static function
13933 # and D for any global variable.
13934 # Also find C++ and __fastcall symbols from MSVC++,
13935 # which start with @ or ?.
13936 lt_cv_sys_global_symbol_pipe="$AWK '"\
13937 " {last_section=section; section=\$ 3};"\
13938 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13939 " \$ 0!~/External *\|/{next};"\
13940 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13941 " {if(hide[section]) next};"\
13942 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13943 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13944 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13945 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13946 " ' prfx=^$ac_symprfx"
13947 else
13948 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13949 fi
13950
13951 # Check to see that the pipe works correctly.
13952 pipe_works=no
13953
13954 rm -f conftest*
13955 cat > conftest.$ac_ext <<_LT_EOF
13956 #ifdef __cplusplus
13957 extern "C" {
13958 #endif
13959 char nm_test_var;
13960 void nm_test_func(void);
13961 void nm_test_func(void){}
13962 #ifdef __cplusplus
13963 }
13964 #endif
13965 int main(){nm_test_var='a';nm_test_func();return(0);}
13966 _LT_EOF
13967
13968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13970 ac_status=$?
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 # Now try to grab the symbols.
13974 nlist=conftest.nm
13975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13976 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13977 ac_status=$?
13978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13979 test $ac_status = 0; } && test -s "$nlist"; then
13980 # Try sorting and uniquifying the output.
13981 if sort "$nlist" | uniq > "$nlist"T; then
13982 mv -f "$nlist"T "$nlist"
13983 else
13984 rm -f "$nlist"T
13985 fi
13986
13987 # Make sure that we snagged all the symbols we need.
13988 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13989 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13990 cat <<_LT_EOF > conftest.$ac_ext
13991 #ifdef __cplusplus
13992 extern "C" {
13993 #endif
13994
13995 _LT_EOF
13996 # Now generate the symbol file.
13997 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13998
13999 cat <<_LT_EOF >> conftest.$ac_ext
14000
14001 /* The mapping between symbol names and symbols. */
14002 const struct {
14003 const char *name;
14004 void *address;
14005 }
14006 lt__PROGRAM__LTX_preloaded_symbols[] =
14007 {
14008 { "@PROGRAM@", (void *) 0 },
14009 _LT_EOF
14010 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14011 cat <<\_LT_EOF >> conftest.$ac_ext
14012 {0, (void *) 0}
14013 };
14014
14015 /* This works around a problem in FreeBSD linker */
14016 #ifdef FREEBSD_WORKAROUND
14017 static const void *lt_preloaded_setup() {
14018 return lt__PROGRAM__LTX_preloaded_symbols;
14019 }
14020 #endif
14021
14022 #ifdef __cplusplus
14023 }
14024 #endif
14025 _LT_EOF
14026 # Now try linking the two files.
14027 mv conftest.$ac_objext conftstm.$ac_objext
14028 lt_save_LIBS="$LIBS"
14029 lt_save_CFLAGS="$CFLAGS"
14030 LIBS="conftstm.$ac_objext"
14031 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14033 (eval $ac_link) 2>&5
14034 ac_status=$?
14035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14036 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14037 pipe_works=yes
14038 fi
14039 LIBS="$lt_save_LIBS"
14040 CFLAGS="$lt_save_CFLAGS"
14041 else
14042 echo "cannot find nm_test_func in $nlist" >&5
14043 fi
14044 else
14045 echo "cannot find nm_test_var in $nlist" >&5
14046 fi
14047 else
14048 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14049 fi
14050 else
14051 echo "$progname: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14053 fi
14054 rm -rf conftest* conftst*
14055
14056 # Do not use the global_symbol_pipe unless it works.
14057 if test "$pipe_works" = yes; then
14058 break
14059 else
14060 lt_cv_sys_global_symbol_pipe=
14061 fi
14062 done
14063
14064 fi
14065
14066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14067 lt_cv_sys_global_symbol_to_cdecl=
14068 fi
14069 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14071 $as_echo "failed" >&6; }
14072 else
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14074 $as_echo "ok" >&6; }
14075 fi
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098 # Check whether --enable-libtool-lock was given.
14099 if test "${enable_libtool_lock+set}" = set; then :
14100 enableval=$enable_libtool_lock;
14101 fi
14102
14103 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14104
14105 # Some flags need to be propagated to the compiler or linker for good
14106 # libtool support.
14107 case $host in
14108 ia64-*-hpux*)
14109 # Find out which ABI we are using.
14110 echo 'int i;' > conftest.$ac_ext
14111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14112 (eval $ac_compile) 2>&5
14113 ac_status=$?
14114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14115 test $ac_status = 0; }; then
14116 case `/usr/bin/file conftest.$ac_objext` in
14117 *ELF-32*)
14118 HPUX_IA64_MODE="32"
14119 ;;
14120 *ELF-64*)
14121 HPUX_IA64_MODE="64"
14122 ;;
14123 esac
14124 fi
14125 rm -rf conftest*
14126 ;;
14127 *-*-irix6*)
14128 # Find out which ABI we are using.
14129 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14131 (eval $ac_compile) 2>&5
14132 ac_status=$?
14133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14134 test $ac_status = 0; }; then
14135 if test "$lt_cv_prog_gnu_ld" = yes; then
14136 case `/usr/bin/file conftest.$ac_objext` in
14137 *32-bit*)
14138 LD="${LD-ld} -melf32bsmip"
14139 ;;
14140 *N32*)
14141 LD="${LD-ld} -melf32bmipn32"
14142 ;;
14143 *64-bit*)
14144 LD="${LD-ld} -melf64bmip"
14145 ;;
14146 esac
14147 else
14148 case `/usr/bin/file conftest.$ac_objext` in
14149 *32-bit*)
14150 LD="${LD-ld} -32"
14151 ;;
14152 *N32*)
14153 LD="${LD-ld} -n32"
14154 ;;
14155 *64-bit*)
14156 LD="${LD-ld} -64"
14157 ;;
14158 esac
14159 fi
14160 fi
14161 rm -rf conftest*
14162 ;;
14163
14164 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14165 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14166 # Find out which ABI we are using.
14167 echo 'int i;' > conftest.$ac_ext
14168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14169 (eval $ac_compile) 2>&5
14170 ac_status=$?
14171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172 test $ac_status = 0; }; then
14173 case `/usr/bin/file conftest.o` in
14174 *32-bit*)
14175 case $host in
14176 x86_64-*kfreebsd*-gnu)
14177 LD="${LD-ld} -m elf_i386_fbsd"
14178 ;;
14179 x86_64-*linux*)
14180 case `/usr/bin/file conftest.o` in
14181 *x86-64*)
14182 LD="${LD-ld} -m elf32_x86_64"
14183 ;;
14184 *)
14185 LD="${LD-ld} -m elf_i386"
14186 ;;
14187 esac
14188 ;;
14189 powerpc64le-*linux*)
14190 LD="${LD-ld} -m elf32lppclinux"
14191 ;;
14192 powerpc64-*linux*)
14193 LD="${LD-ld} -m elf32ppclinux"
14194 ;;
14195 s390x-*linux*)
14196 LD="${LD-ld} -m elf_s390"
14197 ;;
14198 sparc64-*linux*)
14199 LD="${LD-ld} -m elf32_sparc"
14200 ;;
14201 esac
14202 ;;
14203 *64-bit*)
14204 case $host in
14205 x86_64-*kfreebsd*-gnu)
14206 LD="${LD-ld} -m elf_x86_64_fbsd"
14207 ;;
14208 x86_64-*linux*)
14209 LD="${LD-ld} -m elf_x86_64"
14210 ;;
14211 powerpcle-*linux*)
14212 LD="${LD-ld} -m elf64lppc"
14213 ;;
14214 powerpc-*linux*)
14215 LD="${LD-ld} -m elf64ppc"
14216 ;;
14217 s390*-*linux*|s390*-*tpf*)
14218 LD="${LD-ld} -m elf64_s390"
14219 ;;
14220 sparc*-*linux*)
14221 LD="${LD-ld} -m elf64_sparc"
14222 ;;
14223 esac
14224 ;;
14225 esac
14226 fi
14227 rm -rf conftest*
14228 ;;
14229
14230 *-*-sco3.2v5*)
14231 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14232 SAVE_CFLAGS="$CFLAGS"
14233 CFLAGS="$CFLAGS -belf"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14235 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14236 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 ac_ext=c
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14244
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247
14248 int
14249 main ()
14250 {
14251
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 lt_cv_cc_needs_belf=yes
14258 else
14259 lt_cv_cc_needs_belf=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14271 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14272 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14273 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14274 CFLAGS="$SAVE_CFLAGS"
14275 fi
14276 ;;
14277 sparc*-*solaris*)
14278 # Find out which ABI we are using.
14279 echo 'int i;' > conftest.$ac_ext
14280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14281 (eval $ac_compile) 2>&5
14282 ac_status=$?
14283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14284 test $ac_status = 0; }; then
14285 case `/usr/bin/file conftest.o` in
14286 *64-bit*)
14287 case $lt_cv_prog_gnu_ld in
14288 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14289 *)
14290 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14291 LD="${LD-ld} -64"
14292 fi
14293 ;;
14294 esac
14295 ;;
14296 esac
14297 fi
14298 rm -rf conftest*
14299 ;;
14300 esac
14301
14302 need_locks="$enable_libtool_lock"
14303
14304
14305 case $host_os in
14306 rhapsody* | darwin*)
14307 if test -n "$ac_tool_prefix"; then
14308 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14309 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14311 $as_echo_n "checking for $ac_word... " >&6; }
14312 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 if test -n "$DSYMUTIL"; then
14316 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14317 else
14318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319 for as_dir in $PATH
14320 do
14321 IFS=$as_save_IFS
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14325 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327 break 2
14328 fi
14329 done
14330 done
14331 IFS=$as_save_IFS
14332
14333 fi
14334 fi
14335 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14336 if test -n "$DSYMUTIL"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14338 $as_echo "$DSYMUTIL" >&6; }
14339 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14342 fi
14343
14344
14345 fi
14346 if test -z "$ac_cv_prog_DSYMUTIL"; then
14347 ac_ct_DSYMUTIL=$DSYMUTIL
14348 # Extract the first word of "dsymutil", so it can be a program name with args.
14349 set dummy dsymutil; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 if test -n "$ac_ct_DSYMUTIL"; then
14356 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14357 else
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14360 do
14361 IFS=$as_save_IFS
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14365 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14367 break 2
14368 fi
14369 done
14370 done
14371 IFS=$as_save_IFS
14372
14373 fi
14374 fi
14375 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14376 if test -n "$ac_ct_DSYMUTIL"; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14378 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14379 else
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14382 fi
14383
14384 if test "x$ac_ct_DSYMUTIL" = x; then
14385 DSYMUTIL=":"
14386 else
14387 case $cross_compiling:$ac_tool_warned in
14388 yes:)
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14391 ac_tool_warned=yes ;;
14392 esac
14393 DSYMUTIL=$ac_ct_DSYMUTIL
14394 fi
14395 else
14396 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14397 fi
14398
14399 if test -n "$ac_tool_prefix"; then
14400 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14401 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403 $as_echo_n "checking for $ac_word... " >&6; }
14404 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 if test -n "$NMEDIT"; then
14408 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14409 else
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14412 do
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14417 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14420 fi
14421 done
14422 done
14423 IFS=$as_save_IFS
14424
14425 fi
14426 fi
14427 NMEDIT=$ac_cv_prog_NMEDIT
14428 if test -n "$NMEDIT"; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14430 $as_echo "$NMEDIT" >&6; }
14431 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14434 fi
14435
14436
14437 fi
14438 if test -z "$ac_cv_prog_NMEDIT"; then
14439 ac_ct_NMEDIT=$NMEDIT
14440 # Extract the first word of "nmedit", so it can be a program name with args.
14441 set dummy nmedit; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 if test -n "$ac_ct_NMEDIT"; then
14448 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14452 do
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14460 fi
14461 done
14462 done
14463 IFS=$as_save_IFS
14464
14465 fi
14466 fi
14467 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14468 if test -n "$ac_ct_NMEDIT"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14470 $as_echo "$ac_ct_NMEDIT" >&6; }
14471 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14474 fi
14475
14476 if test "x$ac_ct_NMEDIT" = x; then
14477 NMEDIT=":"
14478 else
14479 case $cross_compiling:$ac_tool_warned in
14480 yes:)
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14483 ac_tool_warned=yes ;;
14484 esac
14485 NMEDIT=$ac_ct_NMEDIT
14486 fi
14487 else
14488 NMEDIT="$ac_cv_prog_NMEDIT"
14489 fi
14490
14491 if test -n "$ac_tool_prefix"; then
14492 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14493 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495 $as_echo_n "checking for $ac_word... " >&6; }
14496 if test "${ac_cv_prog_LIPO+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 if test -n "$LIPO"; then
14500 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14501 else
14502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 for as_dir in $PATH
14504 do
14505 IFS=$as_save_IFS
14506 test -z "$as_dir" && as_dir=.
14507 for ac_exec_ext in '' $ac_executable_extensions; do
14508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14509 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14511 break 2
14512 fi
14513 done
14514 done
14515 IFS=$as_save_IFS
14516
14517 fi
14518 fi
14519 LIPO=$ac_cv_prog_LIPO
14520 if test -n "$LIPO"; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14522 $as_echo "$LIPO" >&6; }
14523 else
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14526 fi
14527
14528
14529 fi
14530 if test -z "$ac_cv_prog_LIPO"; then
14531 ac_ct_LIPO=$LIPO
14532 # Extract the first word of "lipo", so it can be a program name with args.
14533 set dummy lipo; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 $as_echo_n "checking for $ac_word... " >&6; }
14536 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 if test -n "$ac_ct_LIPO"; then
14540 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549 ac_cv_prog_ac_ct_LIPO="lipo"
14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 break 2
14552 fi
14553 done
14554 done
14555 IFS=$as_save_IFS
14556
14557 fi
14558 fi
14559 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14560 if test -n "$ac_ct_LIPO"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14562 $as_echo "$ac_ct_LIPO" >&6; }
14563 else
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14566 fi
14567
14568 if test "x$ac_ct_LIPO" = x; then
14569 LIPO=":"
14570 else
14571 case $cross_compiling:$ac_tool_warned in
14572 yes:)
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14575 ac_tool_warned=yes ;;
14576 esac
14577 LIPO=$ac_ct_LIPO
14578 fi
14579 else
14580 LIPO="$ac_cv_prog_LIPO"
14581 fi
14582
14583 if test -n "$ac_tool_prefix"; then
14584 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14585 set dummy ${ac_tool_prefix}otool; ac_word=$2
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14587 $as_echo_n "checking for $ac_word... " >&6; }
14588 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 if test -n "$OTOOL"; then
14592 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14593 else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14596 do
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 for ac_exec_ext in '' $ac_executable_extensions; do
14600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14601 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14603 break 2
14604 fi
14605 done
14606 done
14607 IFS=$as_save_IFS
14608
14609 fi
14610 fi
14611 OTOOL=$ac_cv_prog_OTOOL
14612 if test -n "$OTOOL"; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14614 $as_echo "$OTOOL" >&6; }
14615 else
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14617 $as_echo "no" >&6; }
14618 fi
14619
14620
14621 fi
14622 if test -z "$ac_cv_prog_OTOOL"; then
14623 ac_ct_OTOOL=$OTOOL
14624 # Extract the first word of "otool", so it can be a program name with args.
14625 set dummy otool; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14627 $as_echo_n "checking for $ac_word... " >&6; }
14628 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 if test -n "$ac_ct_OTOOL"; then
14632 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14633 else
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14636 do
14637 IFS=$as_save_IFS
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14641 ac_cv_prog_ac_ct_OTOOL="otool"
14642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14643 break 2
14644 fi
14645 done
14646 done
14647 IFS=$as_save_IFS
14648
14649 fi
14650 fi
14651 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14652 if test -n "$ac_ct_OTOOL"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14654 $as_echo "$ac_ct_OTOOL" >&6; }
14655 else
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14658 fi
14659
14660 if test "x$ac_ct_OTOOL" = x; then
14661 OTOOL=":"
14662 else
14663 case $cross_compiling:$ac_tool_warned in
14664 yes:)
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14667 ac_tool_warned=yes ;;
14668 esac
14669 OTOOL=$ac_ct_OTOOL
14670 fi
14671 else
14672 OTOOL="$ac_cv_prog_OTOOL"
14673 fi
14674
14675 if test -n "$ac_tool_prefix"; then
14676 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14677 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14679 $as_echo_n "checking for $ac_word... " >&6; }
14680 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14682 else
14683 if test -n "$OTOOL64"; then
14684 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14685 else
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14693 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 break 2
14696 fi
14697 done
14698 done
14699 IFS=$as_save_IFS
14700
14701 fi
14702 fi
14703 OTOOL64=$ac_cv_prog_OTOOL64
14704 if test -n "$OTOOL64"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14706 $as_echo "$OTOOL64" >&6; }
14707 else
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14709 $as_echo "no" >&6; }
14710 fi
14711
14712
14713 fi
14714 if test -z "$ac_cv_prog_OTOOL64"; then
14715 ac_ct_OTOOL64=$OTOOL64
14716 # Extract the first word of "otool64", so it can be a program name with args.
14717 set dummy otool64; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719 $as_echo_n "checking for $ac_word... " >&6; }
14720 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 if test -n "$ac_ct_OTOOL64"; then
14724 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14728 do
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14733 ac_cv_prog_ac_ct_OTOOL64="otool64"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 break 2
14736 fi
14737 done
14738 done
14739 IFS=$as_save_IFS
14740
14741 fi
14742 fi
14743 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14744 if test -n "$ac_ct_OTOOL64"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14746 $as_echo "$ac_ct_OTOOL64" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14750 fi
14751
14752 if test "x$ac_ct_OTOOL64" = x; then
14753 OTOOL64=":"
14754 else
14755 case $cross_compiling:$ac_tool_warned in
14756 yes:)
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14759 ac_tool_warned=yes ;;
14760 esac
14761 OTOOL64=$ac_ct_OTOOL64
14762 fi
14763 else
14764 OTOOL64="$ac_cv_prog_OTOOL64"
14765 fi
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14794 $as_echo_n "checking for -single_module linker flag... " >&6; }
14795 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 lt_cv_apple_cc_single_mod=no
14799 if test -z "${LT_MULTI_MODULE}"; then
14800 # By default we will add the -single_module flag. You can override
14801 # by either setting the environment variable LT_MULTI_MODULE
14802 # non-empty at configure time, or by adding -multi_module to the
14803 # link flags.
14804 rm -rf libconftest.dylib*
14805 echo "int foo(void){return 1;}" > conftest.c
14806 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14807 -dynamiclib -Wl,-single_module conftest.c" >&5
14808 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14809 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14810 _lt_result=$?
14811 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14812 lt_cv_apple_cc_single_mod=yes
14813 else
14814 cat conftest.err >&5
14815 fi
14816 rm -rf libconftest.dylib*
14817 rm -f conftest.*
14818 fi
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14821 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14823 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14824 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 lt_cv_ld_exported_symbols_list=no
14828 save_LDFLAGS=$LDFLAGS
14829 echo "_main" > conftest.sym
14830 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833
14834 int
14835 main ()
14836 {
14837
14838 ;
14839 return 0;
14840 }
14841 _ACEOF
14842 if ac_fn_c_try_link "$LINENO"; then :
14843 lt_cv_ld_exported_symbols_list=yes
14844 else
14845 lt_cv_ld_exported_symbols_list=no
14846 fi
14847 rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LDFLAGS="$save_LDFLAGS"
14850
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14853 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14855 $as_echo_n "checking for -force_load linker flag... " >&6; }
14856 if test "${lt_cv_ld_force_load+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 lt_cv_ld_force_load=no
14860 cat > conftest.c << _LT_EOF
14861 int forced_loaded() { return 2;}
14862 _LT_EOF
14863 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14864 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14865 echo "$AR cru libconftest.a conftest.o" >&5
14866 $AR cru libconftest.a conftest.o 2>&5
14867 cat > conftest.c << _LT_EOF
14868 int main() { return 0;}
14869 _LT_EOF
14870 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14871 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14872 _lt_result=$?
14873 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14874 lt_cv_ld_force_load=yes
14875 else
14876 cat conftest.err >&5
14877 fi
14878 rm -f conftest.err libconftest.a conftest conftest.c
14879 rm -rf conftest.dSYM
14880
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14883 $as_echo "$lt_cv_ld_force_load" >&6; }
14884 case $host_os in
14885 rhapsody* | darwin1.[012])
14886 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14887 darwin1.*)
14888 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14889 darwin*) # darwin 5.x on
14890 # if running on 10.5 or later, the deployment target defaults
14891 # to the OS version, if on x86, and 10.4, the deployment
14892 # target defaults to 10.4. Don't you love it?
14893 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14894 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14895 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14896 10.[012][,.]*)
14897 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14898 10.*)
14899 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14900 esac
14901 ;;
14902 esac
14903 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14904 _lt_dar_single_mod='$single_module'
14905 fi
14906 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14907 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14908 else
14909 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14910 fi
14911 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14912 _lt_dsymutil='~$DSYMUTIL $lib || :'
14913 else
14914 _lt_dsymutil=
14915 fi
14916 ;;
14917 esac
14918
14919
14920 for ac_header in dlfcn.h
14921 do :
14922 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14923 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14924 cat >>confdefs.h <<_ACEOF
14925 #define HAVE_DLFCN_H 1
14926 _ACEOF
14927
14928 fi
14929 done
14930
14931
14932
14933
14934
14935 # Set options
14936
14937
14938
14939 enable_dlopen=no
14940
14941
14942 enable_win32_dll=no
14943
14944
14945 # Check whether --enable-shared was given.
14946 if test "${enable_shared+set}" = set; then :
14947 enableval=$enable_shared; p=${PACKAGE-default}
14948 case $enableval in
14949 yes) enable_shared=yes ;;
14950 no) enable_shared=no ;;
14951 *)
14952 enable_shared=no
14953 # Look at the argument we got. We use all the common list separators.
14954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14955 for pkg in $enableval; do
14956 IFS="$lt_save_ifs"
14957 if test "X$pkg" = "X$p"; then
14958 enable_shared=yes
14959 fi
14960 done
14961 IFS="$lt_save_ifs"
14962 ;;
14963 esac
14964 else
14965 enable_shared=yes
14966 fi
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 # Check whether --enable-static was given.
14977 if test "${enable_static+set}" = set; then :
14978 enableval=$enable_static; p=${PACKAGE-default}
14979 case $enableval in
14980 yes) enable_static=yes ;;
14981 no) enable_static=no ;;
14982 *)
14983 enable_static=no
14984 # Look at the argument we got. We use all the common list separators.
14985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14986 for pkg in $enableval; do
14987 IFS="$lt_save_ifs"
14988 if test "X$pkg" = "X$p"; then
14989 enable_static=yes
14990 fi
14991 done
14992 IFS="$lt_save_ifs"
14993 ;;
14994 esac
14995 else
14996 enable_static=yes
14997 fi
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008 # Check whether --with-pic was given.
15009 if test "${with_pic+set}" = set; then :
15010 withval=$with_pic; pic_mode="$withval"
15011 else
15012 pic_mode=default
15013 fi
15014
15015
15016 test -z "$pic_mode" && pic_mode=default
15017
15018
15019
15020
15021
15022
15023
15024 # Check whether --enable-fast-install was given.
15025 if test "${enable_fast_install+set}" = set; then :
15026 enableval=$enable_fast_install; p=${PACKAGE-default}
15027 case $enableval in
15028 yes) enable_fast_install=yes ;;
15029 no) enable_fast_install=no ;;
15030 *)
15031 enable_fast_install=no
15032 # Look at the argument we got. We use all the common list separators.
15033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15034 for pkg in $enableval; do
15035 IFS="$lt_save_ifs"
15036 if test "X$pkg" = "X$p"; then
15037 enable_fast_install=yes
15038 fi
15039 done
15040 IFS="$lt_save_ifs"
15041 ;;
15042 esac
15043 else
15044 enable_fast_install=yes
15045 fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057 # This can be used to rebuild libtool when needed
15058 LIBTOOL_DEPS="$ltmain"
15059
15060 # Always use our own libtool.
15061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088 test -z "$LN_S" && LN_S="ln -s"
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103 if test -n "${ZSH_VERSION+set}" ; then
15104 setopt NO_GLOB_SUBST
15105 fi
15106
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15108 $as_echo_n "checking for objdir... " >&6; }
15109 if test "${lt_cv_objdir+set}" = set; then :
15110 $as_echo_n "(cached) " >&6
15111 else
15112 rm -f .libs 2>/dev/null
15113 mkdir .libs 2>/dev/null
15114 if test -d .libs; then
15115 lt_cv_objdir=.libs
15116 else
15117 # MS-DOS does not allow filenames that begin with a dot.
15118 lt_cv_objdir=_libs
15119 fi
15120 rmdir .libs 2>/dev/null
15121 fi
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15123 $as_echo "$lt_cv_objdir" >&6; }
15124 objdir=$lt_cv_objdir
15125
15126
15127
15128
15129
15130 cat >>confdefs.h <<_ACEOF
15131 #define LT_OBJDIR "$lt_cv_objdir/"
15132 _ACEOF
15133
15134
15135
15136
15137 case $host_os in
15138 aix3*)
15139 # AIX sometimes has problems with the GCC collect2 program. For some
15140 # reason, if we set the COLLECT_NAMES environment variable, the problems
15141 # vanish in a puff of smoke.
15142 if test "X${COLLECT_NAMES+set}" != Xset; then
15143 COLLECT_NAMES=
15144 export COLLECT_NAMES
15145 fi
15146 ;;
15147 esac
15148
15149 # Global variables:
15150 ofile=libtool
15151 can_build_shared=yes
15152
15153 # All known linkers require a `.a' archive for static linking (except MSVC,
15154 # which needs '.lib').
15155 libext=a
15156
15157 with_gnu_ld="$lt_cv_prog_gnu_ld"
15158
15159 old_CC="$CC"
15160 old_CFLAGS="$CFLAGS"
15161
15162 # Set sane defaults for various variables
15163 test -z "$CC" && CC=cc
15164 test -z "$LTCC" && LTCC=$CC
15165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15166 test -z "$LD" && LD=ld
15167 test -z "$ac_objext" && ac_objext=o
15168
15169 for cc_temp in $compiler""; do
15170 case $cc_temp in
15171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15173 \-*) ;;
15174 *) break;;
15175 esac
15176 done
15177 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15178
15179
15180 # Only perform the check for file, if the check method requires it
15181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15182 case $deplibs_check_method in
15183 file_magic*)
15184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15186 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 case $MAGIC_CMD in
15191 [\\/*] | ?:[\\/]*)
15192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15193 ;;
15194 *)
15195 lt_save_MAGIC_CMD="$MAGIC_CMD"
15196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15198 for ac_dir in $ac_dummy; do
15199 IFS="$lt_save_ifs"
15200 test -z "$ac_dir" && ac_dir=.
15201 if test -f $ac_dir/${ac_tool_prefix}file; then
15202 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15203 if test -n "$file_magic_test_file"; then
15204 case $deplibs_check_method in
15205 "file_magic "*)
15206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15209 $EGREP "$file_magic_regex" > /dev/null; then
15210 :
15211 else
15212 cat <<_LT_EOF 1>&2
15213
15214 *** Warning: the command libtool uses to detect shared libraries,
15215 *** $file_magic_cmd, produces output that libtool cannot recognize.
15216 *** The result is that libtool may fail to recognize shared libraries
15217 *** as such. This will affect the creation of libtool libraries that
15218 *** depend on shared libraries, but programs linked with such libtool
15219 *** libraries will work regardless of this problem. Nevertheless, you
15220 *** may want to report the problem to your system manager and/or to
15221 *** bug-libtool@gnu.org
15222
15223 _LT_EOF
15224 fi ;;
15225 esac
15226 fi
15227 break
15228 fi
15229 done
15230 IFS="$lt_save_ifs"
15231 MAGIC_CMD="$lt_save_MAGIC_CMD"
15232 ;;
15233 esac
15234 fi
15235
15236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15237 if test -n "$MAGIC_CMD"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15239 $as_echo "$MAGIC_CMD" >&6; }
15240 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15243 fi
15244
15245
15246
15247
15248
15249 if test -z "$lt_cv_path_MAGIC_CMD"; then
15250 if test -n "$ac_tool_prefix"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15252 $as_echo_n "checking for file... " >&6; }
15253 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 case $MAGIC_CMD in
15257 [\\/*] | ?:[\\/]*)
15258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15259 ;;
15260 *)
15261 lt_save_MAGIC_CMD="$MAGIC_CMD"
15262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15264 for ac_dir in $ac_dummy; do
15265 IFS="$lt_save_ifs"
15266 test -z "$ac_dir" && ac_dir=.
15267 if test -f $ac_dir/file; then
15268 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15269 if test -n "$file_magic_test_file"; then
15270 case $deplibs_check_method in
15271 "file_magic "*)
15272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15275 $EGREP "$file_magic_regex" > /dev/null; then
15276 :
15277 else
15278 cat <<_LT_EOF 1>&2
15279
15280 *** Warning: the command libtool uses to detect shared libraries,
15281 *** $file_magic_cmd, produces output that libtool cannot recognize.
15282 *** The result is that libtool may fail to recognize shared libraries
15283 *** as such. This will affect the creation of libtool libraries that
15284 *** depend on shared libraries, but programs linked with such libtool
15285 *** libraries will work regardless of this problem. Nevertheless, you
15286 *** may want to report the problem to your system manager and/or to
15287 *** bug-libtool@gnu.org
15288
15289 _LT_EOF
15290 fi ;;
15291 esac
15292 fi
15293 break
15294 fi
15295 done
15296 IFS="$lt_save_ifs"
15297 MAGIC_CMD="$lt_save_MAGIC_CMD"
15298 ;;
15299 esac
15300 fi
15301
15302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15303 if test -n "$MAGIC_CMD"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15305 $as_echo "$MAGIC_CMD" >&6; }
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15309 fi
15310
15311
15312 else
15313 MAGIC_CMD=:
15314 fi
15315 fi
15316
15317 fi
15318 ;;
15319 esac
15320
15321 # Use C for the default configuration in the libtool script
15322
15323 lt_save_CC="$CC"
15324 ac_ext=c
15325 ac_cpp='$CPP $CPPFLAGS'
15326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15329
15330
15331 # Source file extension for C test sources.
15332 ac_ext=c
15333
15334 # Object file extension for compiled C test sources.
15335 objext=o
15336 objext=$objext
15337
15338 # Code to be used in simple compile tests
15339 lt_simple_compile_test_code="int some_variable = 0;"
15340
15341 # Code to be used in simple link tests
15342 lt_simple_link_test_code='int main(){return(0);}'
15343
15344
15345
15346
15347
15348
15349
15350 # If no C compiler was specified, use CC.
15351 LTCC=${LTCC-"$CC"}
15352
15353 # If no C compiler flags were specified, use CFLAGS.
15354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15355
15356 # Allow CC to be a program name with arguments.
15357 compiler=$CC
15358
15359 # Save the default compiler, since it gets overwritten when the other
15360 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15361 compiler_DEFAULT=$CC
15362
15363 # save warnings/boilerplate of simple test code
15364 ac_outfile=conftest.$ac_objext
15365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15367 _lt_compiler_boilerplate=`cat conftest.err`
15368 $RM conftest*
15369
15370 ac_outfile=conftest.$ac_objext
15371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15373 _lt_linker_boilerplate=`cat conftest.err`
15374 $RM -r conftest*
15375
15376
15377 ## CAVEAT EMPTOR:
15378 ## There is no encapsulation within the following macros, do not change
15379 ## the running order or otherwise move them around unless you know exactly
15380 ## what you are doing...
15381 if test -n "$compiler"; then
15382
15383 lt_prog_compiler_no_builtin_flag=
15384
15385 if test "$GCC" = yes; then
15386 case $cc_basename in
15387 nvcc*)
15388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15389 *)
15390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15391 esac
15392
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15394 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15395 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398 lt_cv_prog_compiler_rtti_exceptions=no
15399 ac_outfile=conftest.$ac_objext
15400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15401 lt_compiler_flag="-fno-rtti -fno-exceptions"
15402 # Insert the option either (1) after the last *FLAGS variable, or
15403 # (2) before a word containing "conftest.", or (3) at the end.
15404 # Note that $ac_compile itself does not contain backslashes and begins
15405 # with a dollar sign (not a hyphen), so the echo should work correctly.
15406 # The option is referenced via a variable to avoid confusing sed.
15407 lt_compile=`echo "$ac_compile" | $SED \
15408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410 -e 's:$: $lt_compiler_flag:'`
15411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15412 (eval "$lt_compile" 2>conftest.err)
15413 ac_status=$?
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 if (exit $ac_status) && test -s "$ac_outfile"; then
15417 # The compiler can only warn and ignore the option if not recognized
15418 # So say no if there are warnings other than the usual output.
15419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15422 lt_cv_prog_compiler_rtti_exceptions=yes
15423 fi
15424 fi
15425 $RM conftest*
15426
15427 fi
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15429 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15430
15431 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15433 else
15434 :
15435 fi
15436
15437 fi
15438
15439
15440
15441
15442
15443
15444 lt_prog_compiler_wl=
15445 lt_prog_compiler_pic=
15446 lt_prog_compiler_static=
15447
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15449 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15450
15451 if test "$GCC" = yes; then
15452 lt_prog_compiler_wl='-Wl,'
15453 lt_prog_compiler_static='-static'
15454
15455 case $host_os in
15456 aix*)
15457 # All AIX code is PIC.
15458 if test "$host_cpu" = ia64; then
15459 # AIX 5 now supports IA64 processor
15460 lt_prog_compiler_static='-Bstatic'
15461 fi
15462 lt_prog_compiler_pic='-fPIC'
15463 ;;
15464
15465 amigaos*)
15466 case $host_cpu in
15467 powerpc)
15468 # see comment about AmigaOS4 .so support
15469 lt_prog_compiler_pic='-fPIC'
15470 ;;
15471 m68k)
15472 # FIXME: we need at least 68020 code to build shared libraries, but
15473 # adding the `-m68020' flag to GCC prevents building anything better,
15474 # like `-m68040'.
15475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15476 ;;
15477 esac
15478 ;;
15479
15480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15481 # PIC is the default for these OSes.
15482 ;;
15483
15484 mingw* | cygwin* | pw32* | os2* | cegcc*)
15485 # This hack is so that the source file can tell whether it is being
15486 # built for inclusion in a dll (and should export symbols for example).
15487 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15488 # (--disable-auto-import) libraries
15489 lt_prog_compiler_pic='-DDLL_EXPORT'
15490 ;;
15491
15492 darwin* | rhapsody*)
15493 # PIC is the default on this platform
15494 # Common symbols not allowed in MH_DYLIB files
15495 lt_prog_compiler_pic='-fno-common'
15496 ;;
15497
15498 haiku*)
15499 # PIC is the default for Haiku.
15500 # The "-static" flag exists, but is broken.
15501 lt_prog_compiler_static=
15502 ;;
15503
15504 hpux*)
15505 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15506 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15507 # sets the default TLS model and affects inlining.
15508 case $host_cpu in
15509 hppa*64*)
15510 # +Z the default
15511 ;;
15512 *)
15513 lt_prog_compiler_pic='-fPIC'
15514 ;;
15515 esac
15516 ;;
15517
15518 interix[3-9]*)
15519 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15520 # Instead, we relocate shared libraries at runtime.
15521 ;;
15522
15523 msdosdjgpp*)
15524 # Just because we use GCC doesn't mean we suddenly get shared libraries
15525 # on systems that don't support them.
15526 lt_prog_compiler_can_build_shared=no
15527 enable_shared=no
15528 ;;
15529
15530 *nto* | *qnx*)
15531 # QNX uses GNU C++, but need to define -shared option too, otherwise
15532 # it will coredump.
15533 lt_prog_compiler_pic='-fPIC -shared'
15534 ;;
15535
15536 sysv4*MP*)
15537 if test -d /usr/nec; then
15538 lt_prog_compiler_pic=-Kconform_pic
15539 fi
15540 ;;
15541
15542 *)
15543 lt_prog_compiler_pic='-fPIC'
15544 ;;
15545 esac
15546
15547 case $cc_basename in
15548 nvcc*) # Cuda Compiler Driver 2.2
15549 lt_prog_compiler_wl='-Xlinker '
15550 lt_prog_compiler_pic='-Xcompiler -fPIC'
15551 ;;
15552 esac
15553 else
15554 # PORTME Check for flag to pass linker flags through the system compiler.
15555 case $host_os in
15556 aix*)
15557 lt_prog_compiler_wl='-Wl,'
15558 if test "$host_cpu" = ia64; then
15559 # AIX 5 now supports IA64 processor
15560 lt_prog_compiler_static='-Bstatic'
15561 else
15562 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15563 fi
15564 ;;
15565
15566 mingw* | cygwin* | pw32* | os2* | cegcc*)
15567 # This hack is so that the source file can tell whether it is being
15568 # built for inclusion in a dll (and should export symbols for example).
15569 lt_prog_compiler_pic='-DDLL_EXPORT'
15570 ;;
15571
15572 hpux9* | hpux10* | hpux11*)
15573 lt_prog_compiler_wl='-Wl,'
15574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15575 # not for PA HP-UX.
15576 case $host_cpu in
15577 hppa*64*|ia64*)
15578 # +Z the default
15579 ;;
15580 *)
15581 lt_prog_compiler_pic='+Z'
15582 ;;
15583 esac
15584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15585 lt_prog_compiler_static='${wl}-a ${wl}archive'
15586 ;;
15587
15588 irix5* | irix6* | nonstopux*)
15589 lt_prog_compiler_wl='-Wl,'
15590 # PIC (with -KPIC) is the default.
15591 lt_prog_compiler_static='-non_shared'
15592 ;;
15593
15594 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15595 case $cc_basename in
15596 # old Intel for x86_64 which still supported -KPIC.
15597 ecc*)
15598 lt_prog_compiler_wl='-Wl,'
15599 lt_prog_compiler_pic='-KPIC'
15600 lt_prog_compiler_static='-static'
15601 ;;
15602 # icc used to be incompatible with GCC.
15603 # ICC 10 doesn't accept -KPIC any more.
15604 icc* | ifort*)
15605 lt_prog_compiler_wl='-Wl,'
15606 lt_prog_compiler_pic='-fPIC'
15607 lt_prog_compiler_static='-static'
15608 ;;
15609 # Lahey Fortran 8.1.
15610 lf95*)
15611 lt_prog_compiler_wl='-Wl,'
15612 lt_prog_compiler_pic='--shared'
15613 lt_prog_compiler_static='--static'
15614 ;;
15615 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15616 # Portland Group compilers (*not* the Pentium gcc compiler,
15617 # which looks to be a dead project)
15618 lt_prog_compiler_wl='-Wl,'
15619 lt_prog_compiler_pic='-fpic'
15620 lt_prog_compiler_static='-Bstatic'
15621 ;;
15622 ccc*)
15623 lt_prog_compiler_wl='-Wl,'
15624 # All Alpha code is PIC.
15625 lt_prog_compiler_static='-non_shared'
15626 ;;
15627 xl* | bgxl* | bgf* | mpixl*)
15628 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15629 lt_prog_compiler_wl='-Wl,'
15630 lt_prog_compiler_pic='-qpic'
15631 lt_prog_compiler_static='-qstaticlink'
15632 ;;
15633 *)
15634 case `$CC -V 2>&1 | sed 5q` in
15635 *Sun\ F* | *Sun*Fortran*)
15636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15637 lt_prog_compiler_pic='-KPIC'
15638 lt_prog_compiler_static='-Bstatic'
15639 lt_prog_compiler_wl=''
15640 ;;
15641 *Sun\ C*)
15642 # Sun C 5.9
15643 lt_prog_compiler_pic='-KPIC'
15644 lt_prog_compiler_static='-Bstatic'
15645 lt_prog_compiler_wl='-Wl,'
15646 ;;
15647 esac
15648 ;;
15649 esac
15650 ;;
15651
15652 newsos6)
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 ;;
15656
15657 *nto* | *qnx*)
15658 # QNX uses GNU C++, but need to define -shared option too, otherwise
15659 # it will coredump.
15660 lt_prog_compiler_pic='-fPIC -shared'
15661 ;;
15662
15663 osf3* | osf4* | osf5*)
15664 lt_prog_compiler_wl='-Wl,'
15665 # All OSF/1 code is PIC.
15666 lt_prog_compiler_static='-non_shared'
15667 ;;
15668
15669 rdos*)
15670 lt_prog_compiler_static='-non_shared'
15671 ;;
15672
15673 solaris*)
15674 lt_prog_compiler_pic='-KPIC'
15675 lt_prog_compiler_static='-Bstatic'
15676 case $cc_basename in
15677 f77* | f90* | f95*)
15678 lt_prog_compiler_wl='-Qoption ld ';;
15679 *)
15680 lt_prog_compiler_wl='-Wl,';;
15681 esac
15682 ;;
15683
15684 sunos4*)
15685 lt_prog_compiler_wl='-Qoption ld '
15686 lt_prog_compiler_pic='-PIC'
15687 lt_prog_compiler_static='-Bstatic'
15688 ;;
15689
15690 sysv4 | sysv4.2uw2* | sysv4.3*)
15691 lt_prog_compiler_wl='-Wl,'
15692 lt_prog_compiler_pic='-KPIC'
15693 lt_prog_compiler_static='-Bstatic'
15694 ;;
15695
15696 sysv4*MP*)
15697 if test -d /usr/nec ;then
15698 lt_prog_compiler_pic='-Kconform_pic'
15699 lt_prog_compiler_static='-Bstatic'
15700 fi
15701 ;;
15702
15703 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15704 lt_prog_compiler_wl='-Wl,'
15705 lt_prog_compiler_pic='-KPIC'
15706 lt_prog_compiler_static='-Bstatic'
15707 ;;
15708
15709 unicos*)
15710 lt_prog_compiler_wl='-Wl,'
15711 lt_prog_compiler_can_build_shared=no
15712 ;;
15713
15714 uts4*)
15715 lt_prog_compiler_pic='-pic'
15716 lt_prog_compiler_static='-Bstatic'
15717 ;;
15718
15719 *)
15720 lt_prog_compiler_can_build_shared=no
15721 ;;
15722 esac
15723 fi
15724
15725 case $host_os in
15726 # For platforms which do not support PIC, -DPIC is meaningless:
15727 *djgpp*)
15728 lt_prog_compiler_pic=
15729 ;;
15730 *)
15731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15732 ;;
15733 esac
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15735 $as_echo "$lt_prog_compiler_pic" >&6; }
15736
15737
15738
15739
15740
15741
15742 #
15743 # Check to make sure the PIC flag actually works.
15744 #
15745 if test -n "$lt_prog_compiler_pic"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15747 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15748 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 lt_cv_prog_compiler_pic_works=no
15752 ac_outfile=conftest.$ac_objext
15753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15755 # Insert the option either (1) after the last *FLAGS variable, or
15756 # (2) before a word containing "conftest.", or (3) at the end.
15757 # Note that $ac_compile itself does not contain backslashes and begins
15758 # with a dollar sign (not a hyphen), so the echo should work correctly.
15759 # The option is referenced via a variable to avoid confusing sed.
15760 lt_compile=`echo "$ac_compile" | $SED \
15761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763 -e 's:$: $lt_compiler_flag:'`
15764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15765 (eval "$lt_compile" 2>conftest.err)
15766 ac_status=$?
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 if (exit $ac_status) && test -s "$ac_outfile"; then
15770 # The compiler can only warn and ignore the option if not recognized
15771 # So say no if there are warnings other than the usual output.
15772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15775 lt_cv_prog_compiler_pic_works=yes
15776 fi
15777 fi
15778 $RM conftest*
15779
15780 fi
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15782 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15783
15784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15785 case $lt_prog_compiler_pic in
15786 "" | " "*) ;;
15787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15788 esac
15789 else
15790 lt_prog_compiler_pic=
15791 lt_prog_compiler_can_build_shared=no
15792 fi
15793
15794 fi
15795
15796
15797
15798
15799
15800
15801 #
15802 # Check to make sure the static flag actually works.
15803 #
15804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15807 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 lt_cv_prog_compiler_static_works=no
15811 save_LDFLAGS="$LDFLAGS"
15812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15815 # The linker can only warn and ignore the option if not recognized
15816 # So say no if there are warnings
15817 if test -s conftest.err; then
15818 # Append any errors to the config.log.
15819 cat conftest.err 1>&5
15820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822 if diff conftest.exp conftest.er2 >/dev/null; then
15823 lt_cv_prog_compiler_static_works=yes
15824 fi
15825 else
15826 lt_cv_prog_compiler_static_works=yes
15827 fi
15828 fi
15829 $RM -r conftest*
15830 LDFLAGS="$save_LDFLAGS"
15831
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15835
15836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15837 :
15838 else
15839 lt_prog_compiler_static=
15840 fi
15841
15842
15843
15844
15845
15846
15847
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15850 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 lt_cv_prog_compiler_c_o=no
15854 $RM -r conftest 2>/dev/null
15855 mkdir conftest
15856 cd conftest
15857 mkdir out
15858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15859
15860 lt_compiler_flag="-o out/conftest2.$ac_objext"
15861 # Insert the option either (1) after the last *FLAGS variable, or
15862 # (2) before a word containing "conftest.", or (3) at the end.
15863 # Note that $ac_compile itself does not contain backslashes and begins
15864 # with a dollar sign (not a hyphen), so the echo should work correctly.
15865 lt_compile=`echo "$ac_compile" | $SED \
15866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15868 -e 's:$: $lt_compiler_flag:'`
15869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15870 (eval "$lt_compile" 2>out/conftest.err)
15871 ac_status=$?
15872 cat out/conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15875 then
15876 # The compiler can only warn and ignore the option if not recognized
15877 # So say no if there are warnings
15878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15881 lt_cv_prog_compiler_c_o=yes
15882 fi
15883 fi
15884 chmod u+w . 2>&5
15885 $RM conftest*
15886 # SGI C++ compiler will create directory out/ii_files/ for
15887 # template instantiation
15888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15889 $RM out/* && rmdir out
15890 cd ..
15891 $RM -r conftest
15892 $RM conftest*
15893
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15897
15898
15899
15900
15901
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15906 $as_echo_n "(cached) " >&6
15907 else
15908 lt_cv_prog_compiler_c_o=no
15909 $RM -r conftest 2>/dev/null
15910 mkdir conftest
15911 cd conftest
15912 mkdir out
15913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15914
15915 lt_compiler_flag="-o out/conftest2.$ac_objext"
15916 # Insert the option either (1) after the last *FLAGS variable, or
15917 # (2) before a word containing "conftest.", or (3) at the end.
15918 # Note that $ac_compile itself does not contain backslashes and begins
15919 # with a dollar sign (not a hyphen), so the echo should work correctly.
15920 lt_compile=`echo "$ac_compile" | $SED \
15921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15923 -e 's:$: $lt_compiler_flag:'`
15924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15925 (eval "$lt_compile" 2>out/conftest.err)
15926 ac_status=$?
15927 cat out/conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15930 then
15931 # The compiler can only warn and ignore the option if not recognized
15932 # So say no if there are warnings
15933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15936 lt_cv_prog_compiler_c_o=yes
15937 fi
15938 fi
15939 chmod u+w . 2>&5
15940 $RM conftest*
15941 # SGI C++ compiler will create directory out/ii_files/ for
15942 # template instantiation
15943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15944 $RM out/* && rmdir out
15945 cd ..
15946 $RM -r conftest
15947 $RM conftest*
15948
15949 fi
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15952
15953
15954
15955
15956 hard_links="nottested"
15957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15958 # do not overwrite the value of need_locks provided by the user
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15960 $as_echo_n "checking if we can lock with hard links... " >&6; }
15961 hard_links=yes
15962 $RM conftest*
15963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15964 touch conftest.a
15965 ln conftest.a conftest.b 2>&5 || hard_links=no
15966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15968 $as_echo "$hard_links" >&6; }
15969 if test "$hard_links" = no; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15972 need_locks=warn
15973 fi
15974 else
15975 need_locks=no
15976 fi
15977
15978
15979
15980
15981
15982
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15985
15986 runpath_var=
15987 allow_undefined_flag=
15988 always_export_symbols=no
15989 archive_cmds=
15990 archive_expsym_cmds=
15991 compiler_needs_object=no
15992 enable_shared_with_static_runtimes=no
15993 export_dynamic_flag_spec=
15994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15995 hardcode_automatic=no
15996 hardcode_direct=no
15997 hardcode_direct_absolute=no
15998 hardcode_libdir_flag_spec=
15999 hardcode_libdir_flag_spec_ld=
16000 hardcode_libdir_separator=
16001 hardcode_minus_L=no
16002 hardcode_shlibpath_var=unsupported
16003 inherit_rpath=no
16004 link_all_deplibs=unknown
16005 module_cmds=
16006 module_expsym_cmds=
16007 old_archive_from_new_cmds=
16008 old_archive_from_expsyms_cmds=
16009 thread_safe_flag_spec=
16010 whole_archive_flag_spec=
16011 # include_expsyms should be a list of space-separated symbols to be *always*
16012 # included in the symbol list
16013 include_expsyms=
16014 # exclude_expsyms can be an extended regexp of symbols to exclude
16015 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16016 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16017 # as well as any symbol that contains `d'.
16018 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16020 # platforms (ab)use it in PIC code, but their linkers get confused if
16021 # the symbol is explicitly referenced. Since portable code cannot
16022 # rely on this symbol name, it's probably fine to never include it in
16023 # preloaded symbol tables.
16024 # Exclude shared library initialization/finalization symbols.
16025 extract_expsyms_cmds=
16026
16027 case $host_os in
16028 cygwin* | mingw* | pw32* | cegcc*)
16029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16030 # When not using gcc, we currently assume that we are using
16031 # Microsoft Visual C++.
16032 if test "$GCC" != yes; then
16033 with_gnu_ld=no
16034 fi
16035 ;;
16036 interix*)
16037 # we just hope/assume this is gcc and not c89 (= MSVC++)
16038 with_gnu_ld=yes
16039 ;;
16040 openbsd*)
16041 with_gnu_ld=no
16042 ;;
16043 esac
16044
16045 ld_shlibs=yes
16046
16047 # On some targets, GNU ld is compatible enough with the native linker
16048 # that we're better off using the native interface for both.
16049 lt_use_gnu_ld_interface=no
16050 if test "$with_gnu_ld" = yes; then
16051 case $host_os in
16052 aix*)
16053 # The AIX port of GNU ld has always aspired to compatibility
16054 # with the native linker. However, as the warning in the GNU ld
16055 # block says, versions before 2.19.5* couldn't really create working
16056 # shared libraries, regardless of the interface used.
16057 case `$LD -v 2>&1` in
16058 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16059 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16060 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16061 *)
16062 lt_use_gnu_ld_interface=yes
16063 ;;
16064 esac
16065 ;;
16066 *)
16067 lt_use_gnu_ld_interface=yes
16068 ;;
16069 esac
16070 fi
16071
16072 if test "$lt_use_gnu_ld_interface" = yes; then
16073 # If archive_cmds runs LD, not CC, wlarc should be empty
16074 wlarc='${wl}'
16075
16076 # Set some defaults for GNU ld with shared library support. These
16077 # are reset later if shared libraries are not supported. Putting them
16078 # here allows them to be overridden if necessary.
16079 runpath_var=LD_RUN_PATH
16080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16081 export_dynamic_flag_spec='${wl}--export-dynamic'
16082 # ancient GNU ld didn't support --whole-archive et. al.
16083 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16085 else
16086 whole_archive_flag_spec=
16087 fi
16088 supports_anon_versioning=no
16089 case `$LD -v 2>&1` in
16090 *GNU\ gold*) supports_anon_versioning=yes ;;
16091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16094 *\ 2.11.*) ;; # other 2.11 versions
16095 *) supports_anon_versioning=yes ;;
16096 esac
16097
16098 # See if GNU ld supports shared libraries.
16099 case $host_os in
16100 aix[3-9]*)
16101 # On AIX/PPC, the GNU linker is very broken
16102 if test "$host_cpu" != ia64; then
16103 ld_shlibs=no
16104 cat <<_LT_EOF 1>&2
16105
16106 *** Warning: the GNU linker, at least up to release 2.19, is reported
16107 *** to be unable to reliably create shared libraries on AIX.
16108 *** Therefore, libtool is disabling shared libraries support. If you
16109 *** really care for shared libraries, you may want to install binutils
16110 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16111 *** You will then need to restart the configuration process.
16112
16113 _LT_EOF
16114 fi
16115 ;;
16116
16117 amigaos*)
16118 case $host_cpu in
16119 powerpc)
16120 # see comment about AmigaOS4 .so support
16121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122 archive_expsym_cmds=''
16123 ;;
16124 m68k)
16125 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)'
16126 hardcode_libdir_flag_spec='-L$libdir'
16127 hardcode_minus_L=yes
16128 ;;
16129 esac
16130 ;;
16131
16132 beos*)
16133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16134 allow_undefined_flag=unsupported
16135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16136 # support --undefined. This deserves some investigation. FIXME
16137 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 else
16139 ld_shlibs=no
16140 fi
16141 ;;
16142
16143 cygwin* | mingw* | pw32* | cegcc*)
16144 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16145 # as there is no search path for DLLs.
16146 hardcode_libdir_flag_spec='-L$libdir'
16147 export_dynamic_flag_spec='${wl}--export-all-symbols'
16148 allow_undefined_flag=unsupported
16149 always_export_symbols=no
16150 enable_shared_with_static_runtimes=yes
16151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16152
16153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16155 # If the export-symbols file already is a .def file (1st line
16156 # is EXPORTS), use it as is; otherwise, prepend...
16157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16158 cp $export_symbols $output_objdir/$soname.def;
16159 else
16160 echo EXPORTS > $output_objdir/$soname.def;
16161 cat $export_symbols >> $output_objdir/$soname.def;
16162 fi~
16163 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16164 else
16165 ld_shlibs=no
16166 fi
16167 ;;
16168
16169 haiku*)
16170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16171 link_all_deplibs=yes
16172 ;;
16173
16174 interix[3-9]*)
16175 hardcode_direct=no
16176 hardcode_shlibpath_var=no
16177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16178 export_dynamic_flag_spec='${wl}-E'
16179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16180 # Instead, shared libraries are loaded at an image base (0x10000000 by
16181 # default) and relocated if they conflict, which is a slow very memory
16182 # consuming and fragmenting process. To avoid this, we pick a random,
16183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16186 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'
16187 ;;
16188
16189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16190 tmp_diet=no
16191 if test "$host_os" = linux-dietlibc; then
16192 case $cc_basename in
16193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16194 esac
16195 fi
16196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16197 && test "$tmp_diet" = no
16198 then
16199 tmp_addflag=' $pic_flag'
16200 tmp_sharedflag='-shared'
16201 case $cc_basename,$host_cpu in
16202 pgcc*) # Portland Group C compiler
16203 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'
16204 tmp_addflag=' $pic_flag'
16205 ;;
16206 pgf77* | pgf90* | pgf95* | pgfortran*)
16207 # Portland Group f77 and f90 compilers
16208 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'
16209 tmp_addflag=' $pic_flag -Mnomain' ;;
16210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16211 tmp_addflag=' -i_dynamic' ;;
16212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16213 tmp_addflag=' -i_dynamic -nofor_main' ;;
16214 ifc* | ifort*) # Intel Fortran compiler
16215 tmp_addflag=' -nofor_main' ;;
16216 lf95*) # Lahey Fortran 8.1
16217 whole_archive_flag_spec=
16218 tmp_sharedflag='--shared' ;;
16219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16220 tmp_sharedflag='-qmkshrobj'
16221 tmp_addflag= ;;
16222 nvcc*) # Cuda Compiler Driver 2.2
16223 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'
16224 compiler_needs_object=yes
16225 ;;
16226 esac
16227 case `$CC -V 2>&1 | sed 5q` in
16228 *Sun\ C*) # Sun C 5.9
16229 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'
16230 compiler_needs_object=yes
16231 tmp_sharedflag='-G' ;;
16232 *Sun\ F*) # Sun Fortran 8.3
16233 tmp_sharedflag='-G' ;;
16234 esac
16235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16236
16237 if test "x$supports_anon_versioning" = xyes; then
16238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16240 echo "local: *; };" >> $output_objdir/$libname.ver~
16241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16242 fi
16243
16244 case $cc_basename in
16245 xlf* | bgf* | bgxlf* | mpixlf*)
16246 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16247 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16248 hardcode_libdir_flag_spec=
16249 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16250 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16251 if test "x$supports_anon_versioning" = xyes; then
16252 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16254 echo "local: *; };" >> $output_objdir/$libname.ver~
16255 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16256 fi
16257 ;;
16258 esac
16259 else
16260 ld_shlibs=no
16261 fi
16262 ;;
16263
16264 netbsd*)
16265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16266 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16267 wlarc=
16268 else
16269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16271 fi
16272 ;;
16273
16274 solaris*)
16275 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16276 ld_shlibs=no
16277 cat <<_LT_EOF 1>&2
16278
16279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16280 *** create shared libraries on Solaris systems. Therefore, libtool
16281 *** is disabling shared libraries support. We urge you to upgrade GNU
16282 *** binutils to release 2.9.1 or newer. Another option is to modify
16283 *** your PATH or compiler configuration so that the native linker is
16284 *** used, and then restart.
16285
16286 _LT_EOF
16287 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16290 else
16291 ld_shlibs=no
16292 fi
16293 ;;
16294
16295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16296 case `$LD -v 2>&1` in
16297 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16298 ld_shlibs=no
16299 cat <<_LT_EOF 1>&2
16300
16301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16302 *** reliably create shared libraries on SCO systems. Therefore, libtool
16303 *** is disabling shared libraries support. We urge you to upgrade GNU
16304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16305 *** your PATH or compiler configuration so that the native linker is
16306 *** used, and then restart.
16307
16308 _LT_EOF
16309 ;;
16310 *)
16311 # For security reasons, it is highly recommended that you always
16312 # use absolute paths for naming shared libraries, and exclude the
16313 # DT_RUNPATH tag from executables and libraries. But doing so
16314 # requires that you compile everything twice, which is a pain.
16315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16319 else
16320 ld_shlibs=no
16321 fi
16322 ;;
16323 esac
16324 ;;
16325
16326 sunos4*)
16327 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16328 wlarc=
16329 hardcode_direct=yes
16330 hardcode_shlibpath_var=no
16331 ;;
16332
16333 *)
16334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16337 else
16338 ld_shlibs=no
16339 fi
16340 ;;
16341 esac
16342
16343 if test "$ld_shlibs" = no; then
16344 runpath_var=
16345 hardcode_libdir_flag_spec=
16346 export_dynamic_flag_spec=
16347 whole_archive_flag_spec=
16348 fi
16349 else
16350 # PORTME fill in a description of your system's linker (not GNU ld)
16351 case $host_os in
16352 aix3*)
16353 allow_undefined_flag=unsupported
16354 always_export_symbols=yes
16355 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'
16356 # Note: this linker hardcodes the directories in LIBPATH if there
16357 # are no directories specified by -L.
16358 hardcode_minus_L=yes
16359 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16360 # Neither direct hardcoding nor static linking is supported with a
16361 # broken collect2.
16362 hardcode_direct=unsupported
16363 fi
16364 ;;
16365
16366 aix[4-9]*)
16367 if test "$host_cpu" = ia64; then
16368 # On IA64, the linker does run time linking by default, so we don't
16369 # have to do anything special.
16370 aix_use_runtimelinking=no
16371 exp_sym_flag='-Bexport'
16372 no_entry_flag=""
16373 else
16374 # If we're using GNU nm, then we don't want the "-C" option.
16375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16376 # Also, AIX nm treats weak defined symbols like other global
16377 # defined symbols, whereas GNU nm marks them as "W".
16378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16379 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'
16380 else
16381 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'
16382 fi
16383 aix_use_runtimelinking=no
16384
16385 # Test if we are trying to use run time linking or normal
16386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16387 # need to do runtime linking.
16388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16389 for ld_flag in $LDFLAGS; do
16390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16391 aix_use_runtimelinking=yes
16392 break
16393 fi
16394 done
16395 ;;
16396 esac
16397
16398 exp_sym_flag='-bexport'
16399 no_entry_flag='-bnoentry'
16400 fi
16401
16402 # When large executables or shared objects are built, AIX ld can
16403 # have problems creating the table of contents. If linking a library
16404 # or program results in "error TOC overflow" add -mminimal-toc to
16405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16407
16408 archive_cmds=''
16409 hardcode_direct=yes
16410 hardcode_direct_absolute=yes
16411 hardcode_libdir_separator=':'
16412 link_all_deplibs=yes
16413 file_list_spec='${wl}-f,'
16414
16415 if test "$GCC" = yes; then
16416 case $host_os in aix4.[012]|aix4.[012].*)
16417 # We only want to do this on AIX 4.2 and lower, the check
16418 # below for broken collect2 doesn't work under 4.3+
16419 collect2name=`${CC} -print-prog-name=collect2`
16420 if test -f "$collect2name" &&
16421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16422 then
16423 # We have reworked collect2
16424 :
16425 else
16426 # We have old collect2
16427 hardcode_direct=unsupported
16428 # It fails to find uninstalled libraries when the uninstalled
16429 # path is not listed in the libpath. Setting hardcode_minus_L
16430 # to unsupported forces relinking
16431 hardcode_minus_L=yes
16432 hardcode_libdir_flag_spec='-L$libdir'
16433 hardcode_libdir_separator=
16434 fi
16435 ;;
16436 esac
16437 shared_flag='-shared'
16438 if test "$aix_use_runtimelinking" = yes; then
16439 shared_flag="$shared_flag "'${wl}-G'
16440 fi
16441 else
16442 # not using gcc
16443 if test "$host_cpu" = ia64; then
16444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16445 # chokes on -Wl,-G. The following line is correct:
16446 shared_flag='-G'
16447 else
16448 if test "$aix_use_runtimelinking" = yes; then
16449 shared_flag='${wl}-G'
16450 else
16451 shared_flag='${wl}-bM:SRE'
16452 fi
16453 fi
16454 fi
16455
16456 export_dynamic_flag_spec='${wl}-bexpall'
16457 # It seems that -bexpall does not export symbols beginning with
16458 # underscore (_), so it is better to generate a list of symbols to export.
16459 always_export_symbols=yes
16460 if test "$aix_use_runtimelinking" = yes; then
16461 # Warning - without using the other runtime loading flags (-brtl),
16462 # -berok will link without error, but may produce a broken library.
16463 allow_undefined_flag='-berok'
16464 # Determine the default libpath from the value encoded in an
16465 # empty executable.
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468
16469 int
16470 main ()
16471 {
16472
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478
16479 lt_aix_libpath_sed='
16480 /Import File Strings/,/^$/ {
16481 /^0/ {
16482 s/^0 *\(.*\)$/\1/
16483 p
16484 }
16485 }'
16486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16487 # Check for a 64-bit object if we didn't find anything.
16488 if test -z "$aix_libpath"; then
16489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16490 fi
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16495
16496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16497 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"
16498 else
16499 if test "$host_cpu" = ia64; then
16500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16501 allow_undefined_flag="-z nodefs"
16502 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"
16503 else
16504 # Determine the default libpath from the value encoded in an
16505 # empty executable.
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508
16509 int
16510 main ()
16511 {
16512
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518
16519 lt_aix_libpath_sed='
16520 /Import File Strings/,/^$/ {
16521 /^0/ {
16522 s/^0 *\(.*\)$/\1/
16523 p
16524 }
16525 }'
16526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16527 # Check for a 64-bit object if we didn't find anything.
16528 if test -z "$aix_libpath"; then
16529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16530 fi
16531 fi
16532 rm -f core conftest.err conftest.$ac_objext \
16533 conftest$ac_exeext conftest.$ac_ext
16534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16535
16536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16537 # Warning - without using the other run time loading flags,
16538 # -berok will link without error, but may produce a broken library.
16539 no_undefined_flag=' ${wl}-bernotok'
16540 allow_undefined_flag=' ${wl}-berok'
16541 if test "$with_gnu_ld" = yes; then
16542 # We only use this code for GNU lds that support --whole-archive.
16543 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16544 else
16545 # Exported symbols can be pulled into shared objects from archives
16546 whole_archive_flag_spec='$convenience'
16547 fi
16548 archive_cmds_need_lc=yes
16549 # This is similar to how AIX traditionally builds its shared libraries.
16550 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'
16551 fi
16552 fi
16553 ;;
16554
16555 amigaos*)
16556 case $host_cpu in
16557 powerpc)
16558 # see comment about AmigaOS4 .so support
16559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16560 archive_expsym_cmds=''
16561 ;;
16562 m68k)
16563 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)'
16564 hardcode_libdir_flag_spec='-L$libdir'
16565 hardcode_minus_L=yes
16566 ;;
16567 esac
16568 ;;
16569
16570 bsdi[45]*)
16571 export_dynamic_flag_spec=-rdynamic
16572 ;;
16573
16574 cygwin* | mingw* | pw32* | cegcc*)
16575 # When not using gcc, we currently assume that we are using
16576 # Microsoft Visual C++.
16577 # hardcode_libdir_flag_spec is actually meaningless, as there is
16578 # no search path for DLLs.
16579 hardcode_libdir_flag_spec=' '
16580 allow_undefined_flag=unsupported
16581 # Tell ltmain to make .lib files, not .a files.
16582 libext=lib
16583 # Tell ltmain to make .dll files, not .so files.
16584 shrext_cmds=".dll"
16585 # FIXME: Setting linknames here is a bad hack.
16586 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16587 # The linker will automatically build a .lib file if we build a DLL.
16588 old_archive_from_new_cmds='true'
16589 # FIXME: Should let the user specify the lib program.
16590 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16591 fix_srcfile_path='`cygpath -w "$srcfile"`'
16592 enable_shared_with_static_runtimes=yes
16593 ;;
16594
16595 darwin* | rhapsody*)
16596
16597
16598 archive_cmds_need_lc=no
16599 hardcode_direct=no
16600 hardcode_automatic=yes
16601 hardcode_shlibpath_var=unsupported
16602 if test "$lt_cv_ld_force_load" = "yes"; then
16603 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\"`'
16604 else
16605 whole_archive_flag_spec=''
16606 fi
16607 link_all_deplibs=yes
16608 allow_undefined_flag="$_lt_dar_allow_undefined"
16609 case $cc_basename in
16610 ifort*) _lt_dar_can_shared=yes ;;
16611 *) _lt_dar_can_shared=$GCC ;;
16612 esac
16613 if test "$_lt_dar_can_shared" = "yes"; then
16614 output_verbose_link_cmd=func_echo_all
16615 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16616 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16617 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}"
16618 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}"
16619
16620 else
16621 ld_shlibs=no
16622 fi
16623
16624 ;;
16625
16626 dgux*)
16627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628 hardcode_libdir_flag_spec='-L$libdir'
16629 hardcode_shlibpath_var=no
16630 ;;
16631
16632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16633 # support. Future versions do this automatically, but an explicit c++rt0.o
16634 # does not break anything, and helps significantly (at the cost of a little
16635 # extra space).
16636 freebsd2.2*)
16637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16638 hardcode_libdir_flag_spec='-R$libdir'
16639 hardcode_direct=yes
16640 hardcode_shlibpath_var=no
16641 ;;
16642
16643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16644 freebsd2.*)
16645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_direct=yes
16647 hardcode_minus_L=yes
16648 hardcode_shlibpath_var=no
16649 ;;
16650
16651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16652 freebsd* | dragonfly*)
16653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16654 hardcode_libdir_flag_spec='-R$libdir'
16655 hardcode_direct=yes
16656 hardcode_shlibpath_var=no
16657 ;;
16658
16659 hpux9*)
16660 if test "$GCC" = yes; then
16661 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'
16662 else
16663 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'
16664 fi
16665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16666 hardcode_libdir_separator=:
16667 hardcode_direct=yes
16668
16669 # hardcode_minus_L: Not really in the search PATH,
16670 # but as the default location of the library.
16671 hardcode_minus_L=yes
16672 export_dynamic_flag_spec='${wl}-E'
16673 ;;
16674
16675 hpux10*)
16676 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16678 else
16679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16680 fi
16681 if test "$with_gnu_ld" = no; then
16682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16683 hardcode_libdir_flag_spec_ld='+b $libdir'
16684 hardcode_libdir_separator=:
16685 hardcode_direct=yes
16686 hardcode_direct_absolute=yes
16687 export_dynamic_flag_spec='${wl}-E'
16688 # hardcode_minus_L: Not really in the search PATH,
16689 # but as the default location of the library.
16690 hardcode_minus_L=yes
16691 fi
16692 ;;
16693
16694 hpux11*)
16695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16696 case $host_cpu in
16697 hppa*64*)
16698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16699 ;;
16700 ia64*)
16701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16702 ;;
16703 *)
16704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16705 ;;
16706 esac
16707 else
16708 case $host_cpu in
16709 hppa*64*)
16710 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 ;;
16712 ia64*)
16713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16714 ;;
16715 *)
16716
16717 # Older versions of the 11.00 compiler do not understand -b yet
16718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16720 $as_echo_n "checking if $CC understands -b... " >&6; }
16721 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16723 else
16724 lt_cv_prog_compiler__b=no
16725 save_LDFLAGS="$LDFLAGS"
16726 LDFLAGS="$LDFLAGS -b"
16727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16729 # The linker can only warn and ignore the option if not recognized
16730 # So say no if there are warnings
16731 if test -s conftest.err; then
16732 # Append any errors to the config.log.
16733 cat conftest.err 1>&5
16734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16736 if diff conftest.exp conftest.er2 >/dev/null; then
16737 lt_cv_prog_compiler__b=yes
16738 fi
16739 else
16740 lt_cv_prog_compiler__b=yes
16741 fi
16742 fi
16743 $RM -r conftest*
16744 LDFLAGS="$save_LDFLAGS"
16745
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16748 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16749
16750 if test x"$lt_cv_prog_compiler__b" = xyes; then
16751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16752 else
16753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16754 fi
16755
16756 ;;
16757 esac
16758 fi
16759 if test "$with_gnu_ld" = no; then
16760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16761 hardcode_libdir_separator=:
16762
16763 case $host_cpu in
16764 hppa*64*|ia64*)
16765 hardcode_direct=no
16766 hardcode_shlibpath_var=no
16767 ;;
16768 *)
16769 hardcode_direct=yes
16770 hardcode_direct_absolute=yes
16771 export_dynamic_flag_spec='${wl}-E'
16772
16773 # hardcode_minus_L: Not really in the search PATH,
16774 # but as the default location of the library.
16775 hardcode_minus_L=yes
16776 ;;
16777 esac
16778 fi
16779 ;;
16780
16781 irix5* | irix6* | nonstopux*)
16782 if test "$GCC" = yes; then
16783 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'
16784 # Try to use the -exported_symbol ld option, if it does not
16785 # work, assume that -exports_file does not work either and
16786 # implicitly export all symbols.
16787 save_LDFLAGS="$LDFLAGS"
16788 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 int foo(void) {}
16792 _ACEOF
16793 if ac_fn_c_try_link "$LINENO"; then :
16794 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'
16795
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799 LDFLAGS="$save_LDFLAGS"
16800 else
16801 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'
16802 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'
16803 fi
16804 archive_cmds_need_lc='no'
16805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16806 hardcode_libdir_separator=:
16807 inherit_rpath=yes
16808 link_all_deplibs=yes
16809 ;;
16810
16811 netbsd*)
16812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16814 else
16815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16816 fi
16817 hardcode_libdir_flag_spec='-R$libdir'
16818 hardcode_direct=yes
16819 hardcode_shlibpath_var=no
16820 ;;
16821
16822 newsos6)
16823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16824 hardcode_direct=yes
16825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16826 hardcode_libdir_separator=:
16827 hardcode_shlibpath_var=no
16828 ;;
16829
16830 *nto* | *qnx*)
16831 ;;
16832
16833 openbsd*)
16834 if test -f /usr/libexec/ld.so; then
16835 hardcode_direct=yes
16836 hardcode_shlibpath_var=no
16837 hardcode_direct_absolute=yes
16838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16842 export_dynamic_flag_spec='${wl}-E'
16843 else
16844 case $host_os in
16845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16847 hardcode_libdir_flag_spec='-R$libdir'
16848 ;;
16849 *)
16850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16852 ;;
16853 esac
16854 fi
16855 else
16856 ld_shlibs=no
16857 fi
16858 ;;
16859
16860 os2*)
16861 hardcode_libdir_flag_spec='-L$libdir'
16862 hardcode_minus_L=yes
16863 allow_undefined_flag=unsupported
16864 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'
16865 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16866 ;;
16867
16868 osf3*)
16869 if test "$GCC" = yes; then
16870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16871 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'
16872 else
16873 allow_undefined_flag=' -expect_unresolved \*'
16874 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'
16875 fi
16876 archive_cmds_need_lc='no'
16877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16878 hardcode_libdir_separator=:
16879 ;;
16880
16881 osf4* | osf5*) # as osf3* with the addition of -msym flag
16882 if test "$GCC" = yes; then
16883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16884 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'
16885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16886 else
16887 allow_undefined_flag=' -expect_unresolved \*'
16888 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'
16889 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~
16890 $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'
16891
16892 # Both c and cxx compiler support -rpath directly
16893 hardcode_libdir_flag_spec='-rpath $libdir'
16894 fi
16895 archive_cmds_need_lc='no'
16896 hardcode_libdir_separator=:
16897 ;;
16898
16899 solaris*)
16900 no_undefined_flag=' -z defs'
16901 if test "$GCC" = yes; then
16902 wlarc='${wl}'
16903 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16905 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16906 else
16907 case `$CC -V 2>&1` in
16908 *"Compilers 5.0"*)
16909 wlarc=''
16910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16913 ;;
16914 *)
16915 wlarc='${wl}'
16916 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16918 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16919 ;;
16920 esac
16921 fi
16922 hardcode_libdir_flag_spec='-R$libdir'
16923 hardcode_shlibpath_var=no
16924 case $host_os in
16925 solaris2.[0-5] | solaris2.[0-5].*) ;;
16926 *)
16927 # The compiler driver will combine and reorder linker options,
16928 # but understands `-z linker_flag'. GCC discards it without `$wl',
16929 # but is careful enough not to reorder.
16930 # Supported since Solaris 2.6 (maybe 2.5.1?)
16931 if test "$GCC" = yes; then
16932 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16933 else
16934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16935 fi
16936 ;;
16937 esac
16938 link_all_deplibs=yes
16939 ;;
16940
16941 sunos4*)
16942 if test "x$host_vendor" = xsequent; then
16943 # Use $CC to link under sequent, because it throws in some extra .o
16944 # files that make .init and .fini sections work.
16945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16946 else
16947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16948 fi
16949 hardcode_libdir_flag_spec='-L$libdir'
16950 hardcode_direct=yes
16951 hardcode_minus_L=yes
16952 hardcode_shlibpath_var=no
16953 ;;
16954
16955 sysv4)
16956 case $host_vendor in
16957 sni)
16958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_direct=yes # is this really true???
16960 ;;
16961 siemens)
16962 ## LD is ld it makes a PLAMLIB
16963 ## CC just makes a GrossModule.
16964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16965 reload_cmds='$CC -r -o $output$reload_objs'
16966 hardcode_direct=no
16967 ;;
16968 motorola)
16969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16971 ;;
16972 esac
16973 runpath_var='LD_RUN_PATH'
16974 hardcode_shlibpath_var=no
16975 ;;
16976
16977 sysv4.3*)
16978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16979 hardcode_shlibpath_var=no
16980 export_dynamic_flag_spec='-Bexport'
16981 ;;
16982
16983 sysv4*MP*)
16984 if test -d /usr/nec; then
16985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_shlibpath_var=no
16987 runpath_var=LD_RUN_PATH
16988 hardcode_runpath_var=yes
16989 ld_shlibs=yes
16990 fi
16991 ;;
16992
16993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16994 no_undefined_flag='${wl}-z,text'
16995 archive_cmds_need_lc=no
16996 hardcode_shlibpath_var=no
16997 runpath_var='LD_RUN_PATH'
16998
16999 if test "$GCC" = yes; then
17000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17002 else
17003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 fi
17006 ;;
17007
17008 sysv5* | sco3.2v5* | sco5v6*)
17009 # Note: We can NOT use -z defs as we might desire, because we do not
17010 # link with -lc, and that would cause any symbols used from libc to
17011 # always be unresolved, which means just about no library would
17012 # ever link correctly. If we're not using GNU ld we use -z text
17013 # though, which does catch some bad symbols but isn't as heavy-handed
17014 # as -z defs.
17015 no_undefined_flag='${wl}-z,text'
17016 allow_undefined_flag='${wl}-z,nodefs'
17017 archive_cmds_need_lc=no
17018 hardcode_shlibpath_var=no
17019 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17020 hardcode_libdir_separator=':'
17021 link_all_deplibs=yes
17022 export_dynamic_flag_spec='${wl}-Bexport'
17023 runpath_var='LD_RUN_PATH'
17024
17025 if test "$GCC" = yes; then
17026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 else
17029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 fi
17032 ;;
17033
17034 uts4*)
17035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec='-L$libdir'
17037 hardcode_shlibpath_var=no
17038 ;;
17039
17040 *)
17041 ld_shlibs=no
17042 ;;
17043 esac
17044
17045 if test x$host_vendor = xsni; then
17046 case $host in
17047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17048 export_dynamic_flag_spec='${wl}-Blargedynsym'
17049 ;;
17050 esac
17051 fi
17052 fi
17053
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17055 $as_echo "$ld_shlibs" >&6; }
17056 test "$ld_shlibs" = no && can_build_shared=no
17057
17058 with_gnu_ld=$with_gnu_ld
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074 #
17075 # Do we need to explicitly link libc?
17076 #
17077 case "x$archive_cmds_need_lc" in
17078 x|xyes)
17079 # Assume -lc should be added
17080 archive_cmds_need_lc=yes
17081
17082 if test "$enable_shared" = yes && test "$GCC" = yes; then
17083 case $archive_cmds in
17084 *'~'*)
17085 # FIXME: we may have to deal with multi-command sequences.
17086 ;;
17087 '$CC '*)
17088 # Test whether the compiler implicitly links with -lc since on some
17089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17090 # to ld, don't add -lc before -lgcc.
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17092 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17093 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 $RM conftest*
17097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17098
17099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17100 (eval $ac_compile) 2>&5
17101 ac_status=$?
17102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17103 test $ac_status = 0; } 2>conftest.err; then
17104 soname=conftest
17105 lib=conftest
17106 libobjs=conftest.$ac_objext
17107 deplibs=
17108 wl=$lt_prog_compiler_wl
17109 pic_flag=$lt_prog_compiler_pic
17110 compiler_flags=-v
17111 linker_flags=-v
17112 verstring=
17113 output_objdir=.
17114 libname=conftest
17115 lt_save_allow_undefined_flag=$allow_undefined_flag
17116 allow_undefined_flag=
17117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17119 ac_status=$?
17120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17121 test $ac_status = 0; }
17122 then
17123 lt_cv_archive_cmds_need_lc=no
17124 else
17125 lt_cv_archive_cmds_need_lc=yes
17126 fi
17127 allow_undefined_flag=$lt_save_allow_undefined_flag
17128 else
17129 cat conftest.err 1>&5
17130 fi
17131 $RM conftest*
17132
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17135 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17136 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17137 ;;
17138 esac
17139 fi
17140 ;;
17141 esac
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17300 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17301
17302 if test "$GCC" = yes; then
17303 case $host_os in
17304 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17305 *) lt_awk_arg="/^libraries:/" ;;
17306 esac
17307 case $host_os in
17308 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17309 *) lt_sed_strip_eq="s,=/,/,g" ;;
17310 esac
17311 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17312 case $lt_search_path_spec in
17313 *\;*)
17314 # if the path contains ";" then we assume it to be the separator
17315 # otherwise default to the standard path separator (i.e. ":") - it is
17316 # assumed that no part of a normal pathname contains ";" but that should
17317 # okay in the real world where ";" in dirpaths is itself problematic.
17318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17319 ;;
17320 *)
17321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17322 ;;
17323 esac
17324 # Ok, now we have the path, separated by spaces, we can step through it
17325 # and add multilib dir if necessary.
17326 lt_tmp_lt_search_path_spec=
17327 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17328 for lt_sys_path in $lt_search_path_spec; do
17329 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17331 else
17332 test -d "$lt_sys_path" && \
17333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17334 fi
17335 done
17336 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17337 BEGIN {RS=" "; FS="/|\n";} {
17338 lt_foo="";
17339 lt_count=0;
17340 for (lt_i = NF; lt_i > 0; lt_i--) {
17341 if ($lt_i != "" && $lt_i != ".") {
17342 if ($lt_i == "..") {
17343 lt_count++;
17344 } else {
17345 if (lt_count == 0) {
17346 lt_foo="/" $lt_i lt_foo;
17347 } else {
17348 lt_count--;
17349 }
17350 }
17351 }
17352 }
17353 if (lt_foo != "") { lt_freq[lt_foo]++; }
17354 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17355 }'`
17356 # AWK program above erroneously prepends '/' to C:/dos/paths
17357 # for these hosts.
17358 case $host_os in
17359 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17360 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17361 esac
17362 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17363 else
17364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17365 fi
17366 library_names_spec=
17367 libname_spec='lib$name'
17368 soname_spec=
17369 shrext_cmds=".so"
17370 postinstall_cmds=
17371 postuninstall_cmds=
17372 finish_cmds=
17373 finish_eval=
17374 shlibpath_var=
17375 shlibpath_overrides_runpath=unknown
17376 version_type=none
17377 dynamic_linker="$host_os ld.so"
17378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17379 need_lib_prefix=unknown
17380 hardcode_into_libs=no
17381
17382 # when you set need_version to no, make sure it does not cause -set_version
17383 # flags to be left without arguments
17384 need_version=unknown
17385
17386 case $host_os in
17387 aix3*)
17388 version_type=linux
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17390 shlibpath_var=LIBPATH
17391
17392 # AIX 3 has no versioning support, so we append a major version to the name.
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 ;;
17395
17396 aix[4-9]*)
17397 version_type=linux
17398 need_lib_prefix=no
17399 need_version=no
17400 hardcode_into_libs=yes
17401 if test "$host_cpu" = ia64; then
17402 # AIX 5 supports IA64
17403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 else
17406 # With GCC up to 2.95.x, collect2 would create an import file
17407 # for dependence libraries. The import file would start with
17408 # the line `#! .'. This would cause the generated library to
17409 # depend on `.', always an invalid library. This was fixed in
17410 # development snapshots of GCC prior to 3.0.
17411 case $host_os in
17412 aix4 | aix4.[01] | aix4.[01].*)
17413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17414 echo ' yes '
17415 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17416 :
17417 else
17418 can_build_shared=no
17419 fi
17420 ;;
17421 esac
17422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17423 # soname into executable. Probably we can add versioning support to
17424 # collect2, so additional links can be useful in future.
17425 if test "$aix_use_runtimelinking" = yes; then
17426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17427 # instead of lib<name>.a to let people know that these are not
17428 # typical AIX shared libraries.
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 else
17431 # We preserve .a as extension for shared libraries through AIX4.2
17432 # and later when we are not doing run time linking.
17433 library_names_spec='${libname}${release}.a $libname.a'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 fi
17436 shlibpath_var=LIBPATH
17437 fi
17438 ;;
17439
17440 amigaos*)
17441 case $host_cpu in
17442 powerpc)
17443 # Since July 2007 AmigaOS4 officially supports .so libraries.
17444 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 ;;
17447 m68k)
17448 library_names_spec='$libname.ixlibrary $libname.a'
17449 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17450 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'
17451 ;;
17452 esac
17453 ;;
17454
17455 beos*)
17456 library_names_spec='${libname}${shared_ext}'
17457 dynamic_linker="$host_os ld.so"
17458 shlibpath_var=LIBRARY_PATH
17459 ;;
17460
17461 bsdi[45]*)
17462 version_type=linux
17463 need_version=no
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17470 # the default ld.so.conf also contains /usr/contrib/lib and
17471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17472 # libtool to hard-code these into programs
17473 ;;
17474
17475 cygwin* | mingw* | pw32* | cegcc*)
17476 version_type=windows
17477 shrext_cmds=".dll"
17478 need_version=no
17479 need_lib_prefix=no
17480
17481 case $GCC,$host_os in
17482 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17483 library_names_spec='$libname.dll.a'
17484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17485 postinstall_cmds='base_file=`basename \${file}`~
17486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17487 dldir=$destdir/`dirname \$dlpath`~
17488 test -d \$dldir || mkdir -p \$dldir~
17489 $install_prog $dir/$dlname \$dldir/$dlname~
17490 chmod a+x \$dldir/$dlname~
17491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17493 fi'
17494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17495 dlpath=$dir/\$dldll~
17496 $RM \$dlpath'
17497 shlibpath_overrides_runpath=yes
17498
17499 case $host_os in
17500 cygwin*)
17501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17502 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17503
17504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17505 ;;
17506 mingw* | cegcc*)
17507 # MinGW DLLs use traditional 'lib' prefix
17508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17509 ;;
17510 pw32*)
17511 # pw32 DLLs use 'pw' prefix rather than 'lib'
17512 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17513 ;;
17514 esac
17515 ;;
17516
17517 *)
17518 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17519 ;;
17520 esac
17521 dynamic_linker='Win32 ld.exe'
17522 # FIXME: first we should search . and the directory the executable is in
17523 shlibpath_var=PATH
17524 ;;
17525
17526 darwin* | rhapsody*)
17527 dynamic_linker="$host_os dyld"
17528 version_type=darwin
17529 need_lib_prefix=no
17530 need_version=no
17531 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17532 soname_spec='${libname}${release}${major}$shared_ext'
17533 shlibpath_overrides_runpath=yes
17534 shlibpath_var=DYLD_LIBRARY_PATH
17535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17536
17537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17539 ;;
17540
17541 dgux*)
17542 version_type=linux
17543 need_lib_prefix=no
17544 need_version=no
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17546 soname_spec='${libname}${release}${shared_ext}$major'
17547 shlibpath_var=LD_LIBRARY_PATH
17548 ;;
17549
17550 freebsd* | dragonfly*)
17551 # DragonFly does not have aout. When/if they implement a new
17552 # versioning mechanism, adjust this.
17553 if test -x /usr/bin/objformat; then
17554 objformat=`/usr/bin/objformat`
17555 else
17556 case $host_os in
17557 freebsd[23].*) objformat=aout ;;
17558 *) objformat=elf ;;
17559 esac
17560 fi
17561 version_type=freebsd-$objformat
17562 case $version_type in
17563 freebsd-elf*)
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17565 need_version=no
17566 need_lib_prefix=no
17567 ;;
17568 freebsd-*)
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17570 need_version=yes
17571 ;;
17572 esac
17573 shlibpath_var=LD_LIBRARY_PATH
17574 case $host_os in
17575 freebsd2.*)
17576 shlibpath_overrides_runpath=yes
17577 ;;
17578 freebsd3.[01]* | freebsdelf3.[01]*)
17579 shlibpath_overrides_runpath=yes
17580 hardcode_into_libs=yes
17581 ;;
17582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17584 shlibpath_overrides_runpath=no
17585 hardcode_into_libs=yes
17586 ;;
17587 *) # from 4.6 on, and DragonFly
17588 shlibpath_overrides_runpath=yes
17589 hardcode_into_libs=yes
17590 ;;
17591 esac
17592 ;;
17593
17594 gnu*)
17595 version_type=linux
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 hardcode_into_libs=yes
17602 ;;
17603
17604 haiku*)
17605 version_type=linux
17606 need_lib_prefix=no
17607 need_version=no
17608 dynamic_linker="$host_os runtime_loader"
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 shlibpath_var=LIBRARY_PATH
17612 shlibpath_overrides_runpath=yes
17613 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17614 hardcode_into_libs=yes
17615 ;;
17616
17617 hpux9* | hpux10* | hpux11*)
17618 # Give a soname corresponding to the major version so that dld.sl refuses to
17619 # link against other versions.
17620 version_type=sunos
17621 need_lib_prefix=no
17622 need_version=no
17623 case $host_cpu in
17624 ia64*)
17625 shrext_cmds='.so'
17626 hardcode_into_libs=yes
17627 dynamic_linker="$host_os dld.so"
17628 shlibpath_var=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 if test "X$HPUX_IA64_MODE" = X32; then
17633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17634 else
17635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17636 fi
17637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17638 ;;
17639 hppa*64*)
17640 shrext_cmds='.sl'
17641 hardcode_into_libs=yes
17642 dynamic_linker="$host_os dld.sl"
17643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17649 ;;
17650 *)
17651 shrext_cmds='.sl'
17652 dynamic_linker="$host_os dld.sl"
17653 shlibpath_var=SHLIB_PATH
17654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17656 soname_spec='${libname}${release}${shared_ext}$major'
17657 ;;
17658 esac
17659 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17660 postinstall_cmds='chmod 555 $lib'
17661 # or fails outright, so override atomically:
17662 install_override_mode=555
17663 ;;
17664
17665 interix[3-9]*)
17666 version_type=linux
17667 need_lib_prefix=no
17668 need_version=no
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17672 shlibpath_var=LD_LIBRARY_PATH
17673 shlibpath_overrides_runpath=no
17674 hardcode_into_libs=yes
17675 ;;
17676
17677 irix5* | irix6* | nonstopux*)
17678 case $host_os in
17679 nonstopux*) version_type=nonstopux ;;
17680 *)
17681 if test "$lt_cv_prog_gnu_ld" = yes; then
17682 version_type=linux
17683 else
17684 version_type=irix
17685 fi ;;
17686 esac
17687 need_lib_prefix=no
17688 need_version=no
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17691 case $host_os in
17692 irix5* | nonstopux*)
17693 libsuff= shlibsuff=
17694 ;;
17695 *)
17696 case $LD in # libtool.m4 will add one of these switches to LD
17697 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17698 libsuff= shlibsuff= libmagic=32-bit;;
17699 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17700 libsuff=32 shlibsuff=N32 libmagic=N32;;
17701 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17702 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17703 *) libsuff= shlibsuff= libmagic=never-match;;
17704 esac
17705 ;;
17706 esac
17707 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17708 shlibpath_overrides_runpath=no
17709 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17710 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17711 hardcode_into_libs=yes
17712 ;;
17713
17714 # No shared lib support for Linux oldld, aout, or coff.
17715 linux*oldld* | linux*aout* | linux*coff*)
17716 dynamic_linker=no
17717 ;;
17718
17719 # This must be Linux ELF.
17720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17721 version_type=linux
17722 need_lib_prefix=no
17723 need_version=no
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 shlibpath_overrides_runpath=no
17729
17730 # Some binutils ld are patched to set DT_RUNPATH
17731 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17732 $as_echo_n "(cached) " >&6
17733 else
17734 lt_cv_shlibpath_overrides_runpath=no
17735 save_LDFLAGS=$LDFLAGS
17736 save_libdir=$libdir
17737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741
17742 int
17743 main ()
17744 {
17745
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 if ac_fn_c_try_link "$LINENO"; then :
17751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17752 lt_cv_shlibpath_overrides_runpath=yes
17753 fi
17754 fi
17755 rm -f core conftest.err conftest.$ac_objext \
17756 conftest$ac_exeext conftest.$ac_ext
17757 LDFLAGS=$save_LDFLAGS
17758 libdir=$save_libdir
17759
17760 fi
17761
17762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17763
17764 # This implies no fast_install, which is unacceptable.
17765 # Some rework will be needed to allow for fast_install
17766 # before this can be enabled.
17767 hardcode_into_libs=yes
17768
17769 # Append ld.so.conf contents to the search path
17770 if test -f /etc/ld.so.conf; then
17771 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' ' '`
17772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17773 fi
17774
17775 # We used to test for /lib/ld.so.1 and disable shared libraries on
17776 # powerpc, because MkLinux only supported shared libraries with the
17777 # GNU dynamic linker. Since this was broken with cross compilers,
17778 # most powerpc-linux boxes support dynamic linking these days and
17779 # people can always --disable-shared, the test was removed, and we
17780 # assume the GNU/Linux dynamic linker is in use.
17781 dynamic_linker='GNU/Linux ld.so'
17782 ;;
17783
17784 netbsd*)
17785 version_type=sunos
17786 need_lib_prefix=no
17787 need_version=no
17788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17791 dynamic_linker='NetBSD (a.out) ld.so'
17792 else
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 dynamic_linker='NetBSD ld.elf_so'
17796 fi
17797 shlibpath_var=LD_LIBRARY_PATH
17798 shlibpath_overrides_runpath=yes
17799 hardcode_into_libs=yes
17800 ;;
17801
17802 newsos6)
17803 version_type=linux
17804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 shlibpath_overrides_runpath=yes
17807 ;;
17808
17809 *nto* | *qnx*)
17810 version_type=qnx
17811 need_lib_prefix=no
17812 need_version=no
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec='${libname}${release}${shared_ext}$major'
17815 shlibpath_var=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath=no
17817 hardcode_into_libs=yes
17818 dynamic_linker='ldqnx.so'
17819 ;;
17820
17821 openbsd*)
17822 version_type=sunos
17823 sys_lib_dlsearch_path_spec="/usr/lib"
17824 need_lib_prefix=no
17825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17826 case $host_os in
17827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17828 *) need_version=no ;;
17829 esac
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17834 case $host_os in
17835 openbsd2.[89] | openbsd2.[89].*)
17836 shlibpath_overrides_runpath=no
17837 ;;
17838 *)
17839 shlibpath_overrides_runpath=yes
17840 ;;
17841 esac
17842 else
17843 shlibpath_overrides_runpath=yes
17844 fi
17845 ;;
17846
17847 os2*)
17848 libname_spec='$name'
17849 shrext_cmds=".dll"
17850 need_lib_prefix=no
17851 library_names_spec='$libname${shared_ext} $libname.a'
17852 dynamic_linker='OS/2 ld.exe'
17853 shlibpath_var=LIBPATH
17854 ;;
17855
17856 osf3* | osf4* | osf5*)
17857 version_type=osf
17858 need_lib_prefix=no
17859 need_version=no
17860 soname_spec='${libname}${release}${shared_ext}$major'
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 shlibpath_var=LD_LIBRARY_PATH
17863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17865 ;;
17866
17867 rdos*)
17868 dynamic_linker=no
17869 ;;
17870
17871 solaris*)
17872 version_type=linux
17873 need_lib_prefix=no
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes
17879 hardcode_into_libs=yes
17880 # ldd complains unless libraries are executable
17881 postinstall_cmds='chmod +x $lib'
17882 ;;
17883
17884 sunos4*)
17885 version_type=sunos
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=yes
17890 if test "$with_gnu_ld" = yes; then
17891 need_lib_prefix=no
17892 fi
17893 need_version=yes
17894 ;;
17895
17896 sysv4 | sysv4.3*)
17897 version_type=linux
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899 soname_spec='${libname}${release}${shared_ext}$major'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 case $host_vendor in
17902 sni)
17903 shlibpath_overrides_runpath=no
17904 need_lib_prefix=no
17905 runpath_var=LD_RUN_PATH
17906 ;;
17907 siemens)
17908 need_lib_prefix=no
17909 ;;
17910 motorola)
17911 need_lib_prefix=no
17912 need_version=no
17913 shlibpath_overrides_runpath=no
17914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17915 ;;
17916 esac
17917 ;;
17918
17919 sysv4*MP*)
17920 if test -d /usr/nec ;then
17921 version_type=linux
17922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17923 soname_spec='$libname${shared_ext}.$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 fi
17926 ;;
17927
17928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17929 version_type=freebsd-elf
17930 need_lib_prefix=no
17931 need_version=no
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 shlibpath_overrides_runpath=yes
17936 hardcode_into_libs=yes
17937 if test "$with_gnu_ld" = yes; then
17938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17939 else
17940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17941 case $host_os in
17942 sco3.2v5*)
17943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17944 ;;
17945 esac
17946 fi
17947 sys_lib_dlsearch_path_spec='/usr/lib'
17948 ;;
17949
17950 tpf*)
17951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17952 version_type=linux
17953 need_lib_prefix=no
17954 need_version=no
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 shlibpath_var=LD_LIBRARY_PATH
17957 shlibpath_overrides_runpath=no
17958 hardcode_into_libs=yes
17959 ;;
17960
17961 uts4*)
17962 version_type=linux
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964 soname_spec='${libname}${release}${shared_ext}$major'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 ;;
17967
17968 *)
17969 dynamic_linker=no
17970 ;;
17971 esac
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17973 $as_echo "$dynamic_linker" >&6; }
17974 test "$dynamic_linker" = no && can_build_shared=no
17975
17976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17977 if test "$GCC" = yes; then
17978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17979 fi
17980
17981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17983 fi
17984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17986 fi
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18081 hardcode_action=
18082 if test -n "$hardcode_libdir_flag_spec" ||
18083 test -n "$runpath_var" ||
18084 test "X$hardcode_automatic" = "Xyes" ; then
18085
18086 # We can hardcode non-existent directories.
18087 if test "$hardcode_direct" != no &&
18088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18089 # have to relink, otherwise we might link with an installed library
18090 # when we should be linking with a yet-to-be-installed one
18091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18092 test "$hardcode_minus_L" != no; then
18093 # Linking always hardcodes the temporary library directory.
18094 hardcode_action=relink
18095 else
18096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18097 hardcode_action=immediate
18098 fi
18099 else
18100 # We cannot hardcode anything, or else we can only hardcode existing
18101 # directories.
18102 hardcode_action=unsupported
18103 fi
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18105 $as_echo "$hardcode_action" >&6; }
18106
18107 if test "$hardcode_action" = relink ||
18108 test "$inherit_rpath" = yes; then
18109 # Fast installation is not supported
18110 enable_fast_install=no
18111 elif test "$shlibpath_overrides_runpath" = yes ||
18112 test "$enable_shared" = no; then
18113 # Fast installation is not necessary
18114 enable_fast_install=needless
18115 fi
18116
18117
18118
18119
18120
18121
18122 if test "x$enable_dlopen" != xyes; then
18123 enable_dlopen=unknown
18124 enable_dlopen_self=unknown
18125 enable_dlopen_self_static=unknown
18126 else
18127 lt_cv_dlopen=no
18128 lt_cv_dlopen_libs=
18129
18130 case $host_os in
18131 beos*)
18132 lt_cv_dlopen="load_add_on"
18133 lt_cv_dlopen_libs=
18134 lt_cv_dlopen_self=yes
18135 ;;
18136
18137 mingw* | pw32* | cegcc*)
18138 lt_cv_dlopen="LoadLibrary"
18139 lt_cv_dlopen_libs=
18140 ;;
18141
18142 cygwin*)
18143 lt_cv_dlopen="dlopen"
18144 lt_cv_dlopen_libs=
18145 ;;
18146
18147 darwin*)
18148 # if libdl is installed we need to link against it
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 ac_check_lib_save_LIBS=$LIBS
18155 LIBS="-ldl $LIBS"
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158
18159 /* Override any GCC internal prototype to avoid an error.
18160 Use char because int might match the return type of a GCC
18161 builtin and then its argument prototype would still apply. */
18162 #ifdef __cplusplus
18163 extern "C"
18164 #endif
18165 char dlopen ();
18166 int
18167 main ()
18168 {
18169 return dlopen ();
18170 ;
18171 return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"; then :
18175 ac_cv_lib_dl_dlopen=yes
18176 else
18177 ac_cv_lib_dl_dlopen=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18181 LIBS=$ac_check_lib_save_LIBS
18182 fi
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18185 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18187 else
18188
18189 lt_cv_dlopen="dyld"
18190 lt_cv_dlopen_libs=
18191 lt_cv_dlopen_self=yes
18192
18193 fi
18194
18195 ;;
18196
18197 *)
18198 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18199 if test "x$ac_cv_func_shl_load" = x""yes; then :
18200 lt_cv_dlopen="shl_load"
18201 else
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18203 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18204 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-ldld $LIBS"
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 char shl_load ();
18219 int
18220 main ()
18221 {
18222 return shl_load ();
18223 ;
18224 return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_lib_dld_shl_load=yes
18229 else
18230 ac_cv_lib_dld_shl_load=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18235 fi
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18237 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18238 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18239 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18240 else
18241 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18242 if test "x$ac_cv_func_dlopen" = x""yes; then :
18243 lt_cv_dlopen="dlopen"
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 ac_check_lib_save_LIBS=$LIBS
18251 LIBS="-ldl $LIBS"
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254
18255 /* Override any GCC internal prototype to avoid an error.
18256 Use char because int might match the return type of a GCC
18257 builtin and then its argument prototype would still apply. */
18258 #ifdef __cplusplus
18259 extern "C"
18260 #endif
18261 char dlopen ();
18262 int
18263 main ()
18264 {
18265 return dlopen ();
18266 ;
18267 return 0;
18268 }
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 ac_cv_lib_dl_dlopen=yes
18272 else
18273 ac_cv_lib_dl_dlopen=no
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18277 LIBS=$ac_check_lib_save_LIBS
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18281 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18283 else
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18285 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18286 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18287 $as_echo_n "(cached) " >&6
18288 else
18289 ac_check_lib_save_LIBS=$LIBS
18290 LIBS="-lsvld $LIBS"
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h. */
18293
18294 /* Override any GCC internal prototype to avoid an error.
18295 Use char because int might match the return type of a GCC
18296 builtin and then its argument prototype would still apply. */
18297 #ifdef __cplusplus
18298 extern "C"
18299 #endif
18300 char dlopen ();
18301 int
18302 main ()
18303 {
18304 return dlopen ();
18305 ;
18306 return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_c_try_link "$LINENO"; then :
18310 ac_cv_lib_svld_dlopen=yes
18311 else
18312 ac_cv_lib_svld_dlopen=no
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18319 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18320 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18322 else
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328 ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-ldld $LIBS"
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18332
18333 /* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 char dld_link ();
18340 int
18341 main ()
18342 {
18343 return dld_link ();
18344 ;
18345 return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349 ac_cv_lib_dld_dld_link=yes
18350 else
18351 ac_cv_lib_dld_dld_link=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18356 fi
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18359 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18360 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18361 fi
18362
18363
18364 fi
18365
18366
18367 fi
18368
18369
18370 fi
18371
18372
18373 fi
18374
18375
18376 fi
18377
18378 ;;
18379 esac
18380
18381 if test "x$lt_cv_dlopen" != xno; then
18382 enable_dlopen=yes
18383 else
18384 enable_dlopen=no
18385 fi
18386
18387 case $lt_cv_dlopen in
18388 dlopen)
18389 save_CPPFLAGS="$CPPFLAGS"
18390 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18391
18392 save_LDFLAGS="$LDFLAGS"
18393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18394
18395 save_LIBS="$LIBS"
18396 LIBS="$lt_cv_dlopen_libs $LIBS"
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18400 if test "${lt_cv_dlopen_self+set}" = set; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 if test "$cross_compiling" = yes; then :
18404 lt_cv_dlopen_self=cross
18405 else
18406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18407 lt_status=$lt_dlunknown
18408 cat > conftest.$ac_ext <<_LT_EOF
18409 #line 18409 "configure"
18410 #include "confdefs.h"
18411
18412 #if HAVE_DLFCN_H
18413 #include <dlfcn.h>
18414 #endif
18415
18416 #include <stdio.h>
18417
18418 #ifdef RTLD_GLOBAL
18419 # define LT_DLGLOBAL RTLD_GLOBAL
18420 #else
18421 # ifdef DL_GLOBAL
18422 # define LT_DLGLOBAL DL_GLOBAL
18423 # else
18424 # define LT_DLGLOBAL 0
18425 # endif
18426 #endif
18427
18428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18429 find out it does not work in some platform. */
18430 #ifndef LT_DLLAZY_OR_NOW
18431 # ifdef RTLD_LAZY
18432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18433 # else
18434 # ifdef DL_LAZY
18435 # define LT_DLLAZY_OR_NOW DL_LAZY
18436 # else
18437 # ifdef RTLD_NOW
18438 # define LT_DLLAZY_OR_NOW RTLD_NOW
18439 # else
18440 # ifdef DL_NOW
18441 # define LT_DLLAZY_OR_NOW DL_NOW
18442 # else
18443 # define LT_DLLAZY_OR_NOW 0
18444 # endif
18445 # endif
18446 # endif
18447 # endif
18448 #endif
18449
18450 /* When -fvisbility=hidden is used, assume the code has been annotated
18451 correspondingly for the symbols needed. */
18452 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18453 void fnord () __attribute__((visibility("default")));
18454 #endif
18455
18456 void fnord () { int i=42; }
18457 int main ()
18458 {
18459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18460 int status = $lt_dlunknown;
18461
18462 if (self)
18463 {
18464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18465 else
18466 {
18467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18468 else puts (dlerror ());
18469 }
18470 /* dlclose (self); */
18471 }
18472 else
18473 puts (dlerror ());
18474
18475 return status;
18476 }
18477 _LT_EOF
18478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18479 (eval $ac_link) 2>&5
18480 ac_status=$?
18481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18483 (./conftest; exit; ) >&5 2>/dev/null
18484 lt_status=$?
18485 case x$lt_status in
18486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18488 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18489 esac
18490 else :
18491 # compilation failed
18492 lt_cv_dlopen_self=no
18493 fi
18494 fi
18495 rm -fr conftest*
18496
18497
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18500 $as_echo "$lt_cv_dlopen_self" >&6; }
18501
18502 if test "x$lt_cv_dlopen_self" = xyes; then
18503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18505 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18506 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18507 $as_echo_n "(cached) " >&6
18508 else
18509 if test "$cross_compiling" = yes; then :
18510 lt_cv_dlopen_self_static=cross
18511 else
18512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18513 lt_status=$lt_dlunknown
18514 cat > conftest.$ac_ext <<_LT_EOF
18515 #line 18515 "configure"
18516 #include "confdefs.h"
18517
18518 #if HAVE_DLFCN_H
18519 #include <dlfcn.h>
18520 #endif
18521
18522 #include <stdio.h>
18523
18524 #ifdef RTLD_GLOBAL
18525 # define LT_DLGLOBAL RTLD_GLOBAL
18526 #else
18527 # ifdef DL_GLOBAL
18528 # define LT_DLGLOBAL DL_GLOBAL
18529 # else
18530 # define LT_DLGLOBAL 0
18531 # endif
18532 #endif
18533
18534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18535 find out it does not work in some platform. */
18536 #ifndef LT_DLLAZY_OR_NOW
18537 # ifdef RTLD_LAZY
18538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18539 # else
18540 # ifdef DL_LAZY
18541 # define LT_DLLAZY_OR_NOW DL_LAZY
18542 # else
18543 # ifdef RTLD_NOW
18544 # define LT_DLLAZY_OR_NOW RTLD_NOW
18545 # else
18546 # ifdef DL_NOW
18547 # define LT_DLLAZY_OR_NOW DL_NOW
18548 # else
18549 # define LT_DLLAZY_OR_NOW 0
18550 # endif
18551 # endif
18552 # endif
18553 # endif
18554 #endif
18555
18556 /* When -fvisbility=hidden is used, assume the code has been annotated
18557 correspondingly for the symbols needed. */
18558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18559 void fnord () __attribute__((visibility("default")));
18560 #endif
18561
18562 void fnord () { int i=42; }
18563 int main ()
18564 {
18565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18566 int status = $lt_dlunknown;
18567
18568 if (self)
18569 {
18570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18571 else
18572 {
18573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18574 else puts (dlerror ());
18575 }
18576 /* dlclose (self); */
18577 }
18578 else
18579 puts (dlerror ());
18580
18581 return status;
18582 }
18583 _LT_EOF
18584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18585 (eval $ac_link) 2>&5
18586 ac_status=$?
18587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18589 (./conftest; exit; ) >&5 2>/dev/null
18590 lt_status=$?
18591 case x$lt_status in
18592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18595 esac
18596 else :
18597 # compilation failed
18598 lt_cv_dlopen_self_static=no
18599 fi
18600 fi
18601 rm -fr conftest*
18602
18603
18604 fi
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18606 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18607 fi
18608
18609 CPPFLAGS="$save_CPPFLAGS"
18610 LDFLAGS="$save_LDFLAGS"
18611 LIBS="$save_LIBS"
18612 ;;
18613 esac
18614
18615 case $lt_cv_dlopen_self in
18616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18617 *) enable_dlopen_self=unknown ;;
18618 esac
18619
18620 case $lt_cv_dlopen_self_static in
18621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18622 *) enable_dlopen_self_static=unknown ;;
18623 esac
18624 fi
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642 striplib=
18643 old_striplib=
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18645 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18648 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18650 $as_echo "yes" >&6; }
18651 else
18652 # FIXME - insert some real tests, host_os isn't really good enough
18653 case $host_os in
18654 darwin*)
18655 if test -n "$STRIP" ; then
18656 striplib="$STRIP -x"
18657 old_striplib="$STRIP -S"
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18659 $as_echo "yes" >&6; }
18660 else
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18663 fi
18664 ;;
18665 *)
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18668 ;;
18669 esac
18670 fi
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683 # Report which library types will actually be built
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18685 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18687 $as_echo "$can_build_shared" >&6; }
18688
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18690 $as_echo_n "checking whether to build shared libraries... " >&6; }
18691 test "$can_build_shared" = "no" && enable_shared=no
18692
18693 # On AIX, shared libraries and static libraries use the same namespace, and
18694 # are all built from PIC.
18695 case $host_os in
18696 aix3*)
18697 test "$enable_shared" = yes && enable_static=no
18698 if test -n "$RANLIB"; then
18699 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18700 postinstall_cmds='$RANLIB $lib'
18701 fi
18702 ;;
18703
18704 aix[4-9]*)
18705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18706 test "$enable_shared" = yes && enable_static=no
18707 fi
18708 ;;
18709 esac
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18711 $as_echo "$enable_shared" >&6; }
18712
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18714 $as_echo_n "checking whether to build static libraries... " >&6; }
18715 # Make sure either enable_shared or enable_static is yes.
18716 test "$enable_shared" = yes || enable_static=yes
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18718 $as_echo "$enable_static" >&6; }
18719
18720
18721
18722
18723 fi
18724 ac_ext=cpp
18725 ac_cpp='$CXXCPP $CPPFLAGS'
18726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729
18730 CC="$lt_save_CC"
18731
18732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18734 (test "X$CXX" != "Xg++"))) ; then
18735 ac_ext=cpp
18736 ac_cpp='$CXXCPP $CPPFLAGS'
18737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18741 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18742 if test -z "$CXXCPP"; then
18743 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18744 $as_echo_n "(cached) " >&6
18745 else
18746 # Double quotes because CXXCPP needs to be expanded
18747 for CXXCPP in "$CXX -E" "/lib/cpp"
18748 do
18749 ac_preproc_ok=false
18750 for ac_cxx_preproc_warn_flag in '' yes
18751 do
18752 # Use a header file that comes with gcc, so configuring glibc
18753 # with a fresh cross-compiler works.
18754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18755 # <limits.h> exists even on freestanding compilers.
18756 # On the NeXT, cc -E runs the code through the compiler's parser,
18757 # not just through cpp. "Syntax error" is here to catch this case.
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18760 #ifdef __STDC__
18761 # include <limits.h>
18762 #else
18763 # include <assert.h>
18764 #endif
18765 Syntax error
18766 _ACEOF
18767 if ac_fn_cxx_try_cpp "$LINENO"; then :
18768
18769 else
18770 # Broken: fails on valid input.
18771 continue
18772 fi
18773 rm -f conftest.err conftest.$ac_ext
18774
18775 # OK, works on sane cases. Now check whether nonexistent headers
18776 # can be detected and how.
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779 #include <ac_nonexistent.h>
18780 _ACEOF
18781 if ac_fn_cxx_try_cpp "$LINENO"; then :
18782 # Broken: success on invalid input.
18783 continue
18784 else
18785 # Passes both tests.
18786 ac_preproc_ok=:
18787 break
18788 fi
18789 rm -f conftest.err conftest.$ac_ext
18790
18791 done
18792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18793 rm -f conftest.err conftest.$ac_ext
18794 if $ac_preproc_ok; then :
18795 break
18796 fi
18797
18798 done
18799 ac_cv_prog_CXXCPP=$CXXCPP
18800
18801 fi
18802 CXXCPP=$ac_cv_prog_CXXCPP
18803 else
18804 ac_cv_prog_CXXCPP=$CXXCPP
18805 fi
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18807 $as_echo "$CXXCPP" >&6; }
18808 ac_preproc_ok=false
18809 for ac_cxx_preproc_warn_flag in '' yes
18810 do
18811 # Use a header file that comes with gcc, so configuring glibc
18812 # with a fresh cross-compiler works.
18813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18814 # <limits.h> exists even on freestanding compilers.
18815 # On the NeXT, cc -E runs the code through the compiler's parser,
18816 # not just through cpp. "Syntax error" is here to catch this case.
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18819 #ifdef __STDC__
18820 # include <limits.h>
18821 #else
18822 # include <assert.h>
18823 #endif
18824 Syntax error
18825 _ACEOF
18826 if ac_fn_cxx_try_cpp "$LINENO"; then :
18827
18828 else
18829 # Broken: fails on valid input.
18830 continue
18831 fi
18832 rm -f conftest.err conftest.$ac_ext
18833
18834 # OK, works on sane cases. Now check whether nonexistent headers
18835 # can be detected and how.
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18838 #include <ac_nonexistent.h>
18839 _ACEOF
18840 if ac_fn_cxx_try_cpp "$LINENO"; then :
18841 # Broken: success on invalid input.
18842 continue
18843 else
18844 # Passes both tests.
18845 ac_preproc_ok=:
18846 break
18847 fi
18848 rm -f conftest.err conftest.$ac_ext
18849
18850 done
18851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18852 rm -f conftest.err conftest.$ac_ext
18853 if $ac_preproc_ok; then :
18854
18855 else
18856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18858 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18859 See \`config.log' for more details." "$LINENO" 5; }
18860 fi
18861
18862 ac_ext=cpp
18863 ac_cpp='$CXXCPP $CPPFLAGS'
18864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18867
18868 else
18869 _lt_caught_CXX_error=yes
18870 fi
18871
18872 ac_ext=cpp
18873 ac_cpp='$CXXCPP $CPPFLAGS'
18874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18877
18878 archive_cmds_need_lc_CXX=no
18879 allow_undefined_flag_CXX=
18880 always_export_symbols_CXX=no
18881 archive_expsym_cmds_CXX=
18882 compiler_needs_object_CXX=no
18883 export_dynamic_flag_spec_CXX=
18884 hardcode_direct_CXX=no
18885 hardcode_direct_absolute_CXX=no
18886 hardcode_libdir_flag_spec_CXX=
18887 hardcode_libdir_flag_spec_ld_CXX=
18888 hardcode_libdir_separator_CXX=
18889 hardcode_minus_L_CXX=no
18890 hardcode_shlibpath_var_CXX=unsupported
18891 hardcode_automatic_CXX=no
18892 inherit_rpath_CXX=no
18893 module_cmds_CXX=
18894 module_expsym_cmds_CXX=
18895 link_all_deplibs_CXX=unknown
18896 old_archive_cmds_CXX=$old_archive_cmds
18897 reload_flag_CXX=$reload_flag
18898 reload_cmds_CXX=$reload_cmds
18899 no_undefined_flag_CXX=
18900 whole_archive_flag_spec_CXX=
18901 enable_shared_with_static_runtimes_CXX=no
18902
18903 # Source file extension for C++ test sources.
18904 ac_ext=cpp
18905
18906 # Object file extension for compiled C++ test sources.
18907 objext=o
18908 objext_CXX=$objext
18909
18910 # No sense in running all these tests if we already determined that
18911 # the CXX compiler isn't working. Some variables (like enable_shared)
18912 # are currently assumed to apply to all compilers on this platform,
18913 # and will be corrupted by setting them based on a non-working compiler.
18914 if test "$_lt_caught_CXX_error" != yes; then
18915 # Code to be used in simple compile tests
18916 lt_simple_compile_test_code="int some_variable = 0;"
18917
18918 # Code to be used in simple link tests
18919 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18920
18921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18922
18923
18924
18925
18926
18927
18928 # If no C compiler was specified, use CC.
18929 LTCC=${LTCC-"$CC"}
18930
18931 # If no C compiler flags were specified, use CFLAGS.
18932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18933
18934 # Allow CC to be a program name with arguments.
18935 compiler=$CC
18936
18937
18938 # save warnings/boilerplate of simple test code
18939 ac_outfile=conftest.$ac_objext
18940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18942 _lt_compiler_boilerplate=`cat conftest.err`
18943 $RM conftest*
18944
18945 ac_outfile=conftest.$ac_objext
18946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18948 _lt_linker_boilerplate=`cat conftest.err`
18949 $RM -r conftest*
18950
18951
18952 # Allow CC to be a program name with arguments.
18953 lt_save_CC=$CC
18954 lt_save_LD=$LD
18955 lt_save_GCC=$GCC
18956 GCC=$GXX
18957 lt_save_with_gnu_ld=$with_gnu_ld
18958 lt_save_path_LD=$lt_cv_path_LD
18959 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18960 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18961 else
18962 $as_unset lt_cv_prog_gnu_ld
18963 fi
18964 if test -n "${lt_cv_path_LDCXX+set}"; then
18965 lt_cv_path_LD=$lt_cv_path_LDCXX
18966 else
18967 $as_unset lt_cv_path_LD
18968 fi
18969 test -z "${LDCXX+set}" || LD=$LDCXX
18970 CC=${CXX-"c++"}
18971 compiler=$CC
18972 compiler_CXX=$CC
18973 for cc_temp in $compiler""; do
18974 case $cc_temp in
18975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18977 \-*) ;;
18978 *) break;;
18979 esac
18980 done
18981 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18982
18983
18984 if test -n "$compiler"; then
18985 # We don't want -fno-exception when compiling C++ code, so set the
18986 # no_builtin_flag separately
18987 if test "$GXX" = yes; then
18988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18989 else
18990 lt_prog_compiler_no_builtin_flag_CXX=
18991 fi
18992
18993 if test "$GXX" = yes; then
18994 # Set up default GNU C++ configuration
18995
18996
18997
18998 # Check whether --with-gnu-ld was given.
18999 if test "${with_gnu_ld+set}" = set; then :
19000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19001 else
19002 with_gnu_ld=no
19003 fi
19004
19005 ac_prog=ld
19006 if test "$GCC" = yes; then
19007 # Check if gcc -print-prog-name=ld gives a path.
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19009 $as_echo_n "checking for ld used by $CC... " >&6; }
19010 case $host in
19011 *-*-mingw*)
19012 # gcc leaves a trailing carriage return which upsets mingw
19013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19014 *)
19015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19016 esac
19017 case $ac_prog in
19018 # Accept absolute paths.
19019 [\\/]* | ?:[\\/]*)
19020 re_direlt='/[^/][^/]*/\.\./'
19021 # Canonicalize the pathname of ld
19022 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19023 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19024 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19025 done
19026 test -z "$LD" && LD="$ac_prog"
19027 ;;
19028 "")
19029 # If it fails, then pretend we aren't using GCC.
19030 ac_prog=ld
19031 ;;
19032 *)
19033 # If it is relative, then search for the first ld in PATH.
19034 with_gnu_ld=unknown
19035 ;;
19036 esac
19037 elif test "$with_gnu_ld" = yes; then
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19039 $as_echo_n "checking for GNU ld... " >&6; }
19040 else
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19042 $as_echo_n "checking for non-GNU ld... " >&6; }
19043 fi
19044 if test "${lt_cv_path_LD+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19046 else
19047 if test -z "$LD"; then
19048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19049 for ac_dir in $PATH; do
19050 IFS="$lt_save_ifs"
19051 test -z "$ac_dir" && ac_dir=.
19052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19053 lt_cv_path_LD="$ac_dir/$ac_prog"
19054 # Check to see if the program is GNU ld. I'd rather use --version,
19055 # but apparently some variants of GNU ld only accept -v.
19056 # Break only if it was the GNU/non-GNU ld that we prefer.
19057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19058 *GNU* | *'with BFD'*)
19059 test "$with_gnu_ld" != no && break
19060 ;;
19061 *)
19062 test "$with_gnu_ld" != yes && break
19063 ;;
19064 esac
19065 fi
19066 done
19067 IFS="$lt_save_ifs"
19068 else
19069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19070 fi
19071 fi
19072
19073 LD="$lt_cv_path_LD"
19074 if test -n "$LD"; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19076 $as_echo "$LD" >&6; }
19077 else
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19079 $as_echo "no" >&6; }
19080 fi
19081 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19083 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19084 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19088 case `$LD -v 2>&1 </dev/null` in
19089 *GNU* | *'with BFD'*)
19090 lt_cv_prog_gnu_ld=yes
19091 ;;
19092 *)
19093 lt_cv_prog_gnu_ld=no
19094 ;;
19095 esac
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19098 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19099 with_gnu_ld=$lt_cv_prog_gnu_ld
19100
19101
19102
19103
19104
19105
19106
19107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19108 # archiving commands below assume that GNU ld is being used.
19109 if test "$with_gnu_ld" = yes; then
19110 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19111 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'
19112
19113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19115
19116 # If archive_cmds runs LD, not CC, wlarc should be empty
19117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19118 # investigate it a little bit more. (MM)
19119 wlarc='${wl}'
19120
19121 # ancient GNU ld didn't support --whole-archive et. al.
19122 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19123 $GREP 'no-whole-archive' > /dev/null; then
19124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19125 else
19126 whole_archive_flag_spec_CXX=
19127 fi
19128 else
19129 with_gnu_ld=no
19130 wlarc=
19131
19132 # A generic and very simple default shared library creation
19133 # command for GNU C++ for the case where it uses the native
19134 # linker, instead of GNU ld. If possible, this setting should
19135 # overridden to take advantage of the native linker features on
19136 # the platform it is being used on.
19137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19138 fi
19139
19140 # Commands to make compiler produce verbose output that lists
19141 # what "hidden" libraries, object files and flags are used when
19142 # linking a shared library.
19143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19144
19145 else
19146 GXX=no
19147 with_gnu_ld=no
19148 wlarc=
19149 fi
19150
19151 # PORTME: fill in a description of your system's C++ link characteristics
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19154 ld_shlibs_CXX=yes
19155 case $host_os in
19156 aix3*)
19157 # FIXME: insert proper C++ library support
19158 ld_shlibs_CXX=no
19159 ;;
19160 aix[4-9]*)
19161 if test "$host_cpu" = ia64; then
19162 # On IA64, the linker does run time linking by default, so we don't
19163 # have to do anything special.
19164 aix_use_runtimelinking=no
19165 exp_sym_flag='-Bexport'
19166 no_entry_flag=""
19167 else
19168 aix_use_runtimelinking=no
19169
19170 # Test if we are trying to use run time linking or normal
19171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19172 # need to do runtime linking.
19173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19174 for ld_flag in $LDFLAGS; do
19175 case $ld_flag in
19176 *-brtl*)
19177 aix_use_runtimelinking=yes
19178 break
19179 ;;
19180 esac
19181 done
19182 ;;
19183 esac
19184
19185 exp_sym_flag='-bexport'
19186 no_entry_flag='-bnoentry'
19187 fi
19188
19189 # When large executables or shared objects are built, AIX ld can
19190 # have problems creating the table of contents. If linking a library
19191 # or program results in "error TOC overflow" add -mminimal-toc to
19192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19194
19195 archive_cmds_CXX=''
19196 hardcode_direct_CXX=yes
19197 hardcode_direct_absolute_CXX=yes
19198 hardcode_libdir_separator_CXX=':'
19199 link_all_deplibs_CXX=yes
19200 file_list_spec_CXX='${wl}-f,'
19201
19202 if test "$GXX" = yes; then
19203 case $host_os in aix4.[012]|aix4.[012].*)
19204 # We only want to do this on AIX 4.2 and lower, the check
19205 # below for broken collect2 doesn't work under 4.3+
19206 collect2name=`${CC} -print-prog-name=collect2`
19207 if test -f "$collect2name" &&
19208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19209 then
19210 # We have reworked collect2
19211 :
19212 else
19213 # We have old collect2
19214 hardcode_direct_CXX=unsupported
19215 # It fails to find uninstalled libraries when the uninstalled
19216 # path is not listed in the libpath. Setting hardcode_minus_L
19217 # to unsupported forces relinking
19218 hardcode_minus_L_CXX=yes
19219 hardcode_libdir_flag_spec_CXX='-L$libdir'
19220 hardcode_libdir_separator_CXX=
19221 fi
19222 esac
19223 shared_flag='-shared'
19224 if test "$aix_use_runtimelinking" = yes; then
19225 shared_flag="$shared_flag "'${wl}-G'
19226 fi
19227 else
19228 # not using gcc
19229 if test "$host_cpu" = ia64; then
19230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19231 # chokes on -Wl,-G. The following line is correct:
19232 shared_flag='-G'
19233 else
19234 if test "$aix_use_runtimelinking" = yes; then
19235 shared_flag='${wl}-G'
19236 else
19237 shared_flag='${wl}-bM:SRE'
19238 fi
19239 fi
19240 fi
19241
19242 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19243 # It seems that -bexpall does not export symbols beginning with
19244 # underscore (_), so it is better to generate a list of symbols to
19245 # export.
19246 always_export_symbols_CXX=yes
19247 if test "$aix_use_runtimelinking" = yes; then
19248 # Warning - without using the other runtime loading flags (-brtl),
19249 # -berok will link without error, but may produce a broken library.
19250 allow_undefined_flag_CXX='-berok'
19251 # Determine the default libpath from the value encoded in an empty
19252 # executable.
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19255
19256 int
19257 main ()
19258 {
19259
19260 ;
19261 return 0;
19262 }
19263 _ACEOF
19264 if ac_fn_cxx_try_link "$LINENO"; then :
19265
19266 lt_aix_libpath_sed='
19267 /Import File Strings/,/^$/ {
19268 /^0/ {
19269 s/^0 *\(.*\)$/\1/
19270 p
19271 }
19272 }'
19273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19274 # Check for a 64-bit object if we didn't find anything.
19275 if test -z "$aix_libpath"; then
19276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19277 fi
19278 fi
19279 rm -f core conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19282
19283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19284
19285 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"
19286 else
19287 if test "$host_cpu" = ia64; then
19288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19289 allow_undefined_flag_CXX="-z nodefs"
19290 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"
19291 else
19292 # Determine the default libpath from the value encoded in an
19293 # empty executable.
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296
19297 int
19298 main ()
19299 {
19300
19301 ;
19302 return 0;
19303 }
19304 _ACEOF
19305 if ac_fn_cxx_try_link "$LINENO"; then :
19306
19307 lt_aix_libpath_sed='
19308 /Import File Strings/,/^$/ {
19309 /^0/ {
19310 s/^0 *\(.*\)$/\1/
19311 p
19312 }
19313 }'
19314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19315 # Check for a 64-bit object if we didn't find anything.
19316 if test -z "$aix_libpath"; then
19317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19318 fi
19319 fi
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19323
19324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19325 # Warning - without using the other run time loading flags,
19326 # -berok will link without error, but may produce a broken library.
19327 no_undefined_flag_CXX=' ${wl}-bernotok'
19328 allow_undefined_flag_CXX=' ${wl}-berok'
19329 if test "$with_gnu_ld" = yes; then
19330 # We only use this code for GNU lds that support --whole-archive.
19331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19332 else
19333 # Exported symbols can be pulled into shared objects from archives
19334 whole_archive_flag_spec_CXX='$convenience'
19335 fi
19336 archive_cmds_need_lc_CXX=yes
19337 # This is similar to how AIX traditionally builds its shared
19338 # libraries.
19339 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'
19340 fi
19341 fi
19342 ;;
19343
19344 beos*)
19345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19346 allow_undefined_flag_CXX=unsupported
19347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19348 # support --undefined. This deserves some investigation. FIXME
19349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350 else
19351 ld_shlibs_CXX=no
19352 fi
19353 ;;
19354
19355 chorus*)
19356 case $cc_basename in
19357 *)
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19360 ;;
19361 esac
19362 ;;
19363
19364 cygwin* | mingw* | pw32* | cegcc*)
19365 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19366 # as there is no search path for DLLs.
19367 hardcode_libdir_flag_spec_CXX='-L$libdir'
19368 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19369 allow_undefined_flag_CXX=unsupported
19370 always_export_symbols_CXX=no
19371 enable_shared_with_static_runtimes_CXX=yes
19372
19373 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19374 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'
19375 # If the export-symbols file already is a .def file (1st line
19376 # is EXPORTS), use it as is; otherwise, prepend...
19377 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19378 cp $export_symbols $output_objdir/$soname.def;
19379 else
19380 echo EXPORTS > $output_objdir/$soname.def;
19381 cat $export_symbols >> $output_objdir/$soname.def;
19382 fi~
19383 $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'
19384 else
19385 ld_shlibs_CXX=no
19386 fi
19387 ;;
19388 darwin* | rhapsody*)
19389
19390
19391 archive_cmds_need_lc_CXX=no
19392 hardcode_direct_CXX=no
19393 hardcode_automatic_CXX=yes
19394 hardcode_shlibpath_var_CXX=unsupported
19395 if test "$lt_cv_ld_force_load" = "yes"; then
19396 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\"`'
19397 else
19398 whole_archive_flag_spec_CXX=''
19399 fi
19400 link_all_deplibs_CXX=yes
19401 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19402 case $cc_basename in
19403 ifort*) _lt_dar_can_shared=yes ;;
19404 *) _lt_dar_can_shared=$GCC ;;
19405 esac
19406 if test "$_lt_dar_can_shared" = "yes"; then
19407 output_verbose_link_cmd=func_echo_all
19408 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}"
19409 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19410 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}"
19411 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}"
19412 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19413 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}"
19414 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}"
19415 fi
19416
19417 else
19418 ld_shlibs_CXX=no
19419 fi
19420
19421 ;;
19422
19423 dgux*)
19424 case $cc_basename in
19425 ec++*)
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19428 ;;
19429 ghcx*)
19430 # Green Hills C++ Compiler
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19433 ;;
19434 *)
19435 # FIXME: insert proper C++ library support
19436 ld_shlibs_CXX=no
19437 ;;
19438 esac
19439 ;;
19440
19441 freebsd2.*)
19442 # C++ shared libraries reported to be fairly broken before
19443 # switch to ELF
19444 ld_shlibs_CXX=no
19445 ;;
19446
19447 freebsd-elf*)
19448 archive_cmds_need_lc_CXX=no
19449 ;;
19450
19451 freebsd* | dragonfly*)
19452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19453 # conventions
19454 ld_shlibs_CXX=yes
19455 ;;
19456
19457 gnu*)
19458 ;;
19459
19460 haiku*)
19461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19462 link_all_deplibs_CXX=yes
19463 ;;
19464
19465 hpux9*)
19466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19467 hardcode_libdir_separator_CXX=:
19468 export_dynamic_flag_spec_CXX='${wl}-E'
19469 hardcode_direct_CXX=yes
19470 hardcode_minus_L_CXX=yes # Not in the search PATH,
19471 # but as the default
19472 # location of the library.
19473
19474 case $cc_basename in
19475 CC*)
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479 aCC*)
19480 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'
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19484 #
19485 # There doesn't appear to be a way to prevent this compiler from
19486 # explicitly linking system object files so we need to strip them
19487 # from the output so that they don't get included in the library
19488 # dependencies.
19489 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"'
19490 ;;
19491 *)
19492 if test "$GXX" = yes; then
19493 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'
19494 else
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 fi
19498 ;;
19499 esac
19500 ;;
19501
19502 hpux10*|hpux11*)
19503 if test $with_gnu_ld = no; then
19504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19505 hardcode_libdir_separator_CXX=:
19506
19507 case $host_cpu in
19508 hppa*64*|ia64*)
19509 ;;
19510 *)
19511 export_dynamic_flag_spec_CXX='${wl}-E'
19512 ;;
19513 esac
19514 fi
19515 case $host_cpu in
19516 hppa*64*|ia64*)
19517 hardcode_direct_CXX=no
19518 hardcode_shlibpath_var_CXX=no
19519 ;;
19520 *)
19521 hardcode_direct_CXX=yes
19522 hardcode_direct_absolute_CXX=yes
19523 hardcode_minus_L_CXX=yes # Not in the search PATH,
19524 # but as the default
19525 # location of the library.
19526 ;;
19527 esac
19528
19529 case $cc_basename in
19530 CC*)
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19533 ;;
19534 aCC*)
19535 case $host_cpu in
19536 hppa*64*)
19537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19538 ;;
19539 ia64*)
19540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19541 ;;
19542 *)
19543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19544 ;;
19545 esac
19546 # Commands to make compiler produce verbose output that lists
19547 # what "hidden" libraries, object files and flags are used when
19548 # linking a shared library.
19549 #
19550 # There doesn't appear to be a way to prevent this compiler from
19551 # explicitly linking system object files so we need to strip them
19552 # from the output so that they don't get included in the library
19553 # dependencies.
19554 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"'
19555 ;;
19556 *)
19557 if test "$GXX" = yes; then
19558 if test $with_gnu_ld = no; then
19559 case $host_cpu in
19560 hppa*64*)
19561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 ;;
19563 ia64*)
19564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19565 ;;
19566 *)
19567 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'
19568 ;;
19569 esac
19570 fi
19571 else
19572 # FIXME: insert proper C++ library support
19573 ld_shlibs_CXX=no
19574 fi
19575 ;;
19576 esac
19577 ;;
19578
19579 interix[3-9]*)
19580 hardcode_direct_CXX=no
19581 hardcode_shlibpath_var_CXX=no
19582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19583 export_dynamic_flag_spec_CXX='${wl}-E'
19584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19585 # Instead, shared libraries are loaded at an image base (0x10000000 by
19586 # default) and relocated if they conflict, which is a slow very memory
19587 # consuming and fragmenting process. To avoid this, we pick a random,
19588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19590 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'
19591 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'
19592 ;;
19593 irix5* | irix6*)
19594 case $cc_basename in
19595 CC*)
19596 # SGI C++
19597 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'
19598
19599 # Archives containing C++ object files must be created using
19600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19601 # necessary to make sure instantiated templates are included
19602 # in the archive.
19603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19604 ;;
19605 *)
19606 if test "$GXX" = yes; then
19607 if test "$with_gnu_ld" = no; then
19608 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'
19609 else
19610 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'
19611 fi
19612 fi
19613 link_all_deplibs_CXX=yes
19614 ;;
19615 esac
19616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19617 hardcode_libdir_separator_CXX=:
19618 inherit_rpath_CXX=yes
19619 ;;
19620
19621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19622 case $cc_basename in
19623 KCC*)
19624 # Kuck and Associates, Inc. (KAI) C++ Compiler
19625
19626 # KCC will only create a shared library if the output file
19627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19628 # to its proper name (with version) after linking.
19629 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'
19630 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'
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 #
19635 # There doesn't appear to be a way to prevent this compiler from
19636 # explicitly linking system object files so we need to strip them
19637 # from the output so that they don't get included in the library
19638 # dependencies.
19639 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"'
19640
19641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19643
19644 # Archives containing C++ object files must be created using
19645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19647 ;;
19648 icpc* | ecpc* )
19649 # Intel C++
19650 with_gnu_ld=yes
19651 # version 8.0 and above of icpc choke on multiply defined symbols
19652 # if we add $predep_objects and $postdep_objects, however 7.1 and
19653 # earlier do not add the objects themselves.
19654 case `$CC -V 2>&1` in
19655 *"Version 7."*)
19656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19657 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'
19658 ;;
19659 *) # Version 8.0 or newer
19660 tmp_idyn=
19661 case $host_cpu in
19662 ia64*) tmp_idyn=' -i_dynamic';;
19663 esac
19664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19665 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'
19666 ;;
19667 esac
19668 archive_cmds_need_lc_CXX=no
19669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19671 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19672 ;;
19673 pgCC* | pgcpp*)
19674 # Portland Group C++ compiler
19675 case `$CC -V` in
19676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19677 prelink_cmds_CXX='tpldir=Template.dir~
19678 rm -rf $tpldir~
19679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19680 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19681 old_archive_cmds_CXX='tpldir=Template.dir~
19682 rm -rf $tpldir~
19683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19685 $RANLIB $oldlib'
19686 archive_cmds_CXX='tpldir=Template.dir~
19687 rm -rf $tpldir~
19688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19690 archive_expsym_cmds_CXX='tpldir=Template.dir~
19691 rm -rf $tpldir~
19692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19693 $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'
19694 ;;
19695 *) # Version 6 and above use weak symbols
19696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19697 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'
19698 ;;
19699 esac
19700
19701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19703 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'
19704 ;;
19705 cxx*)
19706 # Compaq C++
19707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19708 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'
19709
19710 runpath_var=LD_RUN_PATH
19711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19712 hardcode_libdir_separator_CXX=:
19713
19714 # Commands to make compiler produce verbose output that lists
19715 # what "hidden" libraries, object files and flags are used when
19716 # linking a shared library.
19717 #
19718 # There doesn't appear to be a way to prevent this compiler from
19719 # explicitly linking system object files so we need to strip them
19720 # from the output so that they don't get included in the library
19721 # dependencies.
19722 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'
19723 ;;
19724 xl* | mpixl* | bgxl*)
19725 # IBM XL 8.0 on PPC, with GNU ld
19726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19729 if test "x$supports_anon_versioning" = xyes; then
19730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19732 echo "local: *; };" >> $output_objdir/$libname.ver~
19733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19734 fi
19735 ;;
19736 *)
19737 case `$CC -V 2>&1 | sed 5q` in
19738 *Sun\ C*)
19739 # Sun C++ 5.9
19740 no_undefined_flag_CXX=' -zdefs'
19741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19742 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'
19743 hardcode_libdir_flag_spec_CXX='-R$libdir'
19744 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'
19745 compiler_needs_object_CXX=yes
19746
19747 # Not sure whether something based on
19748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19749 # would be better.
19750 output_verbose_link_cmd='func_echo_all'
19751
19752 # Archives containing C++ object files must be created using
19753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19754 # necessary to make sure instantiated templates are included
19755 # in the archive.
19756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19757 ;;
19758 esac
19759 ;;
19760 esac
19761 ;;
19762
19763 lynxos*)
19764 # FIXME: insert proper C++ library support
19765 ld_shlibs_CXX=no
19766 ;;
19767
19768 m88k*)
19769 # FIXME: insert proper C++ library support
19770 ld_shlibs_CXX=no
19771 ;;
19772
19773 mvs*)
19774 case $cc_basename in
19775 cxx*)
19776 # FIXME: insert proper C++ library support
19777 ld_shlibs_CXX=no
19778 ;;
19779 *)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19782 ;;
19783 esac
19784 ;;
19785
19786 netbsd*)
19787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19789 wlarc=
19790 hardcode_libdir_flag_spec_CXX='-R$libdir'
19791 hardcode_direct_CXX=yes
19792 hardcode_shlibpath_var_CXX=no
19793 fi
19794 # Workaround some broken pre-1.5 toolchains
19795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19796 ;;
19797
19798 *nto* | *qnx*)
19799 ld_shlibs_CXX=yes
19800 ;;
19801
19802 openbsd2*)
19803 # C++ shared libraries are fairly broken
19804 ld_shlibs_CXX=no
19805 ;;
19806
19807 openbsd*)
19808 if test -f /usr/libexec/ld.so; then
19809 hardcode_direct_CXX=yes
19810 hardcode_shlibpath_var_CXX=no
19811 hardcode_direct_absolute_CXX=yes
19812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19815 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19816 export_dynamic_flag_spec_CXX='${wl}-E'
19817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19818 fi
19819 output_verbose_link_cmd=func_echo_all
19820 else
19821 ld_shlibs_CXX=no
19822 fi
19823 ;;
19824
19825 osf3* | osf4* | osf5*)
19826 case $cc_basename in
19827 KCC*)
19828 # Kuck and Associates, Inc. (KAI) C++ Compiler
19829
19830 # KCC will only create a shared library if the output file
19831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19832 # to its proper name (with version) after linking.
19833 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'
19834
19835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19836 hardcode_libdir_separator_CXX=:
19837
19838 # Archives containing C++ object files must be created using
19839 # the KAI C++ compiler.
19840 case $host in
19841 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19842 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19843 esac
19844 ;;
19845 RCC*)
19846 # Rational C++ 2.4.1
19847 # FIXME: insert proper C++ library support
19848 ld_shlibs_CXX=no
19849 ;;
19850 cxx*)
19851 case $host in
19852 osf3*)
19853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19854 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'
19855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19856 ;;
19857 *)
19858 allow_undefined_flag_CXX=' -expect_unresolved \*'
19859 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'
19860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19861 echo "-hidden">> $lib.exp~
19862 $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~
19863 $RM $lib.exp'
19864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19865 ;;
19866 esac
19867
19868 hardcode_libdir_separator_CXX=:
19869
19870 # Commands to make compiler produce verbose output that lists
19871 # what "hidden" libraries, object files and flags are used when
19872 # linking a shared library.
19873 #
19874 # There doesn't appear to be a way to prevent this compiler from
19875 # explicitly linking system object files so we need to strip them
19876 # from the output so that they don't get included in the library
19877 # dependencies.
19878 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"'
19879 ;;
19880 *)
19881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19883 case $host in
19884 osf3*)
19885 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'
19886 ;;
19887 *)
19888 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'
19889 ;;
19890 esac
19891
19892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19893 hardcode_libdir_separator_CXX=:
19894
19895 # Commands to make compiler produce verbose output that lists
19896 # what "hidden" libraries, object files and flags are used when
19897 # linking a shared library.
19898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19899
19900 else
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19903 fi
19904 ;;
19905 esac
19906 ;;
19907
19908 psos*)
19909 # FIXME: insert proper C++ library support
19910 ld_shlibs_CXX=no
19911 ;;
19912
19913 sunos4*)
19914 case $cc_basename in
19915 CC*)
19916 # Sun C++ 4.x
19917 # FIXME: insert proper C++ library support
19918 ld_shlibs_CXX=no
19919 ;;
19920 lcc*)
19921 # Lucid
19922 # FIXME: insert proper C++ library support
19923 ld_shlibs_CXX=no
19924 ;;
19925 *)
19926 # FIXME: insert proper C++ library support
19927 ld_shlibs_CXX=no
19928 ;;
19929 esac
19930 ;;
19931
19932 solaris*)
19933 case $cc_basename in
19934 CC*)
19935 # Sun C++ 4.2, 5.x and Centerline C++
19936 archive_cmds_need_lc_CXX=yes
19937 no_undefined_flag_CXX=' -zdefs'
19938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19940 $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'
19941
19942 hardcode_libdir_flag_spec_CXX='-R$libdir'
19943 hardcode_shlibpath_var_CXX=no
19944 case $host_os in
19945 solaris2.[0-5] | solaris2.[0-5].*) ;;
19946 *)
19947 # The compiler driver will combine and reorder linker options,
19948 # but understands `-z linker_flag'.
19949 # Supported since Solaris 2.6 (maybe 2.5.1?)
19950 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19951 ;;
19952 esac
19953 link_all_deplibs_CXX=yes
19954
19955 output_verbose_link_cmd='func_echo_all'
19956
19957 # Archives containing C++ object files must be created using
19958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19959 # necessary to make sure instantiated templates are included
19960 # in the archive.
19961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19962 ;;
19963 gcx*)
19964 # Green Hills C++ Compiler
19965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19966
19967 # The C++ compiler must be used to create the archive.
19968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19969 ;;
19970 *)
19971 # GNU C++ compiler with Solaris linker
19972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19974 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19975 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19977 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19978
19979 # Commands to make compiler produce verbose output that lists
19980 # what "hidden" libraries, object files and flags are used when
19981 # linking a shared library.
19982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19983 else
19984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19985 # platform.
19986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19989
19990 # Commands to make compiler produce verbose output that lists
19991 # what "hidden" libraries, object files and flags are used when
19992 # linking a shared library.
19993 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19994 fi
19995
19996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19997 case $host_os in
19998 solaris2.[0-5] | solaris2.[0-5].*) ;;
19999 *)
20000 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20001 ;;
20002 esac
20003 fi
20004 ;;
20005 esac
20006 ;;
20007
20008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20009 no_undefined_flag_CXX='${wl}-z,text'
20010 archive_cmds_need_lc_CXX=no
20011 hardcode_shlibpath_var_CXX=no
20012 runpath_var='LD_RUN_PATH'
20013
20014 case $cc_basename in
20015 CC*)
20016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20018 ;;
20019 *)
20020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20022 ;;
20023 esac
20024 ;;
20025
20026 sysv5* | sco3.2v5* | sco5v6*)
20027 # Note: We can NOT use -z defs as we might desire, because we do not
20028 # link with -lc, and that would cause any symbols used from libc to
20029 # always be unresolved, which means just about no library would
20030 # ever link correctly. If we're not using GNU ld we use -z text
20031 # though, which does catch some bad symbols but isn't as heavy-handed
20032 # as -z defs.
20033 no_undefined_flag_CXX='${wl}-z,text'
20034 allow_undefined_flag_CXX='${wl}-z,nodefs'
20035 archive_cmds_need_lc_CXX=no
20036 hardcode_shlibpath_var_CXX=no
20037 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20038 hardcode_libdir_separator_CXX=':'
20039 link_all_deplibs_CXX=yes
20040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20041 runpath_var='LD_RUN_PATH'
20042
20043 case $cc_basename in
20044 CC*)
20045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20048 '"$old_archive_cmds_CXX"
20049 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20050 '"$reload_cmds_CXX"
20051 ;;
20052 *)
20053 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20054 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20055 ;;
20056 esac
20057 ;;
20058
20059 tandem*)
20060 case $cc_basename in
20061 NCC*)
20062 # NonStop-UX NCC 3.20
20063 # FIXME: insert proper C++ library support
20064 ld_shlibs_CXX=no
20065 ;;
20066 *)
20067 # FIXME: insert proper C++ library support
20068 ld_shlibs_CXX=no
20069 ;;
20070 esac
20071 ;;
20072
20073 vxworks*)
20074 # FIXME: insert proper C++ library support
20075 ld_shlibs_CXX=no
20076 ;;
20077
20078 *)
20079 # FIXME: insert proper C++ library support
20080 ld_shlibs_CXX=no
20081 ;;
20082 esac
20083
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20085 $as_echo "$ld_shlibs_CXX" >&6; }
20086 test "$ld_shlibs_CXX" = no && can_build_shared=no
20087
20088 GCC_CXX="$GXX"
20089 LD_CXX="$LD"
20090
20091 ## CAVEAT EMPTOR:
20092 ## There is no encapsulation within the following macros, do not change
20093 ## the running order or otherwise move them around unless you know exactly
20094 ## what you are doing...
20095 # Dependencies to place before and after the object being linked:
20096 predep_objects_CXX=
20097 postdep_objects_CXX=
20098 predeps_CXX=
20099 postdeps_CXX=
20100 compiler_lib_search_path_CXX=
20101
20102 cat > conftest.$ac_ext <<_LT_EOF
20103 class Foo
20104 {
20105 public:
20106 Foo (void) { a = 0; }
20107 private:
20108 int a;
20109 };
20110 _LT_EOF
20111
20112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20113 (eval $ac_compile) 2>&5
20114 ac_status=$?
20115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20116 test $ac_status = 0; }; then
20117 # Parse the compiler output and extract the necessary
20118 # objects, libraries and library flags.
20119
20120 # Sentinel used to keep track of whether or not we are before
20121 # the conftest object file.
20122 pre_test_object_deps_done=no
20123
20124 for p in `eval "$output_verbose_link_cmd"`; do
20125 case $p in
20126
20127 -L* | -R* | -l*)
20128 # Some compilers place space between "-{L,R}" and the path.
20129 # Remove the space.
20130 if test $p = "-L" ||
20131 test $p = "-R"; then
20132 prev=$p
20133 continue
20134 else
20135 prev=
20136 fi
20137
20138 if test "$pre_test_object_deps_done" = no; then
20139 case $p in
20140 -L* | -R*)
20141 # Internal compiler library paths should come after those
20142 # provided the user. The postdeps already come after the
20143 # user supplied libs so there is no need to process them.
20144 if test -z "$compiler_lib_search_path_CXX"; then
20145 compiler_lib_search_path_CXX="${prev}${p}"
20146 else
20147 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20148 fi
20149 ;;
20150 # The "-l" case would never come before the object being
20151 # linked, so don't bother handling this case.
20152 esac
20153 else
20154 if test -z "$postdeps_CXX"; then
20155 postdeps_CXX="${prev}${p}"
20156 else
20157 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20158 fi
20159 fi
20160 ;;
20161
20162 *.$objext)
20163 # This assumes that the test object file only shows up
20164 # once in the compiler output.
20165 if test "$p" = "conftest.$objext"; then
20166 pre_test_object_deps_done=yes
20167 continue
20168 fi
20169
20170 if test "$pre_test_object_deps_done" = no; then
20171 if test -z "$predep_objects_CXX"; then
20172 predep_objects_CXX="$p"
20173 else
20174 predep_objects_CXX="$predep_objects_CXX $p"
20175 fi
20176 else
20177 if test -z "$postdep_objects_CXX"; then
20178 postdep_objects_CXX="$p"
20179 else
20180 postdep_objects_CXX="$postdep_objects_CXX $p"
20181 fi
20182 fi
20183 ;;
20184
20185 *) ;; # Ignore the rest.
20186
20187 esac
20188 done
20189
20190 # Clean up.
20191 rm -f a.out a.exe
20192 else
20193 echo "libtool.m4: error: problem compiling CXX test program"
20194 fi
20195
20196 $RM -f confest.$objext
20197
20198 # PORTME: override above test on systems where it is broken
20199 case $host_os in
20200 interix[3-9]*)
20201 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20202 # hack all around it, let's just trust "g++" to DTRT.
20203 predep_objects_CXX=
20204 postdep_objects_CXX=
20205 postdeps_CXX=
20206 ;;
20207
20208 linux*)
20209 case `$CC -V 2>&1 | sed 5q` in
20210 *Sun\ C*)
20211 # Sun C++ 5.9
20212
20213 # The more standards-conforming stlport4 library is
20214 # incompatible with the Cstd library. Avoid specifying
20215 # it if it's in CXXFLAGS. Ignore libCrun as
20216 # -library=stlport4 depends on it.
20217 case " $CXX $CXXFLAGS " in
20218 *" -library=stlport4 "*)
20219 solaris_use_stlport4=yes
20220 ;;
20221 esac
20222
20223 if test "$solaris_use_stlport4" != yes; then
20224 postdeps_CXX='-library=Cstd -library=Crun'
20225 fi
20226 ;;
20227 esac
20228 ;;
20229
20230 solaris*)
20231 case $cc_basename in
20232 CC*)
20233 # The more standards-conforming stlport4 library is
20234 # incompatible with the Cstd library. Avoid specifying
20235 # it if it's in CXXFLAGS. Ignore libCrun as
20236 # -library=stlport4 depends on it.
20237 case " $CXX $CXXFLAGS " in
20238 *" -library=stlport4 "*)
20239 solaris_use_stlport4=yes
20240 ;;
20241 esac
20242
20243 # Adding this requires a known-good setup of shared libraries for
20244 # Sun compiler versions before 5.6, else PIC objects from an old
20245 # archive will be linked into the output, leading to subtle bugs.
20246 if test "$solaris_use_stlport4" != yes; then
20247 postdeps_CXX='-library=Cstd -library=Crun'
20248 fi
20249 ;;
20250 esac
20251 ;;
20252 esac
20253
20254
20255 case " $postdeps_CXX " in
20256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20257 esac
20258 compiler_lib_search_dirs_CXX=
20259 if test -n "${compiler_lib_search_path_CXX}"; then
20260 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20261 fi
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293 lt_prog_compiler_wl_CXX=
20294 lt_prog_compiler_pic_CXX=
20295 lt_prog_compiler_static_CXX=
20296
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20298 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20299
20300 # C++ specific cases for pic, static, wl, etc.
20301 if test "$GXX" = yes; then
20302 lt_prog_compiler_wl_CXX='-Wl,'
20303 lt_prog_compiler_static_CXX='-static'
20304
20305 case $host_os in
20306 aix*)
20307 # All AIX code is PIC.
20308 if test "$host_cpu" = ia64; then
20309 # AIX 5 now supports IA64 processor
20310 lt_prog_compiler_static_CXX='-Bstatic'
20311 fi
20312 lt_prog_compiler_pic_CXX='-fPIC'
20313 ;;
20314
20315 amigaos*)
20316 case $host_cpu in
20317 powerpc)
20318 # see comment about AmigaOS4 .so support
20319 lt_prog_compiler_pic_CXX='-fPIC'
20320 ;;
20321 m68k)
20322 # FIXME: we need at least 68020 code to build shared libraries, but
20323 # adding the `-m68020' flag to GCC prevents building anything better,
20324 # like `-m68040'.
20325 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20326 ;;
20327 esac
20328 ;;
20329
20330 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20331 # PIC is the default for these OSes.
20332 ;;
20333 mingw* | cygwin* | os2* | pw32* | cegcc*)
20334 # This hack is so that the source file can tell whether it is being
20335 # built for inclusion in a dll (and should export symbols for example).
20336 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20337 # (--disable-auto-import) libraries
20338 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20339 ;;
20340 darwin* | rhapsody*)
20341 # PIC is the default on this platform
20342 # Common symbols not allowed in MH_DYLIB files
20343 lt_prog_compiler_pic_CXX='-fno-common'
20344 ;;
20345 *djgpp*)
20346 # DJGPP does not support shared libraries at all
20347 lt_prog_compiler_pic_CXX=
20348 ;;
20349 haiku*)
20350 # PIC is the default for Haiku.
20351 # The "-static" flag exists, but is broken.
20352 lt_prog_compiler_static_CXX=
20353 ;;
20354 interix[3-9]*)
20355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20356 # Instead, we relocate shared libraries at runtime.
20357 ;;
20358 sysv4*MP*)
20359 if test -d /usr/nec; then
20360 lt_prog_compiler_pic_CXX=-Kconform_pic
20361 fi
20362 ;;
20363 hpux*)
20364 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20365 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20366 # sets the default TLS model and affects inlining.
20367 case $host_cpu in
20368 hppa*64*)
20369 ;;
20370 *)
20371 lt_prog_compiler_pic_CXX='-fPIC'
20372 ;;
20373 esac
20374 ;;
20375 *qnx* | *nto*)
20376 # QNX uses GNU C++, but need to define -shared option too, otherwise
20377 # it will coredump.
20378 lt_prog_compiler_pic_CXX='-fPIC -shared'
20379 ;;
20380 *)
20381 lt_prog_compiler_pic_CXX='-fPIC'
20382 ;;
20383 esac
20384 else
20385 case $host_os in
20386 aix[4-9]*)
20387 # All AIX code is PIC.
20388 if test "$host_cpu" = ia64; then
20389 # AIX 5 now supports IA64 processor
20390 lt_prog_compiler_static_CXX='-Bstatic'
20391 else
20392 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20393 fi
20394 ;;
20395 chorus*)
20396 case $cc_basename in
20397 cxch68*)
20398 # Green Hills C++ Compiler
20399 # _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"
20400 ;;
20401 esac
20402 ;;
20403 dgux*)
20404 case $cc_basename in
20405 ec++*)
20406 lt_prog_compiler_pic_CXX='-KPIC'
20407 ;;
20408 ghcx*)
20409 # Green Hills C++ Compiler
20410 lt_prog_compiler_pic_CXX='-pic'
20411 ;;
20412 *)
20413 ;;
20414 esac
20415 ;;
20416 freebsd* | dragonfly*)
20417 # FreeBSD uses GNU C++
20418 ;;
20419 hpux9* | hpux10* | hpux11*)
20420 case $cc_basename in
20421 CC*)
20422 lt_prog_compiler_wl_CXX='-Wl,'
20423 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20424 if test "$host_cpu" != ia64; then
20425 lt_prog_compiler_pic_CXX='+Z'
20426 fi
20427 ;;
20428 aCC*)
20429 lt_prog_compiler_wl_CXX='-Wl,'
20430 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20431 case $host_cpu in
20432 hppa*64*|ia64*)
20433 # +Z the default
20434 ;;
20435 *)
20436 lt_prog_compiler_pic_CXX='+Z'
20437 ;;
20438 esac
20439 ;;
20440 *)
20441 ;;
20442 esac
20443 ;;
20444 interix*)
20445 # This is c89, which is MS Visual C++ (no shared libs)
20446 # Anyone wants to do a port?
20447 ;;
20448 irix5* | irix6* | nonstopux*)
20449 case $cc_basename in
20450 CC*)
20451 lt_prog_compiler_wl_CXX='-Wl,'
20452 lt_prog_compiler_static_CXX='-non_shared'
20453 # CC pic flag -KPIC is the default.
20454 ;;
20455 *)
20456 ;;
20457 esac
20458 ;;
20459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20460 case $cc_basename in
20461 KCC*)
20462 # KAI C++ Compiler
20463 lt_prog_compiler_wl_CXX='--backend -Wl,'
20464 lt_prog_compiler_pic_CXX='-fPIC'
20465 ;;
20466 ecpc* )
20467 # old Intel C++ for x86_64 which still supported -KPIC.
20468 lt_prog_compiler_wl_CXX='-Wl,'
20469 lt_prog_compiler_pic_CXX='-KPIC'
20470 lt_prog_compiler_static_CXX='-static'
20471 ;;
20472 icpc* )
20473 # Intel C++, used to be incompatible with GCC.
20474 # ICC 10 doesn't accept -KPIC any more.
20475 lt_prog_compiler_wl_CXX='-Wl,'
20476 lt_prog_compiler_pic_CXX='-fPIC'
20477 lt_prog_compiler_static_CXX='-static'
20478 ;;
20479 pgCC* | pgcpp*)
20480 # Portland Group C++ compiler
20481 lt_prog_compiler_wl_CXX='-Wl,'
20482 lt_prog_compiler_pic_CXX='-fpic'
20483 lt_prog_compiler_static_CXX='-Bstatic'
20484 ;;
20485 cxx*)
20486 # Compaq C++
20487 # Make sure the PIC flag is empty. It appears that all Alpha
20488 # Linux and Compaq Tru64 Unix objects are PIC.
20489 lt_prog_compiler_pic_CXX=
20490 lt_prog_compiler_static_CXX='-non_shared'
20491 ;;
20492 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20493 # IBM XL 8.0, 9.0 on PPC and BlueGene
20494 lt_prog_compiler_wl_CXX='-Wl,'
20495 lt_prog_compiler_pic_CXX='-qpic'
20496 lt_prog_compiler_static_CXX='-qstaticlink'
20497 ;;
20498 *)
20499 case `$CC -V 2>&1 | sed 5q` in
20500 *Sun\ C*)
20501 # Sun C++ 5.9
20502 lt_prog_compiler_pic_CXX='-KPIC'
20503 lt_prog_compiler_static_CXX='-Bstatic'
20504 lt_prog_compiler_wl_CXX='-Qoption ld '
20505 ;;
20506 esac
20507 ;;
20508 esac
20509 ;;
20510 lynxos*)
20511 ;;
20512 m88k*)
20513 ;;
20514 mvs*)
20515 case $cc_basename in
20516 cxx*)
20517 lt_prog_compiler_pic_CXX='-W c,exportall'
20518 ;;
20519 *)
20520 ;;
20521 esac
20522 ;;
20523 netbsd*)
20524 ;;
20525 *qnx* | *nto*)
20526 # QNX uses GNU C++, but need to define -shared option too, otherwise
20527 # it will coredump.
20528 lt_prog_compiler_pic_CXX='-fPIC -shared'
20529 ;;
20530 osf3* | osf4* | osf5*)
20531 case $cc_basename in
20532 KCC*)
20533 lt_prog_compiler_wl_CXX='--backend -Wl,'
20534 ;;
20535 RCC*)
20536 # Rational C++ 2.4.1
20537 lt_prog_compiler_pic_CXX='-pic'
20538 ;;
20539 cxx*)
20540 # Digital/Compaq C++
20541 lt_prog_compiler_wl_CXX='-Wl,'
20542 # Make sure the PIC flag is empty. It appears that all Alpha
20543 # Linux and Compaq Tru64 Unix objects are PIC.
20544 lt_prog_compiler_pic_CXX=
20545 lt_prog_compiler_static_CXX='-non_shared'
20546 ;;
20547 *)
20548 ;;
20549 esac
20550 ;;
20551 psos*)
20552 ;;
20553 solaris*)
20554 case $cc_basename in
20555 CC*)
20556 # Sun C++ 4.2, 5.x and Centerline C++
20557 lt_prog_compiler_pic_CXX='-KPIC'
20558 lt_prog_compiler_static_CXX='-Bstatic'
20559 lt_prog_compiler_wl_CXX='-Qoption ld '
20560 ;;
20561 gcx*)
20562 # Green Hills C++ Compiler
20563 lt_prog_compiler_pic_CXX='-PIC'
20564 ;;
20565 *)
20566 ;;
20567 esac
20568 ;;
20569 sunos4*)
20570 case $cc_basename in
20571 CC*)
20572 # Sun C++ 4.x
20573 lt_prog_compiler_pic_CXX='-pic'
20574 lt_prog_compiler_static_CXX='-Bstatic'
20575 ;;
20576 lcc*)
20577 # Lucid
20578 lt_prog_compiler_pic_CXX='-pic'
20579 ;;
20580 *)
20581 ;;
20582 esac
20583 ;;
20584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20585 case $cc_basename in
20586 CC*)
20587 lt_prog_compiler_wl_CXX='-Wl,'
20588 lt_prog_compiler_pic_CXX='-KPIC'
20589 lt_prog_compiler_static_CXX='-Bstatic'
20590 ;;
20591 esac
20592 ;;
20593 tandem*)
20594 case $cc_basename in
20595 NCC*)
20596 # NonStop-UX NCC 3.20
20597 lt_prog_compiler_pic_CXX='-KPIC'
20598 ;;
20599 *)
20600 ;;
20601 esac
20602 ;;
20603 vxworks*)
20604 ;;
20605 *)
20606 lt_prog_compiler_can_build_shared_CXX=no
20607 ;;
20608 esac
20609 fi
20610
20611 case $host_os in
20612 # For platforms which do not support PIC, -DPIC is meaningless:
20613 *djgpp*)
20614 lt_prog_compiler_pic_CXX=
20615 ;;
20616 *)
20617 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20618 ;;
20619 esac
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20621 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20622
20623
20624
20625 #
20626 # Check to make sure the PIC flag actually works.
20627 #
20628 if test -n "$lt_prog_compiler_pic_CXX"; then
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20630 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20631 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20632 $as_echo_n "(cached) " >&6
20633 else
20634 lt_cv_prog_compiler_pic_works_CXX=no
20635 ac_outfile=conftest.$ac_objext
20636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20637 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20638 # Insert the option either (1) after the last *FLAGS variable, or
20639 # (2) before a word containing "conftest.", or (3) at the end.
20640 # Note that $ac_compile itself does not contain backslashes and begins
20641 # with a dollar sign (not a hyphen), so the echo should work correctly.
20642 # The option is referenced via a variable to avoid confusing sed.
20643 lt_compile=`echo "$ac_compile" | $SED \
20644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20646 -e 's:$: $lt_compiler_flag:'`
20647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20648 (eval "$lt_compile" 2>conftest.err)
20649 ac_status=$?
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 if (exit $ac_status) && test -s "$ac_outfile"; then
20653 # The compiler can only warn and ignore the option if not recognized
20654 # So say no if there are warnings other than the usual output.
20655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20658 lt_cv_prog_compiler_pic_works_CXX=yes
20659 fi
20660 fi
20661 $RM conftest*
20662
20663 fi
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20665 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20666
20667 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20668 case $lt_prog_compiler_pic_CXX in
20669 "" | " "*) ;;
20670 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20671 esac
20672 else
20673 lt_prog_compiler_pic_CXX=
20674 lt_prog_compiler_can_build_shared_CXX=no
20675 fi
20676
20677 fi
20678
20679
20680
20681 #
20682 # Check to make sure the static flag actually works.
20683 #
20684 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20686 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20687 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20688 $as_echo_n "(cached) " >&6
20689 else
20690 lt_cv_prog_compiler_static_works_CXX=no
20691 save_LDFLAGS="$LDFLAGS"
20692 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20693 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20694 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20695 # The linker can only warn and ignore the option if not recognized
20696 # So say no if there are warnings
20697 if test -s conftest.err; then
20698 # Append any errors to the config.log.
20699 cat conftest.err 1>&5
20700 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20702 if diff conftest.exp conftest.er2 >/dev/null; then
20703 lt_cv_prog_compiler_static_works_CXX=yes
20704 fi
20705 else
20706 lt_cv_prog_compiler_static_works_CXX=yes
20707 fi
20708 fi
20709 $RM -r conftest*
20710 LDFLAGS="$save_LDFLAGS"
20711
20712 fi
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20714 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20715
20716 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20717 :
20718 else
20719 lt_prog_compiler_static_CXX=
20720 fi
20721
20722
20723
20724
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20728 $as_echo_n "(cached) " >&6
20729 else
20730 lt_cv_prog_compiler_c_o_CXX=no
20731 $RM -r conftest 2>/dev/null
20732 mkdir conftest
20733 cd conftest
20734 mkdir out
20735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20736
20737 lt_compiler_flag="-o out/conftest2.$ac_objext"
20738 # Insert the option either (1) after the last *FLAGS variable, or
20739 # (2) before a word containing "conftest.", or (3) at the end.
20740 # Note that $ac_compile itself does not contain backslashes and begins
20741 # with a dollar sign (not a hyphen), so the echo should work correctly.
20742 lt_compile=`echo "$ac_compile" | $SED \
20743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20745 -e 's:$: $lt_compiler_flag:'`
20746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20747 (eval "$lt_compile" 2>out/conftest.err)
20748 ac_status=$?
20749 cat out/conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20752 then
20753 # The compiler can only warn and ignore the option if not recognized
20754 # So say no if there are warnings
20755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20758 lt_cv_prog_compiler_c_o_CXX=yes
20759 fi
20760 fi
20761 chmod u+w . 2>&5
20762 $RM conftest*
20763 # SGI C++ compiler will create directory out/ii_files/ for
20764 # template instantiation
20765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20766 $RM out/* && rmdir out
20767 cd ..
20768 $RM -r conftest
20769 $RM conftest*
20770
20771 fi
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20773 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20774
20775
20776
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20779 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20780 $as_echo_n "(cached) " >&6
20781 else
20782 lt_cv_prog_compiler_c_o_CXX=no
20783 $RM -r conftest 2>/dev/null
20784 mkdir conftest
20785 cd conftest
20786 mkdir out
20787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20788
20789 lt_compiler_flag="-o out/conftest2.$ac_objext"
20790 # Insert the option either (1) after the last *FLAGS variable, or
20791 # (2) before a word containing "conftest.", or (3) at the end.
20792 # Note that $ac_compile itself does not contain backslashes and begins
20793 # with a dollar sign (not a hyphen), so the echo should work correctly.
20794 lt_compile=`echo "$ac_compile" | $SED \
20795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20797 -e 's:$: $lt_compiler_flag:'`
20798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20799 (eval "$lt_compile" 2>out/conftest.err)
20800 ac_status=$?
20801 cat out/conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20804 then
20805 # The compiler can only warn and ignore the option if not recognized
20806 # So say no if there are warnings
20807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20810 lt_cv_prog_compiler_c_o_CXX=yes
20811 fi
20812 fi
20813 chmod u+w . 2>&5
20814 $RM conftest*
20815 # SGI C++ compiler will create directory out/ii_files/ for
20816 # template instantiation
20817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20818 $RM out/* && rmdir out
20819 cd ..
20820 $RM -r conftest
20821 $RM conftest*
20822
20823 fi
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20825 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20826
20827
20828
20829
20830 hard_links="nottested"
20831 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20832 # do not overwrite the value of need_locks provided by the user
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20834 $as_echo_n "checking if we can lock with hard links... " >&6; }
20835 hard_links=yes
20836 $RM conftest*
20837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20838 touch conftest.a
20839 ln conftest.a conftest.b 2>&5 || hard_links=no
20840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20842 $as_echo "$hard_links" >&6; }
20843 if test "$hard_links" = no; then
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20846 need_locks=warn
20847 fi
20848 else
20849 need_locks=no
20850 fi
20851
20852
20853
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20856
20857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20858 case $host_os in
20859 aix[4-9]*)
20860 # If we're using GNU nm, then we don't want the "-C" option.
20861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20862 # Also, AIX nm treats weak defined symbols like other global defined
20863 # symbols, whereas GNU nm marks them as "W".
20864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20865 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'
20866 else
20867 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'
20868 fi
20869 ;;
20870 pw32*)
20871 export_symbols_cmds_CXX="$ltdll_cmds"
20872 ;;
20873 cygwin* | mingw* | cegcc*)
20874 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'
20875 ;;
20876 *)
20877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20878 ;;
20879 esac
20880 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20881
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20883 $as_echo "$ld_shlibs_CXX" >&6; }
20884 test "$ld_shlibs_CXX" = no && can_build_shared=no
20885
20886 with_gnu_ld_CXX=$with_gnu_ld
20887
20888
20889
20890
20891
20892
20893 #
20894 # Do we need to explicitly link libc?
20895 #
20896 case "x$archive_cmds_need_lc_CXX" in
20897 x|xyes)
20898 # Assume -lc should be added
20899 archive_cmds_need_lc_CXX=yes
20900
20901 if test "$enable_shared" = yes && test "$GCC" = yes; then
20902 case $archive_cmds_CXX in
20903 *'~'*)
20904 # FIXME: we may have to deal with multi-command sequences.
20905 ;;
20906 '$CC '*)
20907 # Test whether the compiler implicitly links with -lc since on some
20908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20909 # to ld, don't add -lc before -lgcc.
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20912 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20913 $as_echo_n "(cached) " >&6
20914 else
20915 $RM conftest*
20916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20917
20918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20919 (eval $ac_compile) 2>&5
20920 ac_status=$?
20921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20922 test $ac_status = 0; } 2>conftest.err; then
20923 soname=conftest
20924 lib=conftest
20925 libobjs=conftest.$ac_objext
20926 deplibs=
20927 wl=$lt_prog_compiler_wl_CXX
20928 pic_flag=$lt_prog_compiler_pic_CXX
20929 compiler_flags=-v
20930 linker_flags=-v
20931 verstring=
20932 output_objdir=.
20933 libname=conftest
20934 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20935 allow_undefined_flag_CXX=
20936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20937 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20938 ac_status=$?
20939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20940 test $ac_status = 0; }
20941 then
20942 lt_cv_archive_cmds_need_lc_CXX=no
20943 else
20944 lt_cv_archive_cmds_need_lc_CXX=yes
20945 fi
20946 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20947 else
20948 cat conftest.err 1>&5
20949 fi
20950 $RM conftest*
20951
20952 fi
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20954 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20955 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20956 ;;
20957 esac
20958 fi
20959 ;;
20960 esac
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21027
21028 library_names_spec=
21029 libname_spec='lib$name'
21030 soname_spec=
21031 shrext_cmds=".so"
21032 postinstall_cmds=
21033 postuninstall_cmds=
21034 finish_cmds=
21035 finish_eval=
21036 shlibpath_var=
21037 shlibpath_overrides_runpath=unknown
21038 version_type=none
21039 dynamic_linker="$host_os ld.so"
21040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21041 need_lib_prefix=unknown
21042 hardcode_into_libs=no
21043
21044 # when you set need_version to no, make sure it does not cause -set_version
21045 # flags to be left without arguments
21046 need_version=unknown
21047
21048 case $host_os in
21049 aix3*)
21050 version_type=linux
21051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21052 shlibpath_var=LIBPATH
21053
21054 # AIX 3 has no versioning support, so we append a major version to the name.
21055 soname_spec='${libname}${release}${shared_ext}$major'
21056 ;;
21057
21058 aix[4-9]*)
21059 version_type=linux
21060 need_lib_prefix=no
21061 need_version=no
21062 hardcode_into_libs=yes
21063 if test "$host_cpu" = ia64; then
21064 # AIX 5 supports IA64
21065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21066 shlibpath_var=LD_LIBRARY_PATH
21067 else
21068 # With GCC up to 2.95.x, collect2 would create an import file
21069 # for dependence libraries. The import file would start with
21070 # the line `#! .'. This would cause the generated library to
21071 # depend on `.', always an invalid library. This was fixed in
21072 # development snapshots of GCC prior to 3.0.
21073 case $host_os in
21074 aix4 | aix4.[01] | aix4.[01].*)
21075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21076 echo ' yes '
21077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21078 :
21079 else
21080 can_build_shared=no
21081 fi
21082 ;;
21083 esac
21084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21085 # soname into executable. Probably we can add versioning support to
21086 # collect2, so additional links can be useful in future.
21087 if test "$aix_use_runtimelinking" = yes; then
21088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21089 # instead of lib<name>.a to let people know that these are not
21090 # typical AIX shared libraries.
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21092 else
21093 # We preserve .a as extension for shared libraries through AIX4.2
21094 # and later when we are not doing run time linking.
21095 library_names_spec='${libname}${release}.a $libname.a'
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 fi
21098 shlibpath_var=LIBPATH
21099 fi
21100 ;;
21101
21102 amigaos*)
21103 case $host_cpu in
21104 powerpc)
21105 # Since July 2007 AmigaOS4 officially supports .so libraries.
21106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 ;;
21109 m68k)
21110 library_names_spec='$libname.ixlibrary $libname.a'
21111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21112 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'
21113 ;;
21114 esac
21115 ;;
21116
21117 beos*)
21118 library_names_spec='${libname}${shared_ext}'
21119 dynamic_linker="$host_os ld.so"
21120 shlibpath_var=LIBRARY_PATH
21121 ;;
21122
21123 bsdi[45]*)
21124 version_type=linux
21125 need_version=no
21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21129 shlibpath_var=LD_LIBRARY_PATH
21130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21132 # the default ld.so.conf also contains /usr/contrib/lib and
21133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21134 # libtool to hard-code these into programs
21135 ;;
21136
21137 cygwin* | mingw* | pw32* | cegcc*)
21138 version_type=windows
21139 shrext_cmds=".dll"
21140 need_version=no
21141 need_lib_prefix=no
21142
21143 case $GCC,$host_os in
21144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21145 library_names_spec='$libname.dll.a'
21146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21147 postinstall_cmds='base_file=`basename \${file}`~
21148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21149 dldir=$destdir/`dirname \$dlpath`~
21150 test -d \$dldir || mkdir -p \$dldir~
21151 $install_prog $dir/$dlname \$dldir/$dlname~
21152 chmod a+x \$dldir/$dlname~
21153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21155 fi'
21156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21157 dlpath=$dir/\$dldll~
21158 $RM \$dlpath'
21159 shlibpath_overrides_runpath=yes
21160
21161 case $host_os in
21162 cygwin*)
21163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21165
21166 ;;
21167 mingw* | cegcc*)
21168 # MinGW DLLs use traditional 'lib' prefix
21169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21170 ;;
21171 pw32*)
21172 # pw32 DLLs use 'pw' prefix rather than 'lib'
21173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21174 ;;
21175 esac
21176 ;;
21177
21178 *)
21179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21180 ;;
21181 esac
21182 dynamic_linker='Win32 ld.exe'
21183 # FIXME: first we should search . and the directory the executable is in
21184 shlibpath_var=PATH
21185 ;;
21186
21187 darwin* | rhapsody*)
21188 dynamic_linker="$host_os dyld"
21189 version_type=darwin
21190 need_lib_prefix=no
21191 need_version=no
21192 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21193 soname_spec='${libname}${release}${major}$shared_ext'
21194 shlibpath_overrides_runpath=yes
21195 shlibpath_var=DYLD_LIBRARY_PATH
21196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21197
21198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21199 ;;
21200
21201 dgux*)
21202 version_type=linux
21203 need_lib_prefix=no
21204 need_version=no
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21206 soname_spec='${libname}${release}${shared_ext}$major'
21207 shlibpath_var=LD_LIBRARY_PATH
21208 ;;
21209
21210 freebsd* | dragonfly*)
21211 # DragonFly does not have aout. When/if they implement a new
21212 # versioning mechanism, adjust this.
21213 if test -x /usr/bin/objformat; then
21214 objformat=`/usr/bin/objformat`
21215 else
21216 case $host_os in
21217 freebsd[23].*) objformat=aout ;;
21218 *) objformat=elf ;;
21219 esac
21220 fi
21221 version_type=freebsd-$objformat
21222 case $version_type in
21223 freebsd-elf*)
21224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21225 need_version=no
21226 need_lib_prefix=no
21227 ;;
21228 freebsd-*)
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21230 need_version=yes
21231 ;;
21232 esac
21233 shlibpath_var=LD_LIBRARY_PATH
21234 case $host_os in
21235 freebsd2.*)
21236 shlibpath_overrides_runpath=yes
21237 ;;
21238 freebsd3.[01]* | freebsdelf3.[01]*)
21239 shlibpath_overrides_runpath=yes
21240 hardcode_into_libs=yes
21241 ;;
21242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21244 shlibpath_overrides_runpath=no
21245 hardcode_into_libs=yes
21246 ;;
21247 *) # from 4.6 on, and DragonFly
21248 shlibpath_overrides_runpath=yes
21249 hardcode_into_libs=yes
21250 ;;
21251 esac
21252 ;;
21253
21254 gnu*)
21255 version_type=linux
21256 need_lib_prefix=no
21257 need_version=no
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21259 soname_spec='${libname}${release}${shared_ext}$major'
21260 shlibpath_var=LD_LIBRARY_PATH
21261 hardcode_into_libs=yes
21262 ;;
21263
21264 haiku*)
21265 version_type=linux
21266 need_lib_prefix=no
21267 need_version=no
21268 dynamic_linker="$host_os runtime_loader"
21269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21270 soname_spec='${libname}${release}${shared_ext}$major'
21271 shlibpath_var=LIBRARY_PATH
21272 shlibpath_overrides_runpath=yes
21273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21274 hardcode_into_libs=yes
21275 ;;
21276
21277 hpux9* | hpux10* | hpux11*)
21278 # Give a soname corresponding to the major version so that dld.sl refuses to
21279 # link against other versions.
21280 version_type=sunos
21281 need_lib_prefix=no
21282 need_version=no
21283 case $host_cpu in
21284 ia64*)
21285 shrext_cmds='.so'
21286 hardcode_into_libs=yes
21287 dynamic_linker="$host_os dld.so"
21288 shlibpath_var=LD_LIBRARY_PATH
21289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21291 soname_spec='${libname}${release}${shared_ext}$major'
21292 if test "X$HPUX_IA64_MODE" = X32; then
21293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21294 else
21295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21296 fi
21297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21298 ;;
21299 hppa*64*)
21300 shrext_cmds='.sl'
21301 hardcode_into_libs=yes
21302 dynamic_linker="$host_os dld.sl"
21303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21309 ;;
21310 *)
21311 shrext_cmds='.sl'
21312 dynamic_linker="$host_os dld.sl"
21313 shlibpath_var=SHLIB_PATH
21314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21316 soname_spec='${libname}${release}${shared_ext}$major'
21317 ;;
21318 esac
21319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21320 postinstall_cmds='chmod 555 $lib'
21321 # or fails outright, so override atomically:
21322 install_override_mode=555
21323 ;;
21324
21325 interix[3-9]*)
21326 version_type=linux
21327 need_lib_prefix=no
21328 need_version=no
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21330 soname_spec='${libname}${release}${shared_ext}$major'
21331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21332 shlibpath_var=LD_LIBRARY_PATH
21333 shlibpath_overrides_runpath=no
21334 hardcode_into_libs=yes
21335 ;;
21336
21337 irix5* | irix6* | nonstopux*)
21338 case $host_os in
21339 nonstopux*) version_type=nonstopux ;;
21340 *)
21341 if test "$lt_cv_prog_gnu_ld" = yes; then
21342 version_type=linux
21343 else
21344 version_type=irix
21345 fi ;;
21346 esac
21347 need_lib_prefix=no
21348 need_version=no
21349 soname_spec='${libname}${release}${shared_ext}$major'
21350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21351 case $host_os in
21352 irix5* | nonstopux*)
21353 libsuff= shlibsuff=
21354 ;;
21355 *)
21356 case $LD in # libtool.m4 will add one of these switches to LD
21357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21358 libsuff= shlibsuff= libmagic=32-bit;;
21359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21360 libsuff=32 shlibsuff=N32 libmagic=N32;;
21361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21363 *) libsuff= shlibsuff= libmagic=never-match;;
21364 esac
21365 ;;
21366 esac
21367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21368 shlibpath_overrides_runpath=no
21369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21371 hardcode_into_libs=yes
21372 ;;
21373
21374 # No shared lib support for Linux oldld, aout, or coff.
21375 linux*oldld* | linux*aout* | linux*coff*)
21376 dynamic_linker=no
21377 ;;
21378
21379 # This must be Linux ELF.
21380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21381 version_type=linux
21382 need_lib_prefix=no
21383 need_version=no
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21387 shlibpath_var=LD_LIBRARY_PATH
21388 shlibpath_overrides_runpath=no
21389
21390 # Some binutils ld are patched to set DT_RUNPATH
21391 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21392 $as_echo_n "(cached) " >&6
21393 else
21394 lt_cv_shlibpath_overrides_runpath=no
21395 save_LDFLAGS=$LDFLAGS
21396 save_libdir=$libdir
21397 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21398 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400 /* end confdefs.h. */
21401
21402 int
21403 main ()
21404 {
21405
21406 ;
21407 return 0;
21408 }
21409 _ACEOF
21410 if ac_fn_cxx_try_link "$LINENO"; then :
21411 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21412 lt_cv_shlibpath_overrides_runpath=yes
21413 fi
21414 fi
21415 rm -f core conftest.err conftest.$ac_objext \
21416 conftest$ac_exeext conftest.$ac_ext
21417 LDFLAGS=$save_LDFLAGS
21418 libdir=$save_libdir
21419
21420 fi
21421
21422 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21423
21424 # This implies no fast_install, which is unacceptable.
21425 # Some rework will be needed to allow for fast_install
21426 # before this can be enabled.
21427 hardcode_into_libs=yes
21428
21429 # Append ld.so.conf contents to the search path
21430 if test -f /etc/ld.so.conf; then
21431 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' ' '`
21432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21433 fi
21434
21435 # We used to test for /lib/ld.so.1 and disable shared libraries on
21436 # powerpc, because MkLinux only supported shared libraries with the
21437 # GNU dynamic linker. Since this was broken with cross compilers,
21438 # most powerpc-linux boxes support dynamic linking these days and
21439 # people can always --disable-shared, the test was removed, and we
21440 # assume the GNU/Linux dynamic linker is in use.
21441 dynamic_linker='GNU/Linux ld.so'
21442 ;;
21443
21444 netbsd*)
21445 version_type=sunos
21446 need_lib_prefix=no
21447 need_version=no
21448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21451 dynamic_linker='NetBSD (a.out) ld.so'
21452 else
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21454 soname_spec='${libname}${release}${shared_ext}$major'
21455 dynamic_linker='NetBSD ld.elf_so'
21456 fi
21457 shlibpath_var=LD_LIBRARY_PATH
21458 shlibpath_overrides_runpath=yes
21459 hardcode_into_libs=yes
21460 ;;
21461
21462 newsos6)
21463 version_type=linux
21464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21465 shlibpath_var=LD_LIBRARY_PATH
21466 shlibpath_overrides_runpath=yes
21467 ;;
21468
21469 *nto* | *qnx*)
21470 version_type=qnx
21471 need_lib_prefix=no
21472 need_version=no
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec='${libname}${release}${shared_ext}$major'
21475 shlibpath_var=LD_LIBRARY_PATH
21476 shlibpath_overrides_runpath=no
21477 hardcode_into_libs=yes
21478 dynamic_linker='ldqnx.so'
21479 ;;
21480
21481 openbsd*)
21482 version_type=sunos
21483 sys_lib_dlsearch_path_spec="/usr/lib"
21484 need_lib_prefix=no
21485 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21486 case $host_os in
21487 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21488 *) need_version=no ;;
21489 esac
21490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21492 shlibpath_var=LD_LIBRARY_PATH
21493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21494 case $host_os in
21495 openbsd2.[89] | openbsd2.[89].*)
21496 shlibpath_overrides_runpath=no
21497 ;;
21498 *)
21499 shlibpath_overrides_runpath=yes
21500 ;;
21501 esac
21502 else
21503 shlibpath_overrides_runpath=yes
21504 fi
21505 ;;
21506
21507 os2*)
21508 libname_spec='$name'
21509 shrext_cmds=".dll"
21510 need_lib_prefix=no
21511 library_names_spec='$libname${shared_ext} $libname.a'
21512 dynamic_linker='OS/2 ld.exe'
21513 shlibpath_var=LIBPATH
21514 ;;
21515
21516 osf3* | osf4* | osf5*)
21517 version_type=osf
21518 need_lib_prefix=no
21519 need_version=no
21520 soname_spec='${libname}${release}${shared_ext}$major'
21521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21522 shlibpath_var=LD_LIBRARY_PATH
21523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21525 ;;
21526
21527 rdos*)
21528 dynamic_linker=no
21529 ;;
21530
21531 solaris*)
21532 version_type=linux
21533 need_lib_prefix=no
21534 need_version=no
21535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21536 soname_spec='${libname}${release}${shared_ext}$major'
21537 shlibpath_var=LD_LIBRARY_PATH
21538 shlibpath_overrides_runpath=yes
21539 hardcode_into_libs=yes
21540 # ldd complains unless libraries are executable
21541 postinstall_cmds='chmod +x $lib'
21542 ;;
21543
21544 sunos4*)
21545 version_type=sunos
21546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21548 shlibpath_var=LD_LIBRARY_PATH
21549 shlibpath_overrides_runpath=yes
21550 if test "$with_gnu_ld" = yes; then
21551 need_lib_prefix=no
21552 fi
21553 need_version=yes
21554 ;;
21555
21556 sysv4 | sysv4.3*)
21557 version_type=linux
21558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21559 soname_spec='${libname}${release}${shared_ext}$major'
21560 shlibpath_var=LD_LIBRARY_PATH
21561 case $host_vendor in
21562 sni)
21563 shlibpath_overrides_runpath=no
21564 need_lib_prefix=no
21565 runpath_var=LD_RUN_PATH
21566 ;;
21567 siemens)
21568 need_lib_prefix=no
21569 ;;
21570 motorola)
21571 need_lib_prefix=no
21572 need_version=no
21573 shlibpath_overrides_runpath=no
21574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21575 ;;
21576 esac
21577 ;;
21578
21579 sysv4*MP*)
21580 if test -d /usr/nec ;then
21581 version_type=linux
21582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21583 soname_spec='$libname${shared_ext}.$major'
21584 shlibpath_var=LD_LIBRARY_PATH
21585 fi
21586 ;;
21587
21588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21589 version_type=freebsd-elf
21590 need_lib_prefix=no
21591 need_version=no
21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 shlibpath_var=LD_LIBRARY_PATH
21595 shlibpath_overrides_runpath=yes
21596 hardcode_into_libs=yes
21597 if test "$with_gnu_ld" = yes; then
21598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21599 else
21600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21601 case $host_os in
21602 sco3.2v5*)
21603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21604 ;;
21605 esac
21606 fi
21607 sys_lib_dlsearch_path_spec='/usr/lib'
21608 ;;
21609
21610 tpf*)
21611 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21612 version_type=linux
21613 need_lib_prefix=no
21614 need_version=no
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21616 shlibpath_var=LD_LIBRARY_PATH
21617 shlibpath_overrides_runpath=no
21618 hardcode_into_libs=yes
21619 ;;
21620
21621 uts4*)
21622 version_type=linux
21623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21624 soname_spec='${libname}${release}${shared_ext}$major'
21625 shlibpath_var=LD_LIBRARY_PATH
21626 ;;
21627
21628 *)
21629 dynamic_linker=no
21630 ;;
21631 esac
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21633 $as_echo "$dynamic_linker" >&6; }
21634 test "$dynamic_linker" = no && can_build_shared=no
21635
21636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21637 if test "$GCC" = yes; then
21638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21639 fi
21640
21641 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21642 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21643 fi
21644 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21645 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21646 fi
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21686 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21687 hardcode_action_CXX=
21688 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21689 test -n "$runpath_var_CXX" ||
21690 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21691
21692 # We can hardcode non-existent directories.
21693 if test "$hardcode_direct_CXX" != no &&
21694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21695 # have to relink, otherwise we might link with an installed library
21696 # when we should be linking with a yet-to-be-installed one
21697 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21698 test "$hardcode_minus_L_CXX" != no; then
21699 # Linking always hardcodes the temporary library directory.
21700 hardcode_action_CXX=relink
21701 else
21702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21703 hardcode_action_CXX=immediate
21704 fi
21705 else
21706 # We cannot hardcode anything, or else we can only hardcode existing
21707 # directories.
21708 hardcode_action_CXX=unsupported
21709 fi
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21711 $as_echo "$hardcode_action_CXX" >&6; }
21712
21713 if test "$hardcode_action_CXX" = relink ||
21714 test "$inherit_rpath_CXX" = yes; then
21715 # Fast installation is not supported
21716 enable_fast_install=no
21717 elif test "$shlibpath_overrides_runpath" = yes ||
21718 test "$enable_shared" = no; then
21719 # Fast installation is not necessary
21720 enable_fast_install=needless
21721 fi
21722
21723
21724
21725
21726
21727
21728
21729 fi # test -n "$compiler"
21730
21731 CC=$lt_save_CC
21732 LDCXX=$LD
21733 LD=$lt_save_LD
21734 GCC=$lt_save_GCC
21735 with_gnu_ld=$lt_save_with_gnu_ld
21736 lt_cv_path_LDCXX=$lt_cv_path_LD
21737 lt_cv_path_LD=$lt_save_path_LD
21738 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21739 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21740 fi # test "$_lt_caught_CXX_error" != yes
21741
21742 ac_ext=cpp
21743 ac_cpp='$CXXCPP $CPPFLAGS'
21744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763 # Only expand once:
21764
21765
21766
21767
21768
21769 # Identify the assembler which will work hand-in-glove with the newly
21770 # built GCC, so that we can examine its features. This is the assembler
21771 # which will be driven by the driver program.
21772 #
21773 # If build != host, and we aren't building gas in-tree, we identify a
21774 # build->target assembler and hope that it will have the same features
21775 # as the host->target assembler we'll be using.
21776 gcc_cv_gas_major_version=
21777 gcc_cv_gas_minor_version=
21778 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21779
21780 if test "${gcc_cv_as+set}" = set; then :
21781
21782 else
21783
21784 if test -x "$DEFAULT_ASSEMBLER"; then
21785 gcc_cv_as="$DEFAULT_ASSEMBLER"
21786 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21787 && test -f ../gas/Makefile \
21788 && test x$build = x$host; then
21789 gcc_cv_as=../gas/as-new$build_exeext
21790 elif test -x as$build_exeext; then
21791 # Build using assembler in the current directory.
21792 gcc_cv_as=./as$build_exeext
21793 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21794 gcc_cv_as="$AS_FOR_TARGET"
21795 else
21796 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21797 set dummy $AS_FOR_TARGET; ac_word=$2
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21799 $as_echo_n "checking for $ac_word... " >&6; }
21800 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21801 $as_echo_n "(cached) " >&6
21802 else
21803 case $gcc_cv_as in
21804 [\\/]* | ?:[\\/]*)
21805 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21806 ;;
21807 *)
21808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21809 for as_dir in $PATH
21810 do
21811 IFS=$as_save_IFS
21812 test -z "$as_dir" && as_dir=.
21813 for ac_exec_ext in '' $ac_executable_extensions; do
21814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21815 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21817 break 2
21818 fi
21819 done
21820 done
21821 IFS=$as_save_IFS
21822
21823 ;;
21824 esac
21825 fi
21826 gcc_cv_as=$ac_cv_path_gcc_cv_as
21827 if test -n "$gcc_cv_as"; then
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21829 $as_echo "$gcc_cv_as" >&6; }
21830 else
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21832 $as_echo "no" >&6; }
21833 fi
21834
21835
21836 fi
21837 fi
21838
21839 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21840
21841 case "$ORIGINAL_AS_FOR_TARGET" in
21842 ./as | ./as$build_exeext) ;;
21843 *) ac_config_files="$ac_config_files as:exec-tool.in"
21844 ;;
21845 esac
21846
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21848 $as_echo_n "checking what assembler to use... " >&6; }
21849 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21850 # Single tree build which includes gas. We want to prefer it
21851 # over whatever linker top-level may have detected, since
21852 # we'll use what we're building after installation anyway.
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21854 $as_echo "newly built gas" >&6; }
21855 in_tree_gas=yes
21856 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21857 for f in $gcc_cv_as_bfd_srcdir/configure \
21858 $gcc_cv_as_gas_srcdir/configure \
21859 $gcc_cv_as_gas_srcdir/configure.ac \
21860 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21861 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21862 if test x$gcc_cv_gas_version != x; then
21863 break
21864 fi
21865 done
21866 case $gcc_cv_gas_version in
21867 VERSION=[0-9]*) ;;
21868 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21869 esac
21870 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21871 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21872 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21873 case $gcc_cv_gas_patch_version in
21874 "") gcc_cv_gas_patch_version="0" ;;
21875 esac
21876 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21877 + $gcc_cv_gas_minor_version \) \* 1000 \
21878 + $gcc_cv_gas_patch_version`
21879
21880 in_tree_gas_is_elf=no
21881 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21882 || (grep 'obj_format = multi' ../gas/Makefile \
21883 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21884 then
21885 in_tree_gas_is_elf=yes
21886 fi
21887 else
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21889 $as_echo "$gcc_cv_as" >&6; }
21890 in_tree_gas=no
21891 fi
21892
21893 default_ld=
21894 # Check whether --enable-ld was given.
21895 if test "${enable_ld+set}" = set; then :
21896 enableval=$enable_ld; case "${enableval}" in
21897 no)
21898 default_ld=ld.gold
21899 ;;
21900 esac
21901 fi
21902
21903
21904 install_gold_as_default=no
21905 # Check whether --enable-gold was given.
21906 if test "${enable_gold+set}" = set; then :
21907 enableval=$enable_gold; case "${enableval}" in
21908 default)
21909 install_gold_as_default=yes
21910 ;;
21911 yes)
21912 if test x${default_ld} != x; then
21913 install_gold_as_default=yes
21914 fi
21915 ;;
21916 no)
21917 ;;
21918 *)
21919 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21920 ;;
21921 esac
21922 fi
21923
21924
21925 # Identify the linker which will work hand-in-glove with the newly
21926 # built GCC, so that we can examine its features. This is the linker
21927 # which will be driven by the driver program.
21928 #
21929 # If build != host, and we aren't building gas in-tree, we identify a
21930 # build->target linker and hope that it will have the same features
21931 # as the host->target linker we'll be using.
21932 gcc_cv_gld_major_version=
21933 gcc_cv_gld_minor_version=
21934 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21935 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21936 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21937
21938 if test "${gcc_cv_ld+set}" = set; then :
21939
21940 else
21941
21942 if test -x "$DEFAULT_LINKER"; then
21943 gcc_cv_ld="$DEFAULT_LINKER"
21944 elif test $install_gold_as_default = yes \
21945 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21946 && test -f ../gold/Makefile \
21947 && test x$build = x$host; then
21948 gcc_cv_ld=../gold/ld-new$build_exeext
21949 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21950 && test -f ../ld/Makefile \
21951 && test x$build = x$host; then
21952 gcc_cv_ld=../ld/ld-new$build_exeext
21953 elif test -x collect-ld$build_exeext; then
21954 # Build using linker in the current directory.
21955 gcc_cv_ld=./collect-ld$build_exeext
21956 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21957 gcc_cv_ld="$LD_FOR_TARGET"
21958 else
21959 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21960 set dummy $LD_FOR_TARGET; ac_word=$2
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21962 $as_echo_n "checking for $ac_word... " >&6; }
21963 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21964 $as_echo_n "(cached) " >&6
21965 else
21966 case $gcc_cv_ld in
21967 [\\/]* | ?:[\\/]*)
21968 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21969 ;;
21970 *)
21971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21972 for as_dir in $PATH
21973 do
21974 IFS=$as_save_IFS
21975 test -z "$as_dir" && as_dir=.
21976 for ac_exec_ext in '' $ac_executable_extensions; do
21977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21978 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21980 break 2
21981 fi
21982 done
21983 done
21984 IFS=$as_save_IFS
21985
21986 ;;
21987 esac
21988 fi
21989 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21990 if test -n "$gcc_cv_ld"; then
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21992 $as_echo "$gcc_cv_ld" >&6; }
21993 else
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21995 $as_echo "no" >&6; }
21996 fi
21997
21998
21999 fi
22000 fi
22001
22002 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22003 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22004 # if the PLUGIN_LD is set ld-new, just have it as ld
22005 # as that is the installed named.
22006 if test x$PLUGIN_LD_SUFFIX = xld-new \
22007 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22008 PLUGIN_LD_SUFFIX=ld
22009 fi
22010
22011 # Check whether --with-plugin-ld was given.
22012 if test "${with_plugin_ld+set}" = set; then :
22013 withval=$with_plugin_ld; if test x"$withval" != x; then
22014 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22015 PLUGIN_LD_SUFFIX="$withval"
22016 fi
22017 fi
22018
22019
22020
22021 cat >>confdefs.h <<_ACEOF
22022 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22023 _ACEOF
22024
22025
22026 # Check to see if we are using gold instead of ld
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22028 $as_echo_n "checking whether we are using gold... " >&6; }
22029 ld_is_gold=no
22030 if test x$gcc_cv_ld != x; then
22031 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22032 | grep "GNU gold" > /dev/null; then
22033 ld_is_gold=yes
22034 fi
22035 fi
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22037 $as_echo "$ld_is_gold" >&6; }
22038
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22040 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22041 # Check to see if default ld is not gold, but gold is
22042 # available and has support for split stack. If gcc was configured
22043 # with gold then no checking is done.
22044 #
22045 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22046
22047 # For platforms other than powerpc64*, enable as appropriate.
22048
22049 gold_non_default=no
22050 ld_gold=`which ${gcc_cv_ld}.gold`
22051 # Make sure this gold has minimal split stack support
22052 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22053 ld_vers=`$ld_gold --version | sed 1q`
22054 gold_vers=`echo $ld_vers | sed -n \
22055 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22056 case $target in
22057 # check that the gold version contains the complete split stack support
22058 # on powerpc64 big and little endian
22059 powerpc64*-*-*)
22060 case "$gold_vers" in
22061 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22062 ;;
22063 *) gold_non_default=no
22064 ;;
22065 esac
22066 ;;
22067 esac
22068 fi
22069 if test $gold_non_default = yes; then
22070
22071 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22072
22073 fi
22074 fi
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22076 $as_echo "$gold_non_default" >&6; }
22077
22078 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22079
22080 case "$ORIGINAL_LD_FOR_TARGET" in
22081 ./collect-ld | ./collect-ld$build_exeext) ;;
22082 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22083 ;;
22084 esac
22085
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22087 $as_echo_n "checking what linker to use... " >&6; }
22088 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22089 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22090 # Single tree build which includes ld. We want to prefer it
22091 # over whatever linker top-level may have detected, since
22092 # we'll use what we're building after installation anyway.
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22094 $as_echo "newly built ld" >&6; }
22095 in_tree_ld=yes
22096 in_tree_ld_is_elf=no
22097 if (grep 'EMUL = .*elf' ../ld/Makefile \
22098 || grep 'EMUL = .*linux' ../ld/Makefile \
22099 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22100 in_tree_ld_is_elf=yes
22101 elif test "$ld_is_gold" = yes; then
22102 in_tree_ld_is_elf=yes
22103 fi
22104 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
22105 do
22106 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22107 if test x$gcc_cv_gld_version != x; then
22108 break
22109 fi
22110 done
22111 case $gcc_cv_gld_version in
22112 VERSION=[0-9]*) ;;
22113 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22114 esac
22115 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22116 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22117 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22118 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22119 else
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22121 $as_echo "$gcc_cv_ld" >&6; }
22122 in_tree_ld=no
22123 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22124 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22125 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22126 fi
22127
22128
22129
22130
22131 # Figure out what nm we will be using.
22132 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22133 if test "${gcc_cv_nm+set}" = set; then :
22134
22135 else
22136
22137 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22138 && test -f ../binutils/Makefile \
22139 && test x$build = x$host; then
22140 gcc_cv_nm=../binutils/nm-new$build_exeext
22141 elif test -x nm$build_exeext; then
22142 gcc_cv_nm=./nm$build_exeext
22143 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22144 gcc_cv_nm="$NM_FOR_TARGET"
22145 else
22146 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22147 set dummy $NM_FOR_TARGET; ac_word=$2
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22149 $as_echo_n "checking for $ac_word... " >&6; }
22150 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22152 else
22153 case $gcc_cv_nm in
22154 [\\/]* | ?:[\\/]*)
22155 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22156 ;;
22157 *)
22158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22159 for as_dir in $PATH
22160 do
22161 IFS=$as_save_IFS
22162 test -z "$as_dir" && as_dir=.
22163 for ac_exec_ext in '' $ac_executable_extensions; do
22164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22165 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22167 break 2
22168 fi
22169 done
22170 done
22171 IFS=$as_save_IFS
22172
22173 ;;
22174 esac
22175 fi
22176 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22177 if test -n "$gcc_cv_nm"; then
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22179 $as_echo "$gcc_cv_nm" >&6; }
22180 else
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22182 $as_echo "no" >&6; }
22183 fi
22184
22185
22186 fi
22187 fi
22188
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22190 $as_echo_n "checking what nm to use... " >&6; }
22191 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22192 # Single tree build which includes binutils.
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22194 $as_echo "newly built nm" >&6; }
22195 in_tree_nm=yes
22196 else
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22198 $as_echo "$gcc_cv_nm" >&6; }
22199 in_tree_nm=no
22200 fi
22201
22202 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22203
22204 case "$ORIGINAL_NM_FOR_TARGET" in
22205 ./nm | ./nm$build_exeext) ;;
22206 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22207 ;;
22208 esac
22209
22210
22211 # Figure out what objdump we will be using.
22212 if test "${gcc_cv_objdump+set}" = set; then :
22213
22214 else
22215
22216 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22217 && test -f ../binutils/Makefile \
22218 && test x$build = x$host; then
22219 # Single tree build which includes binutils.
22220 gcc_cv_objdump=../binutils/objdump$build_exeext
22221 elif test -x objdump$build_exeext; then
22222 gcc_cv_objdump=./objdump$build_exeext
22223 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22224 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22225 else
22226 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22227 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22229 $as_echo_n "checking for $ac_word... " >&6; }
22230 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22231 $as_echo_n "(cached) " >&6
22232 else
22233 case $gcc_cv_objdump in
22234 [\\/]* | ?:[\\/]*)
22235 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22236 ;;
22237 *)
22238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22239 for as_dir in $PATH
22240 do
22241 IFS=$as_save_IFS
22242 test -z "$as_dir" && as_dir=.
22243 for ac_exec_ext in '' $ac_executable_extensions; do
22244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22245 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22247 break 2
22248 fi
22249 done
22250 done
22251 IFS=$as_save_IFS
22252
22253 ;;
22254 esac
22255 fi
22256 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22257 if test -n "$gcc_cv_objdump"; then
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22259 $as_echo "$gcc_cv_objdump" >&6; }
22260 else
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22262 $as_echo "no" >&6; }
22263 fi
22264
22265
22266 fi
22267 fi
22268
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22270 $as_echo_n "checking what objdump to use... " >&6; }
22271 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22272 # Single tree build which includes binutils.
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22274 $as_echo "newly built objdump" >&6; }
22275 elif test x$gcc_cv_objdump = x; then
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22277 $as_echo "not found" >&6; }
22278 else
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22280 $as_echo "$gcc_cv_objdump" >&6; }
22281 fi
22282
22283 # Figure out what readelf we will be using.
22284 if test "${gcc_cv_readelf+set}" = set; then :
22285
22286 else
22287
22288 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22289 && test -f ../binutils/Makefile \
22290 && test x$build = x$host; then
22291 # Single tree build which includes binutils.
22292 gcc_cv_readelf=../binutils/readelf$build_exeext
22293 elif test -x readelf$build_exeext; then
22294 gcc_cv_readelf=./readelf$build_exeext
22295 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22296 gcc_cv_readelf="$READELF_FOR_TARGET"
22297 else
22298 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22299 set dummy $READELF_FOR_TARGET; ac_word=$2
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22301 $as_echo_n "checking for $ac_word... " >&6; }
22302 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22303 $as_echo_n "(cached) " >&6
22304 else
22305 case $gcc_cv_readelf in
22306 [\\/]* | ?:[\\/]*)
22307 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22308 ;;
22309 *)
22310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22311 for as_dir in $PATH
22312 do
22313 IFS=$as_save_IFS
22314 test -z "$as_dir" && as_dir=.
22315 for ac_exec_ext in '' $ac_executable_extensions; do
22316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22317 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22319 break 2
22320 fi
22321 done
22322 done
22323 IFS=$as_save_IFS
22324
22325 ;;
22326 esac
22327 fi
22328 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22329 if test -n "$gcc_cv_readelf"; then
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22331 $as_echo "$gcc_cv_readelf" >&6; }
22332 else
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22334 $as_echo "no" >&6; }
22335 fi
22336
22337
22338 fi
22339 fi
22340
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22342 $as_echo_n "checking what readelf to use... " >&6; }
22343 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22344 # Single tree build which includes binutils.
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22346 $as_echo "newly built readelf" >&6; }
22347 elif test x$gcc_cv_readelf = x; then
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22349 $as_echo "not found" >&6; }
22350 else
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22352 $as_echo "$gcc_cv_readelf" >&6; }
22353 fi
22354
22355 # Figure out what assembler alignment features are present.
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22357 $as_echo_n "checking assembler flags... " >&6; }
22358 if test "${gcc_cv_as_flags+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22360 else
22361 case "$target" in
22362 i[34567]86-*-linux*)
22363 gcc_cv_as_flags=--32
22364 ;;
22365 x86_64-*-linux-gnux32)
22366 gcc_cv_as_flags=--x32
22367 ;;
22368 x86_64-*-linux*)
22369 gcc_cv_as_flags=--64
22370 ;;
22371 powerpc*-*-darwin*)
22372 gcc_cv_as_flags="-arch ppc"
22373 ;;
22374 *)
22375 gcc_cv_as_flags=" "
22376 ;;
22377 esac
22378 fi
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22380 $as_echo "$gcc_cv_as_flags" >&6; }
22381
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22383 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22384 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22386 else
22387 gcc_cv_as_balign_and_p2align=no
22388 if test $in_tree_gas = yes; then
22389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22390 then gcc_cv_as_balign_and_p2align=yes
22391 fi
22392 elif test x$gcc_cv_as != x; then
22393 $as_echo '.balign 4
22394 .p2align 2' > conftest.s
22395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22400 test $ac_status = 0; }; }
22401 then
22402 gcc_cv_as_balign_and_p2align=yes
22403 else
22404 echo "configure: failed program was" >&5
22405 cat conftest.s >&5
22406 fi
22407 rm -f conftest.o conftest.s
22408 fi
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22411 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22412 if test $gcc_cv_as_balign_and_p2align = yes; then
22413
22414 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22415
22416 fi
22417
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22419 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22420 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 gcc_cv_as_max_skip_p2align=no
22424 if test $in_tree_gas = yes; then
22425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22426 then gcc_cv_as_max_skip_p2align=yes
22427 fi
22428 elif test x$gcc_cv_as != x; then
22429 $as_echo '.p2align 4,,7' > conftest.s
22430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22432 (eval $ac_try) 2>&5
22433 ac_status=$?
22434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22435 test $ac_status = 0; }; }
22436 then
22437 gcc_cv_as_max_skip_p2align=yes
22438 else
22439 echo "configure: failed program was" >&5
22440 cat conftest.s >&5
22441 fi
22442 rm -f conftest.o conftest.s
22443 fi
22444 fi
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22446 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22447 if test $gcc_cv_as_max_skip_p2align = yes; then
22448
22449 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22450
22451 fi
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22454 $as_echo_n "checking assembler for .literal16... " >&6; }
22455 if test "${gcc_cv_as_literal16+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 gcc_cv_as_literal16=no
22459 if test $in_tree_gas = yes; then
22460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22461 then gcc_cv_as_literal16=yes
22462 fi
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo '.literal16' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472 gcc_cv_as_literal16=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22476 fi
22477 rm -f conftest.o conftest.s
22478 fi
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22481 $as_echo "$gcc_cv_as_literal16" >&6; }
22482 if test $gcc_cv_as_literal16 = yes; then
22483
22484 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22485
22486 fi
22487
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22489 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22490 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
22492 else
22493 gcc_cv_as_subsection_m1=no
22494 if test $in_tree_gas = yes; then
22495 if test $in_tree_gas_is_elf = yes \
22496 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22497 then gcc_cv_as_subsection_m1=yes
22498 fi
22499 elif test x$gcc_cv_as != x; then
22500 $as_echo 'conftest_label1: .word 0
22501 .subsection -1
22502 conftest_label2: .word 0
22503 .previous' > conftest.s
22504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22509 test $ac_status = 0; }; }
22510 then
22511 if test x$gcc_cv_nm != x; then
22512 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22513 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22514 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22515 then :
22516 else gcc_cv_as_subsection_m1=yes
22517 fi
22518 rm -f conftest.nm1 conftest.nm2
22519 fi
22520 else
22521 echo "configure: failed program was" >&5
22522 cat conftest.s >&5
22523 fi
22524 rm -f conftest.o conftest.s
22525 fi
22526 fi
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22528 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22529 if test $gcc_cv_as_subsection_m1 = yes; then
22530
22531 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22532
22533 fi
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22536 $as_echo_n "checking assembler for .weak... " >&6; }
22537 if test "${gcc_cv_as_weak+set}" = set; then :
22538 $as_echo_n "(cached) " >&6
22539 else
22540 gcc_cv_as_weak=no
22541 if test $in_tree_gas = yes; then
22542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22543 then gcc_cv_as_weak=yes
22544 fi
22545 elif test x$gcc_cv_as != x; then
22546 $as_echo ' .weak foobar' > conftest.s
22547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22553 then
22554 gcc_cv_as_weak=yes
22555 else
22556 echo "configure: failed program was" >&5
22557 cat conftest.s >&5
22558 fi
22559 rm -f conftest.o conftest.s
22560 fi
22561 fi
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22563 $as_echo "$gcc_cv_as_weak" >&6; }
22564 if test $gcc_cv_as_weak = yes; then
22565
22566 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22567
22568 fi
22569
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22571 $as_echo_n "checking assembler for .weakref... " >&6; }
22572 if test "${gcc_cv_as_weakref+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 gcc_cv_as_weakref=no
22576 if test $in_tree_gas = yes; then
22577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22578 then gcc_cv_as_weakref=yes
22579 fi
22580 elif test x$gcc_cv_as != x; then
22581 $as_echo ' .weakref foobar, barfnot' > conftest.s
22582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22587 test $ac_status = 0; }; }
22588 then
22589 gcc_cv_as_weakref=yes
22590 else
22591 echo "configure: failed program was" >&5
22592 cat conftest.s >&5
22593 fi
22594 rm -f conftest.o conftest.s
22595 fi
22596 fi
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22598 $as_echo "$gcc_cv_as_weakref" >&6; }
22599 if test $gcc_cv_as_weakref = yes; then
22600
22601 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22602
22603 fi
22604
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22606 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22607 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 gcc_cv_as_nsubspa_comdat=no
22611 if test $in_tree_gas = yes; then
22612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22613 then gcc_cv_as_nsubspa_comdat=yes
22614 fi
22615 elif test x$gcc_cv_as != x; then
22616 $as_echo ' .SPACE $TEXT$
22617 .NSUBSPA $CODE$,COMDAT' > conftest.s
22618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }
22624 then
22625 gcc_cv_as_nsubspa_comdat=yes
22626 else
22627 echo "configure: failed program was" >&5
22628 cat conftest.s >&5
22629 fi
22630 rm -f conftest.o conftest.s
22631 fi
22632 fi
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22634 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22635 if test $gcc_cv_as_nsubspa_comdat = yes; then
22636
22637 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22638
22639 fi
22640
22641 # .hidden needs to be supported in both the assembler and the linker,
22642 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22643 # This is irritatingly difficult to feature test for; we have to check the
22644 # date string after the version number. If we've got an in-tree
22645 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22646 # to be safe.
22647 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22649 $as_echo_n "checking assembler for .hidden... " >&6; }
22650 if test "${gcc_cv_as_hidden+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22652 else
22653 gcc_cv_as_hidden=no
22654 if test $in_tree_gas = yes; then
22655 if test $in_tree_gas_is_elf = yes \
22656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22657 then gcc_cv_as_hidden=yes
22658 fi
22659 elif test x$gcc_cv_as != x; then
22660 $as_echo ' .hidden foobar
22661 foobar:' > conftest.s
22662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22667 test $ac_status = 0; }; }
22668 then
22669 gcc_cv_as_hidden=yes
22670 else
22671 echo "configure: failed program was" >&5
22672 cat conftest.s >&5
22673 fi
22674 rm -f conftest.o conftest.s
22675 fi
22676 fi
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22678 $as_echo "$gcc_cv_as_hidden" >&6; }
22679
22680 case "${target}" in
22681 *-*-darwin*)
22682 # Darwin as has some visibility support, though with a different syntax.
22683 gcc_cv_as_hidden=yes
22684 ;;
22685 esac
22686
22687 # gnu_indirect_function type is an extension proposed at
22688 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22689 # selection of function implementation
22690 # Check whether --enable-gnu-indirect-function was given.
22691 if test "${enable_gnu_indirect_function+set}" = set; then :
22692 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22693 yes | no) ;;
22694 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22695 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22696 esac
22697 else
22698 enable_gnu_indirect_function="$default_gnu_indirect_function"
22699 fi
22700
22701
22702 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22706 _ACEOF
22707
22708
22709
22710 if test $in_tree_ld != yes ; then
22711 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22712 if echo "$ld_ver" | grep GNU > /dev/null; then
22713 if test x"$ld_is_gold" = xyes; then
22714 # GNU gold --version looks like this:
22715 #
22716 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22717 #
22718 # We extract the binutils version which is more familiar and specific
22719 # than the gold version.
22720 ld_vers=`echo $ld_ver | sed -n \
22721 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22722 else
22723 # GNU ld --version looks like this:
22724 #
22725 # GNU ld (GNU Binutils) 2.21.51.20110225
22726 ld_vers=`echo $ld_ver | sed -n \
22727 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22728 fi
22729 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'`
22730 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22731 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22732 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22733 else
22734 case "${target}" in
22735 *-*-solaris2*)
22736 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22737 # format.
22738 #
22739 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22740 # /usr/ccs/bin/ld has been configured.
22741 ld_ver=`$gcc_cv_ld -V 2>&1`
22742 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22743 ld_vers=`echo $ld_ver | sed -n \
22744 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22745 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22746 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22747 fi
22748 ;;
22749 esac
22750 fi
22751 fi
22752
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22754 $as_echo_n "checking linker for .hidden support... " >&6; }
22755 if test "${gcc_cv_ld_hidden+set}" = set; then :
22756 $as_echo_n "(cached) " >&6
22757 else
22758 if test $in_tree_ld = yes ; then
22759 gcc_cv_ld_hidden=no
22760 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 \
22761 && test $in_tree_ld_is_elf = yes; then
22762 gcc_cv_ld_hidden=yes
22763 fi
22764 else
22765 gcc_cv_ld_hidden=yes
22766 if test x"$ld_is_gold" = xyes; then
22767 :
22768 elif echo "$ld_ver" | grep GNU > /dev/null; then
22769 case "${target}" in
22770 mmix-knuth-mmixware)
22771 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22772 gcc_cv_ld_hidden=no
22773 ;;
22774 esac
22775 if test 0"$ld_date" -lt 20020404; then
22776 if test -n "$ld_date"; then
22777 # If there was date string, but was earlier than 2002-04-04, fail
22778 gcc_cv_ld_hidden=no
22779 elif test -z "$ld_vers"; then
22780 # If there was no date string nor ld version number, something is wrong
22781 gcc_cv_ld_hidden=no
22782 else
22783 test -z "$ld_vers_patch" && ld_vers_patch=0
22784 if test "$ld_vers_major" -lt 2; then
22785 gcc_cv_ld_hidden=no
22786 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22787 gcc_cv_ld_hidden="no"
22788 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22789 gcc_cv_ld_hidden=no
22790 fi
22791 fi
22792 fi
22793 else
22794 case "${target}" in
22795 *-*-darwin*)
22796 # Darwin ld has some visibility support.
22797 gcc_cv_ld_hidden=yes
22798 ;;
22799 hppa64*-*-hpux* | ia64*-*-hpux*)
22800 gcc_cv_ld_hidden=yes
22801 ;;
22802 *-*-solaris2.1[0-9]*)
22803 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22804 # .symbolic was only added in Solaris 9 12/02.
22805 gcc_cv_ld_hidden=yes
22806 ;;
22807 *)
22808 gcc_cv_ld_hidden=no
22809 ;;
22810 esac
22811 fi
22812 fi
22813 fi
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22815 $as_echo "$gcc_cv_ld_hidden" >&6; }
22816 libgcc_visibility=no
22817
22818
22819 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22820 libgcc_visibility=yes
22821
22822 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22823
22824 fi
22825
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22827 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22828 gcc_cv_ld_ro_rw_mix=unknown
22829 if test $in_tree_ld = yes ; then
22830 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 \
22831 && test $in_tree_ld_is_elf = yes; then
22832 gcc_cv_ld_ro_rw_mix=read-write
22833 fi
22834 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22835 echo '.section myfoosect, "a"' > conftest1.s
22836 echo '.section myfoosect, "aw"' > conftest2.s
22837 echo '.byte 1' >> conftest2.s
22838 echo '.section myfoosect, "a"' > conftest3.s
22839 echo '.byte 0' >> conftest3.s
22840 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22841 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22842 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22843 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22844 conftest2.o conftest3.o > /dev/null 2>&1; then
22845 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22846 | sed -e '/myfoosect/!d' -e N`
22847 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22848 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22849 gcc_cv_ld_ro_rw_mix=read-only
22850 else
22851 gcc_cv_ld_ro_rw_mix=read-write
22852 fi
22853 fi
22854 fi
22855 rm -f conftest.* conftest[123].*
22856 fi
22857 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22858
22859 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22860
22861 fi
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22863 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22864
22865 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22866 case "${target}" in
22867 *-*-solaris2*)
22868 #
22869 # Solaris 2 ld -V output looks like this for a regular version:
22870 #
22871 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22872 #
22873 # but test versions add stuff at the end:
22874 #
22875 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22876 #
22877 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22878 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22879 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22880 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22881 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22882 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22883 fi
22884 ;;
22885 esac
22886 fi
22887
22888 # Check whether --enable-initfini-array was given.
22889 if test "${enable_initfini_array+set}" = set; then :
22890 enableval=$enable_initfini_array;
22891 else
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22894 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22895 if test "${gcc_cv_initfini_array+set}" = set; then :
22896 $as_echo_n "(cached) " >&6
22897 else
22898 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22899 case "${target}" in
22900 ia64-*)
22901 if test "$cross_compiling" = yes; then :
22902 gcc_cv_initfini_array=no
22903 else
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22906
22907 #ifndef __ELF__
22908 #error Not an ELF OS
22909 #endif
22910 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22911 if it can be used. */
22912 static int x = -1;
22913 int main (void) { return x; }
22914 int foo (void) { x = 0; }
22915 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22916
22917 _ACEOF
22918 if ac_fn_cxx_try_run "$LINENO"; then :
22919 gcc_cv_initfini_array=yes
22920 else
22921 gcc_cv_initfini_array=no
22922 fi
22923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22924 conftest.$ac_objext conftest.beam conftest.$ac_ext
22925 fi
22926 ;;
22927 *)
22928 gcc_cv_initfini_array=no
22929 if test $in_tree_ld = yes ; then
22930 if test "$gcc_cv_gld_major_version" -eq 2 \
22931 -a "$gcc_cv_gld_minor_version" -ge 22 \
22932 -o "$gcc_cv_gld_major_version" -gt 2 \
22933 && test $in_tree_ld_is_elf = yes; then
22934 gcc_cv_initfini_array=yes
22935 fi
22936 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22937 case $target:$gas in
22938 *:yes)
22939 sh_flags='"a"'
22940 sh_type='%progbits'
22941 ;;
22942 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22943 sh_flags='"a"'
22944 sh_type='@progbits'
22945 ;;
22946 sparc*-*-solaris2*:no)
22947 sh_flags='#alloc'
22948 sh_type='#progbits'
22949 sh_quote='"'
22950 ;;
22951 esac
22952 case "$target:$gnu_ld" in
22953 *:yes)
22954 cat > conftest.s <<EOF
22955 .section .dtors,$sh_flags,$sh_type
22956 .balign 4
22957 .byte 'A', 'A', 'A', 'A'
22958 .section .ctors,$sh_flags,$sh_type
22959 .balign 4
22960 .byte 'B', 'B', 'B', 'B'
22961 .section .fini_array.65530,$sh_flags,$sh_type
22962 .balign 4
22963 .byte 'C', 'C', 'C', 'C'
22964 .section .init_array.65530,$sh_flags,$sh_type
22965 .balign 4
22966 .byte 'D', 'D', 'D', 'D'
22967 .section .dtors.64528,$sh_flags,$sh_type
22968 .balign 4
22969 .byte 'E', 'E', 'E', 'E'
22970 .section .ctors.64528,$sh_flags,$sh_type
22971 .balign 4
22972 .byte 'F', 'F', 'F', 'F'
22973 .section .fini_array.01005,$sh_flags,$sh_type
22974 .balign 4
22975 .byte 'G', 'G', 'G', 'G'
22976 .section .init_array.01005,$sh_flags,$sh_type
22977 .balign 4
22978 .byte 'H', 'H', 'H', 'H'
22979 .text
22980 .globl _start
22981 _start:
22982 EOF
22983 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22984 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22985 && $gcc_cv_objdump -s -j .init_array conftest \
22986 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22987 && $gcc_cv_objdump -s -j .fini_array conftest \
22988 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22989 gcc_cv_initfini_array=yes
22990 fi
22991 ;;
22992 *-*-solaris2*:no)
22993 # When Solaris ld added constructor priority support, it was
22994 # decided to only handle .init_array.N/.fini_array.N since
22995 # there was no need for backwards compatibility with
22996 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
22997 # sections with correct execution order resp. to
22998 # .init_array/.fini_array, while gld merges them into
22999 # .init_array/.fini_array.
23000 cat > conftest.s <<EOF
23001 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23002 .align 4
23003 .byte 'C', 'C', 'C', 'C'
23004 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23005 .align 4
23006 .byte 'D', 'D', 'D', 'D'
23007 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23008 .align 4
23009 .byte 'G', 'G', 'G', 'G'
23010 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23011 .align 4
23012 .byte 'H', 'H', 'H', 'H'
23013 .text
23014 .globl _start
23015 _start:
23016 EOF
23017 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23018 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23019 && $gcc_cv_objdump -s -j .init_array conftest \
23020 | grep HHHHDDDD > /dev/null 2>&1 \
23021 && $gcc_cv_objdump -s -j .fini_array conftest \
23022 | grep GGGGCCCC > /dev/null 2>&1; then
23023 gcc_cv_initfini_array=yes
23024 fi
23025 ;;
23026 esac
23027 rm -f conftest conftest.*
23028 fi
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23031
23032 #ifndef __ELF__
23033 # error Not an ELF OS
23034 #endif
23035 #include <stdlib.h>
23036 #if defined __GLIBC_PREREQ
23037 # if __GLIBC_PREREQ (2, 4)
23038 # else
23039 # error GLIBC 2.4 required
23040 # endif
23041 #else
23042 # if defined __sun__ && defined __svr4__
23043 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23044 # else
23045 # error The C library not known to support .init_array/.fini_array
23046 # endif
23047 #endif
23048
23049 _ACEOF
23050 if ac_fn_cxx_try_cpp "$LINENO"; then :
23051
23052 else
23053 gcc_cv_initfini_array=no
23054 fi
23055 rm -f conftest.err conftest.$ac_ext;;
23056 esac
23057 else
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23059 $as_echo_n "checking cross compile... guessing... " >&6; }
23060 gcc_cv_initfini_array=no
23061 fi
23062 fi
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23064 $as_echo "$gcc_cv_initfini_array" >&6; }
23065 enable_initfini_array=$gcc_cv_initfini_array
23066
23067 fi
23068
23069
23070 cat >>confdefs.h <<_ACEOF
23071 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23072 _ACEOF
23073
23074
23075
23076 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23078 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23079 if test "${gcc_cv_as_leb128+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23081 else
23082 gcc_cv_as_leb128=no
23083 if test $in_tree_gas = yes; then
23084 if test $in_tree_gas_is_elf = yes \
23085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23086 then gcc_cv_as_leb128=yes
23087 fi
23088 elif test x$gcc_cv_as != x; then
23089 $as_echo ' .data
23090 .uleb128 L2 - L1
23091 L1:
23092 .uleb128 1280
23093 .sleb128 -1010
23094 L2:' > conftest.s
23095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23101 then
23102 # GAS versions before 2.11 do not support uleb128,
23103 # despite appearing to.
23104 # ??? There exists an elf-specific test that will crash
23105 # the assembler. Perhaps it's better to figure out whether
23106 # arbitrary sections are supported and try the test.
23107 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23108 if echo "$as_ver" | grep GNU > /dev/null; then
23109 as_vers=`echo $as_ver | sed -n \
23110 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23111 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23112 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23113 if test $as_major -eq 2 && test $as_minor -lt 11
23114 then :
23115 else gcc_cv_as_leb128=yes
23116 fi
23117 fi
23118 else
23119 echo "configure: failed program was" >&5
23120 cat conftest.s >&5
23121 fi
23122 rm -f conftest.o conftest.s
23123 fi
23124 fi
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23126 $as_echo "$gcc_cv_as_leb128" >&6; }
23127 if test $gcc_cv_as_leb128 = yes; then
23128
23129 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23130
23131 fi
23132
23133 # Check if we have assembler support for unwind directives.
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23135 $as_echo_n "checking assembler for cfi directives... " >&6; }
23136 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23138 else
23139 gcc_cv_as_cfi_directive=no
23140 if test x$gcc_cv_as != x; then
23141 $as_echo ' .text
23142 .cfi_startproc
23143 .cfi_offset 0, 0
23144 .cfi_same_value 1
23145 .cfi_def_cfa 1, 2
23146 .cfi_escape 1, 2, 3, 4, 5
23147 .cfi_endproc' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 case "$target" in
23156 *-*-solaris*)
23157 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23158 # read-only and read-write sections, we need to make sure that the
23159 # assembler used emits read-write .eh_frame sections.
23160 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23161 if test "x$gcc_cv_objdump" != x; then
23162 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23163 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23164 gcc_cv_as_cfi_directive=no
23165 else
23166 case "$target" in
23167 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23168 # On Solaris/x86, make sure that GCC and assembler agree on using
23169 # read-only .eh_frame sections for 64-bit.
23170 if test x$gas = xyes; then
23171 as_ix86_64_opt="--64"
23172 else
23173 as_ix86_64_opt="-xarch=amd64"
23174 fi
23175 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23176 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23177 sed -e /.eh_frame/!d -e N | \
23178 grep READONLY > /dev/null; then
23179 gcc_cv_as_cfi_directive=yes
23180 else
23181 gcc_cv_as_cfi_directive=no
23182 fi
23183 ;;
23184 *)
23185 gcc_cv_as_cfi_directive=yes
23186 ;;
23187 esac
23188 fi
23189 else
23190 # no objdump, err on the side of caution
23191 gcc_cv_as_cfi_directive=no
23192 fi
23193 else
23194 gcc_cv_as_cfi_directive=yes
23195 fi
23196 ;;
23197 *-*-*)
23198 gcc_cv_as_cfi_directive=yes
23199 ;;
23200 esac
23201 else
23202 echo "configure: failed program was" >&5
23203 cat conftest.s >&5
23204 fi
23205 rm -f conftest.o conftest.s
23206 fi
23207 fi
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23209 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23210
23211 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23213 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23214 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23215 $as_echo_n "(cached) " >&6
23216 else
23217 gcc_cv_as_cfi_advance_working=no
23218 if test x$gcc_cv_as != x; then
23219 $as_echo ' .text
23220 .cfi_startproc
23221 .cfi_adjust_cfa_offset 64
23222 .skip 75040, 0
23223 .cfi_adjust_cfa_offset 128
23224 .cfi_endproc' > conftest.s
23225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23230 test $ac_status = 0; }; }
23231 then
23232
23233 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23234 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23235 gcc_cv_as_cfi_advance_working=yes
23236 fi
23237
23238 else
23239 echo "configure: failed program was" >&5
23240 cat conftest.s >&5
23241 fi
23242 rm -f conftest.o conftest.s
23243 fi
23244 fi
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23246 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23247
23248 else
23249 # no objdump, err on the side of caution
23250 gcc_cv_as_cfi_advance_working=no
23251 fi
23252
23253
23254 cat >>confdefs.h <<_ACEOF
23255 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23256 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23257 _ACEOF
23258
23259
23260
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23262 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23263 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23264 $as_echo_n "(cached) " >&6
23265 else
23266 gcc_cv_as_cfi_personality_directive=no
23267 if test x$gcc_cv_as != x; then
23268 $as_echo ' .text
23269 .cfi_startproc
23270 .cfi_personality 0, symbol
23271 .cfi_endproc' > conftest.s
23272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23278 then
23279 gcc_cv_as_cfi_personality_directive=yes
23280 else
23281 echo "configure: failed program was" >&5
23282 cat conftest.s >&5
23283 fi
23284 rm -f conftest.o conftest.s
23285 fi
23286 fi
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23288 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23289
23290
23291 cat >>confdefs.h <<_ACEOF
23292 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23293 then echo 1; else echo 0; fi`
23294 _ACEOF
23295
23296
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23298 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23299 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23300 $as_echo_n "(cached) " >&6
23301 else
23302 gcc_cv_as_cfi_sections_directive=no
23303 if test x$gcc_cv_as != x; then
23304 $as_echo ' .text
23305 .cfi_sections .debug_frame, .eh_frame
23306 .cfi_startproc
23307 .cfi_endproc' > conftest.s
23308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23314 then
23315 case $target_os in
23316 win32 | pe | cygwin* | mingw32*)
23317 # Need to check that we generated the correct relocation for the
23318 # .debug_frame section. This was fixed for binutils 2.21.
23319 gcc_cv_as_cfi_sections_directive=no
23320 if test "x$gcc_cv_objdump" != x; then
23321 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23322 grep secrel > /dev/null; then
23323 gcc_cv_as_cfi_sections_directive=yes
23324 fi
23325 fi
23326 ;;
23327 *)
23328 gcc_cv_as_cfi_sections_directive=yes
23329 ;;
23330 esac
23331 else
23332 echo "configure: failed program was" >&5
23333 cat conftest.s >&5
23334 fi
23335 rm -f conftest.o conftest.s
23336 fi
23337 fi
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23339 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23340
23341
23342
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23345 then echo 1; else echo 0; fi`
23346 _ACEOF
23347
23348
23349 # GAS versions up to and including 2.11.0 may mis-optimize
23350 # .eh_frame data.
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23352 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23353 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23355 else
23356 gcc_cv_as_eh_frame=no
23357 if test $in_tree_gas = yes; then
23358 if test $in_tree_gas_is_elf = yes \
23359 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23360 then gcc_cv_as_eh_frame=yes
23361 fi
23362 elif test x$gcc_cv_as != x; then
23363 $as_echo ' .text
23364 .LFB1:
23365 .4byte 0
23366 .L1:
23367 .4byte 0
23368 .LFE1:
23369 .section .eh_frame,"aw",@progbits
23370 __FRAME_BEGIN__:
23371 .4byte .LECIE1-.LSCIE1
23372 .LSCIE1:
23373 .4byte 0x0
23374 .byte 0x1
23375 .ascii "z\0"
23376 .byte 0x1
23377 .byte 0x78
23378 .byte 0x1a
23379 .byte 0x0
23380 .byte 0x4
23381 .4byte 1
23382 .p2align 1
23383 .LECIE1:
23384 .LSFDE1:
23385 .4byte .LEFDE1-.LASFDE1
23386 .LASFDE1:
23387 .4byte .LASFDE1-__FRAME_BEGIN__
23388 .4byte .LFB1
23389 .4byte .LFE1-.LFB1
23390 .byte 0x4
23391 .4byte .LFE1-.LFB1
23392 .byte 0x4
23393 .4byte .L1-.LFB1
23394 .LEFDE1:' > conftest.s
23395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23400 test $ac_status = 0; }; }
23401 then
23402 cat > conftest.lit <<EOF
23403 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23404 0010 01000000 12000000 18000000 00000000 ................
23405 0020 08000000 04080000 0044 .........D
23406 EOF
23407 cat > conftest.big <<EOF
23408 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23409 0010 00000001 00000012 00000018 00000000 ................
23410 0020 00000008 04000000 0844 .........D
23411 EOF
23412 # If the assembler didn't choke, and we can objdump,
23413 # and we got the correct data, then succeed.
23414 # The text in the here-document typically retains its unix-style line
23415 # endings, while the output of objdump will use host line endings.
23416 # Therefore, use diff -b for the comparisons.
23417 if test x$gcc_cv_objdump != x \
23418 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23419 | tail -3 > conftest.got \
23420 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23421 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23422 then
23423 gcc_cv_as_eh_frame=yes
23424 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23429 test $ac_status = 0; }; }; then
23430 gcc_cv_as_eh_frame=buggy
23431 else
23432 # Uh oh, what do we do now?
23433 gcc_cv_as_eh_frame=no
23434 fi
23435 else
23436 echo "configure: failed program was" >&5
23437 cat conftest.s >&5
23438 fi
23439 rm -f conftest.o conftest.s
23440 fi
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23443 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23444
23445
23446 if test $gcc_cv_as_eh_frame = buggy; then
23447
23448 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23449
23450 fi
23451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23453 $as_echo_n "checking assembler for section merging support... " >&6; }
23454 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 gcc_cv_as_shf_merge=no
23458 if test $in_tree_gas = yes; then
23459 if test $in_tree_gas_is_elf = yes \
23460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23461 then gcc_cv_as_shf_merge=yes
23462 fi
23463 elif test x$gcc_cv_as != x; then
23464 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23471 then
23472 gcc_cv_as_shf_merge=yes
23473 else
23474 echo "configure: failed program was" >&5
23475 cat conftest.s >&5
23476 fi
23477 rm -f conftest.o conftest.s
23478 fi
23479 fi
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23481 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23482
23483 if test $gcc_cv_as_shf_merge = no; then
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23485 $as_echo_n "checking assembler for section merging support... " >&6; }
23486 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23487 $as_echo_n "(cached) " >&6
23488 else
23489 gcc_cv_as_shf_merge=no
23490 if test $in_tree_gas = yes; then
23491 if test $in_tree_gas_is_elf = yes \
23492 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23493 then gcc_cv_as_shf_merge=yes
23494 fi
23495 elif test x$gcc_cv_as != x; then
23496 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23502 test $ac_status = 0; }; }
23503 then
23504 gcc_cv_as_shf_merge=yes
23505 else
23506 echo "configure: failed program was" >&5
23507 cat conftest.s >&5
23508 fi
23509 rm -f conftest.o conftest.s
23510 fi
23511 fi
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23513 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23514
23515 fi
23516
23517 cat >>confdefs.h <<_ACEOF
23518 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23519 _ACEOF
23520
23521
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23523 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23524 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23525 $as_echo_n "(cached) " >&6
23526 else
23527 gcc_cv_as_comdat_group=no
23528 if test $in_tree_gas = yes; then
23529 if test $in_tree_gas_is_elf = yes \
23530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23531 then gcc_cv_as_comdat_group=yes
23532 fi
23533 elif test x$gcc_cv_as != x; then
23534 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23541 then
23542 gcc_cv_as_comdat_group=yes
23543 else
23544 echo "configure: failed program was" >&5
23545 cat conftest.s >&5
23546 fi
23547 rm -f conftest.o conftest.s
23548 fi
23549 fi
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23551 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23552
23553 if test $gcc_cv_as_comdat_group = yes; then
23554 gcc_cv_as_comdat_group_percent=no
23555 gcc_cv_as_comdat_group_group=no
23556 else
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23558 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23559 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23561 else
23562 gcc_cv_as_comdat_group_percent=no
23563 if test $in_tree_gas = yes; then
23564 if test $in_tree_gas_is_elf = yes \
23565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23566 then gcc_cv_as_comdat_group_percent=yes
23567 fi
23568 elif test x$gcc_cv_as != x; then
23569 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23576 then
23577 gcc_cv_as_comdat_group_percent=yes
23578 else
23579 echo "configure: failed program was" >&5
23580 cat conftest.s >&5
23581 fi
23582 rm -f conftest.o conftest.s
23583 fi
23584 fi
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23586 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23587
23588 if test $gcc_cv_as_comdat_group_percent = yes; then
23589 gcc_cv_as_comdat_group_group=no
23590 else
23591 case "${target}" in
23592 # Sun as uses a completely different syntax.
23593 *-*-solaris2*)
23594 case "${target}" in
23595 sparc*-*-solaris2*)
23596 conftest_s='
23597 .group foo,".text%foo",#comdat
23598 .section ".text%foo", #alloc,#execinstr,#progbits
23599 .globl foo
23600 foo:
23601 '
23602 ;;
23603 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23604 conftest_s='
23605 .group foo,.text%foo,#comdat
23606 .section .text%foo, "ax", @progbits
23607 .globl foo
23608 foo:
23609 '
23610 ;;
23611 esac
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23613 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23614 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_comdat_group_group=no
23618 if test x$gcc_cv_as != x; then
23619 $as_echo "$conftest_s" > conftest.s
23620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23625 test $ac_status = 0; }; }
23626 then
23627 gcc_cv_as_comdat_group_group=yes
23628 else
23629 echo "configure: failed program was" >&5
23630 cat conftest.s >&5
23631 fi
23632 rm -f conftest.o conftest.s
23633 fi
23634 fi
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23636 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23637
23638 ;;
23639 esac
23640 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23641 gcc_cv_as_comdat_group_group=no
23642 fi
23643 fi
23644 fi
23645 if test x"$ld_is_gold" = xyes; then
23646 comdat_group=yes
23647 elif test $in_tree_ld = yes ; then
23648 comdat_group=no
23649 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 \
23650 && test $in_tree_ld_is_elf = yes; then
23651 comdat_group=yes
23652 fi
23653 elif echo "$ld_ver" | grep GNU > /dev/null; then
23654 comdat_group=yes
23655 if test 0"$ld_date" -lt 20050308; then
23656 if test -n "$ld_date"; then
23657 # If there was date string, but was earlier than 2005-03-08, fail
23658 comdat_group=no
23659 elif test "$ld_vers_major" -lt 2; then
23660 comdat_group=no
23661 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23662 comdat_group=no
23663 fi
23664 fi
23665 else
23666 case "${target}" in
23667 *-*-solaris2.1[1-9]*)
23668 comdat_group=no
23669 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23670 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23671 # version 1.688.
23672 #
23673 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23674 # least ld version 1.2267.
23675 if test "$ld_vers_major" -gt 1; then
23676 comdat_group=yes
23677 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23678 comdat_group=yes
23679 elif test "$ld_vers_minor" -ge 2267; then
23680 comdat_group=yes
23681 fi
23682 ;;
23683 *)
23684 # Assume linkers other than GNU ld don't support COMDAT group.
23685 comdat_group=no
23686 ;;
23687 esac
23688 fi
23689 # Allow overriding the automatic COMDAT group tests above.
23690 # Check whether --enable-comdat was given.
23691 if test "${enable_comdat+set}" = set; then :
23692 enableval=$enable_comdat; comdat_group="$enable_comdat"
23693 fi
23694
23695 if test $comdat_group = no; then
23696 gcc_cv_as_comdat_group=no
23697 gcc_cv_as_comdat_group_percent=no
23698 gcc_cv_as_comdat_group_group=no
23699 fi
23700
23701 cat >>confdefs.h <<_ACEOF
23702 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23703 || test $gcc_cv_as_comdat_group_percent = yes \
23704 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23705 _ACEOF
23706
23707
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23709 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23710 if test "${gcc_cv_as_discriminator+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23712 else
23713 gcc_cv_as_discriminator=no
23714 if test $in_tree_gas = yes; then
23715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23716 then gcc_cv_as_discriminator=yes
23717 fi
23718 elif test x$gcc_cv_as != x; then
23719 $as_echo ' .text
23720 .file 1 "conf.c"
23721 .loc 1 1 0 discriminator 1' > conftest.s
23722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23727 test $ac_status = 0; }; }
23728 then
23729 gcc_cv_as_discriminator=yes
23730 else
23731 echo "configure: failed program was" >&5
23732 cat conftest.s >&5
23733 fi
23734 rm -f conftest.o conftest.s
23735 fi
23736 fi
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23738 $as_echo "$gcc_cv_as_discriminator" >&6; }
23739 if test $gcc_cv_as_discriminator = yes; then
23740
23741 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23742
23743 fi
23744
23745 # Thread-local storage - the check is heavily parameterized.
23746 conftest_s=
23747 tls_first_major=
23748 tls_first_minor=
23749 tls_as_opt=
23750 case "$target" in
23751 alpha*-*-*)
23752 conftest_s='
23753 .section ".tdata","awT",@progbits
23754 foo: .long 25
23755 .text
23756 ldq $27,__tls_get_addr($29) !literal!1
23757 lda $16,foo($29) !tlsgd!1
23758 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23759 ldq $27,__tls_get_addr($29) !literal!2
23760 lda $16,foo($29) !tlsldm!2
23761 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23762 ldq $1,foo($29) !gotdtprel
23763 ldah $2,foo($29) !dtprelhi
23764 lda $3,foo($2) !dtprello
23765 lda $4,foo($29) !dtprel
23766 ldq $1,foo($29) !gottprel
23767 ldah $2,foo($29) !tprelhi
23768 lda $3,foo($2) !tprello
23769 lda $4,foo($29) !tprel'
23770 tls_first_major=2
23771 tls_first_minor=13
23772 tls_as_opt=--fatal-warnings
23773 ;;
23774 cris-*-*|crisv32-*-*)
23775 conftest_s='
23776 .section ".tdata","awT",@progbits
23777 x: .long 25
23778 .text
23779 move.d x:IE,$r10
23780 nop'
23781 tls_first_major=2
23782 tls_first_minor=20
23783 tls_as_opt=--fatal-warnings
23784 ;;
23785 frv*-*-*)
23786 conftest_s='
23787 .section ".tdata","awT",@progbits
23788 x: .long 25
23789 .text
23790 call #gettlsoff(x)'
23791 tls_first_major=2
23792 tls_first_minor=14
23793 ;;
23794 hppa*-*-linux*)
23795 conftest_s='
23796 t1: .reg %r20
23797 t2: .reg %r21
23798 gp: .reg %r19
23799 .section ".tdata","awT",@progbits
23800 foo: .long 25
23801 .text
23802 .align 4
23803 addil LT%foo-$tls_gdidx$,gp
23804 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23805 b __tls_get_addr
23806 nop
23807 addil LT%foo-$tls_ldidx$,gp
23808 b __tls_get_addr
23809 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23810 addil LR%foo-$tls_dtpoff$,%ret0
23811 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23812 mfctl %cr27,%t1
23813 addil LT%foo-$tls_ieoff$,gp
23814 ldw RT%foo-$tls_ieoff$(%r1),%t2
23815 add %t1,%t2,%t3
23816 mfctl %cr27,%t1
23817 addil LR%foo-$tls_leoff$,%t1
23818 ldo RR%foo-$tls_leoff$(%r1),%t2'
23819 tls_first_major=2
23820 tls_first_minor=15
23821 tls_as_opt=--fatal-warnings
23822 ;;
23823 arm*-*-*)
23824 conftest_s='
23825 .section ".tdata","awT",%progbits
23826 foo: .long 25
23827 .text
23828 .word foo(gottpoff)
23829 .word foo(tpoff)
23830 .word foo(tlsgd)
23831 .word foo(tlsldm)
23832 .word foo(tlsldo)'
23833 tls_first_major=2
23834 tls_first_minor=17
23835 ;;
23836 i[34567]86-*-* | x86_64-*-*)
23837 case "$target" in
23838 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23839 on_solaris=yes
23840 ;;
23841 *)
23842 on_solaris=no
23843 ;;
23844 esac
23845 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23846 conftest_s='
23847 .section .tdata,"awt",@progbits'
23848 tls_first_major=0
23849 tls_first_minor=0
23850 tls_section_flag=t
23851
23852 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23853
23854 else
23855 conftest_s='
23856 .section ".tdata","awT",@progbits'
23857 tls_first_major=2
23858 tls_first_minor=14
23859 tls_section_flag=T
23860 tls_as_opt="--fatal-warnings"
23861 fi
23862 case "$target" in
23863 i[34567]86-*-*)
23864 conftest_s="$conftest_s
23865 foo: .long 25
23866 .text
23867 movl %gs:0, %eax
23868 leal foo@tlsgd(,%ebx,1), %eax
23869 leal foo@tlsldm(%ebx), %eax
23870 leal foo@dtpoff(%eax), %edx
23871 movl foo@gottpoff(%ebx), %eax
23872 subl foo@gottpoff(%ebx), %eax
23873 addl foo@gotntpoff(%ebx), %eax
23874 movl foo@indntpoff, %eax
23875 movl \$foo@tpoff, %eax
23876 subl \$foo@tpoff, %eax
23877 leal foo@ntpoff(%ecx), %eax"
23878 ;;
23879 x86_64-*-*)
23880 if test x$on_solaris = xyes; then
23881 case $gas_flag in
23882 yes) tls_as_opt="$tls_as_opt --64" ;;
23883 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23884 esac
23885 fi
23886 conftest_s="$conftest_s
23887 foo: .long 25
23888 .text
23889 movq %fs:0, %rax
23890 leaq foo@tlsgd(%rip), %rdi
23891 leaq foo@tlsld(%rip), %rdi
23892 leaq foo@dtpoff(%rax), %rdx
23893 movq foo@gottpoff(%rip), %rax
23894 movq \$foo@tpoff, %rax"
23895 ;;
23896 esac
23897 ;;
23898 ia64-*-*)
23899 conftest_s='
23900 .section ".tdata","awT",@progbits
23901 foo: data8 25
23902 .text
23903 addl r16 = @ltoff(@dtpmod(foo#)), gp
23904 addl r17 = @ltoff(@dtprel(foo#)), gp
23905 addl r18 = @ltoff(@tprel(foo#)), gp
23906 addl r19 = @dtprel(foo#), gp
23907 adds r21 = @dtprel(foo#), r13
23908 movl r23 = @dtprel(foo#)
23909 addl r20 = @tprel(foo#), gp
23910 adds r22 = @tprel(foo#), r13
23911 movl r24 = @tprel(foo#)'
23912 tls_first_major=2
23913 tls_first_minor=13
23914 tls_as_opt=--fatal-warnings
23915 ;;
23916 microblaze*-*-*)
23917 conftest_s='
23918 .section .tdata,"awT",@progbits
23919 x:
23920 .word 2
23921 .text
23922 addik r5,r20,x@TLSGD
23923 addik r5,r20,x@TLSLDM'
23924 tls_first_major=2
23925 tls_first_minor=20
23926 tls_as_opt='--fatal-warnings'
23927 ;;
23928 mips*-*-*)
23929 conftest_s='
23930 .section .tdata,"awT",@progbits
23931 x:
23932 .word 2
23933 .text
23934 addiu $4, $28, %tlsgd(x)
23935 addiu $4, $28, %tlsldm(x)
23936 lui $4, %dtprel_hi(x)
23937 addiu $4, $4, %dtprel_lo(x)
23938 lw $4, %gottprel(x)($28)
23939 lui $4, %tprel_hi(x)
23940 addiu $4, $4, %tprel_lo(x)'
23941 tls_first_major=2
23942 tls_first_minor=16
23943 tls_as_opt='-32 --fatal-warnings'
23944 ;;
23945 m68k-*-*)
23946 conftest_s='
23947 .section .tdata,"awT",@progbits
23948 x:
23949 .word 2
23950 .text
23951 foo:
23952 move.l x@TLSGD(%a5),%a0
23953 move.l x@TLSLDM(%a5),%a0
23954 move.l x@TLSLDO(%a5),%a0
23955 move.l x@TLSIE(%a5),%a0
23956 move.l x@TLSLE(%a5),%a0'
23957 tls_first_major=2
23958 tls_first_minor=19
23959 tls_as_opt='--fatal-warnings'
23960 ;;
23961 nios2-*-*)
23962 conftest_s='
23963 .section ".tdata","awT",@progbits'
23964 tls_first_major=2
23965 tls_first_minor=23
23966 tls_as_opt="--fatal-warnings"
23967 ;;
23968 aarch64*-*-*)
23969 conftest_s='
23970 .section ".tdata","awT",%progbits
23971 foo: .long 25
23972 .text
23973 adrp x0, :tlsgd:x
23974 add x0, x0, #:tlsgd_lo12:x
23975 bl __tls_get_addr
23976 nop'
23977 tls_first_major=2
23978 tls_first_minor=20
23979 tls_as_opt='--fatal-warnings'
23980 ;;
23981 powerpc-ibm-aix*)
23982 conftest_s='
23983 .extern __get_tpointer
23984 .toc
23985 LC..1:
23986 .tc a[TC],a[TL]@le
23987 .csect .text[PR]
23988 .tlstest:
23989 lwz 9,LC..1(2)
23990 bla __get_tpointer
23991 lwzx 3,9,3
23992 .globl a
23993 .csect a[TL],4
23994 a:
23995 .space 4'
23996 tls_first_major=0
23997 tls_first_minor=0
23998 ;;
23999 powerpc64*-*-*)
24000 conftest_s='
24001 .section ".tdata","awT",@progbits
24002 .align 3
24003 ld0: .space 8
24004 ld1: .space 8
24005 x1: .space 8
24006 x2: .space 8
24007 x3: .space 8
24008 .text
24009 addi 3,2,ld0@got@tlsgd
24010 bl .__tls_get_addr
24011 nop
24012 addi 3,2,ld1@toc
24013 bl .__tls_get_addr
24014 nop
24015 addi 3,2,x1@got@tlsld
24016 bl .__tls_get_addr
24017 nop
24018 addi 9,3,x1@dtprel
24019 bl .__tls_get_addr
24020 nop
24021 addis 9,3,x2@dtprel@ha
24022 addi 9,9,x2@dtprel@l
24023 bl .__tls_get_addr
24024 nop
24025 ld 9,x3@got@dtprel(2)
24026 add 9,9,3
24027 bl .__tls_get_addr
24028 nop'
24029 tls_first_major=2
24030 tls_first_minor=14
24031 tls_as_opt="-a64 --fatal-warnings"
24032 ;;
24033 powerpc*-*-*)
24034 conftest_s='
24035 .section ".tdata","awT",@progbits
24036 .align 2
24037 ld0: .space 4
24038 ld1: .space 4
24039 x1: .space 4
24040 x2: .space 4
24041 x3: .space 4
24042 .text
24043 addi 3,31,ld0@got@tlsgd
24044 bl __tls_get_addr
24045 addi 3,31,x1@got@tlsld
24046 bl __tls_get_addr
24047 addi 9,3,x1@dtprel
24048 addis 9,3,x2@dtprel@ha
24049 addi 9,9,x2@dtprel@l
24050 lwz 9,x3@got@tprel(31)
24051 add 9,9,x@tls
24052 addi 9,2,x1@tprel
24053 addis 9,2,x2@tprel@ha
24054 addi 9,9,x2@tprel@l'
24055 tls_first_major=2
24056 tls_first_minor=14
24057 tls_as_opt="-a32 --fatal-warnings"
24058 ;;
24059 s390-*-*)
24060 conftest_s='
24061 .section ".tdata","awT",@progbits
24062 foo: .long 25
24063 .text
24064 .long foo@TLSGD
24065 .long foo@TLSLDM
24066 .long foo@DTPOFF
24067 .long foo@NTPOFF
24068 .long foo@GOTNTPOFF
24069 .long foo@INDNTPOFF
24070 l %r1,foo@GOTNTPOFF(%r12)
24071 l %r1,0(%r1):tls_load:foo
24072 bas %r14,0(%r1,%r13):tls_gdcall:foo
24073 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24074 tls_first_major=2
24075 tls_first_minor=14
24076 tls_as_opt="-m31 --fatal-warnings"
24077 ;;
24078 s390x-*-*)
24079 conftest_s='
24080 .section ".tdata","awT",@progbits
24081 foo: .long 25
24082 .text
24083 .quad foo@TLSGD
24084 .quad foo@TLSLDM
24085 .quad foo@DTPOFF
24086 .quad foo@NTPOFF
24087 .quad foo@GOTNTPOFF
24088 lg %r1,foo@GOTNTPOFF(%r12)
24089 larl %r1,foo@INDNTPOFF
24090 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24091 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24092 tls_first_major=2
24093 tls_first_minor=14
24094 tls_as_opt="-m64 -Aesame --fatal-warnings"
24095 ;;
24096 sh-*-* | sh[123456789lbe]*-*-*)
24097 conftest_s='
24098 .section ".tdata","awT",@progbits
24099 foo: .long 25
24100 .text
24101 .long foo@TLSGD
24102 .long foo@TLSLDM
24103 .long foo@DTPOFF
24104 .long foo@GOTTPOFF
24105 .long foo@TPOFF'
24106 tls_first_major=2
24107 tls_first_minor=13
24108 tls_as_opt=--fatal-warnings
24109 ;;
24110 sparc*-*-*)
24111 case "$target" in
24112 sparc*-sun-solaris2.*)
24113 on_solaris=yes
24114 ;;
24115 *)
24116 on_solaris=no
24117 ;;
24118 esac
24119 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24120 conftest_s='
24121 .section ".tdata",#alloc,#write,#tls'
24122 tls_first_major=0
24123 tls_first_minor=0
24124 else
24125 conftest_s='
24126 .section ".tdata","awT",@progbits'
24127 tls_first_major=2
24128 tls_first_minor=14
24129 tls_as_opt="-32 --fatal-warnings"
24130 fi
24131 conftest_s="$conftest_s
24132 foo: .long 25
24133 .text
24134 sethi %tgd_hi22(foo), %o0
24135 add %o0, %tgd_lo10(foo), %o1
24136 add %l7, %o1, %o0, %tgd_add(foo)
24137 call __tls_get_addr, %tgd_call(foo)
24138 sethi %tldm_hi22(foo), %l1
24139 add %l1, %tldm_lo10(foo), %l2
24140 add %l7, %l2, %o0, %tldm_add(foo)
24141 call __tls_get_addr, %tldm_call(foo)
24142 sethi %tldo_hix22(foo), %l3
24143 xor %l3, %tldo_lox10(foo), %l4
24144 add %o0, %l4, %l5, %tldo_add(foo)
24145 sethi %tie_hi22(foo), %o3
24146 add %o3, %tie_lo10(foo), %o3
24147 ld [%l7 + %o3], %o2, %tie_ld(foo)
24148 add %g7, %o2, %o4, %tie_add(foo)
24149 sethi %tle_hix22(foo), %l1
24150 xor %l1, %tle_lox10(foo), %o5
24151 ld [%g7 + %o5], %o1"
24152 ;;
24153 tilepro*-*-*)
24154 conftest_s='
24155 .section ".tdata","awT",@progbits
24156 foo: .long 25
24157 .text
24158 addli r0, zero, tls_gd(foo)
24159 auli r0, zero, tls_gd_ha16(foo)
24160 addli r0, r0, tls_gd_lo16(foo)
24161 jal __tls_get_addr
24162 addli r0, zero, tls_ie(foo)
24163 auli r0, r0, tls_ie_ha16(foo)
24164 addli r0, r0, tls_ie_lo16(foo)'
24165 tls_first_major=2
24166 tls_first_minor=22
24167 tls_as_opt="--fatal-warnings"
24168 ;;
24169 tilegx*-*-*)
24170 conftest_s='
24171 .section ".tdata","awT",@progbits
24172 foo: .long 25
24173 .text
24174 shl16insli r0, zero, hw0_last_tls_gd(foo)
24175 shl16insli r0, zero, hw1_last_tls_gd(foo)
24176 shl16insli r0, r0, hw0_tls_gd(foo)
24177 jal __tls_get_addr
24178 shl16insli r0, zero, hw1_last_tls_ie(foo)
24179 shl16insli r0, r0, hw0_tls_ie(foo)'
24180 tls_first_major=2
24181 tls_first_minor=22
24182 tls_as_opt="--fatal-warnings"
24183 ;;
24184 xtensa*-*-*)
24185 conftest_s='
24186 .section ".tdata","awT",@progbits
24187 foo: .long 25
24188 .text
24189 movi a8, foo@TLSFUNC
24190 movi a10, foo@TLSARG
24191 callx8.tls a8, foo@TLSCALL'
24192 tls_first_major=2
24193 tls_first_minor=19
24194 ;;
24195 esac
24196 set_have_as_tls=no
24197 if test "x$enable_tls" = xno ; then
24198 : # TLS explicitly disabled.
24199 elif test "x$enable_tls" = xyes ; then
24200 set_have_as_tls=yes # TLS explicitly enabled.
24201 elif test -z "$tls_first_major"; then
24202 : # If we don't have a check, assume no support.
24203 else
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24205 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24206 if test "${gcc_cv_as_tls+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24208 else
24209 gcc_cv_as_tls=no
24210 if test $in_tree_gas = yes; then
24211 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24212 then gcc_cv_as_tls=yes
24213 fi
24214 elif test x$gcc_cv_as != x; then
24215 $as_echo "$conftest_s" > conftest.s
24216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24222 then
24223 gcc_cv_as_tls=yes
24224 else
24225 echo "configure: failed program was" >&5
24226 cat conftest.s >&5
24227 fi
24228 rm -f conftest.o conftest.s
24229 fi
24230 fi
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24232 $as_echo "$gcc_cv_as_tls" >&6; }
24233 if test $gcc_cv_as_tls = yes; then
24234 set_have_as_tls=yes
24235 fi
24236 fi
24237 if test $set_have_as_tls = yes ; then
24238
24239 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24240
24241 fi
24242
24243 # Target-specific assembler checks.
24244
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24246 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24247 gcc_cv_ld_static_dynamic=no
24248 gcc_cv_ld_static_option='-Bstatic'
24249 gcc_cv_ld_dynamic_option='-Bdynamic'
24250 if test $in_tree_ld = yes ; then
24251 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
24252 gcc_cv_ld_static_dynamic=yes
24253 fi
24254 elif test x$gcc_cv_ld != x; then
24255 # Check if linker supports -Bstatic/-Bdynamic option
24256 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24257 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24258 gcc_cv_ld_static_dynamic=yes
24259 else
24260 case "$target" in
24261 # AIX ld uses -b flags
24262 *-*-aix4.[23]* | *-*-aix[5-9]*)
24263 gcc_cv_ld_static_dynamic=yes
24264 gcc_cv_ld_static_option="-bstatic"
24265 gcc_cv_ld_dynamic_option="-bdynamic"
24266 ;;
24267 # HP-UX ld uses -a flags to select between shared and archive.
24268 *-*-hpux*)
24269 if test x"$gnu_ld" = xno; then
24270 gcc_cv_ld_static_dynamic=yes
24271 gcc_cv_ld_static_option="-aarchive_shared"
24272 gcc_cv_ld_dynamic_option="-adefault"
24273 fi
24274 ;;
24275 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24276 *-*-solaris2*)
24277 gcc_cv_ld_static_dynamic=yes
24278 ;;
24279 esac
24280 fi
24281 fi
24282 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24283
24284 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24285
24286
24287 cat >>confdefs.h <<_ACEOF
24288 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24289 _ACEOF
24290
24291
24292 cat >>confdefs.h <<_ACEOF
24293 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24294 _ACEOF
24295
24296 fi
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24298 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24299
24300 if test x"$demangler_in_ld" = xyes; then
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24302 $as_echo_n "checking linker --demangle support... " >&6; }
24303 gcc_cv_ld_demangle=no
24304 if test $in_tree_ld = yes; then
24305 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 \
24306 gcc_cv_ld_demangle=yes
24307 fi
24308 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24309 # Check if the GNU linker supports --demangle option
24310 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24311 gcc_cv_ld_demangle=yes
24312 fi
24313 fi
24314 if test x"$gcc_cv_ld_demangle" = xyes; then
24315
24316 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24317
24318 fi
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24320 $as_echo "$gcc_cv_ld_demangle" >&6; }
24321 fi
24322
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24324 $as_echo_n "checking linker plugin support... " >&6; }
24325 gcc_cv_lto_plugin=0
24326 if test -f liblto_plugin.la; then
24327 save_ld_ver="$ld_ver"
24328 save_ld_vers_major="$ld_vers_major"
24329 save_ld_vers_minor="$ld_vers_minor"
24330 save_ld_is_gold="$ld_is_gold"
24331
24332 ld_is_gold=no
24333
24334 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24335 ld_ver="GNU ld"
24336 # FIXME: ld_is_gold?
24337 ld_vers_major="$gcc_cv_gld_major_version"
24338 ld_vers_minor="$gcc_cv_gld_minor_version"
24339 else
24340 # Determine plugin linker version.
24341 # FIXME: Partial duplicate from above, generalize.
24342 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24343 if echo "$ld_ver" | grep GNU > /dev/null; then
24344 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24345 ld_is_gold=yes
24346 ld_vers=`echo $ld_ver | sed -n \
24347 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24348 else
24349 ld_vers=`echo $ld_ver | sed -n \
24350 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24351 fi
24352 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24353 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24354 fi
24355 fi
24356
24357 # Determine plugin support.
24358 if echo "$ld_ver" | grep GNU > /dev/null; then
24359 # Require GNU ld or gold 2.21+ for plugin support by default.
24360 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24361 gcc_cv_lto_plugin=2
24362 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24363 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24364 gcc_cv_lto_plugin=1
24365 fi
24366 fi
24367
24368 ld_ver="$save_ld_ver"
24369 ld_vers_major="$save_ld_vers_major"
24370 ld_vers_minor="$save_ld_vers_minor"
24371 ld_is_gold="$save_ld_is_gold"
24372 fi
24373
24374 cat >>confdefs.h <<_ACEOF
24375 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24376 _ACEOF
24377
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24379 $as_echo "$gcc_cv_lto_plugin" >&6; }
24380
24381 case "$target" in
24382 aarch64*-*-*)
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24384 $as_echo_n "checking assembler for -mabi option... " >&6; }
24385 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24386 $as_echo_n "(cached) " >&6
24387 else
24388 gcc_cv_as_aarch64_mabi=no
24389 if test x$gcc_cv_as != x; then
24390 $as_echo '.text' > conftest.s
24391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24394 ac_status=$?
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24397 then
24398 gcc_cv_as_aarch64_mabi=yes
24399 else
24400 echo "configure: failed program was" >&5
24401 cat conftest.s >&5
24402 fi
24403 rm -f conftest.o conftest.s
24404 fi
24405 fi
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24407 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24408
24409 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24410
24411 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24412
24413 else
24414 if test x$with_abi = xilp32; then
24415 as_fn_error "Assembler does not support -mabi=ilp32.\
24416 Upgrade the Assembler." "$LINENO" 5
24417 fi
24418 if test x"$with_multilib_list" = xdefault; then
24419 TM_MULTILIB_CONFIG=lp64
24420 else
24421 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24422 for aarch64_multilib in ${aarch64_multilibs}; do
24423 case ${aarch64_multilib} in
24424 ilp32)
24425 as_fn_error "Assembler does not support -mabi=ilp32.\
24426 Upgrade the Assembler." "$LINENO" 5
24427 ;;
24428 *)
24429 ;;
24430 esac
24431 done
24432 fi
24433 fi
24434 # Check if we have binutils support for relocations types needed by -fpic
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24436 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24437 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 gcc_cv_as_aarch64_picreloc=no
24441 if test x$gcc_cv_as != x; then
24442 $as_echo '
24443 .text
24444 ldr x0, [x2, #:gotpage_lo15:globalsym]
24445 ' > conftest.s
24446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24448 (eval $ac_try) 2>&5
24449 ac_status=$?
24450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24451 test $ac_status = 0; }; }
24452 then
24453 gcc_cv_as_aarch64_picreloc=yes
24454 else
24455 echo "configure: failed program was" >&5
24456 cat conftest.s >&5
24457 fi
24458 rm -f conftest.o conftest.s
24459 fi
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24462 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24463 if test $gcc_cv_as_aarch64_picreloc = yes; then
24464
24465 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24466
24467 fi
24468 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24469 # Check whether --enable-fix-cortex-a53-835769 was given.
24470 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24471 enableval=$enable_fix_cortex_a53_835769;
24472 case $enableval in
24473 yes)
24474 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24475 ;;
24476 no)
24477 ;;
24478 *)
24479 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24480 Valid choices are 'yes' and 'no'." "$LINENO" 5
24481 ;;
24482
24483 esac
24484
24485 fi
24486
24487 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24488 # Check whether --enable-fix-cortex-a53-843419 was given.
24489 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24490 enableval=$enable_fix_cortex_a53_843419;
24491 case $enableval in
24492 yes)
24493 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24494 ;;
24495 no)
24496 ;;
24497 *)
24498 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24499 Valid choices are 'yes' and 'no'." "$LINENO" 5
24500 ;;
24501
24502 esac
24503
24504 fi
24505
24506 ;;
24507
24508 # All TARGET_ABI_OSF targets.
24509 alpha*-*-linux* | alpha*-*-*bsd*)
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24511 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24512 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24513 $as_echo_n "(cached) " >&6
24514 else
24515 gcc_cv_as_alpha_explicit_relocs=no
24516 if test $in_tree_gas = yes; then
24517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24518 then gcc_cv_as_alpha_explicit_relocs=yes
24519 fi
24520 elif test x$gcc_cv_as != x; then
24521 $as_echo ' .set nomacro
24522 .text
24523 extbl $3, $2, $3 !lituse_bytoff!1
24524 ldq $2, a($29) !literal!1
24525 ldq $4, b($29) !literal!2
24526 ldq_u $3, 0($2) !lituse_base!1
24527 ldq $27, f($29) !literal!5
24528 jsr $26, ($27), f !lituse_jsr!5
24529 ldah $29, 0($26) !gpdisp!3
24530 lda $0, c($29) !gprel
24531 ldah $1, d($29) !gprelhigh
24532 lda $1, d($1) !gprellow
24533 lda $29, 0($29) !gpdisp!3' > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_alpha_explicit_relocs=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24545 fi
24546 rm -f conftest.o conftest.s
24547 fi
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24550 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24551 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24552
24553 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24554
24555 fi
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24557 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24558 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24559 $as_echo_n "(cached) " >&6
24560 else
24561 gcc_cv_as_alpha_jsrdirect_relocs=no
24562 if test $in_tree_gas = yes; then
24563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24564 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24565 fi
24566 elif test x$gcc_cv_as != x; then
24567 $as_echo ' .set nomacro
24568 .text
24569 ldq $27, a($29) !literal!1
24570 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24574 ac_status=$?
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; }
24577 then
24578 gcc_cv_as_alpha_jsrdirect_relocs=yes
24579 else
24580 echo "configure: failed program was" >&5
24581 cat conftest.s >&5
24582 fi
24583 rm -f conftest.o conftest.s
24584 fi
24585 fi
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24587 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24588 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24589
24590 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24591
24592 fi
24593 ;;
24594
24595 avr-*-*)
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24597 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24598 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_avr_mlink_relax=no
24602 if test x$gcc_cv_as != x; then
24603 $as_echo '.text' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24610 then
24611 gcc_cv_as_avr_mlink_relax=yes
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24615 fi
24616 rm -f conftest.o conftest.s
24617 fi
24618 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24620 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24621 if test $gcc_cv_as_avr_mlink_relax = yes; then
24622
24623 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24624
24625 fi
24626
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24628 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24629 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24631 else
24632 gcc_cv_as_avr_mrmw=no
24633 if test x$gcc_cv_as != x; then
24634 $as_echo '.text' > conftest.s
24635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640 test $ac_status = 0; }; }
24641 then
24642 gcc_cv_as_avr_mrmw=yes
24643 else
24644 echo "configure: failed program was" >&5
24645 cat conftest.s >&5
24646 fi
24647 rm -f conftest.o conftest.s
24648 fi
24649 fi
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24651 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24652 if test $gcc_cv_as_avr_mrmw = yes; then
24653
24654 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24655
24656 fi
24657 ;;
24658
24659 cris-*-*)
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24661 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24662 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24663 $as_echo_n "(cached) " >&6
24664 else
24665 gcc_cv_as_cris_no_mul_bug=no
24666 if test $in_tree_gas = yes; then
24667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24668 then gcc_cv_as_cris_no_mul_bug=yes
24669 fi
24670 elif test x$gcc_cv_as != x; then
24671 $as_echo '.text' > conftest.s
24672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24677 test $ac_status = 0; }; }
24678 then
24679 gcc_cv_as_cris_no_mul_bug=yes
24680 else
24681 echo "configure: failed program was" >&5
24682 cat conftest.s >&5
24683 fi
24684 rm -f conftest.o conftest.s
24685 fi
24686 fi
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24688 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24689 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24690
24691 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24692
24693 fi
24694 ;;
24695
24696 sparc*-*-*)
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24698 $as_echo_n "checking assembler for .register... " >&6; }
24699 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24701 else
24702 gcc_cv_as_sparc_register_op=no
24703 if test x$gcc_cv_as != x; then
24704 $as_echo '.register %g2, #scratch' > conftest.s
24705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24707 (eval $ac_try) 2>&5
24708 ac_status=$?
24709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24710 test $ac_status = 0; }; }
24711 then
24712 gcc_cv_as_sparc_register_op=yes
24713 else
24714 echo "configure: failed program was" >&5
24715 cat conftest.s >&5
24716 fi
24717 rm -f conftest.o conftest.s
24718 fi
24719 fi
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24721 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24722 if test $gcc_cv_as_sparc_register_op = yes; then
24723
24724 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24725
24726 fi
24727
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24729 $as_echo_n "checking assembler for -relax option... " >&6; }
24730 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24731 $as_echo_n "(cached) " >&6
24732 else
24733 gcc_cv_as_sparc_relax=no
24734 if test x$gcc_cv_as != x; then
24735 $as_echo '.text' > conftest.s
24736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24741 test $ac_status = 0; }; }
24742 then
24743 gcc_cv_as_sparc_relax=yes
24744 else
24745 echo "configure: failed program was" >&5
24746 cat conftest.s >&5
24747 fi
24748 rm -f conftest.o conftest.s
24749 fi
24750 fi
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24752 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24753 if test $gcc_cv_as_sparc_relax = yes; then
24754
24755 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24756
24757 fi
24758
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24760 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24761 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_sparc_gotdata_op=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo '.text
24767 .align 4
24768 foo:
24769 nop
24770 bar:
24771 sethi %gdop_hix22(foo), %g1
24772 xor %g1, %gdop_lox10(foo), %g1
24773 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24780 then
24781 if test x$gcc_cv_ld != x \
24782 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24783 if test x$gcc_cv_objdump != x; then
24784 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24785 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24786 gcc_cv_as_sparc_gotdata_op=no
24787 else
24788 gcc_cv_as_sparc_gotdata_op=yes
24789 fi
24790 fi
24791 fi
24792 rm -f conftest
24793 else
24794 echo "configure: failed program was" >&5
24795 cat conftest.s >&5
24796 fi
24797 rm -f conftest.o conftest.s
24798 fi
24799 fi
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24801 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24802 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24803
24804 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24805
24806 fi
24807
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24809 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24810 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24812 else
24813 gcc_cv_as_sparc_ua_pcrel=no
24814 if test x$gcc_cv_as != x; then
24815 $as_echo '.text
24816 foo:
24817 nop
24818 .data
24819 .align 4
24820 .byte 0
24821 .uaword %r_disp32(foo)' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 if test x$gcc_cv_ld != x \
24830 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24831 gcc_cv_as_sparc_ua_pcrel=yes
24832 fi
24833 rm -f conftest
24834 else
24835 echo "configure: failed program was" >&5
24836 cat conftest.s >&5
24837 fi
24838 rm -f conftest.o conftest.s
24839 fi
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24842 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24843 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24844
24845 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24846
24847
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24849 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24850 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 gcc_cv_as_sparc_ua_pcrel_hidden=no
24854 if test x$gcc_cv_as != x; then
24855 $as_echo '.data
24856 .align 4
24857 .byte 0x31
24858 .uaword %r_disp32(foo)
24859 .byte 0x32, 0x33, 0x34
24860 .global foo
24861 .hidden foo
24862 foo:
24863 .skip 4' > conftest.s
24864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24870 then
24871 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24872 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24873 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24874 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24875 if $gcc_cv_objdump -R conftest 2> /dev/null \
24876 | grep 'DISP32' > /dev/null 2>&1; then
24877 :
24878 else
24879 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24880 fi
24881 fi
24882 rm -f conftest
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24886 fi
24887 rm -f conftest.o conftest.s
24888 fi
24889 fi
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24891 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24892 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24893
24894 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24895
24896 fi
24897
24898 fi # unaligned pcrel relocs
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24901 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24902 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 gcc_cv_as_sparc_offsetable_lo10=no
24906 if test x$gcc_cv_as != x; then
24907 $as_echo '.text
24908 or %g1, %lo(ab) + 12, %g1
24909 or %g1, %lo(ab + 12), %g1' > conftest.s
24910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; }
24916 then
24917 if test x$gcc_cv_objdump != x \
24918 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24919 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24920 gcc_cv_as_sparc_offsetable_lo10=yes
24921 fi
24922 else
24923 echo "configure: failed program was" >&5
24924 cat conftest.s >&5
24925 fi
24926 rm -f conftest.o conftest.s
24927 fi
24928 fi
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24930 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24931 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24932
24933 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24934
24935 fi
24936
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24938 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24939 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24940 $as_echo_n "(cached) " >&6
24941 else
24942 gcc_cv_as_sparc_fmaf=no
24943 if test x$gcc_cv_as != x; then
24944 $as_echo '.text
24945 .register %g2, #scratch
24946 .register %g3, #scratch
24947 .align 4
24948 fmaddd %f0, %f2, %f4, %f6
24949 addxccc %g1, %g2, %g3
24950 fsrl32 %f2, %f4, %f8
24951 fnaddd %f10, %f12, %f14' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_sparc_fmaf=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24963 fi
24964 rm -f conftest.o conftest.s
24965 fi
24966 fi
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24968 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24969 if test $gcc_cv_as_sparc_fmaf = yes; then
24970
24971 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24972
24973 fi
24974
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24976 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24977 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_sparc_sparc4=no
24981 if test x$gcc_cv_as != x; then
24982 $as_echo '.text
24983 .register %g2, #scratch
24984 .register %g3, #scratch
24985 .align 4
24986 cxbe %g2, %g3, 1f
24987 1: cwbneg %g2, %g3, 1f
24988 1: sha1
24989 md5
24990 aes_kexpand0 %f4, %f6, %f8
24991 des_round %f38, %f40, %f42, %f44
24992 camellia_f %f54, %f56, %f58, %f60
24993 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999 test $ac_status = 0; }; }
25000 then
25001 gcc_cv_as_sparc_sparc4=yes
25002 else
25003 echo "configure: failed program was" >&5
25004 cat conftest.s >&5
25005 fi
25006 rm -f conftest.o conftest.s
25007 fi
25008 fi
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25010 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25011 if test $gcc_cv_as_sparc_sparc4 = yes; then
25012
25013 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25014
25015 fi
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25018 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25019 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25022 gcc_cv_as_sparc_leon=no
25023 if test x$gcc_cv_as != x; then
25024 $as_echo '.text
25025 .register %g2, #scratch
25026 .register %g3, #scratch
25027 .align 4
25028 smac %g2, %g3, %g1
25029 umac %g2, %g3, %g1
25030 casa [%g2] 0xb, %g3, %g1' > conftest.s
25031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25037 then
25038 gcc_cv_as_sparc_leon=yes
25039 else
25040 echo "configure: failed program was" >&5
25041 cat conftest.s >&5
25042 fi
25043 rm -f conftest.o conftest.s
25044 fi
25045 fi
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25047 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25048 if test $gcc_cv_as_sparc_leon = yes; then
25049
25050 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25051
25052 fi
25053 ;;
25054
25055 i[34567]86-*-* | x86_64-*-*)
25056 case $target_os in
25057 cygwin*)
25058 # Full C++ conformance when using a shared libstdc++-v3 requires some
25059 # support from the Cygwin DLL, which in more recent versions exports
25060 # wrappers to aid in interposing and redirecting operators new, delete,
25061 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25062 # are configuring for a version of Cygwin that exports the wrappers.
25063 if test x$host = x$target && test x$host_cpu = xi686; then
25064 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25065 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25066 gcc_ac_cygwin_dll_wrappers=yes
25067 else
25068 gcc_ac_cygwin_dll_wrappers=no
25069 fi
25070
25071 else
25072 # Can't check presence of libc functions during cross-compile, so
25073 # we just have to assume we're building for an up-to-date target.
25074 gcc_ac_cygwin_dll_wrappers=yes
25075 fi
25076
25077 cat >>confdefs.h <<_ACEOF
25078 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25079 _ACEOF
25080
25081 esac
25082 case $target_os in
25083 cygwin* | pe | mingw32* | interix*)
25084 # Recent binutils allows the three-operand form of ".comm" on PE. This
25085 # definition is used unconditionally to initialise the default state of
25086 # the target option variable that governs usage of the feature.
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25088 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25089 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_comm_has_align=no
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25095 then gcc_cv_as_comm_has_align=yes
25096 fi
25097 elif test x$gcc_cv_as != x; then
25098 $as_echo '.comm foo,1,32' > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25105 then
25106 gcc_cv_as_comm_has_align=yes
25107 else
25108 echo "configure: failed program was" >&5
25109 cat conftest.s >&5
25110 fi
25111 rm -f conftest.o conftest.s
25112 fi
25113 fi
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25115 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25116
25117
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25120 _ACEOF
25121
25122 # Used for DWARF 2 in PE
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25124 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25125 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25127 else
25128 gcc_cv_as_ix86_pe_secrel32=no
25129 if test $in_tree_gas = yes; then
25130 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25131 then gcc_cv_as_ix86_pe_secrel32=yes
25132 fi
25133 elif test x$gcc_cv_as != x; then
25134 $as_echo '.text
25135 foo: nop
25136 .data
25137 .secrel32 foo' > conftest.s
25138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25140 (eval $ac_try) 2>&5
25141 ac_status=$?
25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25143 test $ac_status = 0; }; }
25144 then
25145 if test x$gcc_cv_ld != x \
25146 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25147 gcc_cv_as_ix86_pe_secrel32=yes
25148 fi
25149 rm -f conftest
25150 else
25151 echo "configure: failed program was" >&5
25152 cat conftest.s >&5
25153 fi
25154 rm -f conftest.o conftest.s
25155 fi
25156 fi
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25158 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25159 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25160
25161 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25162
25163 fi
25164 # Test if the assembler supports the extended form of the .section
25165 # directive that specifies section alignment. LTO support uses this,
25166 # but normally only after installation, so we warn but don't fail the
25167 # configure if LTO is enabled but the assembler does not support it.
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25169 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25170 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25171 $as_echo_n "(cached) " >&6
25172 else
25173 gcc_cv_as_section_has_align=no
25174 if test $in_tree_gas = yes; then
25175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25176 then gcc_cv_as_section_has_align=yes
25177 fi
25178 elif test x$gcc_cv_as != x; then
25179 $as_echo '.section lto_test,"dr0"' > conftest.s
25180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25182 (eval $ac_try) 2>&5
25183 ac_status=$?
25184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25185 test $ac_status = 0; }; }
25186 then
25187 gcc_cv_as_section_has_align=yes
25188 else
25189 echo "configure: failed program was" >&5
25190 cat conftest.s >&5
25191 fi
25192 rm -f conftest.o conftest.s
25193 fi
25194 fi
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25196 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25197
25198 if test x$gcc_cv_as_section_has_align != xyes; then
25199 case ",$enable_languages," in
25200 *,lto,*)
25201 { $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
25202 $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;}
25203 ;;
25204 esac
25205 fi
25206 ;;
25207 esac
25208
25209 # Test if the assembler supports the section flag 'e' for specifying
25210 # an excluded section.
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25212 $as_echo_n "checking assembler for .section with e... " >&6; }
25213 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 gcc_cv_as_section_has_e=no
25217 if test $in_tree_gas = yes; then
25218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25219 then gcc_cv_as_section_has_e=yes
25220 fi
25221 elif test x$gcc_cv_as != x; then
25222 $as_echo '.section foo1,"e"
25223 .byte 0,0,0,0' > conftest.s
25224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
25228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25229 test $ac_status = 0; }; }
25230 then
25231 gcc_cv_as_section_has_e=yes
25232 else
25233 echo "configure: failed program was" >&5
25234 cat conftest.s >&5
25235 fi
25236 rm -f conftest.o conftest.s
25237 fi
25238 fi
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25240 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25241
25242
25243 cat >>confdefs.h <<_ACEOF
25244 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25245 _ACEOF
25246
25247
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25249 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25250 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25251 $as_echo_n "(cached) " >&6
25252 else
25253 gcc_cv_as_ix86_filds=no
25254 if test x$gcc_cv_as != x; then
25255 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25262 then
25263 gcc_cv_as_ix86_filds=yes
25264 else
25265 echo "configure: failed program was" >&5
25266 cat conftest.s >&5
25267 fi
25268 rm -f conftest.o conftest.s
25269 fi
25270 fi
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25272 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25273 if test $gcc_cv_as_ix86_filds = yes; then
25274
25275 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25276
25277 fi
25278
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25280 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25281 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25283 else
25284 gcc_cv_as_ix86_fildq=no
25285 if test x$gcc_cv_as != x; then
25286 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25292 test $ac_status = 0; }; }
25293 then
25294 gcc_cv_as_ix86_fildq=yes
25295 else
25296 echo "configure: failed program was" >&5
25297 cat conftest.s >&5
25298 fi
25299 rm -f conftest.o conftest.s
25300 fi
25301 fi
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25303 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25304 if test $gcc_cv_as_ix86_fildq = yes; then
25305
25306 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25307
25308 fi
25309
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25311 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25312 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25314 else
25315 gcc_cv_as_ix86_cmov_sun_syntax=no
25316 if test x$gcc_cv_as != x; then
25317 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25321 ac_status=$?
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25324 then
25325 gcc_cv_as_ix86_cmov_sun_syntax=yes
25326 else
25327 echo "configure: failed program was" >&5
25328 cat conftest.s >&5
25329 fi
25330 rm -f conftest.o conftest.s
25331 fi
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25334 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25335 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25336
25337 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25338
25339 fi
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25342 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25343 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25345 else
25346 gcc_cv_as_ix86_ffreep=no
25347 if test x$gcc_cv_as != x; then
25348 $as_echo 'ffreep %st(1)' > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 gcc_cv_as_ix86_ffreep=yes
25357 else
25358 echo "configure: failed program was" >&5
25359 cat conftest.s >&5
25360 fi
25361 rm -f conftest.o conftest.s
25362 fi
25363 fi
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25365 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25366 if test $gcc_cv_as_ix86_ffreep = yes; then
25367
25368 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25369
25370 fi
25371
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25373 $as_echo_n "checking assembler for .quad directive... " >&6; }
25374 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 gcc_cv_as_ix86_quad=no
25378 if test x$gcc_cv_as != x; then
25379 $as_echo '.quad 0' > conftest.s
25380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25386 then
25387 gcc_cv_as_ix86_quad=yes
25388 else
25389 echo "configure: failed program was" >&5
25390 cat conftest.s >&5
25391 fi
25392 rm -f conftest.o conftest.s
25393 fi
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25396 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25397 if test $gcc_cv_as_ix86_quad = yes; then
25398
25399 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25400
25401 fi
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25404 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25405 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25406 $as_echo_n "(cached) " >&6
25407 else
25408 gcc_cv_as_ix86_sahf=no
25409 if test x$gcc_cv_as != x; then
25410 $as_echo '.code64
25411 sahf' > conftest.s
25412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25417 test $ac_status = 0; }; }
25418 then
25419 gcc_cv_as_ix86_sahf=yes
25420 else
25421 echo "configure: failed program was" >&5
25422 cat conftest.s >&5
25423 fi
25424 rm -f conftest.o conftest.s
25425 fi
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25428 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25429 if test $gcc_cv_as_ix86_sahf = yes; then
25430
25431 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25432
25433 fi
25434
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25436 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25437 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 gcc_cv_as_ix86_interunit_movq=no
25441 if test x$gcc_cv_as != x; then
25442 $as_echo '.code64
25443 movq %mm0, %rax
25444 movq %rax, %xmm0' > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 gcc_cv_as_ix86_interunit_movq=yes
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25456 fi
25457 rm -f conftest.o conftest.s
25458 fi
25459 fi
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25461 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25462
25463
25464 cat >>confdefs.h <<_ACEOF
25465 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25466 _ACEOF
25467
25468
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25470 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25471 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 gcc_cv_as_ix86_hle=no
25475 if test x$gcc_cv_as != x; then
25476 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25483 then
25484 gcc_cv_as_ix86_hle=yes
25485 else
25486 echo "configure: failed program was" >&5
25487 cat conftest.s >&5
25488 fi
25489 rm -f conftest.o conftest.s
25490 fi
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25493 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25494 if test $gcc_cv_as_ix86_hle = yes; then
25495
25496 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25497
25498 fi
25499
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25501 $as_echo_n "checking assembler for swap suffix... " >&6; }
25502 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25504 else
25505 gcc_cv_as_ix86_swap=no
25506 if test x$gcc_cv_as != x; then
25507 $as_echo 'movl.s %esp, %ebp' > conftest.s
25508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25514 then
25515 gcc_cv_as_ix86_swap=yes
25516 else
25517 echo "configure: failed program was" >&5
25518 cat conftest.s >&5
25519 fi
25520 rm -f conftest.o conftest.s
25521 fi
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25524 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25525 if test $gcc_cv_as_ix86_swap = yes; then
25526
25527 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25528
25529 fi
25530
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25532 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25533 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25535 else
25536 gcc_cv_as_ix86_diff_sect_delta=no
25537 if test x$gcc_cv_as != x; then
25538 $as_echo '.section .rodata
25539 .L1:
25540 .long .L2-.L1
25541 .long .L3-.L1
25542 .text
25543 .L3: nop
25544 .L2: nop' > conftest.s
25545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25551 then
25552 gcc_cv_as_ix86_diff_sect_delta=yes
25553 else
25554 echo "configure: failed program was" >&5
25555 cat conftest.s >&5
25556 fi
25557 rm -f conftest.o conftest.s
25558 fi
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25561 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25562 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25563
25564 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25565
25566 fi
25567
25568 # These two are used unconditionally by i386.[ch]; it is to be defined
25569 # to 1 if the feature is present, 0 otherwise.
25570 as_ix86_gotoff_in_data_opt=
25571 if test x$gas = xyes; then
25572 as_ix86_gotoff_in_data_opt="--32"
25573 fi
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25575 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25576 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578 else
25579 gcc_cv_as_ix86_gotoff_in_data=no
25580 if test $in_tree_gas = yes; then
25581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25582 then gcc_cv_as_ix86_gotoff_in_data=yes
25583 fi
25584 elif test x$gcc_cv_as != x; then
25585 $as_echo ' .text
25586 .L0:
25587 nop
25588 .data
25589 .long .L0@GOTOFF' > conftest.s
25590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25596 then
25597 gcc_cv_as_ix86_gotoff_in_data=yes
25598 else
25599 echo "configure: failed program was" >&5
25600 cat conftest.s >&5
25601 fi
25602 rm -f conftest.o conftest.s
25603 fi
25604 fi
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25606 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25607
25608
25609 cat >>confdefs.h <<_ACEOF
25610 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25611 _ACEOF
25612
25613
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25615 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25616 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25618 else
25619 gcc_cv_as_ix86_rep_lock_prefix=no
25620 if test x$gcc_cv_as != x; then
25621 $as_echo 'rep movsl
25622 rep ret
25623 rep nop
25624 rep bsf %ecx, %eax
25625 rep bsr %ecx, %eax
25626 lock addl %edi, (%eax,%esi)
25627 lock orl $0, (%esp)' > conftest.s
25628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25634 then
25635 gcc_cv_as_ix86_rep_lock_prefix=yes
25636 else
25637 echo "configure: failed program was" >&5
25638 cat conftest.s >&5
25639 fi
25640 rm -f conftest.o conftest.s
25641 fi
25642 fi
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25644 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25645 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25646
25647 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25648
25649 fi
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25652 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25653 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25654 $as_echo_n "(cached) " >&6
25655 else
25656 gcc_cv_as_ix86_ud2=no
25657 if test x$gcc_cv_as != x; then
25658 $as_echo 'ud2' > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_ix86_ud2=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25670 fi
25671 rm -f conftest.o conftest.s
25672 fi
25673 fi
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25675 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25676 if test $gcc_cv_as_ix86_ud2 = yes; then
25677
25678 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25679
25680 fi
25681
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25683 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25684 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25687 gcc_cv_as_ix86_tlsgdplt=no
25688 if test x$gcc_cv_as != x; then
25689 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 then
25697 if test x$gcc_cv_ld != x \
25698 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25699 gcc_cv_as_ix86_tlsgdplt=yes
25700 fi
25701 rm -f conftest
25702 else
25703 echo "configure: failed program was" >&5
25704 cat conftest.s >&5
25705 fi
25706 rm -f conftest.o conftest.s
25707 fi
25708 fi
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25710 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25711 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25712
25713 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25714
25715 fi
25716
25717 conftest_s='
25718 .section .tdata,"aw'$tls_section_flag'",@progbits
25719 tls_ld:
25720 .section .text,"ax",@progbits
25721 call tls_ld@tlsldmplt'
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25723 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25724 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25725 $as_echo_n "(cached) " >&6
25726 else
25727 gcc_cv_as_ix86_tlsldmplt=no
25728 if test x$gcc_cv_as != x; then
25729 $as_echo "$conftest_s" > conftest.s
25730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25736 then
25737 if test x$gcc_cv_ld != x \
25738 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25739 gcc_cv_as_ix86_tlsldmplt=yes
25740 fi
25741 rm -f conftest
25742 else
25743 echo "configure: failed program was" >&5
25744 cat conftest.s >&5
25745 fi
25746 rm -f conftest.o conftest.s
25747 fi
25748 fi
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25750 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25751
25752
25753 cat >>confdefs.h <<_ACEOF
25754 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25755 _ACEOF
25756
25757
25758 # Enforce 32-bit output with gas and gld.
25759 if test x$gas = xyes; then
25760 as_ix86_tls_ldm_opt="--32"
25761 fi
25762 if echo "$ld_ver" | grep GNU > /dev/null; then
25763 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25764 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25765 else
25766 ld_ix86_tls_ldm_opt="-melf_i386"
25767 fi
25768 fi
25769 conftest_s='
25770 .section .text,"ax",@progbits
25771 .globl _start
25772 .type _start, @function
25773 _start:
25774 leal value@tlsldm(%ebx), %eax
25775 call ___tls_get_addr@plt
25776
25777 .section .tdata,"aw'$tls_section_flag'",@progbits
25778 .type value, @object
25779 value:'
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25781 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25782 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_ix86_tlsldm=no
25786 if test x$gcc_cv_as != x; then
25787 $as_echo "$conftest_s" > conftest.s
25788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 then
25795 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25796 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25797 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25798 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25799 gcc_cv_as_ix86_tlsldm=yes
25800 fi
25801 fi
25802 rm -f conftest
25803 else
25804 echo "configure: failed program was" >&5
25805 cat conftest.s >&5
25806 fi
25807 rm -f conftest.o conftest.s
25808 fi
25809 fi
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25811 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25812
25813
25814 cat >>confdefs.h <<_ACEOF
25815 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25816 _ACEOF
25817
25818
25819 ;;
25820
25821 ia64*-*-*)
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25823 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25824 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25825 $as_echo_n "(cached) " >&6
25826 else
25827 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25828 if test $in_tree_gas = yes; then
25829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25830 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25831 fi
25832 elif test x$gcc_cv_as != x; then
25833 $as_echo ' .text
25834 addl r15 = @ltoffx(x#), gp
25835 ;;
25836 ld8.mov r16 = [r15], x#' > conftest.s
25837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }
25843 then
25844 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25845 else
25846 echo "configure: failed program was" >&5
25847 cat conftest.s >&5
25848 fi
25849 rm -f conftest.o conftest.s
25850 fi
25851 fi
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25853 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25854 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25855
25856 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25857
25858 fi
25859
25860 ;;
25861
25862 powerpc*-*-*)
25863 case $target in
25864 *-*-aix*) conftest_s=' .machine "pwr5"
25865 .csect .text[PR]
25866 mfcr 3,128';;
25867 *-*-darwin*)
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25869 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25870 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_machine_directive=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo ' .machine ppc7400' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_machine_directive=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25887 fi
25888 rm -f conftest.o conftest.s
25889 fi
25890 fi
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25892 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25893
25894 if test x$gcc_cv_as_machine_directive != xyes; then
25895 echo "*** This target requires an assembler supporting \".machine\"" >&2
25896 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25897 test x$build = x$target && exit 1
25898 fi
25899 conftest_s=' .text
25900 mfcr r3,128';;
25901 *) conftest_s=' .machine power4
25902 .text
25903 mfcr 3,128';;
25904 esac
25905
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25907 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25908 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_powerpc_mfcrf=no
25912 if test $in_tree_gas = yes; then
25913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25914 then gcc_cv_as_powerpc_mfcrf=yes
25915 fi
25916 elif test x$gcc_cv_as != x; then
25917 $as_echo "$conftest_s" > conftest.s
25918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25924 then
25925 gcc_cv_as_powerpc_mfcrf=yes
25926 else
25927 echo "configure: failed program was" >&5
25928 cat conftest.s >&5
25929 fi
25930 rm -f conftest.o conftest.s
25931 fi
25932 fi
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25934 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25935 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25936
25937 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25938
25939 fi
25940
25941 case $target in
25942 *-*-aix*) conftest_s=' .machine "pwr5"
25943 .csect .text[PR]
25944 popcntb 3,3';;
25945 *) conftest_s=' .machine power5
25946 .text
25947 popcntb 3,3';;
25948 esac
25949
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25951 $as_echo_n "checking assembler for popcntb support... " >&6; }
25952 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25953 $as_echo_n "(cached) " >&6
25954 else
25955 gcc_cv_as_powerpc_popcntb=no
25956 if test $in_tree_gas = yes; then
25957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25958 then gcc_cv_as_powerpc_popcntb=yes
25959 fi
25960 elif test x$gcc_cv_as != x; then
25961 $as_echo "$conftest_s" > conftest.s
25962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25968 then
25969 gcc_cv_as_powerpc_popcntb=yes
25970 else
25971 echo "configure: failed program was" >&5
25972 cat conftest.s >&5
25973 fi
25974 rm -f conftest.o conftest.s
25975 fi
25976 fi
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25978 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25979 if test $gcc_cv_as_powerpc_popcntb = yes; then
25980
25981 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25982
25983 fi
25984
25985 case $target in
25986 *-*-aix*) conftest_s=' .machine "pwr5x"
25987 .csect .text[PR]
25988 frin 1,1';;
25989 *) conftest_s=' .machine power5
25990 .text
25991 frin 1,1';;
25992 esac
25993
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25995 $as_echo_n "checking assembler for fp round support... " >&6; }
25996 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_powerpc_fprnd=no
26000 if test $in_tree_gas = yes; then
26001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26002 then gcc_cv_as_powerpc_fprnd=yes
26003 fi
26004 elif test x$gcc_cv_as != x; then
26005 $as_echo "$conftest_s" > conftest.s
26006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26011 test $ac_status = 0; }; }
26012 then
26013 gcc_cv_as_powerpc_fprnd=yes
26014 else
26015 echo "configure: failed program was" >&5
26016 cat conftest.s >&5
26017 fi
26018 rm -f conftest.o conftest.s
26019 fi
26020 fi
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26022 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26023 if test $gcc_cv_as_powerpc_fprnd = yes; then
26024
26025 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26026
26027 fi
26028
26029 case $target in
26030 *-*-aix*) conftest_s=' .machine "pwr6"
26031 .csect .text[PR]
26032 mffgpr 1,3';;
26033 *) conftest_s=' .machine power6
26034 .text
26035 mffgpr 1,3';;
26036 esac
26037
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26039 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26040 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26041 $as_echo_n "(cached) " >&6
26042 else
26043 gcc_cv_as_powerpc_mfpgpr=no
26044 if test $in_tree_gas = yes; then
26045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26046 then gcc_cv_as_powerpc_mfpgpr=yes
26047 fi
26048 elif test x$gcc_cv_as != x; then
26049 $as_echo "$conftest_s" > conftest.s
26050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; }
26056 then
26057 gcc_cv_as_powerpc_mfpgpr=yes
26058 else
26059 echo "configure: failed program was" >&5
26060 cat conftest.s >&5
26061 fi
26062 rm -f conftest.o conftest.s
26063 fi
26064 fi
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26066 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26067 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26068
26069 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26070
26071 fi
26072
26073 case $target in
26074 *-*-aix*) conftest_s=' .csect .text[PR]
26075 LCF..0:
26076 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26077 *-*-darwin*)
26078 conftest_s=' .text
26079 LCF0:
26080 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26081 *) conftest_s=' .text
26082 .LCF0:
26083 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26084 esac
26085
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26087 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26088 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26089 $as_echo_n "(cached) " >&6
26090 else
26091 gcc_cv_as_powerpc_rel16=no
26092 if test $in_tree_gas = yes; then
26093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26094 then gcc_cv_as_powerpc_rel16=yes
26095 fi
26096 elif test x$gcc_cv_as != x; then
26097 $as_echo "$conftest_s" > conftest.s
26098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26103 test $ac_status = 0; }; }
26104 then
26105 gcc_cv_as_powerpc_rel16=yes
26106 else
26107 echo "configure: failed program was" >&5
26108 cat conftest.s >&5
26109 fi
26110 rm -f conftest.o conftest.s
26111 fi
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26114 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26115 if test $gcc_cv_as_powerpc_rel16 = yes; then
26116
26117 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26118
26119 fi
26120
26121 case $target in
26122 *-*-aix*) conftest_s=' .machine "pwr6"
26123 .csect .text[PR]
26124 cmpb 3,4,5';;
26125 *) conftest_s=' .machine power6
26126 .text
26127 cmpb 3,4,5';;
26128 esac
26129
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26131 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26132 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26133 $as_echo_n "(cached) " >&6
26134 else
26135 gcc_cv_as_powerpc_cmpb=no
26136 if test $in_tree_gas = yes; then
26137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26138 then gcc_cv_as_powerpc_cmpb=yes
26139 fi
26140 elif test x$gcc_cv_as != x; then
26141 $as_echo "$conftest_s" > conftest.s
26142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26147 test $ac_status = 0; }; }
26148 then
26149 gcc_cv_as_powerpc_cmpb=yes
26150 else
26151 echo "configure: failed program was" >&5
26152 cat conftest.s >&5
26153 fi
26154 rm -f conftest.o conftest.s
26155 fi
26156 fi
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26158 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26159 if test $gcc_cv_as_powerpc_cmpb = yes; then
26160
26161 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26162
26163 fi
26164
26165 case $target in
26166 *-*-aix*) conftest_s=' .machine "pwr6"
26167 .csect .text[PR]
26168 dadd 1,2,3';;
26169 *) conftest_s=' .machine power6
26170 .text
26171 dadd 1,2,3';;
26172 esac
26173
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26175 $as_echo_n "checking assembler for decimal float support... " >&6; }
26176 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_powerpc_dfp=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26182 then gcc_cv_as_powerpc_dfp=yes
26183 fi
26184 elif test x$gcc_cv_as != x; then
26185 $as_echo "$conftest_s" > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_powerpc_dfp=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26197 fi
26198 rm -f conftest.o conftest.s
26199 fi
26200 fi
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26202 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26203 if test $gcc_cv_as_powerpc_dfp = yes; then
26204
26205 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26206
26207 fi
26208
26209 case $target in
26210 *-*-aix*) conftest_s=' .machine "pwr7"
26211 .csect .text[PR]
26212 lxvd2x 1,2,3';;
26213 *) conftest_s=' .machine power7
26214 .text
26215 lxvd2x 1,2,3';;
26216 esac
26217
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26219 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26220 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26222 else
26223 gcc_cv_as_powerpc_vsx=no
26224 if test $in_tree_gas = yes; then
26225 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26226 then gcc_cv_as_powerpc_vsx=yes
26227 fi
26228 elif test x$gcc_cv_as != x; then
26229 $as_echo "$conftest_s" > conftest.s
26230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235 test $ac_status = 0; }; }
26236 then
26237 gcc_cv_as_powerpc_vsx=yes
26238 else
26239 echo "configure: failed program was" >&5
26240 cat conftest.s >&5
26241 fi
26242 rm -f conftest.o conftest.s
26243 fi
26244 fi
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26246 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26247 if test $gcc_cv_as_powerpc_vsx = yes; then
26248
26249 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26250
26251 fi
26252
26253 case $target in
26254 *-*-aix*) conftest_s=' .machine "pwr7"
26255 .csect .text[PR]
26256 popcntd 3,3';;
26257 *) conftest_s=' .machine power7
26258 .text
26259 popcntd 3,3';;
26260 esac
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26263 $as_echo_n "checking assembler for popcntd support... " >&6; }
26264 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26265 $as_echo_n "(cached) " >&6
26266 else
26267 gcc_cv_as_powerpc_popcntd=no
26268 if test $in_tree_gas = yes; then
26269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26270 then gcc_cv_as_powerpc_popcntd=yes
26271 fi
26272 elif test x$gcc_cv_as != x; then
26273 $as_echo "$conftest_s" > conftest.s
26274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26277 ac_status=$?
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; }
26280 then
26281 gcc_cv_as_powerpc_popcntd=yes
26282 else
26283 echo "configure: failed program was" >&5
26284 cat conftest.s >&5
26285 fi
26286 rm -f conftest.o conftest.s
26287 fi
26288 fi
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26290 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26291 if test $gcc_cv_as_powerpc_popcntd = yes; then
26292
26293 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26294
26295 fi
26296
26297 case $target in
26298 *-*-aix*) conftest_s=' .machine "pwr8"
26299 .csect .text[PR]';;
26300 *) conftest_s=' .machine power8
26301 .text';;
26302 esac
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26305 $as_echo_n "checking assembler for power8 support... " >&6; }
26306 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26308 else
26309 gcc_cv_as_powerpc_power8=no
26310 if test $in_tree_gas = yes; then
26311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26312 then gcc_cv_as_powerpc_power8=yes
26313 fi
26314 elif test x$gcc_cv_as != x; then
26315 $as_echo "$conftest_s" > conftest.s
26316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26321 test $ac_status = 0; }; }
26322 then
26323 gcc_cv_as_powerpc_power8=yes
26324 else
26325 echo "configure: failed program was" >&5
26326 cat conftest.s >&5
26327 fi
26328 rm -f conftest.o conftest.s
26329 fi
26330 fi
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26332 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26333 if test $gcc_cv_as_powerpc_power8 = yes; then
26334
26335 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26336
26337 fi
26338
26339 case $target in
26340 *-*-aix*) conftest_s=' .machine "pwr9"
26341 .csect .text[PR]';;
26342 *) conftest_s=' .machine power9
26343 .text';;
26344 esac
26345
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26347 $as_echo_n "checking assembler for power9 support... " >&6; }
26348 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26349 $as_echo_n "(cached) " >&6
26350 else
26351 gcc_cv_as_powerpc_power9=no
26352 if test $in_tree_gas = yes; then
26353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26354 then gcc_cv_as_powerpc_power9=yes
26355 fi
26356 elif test x$gcc_cv_as != x; then
26357 $as_echo "$conftest_s" > conftest.s
26358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26363 test $ac_status = 0; }; }
26364 then
26365 gcc_cv_as_powerpc_power9=yes
26366 else
26367 echo "configure: failed program was" >&5
26368 cat conftest.s >&5
26369 fi
26370 rm -f conftest.o conftest.s
26371 fi
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26374 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26375 if test $gcc_cv_as_powerpc_power9 = yes; then
26376
26377 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26378
26379 fi
26380
26381 case $target in
26382 *-*-aix*) conftest_s=' .csect .text[PR]
26383 lwsync';;
26384 *) conftest_s=' .text
26385 lwsync';;
26386 esac
26387
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26389 $as_echo_n "checking assembler for lwsync support... " >&6; }
26390 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26391 $as_echo_n "(cached) " >&6
26392 else
26393 gcc_cv_as_powerpc_lwsync=no
26394 if test $in_tree_gas = yes; then
26395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26396 then gcc_cv_as_powerpc_lwsync=yes
26397 fi
26398 elif test x$gcc_cv_as != x; then
26399 $as_echo "$conftest_s" > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }
26406 then
26407 gcc_cv_as_powerpc_lwsync=yes
26408 else
26409 echo "configure: failed program was" >&5
26410 cat conftest.s >&5
26411 fi
26412 rm -f conftest.o conftest.s
26413 fi
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26416 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26417 if test $gcc_cv_as_powerpc_lwsync = yes; then
26418
26419 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26420
26421 fi
26422
26423 case $target in
26424 *-*-aix*) conftest_s=' .machine "476"
26425 .csect .text[PR]
26426 dci 0';;
26427 *) conftest_s=' .machine "476"
26428 .text
26429 dci 0';;
26430 esac
26431
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26433 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26434 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 gcc_cv_as_powerpc_dci=no
26438 if test $in_tree_gas = yes; then
26439 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26440 then gcc_cv_as_powerpc_dci=yes
26441 fi
26442 elif test x$gcc_cv_as != x; then
26443 $as_echo "$conftest_s" > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_powerpc_dci=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26455 fi
26456 rm -f conftest.o conftest.s
26457 fi
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26460 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26461 if test $gcc_cv_as_powerpc_dci = yes; then
26462
26463 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26464
26465 fi
26466
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26468 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26469 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26470 $as_echo_n "(cached) " >&6
26471 else
26472 gcc_cv_as_powerpc_gnu_attribute=no
26473 if test $in_tree_gas = yes; then
26474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26475 then gcc_cv_as_powerpc_gnu_attribute=yes
26476 fi
26477 elif test x$gcc_cv_as != x; then
26478 $as_echo '.gnu_attribute 4,1' > conftest.s
26479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; }
26485 then
26486 gcc_cv_as_powerpc_gnu_attribute=yes
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26490 fi
26491 rm -f conftest.o conftest.s
26492 fi
26493 fi
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26495 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26496 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26497
26498 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26499
26500 fi
26501
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26503 $as_echo_n "checking assembler for tls marker support... " >&6; }
26504 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26506 else
26507 gcc_cv_as_powerpc_tls_markers=no
26508 if test $in_tree_gas = yes; then
26509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26510 then gcc_cv_as_powerpc_tls_markers=yes
26511 fi
26512 elif test x$gcc_cv_as != x; then
26513 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26520 then
26521 gcc_cv_as_powerpc_tls_markers=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26525 fi
26526 rm -f conftest.o conftest.s
26527 fi
26528 fi
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26530 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26531 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26532
26533 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26534
26535 fi
26536
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26538 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26539 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26540 $as_echo_n "(cached) " >&6
26541 else
26542 gcc_cv_as_powerpc_entry_markers=no
26543 if test $in_tree_gas = yes; then
26544 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26545 then gcc_cv_as_powerpc_entry_markers=yes
26546 fi
26547 elif test x$gcc_cv_as != x; then
26548 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26551 (eval $ac_try) 2>&5
26552 ac_status=$?
26553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }; }
26555 then
26556 gcc_cv_as_powerpc_entry_markers=yes
26557 else
26558 echo "configure: failed program was" >&5
26559 cat conftest.s >&5
26560 fi
26561 rm -f conftest.o conftest.s
26562 fi
26563 fi
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26565 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26566 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26567
26568 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26569
26570 fi
26571
26572 case $target in
26573 *-*-aix*)
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26575 $as_echo_n "checking assembler for .ref support... " >&6; }
26576 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26577 $as_echo_n "(cached) " >&6
26578 else
26579 gcc_cv_as_aix_ref=no
26580 if test $in_tree_gas = yes; then
26581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26582 then gcc_cv_as_aix_ref=yes
26583 fi
26584 elif test x$gcc_cv_as != x; then
26585 $as_echo ' .csect stuff[rw]
26586 stuff:
26587 .long 1
26588 .extern sym
26589 .ref sym
26590 ' > conftest.s
26591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26596 test $ac_status = 0; }; }
26597 then
26598 gcc_cv_as_aix_ref=yes
26599 else
26600 echo "configure: failed program was" >&5
26601 cat conftest.s >&5
26602 fi
26603 rm -f conftest.o conftest.s
26604 fi
26605 fi
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26607 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26608 if test $gcc_cv_as_aix_ref = yes; then
26609
26610 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26611
26612 fi
26613 ;;
26614 esac
26615
26616 case $target in
26617 *-*-aix*)
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26619 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26620 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_aix_dwloc=no
26624 if test $in_tree_gas = yes; then
26625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26626 then gcc_cv_as_aix_dwloc=yes
26627 fi
26628 elif test x$gcc_cv_as != x; then
26629 $as_echo ' .dwsect 0xB0000
26630 ' > conftest.s
26631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26636 test $ac_status = 0; }; }
26637 then
26638 gcc_cv_as_aix_dwloc=yes
26639 else
26640 echo "configure: failed program was" >&5
26641 cat conftest.s >&5
26642 fi
26643 rm -f conftest.o conftest.s
26644 fi
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26647 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26648 if test $gcc_cv_as_aix_dwloc = yes; then
26649
26650 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26651
26652 fi
26653 ;;
26654 esac
26655 ;;
26656
26657 mips*-*-*)
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26659 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26660 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26661 $as_echo_n "(cached) " >&6
26662 else
26663 gcc_cv_as_mips_explicit_relocs=no
26664 if test $in_tree_gas = yes; then
26665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26666 then gcc_cv_as_mips_explicit_relocs=yes
26667 fi
26668 elif test x$gcc_cv_as != x; then
26669 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26675 test $ac_status = 0; }; }
26676 then
26677 gcc_cv_as_mips_explicit_relocs=yes
26678 else
26679 echo "configure: failed program was" >&5
26680 cat conftest.s >&5
26681 fi
26682 rm -f conftest.o conftest.s
26683 fi
26684 fi
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26686 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26687 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26688 if test x$target_cpu_default = x
26689 then target_cpu_default=MASK_EXPLICIT_RELOCS
26690 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26691 fi
26692 fi
26693
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26695 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26696 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26697 $as_echo_n "(cached) " >&6
26698 else
26699 gcc_cv_as_mips_no_shared=no
26700 if test $in_tree_gas = yes; then
26701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26702 then gcc_cv_as_mips_no_shared=yes
26703 fi
26704 elif test x$gcc_cv_as != x; then
26705 $as_echo 'nop' > conftest.s
26706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }
26712 then
26713 gcc_cv_as_mips_no_shared=yes
26714 else
26715 echo "configure: failed program was" >&5
26716 cat conftest.s >&5
26717 fi
26718 rm -f conftest.o conftest.s
26719 fi
26720 fi
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26722 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26723 if test $gcc_cv_as_mips_no_shared = yes; then
26724
26725 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26726
26727 fi
26728
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26730 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26731 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 gcc_cv_as_mips_gnu_attribute=no
26735 if test $in_tree_gas = yes; then
26736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26737 then gcc_cv_as_mips_gnu_attribute=yes
26738 fi
26739 elif test x$gcc_cv_as != x; then
26740 $as_echo '.gnu_attribute 4,1' > conftest.s
26741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26746 test $ac_status = 0; }; }
26747 then
26748 gcc_cv_as_mips_gnu_attribute=yes
26749 else
26750 echo "configure: failed program was" >&5
26751 cat conftest.s >&5
26752 fi
26753 rm -f conftest.o conftest.s
26754 fi
26755 fi
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26757 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26758 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26759
26760 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26761
26762 fi
26763
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26765 $as_echo_n "checking assembler for .module support... " >&6; }
26766 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26767 $as_echo_n "(cached) " >&6
26768 else
26769 gcc_cv_as_mips_dot_module=no
26770 if test x$gcc_cv_as != x; then
26771 $as_echo '.module mips2
26772 .module fp=xx' > conftest.s
26773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26775 (eval $ac_try) 2>&5
26776 ac_status=$?
26777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26778 test $ac_status = 0; }; }
26779 then
26780 gcc_cv_as_mips_dot_module=yes
26781 else
26782 echo "configure: failed program was" >&5
26783 cat conftest.s >&5
26784 fi
26785 rm -f conftest.o conftest.s
26786 fi
26787 fi
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26789 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26790 if test $gcc_cv_as_mips_dot_module = yes; then
26791
26792 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26793
26794 fi
26795 if test x$gcc_cv_as_mips_dot_module = xno \
26796 && test x$with_fp_32 != x; then
26797 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26798 fi
26799
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26801 $as_echo_n "checking assembler for .micromips support... " >&6; }
26802 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26803 $as_echo_n "(cached) " >&6
26804 else
26805 gcc_cv_as_micromips_support=no
26806 if test x$gcc_cv_as != x; then
26807 $as_echo '.set micromips' > conftest.s
26808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813 test $ac_status = 0; }; }
26814 then
26815 gcc_cv_as_micromips_support=yes
26816 else
26817 echo "configure: failed program was" >&5
26818 cat conftest.s >&5
26819 fi
26820 rm -f conftest.o conftest.s
26821 fi
26822 fi
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26824 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26825 if test $gcc_cv_as_micromips_support = yes; then
26826
26827 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26828
26829 fi
26830
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26832 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26833 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26834 $as_echo_n "(cached) " >&6
26835 else
26836 gcc_cv_as_mips_dtprelword=no
26837 if test $in_tree_gas = yes; then
26838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26839 then gcc_cv_as_mips_dtprelword=yes
26840 fi
26841 elif test x$gcc_cv_as != x; then
26842 $as_echo '.section .tdata,"awT",@progbits
26843 x:
26844 .word 2
26845 .text
26846 .dtprelword x+0x8000' > conftest.s
26847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26852 test $ac_status = 0; }; }
26853 then
26854 gcc_cv_as_mips_dtprelword=yes
26855 else
26856 echo "configure: failed program was" >&5
26857 cat conftest.s >&5
26858 fi
26859 rm -f conftest.o conftest.s
26860 fi
26861 fi
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26863 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26864 if test $gcc_cv_as_mips_dtprelword = yes; then
26865
26866 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26867
26868 fi
26869
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26871 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26872 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_mips_dspr1_mult=no
26876 if test x$gcc_cv_as != x; then
26877 $as_echo ' .set mips32r2
26878 .set nodspr2
26879 .set dsp
26880 madd $ac3,$4,$5
26881 maddu $ac3,$4,$5
26882 msub $ac3,$4,$5
26883 msubu $ac3,$4,$5
26884 mult $ac3,$4,$5
26885 multu $ac3,$4,$5' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26892 then
26893 gcc_cv_as_mips_dspr1_mult=yes
26894 else
26895 echo "configure: failed program was" >&5
26896 cat conftest.s >&5
26897 fi
26898 rm -f conftest.o conftest.s
26899 fi
26900 fi
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26902 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26903 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26904
26905 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26906
26907 fi
26908
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26910 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26911 gcc_cv_as_ld_jalr_reloc=no
26912 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26913 if test $in_tree_ld = yes ; then
26914 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 \
26915 && test $in_tree_ld_is_elf = yes; then
26916 gcc_cv_as_ld_jalr_reloc=yes
26917 fi
26918 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26919 echo ' .ent x' > conftest.s
26920 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26921 echo ' lw $25,%call16(y)($28)' >> conftest.s
26922 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26923 echo '1: jalr $25' >> conftest.s
26924 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26925 echo '1: jalr $25' >> conftest.s
26926 echo ' .end x' >> conftest.s
26927 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26928 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26929 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26930 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26931 gcc_cv_as_ld_jalr_reloc=yes
26932 fi
26933 fi
26934 rm -f conftest.*
26935 fi
26936 fi
26937 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26938 if test x$target_cpu_default = x; then
26939 target_cpu_default=MASK_RELAX_PIC_CALLS
26940 else
26941 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26942 fi
26943 fi
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26945 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26946
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26948 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26949 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26950 $as_echo_n "(cached) " >&6
26951 else
26952 gcc_cv_ld_mips_personality_relaxation=no
26953 if test $in_tree_ld = yes ; then
26954 if test "$gcc_cv_gld_major_version" -eq 2 \
26955 -a "$gcc_cv_gld_minor_version" -ge 21 \
26956 -o "$gcc_cv_gld_major_version" -gt 2; then
26957 gcc_cv_ld_mips_personality_relaxation=yes
26958 fi
26959 elif test x$gcc_cv_as != x \
26960 -a x$gcc_cv_ld != x \
26961 -a x$gcc_cv_readelf != x ; then
26962 cat > conftest.s <<EOF
26963 .cfi_startproc
26964 .cfi_personality 0x80,indirect_ptr
26965 .ent test
26966 test:
26967 nop
26968 .end test
26969 .cfi_endproc
26970
26971 .section .data,"aw",@progbits
26972 indirect_ptr:
26973 .dc.a personality
26974 EOF
26975 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26976 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26977 if $gcc_cv_readelf -d conftest 2>&1 \
26978 | grep TEXTREL > /dev/null 2>&1; then
26979 :
26980 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26981 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26982 :
26983 else
26984 gcc_cv_ld_mips_personality_relaxation=yes
26985 fi
26986 fi
26987 fi
26988 rm -f conftest.s conftest.o conftest
26989 fi
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26991 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26992 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26993
26994 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26995
26996 fi
26997
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26999 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27000 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27001 $as_echo_n "(cached) " >&6
27002 else
27003 gcc_cv_as_mips_nan=no
27004 if test x$gcc_cv_as != x; then
27005 $as_echo '' > conftest.s
27006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27011 test $ac_status = 0; }; }
27012 then
27013 gcc_cv_as_mips_nan=yes
27014 else
27015 echo "configure: failed program was" >&5
27016 cat conftest.s >&5
27017 fi
27018 rm -f conftest.o conftest.s
27019 fi
27020 fi
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27022 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27023 if test $gcc_cv_as_mips_nan = yes; then
27024
27025 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27026
27027 fi
27028 if test x$gcc_cv_as_mips_nan = xno \
27029 && test x$with_nan != x; then
27030 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27031 fi
27032 ;;
27033 s390*-*-*)
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27035 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27036 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27037 $as_echo_n "(cached) " >&6
27038 else
27039 gcc_cv_as_s390_gnu_attribute=no
27040 if test $in_tree_gas = yes; then
27041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27042 then gcc_cv_as_s390_gnu_attribute=yes
27043 fi
27044 elif test x$gcc_cv_as != x; then
27045 $as_echo '.gnu_attribute 8,1' > conftest.s
27046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051 test $ac_status = 0; }; }
27052 then
27053 gcc_cv_as_s390_gnu_attribute=yes
27054 else
27055 echo "configure: failed program was" >&5
27056 cat conftest.s >&5
27057 fi
27058 rm -f conftest.o conftest.s
27059 fi
27060 fi
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27062 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27063 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27064
27065 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27066
27067 fi
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27069 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27070 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27071 $as_echo_n "(cached) " >&6
27072 else
27073 gcc_cv_as_s390_machine_machinemode=no
27074 if test $in_tree_gas = yes; then
27075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27076 then gcc_cv_as_s390_machine_machinemode=yes
27077 fi
27078 elif test x$gcc_cv_as != x; then
27079 $as_echo ' .machinemode push
27080 .machinemode pop
27081 .machine push
27082 .machine pop' > conftest.s
27083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27088 test $ac_status = 0; }; }
27089 then
27090 gcc_cv_as_s390_machine_machinemode=yes
27091 else
27092 echo "configure: failed program was" >&5
27093 cat conftest.s >&5
27094 fi
27095 rm -f conftest.o conftest.s
27096 fi
27097 fi
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27099 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27100 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27101
27102 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27103
27104 fi
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27106 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27107 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27109 else
27110 gcc_cv_as_s390_architecture_modifiers=no
27111 if test $in_tree_gas = yes; then
27112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27113 then gcc_cv_as_s390_architecture_modifiers=yes
27114 fi
27115 elif test x$gcc_cv_as != x; then
27116 $as_echo ' .machine z13+vx ' > conftest.s
27117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27123 then
27124 gcc_cv_as_s390_architecture_modifiers=yes
27125 else
27126 echo "configure: failed program was" >&5
27127 cat conftest.s >&5
27128 fi
27129 rm -f conftest.o conftest.s
27130 fi
27131 fi
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27133 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27134 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27135
27136 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27137
27138 fi
27139 ;;
27140 esac
27141
27142 # Mips and HP-UX need the GNU assembler.
27143 # Linux on IA64 might be able to use the Intel assembler.
27144
27145 case "$target" in
27146 mips*-*-* | *-*-hpux* )
27147 if test x$gas_flag = xyes \
27148 || test x"$host" != x"$build" \
27149 || test ! -x "$gcc_cv_as" \
27150 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27151 :
27152 else
27153 echo "*** This configuration requires the GNU assembler" >&2
27154 exit 1
27155 fi
27156 ;;
27157 esac
27158
27159 # ??? Not all targets support dwarf2 debug_line, even within a version
27160 # of gas. Moreover, we need to emit a valid instruction to trigger any
27161 # info to the output file. So, as supported targets are added to gas 2.11,
27162 # add some instruction here to (also) show we expect this might work.
27163 # ??? Once 2.11 is released, probably need to add first known working
27164 # version to the per-target configury.
27165 case "$cpu_type" in
27166 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27167 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27168 | visium | xstormy16 | xtensa)
27169 insn="nop"
27170 ;;
27171 ia64 | s390)
27172 insn="nop 0"
27173 ;;
27174 mmix)
27175 insn="swym 0"
27176 ;;
27177 esac
27178 if test x"$insn" != x; then
27179 conftest_s="\
27180 .file 1 \"conftest.s\"
27181 .loc 1 3 0
27182 $insn"
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27184 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27185 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27188 gcc_cv_as_dwarf2_debug_line=no
27189 if test $in_tree_gas = yes; then
27190 if test $in_tree_gas_is_elf = yes \
27191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27192 then gcc_cv_as_dwarf2_debug_line=yes
27193 fi
27194 elif test x$gcc_cv_as != x; then
27195 $as_echo "$conftest_s" > conftest.s
27196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27201 test $ac_status = 0; }; }
27202 then
27203 if test x$gcc_cv_objdump != x \
27204 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27205 | grep debug_line > /dev/null 2>&1; then
27206 gcc_cv_as_dwarf2_debug_line=yes
27207 fi
27208 else
27209 echo "configure: failed program was" >&5
27210 cat conftest.s >&5
27211 fi
27212 rm -f conftest.o conftest.s
27213 fi
27214 fi
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27216 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27217
27218
27219 # The .debug_line file table must be in the exact order that
27220 # we specified the files, since these indices are also used
27221 # by DW_AT_decl_file. Approximate this test by testing if
27222 # the assembler bitches if the same index is assigned twice.
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27224 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27225 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27226 $as_echo_n "(cached) " >&6
27227 else
27228 gcc_cv_as_dwarf2_file_buggy=no
27229 if test x$gcc_cv_as != x; then
27230 $as_echo ' .file 1 "foo.s"
27231 .file 1 "bar.s"' > conftest.s
27232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27238 then
27239 gcc_cv_as_dwarf2_file_buggy=yes
27240 else
27241 echo "configure: failed program was" >&5
27242 cat conftest.s >&5
27243 fi
27244 rm -f conftest.o conftest.s
27245 fi
27246 fi
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27248 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27249
27250
27251 if test $gcc_cv_as_dwarf2_debug_line = yes \
27252 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27253
27254 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27255
27256 fi
27257
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27259 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27260 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27261 $as_echo_n "(cached) " >&6
27262 else
27263 gcc_cv_as_gdwarf2_flag=no
27264 if test $in_tree_gas = yes; then
27265 if test $in_tree_gas_is_elf = yes \
27266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27267 then gcc_cv_as_gdwarf2_flag=yes
27268 fi
27269 elif test x$gcc_cv_as != x; then
27270 $as_echo "$insn" > conftest.s
27271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27273 (eval $ac_try) 2>&5
27274 ac_status=$?
27275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27276 test $ac_status = 0; }; }
27277 then
27278 gcc_cv_as_gdwarf2_flag=yes
27279 else
27280 echo "configure: failed program was" >&5
27281 cat conftest.s >&5
27282 fi
27283 rm -f conftest.o conftest.s
27284 fi
27285 fi
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27287 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27288 if test $gcc_cv_as_gdwarf2_flag = yes; then
27289
27290 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27291
27292 fi
27293
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27295 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27296 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27297 $as_echo_n "(cached) " >&6
27298 else
27299 gcc_cv_as_gstabs_flag=no
27300 if test $in_tree_gas = yes; then
27301 if test $in_tree_gas_is_elf = yes \
27302 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27303 then gcc_cv_as_gstabs_flag=yes
27304 fi
27305 elif test x$gcc_cv_as != x; then
27306 $as_echo "$insn" > conftest.s
27307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27312 test $ac_status = 0; }; }
27313 then
27314 gcc_cv_as_gstabs_flag=yes
27315 else
27316 echo "configure: failed program was" >&5
27317 cat conftest.s >&5
27318 fi
27319 rm -f conftest.o conftest.s
27320 fi
27321 fi
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27323 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27324 if test $gcc_cv_as_gstabs_flag = yes; then
27325
27326 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27327
27328 fi
27329
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27331 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27332 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27333 $as_echo_n "(cached) " >&6
27334 else
27335 gcc_cv_as_debug_prefix_map_flag=no
27336 if test $in_tree_gas = yes; then
27337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27338 then gcc_cv_as_debug_prefix_map_flag=yes
27339 fi
27340 elif test x$gcc_cv_as != x; then
27341 $as_echo "$insn" > conftest.s
27342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344 (eval $ac_try) 2>&5
27345 ac_status=$?
27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347 test $ac_status = 0; }; }
27348 then
27349 gcc_cv_as_debug_prefix_map_flag=yes
27350 else
27351 echo "configure: failed program was" >&5
27352 cat conftest.s >&5
27353 fi
27354 rm -f conftest.o conftest.s
27355 fi
27356 fi
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27358 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27359 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27360
27361 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27362
27363 fi
27364 fi
27365
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27367 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27368 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27370 else
27371 gcc_cv_as_compress_debug=no
27372 if test x$gcc_cv_as != x; then
27373 $as_echo '' > conftest.s
27374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; }
27380 then
27381 # gas compiled without zlib cannot compress debug sections and warns
27382 # about it, but still exits successfully. So check for this, too.
27383 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27384 then
27385 gcc_cv_as_compress_debug=0
27386 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27387 then
27388 gcc_cv_as_compress_debug=1
27389 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27390 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27391 else
27392 gcc_cv_as_compress_debug=0
27393 # FIXME: Future gas versions will support ELF gABI style via
27394 # --compress-debug-sections[=type].
27395 fi
27396 else
27397 echo "configure: failed program was" >&5
27398 cat conftest.s >&5
27399 fi
27400 rm -f conftest.o conftest.s
27401 fi
27402 fi
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27404 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27405
27406
27407 cat >>confdefs.h <<_ACEOF
27408 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27409 _ACEOF
27410
27411
27412 cat >>confdefs.h <<_ACEOF
27413 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27414 _ACEOF
27415
27416
27417 cat >>confdefs.h <<_ACEOF
27418 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27419 _ACEOF
27420
27421
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27423 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27424 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27425 $as_echo_n "(cached) " >&6
27426 else
27427 gcc_cv_as_lcomm_with_alignment=no
27428 if test x$gcc_cv_as != x; then
27429 $as_echo '.lcomm bar,4,16' > conftest.s
27430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27432 (eval $ac_try) 2>&5
27433 ac_status=$?
27434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27435 test $ac_status = 0; }; }
27436 then
27437 gcc_cv_as_lcomm_with_alignment=yes
27438 else
27439 echo "configure: failed program was" >&5
27440 cat conftest.s >&5
27441 fi
27442 rm -f conftest.o conftest.s
27443 fi
27444 fi
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27446 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27447 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27448
27449 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27450
27451 fi
27452
27453 if test x$with_sysroot = x && test x$host = x$target \
27454 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27455 && test "$prefix" != "NONE"; then
27456
27457 cat >>confdefs.h <<_ACEOF
27458 #define PREFIX_INCLUDE_DIR "$prefix/include"
27459 _ACEOF
27460
27461 fi
27462
27463 # Determine the version of glibc, if any, used on the target.
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27465 $as_echo_n "checking for target glibc version... " >&6; }
27466
27467 # Check whether --with-glibc-version was given.
27468 if test "${with_glibc_version+set}" = set; then :
27469 withval=$with_glibc_version;
27470 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27471 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27472 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27473 else
27474 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27475 fi
27476 else
27477
27478 glibc_version_major=0
27479 glibc_version_minor=0
27480 if test -f $target_header_dir/features.h \
27481 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27482 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27483 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27484 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27485 fi
27486 fi
27487
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27489 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27490
27491 cat >>confdefs.h <<_ACEOF
27492 #define TARGET_GLIBC_MAJOR $glibc_version_major
27493 _ACEOF
27494
27495
27496 cat >>confdefs.h <<_ACEOF
27497 #define TARGET_GLIBC_MINOR $glibc_version_minor
27498 _ACEOF
27499
27500
27501 # Check whether --enable-gnu-unique-object was given.
27502 if test "${enable_gnu_unique_object+set}" = set; then :
27503 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27504 yes | no) ;;
27505 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27506 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27507 esac
27508 else
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27510 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27511 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27512 $as_echo_n "(cached) " >&6
27513 else
27514 gcc_cv_as_gnu_unique_object=no
27515 if test $in_tree_gas = yes; then
27516 if test $in_tree_gas_is_elf = yes \
27517 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27518 then gcc_cv_as_gnu_unique_object=yes
27519 fi
27520 elif test x$gcc_cv_as != x; then
27521 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27527 test $ac_status = 0; }; }
27528 then
27529 gcc_cv_as_gnu_unique_object=yes
27530 else
27531 echo "configure: failed program was" >&5
27532 cat conftest.s >&5
27533 fi
27534 rm -f conftest.o conftest.s
27535 fi
27536 fi
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27538 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27539 if test $gcc_cv_as_gnu_unique_object = yes; then
27540 # We need to unquote above to to use the definition from config.gcc.
27541 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27542
27543 if test $glibc_version_major -gt 2 \
27544 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27545 enable_gnu_unique_object=yes
27546 fi
27547
27548 fi
27549 fi
27550
27551 if test x$enable_gnu_unique_object = xyes; then
27552
27553 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27554
27555 fi
27556
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27558 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27559 if test "${gcc_cv_as_line_zero+set}" = set; then :
27560 $as_echo_n "(cached) " >&6
27561 else
27562 gcc_cv_as_line_zero=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27565 then gcc_cv_as_line_zero=yes
27566 fi
27567 elif test "x$gcc_cv_as" != x; then
27568 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27569 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; } &&
27575 test "x`cat conftest.out`" = x
27576 then
27577 gcc_cv_as_line_zero=yes
27578 else
27579 echo "configure: failed program was" >&5
27580 cat conftest.s >&5
27581 echo "configure: error output was" >&5
27582 cat conftest.out >&5
27583 fi
27584 rm -f conftest.o conftest.s conftest.out
27585 fi
27586 fi
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27588 $as_echo "$gcc_cv_as_line_zero" >&6; }
27589 if test "x$gcc_cv_as_line_zero" = xyes; then
27590
27591 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27592
27593 fi
27594
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27596 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27597 gcc_cv_ld_eh_frame_hdr=no
27598 if test $in_tree_ld = yes ; then
27599 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 \
27600 && test $in_tree_ld_is_elf = yes; then
27601 gcc_cv_ld_eh_frame_hdr=yes
27602 fi
27603 elif test x$gcc_cv_ld != x; then
27604 if echo "$ld_ver" | grep GNU > /dev/null; then
27605 # Check if linker supports --eh-frame-hdr option
27606 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27607 gcc_cv_ld_eh_frame_hdr=yes
27608 fi
27609 else
27610 case "$target" in
27611 *-*-solaris2*)
27612 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27613 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27614 gcc_cv_ld_eh_frame_hdr=yes
27615 fi
27616 ;;
27617 esac
27618 fi
27619 fi
27620
27621 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27622
27623 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27624
27625 fi
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27627 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27628
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27630 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27631 gcc_cv_ld_eh_frame_ciev3=no
27632 if test $in_tree_ld = yes ; then
27633 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 \
27634 && test $in_tree_ld_is_elf = yes; then
27635 gcc_cv_ld_eh_frame_ciev3=yes
27636 fi
27637 elif test x$gcc_cv_ld != x; then
27638 if echo "$ld_ver" | grep GNU > /dev/null; then
27639 gcc_cv_ld_eh_frame_ciev3=yes
27640 if test 0"$ld_date" -lt 20040513; then
27641 if test -n "$ld_date"; then
27642 # If there was date string, but was earlier than 2004-05-13, fail
27643 gcc_cv_ld_eh_frame_ciev3=no
27644 elif test "$ld_vers_major" -lt 2; then
27645 gcc_cv_ld_eh_frame_ciev3=no
27646 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27647 gcc_cv_ld_eh_frame_ciev3=no
27648 fi
27649 fi
27650 else
27651 case "$target" in
27652 *-*-solaris2*)
27653 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27654 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27655 gcc_cv_ld_eh_frame_ciev3=yes
27656 fi
27657 ;;
27658 esac
27659 fi
27660 fi
27661
27662 cat >>confdefs.h <<_ACEOF
27663 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27664 _ACEOF
27665
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27667 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27668
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27670 $as_echo_n "checking linker position independent executable support... " >&6; }
27671 gcc_cv_ld_pie=no
27672 if test $in_tree_ld = yes ; then
27673 case "$target" in
27674 # Full PIE support on Solaris was only introduced in gld 2.26.
27675 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27676 *) gcc_gld_pie_min_version=15 ;;
27677 esac
27678 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 \
27679 && test $in_tree_ld_is_elf = yes; then
27680 gcc_cv_ld_pie=yes
27681 fi
27682 elif test x$gcc_cv_ld != x; then
27683 # Check if linker supports -pie option
27684 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27685 gcc_cv_ld_pie=yes
27686 case "$target" in
27687 *-*-solaris2*)
27688 if echo "$ld_ver" | grep GNU > /dev/null \
27689 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27690 gcc_cv_ld_pie=no
27691 fi
27692 ;;
27693 esac
27694 else
27695 case "$target" in
27696 *-*-solaris2.1[1-9]*)
27697 # Solaris 11.x and Solaris 12 added PIE support.
27698 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27699 gcc_cv_ld_pie=yes
27700 fi
27701 ;;
27702 esac
27703 fi
27704 fi
27705 if test x"$gcc_cv_ld_pie" = xyes; then
27706
27707 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27708
27709 fi
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27711 $as_echo "$gcc_cv_ld_pie" >&6; }
27712
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27714 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27715 gcc_cv_ld_pie_copyreloc=no
27716 if test $gcc_cv_ld_pie = yes ; then
27717 if test $in_tree_ld = yes ; then
27718 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
27719 gcc_cv_ld_pie_copyreloc=yes
27720 fi
27721 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27722 # Check if linker supports -pie option with copy reloc
27723 case "$target" in
27724 i?86-*-linux* | x86_64-*-linux*)
27725 cat > conftest1.s <<EOF
27726 .globl a_glob
27727 .data
27728 .type a_glob, @object
27729 .size a_glob, 4
27730 a_glob:
27731 .long 2
27732 EOF
27733 cat > conftest2.s <<EOF
27734 .text
27735 .globl main
27736 .type main, @function
27737 main:
27738 movl %eax, a_glob(%rip)
27739 .size main, .-main
27740 .globl ptr
27741 .section .data.rel,"aw",@progbits
27742 .type ptr, @object
27743 ptr:
27744 .quad a_glob
27745 EOF
27746 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27747 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27748 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27749 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27750 gcc_cv_ld_pie_copyreloc=yes
27751 fi
27752 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27753 ;;
27754 esac
27755 fi
27756 fi
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27760 _ACEOF
27761
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27763 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27764
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27766 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27767 gcc_cv_ld_eh_gc_sections=no
27768 if test $in_tree_ld = yes ; then
27769 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 \
27770 && test $in_tree_ld_is_elf = yes; then
27771 gcc_cv_ld_eh_gc_sections=yes
27772 fi
27773 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27774 cat > conftest.s <<EOF
27775 .section .text
27776 .globl _start
27777 .type _start, @function
27778 _start:
27779 .long foo
27780 .size _start, .-_start
27781 .section .text.foo,"ax",@progbits
27782 .type foo, @function
27783 foo:
27784 .long 0
27785 .size foo, .-foo
27786 .section .gcc_except_table.foo,"a",@progbits
27787 .L0:
27788 .long 0
27789 .section .eh_frame,"a",@progbits
27790 .long .L0
27791 EOF
27792 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27793 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27794 | grep "gc-sections option ignored" > /dev/null; then
27795 gcc_cv_ld_eh_gc_sections=no
27796 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27797 | grep gcc_except_table > /dev/null; then
27798 gcc_cv_ld_eh_gc_sections=yes
27799 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27800 if test x$gcc_cv_as_comdat_group != xyes; then
27801 gcc_cv_ld_eh_gc_sections=no
27802 cat > conftest.s <<EOF
27803 .section .text
27804 .globl _start
27805 .type _start, @function
27806 _start:
27807 .long foo
27808 .size _start, .-_start
27809 .section .gnu.linkonce.t.foo,"ax",@progbits
27810 .type foo, @function
27811 foo:
27812 .long 0
27813 .size foo, .-foo
27814 .section .gcc_except_table.foo,"a",@progbits
27815 .L0:
27816 .long 0
27817 .section .eh_frame,"a",@progbits
27818 .long .L0
27819 EOF
27820 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27821 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27822 | grep "gc-sections option ignored" > /dev/null; then
27823 gcc_cv_ld_eh_gc_sections=no
27824 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27825 | grep gcc_except_table > /dev/null; then
27826 gcc_cv_ld_eh_gc_sections=yes
27827 fi
27828 fi
27829 fi
27830 fi
27831 fi
27832 rm -f conftest.s conftest.o conftest
27833 fi
27834 case "$target" in
27835 hppa*-*-linux*)
27836 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27837 gcc_cv_ld_eh_gc_sections=no
27838 ;;
27839 esac
27840 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27841
27842 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27843
27844 fi
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27846 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27847
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27849 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27850 gcc_cv_ld_eh_gc_sections_bug=no
27851 if test $in_tree_ld = yes ; then
27852 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 \
27853 && test $in_tree_ld_is_elf = yes; then
27854 gcc_cv_ld_eh_gc_sections_bug=yes
27855 fi
27856 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
27857 gcc_cv_ld_eh_gc_sections_bug=yes
27858 cat > conftest.s <<EOF
27859 .section .text
27860 .globl _start
27861 .type _start, @function
27862 _start:
27863 .long foo
27864 .size _start, .-_start
27865 .section .text.startup.foo,"ax",@progbits
27866 .type foo, @function
27867 foo:
27868 .long 0
27869 .size foo, .-foo
27870 .section .gcc_except_table.foo,"a",@progbits
27871 .L0:
27872 .long 0
27873 .section .eh_frame,"a",@progbits
27874 .long .L0
27875 EOF
27876 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27877 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27878 | grep "gc-sections option ignored" > /dev/null; then
27879 :
27880 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27881 | grep gcc_except_table > /dev/null; then
27882 gcc_cv_ld_eh_gc_sections_bug=no
27883 fi
27884 fi
27885 rm -f conftest.s conftest.o conftest
27886 fi
27887 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27888
27889 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27890
27891 fi
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27893 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27894
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27896 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27897 # gold/gld support compressed debug sections since binutils 2.19/2.21
27898 if test $in_tree_ld = yes ; then
27899 gcc_cv_ld_compress_debug=0
27900 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 \
27901 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27902 gcc_cv_ld_compress_debug=2
27903 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27904 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 \
27905 && test $in_tree_ld_is_elf = yes; then
27906 gcc_cv_ld_compress_debug=1
27907 fi
27908 elif echo "$ld_ver" | grep GNU > /dev/null; then
27909 gcc_cv_ld_compress_debug=1
27910 if test 0"$ld_date" -lt 20050308; then
27911 if test -n "$ld_date"; then
27912 # If there was date string, but was earlier than 2005-03-08, fail
27913 gcc_cv_ld_compress_debug=0
27914 elif test "$ld_vers_major" -lt 2; then
27915 gcc_cv_ld_compress_debug=0
27916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27917 gcc_cv_ld_compress_debug=0
27918 fi
27919 fi
27920 if test $ld_is_gold = yes; then
27921 gcc_cv_ld_compress_debug=2
27922 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27923 fi
27924 else
27925 case "${target}" in
27926 *-*-solaris2*)
27927 # Introduced in Solaris 11.2.
27928 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27929 gcc_cv_ld_compress_debug=3
27930 gcc_cv_ld_compress_debug_option="-z compress-sections"
27931 else
27932 gcc_cv_ld_compress_debug=0
27933 fi
27934 ;;
27935 *)
27936 # Assume linkers other than GNU ld don't support compessed debug
27937 # sections.
27938 gcc_cv_ld_compress_debug=0
27939 ;;
27940 esac
27941 fi
27942
27943 cat >>confdefs.h <<_ACEOF
27944 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27945 _ACEOF
27946
27947
27948 cat >>confdefs.h <<_ACEOF
27949 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27950 _ACEOF
27951
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27953 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27954
27955 # --------
27956 # UNSORTED
27957 # --------
27958
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27960 $as_echo_n "checking linker --as-needed support... " >&6; }
27961 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27962 $as_echo_n "(cached) " >&6
27963 else
27964 gcc_cv_ld_as_needed=no
27965 gcc_cv_ld_as_needed_option='--as-needed'
27966 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27967 if test $in_tree_ld = yes ; then
27968 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 \
27969 && test $in_tree_ld_is_elf = yes; then
27970 gcc_cv_ld_as_needed=yes
27971 fi
27972 elif test x$gcc_cv_ld != x; then
27973 # Check if linker supports --as-needed and --no-as-needed options
27974 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27975 gcc_cv_ld_as_needed=yes
27976 else
27977 case "$target" in
27978 # Solaris 2 ld always supports -z ignore/-z record.
27979 *-*-solaris2*)
27980 gcc_cv_ld_as_needed=yes
27981 gcc_cv_ld_as_needed_option="-z ignore"
27982 gcc_cv_ld_no_as_needed_option="-z record"
27983 ;;
27984 esac
27985 fi
27986 fi
27987 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27988 # dl_iterate_phdr, i.e. since Solaris 11.
27989 case "$target" in
27990 *-*-solaris2.1[1-9]*)
27991 case "$target" in
27992 i?86-*-* | x86_64-*-*)
27993 if echo "$ld_ver" | grep GNU > /dev/null; then
27994 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27995 gcc_cv_ld_as_needed=no
27996 fi
27997 ;;
27998 esac
27999 ;;
28000 *-*-solaris2*)
28001 gcc_cv_ld_as_needed=no
28002 ;;
28003 esac
28004
28005 fi
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28007 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28008 if test x"$gcc_cv_ld_as_needed" = xyes; then
28009
28010 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28011
28012
28013 cat >>confdefs.h <<_ACEOF
28014 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28015 _ACEOF
28016
28017
28018 cat >>confdefs.h <<_ACEOF
28019 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28020 _ACEOF
28021
28022 fi
28023
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28025 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28026 saved_LDFLAGS="$LDFLAGS"
28027 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28028 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h. */
28031 int main(void) {return 0;}
28032 _ACEOF
28033 if ac_fn_cxx_try_link "$LINENO"; then :
28034 gcc_cv_ld_clearcap=yes; break
28035 else
28036 gcc_cv_ld_clearcap=no
28037 fi
28038 rm -f core conftest.err conftest.$ac_objext \
28039 conftest$ac_exeext conftest.$ac_ext
28040 done
28041 LDFLAGS="$saved_LDFLAGS"
28042 if test "x$gcc_cv_ld_clearcap" = xyes; then
28043
28044 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28045
28046 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28047
28048 fi
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28050 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28051
28052 case "$target:$tm_file" in
28053 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28054 case "$target" in
28055 *le-*-linux*)
28056 emul_name="-melf64lppc"
28057 ;;
28058 *-*-linux*)
28059 emul_name="-melf64ppc"
28060 ;;
28061 *-*-freebsd*)
28062 emul_name="-melf64ppc_fbsd"
28063 ;;
28064 esac
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28066 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28067 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28068 $as_echo_n "(cached) " >&6
28069 else
28070 gcc_cv_ld_no_dot_syms=no
28071 if test x"$ld_is_gold" = xyes; then
28072 gcc_cv_ld_no_dot_syms=yes
28073 elif test $in_tree_ld = yes ; then
28074 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
28075 gcc_cv_ld_no_dot_syms=yes
28076 fi
28077 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28078 cat > conftest1.s <<EOF
28079 .text
28080 bl .foo
28081 EOF
28082 cat > conftest2.s <<EOF
28083 .section ".opd","aw"
28084 .align 3
28085 .globl foo
28086 .type foo,@function
28087 foo:
28088 .quad .LEfoo,.TOC.@tocbase,0
28089 .text
28090 .LEfoo:
28091 blr
28092 .size foo,.-.LEfoo
28093 EOF
28094 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28095 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28096 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28097 gcc_cv_ld_no_dot_syms=yes
28098 fi
28099 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28100 fi
28101
28102 fi
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28104 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28105 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28106
28107 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28108
28109 fi
28110
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28112 $as_echo_n "checking linker large toc support... " >&6; }
28113 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28114 $as_echo_n "(cached) " >&6
28115 else
28116 gcc_cv_ld_large_toc=no
28117 if test x"$ld_is_gold" = xyes; then
28118 gcc_cv_ld_large_toc=yes
28119 elif test $in_tree_ld = yes ; then
28120 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
28121 gcc_cv_ld_large_toc=yes
28122 fi
28123 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28124 cat > conftest.s <<EOF
28125 .section ".tbss","awT",@nobits
28126 .align 3
28127 ie0: .space 8
28128 .global _start
28129 .text
28130 _start:
28131 addis 9,13,ie0@got@tprel@ha
28132 ld 9,ie0@got@tprel@l(9)
28133 EOF
28134 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28135 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28136 gcc_cv_ld_large_toc=yes
28137 fi
28138 rm -f conftest conftest.o conftest.s
28139 fi
28140
28141 fi
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28143 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28144 if test x"$gcc_cv_ld_large_toc" = xyes; then
28145
28146 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28147
28148 fi
28149
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28151 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28152 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28153 $as_echo_n "(cached) " >&6
28154 else
28155 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28156 cat > conftest.s <<EOF
28157 .global _start
28158 .text
28159 _start:
28160 addis 9,2,x@got@ha
28161 .section .data.rel.ro,"aw",@progbits
28162 .p2align 16
28163 .space 32768
28164 x: .quad .TOC.
28165 EOF
28166 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28167 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28168 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)) }'`
28169 fi
28170 rm -f conftest conftest.o conftest.s
28171 fi
28172
28173 fi
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28175 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28176 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28177
28178 cat >>confdefs.h <<_ACEOF
28179 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28180 _ACEOF
28181
28182 fi
28183 ;;
28184 esac
28185
28186 case "$target" in
28187 *-*-aix*)
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28189 $as_echo_n "checking linker large toc support... " >&6; }
28190 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28191 $as_echo_n "(cached) " >&6
28192 else
28193 gcc_cv_ld_large_toc=no
28194 if test x$gcc_cv_as != x ; then
28195 cat > conftest.s <<EOF
28196 .toc
28197 LC..1:
28198 .tc a[TC],a[RW]
28199 .extern a[RW]
28200 .csect .text[PR]
28201 .largetoctest:
28202 addis 9,LC..1@u(2)
28203 ld 3,LC..1@l(9)
28204 EOF
28205 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28206 gcc_cv_ld_large_toc=yes
28207 fi
28208 rm -f conftest conftest.o conftest.s
28209 fi
28210
28211 fi
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28213 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28214 if test x"$gcc_cv_ld_large_toc" = xyes; then
28215
28216 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28217
28218 fi
28219 ;;
28220 esac
28221
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28223 $as_echo_n "checking linker --build-id support... " >&6; }
28224 if test "${gcc_cv_ld_buildid+set}" = set; then :
28225 $as_echo_n "(cached) " >&6
28226 else
28227 gcc_cv_ld_buildid=no
28228 if test $in_tree_ld = yes ; then
28229 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28230 "$gcc_cv_gld_minor_version" -ge 18 -o \
28231 "$gcc_cv_gld_major_version" -gt 2 \
28232 && test $in_tree_ld_is_elf = yes; then
28233 gcc_cv_ld_buildid=yes
28234 fi
28235 elif test x$gcc_cv_ld != x; then
28236 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28237 gcc_cv_ld_buildid=yes
28238 fi
28239 fi
28240 fi
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28242 $as_echo "$gcc_cv_ld_buildid" >&6; }
28243 if test x"$gcc_cv_ld_buildid" = xyes; then
28244
28245 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28246
28247 fi
28248
28249 # Check whether --enable-linker-build-id was given.
28250 if test "${enable_linker_build_id+set}" = set; then :
28251 enableval=$enable_linker_build_id;
28252 else
28253 enable_linker_build_id=no
28254 fi
28255
28256
28257 if test x"$enable_linker_build_id" = xyes; then
28258 if test x"$gcc_cv_ld_buildid" = xyes; then
28259
28260 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28261
28262 else
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28264 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28265 fi
28266 fi
28267
28268 # In binutils 2.21, GNU ld gained support for new emulations fully
28269 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28271 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28272 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28273 $as_echo_n "(cached) " >&6
28274 else
28275 gcc_cv_ld_sol2_emulation=no
28276 if test $in_tree_ld = yes ; then
28277 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28278 "$gcc_cv_gld_minor_version" -ge 21 -o \
28279 "$gcc_cv_gld_major_version" -gt 2 \
28280 && test $in_tree_ld_is_elf = yes; then
28281 gcc_cv_ld_sol2_emulation=yes
28282 fi
28283 elif test x$gcc_cv_ld != x; then
28284 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28285 grep _sol2 > /dev/null; then
28286 gcc_cv_ld_sol2_emulation=yes
28287 fi
28288 fi
28289 fi
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28291 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28292 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28293
28294 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28295
28296 fi
28297
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28299 $as_echo_n "checking linker --sysroot support... " >&6; }
28300 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28301 $as_echo_n "(cached) " >&6
28302 else
28303 gcc_cv_ld_sysroot=no
28304 if test $in_tree_ld = yes ; then
28305 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
28306 gcc_cv_ld_sysroot=yes
28307 fi
28308 elif test x$gcc_cv_ld != x; then
28309 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28310 gcc_cv_ld_sysroot=yes
28311 fi
28312 fi
28313 fi
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28315 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28316 if test x"$gcc_cv_ld_sysroot" = xyes; then
28317
28318 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28319
28320 fi
28321
28322 case $target in
28323 *-*-solaris2*)
28324 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28326 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28327 if test "${gcc_cv_solaris_crts+set}" = set; then :
28328 $as_echo_n "(cached) " >&6
28329 else
28330 gcc_cv_solaris_crts=no
28331 if test x$host != x$target; then
28332 if test "x$with_sysroot" = xyes; then
28333 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28334 else
28335 target_sysroot="${with_sysroot}"
28336 fi
28337 fi
28338 target_libdir="$target_sysroot/usr/lib"
28339 # At the time they were added, gcrt1.o became a symlink for backwards
28340 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28341 case $target in
28342 i?86-*-solaris2* | x86_64-*-solaris2*)
28343 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28344 ;;
28345 sparc*-*-solaris2*)
28346 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28347 ;;
28348 esac
28349 fi
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28351 $as_echo "$gcc_cv_solaris_crts" >&6; }
28352 ;;
28353 esac
28354 if test x$gcc_cv_solaris_crts = xyes; then
28355
28356 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28357
28358 fi
28359
28360 # Test for stack protector support in target C library.
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28362 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28363 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28364 $as_echo_n "(cached) " >&6
28365 else
28366 gcc_cv_libc_provides_ssp=no
28367 case "$target" in
28368 *-*-musl*)
28369 # All versions of musl provide stack protector
28370 gcc_cv_libc_provides_ssp=yes;;
28371 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28372 # glibc 2.4 and later provides __stack_chk_fail and
28373 # either __stack_chk_guard, or TLS access to stack guard canary.
28374
28375 if test $glibc_version_major -gt 2 \
28376 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28377 gcc_cv_libc_provides_ssp=yes
28378 else
28379
28380 if test -f $target_header_dir/features.h \
28381 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28382 $target_header_dir/features.h > /dev/null; then
28383 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28384 $target_header_dir/features.h > /dev/null && \
28385 test -f $target_header_dir/bits/uClibc_config.h && \
28386 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28387 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28388 gcc_cv_libc_provides_ssp=yes
28389 fi
28390 # all versions of Bionic support stack protector
28391 elif test -f $target_header_dir/sys/cdefs.h \
28392 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28393 $target_header_dir/sys/cdefs.h > /dev/null; then
28394 gcc_cv_libc_provides_ssp=yes
28395 fi
28396 fi
28397 ;;
28398 *-*-gnu*)
28399 # Avoid complicated tests (see
28400 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28401 # simply assert that glibc does provide this, which is true for all
28402 # realistically usable GNU/Hurd configurations.
28403 # All supported versions of musl provide it as well
28404 gcc_cv_libc_provides_ssp=yes;;
28405 *-*-darwin* | *-*-freebsd*)
28406 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28407 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28408 gcc_cv_libc_provides_ssp=yes
28409 else
28410 echo "no __stack_chk_fail on this target"
28411 fi
28412
28413 ;;
28414 *) gcc_cv_libc_provides_ssp=no ;;
28415 esac
28416 fi
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28418 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28419
28420 if test x$gcc_cv_libc_provides_ssp = xyes; then
28421
28422 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28423
28424 fi
28425
28426 # Check whether --enable-default-ssp was given.
28427 # Check whether --enable-default-ssp was given.
28428 if test "${enable_default_ssp+set}" = set; then :
28429 enableval=$enable_default_ssp;
28430 if test x$gcc_cv_libc_provides_ssp = xyes; then
28431 case "$target" in
28432 ia64*-*-*) enable_default_ssp=no ;;
28433 *) enable_default_ssp=$enableval ;;
28434 esac
28435 else
28436 enable_default_ssp=no
28437 fi
28438 else
28439 enable_default_ssp=no
28440 fi
28441
28442 if test x$enable_default_ssp = xyes ; then
28443
28444 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28445
28446 fi
28447
28448
28449 # Test for <sys/sdt.h> on the target.
28450
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28452 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28453 have_sys_sdt_h=no
28454 if test -f $target_header_dir/sys/sdt.h; then
28455 have_sys_sdt_h=yes
28456
28457 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28458
28459 fi
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28461 $as_echo "$have_sys_sdt_h" >&6; }
28462
28463 # Check if TFmode long double should be used by default or not.
28464 # Some glibc targets used DFmode long double, but with glibc 2.4
28465 # and later they can use TFmode.
28466 case "$target" in
28467 powerpc*-*-linux* | \
28468 sparc*-*-linux* | \
28469 s390*-*-linux* | \
28470 alpha*-*-linux*)
28471
28472 # Check whether --with-long-double-128 was given.
28473 if test "${with_long_double_128+set}" = set; then :
28474 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28475 else
28476
28477 if test $glibc_version_major -gt 2 \
28478 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28479 gcc_cv_target_ldbl128=yes
28480 else
28481
28482 gcc_cv_target_ldbl128=no
28483 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28484 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28485 && gcc_cv_target_ldbl128=yes
28486
28487 fi
28488 fi
28489
28490 ;;
28491 esac
28492 if test x$gcc_cv_target_ldbl128 = xyes; then
28493
28494 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28495
28496 fi
28497
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28499 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28500 gcc_cv_target_dl_iterate_phdr=unknown
28501 case "$target" in
28502 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28503 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28504 # libdl there, both complicating its use and breaking compatibility
28505 # between Solaris 10 updates.
28506 *-*-solaris2.1[1-9]*)
28507 # <link.h> needs both a dl_iterate_phdr declaration and support for
28508 # compilation with largefile support.
28509 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28510 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28511 gcc_cv_target_dl_iterate_phdr=yes
28512 else
28513 gcc_cv_target_dl_iterate_phdr=no
28514 fi
28515 ;;
28516 *-*-dragonfly* | *-*-freebsd*)
28517 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28518 gcc_cv_target_dl_iterate_phdr=yes
28519 else
28520 gcc_cv_target_dl_iterate_phdr=no
28521 fi
28522 ;;
28523 *-linux-musl*)
28524 gcc_cv_target_dl_iterate_phdr=yes
28525 ;;
28526 esac
28527
28528 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28529
28530 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28531
28532 fi
28533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28534 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28535
28536 # We no longer support different GC mechanisms. Emit an error if
28537 # the user configures with --with-gc.
28538
28539 # Check whether --with-gc was given.
28540 if test "${with_gc+set}" = set; then :
28541 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28542 fi
28543
28544
28545 # Libraries to use on the host. This will normally be set by the top
28546 # level Makefile. Here we simply capture the value for our Makefile.
28547 if test -z "${HOST_LIBS+set}"; then
28548 HOST_LIBS=
28549 fi
28550
28551
28552 # Use the system's zlib library.
28553
28554 # Use the system's zlib library.
28555 zlibdir="-L\$(top_builddir)/../zlib"
28556 zlibinc="-I\$(top_srcdir)/../zlib"
28557
28558 # Check whether --with-system-zlib was given.
28559 if test "${with_system_zlib+set}" = set; then :
28560 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28561 zlibdir=
28562 zlibinc=
28563 fi
28564
28565 fi
28566
28567
28568
28569
28570
28571
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28574 # Check whether --enable-maintainer-mode was given.
28575 if test "${enable_maintainer_mode+set}" = set; then :
28576 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28577 else
28578 maintainer_mode=no
28579 fi
28580
28581
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28583 $as_echo "$maintainer_mode" >&6; }
28584
28585 if test "$maintainer_mode" = "yes"; then
28586 MAINT=''
28587 else
28588 MAINT='#'
28589 fi
28590
28591
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28593 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28594 # Check whether --enable-link-mutex was given.
28595 if test "${enable_link_mutex+set}" = set; then :
28596 enableval=$enable_link_mutex; do_link_mutex=$enableval
28597 else
28598 do_link_mutex=no
28599 fi
28600
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28602 $as_echo "$do_link_mutex" >&6; }
28603
28604 if test "$do_link_mutex" = "yes"; then
28605 DO_LINK_MUTEX=true
28606 else
28607 DO_LINK_MUTEX=false
28608 fi
28609
28610
28611 # --------------
28612 # Language hooks
28613 # --------------
28614
28615 # Make empty files to contain the specs and options for each language.
28616 # Then add #include lines to for a compiler that has specs and/or options.
28617
28618 subdirs=
28619 lang_opt_files=
28620 lang_specs_files=
28621 lang_tree_files=
28622 # These (without "all_") are set in each config-lang.in.
28623 # `language' must be a single word so is spelled singularly.
28624 all_languages=
28625 all_compilers=
28626 all_outputs='Makefile'
28627 # List of language makefile fragments.
28628 all_lang_makefrags=
28629 # Additional files for gengtype
28630 all_gtfiles="$target_gtfiles"
28631
28632 # These are the languages that are set in --enable-languages,
28633 # and are available in the GCC tree.
28634 all_selected_languages=
28635
28636 # Add the language fragments.
28637 # Languages are added via two mechanisms. Some information must be
28638 # recorded in makefile variables, these are defined in config-lang.in.
28639 # We accumulate them and plug them into the main Makefile.
28640 # The other mechanism is a set of hooks for each of the main targets
28641 # like `clean', `install', etc.
28642
28643 language_hooks="Make-hooks"
28644
28645 for lang in ${srcdir}/*/config-lang.in
28646 do
28647 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28648
28649 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28650 if test "x$lang_alias" = x
28651 then
28652 echo "$lang doesn't set \$language." 1>&2
28653 exit 1
28654 fi
28655 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28656 subdirs="$subdirs $subdir"
28657
28658 # $gcc_subdir is where the gcc integration files are to be found
28659 # for a language, both for internal compiler purposes (compiler
28660 # sources implementing front-end to GCC tree converters), and for
28661 # build infrastructure purposes (Make-lang.in, etc.)
28662 #
28663 # This will be <subdir> (relative to $srcdir) if a line like
28664 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28665 # is found in <langdir>/config-lang.in, and will remain <langdir>
28666 # otherwise.
28667 #
28668 # Except for the language alias (fetched above), the regular
28669 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28670 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28671 # only this and the language alias.
28672
28673 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28674 if [ "$gcc_subdir" = "" ]; then
28675 gcc_subdir="$subdir"
28676 fi
28677
28678 case ",$enable_languages," in
28679 *,$lang_alias,*)
28680 all_selected_languages="$all_selected_languages $lang_alias"
28681 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28682 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28683 fi
28684 ;;
28685 esac
28686
28687 language=
28688 boot_language=
28689 compilers=
28690 outputs=
28691 gtfiles=
28692 subdir_requires=
28693 . ${srcdir}/$gcc_subdir/config-lang.in
28694 if test "x$language" = x
28695 then
28696 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28697 exit 1
28698 fi
28699
28700 ok=:
28701 case ",$enable_languages," in
28702 *,$lang_alias,*) ;;
28703 *)
28704 for i in $subdir_requires; do
28705 test -f "${srcdir}/$i/config-lang.in" && continue
28706 ok=false
28707 break
28708 done
28709 ;;
28710 esac
28711 $ok || continue
28712
28713 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28714 if test -f $srcdir/$gcc_subdir/lang.opt; then
28715 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28716 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28717 fi
28718 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28719 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28720 fi
28721 all_languages="$all_languages $language"
28722 all_compilers="$all_compilers $compilers"
28723 all_outputs="$all_outputs $outputs"
28724 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28725 case ",$enable_languages," in
28726 *,lto,*)
28727
28728 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28729
28730 enable_lto=yes
28731
28732 ;;
28733 *) ;;
28734 esac
28735 done
28736
28737 check_languages=
28738 for language in $all_selected_languages
28739 do
28740 check_languages="$check_languages check-$language"
28741 done
28742
28743 # We link each language in with a set of hooks, reached indirectly via
28744 # lang.${target}. Only do so for selected languages.
28745
28746 rm -f Make-hooks
28747 touch Make-hooks
28748 target_list="all.cross start.encap rest.encap tags \
28749 install-common install-man install-info install-pdf install-html dvi \
28750 pdf html uninstall info man srcextra srcman srcinfo \
28751 mostlyclean clean distclean maintainer-clean install-plugin"
28752
28753 for t in $target_list
28754 do
28755 x=
28756 for lang in $all_selected_languages
28757 do
28758 x="$x $lang.$t"
28759 done
28760 echo "lang.$t: $x" >> Make-hooks
28761 done
28762
28763 # --------
28764 # Option include files
28765 # --------
28766
28767 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28768 option_includes="option-includes.mk"
28769
28770
28771 # --------
28772 # UNSORTED
28773 # --------
28774
28775 # Create .gdbinit.
28776
28777 echo "dir ." > .gdbinit
28778 echo "dir ${srcdir}" >> .gdbinit
28779 if test x$gdb_needs_out_file_path = xyes
28780 then
28781 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28782 fi
28783 if test "x$subdirs" != x; then
28784 for s in $subdirs
28785 do
28786 echo "dir ${srcdir}/$s" >> .gdbinit
28787 done
28788 fi
28789 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28790 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28791
28792 # Put a breakpoint on __asan_report_error to help with debugging buffer
28793 # overflow.
28794 case "$CFLAGS" in
28795 *-fsanitize=address*)
28796 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28797 ;;
28798 esac
28799
28800 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28801
28802
28803
28804 # Find a directory in which to install a shared libgcc.
28805
28806 # Check whether --enable-version-specific-runtime-libs was given.
28807 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28808 enableval=$enable_version_specific_runtime_libs;
28809 fi
28810
28811
28812 # Substitute configuration variables
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875 # Echo link setup.
28876 if test x${build} = x${host} ; then
28877 if test x${host} = x${target} ; then
28878 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28879 else
28880 echo "Links are now set up to build a cross-compiler" 1>&2
28881 echo " from ${host} to ${target}." 1>&2
28882 fi
28883 else
28884 if test x${host} = x${target} ; then
28885 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28886 echo " for ${target}." 1>&2
28887 else
28888 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28889 echo " from ${host} to ${target}." 1>&2
28890 fi
28891 fi
28892
28893
28894
28895
28896
28897
28898 if test "x${ISLLIBS}" != "x" ; then
28899
28900 $as_echo "#define HAVE_isl 1" >>confdefs.h
28901
28902 fi
28903
28904 # Check whether isl_schedule_constraints_compute_schedule is available;
28905 # it's new in ISL-0.13.
28906 # Check whether isl_options_set_schedule_serialize_sccs is available;
28907 # it's new in ISL-0.15.
28908 if test "x${ISLLIBS}" != "x" ; then
28909 saved_CXXFLAGS="$CXXFLAGS"
28910 CXXFLAGS="$CXXFLAGS $ISLINC"
28911 saved_LIBS="$LIBS"
28912 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28913
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28915 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h. */
28918 #include <isl/schedule.h>
28919 int
28920 main ()
28921 {
28922 isl_options_set_schedule_serialize_sccs (NULL, 0);
28923 ;
28924 return 0;
28925 }
28926 _ACEOF
28927 if ac_fn_cxx_try_link "$LINENO"; then :
28928 ac_has_isl_options_set_schedule_serialize_sccs=yes
28929 else
28930 ac_has_isl_options_set_schedule_serialize_sccs=no
28931 fi
28932 rm -f core conftest.err conftest.$ac_objext \
28933 conftest$ac_exeext conftest.$ac_ext
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28935 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28936
28937 LIBS="$saved_LIBS"
28938 CXXFLAGS="$saved_CXXFLAGS"
28939
28940 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28941
28942 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28943
28944 fi
28945 fi
28946
28947 # Check for plugin support
28948 # Check whether --enable-plugin was given.
28949 if test "${enable_plugin+set}" = set; then :
28950 enableval=$enable_plugin; enable_plugin=$enableval
28951 else
28952 enable_plugin=yes; default_plugin=yes
28953 fi
28954
28955
28956 pluginlibs=
28957
28958 case "${host}" in
28959 *-*-darwin*)
28960 if test x$build = x$host; then
28961 export_sym_check="nm${exeext} -g"
28962 elif test x$host = x$target; then
28963 export_sym_check="$gcc_cv_nm -g"
28964 else
28965 export_sym_check=
28966 fi
28967 ;;
28968 *)
28969 if test x$build = x$host; then
28970 export_sym_check="objdump${exeext} -T"
28971 elif test x$host = x$target; then
28972 export_sym_check="$gcc_cv_objdump -T"
28973 else
28974 export_sym_check=
28975 fi
28976 ;;
28977 esac
28978
28979 if test x"$enable_plugin" = x"yes"; then
28980
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28982 $as_echo_n "checking for exported symbols... " >&6; }
28983 if test "x$export_sym_check" != x; then
28984 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28985 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28986 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28987 : # No need to use a flag
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28989 $as_echo "yes" >&6; }
28990 else
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28992 $as_echo "yes" >&6; }
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28994 $as_echo_n "checking for -rdynamic... " >&6; }
28995 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28996 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28997 plugin_rdynamic=yes
28998 pluginlibs="-rdynamic"
28999 else
29000 plugin_rdynamic=no
29001 enable_plugin=no
29002 fi
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29004 $as_echo "$plugin_rdynamic" >&6; }
29005 fi
29006 else
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29008 $as_echo "unable to check" >&6; }
29009 fi
29010
29011 # Check -ldl
29012 saved_LIBS="$LIBS"
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29014 $as_echo_n "checking for library containing dlopen... " >&6; }
29015 if test "${ac_cv_search_dlopen+set}" = set; then :
29016 $as_echo_n "(cached) " >&6
29017 else
29018 ac_func_search_save_LIBS=$LIBS
29019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29020 /* end confdefs.h. */
29021
29022 /* Override any GCC internal prototype to avoid an error.
29023 Use char because int might match the return type of a GCC
29024 builtin and then its argument prototype would still apply. */
29025 #ifdef __cplusplus
29026 extern "C"
29027 #endif
29028 char dlopen ();
29029 int
29030 main ()
29031 {
29032 return dlopen ();
29033 ;
29034 return 0;
29035 }
29036 _ACEOF
29037 for ac_lib in '' dl; do
29038 if test -z "$ac_lib"; then
29039 ac_res="none required"
29040 else
29041 ac_res=-l$ac_lib
29042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29043 fi
29044 if ac_fn_cxx_try_link "$LINENO"; then :
29045 ac_cv_search_dlopen=$ac_res
29046 fi
29047 rm -f core conftest.err conftest.$ac_objext \
29048 conftest$ac_exeext
29049 if test "${ac_cv_search_dlopen+set}" = set; then :
29050 break
29051 fi
29052 done
29053 if test "${ac_cv_search_dlopen+set}" = set; then :
29054
29055 else
29056 ac_cv_search_dlopen=no
29057 fi
29058 rm conftest.$ac_ext
29059 LIBS=$ac_func_search_save_LIBS
29060 fi
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29062 $as_echo "$ac_cv_search_dlopen" >&6; }
29063 ac_res=$ac_cv_search_dlopen
29064 if test "$ac_res" != no; then :
29065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29066
29067 fi
29068
29069 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29070 pluginlibs="$pluginlibs -ldl"
29071 fi
29072 LIBS="$saved_LIBS"
29073
29074 # Check that we can build shared objects with -fPIC -shared
29075 saved_LDFLAGS="$LDFLAGS"
29076 saved_CFLAGS="$CFLAGS"
29077 case "${host}" in
29078 *-*-darwin*)
29079 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29080 CFLAGS="$CFLAGS -fPIC"
29081 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29082 ;;
29083 *)
29084 CFLAGS="$CFLAGS -fPIC"
29085 LDFLAGS="$LDFLAGS -fPIC -shared"
29086 ;;
29087 esac
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29089 $as_echo_n "checking for -fPIC -shared... " >&6; }
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29092 extern int X;
29093 int
29094 main ()
29095 {
29096 return X == 0;
29097 ;
29098 return 0;
29099 }
29100 _ACEOF
29101 if ac_fn_cxx_try_link "$LINENO"; then :
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29103 $as_echo "yes" >&6; }; have_pic_shared=yes
29104 else
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106 $as_echo "no" >&6; }; have_pic_shared=no
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
29110 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29111 pluginlibs=
29112 enable_plugin=no
29113 fi
29114 LDFLAGS="$saved_LDFLAGS"
29115 CFLAGS="$saved_CFLAGS"
29116
29117 # If plugin support had been requested but not available, fail.
29118 if test x"$enable_plugin" = x"no" ; then
29119 if test x"$default_plugin" != x"yes"; then
29120 as_fn_error "
29121 Building GCC with plugin support requires a host that supports
29122 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29123 fi
29124 fi
29125 fi
29126
29127
29128
29129 if test x"$enable_plugin" = x"yes"; then
29130
29131 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29132
29133 fi
29134
29135
29136 # Enable --enable-host-shared
29137 # Check whether --enable-host-shared was given.
29138 if test "${enable_host_shared+set}" = set; then :
29139 enableval=$enable_host_shared; PICFLAG=-fPIC
29140 else
29141 PICFLAG=
29142 fi
29143
29144
29145
29146
29147
29148 # Check whether --enable-libquadmath-support was given.
29149 if test "${enable_libquadmath_support+set}" = set; then :
29150 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29151 else
29152 ENABLE_LIBQUADMATH_SUPPORT=yes
29153 fi
29154
29155 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29156
29157 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29158
29159 fi
29160
29161
29162 # Specify what hash style to use by default.
29163
29164 # Check whether --with-linker-hash-style was given.
29165 if test "${with_linker_hash_style+set}" = set; then :
29166 withval=$with_linker_hash_style; case x"$withval" in
29167 xsysv)
29168 LINKER_HASH_STYLE=sysv
29169 ;;
29170 xgnu)
29171 LINKER_HASH_STYLE=gnu
29172 ;;
29173 xboth)
29174 LINKER_HASH_STYLE=both
29175 ;;
29176 *)
29177 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29178 ;;
29179 esac
29180 else
29181 LINKER_HASH_STYLE=''
29182 fi
29183
29184 if test x"${LINKER_HASH_STYLE}" != x; then
29185
29186 cat >>confdefs.h <<_ACEOF
29187 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29188 _ACEOF
29189
29190 fi
29191
29192 # Specify what should be the default of -fdiagnostics-color option.
29193
29194 # Check whether --with-diagnostics-color was given.
29195 if test "${with_diagnostics_color+set}" = set; then :
29196 withval=$with_diagnostics_color; case x"$withval" in
29197 xnever)
29198 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29199 ;;
29200 xauto)
29201 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29202 ;;
29203 xauto-if-env)
29204 DIAGNOSTICS_COLOR_DEFAULT=-1
29205 ;;
29206 xalways)
29207 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29208 ;;
29209 *)
29210 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29211 ;;
29212 esac
29213 else
29214 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29215 fi
29216
29217
29218 cat >>confdefs.h <<_ACEOF
29219 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29220 _ACEOF
29221
29222
29223 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29224 # of jit/jit-playback.c.
29225 cat > gcc-driver-name.h <<EOF
29226 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29227 EOF
29228
29229 # Check whether --enable-default-pie was given.
29230 # Check whether --enable-default-pie was given.
29231 if test "${enable_default_pie+set}" = set; then :
29232 enableval=$enable_default_pie; enable_default_pie=$enableval
29233 else
29234 enable_default_pie=no
29235 fi
29236
29237 if test x$enable_default_pie = xyes ; then
29238
29239 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29240
29241 fi
29242
29243
29244 # Check if -fno-PIE works.
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29246 $as_echo_n "checking for -fno-PIE option... " >&6; }
29247 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29248 $as_echo_n "(cached) " >&6
29249 else
29250 saved_CXXFLAGS="$CXXFLAGS"
29251 CXXFLAGS="$CXXFLAGS -fno-PIE"
29252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29253 /* end confdefs.h. */
29254 int main(void) {return 0;}
29255 _ACEOF
29256 if ac_fn_cxx_try_compile "$LINENO"; then :
29257 gcc_cv_c_no_fpie=yes
29258 else
29259 gcc_cv_c_no_fpie=no
29260 fi
29261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29262 CXXFLAGS="$saved_CXXFLAGS"
29263 fi
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29265 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29266 if test "$gcc_cv_c_no_fpie" = "yes"; then
29267 NO_PIE_CFLAGS="-fno-PIE"
29268 fi
29269
29270
29271 # Check if -no-pie works.
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29273 $as_echo_n "checking for -no-pie option... " >&6; }
29274 if test "${gcc_cv_no_pie+set}" = set; then :
29275 $as_echo_n "(cached) " >&6
29276 else
29277 saved_LDFLAGS="$LDFLAGS"
29278 LDFLAGS="$LDFLAGS -no-pie"
29279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29280 /* end confdefs.h. */
29281 int main(void) {return 0;}
29282 _ACEOF
29283 if ac_fn_cxx_try_link "$LINENO"; then :
29284 gcc_cv_no_pie=yes
29285 else
29286 gcc_cv_no_pie=no
29287 fi
29288 rm -f core conftest.err conftest.$ac_objext \
29289 conftest$ac_exeext conftest.$ac_ext
29290 LDFLAGS="$saved_LDFLAGS"
29291 fi
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29293 $as_echo "$gcc_cv_no_pie" >&6; }
29294 if test "$gcc_cv_no_pie" = "yes"; then
29295 NO_PIE_FLAG="-no-pie"
29296 fi
29297
29298
29299 # Check linker supports '-z bndplt'
29300 ld_bndplt_support=no
29301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29302 $as_echo_n "checking linker -z bndplt option... " >&6; }
29303 if test x"$ld_is_gold" = xno; then
29304 if test $in_tree_ld = yes ; then
29305 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
29306 ld_bndplt_support=yes
29307 fi
29308 elif test x$gcc_cv_ld != x; then
29309 # Check if linker supports -a bndplt option
29310 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29311 ld_bndplt_support=yes
29312 fi
29313 fi
29314 fi
29315 if test x"$ld_bndplt_support" = xyes; then
29316
29317 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29318
29319 fi
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29321 $as_echo "$ld_bndplt_support" >&6; }
29322
29323 # Configure the subdirectories
29324 # AC_CONFIG_SUBDIRS($subdirs)
29325
29326 # Create the Makefile
29327 # and configure language subdirectories
29328 ac_config_files="$ac_config_files $all_outputs"
29329
29330
29331 ac_config_commands="$ac_config_commands default"
29332
29333 cat >confcache <<\_ACEOF
29334 # This file is a shell script that caches the results of configure
29335 # tests run on this system so they can be shared between configure
29336 # scripts and configure runs, see configure's option --config-cache.
29337 # It is not useful on other systems. If it contains results you don't
29338 # want to keep, you may remove or edit it.
29339 #
29340 # config.status only pays attention to the cache file if you give it
29341 # the --recheck option to rerun configure.
29342 #
29343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29345 # following values.
29346
29347 _ACEOF
29348
29349 # The following way of writing the cache mishandles newlines in values,
29350 # but we know of no workaround that is simple, portable, and efficient.
29351 # So, we kill variables containing newlines.
29352 # Ultrix sh set writes to stderr and can't be redirected directly,
29353 # and sets the high bit in the cache file unless we assign to the vars.
29354 (
29355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29356 eval ac_val=\$$ac_var
29357 case $ac_val in #(
29358 *${as_nl}*)
29359 case $ac_var in #(
29360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29362 esac
29363 case $ac_var in #(
29364 _ | IFS | as_nl) ;; #(
29365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29366 *) { eval $ac_var=; unset $ac_var;} ;;
29367 esac ;;
29368 esac
29369 done
29370
29371 (set) 2>&1 |
29372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29373 *${as_nl}ac_space=\ *)
29374 # `set' does not quote correctly, so add quotes: double-quote
29375 # substitution turns \\\\ into \\, and sed turns \\ into \.
29376 sed -n \
29377 "s/'/'\\\\''/g;
29378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29379 ;; #(
29380 *)
29381 # `set' quotes correctly as required by POSIX, so do not add quotes.
29382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29383 ;;
29384 esac |
29385 sort
29386 ) |
29387 sed '
29388 /^ac_cv_env_/b end
29389 t clear
29390 :clear
29391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29392 t end
29393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29394 :end' >>confcache
29395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29396 if test -w "$cache_file"; then
29397 test "x$cache_file" != "x/dev/null" &&
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29399 $as_echo "$as_me: updating cache $cache_file" >&6;}
29400 cat confcache >$cache_file
29401 else
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29403 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29404 fi
29405 fi
29406 rm -f confcache
29407
29408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29409 # Let make expand exec_prefix.
29410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29411
29412 DEFS=-DHAVE_CONFIG_H
29413
29414 ac_libobjs=
29415 ac_ltlibobjs=
29416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29417 # 1. Remove the extension, and $U if already installed.
29418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29419 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29421 # will be set to the directory where LIBOBJS objects are built.
29422 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29423 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29424 done
29425 LIBOBJS=$ac_libobjs
29426
29427 LTLIBOBJS=$ac_ltlibobjs
29428
29429
29430
29431
29432 : ${CONFIG_STATUS=./config.status}
29433 ac_write_fail=0
29434 ac_clean_files_save=$ac_clean_files
29435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29437 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29438 as_write_fail=0
29439 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29440 #! $SHELL
29441 # Generated by $as_me.
29442 # Run this file to recreate the current configuration.
29443 # Compiler output produced by configure, useful for debugging
29444 # configure, is in config.log if it exists.
29445
29446 debug=false
29447 ac_cs_recheck=false
29448 ac_cs_silent=false
29449
29450 SHELL=\${CONFIG_SHELL-$SHELL}
29451 export SHELL
29452 _ASEOF
29453 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29454 ## -------------------- ##
29455 ## M4sh Initialization. ##
29456 ## -------------------- ##
29457
29458 # Be more Bourne compatible
29459 DUALCASE=1; export DUALCASE # for MKS sh
29460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29461 emulate sh
29462 NULLCMD=:
29463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29464 # is contrary to our usage. Disable this feature.
29465 alias -g '${1+"$@"}'='"$@"'
29466 setopt NO_GLOB_SUBST
29467 else
29468 case `(set -o) 2>/dev/null` in #(
29469 *posix*) :
29470 set -o posix ;; #(
29471 *) :
29472 ;;
29473 esac
29474 fi
29475
29476
29477 as_nl='
29478 '
29479 export as_nl
29480 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29481 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29484 # Prefer a ksh shell builtin over an external printf program on Solaris,
29485 # but without wasting forks for bash or zsh.
29486 if test -z "$BASH_VERSION$ZSH_VERSION" \
29487 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29488 as_echo='print -r --'
29489 as_echo_n='print -rn --'
29490 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29491 as_echo='printf %s\n'
29492 as_echo_n='printf %s'
29493 else
29494 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29495 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29496 as_echo_n='/usr/ucb/echo -n'
29497 else
29498 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29499 as_echo_n_body='eval
29500 arg=$1;
29501 case $arg in #(
29502 *"$as_nl"*)
29503 expr "X$arg" : "X\\(.*\\)$as_nl";
29504 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29505 esac;
29506 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29507 '
29508 export as_echo_n_body
29509 as_echo_n='sh -c $as_echo_n_body as_echo'
29510 fi
29511 export as_echo_body
29512 as_echo='sh -c $as_echo_body as_echo'
29513 fi
29514
29515 # The user is always right.
29516 if test "${PATH_SEPARATOR+set}" != set; then
29517 PATH_SEPARATOR=:
29518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29520 PATH_SEPARATOR=';'
29521 }
29522 fi
29523
29524
29525 # IFS
29526 # We need space, tab and new line, in precisely that order. Quoting is
29527 # there to prevent editors from complaining about space-tab.
29528 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29529 # splitting by setting IFS to empty value.)
29530 IFS=" "" $as_nl"
29531
29532 # Find who we are. Look in the path if we contain no directory separator.
29533 case $0 in #((
29534 *[\\/]* ) as_myself=$0 ;;
29535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29536 for as_dir in $PATH
29537 do
29538 IFS=$as_save_IFS
29539 test -z "$as_dir" && as_dir=.
29540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29541 done
29542 IFS=$as_save_IFS
29543
29544 ;;
29545 esac
29546 # We did not find ourselves, most probably we were run as `sh COMMAND'
29547 # in which case we are not to be found in the path.
29548 if test "x$as_myself" = x; then
29549 as_myself=$0
29550 fi
29551 if test ! -f "$as_myself"; then
29552 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29553 exit 1
29554 fi
29555
29556 # Unset variables that we do not need and which cause bugs (e.g. in
29557 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29558 # suppresses any "Segmentation fault" message there. '((' could
29559 # trigger a bug in pdksh 5.2.14.
29560 for as_var in BASH_ENV ENV MAIL MAILPATH
29561 do eval test x\${$as_var+set} = xset \
29562 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29563 done
29564 PS1='$ '
29565 PS2='> '
29566 PS4='+ '
29567
29568 # NLS nuisances.
29569 LC_ALL=C
29570 export LC_ALL
29571 LANGUAGE=C
29572 export LANGUAGE
29573
29574 # CDPATH.
29575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29576
29577
29578 # as_fn_error ERROR [LINENO LOG_FD]
29579 # ---------------------------------
29580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29582 # script with status $?, using 1 if that was 0.
29583 as_fn_error ()
29584 {
29585 as_status=$?; test $as_status -eq 0 && as_status=1
29586 if test "$3"; then
29587 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29588 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29589 fi
29590 $as_echo "$as_me: error: $1" >&2
29591 as_fn_exit $as_status
29592 } # as_fn_error
29593
29594
29595 # as_fn_set_status STATUS
29596 # -----------------------
29597 # Set $? to STATUS, without forking.
29598 as_fn_set_status ()
29599 {
29600 return $1
29601 } # as_fn_set_status
29602
29603 # as_fn_exit STATUS
29604 # -----------------
29605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29606 as_fn_exit ()
29607 {
29608 set +e
29609 as_fn_set_status $1
29610 exit $1
29611 } # as_fn_exit
29612
29613 # as_fn_unset VAR
29614 # ---------------
29615 # Portably unset VAR.
29616 as_fn_unset ()
29617 {
29618 { eval $1=; unset $1;}
29619 }
29620 as_unset=as_fn_unset
29621 # as_fn_append VAR VALUE
29622 # ----------------------
29623 # Append the text in VALUE to the end of the definition contained in VAR. Take
29624 # advantage of any shell optimizations that allow amortized linear growth over
29625 # repeated appends, instead of the typical quadratic growth present in naive
29626 # implementations.
29627 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29628 eval 'as_fn_append ()
29629 {
29630 eval $1+=\$2
29631 }'
29632 else
29633 as_fn_append ()
29634 {
29635 eval $1=\$$1\$2
29636 }
29637 fi # as_fn_append
29638
29639 # as_fn_arith ARG...
29640 # ------------------
29641 # Perform arithmetic evaluation on the ARGs, and store the result in the
29642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29643 # must be portable across $(()) and expr.
29644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29645 eval 'as_fn_arith ()
29646 {
29647 as_val=$(( $* ))
29648 }'
29649 else
29650 as_fn_arith ()
29651 {
29652 as_val=`expr "$@" || test $? -eq 1`
29653 }
29654 fi # as_fn_arith
29655
29656
29657 if expr a : '\(a\)' >/dev/null 2>&1 &&
29658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29659 as_expr=expr
29660 else
29661 as_expr=false
29662 fi
29663
29664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29665 as_basename=basename
29666 else
29667 as_basename=false
29668 fi
29669
29670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29671 as_dirname=dirname
29672 else
29673 as_dirname=false
29674 fi
29675
29676 as_me=`$as_basename -- "$0" ||
29677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29678 X"$0" : 'X\(//\)$' \| \
29679 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29680 $as_echo X/"$0" |
29681 sed '/^.*\/\([^/][^/]*\)\/*$/{
29682 s//\1/
29683 q
29684 }
29685 /^X\/\(\/\/\)$/{
29686 s//\1/
29687 q
29688 }
29689 /^X\/\(\/\).*/{
29690 s//\1/
29691 q
29692 }
29693 s/.*/./; q'`
29694
29695 # Avoid depending upon Character Ranges.
29696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29699 as_cr_digits='0123456789'
29700 as_cr_alnum=$as_cr_Letters$as_cr_digits
29701
29702 ECHO_C= ECHO_N= ECHO_T=
29703 case `echo -n x` in #(((((
29704 -n*)
29705 case `echo 'xy\c'` in
29706 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29707 xy) ECHO_C='\c';;
29708 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29709 ECHO_T=' ';;
29710 esac;;
29711 *)
29712 ECHO_N='-n';;
29713 esac
29714
29715 rm -f conf$$ conf$$.exe conf$$.file
29716 if test -d conf$$.dir; then
29717 rm -f conf$$.dir/conf$$.file
29718 else
29719 rm -f conf$$.dir
29720 mkdir conf$$.dir 2>/dev/null
29721 fi
29722 if (echo >conf$$.file) 2>/dev/null; then
29723 if ln -s conf$$.file conf$$ 2>/dev/null; then
29724 as_ln_s='ln -s'
29725 # ... but there are two gotchas:
29726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29728 # In both cases, we have to default to `cp -p'.
29729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29730 as_ln_s='cp -p'
29731 elif ln conf$$.file conf$$ 2>/dev/null; then
29732 as_ln_s=ln
29733 else
29734 as_ln_s='cp -p'
29735 fi
29736 else
29737 as_ln_s='cp -p'
29738 fi
29739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29740 rmdir conf$$.dir 2>/dev/null
29741
29742
29743 # as_fn_mkdir_p
29744 # -------------
29745 # Create "$as_dir" as a directory, including parents if necessary.
29746 as_fn_mkdir_p ()
29747 {
29748
29749 case $as_dir in #(
29750 -*) as_dir=./$as_dir;;
29751 esac
29752 test -d "$as_dir" || eval $as_mkdir_p || {
29753 as_dirs=
29754 while :; do
29755 case $as_dir in #(
29756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29757 *) as_qdir=$as_dir;;
29758 esac
29759 as_dirs="'$as_qdir' $as_dirs"
29760 as_dir=`$as_dirname -- "$as_dir" ||
29761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29762 X"$as_dir" : 'X\(//\)[^/]' \| \
29763 X"$as_dir" : 'X\(//\)$' \| \
29764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29765 $as_echo X"$as_dir" |
29766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29767 s//\1/
29768 q
29769 }
29770 /^X\(\/\/\)[^/].*/{
29771 s//\1/
29772 q
29773 }
29774 /^X\(\/\/\)$/{
29775 s//\1/
29776 q
29777 }
29778 /^X\(\/\).*/{
29779 s//\1/
29780 q
29781 }
29782 s/.*/./; q'`
29783 test -d "$as_dir" && break
29784 done
29785 test -z "$as_dirs" || eval "mkdir $as_dirs"
29786 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29787
29788
29789 } # as_fn_mkdir_p
29790 if mkdir -p . 2>/dev/null; then
29791 as_mkdir_p='mkdir -p "$as_dir"'
29792 else
29793 test -d ./-p && rmdir ./-p
29794 as_mkdir_p=false
29795 fi
29796
29797 if test -x / >/dev/null 2>&1; then
29798 as_test_x='test -x'
29799 else
29800 if ls -dL / >/dev/null 2>&1; then
29801 as_ls_L_option=L
29802 else
29803 as_ls_L_option=
29804 fi
29805 as_test_x='
29806 eval sh -c '\''
29807 if test -d "$1"; then
29808 test -d "$1/.";
29809 else
29810 case $1 in #(
29811 -*)set "./$1";;
29812 esac;
29813 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29814 ???[sx]*):;;*)false;;esac;fi
29815 '\'' sh
29816 '
29817 fi
29818 as_executable_p=$as_test_x
29819
29820 # Sed expression to map a string onto a valid CPP name.
29821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29822
29823 # Sed expression to map a string onto a valid variable name.
29824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29825
29826
29827 exec 6>&1
29828 ## ----------------------------------- ##
29829 ## Main body of $CONFIG_STATUS script. ##
29830 ## ----------------------------------- ##
29831 _ASEOF
29832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29833
29834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29835 # Save the log message, to keep $0 and so on meaningful, and to
29836 # report actual input values of CONFIG_FILES etc. instead of their
29837 # values after options handling.
29838 ac_log="
29839 This file was extended by $as_me, which was
29840 generated by GNU Autoconf 2.64. Invocation command line was
29841
29842 CONFIG_FILES = $CONFIG_FILES
29843 CONFIG_HEADERS = $CONFIG_HEADERS
29844 CONFIG_LINKS = $CONFIG_LINKS
29845 CONFIG_COMMANDS = $CONFIG_COMMANDS
29846 $ $0 $@
29847
29848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29849 "
29850
29851 _ACEOF
29852
29853 case $ac_config_files in *"
29854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29855 esac
29856
29857 case $ac_config_headers in *"
29858 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29859 esac
29860
29861
29862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29863 # Files that config.status was made for.
29864 config_files="$ac_config_files"
29865 config_headers="$ac_config_headers"
29866 config_links="$ac_config_links"
29867 config_commands="$ac_config_commands"
29868
29869 _ACEOF
29870
29871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29872 ac_cs_usage="\
29873 \`$as_me' instantiates files and other configuration actions
29874 from templates according to the current configuration. Unless the files
29875 and actions are specified as TAGs, all are instantiated by default.
29876
29877 Usage: $0 [OPTION]... [TAG]...
29878
29879 -h, --help print this help, then exit
29880 -V, --version print version number and configuration settings, then exit
29881 -q, --quiet, --silent
29882 do not print progress messages
29883 -d, --debug don't remove temporary files
29884 --recheck update $as_me by reconfiguring in the same conditions
29885 --file=FILE[:TEMPLATE]
29886 instantiate the configuration file FILE
29887 --header=FILE[:TEMPLATE]
29888 instantiate the configuration header FILE
29889
29890 Configuration files:
29891 $config_files
29892
29893 Configuration headers:
29894 $config_headers
29895
29896 Configuration links:
29897 $config_links
29898
29899 Configuration commands:
29900 $config_commands
29901
29902 Report bugs to the package provider."
29903
29904 _ACEOF
29905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29906 ac_cs_version="\\
29907 config.status
29908 configured by $0, generated by GNU Autoconf 2.64,
29909 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29910
29911 Copyright (C) 2009 Free Software Foundation, Inc.
29912 This config.status script is free software; the Free Software Foundation
29913 gives unlimited permission to copy, distribute and modify it."
29914
29915 ac_pwd='$ac_pwd'
29916 srcdir='$srcdir'
29917 AWK='$AWK'
29918 test -n "\$AWK" || AWK=awk
29919 _ACEOF
29920
29921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29922 # The default lists apply if the user does not specify any file.
29923 ac_need_defaults=:
29924 while test $# != 0
29925 do
29926 case $1 in
29927 --*=*)
29928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29930 ac_shift=:
29931 ;;
29932 *)
29933 ac_option=$1
29934 ac_optarg=$2
29935 ac_shift=shift
29936 ;;
29937 esac
29938
29939 case $ac_option in
29940 # Handling of the options.
29941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29942 ac_cs_recheck=: ;;
29943 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29944 $as_echo "$ac_cs_version"; exit ;;
29945 --debug | --debu | --deb | --de | --d | -d )
29946 debug=: ;;
29947 --file | --fil | --fi | --f )
29948 $ac_shift
29949 case $ac_optarg in
29950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29951 esac
29952 as_fn_append CONFIG_FILES " '$ac_optarg'"
29953 ac_need_defaults=false;;
29954 --header | --heade | --head | --hea )
29955 $ac_shift
29956 case $ac_optarg in
29957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29958 esac
29959 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29960 ac_need_defaults=false;;
29961 --he | --h)
29962 # Conflict between --help and --header
29963 as_fn_error "ambiguous option: \`$1'
29964 Try \`$0 --help' for more information.";;
29965 --help | --hel | -h )
29966 $as_echo "$ac_cs_usage"; exit ;;
29967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29969 ac_cs_silent=: ;;
29970
29971 # This is an error.
29972 -*) as_fn_error "unrecognized option: \`$1'
29973 Try \`$0 --help' for more information." ;;
29974
29975 *) as_fn_append ac_config_targets " $1"
29976 ac_need_defaults=false ;;
29977
29978 esac
29979 shift
29980 done
29981
29982 ac_configure_extra_args=
29983
29984 if $ac_cs_silent; then
29985 exec 6>/dev/null
29986 ac_configure_extra_args="$ac_configure_extra_args --silent"
29987 fi
29988
29989 _ACEOF
29990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29991 if \$ac_cs_recheck; then
29992 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29993 shift
29994 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29995 CONFIG_SHELL='$SHELL'
29996 export CONFIG_SHELL
29997 exec "\$@"
29998 fi
29999
30000 _ACEOF
30001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30002 exec 5>>config.log
30003 {
30004 echo
30005 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30006 ## Running $as_me. ##
30007 _ASBOX
30008 $as_echo "$ac_log"
30009 } >&5
30010
30011 _ACEOF
30012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30013 #
30014 # INIT-COMMANDS
30015 #
30016 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30017 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30018 subdirs='$subdirs'
30019
30020 _ACEOF
30021
30022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30023
30024 # Handling of arguments.
30025 for ac_config_target in $ac_config_targets
30026 do
30027 case $ac_config_target in
30028 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30029 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30030 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30031 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30032 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30033 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30034 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30035 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30036 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30037
30038 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30039 esac
30040 done
30041
30042
30043 # If the user did not use the arguments to specify the items to instantiate,
30044 # then the envvar interface is used. Set only those that are not.
30045 # We use the long form for the default assignment because of an extremely
30046 # bizarre bug on SunOS 4.1.3.
30047 if $ac_need_defaults; then
30048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30050 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30052 fi
30053
30054 # Have a temporary directory for convenience. Make it in the build tree
30055 # simply because there is no reason against having it here, and in addition,
30056 # creating and moving files from /tmp can sometimes cause problems.
30057 # Hook for its removal unless debugging.
30058 # Note that there is a small window in which the directory will not be cleaned:
30059 # after its creation but before its name has been assigned to `$tmp'.
30060 $debug ||
30061 {
30062 tmp=
30063 trap 'exit_status=$?
30064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30065 ' 0
30066 trap 'as_fn_exit 1' 1 2 13 15
30067 }
30068 # Create a (secure) tmp directory for tmp files.
30069
30070 {
30071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30072 test -n "$tmp" && test -d "$tmp"
30073 } ||
30074 {
30075 tmp=./conf$$-$RANDOM
30076 (umask 077 && mkdir "$tmp")
30077 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30078
30079 # Set up the scripts for CONFIG_FILES section.
30080 # No need to generate them if there are no CONFIG_FILES.
30081 # This happens for instance with `./config.status config.h'.
30082 if test -n "$CONFIG_FILES"; then
30083
30084 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30085 ac_cs_awk_getline=:
30086 ac_cs_awk_pipe_init=
30087 ac_cs_awk_read_file='
30088 while ((getline aline < (F[key])) > 0)
30089 print(aline)
30090 close(F[key])'
30091 ac_cs_awk_pipe_fini=
30092 else
30093 ac_cs_awk_getline=false
30094 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30095 ac_cs_awk_read_file='
30096 print "|#_!!_#|"
30097 print "cat " F[key] " &&"
30098 '$ac_cs_awk_pipe_init
30099 # The final `:' finishes the AND list.
30100 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30101 fi
30102 ac_cr=`echo X | tr X '\015'`
30103 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30104 # But we know of no other shell where ac_cr would be empty at this
30105 # point, so we can use a bashism as a fallback.
30106 if test "x$ac_cr" = x; then
30107 eval ac_cr=\$\'\\r\'
30108 fi
30109 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30110 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30111 ac_cs_awk_cr='\r'
30112 else
30113 ac_cs_awk_cr=$ac_cr
30114 fi
30115
30116 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30117 _ACEOF
30118
30119 # Create commands to substitute file output variables.
30120 {
30121 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30122 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30123 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30124 echo "_ACAWK" &&
30125 echo "_ACEOF"
30126 } >conf$$files.sh &&
30127 . ./conf$$files.sh ||
30128 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30129 rm -f conf$$files.sh
30130
30131 {
30132 echo "cat >conf$$subs.awk <<_ACEOF" &&
30133 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30134 echo "_ACEOF"
30135 } >conf$$subs.sh ||
30136 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30137 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30138 ac_delim='%!_!# '
30139 for ac_last_try in false false false false false :; do
30140 . ./conf$$subs.sh ||
30141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30142
30143 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30144 if test $ac_delim_n = $ac_delim_num; then
30145 break
30146 elif $ac_last_try; then
30147 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30148 else
30149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30150 fi
30151 done
30152 rm -f conf$$subs.sh
30153
30154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30155 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30156 _ACEOF
30157 sed -n '
30158 h
30159 s/^/S["/; s/!.*/"]=/
30160 p
30161 g
30162 s/^[^!]*!//
30163 :repl
30164 t repl
30165 s/'"$ac_delim"'$//
30166 t delim
30167 :nl
30168 h
30169 s/\(.\{148\}\).*/\1/
30170 t more1
30171 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30172 p
30173 n
30174 b repl
30175 :more1
30176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30177 p
30178 g
30179 s/.\{148\}//
30180 t nl
30181 :delim
30182 h
30183 s/\(.\{148\}\).*/\1/
30184 t more2
30185 s/["\\]/\\&/g; s/^/"/; s/$/"/
30186 p
30187 b
30188 :more2
30189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30190 p
30191 g
30192 s/.\{148\}//
30193 t delim
30194 ' <conf$$subs.awk | sed '
30195 /^[^""]/{
30196 N
30197 s/\n//
30198 }
30199 ' >>$CONFIG_STATUS || ac_write_fail=1
30200 rm -f conf$$subs.awk
30201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30202 _ACAWK
30203 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30204 for (key in S) S_is_set[key] = 1
30205 FS = "\a"
30206 \$ac_cs_awk_pipe_init
30207 }
30208 {
30209 line = $ 0
30210 nfields = split(line, field, "@")
30211 substed = 0
30212 len = length(field[1])
30213 for (i = 2; i < nfields; i++) {
30214 key = field[i]
30215 keylen = length(key)
30216 if (S_is_set[key]) {
30217 value = S[key]
30218 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30219 len += length(value) + length(field[++i])
30220 substed = 1
30221 } else
30222 len += 1 + keylen
30223 }
30224 if (nfields == 3 && !substed) {
30225 key = field[2]
30226 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30227 \$ac_cs_awk_read_file
30228 next
30229 }
30230 }
30231 print line
30232 }
30233 \$ac_cs_awk_pipe_fini
30234 _ACAWK
30235 _ACEOF
30236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30239 else
30240 cat
30241 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30242 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30243 _ACEOF
30244
30245 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30246 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30247 # trailing colons and then remove the whole line if VPATH becomes empty
30248 # (actually we leave an empty line to preserve line numbers).
30249 if test "x$srcdir" = x.; then
30250 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30251 s/:*\$(srcdir):*/:/
30252 s/:*\${srcdir}:*/:/
30253 s/:*@srcdir@:*/:/
30254 s/^\([^=]*=[ ]*\):*/\1/
30255 s/:*$//
30256 s/^[^=]*=[ ]*$//
30257 }'
30258 fi
30259
30260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30261 fi # test -n "$CONFIG_FILES"
30262
30263 # Set up the scripts for CONFIG_HEADERS section.
30264 # No need to generate them if there are no CONFIG_HEADERS.
30265 # This happens for instance with `./config.status Makefile'.
30266 if test -n "$CONFIG_HEADERS"; then
30267 cat >"$tmp/defines.awk" <<\_ACAWK ||
30268 BEGIN {
30269 _ACEOF
30270
30271 # Transform confdefs.h into an awk script `defines.awk', embedded as
30272 # here-document in config.status, that substitutes the proper values into
30273 # config.h.in to produce config.h.
30274
30275 # Create a delimiter string that does not exist in confdefs.h, to ease
30276 # handling of long lines.
30277 ac_delim='%!_!# '
30278 for ac_last_try in false false :; do
30279 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30280 if test -z "$ac_t"; then
30281 break
30282 elif $ac_last_try; then
30283 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30284 else
30285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30286 fi
30287 done
30288
30289 # For the awk script, D is an array of macro values keyed by name,
30290 # likewise P contains macro parameters if any. Preserve backslash
30291 # newline sequences.
30292
30293 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30294 sed -n '
30295 s/.\{148\}/&'"$ac_delim"'/g
30296 t rset
30297 :rset
30298 s/^[ ]*#[ ]*define[ ][ ]*/ /
30299 t def
30300 d
30301 :def
30302 s/\\$//
30303 t bsnl
30304 s/["\\]/\\&/g
30305 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30306 D["\1"]=" \3"/p
30307 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30308 d
30309 :bsnl
30310 s/["\\]/\\&/g
30311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30312 D["\1"]=" \3\\\\\\n"\\/p
30313 t cont
30314 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30315 t cont
30316 d
30317 :cont
30318 n
30319 s/.\{148\}/&'"$ac_delim"'/g
30320 t clear
30321 :clear
30322 s/\\$//
30323 t bsnlc
30324 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30325 d
30326 :bsnlc
30327 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30328 b cont
30329 ' <confdefs.h | sed '
30330 s/'"$ac_delim"'/"\\\
30331 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30332
30333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30334 for (key in D) D_is_set[key] = 1
30335 FS = "\a"
30336 }
30337 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30338 line = \$ 0
30339 split(line, arg, " ")
30340 if (arg[1] == "#") {
30341 defundef = arg[2]
30342 mac1 = arg[3]
30343 } else {
30344 defundef = substr(arg[1], 2)
30345 mac1 = arg[2]
30346 }
30347 split(mac1, mac2, "(") #)
30348 macro = mac2[1]
30349 prefix = substr(line, 1, index(line, defundef) - 1)
30350 if (D_is_set[macro]) {
30351 # Preserve the white space surrounding the "#".
30352 print prefix "define", macro P[macro] D[macro]
30353 next
30354 } else {
30355 # Replace #undef with comments. This is necessary, for example,
30356 # in the case of _POSIX_SOURCE, which is predefined and required
30357 # on some systems where configure will not decide to define it.
30358 if (defundef == "undef") {
30359 print "/*", prefix defundef, macro, "*/"
30360 next
30361 }
30362 }
30363 }
30364 { print }
30365 _ACAWK
30366 _ACEOF
30367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30368 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30369 fi # test -n "$CONFIG_HEADERS"
30370
30371
30372 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30373 shift
30374 for ac_tag
30375 do
30376 case $ac_tag in
30377 :[FHLC]) ac_mode=$ac_tag; continue;;
30378 esac
30379 case $ac_mode$ac_tag in
30380 :[FHL]*:*);;
30381 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30382 :[FH]-) ac_tag=-:-;;
30383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30384 esac
30385 ac_save_IFS=$IFS
30386 IFS=:
30387 set x $ac_tag
30388 IFS=$ac_save_IFS
30389 shift
30390 ac_file=$1
30391 shift
30392
30393 case $ac_mode in
30394 :L) ac_source=$1;;
30395 :[FH])
30396 ac_file_inputs=
30397 for ac_f
30398 do
30399 case $ac_f in
30400 -) ac_f="$tmp/stdin";;
30401 *) # Look for the file first in the build tree, then in the source tree
30402 # (if the path is not absolute). The absolute path cannot be DOS-style,
30403 # because $ac_f cannot contain `:'.
30404 test -f "$ac_f" ||
30405 case $ac_f in
30406 [\\/$]*) false;;
30407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30408 esac ||
30409 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30410 esac
30411 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30412 as_fn_append ac_file_inputs " '$ac_f'"
30413 done
30414
30415 # Let's still pretend it is `configure' which instantiates (i.e., don't
30416 # use $as_me), people would be surprised to read:
30417 # /* config.h. Generated by config.status. */
30418 configure_input='Generated from '`
30419 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30420 `' by configure.'
30421 if test x"$ac_file" != x-; then
30422 configure_input="$ac_file. $configure_input"
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30424 $as_echo "$as_me: creating $ac_file" >&6;}
30425 fi
30426 # Neutralize special characters interpreted by sed in replacement strings.
30427 case $configure_input in #(
30428 *\&* | *\|* | *\\* )
30429 ac_sed_conf_input=`$as_echo "$configure_input" |
30430 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30431 *) ac_sed_conf_input=$configure_input;;
30432 esac
30433
30434 case $ac_tag in
30435 *:-:* | *:-) cat >"$tmp/stdin" \
30436 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30437 esac
30438 ;;
30439 esac
30440
30441 ac_dir=`$as_dirname -- "$ac_file" ||
30442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30443 X"$ac_file" : 'X\(//\)[^/]' \| \
30444 X"$ac_file" : 'X\(//\)$' \| \
30445 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30446 $as_echo X"$ac_file" |
30447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30448 s//\1/
30449 q
30450 }
30451 /^X\(\/\/\)[^/].*/{
30452 s//\1/
30453 q
30454 }
30455 /^X\(\/\/\)$/{
30456 s//\1/
30457 q
30458 }
30459 /^X\(\/\).*/{
30460 s//\1/
30461 q
30462 }
30463 s/.*/./; q'`
30464 as_dir="$ac_dir"; as_fn_mkdir_p
30465 ac_builddir=.
30466
30467 case "$ac_dir" in
30468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30469 *)
30470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30471 # A ".." for each directory in $ac_dir_suffix.
30472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30473 case $ac_top_builddir_sub in
30474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30476 esac ;;
30477 esac
30478 ac_abs_top_builddir=$ac_pwd
30479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30480 # for backward compatibility:
30481 ac_top_builddir=$ac_top_build_prefix
30482
30483 case $srcdir in
30484 .) # We are building in place.
30485 ac_srcdir=.
30486 ac_top_srcdir=$ac_top_builddir_sub
30487 ac_abs_top_srcdir=$ac_pwd ;;
30488 [\\/]* | ?:[\\/]* ) # Absolute name.
30489 ac_srcdir=$srcdir$ac_dir_suffix;
30490 ac_top_srcdir=$srcdir
30491 ac_abs_top_srcdir=$srcdir ;;
30492 *) # Relative name.
30493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30494 ac_top_srcdir=$ac_top_build_prefix$srcdir
30495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30496 esac
30497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30498
30499
30500 case $ac_mode in
30501 :F)
30502 #
30503 # CONFIG_FILE
30504 #
30505
30506 _ACEOF
30507
30508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30509 # If the template does not know about datarootdir, expand it.
30510 # FIXME: This hack should be removed a few years after 2.60.
30511 ac_datarootdir_hack=; ac_datarootdir_seen=
30512 ac_sed_dataroot='
30513 /datarootdir/ {
30514 p
30515 q
30516 }
30517 /@datadir@/p
30518 /@docdir@/p
30519 /@infodir@/p
30520 /@localedir@/p
30521 /@mandir@/p'
30522 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30523 *datarootdir*) ac_datarootdir_seen=yes;;
30524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30526 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30527 _ACEOF
30528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30529 ac_datarootdir_hack='
30530 s&@datadir@&$datadir&g
30531 s&@docdir@&$docdir&g
30532 s&@infodir@&$infodir&g
30533 s&@localedir@&$localedir&g
30534 s&@mandir@&$mandir&g
30535 s&\\\${datarootdir}&$datarootdir&g' ;;
30536 esac
30537 _ACEOF
30538
30539 # Neutralize VPATH when `$srcdir' = `.'.
30540 # Shell code in configure.ac might set extrasub.
30541 # FIXME: do we really want to maintain this feature?
30542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30543 ac_sed_extra="$ac_vpsub
30544 $extrasub
30545 _ACEOF
30546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30547 :t
30548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30549 s|@configure_input@|$ac_sed_conf_input|;t t
30550 s&@top_builddir@&$ac_top_builddir_sub&;t t
30551 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30552 s&@srcdir@&$ac_srcdir&;t t
30553 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30554 s&@top_srcdir@&$ac_top_srcdir&;t t
30555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30556 s&@builddir@&$ac_builddir&;t t
30557 s&@abs_builddir@&$ac_abs_builddir&;t t
30558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30559 $ac_datarootdir_hack
30560 "
30561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30562 if $ac_cs_awk_getline; then
30563 $AWK -f "$tmp/subs.awk"
30564 else
30565 $AWK -f "$tmp/subs.awk" | $SHELL
30566 fi >$tmp/out \
30567 || as_fn_error "could not create $ac_file" "$LINENO" 5
30568
30569 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30570 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30571 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30573 which seems to be undefined. Please make sure it is defined." >&5
30574 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30575 which seems to be undefined. Please make sure it is defined." >&2;}
30576
30577 rm -f "$tmp/stdin"
30578 case $ac_file in
30579 -) cat "$tmp/out" && rm -f "$tmp/out";;
30580 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30581 esac \
30582 || as_fn_error "could not create $ac_file" "$LINENO" 5
30583 ;;
30584 :H)
30585 #
30586 # CONFIG_HEADER
30587 #
30588 if test x"$ac_file" != x-; then
30589 {
30590 $as_echo "/* $configure_input */" \
30591 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30592 } >"$tmp/config.h" \
30593 || as_fn_error "could not create $ac_file" "$LINENO" 5
30594 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30596 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30597 else
30598 rm -f "$ac_file"
30599 mv "$tmp/config.h" "$ac_file" \
30600 || as_fn_error "could not create $ac_file" "$LINENO" 5
30601 fi
30602 else
30603 $as_echo "/* $configure_input */" \
30604 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30605 || as_fn_error "could not create -" "$LINENO" 5
30606 fi
30607 ;;
30608 :L)
30609 #
30610 # CONFIG_LINK
30611 #
30612
30613 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30614 :
30615 else
30616 # Prefer the file from the source tree if names are identical.
30617 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30618 ac_source=$srcdir/$ac_source
30619 fi
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30622 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30623
30624 if test ! -r "$ac_source"; then
30625 as_fn_error "$ac_source: file not found" "$LINENO" 5
30626 fi
30627 rm -f "$ac_file"
30628
30629 # Try a relative symlink, then a hard link, then a copy.
30630 case $srcdir in
30631 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30632 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30633 esac
30634 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30635 ln "$ac_source" "$ac_file" 2>/dev/null ||
30636 cp -p "$ac_source" "$ac_file" ||
30637 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30638 fi
30639 ;;
30640 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30641 $as_echo "$as_me: executing $ac_file commands" >&6;}
30642 ;;
30643 esac
30644
30645
30646 case $ac_file$ac_mode in
30647 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30648 "gccdepdir":C)
30649 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30650 for lang in $subdirs c-family common
30651 do
30652 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30653 done ;;
30654 "as":F) chmod +x as ;;
30655 "collect-ld":F) chmod +x collect-ld ;;
30656 "nm":F) chmod +x nm ;;
30657 "default":C)
30658 case ${CONFIG_HEADERS} in
30659 *auto-host.h:config.in*)
30660 echo > cstamp-h ;;
30661 esac
30662 # Make sure all the subdirs exist.
30663 for d in $subdirs doc build common c-family
30664 do
30665 test -d $d || mkdir $d
30666 done
30667 ;;
30668
30669 esac
30670 done # for ac_tag
30671
30672
30673 as_fn_exit 0
30674 _ACEOF
30675 ac_clean_files=$ac_clean_files_save
30676
30677 test $ac_write_fail = 0 ||
30678 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30679
30680
30681 # configure is writing to config.log, and then calls config.status.
30682 # config.status does its own redirection, appending to config.log.
30683 # Unfortunately, on DOS this fails, as config.log is still kept open
30684 # by configure, so config.status won't be able to write to it; its
30685 # output is simply discarded. So we exec the FD to /dev/null,
30686 # effectively closing config.log, so it can be properly (re)opened and
30687 # appended to by config.status. When coming back to configure, we
30688 # need to make the FD available again.
30689 if test "$no_create" != yes; then
30690 ac_cs_success=:
30691 ac_config_status_args=
30692 test "$silent" = yes &&
30693 ac_config_status_args="$ac_config_status_args --quiet"
30694 exec 5>/dev/null
30695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30696 exec 5>>config.log
30697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30698 # would make configure fail if this is the last instruction.
30699 $ac_cs_success || as_fn_exit $?
30700 fi
30701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30704 fi
30705
30706