configure revision 1.6 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 (at] gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
714 ALL
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 doc_build_sys
745 AR
746 NM
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
759 LN
760 LN_S
761 AWK
762 SET_MAKE
763 accel_dir_suffix
764 real_target_noncanonical
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
797 CPP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
803 CXX
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
810 CC
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 with_multilib_list
907 enable_rpath
908 with_libiconv_prefix
909 enable_sjlj_exceptions
910 enable_secureplt
911 enable_leading_mingw64_underscores
912 enable_cld
913 enable_frame_pointer
914 enable_win32_registry
915 enable_static
916 with_pic
917 enable_fast_install
918 enable_libtool_lock
919 enable_ld
920 enable_gold
921 with_plugin_ld
922 enable_gnu_indirect_function
923 enable_initfini_array
924 enable_comdat
925 enable_fix_cortex_a53_835769
926 enable_fix_cortex_a53_843419
927 with_glibc_version
928 enable_gnu_unique_object
929 enable_linker_build_id
930 with_long_double_128
931 with_gc
932 with_system_zlib
933 enable_maintainer_mode
934 enable_link_mutex
935 enable_version_specific_runtime_libs
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_linker_hash_style
940 with_diagnostics_color
941 '
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CXX
951 CXXFLAGS
952 CCC
953 CPP
954 CXXCPP
955 GMPLIBS
956 GMPINC
957 ISLLIBS
958 ISLINC'
959
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
982
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1008
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1012 do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1018 fi
1019
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
1030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1055
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=no ;;
1078
1079 -docdir | --docdir | --docdi | --doc | --do)
1080 ac_prev=docdir ;;
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1083
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 ac_prev=dvidir ;;
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1088
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1308
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1324
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1328
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1335
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1342
1343 -*) as_fn_error "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1345 ;;
1346
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1353 esac
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1356
1357 *)
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1363 ;;
1364
1365 esac
1366 done
1367
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error "missing argument to $ac_option"
1371 fi
1372
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1379 fi
1380
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1386 do
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1401
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1408
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1417 fi
1418 fi
1419
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422
1423 test "$silent" = yes && exec 6>/dev/null
1424
1425
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error "pwd does not report name of working directory"
1432
1433
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)$/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\).*/{
1457 s//\1/
1458 q
1459 }
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1464 fi
1465 else
1466 ac_srcdir_defaulted=no
1467 fi
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1471 fi
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1479 fi
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1492
1493 #
1494 # Report the --help message.
1495 #
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1501
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1503
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1506
1507 Defaults for the options are specified in brackets.
1508
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1525
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1530
1531 For better control, use the options below.
1532
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1554
1555 cat <<\_ACEOF
1556
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1566 _ACEOF
1567 fi
1568
1569 if test -n "$ac_init_help"; then
1570
1571 cat <<\_ACEOF
1572
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files in source dir intended
1579 for creating source tarballs for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support for large files
1582 --disable-build-format-warnings
1583 don't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and locate unused parts
1594 of the compiler. With LEVEL, specify optimization.
1595 Values are opt, noopt, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support for multiple ABIs
1601 --enable-multiarch enable support for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit for C++
1603 --enable-decimal-float={no,yes,bid,dpd}
1604 enable decimal float extension to C. Selecting 'bid'
1605 or 'dpd' choses which decimal floating point format
1606 to use
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1609 package
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check for tls support
1612 --enable-objc-gc enable the use of Boehm's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify which front-ends to build
1616 --disable-rpath do not hardcode runtime library paths
1617 --enable-sjlj-exceptions
1618 arrange to use setjmp/longjmp exception handling
1619 --enable-secureplt enable -msecure-plt by default for PowerPC
1620 --enable-leading-mingw64-underscores
1621 enable leading underscores on 64 bit mingw targets
1622 --enable-cld enable -mcld by default for 32bit x86
1623 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1624 x86
1625 --disable-win32-registry
1626 disable lookup of installation paths in the Registry
1627 on Windows hosts
1628 --enable-win32-registry enable registry lookup (default)
1629 --enable-win32-registry=KEY
1630 use KEY instead of GCC version as the last portion
1631 of the registry key
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1638 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1639 --enable-gnu-indirect-function
1640 enable the use of the @gnu_indirect_function to
1641 glibc systems
1642 --enable-initfini-array use .init_array/.fini_array sections
1643 --enable-comdat enable COMDAT group support
1644
1645 --enable-fix-cortex-a53-835769
1646 enable workaround for AArch64 Cortex-A53 erratum
1647 835769 by default
1648 --disable-fix-cortex-a53-835769
1649 disable workaround for AArch64 Cortex-A53 erratum
1650 835769 by default
1651
1652
1653 --enable-fix-cortex-a53-843419
1654 enable workaround for AArch64 Cortex-A53 erratum
1655 843419 by default
1656 --disable-fix-cortex-a53-843419
1657 disable workaround for AArch64 Cortex-A53 erratum
1658 843419 by default
1659
1660 --enable-gnu-unique-object
1661 enable the use of the @gnu_unique_object ELF
1662 extension on glibc systems
1663 --enable-linker-build-id
1664 compiler will always pass --build-id to linker
1665 --enable-maintainer-mode
1666 enable make rules and dependencies not useful (and
1667 sometimes confusing) to the casual installer
1668 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1669 thrashing on the build machine
1670 --enable-version-specific-runtime-libs
1671 specify that runtime libraries should be installed
1672 in a compiler-specific directory
1673 --enable-plugin enable plugin support
1674 --enable-host-shared build host code as shared libraries
1675 --disable-libquadmath-support
1676 disable libquadmath support for Fortran
1677
1678 Optional Packages:
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-build-libsubdir=DIR Directory where to find libraries for build system
1682 --with-local-prefix=DIR specifies directory to put local include
1683 --with-gxx-include-dir=DIR
1684 specifies directory to put g++ header files
1685 --with-cpp-install-dir=DIR
1686 install the user visible C preprocessor in DIR
1687 (relative to PREFIX) as well as PREFIX/bin
1688 --with-gnu-ld arrange to work with GNU ld
1689 --with-ld arrange to use the specified ld (full pathname)
1690 --with-demangler-in-ld try to use demangler in GNU ld
1691 --with-gnu-as arrange to work with GNU as
1692 --with-as arrange to use the specified as (full pathname)
1693 --with-stabs arrange to use stabs instead of host debug format
1694 --with-dwarf2 force the default debug format to be DWARF 2
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-specs=SPECS add SPECS to driver command-line processing
1702 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1703 --with-bugurl=URL Direct users to URL to report a bug
1704 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1705 --with-gnu-ld assume the C compiler uses GNU ld default=no
1706 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1707 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1708 --with-pic try to use only PIC/non-PIC objects [default=use
1709 both]
1710 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1711 --with-plugin-ld=[ARG] specify the plugin linker
1712 --with-glibc-version=M.N
1713 assume GCC used with glibc version M.N or later
1714 --with-long-double-128 use 128-bit long double by default
1715 --with-gc={page,zone} this option is not supported anymore. It used to
1716 choose the garbage collection mechanism to use with
1717 the compiler
1718 --with-system-zlib use installed libz
1719 --with-linker-hash-style={sysv,gnu,both}
1720 specify the linker hash style
1721 --with-diagnostics-color={never,auto,auto-if-env,always}
1722 specify the default of -fdiagnostics-color option
1723 auto-if-env stands for -fdiagnostics-color=auto if
1724 GCC_COLOR environment variable is present and
1725 -fdiagnostics-color=never otherwise
1726
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1735 CXX C++ compiler command
1736 CXXFLAGS C++ compiler flags
1737 CPP C preprocessor
1738 CXXCPP C++ preprocessor
1739 GMPLIBS How to link GMP
1740 GMPINC How to find GMP include files
1741 ISLLIBS How to link ISL
1742 ISLINC How to find ISL include files
1743
1744 Use these variables to override the choices made by `configure' or to help
1745 it to find libraries and programs with nonstandard names/locations.
1746
1747 Report bugs to the package provider.
1748 _ACEOF
1749 ac_status=$?
1750 fi
1751
1752 if test "$ac_init_help" = "recursive"; then
1753 # If there are subdirs, report their specific --help.
1754 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1755 test -d "$ac_dir" ||
1756 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1757 continue
1758 ac_builddir=.
1759
1760 case "$ac_dir" in
1761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 *)
1763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1764 # A ".." for each directory in $ac_dir_suffix.
1765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1766 case $ac_top_builddir_sub in
1767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 esac ;;
1770 esac
1771 ac_abs_top_builddir=$ac_pwd
1772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1773 # for backward compatibility:
1774 ac_top_builddir=$ac_top_build_prefix
1775
1776 case $srcdir in
1777 .) # We are building in place.
1778 ac_srcdir=.
1779 ac_top_srcdir=$ac_top_builddir_sub
1780 ac_abs_top_srcdir=$ac_pwd ;;
1781 [\\/]* | ?:[\\/]* ) # Absolute name.
1782 ac_srcdir=$srcdir$ac_dir_suffix;
1783 ac_top_srcdir=$srcdir
1784 ac_abs_top_srcdir=$srcdir ;;
1785 *) # Relative name.
1786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1787 ac_top_srcdir=$ac_top_build_prefix$srcdir
1788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 esac
1790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791
1792 cd "$ac_dir" || { ac_status=$?; continue; }
1793 # Check for guested configure.
1794 if test -f "$ac_srcdir/configure.gnu"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1797 elif test -f "$ac_srcdir/configure"; then
1798 echo &&
1799 $SHELL "$ac_srcdir/configure" --help=recursive
1800 else
1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 fi || ac_status=$?
1803 cd "$ac_pwd" || { ac_status=$?; break; }
1804 done
1805 fi
1806
1807 test -n "$ac_init_help" && exit $ac_status
1808 if $ac_init_version; then
1809 cat <<\_ACEOF
1810 configure
1811 generated by GNU Autoconf 2.64
1812
1813 Copyright (C) 2009 Free Software Foundation, Inc.
1814 This configure script is free software; the Free Software Foundation
1815 gives unlimited permission to copy, distribute and modify it.
1816 _ACEOF
1817 exit
1818 fi
1819
1820 ## ------------------------ ##
1821 ## Autoconf initialization. ##
1822 ## ------------------------ ##
1823
1824 # ac_fn_c_try_compile LINENO
1825 # --------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_compile ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext
1831 if { { ac_try="$ac_compile"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856 fi
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860 } # ac_fn_c_try_compile
1861
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1897
1898 } # ac_fn_cxx_try_compile
1899
1900 # ac_fn_c_try_cpp LINENO
1901 # ----------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_cpp ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 return $ac_retval
1934
1935 } # ac_fn_c_try_cpp
1936
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_c_check_header_mongrel ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $4
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1965 else
1966 ac_header_compiler=no
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1971
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1981 else
1982 ac_header_preproc=no
1983 fi
1984 rm -f conftest.err conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1987
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 yes:no: )
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ;;
1996 no:yes:* )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
2022 } # ac_fn_c_check_header_mongrel
2023
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_c_try_run ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2039 ac_status=$?
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 ac_retval=$ac_status
2059 fi
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 return $ac_retval
2063
2064 } # ac_fn_c_try_run
2065
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2071 {
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095 } # ac_fn_c_check_header_compile
2096
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138 else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2143 fi
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) < 0)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180 else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2185 fi
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 ac_lo= ac_hi=
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214 else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2231 int
2232 main ()
2233 {
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263 ac_retval=1
2264 fi
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2268
2269 fi
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 return $ac_retval
2272
2273 } # ac_fn_c_compute_int
2274
2275 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2276 # -------------------------------------------
2277 # Tests whether TYPE exists after having included INCLUDES, setting cache
2278 # variable VAR accordingly.
2279 ac_fn_c_check_type ()
2280 {
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2283 $as_echo_n "checking for $2... " >&6; }
2284 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 eval "$3=no"
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $4
2291 int
2292 main ()
2293 {
2294 if (sizeof ($2))
2295 return 0;
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $4
2304 int
2305 main ()
2306 {
2307 if (sizeof (($2)))
2308 return 0;
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314
2315 else
2316 eval "$3=yes"
2317 fi
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326
2327 } # ac_fn_c_check_type
2328
2329 # ac_fn_c_find_intX_t LINENO BITS VAR
2330 # -----------------------------------
2331 # Finds a signed integer type with width BITS, setting cache variable VAR
2332 # accordingly.
2333 ac_fn_c_find_intX_t ()
2334 {
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2337 $as_echo_n "checking for int$2_t... " >&6; }
2338 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 eval "$3=no"
2342 for ac_type in int$2_t 'int' 'long int' \
2343 'long long int' 'short int' 'signed char'; do
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2346 $ac_includes_default
2347 int
2348 main ()
2349 {
2350 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2351 test_array [0] = 0
2352
2353 ;
2354 return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2360 $ac_includes_default
2361 int
2362 main ()
2363 {
2364 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2365 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2366 test_array [0] = 0
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373
2374 else
2375 case $ac_type in #(
2376 int$2_t) :
2377 eval "$3=yes" ;; #(
2378 *) :
2379 eval "$3=\$ac_type" ;;
2380 esac
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 eval as_val=\$$3
2386 if test "x$as_val" = x""no; then :
2387
2388 else
2389 break
2390 fi
2391 done
2392 fi
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397
2398 } # ac_fn_c_find_intX_t
2399
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2403 ac_fn_c_try_link ()
2404 {
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435 fi
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 return $ac_retval
2443
2444 } # ac_fn_c_try_link
2445
2446 # ac_fn_c_find_uintX_t LINENO BITS VAR
2447 # ------------------------------------
2448 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2449 # accordingly.
2450 ac_fn_c_find_uintX_t ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2454 $as_echo_n "checking for uint$2_t... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 eval "$3=no"
2459 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2460 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 $ac_includes_default
2464 int
2465 main ()
2466 {
2467 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2468 test_array [0] = 0
2469
2470 ;
2471 return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 case $ac_type in #(
2476 uint$2_t) :
2477 eval "$3=yes" ;; #(
2478 *) :
2479 eval "$3=\$ac_type" ;;
2480 esac
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 eval as_val=\$$3
2484 if test "x$as_val" = x""no; then :
2485
2486 else
2487 break
2488 fi
2489 done
2490 fi
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495
2496 } # ac_fn_c_find_uintX_t
2497
2498 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2499 # ----------------------------------------------
2500 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2501 ac_fn_c_check_header_preproc ()
2502 {
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2505 $as_echo_n "checking for $2... " >&6; }
2506 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 #include <$2>
2512 _ACEOF
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$3
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524
2525 } # ac_fn_c_check_header_preproc
2526
2527 # ac_fn_cxx_try_cpp LINENO
2528 # ------------------------
2529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_cpp ()
2531 {
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 if { { ac_try="$ac_cpp conftest.$ac_ext"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2541 ac_status=$?
2542 if test -s conftest.err; then
2543 grep -v '^ *+' conftest.err >conftest.er1
2544 cat conftest.er1 >&5
2545 mv -f conftest.er1 conftest.err
2546 fi
2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2548 test $ac_status = 0; } >/dev/null && {
2549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2550 test ! -s conftest.err
2551 }; then :
2552 ac_retval=0
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 ac_retval=1
2558 fi
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 return $ac_retval
2561
2562 } # ac_fn_cxx_try_cpp
2563
2564 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2565 # ------------------------------------------------
2566 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2567 ac_fn_cxx_check_header_preproc ()
2568 {
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_cxx_try_cpp "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2583 fi
2584 rm -f conftest.err conftest.$ac_ext
2585 fi
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590
2591 } # ac_fn_cxx_check_header_preproc
2592
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2597 {
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2609
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2614
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2620
2621 #undef $2
2622
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 char $2 ();
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2634 choke me
2635 #endif
2636
2637 int
2638 main ()
2639 {
2640 return $2 ();
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_c_try_link "$LINENO"; then :
2646 eval "$3=yes"
2647 else
2648 eval "$3=no"
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2652 fi
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2657
2658 } # ac_fn_c_check_func
2659
2660 # ac_fn_cxx_try_link LINENO
2661 # -------------------------
2662 # Try to link conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_link ()
2664 {
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 rm -f conftest.$ac_objext conftest$ac_exeext
2667 if { { ac_try="$ac_link"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link") 2>conftest.err
2675 ac_status=$?
2676 if test -s conftest.err; then
2677 grep -v '^ *+' conftest.err >conftest.er1
2678 cat conftest.er1 >&5
2679 mv -f conftest.er1 conftest.err
2680 fi
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; } && {
2683 test -z "$ac_cxx_werror_flag" ||
2684 test ! -s conftest.err
2685 } && test -s conftest$ac_exeext && {
2686 test "$cross_compiling" = yes ||
2687 $as_test_x conftest$ac_exeext
2688 }; then :
2689 ac_retval=0
2690 else
2691 $as_echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 ac_retval=1
2695 fi
2696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2698 # interfere with the next link command; also delete a directory that is
2699 # left behind by Apple's compiler. We do this before executing the actions.
2700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2702 return $ac_retval
2703
2704 } # ac_fn_cxx_try_link
2705 cat >config.log <<_ACEOF
2706 This file contains any messages produced by compilers while
2707 running configure, to aid debugging if configure makes a mistake.
2708
2709 It was created by $as_me, which was
2710 generated by GNU Autoconf 2.64. Invocation command line was
2711
2712 $ $0 $@
2713
2714 _ACEOF
2715 exec 5>>config.log
2716 {
2717 cat <<_ASUNAME
2718 ## --------- ##
2719 ## Platform. ##
2720 ## --------- ##
2721
2722 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2723 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2724 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2725 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2726 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2727
2728 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2729 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2730
2731 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2732 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2733 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2734 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2735 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2737 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2738
2739 _ASUNAME
2740
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 $as_echo "PATH: $as_dir"
2747 done
2748 IFS=$as_save_IFS
2749
2750 } >&5
2751
2752 cat >&5 <<_ACEOF
2753
2754
2755 ## ----------- ##
2756 ## Core tests. ##
2757 ## ----------- ##
2758
2759 _ACEOF
2760
2761
2762 # Keep a trace of the command line.
2763 # Strip out --no-create and --no-recursion so they do not pile up.
2764 # Strip out --silent because we don't want to record it for future runs.
2765 # Also quote any args containing shell meta-characters.
2766 # Make two passes to allow for proper duplicate-argument suppression.
2767 ac_configure_args=
2768 ac_configure_args0=
2769 ac_configure_args1=
2770 ac_must_keep_next=false
2771 for ac_pass in 1 2
2772 do
2773 for ac_arg
2774 do
2775 case $ac_arg in
2776 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2778 | -silent | --silent | --silen | --sile | --sil)
2779 continue ;;
2780 *\'*)
2781 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 esac
2783 case $ac_pass in
2784 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2785 2)
2786 as_fn_append ac_configure_args1 " '$ac_arg'"
2787 if test $ac_must_keep_next = true; then
2788 ac_must_keep_next=false # Got value, back to normal.
2789 else
2790 case $ac_arg in
2791 *=* | --config-cache | -C | -disable-* | --disable-* \
2792 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2793 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2794 | -with-* | --with-* | -without-* | --without-* | --x)
2795 case "$ac_configure_args0 " in
2796 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2797 esac
2798 ;;
2799 -* ) ac_must_keep_next=true ;;
2800 esac
2801 fi
2802 as_fn_append ac_configure_args " '$ac_arg'"
2803 ;;
2804 esac
2805 done
2806 done
2807 { ac_configure_args0=; unset ac_configure_args0;}
2808 { ac_configure_args1=; unset ac_configure_args1;}
2809
2810 # When interrupted or exit'd, cleanup temporary files, and complete
2811 # config.log. We remove comments because anyway the quotes in there
2812 # would cause problems or look ugly.
2813 # WARNING: Use '\'' to represent an apostrophe within the trap.
2814 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2815 trap 'exit_status=$?
2816 # Save into config.log some information that might help in debugging.
2817 {
2818 echo
2819
2820 cat <<\_ASBOX
2821 ## ---------------- ##
2822 ## Cache variables. ##
2823 ## ---------------- ##
2824 _ASBOX
2825 echo
2826 # The following way of writing the cache mishandles newlines in values,
2827 (
2828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829 eval ac_val=\$$ac_var
2830 case $ac_val in #(
2831 *${as_nl}*)
2832 case $ac_var in #(
2833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2835 esac
2836 case $ac_var in #(
2837 _ | IFS | as_nl) ;; #(
2838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839 *) { eval $ac_var=; unset $ac_var;} ;;
2840 esac ;;
2841 esac
2842 done
2843 (set) 2>&1 |
2844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845 *${as_nl}ac_space=\ *)
2846 sed -n \
2847 "s/'\''/'\''\\\\'\'''\''/g;
2848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2849 ;; #(
2850 *)
2851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2852 ;;
2853 esac |
2854 sort
2855 )
2856 echo
2857
2858 cat <<\_ASBOX
2859 ## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##
2862 _ASBOX
2863 echo
2864 for ac_var in $ac_subst_vars
2865 do
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2873
2874 if test -n "$ac_subst_files"; then
2875 cat <<\_ASBOX
2876 ## ------------------- ##
2877 ## File substitutions. ##
2878 ## ------------------- ##
2879 _ASBOX
2880 echo
2881 for ac_var in $ac_subst_files
2882 do
2883 eval ac_val=\$$ac_var
2884 case $ac_val in
2885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886 esac
2887 $as_echo "$ac_var='\''$ac_val'\''"
2888 done | sort
2889 echo
2890 fi
2891
2892 if test -s confdefs.h; then
2893 cat <<\_ASBOX
2894 ## ----------- ##
2895 ## confdefs.h. ##
2896 ## ----------- ##
2897 _ASBOX
2898 echo
2899 cat confdefs.h
2900 echo
2901 fi
2902 test "$ac_signal" != 0 &&
2903 $as_echo "$as_me: caught signal $ac_signal"
2904 $as_echo "$as_me: exit $exit_status"
2905 } >&5
2906 rm -f core *.core core.conftest.* &&
2907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2908 exit $exit_status
2909 ' 0
2910 for ac_signal in 1 2 13 15; do
2911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2912 done
2913 ac_signal=0
2914
2915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2916 rm -f -r conftest* confdefs.h
2917
2918 $as_echo "/* confdefs.h */" > confdefs.h
2919
2920 # Predefined preprocessor variables.
2921
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_NAME "$PACKAGE_NAME"
2924 _ACEOF
2925
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2928 _ACEOF
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2932 _ACEOF
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_STRING "$PACKAGE_STRING"
2936 _ACEOF
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2940 _ACEOF
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_URL "$PACKAGE_URL"
2944 _ACEOF
2945
2946
2947 # Let the site file select an alternate cache file if it wants to.
2948 # Prefer an explicitly selected file to automatically selected ones.
2949 ac_site_file1=NONE
2950 ac_site_file2=NONE
2951 if test -n "$CONFIG_SITE"; then
2952 ac_site_file1=$CONFIG_SITE
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2956 else
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2959 fi
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2961 do
2962 test "x$ac_site_file" = xNONE && continue
2963 if test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2967 . "$ac_site_file"
2968 fi
2969 done
2970
2971 if test -r "$cache_file"; then
2972 # Some versions of bash will fail to source /dev/null (special
2973 # files actually), so we avoid doing that.
2974 if test -f "$cache_file"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2976 $as_echo "$as_me: loading cache $cache_file" >&6;}
2977 case $cache_file in
2978 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2979 *) . "./$cache_file";;
2980 esac
2981 fi
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2984 $as_echo "$as_me: creating cache $cache_file" >&6;}
2985 >$cache_file
2986 fi
2987
2988 # Check that the precious variables saved in the cache have kept the same
2989 # value.
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993 eval ac_new_set=\$ac_env_${ac_var}_set
2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995 eval ac_new_val=\$ac_env_${ac_var}_value
2996 case $ac_old_set,$ac_new_set in
2997 set,)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3001 ,set)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3005 ,);;
3006 *)
3007 if test "x$ac_old_val" != "x$ac_new_val"; then
3008 # differences in whitespace do not lead to failure.
3009 ac_old_val_w=`echo x $ac_old_val`
3010 ac_new_val_w=`echo x $ac_new_val`
3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014 ac_cache_corrupted=:
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018 eval $ac_var=\$ac_old_val
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3024 fi;;
3025 esac
3026 # Pass precious variables to config.status.
3027 if test "$ac_new_set" = set; then
3028 case $ac_new_val in
3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030 *) ac_arg=$ac_var=$ac_new_val ;;
3031 esac
3032 case " $ac_configure_args " in
3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3035 esac
3036 fi
3037 done
3038 if $ac_cache_corrupted; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3044 fi
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3048
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054
3055
3056
3057
3058
3059
3060 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3061
3062
3063 gcc_version=`cat $srcdir/BASE-VER`
3064
3065 # Determine the host, build, and target systems
3066 ac_aux_dir=
3067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3068 for ac_t in install-sh install.sh shtool; do
3069 if test -f "$ac_dir/$ac_t"; then
3070 ac_aux_dir=$ac_dir
3071 ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
3072 break 2
3073 fi
3074 done
3075 done
3076 if test -z "$ac_aux_dir"; then
3077 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3078 fi
3079
3080 # These three variables are undocumented and unsupported,
3081 # and are intended to be withdrawn in a future Autoconf release.
3082 # They can cause serious problems if a builder's source tree is in a directory
3083 # whose full name contains unusual characters.
3084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3087
3088
3089 # Make sure we can run config.sub.
3090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3091 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3094 $as_echo_n "checking build system type... " >&6; }
3095 if test "${ac_cv_build+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 ac_build_alias=$build_alias
3099 test "x$ac_build_alias" = x &&
3100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101 test "x$ac_build_alias" = x &&
3102 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3104 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3105
3106 fi
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3108 $as_echo "$ac_cv_build" >&6; }
3109 case $ac_cv_build in
3110 *-*-*) ;;
3111 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3112 esac
3113 build=$ac_cv_build
3114 ac_save_IFS=$IFS; IFS='-'
3115 set x $ac_cv_build
3116 shift
3117 build_cpu=$1
3118 build_vendor=$2
3119 shift; shift
3120 # Remember, the first character of IFS is used to create $*,
3121 # except with old shells:
3122 build_os=$*
3123 IFS=$ac_save_IFS
3124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3125
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3128 $as_echo_n "checking host system type... " >&6; }
3129 if test "${ac_cv_host+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test "x$host_alias" = x; then
3133 ac_cv_host=$ac_cv_build
3134 else
3135 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3136 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3137 fi
3138
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3141 $as_echo "$ac_cv_host" >&6; }
3142 case $ac_cv_host in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3145 esac
3146 host=$ac_cv_host
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_host
3149 shift
3150 host_cpu=$1
3151 host_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 host_os=$*
3156 IFS=$ac_save_IFS
3157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3158
3159
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3161 $as_echo_n "checking target system type... " >&6; }
3162 if test "${ac_cv_target+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test "x$target_alias" = x; then
3166 ac_cv_target=$ac_cv_host
3167 else
3168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3169 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3170 fi
3171
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3174 $as_echo "$ac_cv_target" >&6; }
3175 case $ac_cv_target in
3176 *-*-*) ;;
3177 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3178 esac
3179 target=$ac_cv_target
3180 ac_save_IFS=$IFS; IFS='-'
3181 set x $ac_cv_target
3182 shift
3183 target_cpu=$1
3184 target_vendor=$2
3185 shift; shift
3186 # Remember, the first character of IFS is used to create $*,
3187 # except with old shells:
3188 target_os=$*
3189 IFS=$ac_save_IFS
3190 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3191
3192
3193 # The aliases save the names the user supplied, while $host etc.
3194 # will get canonicalized.
3195 test -n "$target_alias" &&
3196 test "$program_prefix$program_suffix$program_transform_name" = \
3197 NONENONEs,x,x, &&
3198 program_prefix=${target_alias}-
3199
3200 # Determine the noncanonical target name, for directory use.
3201 case ${build_alias} in
3202 "") build_noncanonical=${build} ;;
3203 *) build_noncanonical=${build_alias} ;;
3204 esac
3205
3206 case ${host_alias} in
3207 "") host_noncanonical=${build_noncanonical} ;;
3208 *) host_noncanonical=${host_alias} ;;
3209 esac
3210
3211 case ${target_alias} in
3212 "") target_noncanonical=${host_noncanonical} ;;
3213 *) target_noncanonical=${target_alias} ;;
3214 esac
3215
3216
3217
3218
3219 # Used for constructing correct paths for offload compilers.
3220 real_target_noncanonical=${target_noncanonical}
3221 accel_dir_suffix=
3222
3223 # Determine the target- and build-specific subdirectories
3224
3225 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3226 # have matching libraries, they should use host libraries: Makefile.tpl
3227 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3228 # However, they still use the build modules, because the corresponding
3229 # host modules (e.g. bison) are only built for the host when bootstrap
3230 # finishes. So:
3231 # - build_subdir is where we find build modules, and never changes.
3232 # - build_libsubdir is where we find build libraries, and can be overridden.
3233
3234 # Prefix 'build-' so this never conflicts with target_subdir.
3235 build_subdir="build-${build_noncanonical}"
3236
3237 # Check whether --with-build-libsubdir was given.
3238 if test "${with_build_libsubdir+set}" = set; then :
3239 withval=$with_build_libsubdir; build_libsubdir="$withval"
3240 else
3241 build_libsubdir="$build_subdir"
3242 fi
3243
3244 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3245 if ( test $srcdir = . && test -d gcc ) \
3246 || test -d $srcdir/../host-${host_noncanonical}; then
3247 host_subdir="host-${host_noncanonical}"
3248 else
3249 host_subdir=.
3250 fi
3251 # No prefix.
3252 target_subdir=${target_noncanonical}
3253
3254
3255 # Set program_transform_name
3256 test "$program_prefix" != NONE &&
3257 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3258 # Use a double $ so make ignores it.
3259 test "$program_suffix" != NONE &&
3260 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3261 # Double any \ or $.
3262 # By default was `s,x,x', remove it if useless.
3263 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3264 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3265
3266
3267 # Check for bogus environment variables.
3268 # Test if LIBRARY_PATH contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # LIBRARY_PATH contains the current directory if one of the following
3271 # is true:
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3276 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3277 case ${LIBRARY_PATH} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 library_path_setting="contains current directory"
3280 ;;
3281 *)
3282 library_path_setting="ok"
3283 ;;
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3286 $as_echo "$library_path_setting" >&6; }
3287 if test "$library_path_setting" != "ok"; then
3288 as_fn_error "
3289 *** LIBRARY_PATH shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3292 fi
3293
3294 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3295 # since this would lead to problems installing/building glibc.
3296 # GCC_EXEC_PREFIX contains the current directory if one of the following
3297 # is true:
3298 # - one of the terminals (":" and ";") is the first or last sign
3299 # - two terminals occur directly after each other
3300 # - the path contains an element with a dot in it
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3302 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3303 case ${GCC_EXEC_PREFIX} in
3304 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3305 gcc_exec_prefix_setting="contains current directory"
3306 ;;
3307 *)
3308 gcc_exec_prefix_setting="ok"
3309 ;;
3310 esac
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3312 $as_echo "$gcc_exec_prefix_setting" >&6; }
3313 if test "$gcc_exec_prefix_setting" != "ok"; then
3314 as_fn_error "
3315 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3316 *** building gcc. Please change the environment variable
3317 *** and run configure again." "$LINENO" 5
3318 fi
3319
3320 # -----------
3321 # Directories
3322 # -----------
3323
3324 # Specify the local prefix
3325 local_prefix=
3326
3327 # Check whether --with-local-prefix was given.
3328 if test "${with_local_prefix+set}" = set; then :
3329 withval=$with_local_prefix; case "${withval}" in
3330 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3331 no) ;;
3332 *) local_prefix=$with_local_prefix ;;
3333 esac
3334 fi
3335
3336
3337 # Default local prefix if it is empty
3338 if test x$local_prefix = x; then
3339 local_prefix=/usr/local
3340 fi
3341
3342 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3343 # passed in by the toplevel make and thus we'd get different behavior
3344 # depending on where we built the sources.
3345 gcc_gxx_include_dir=
3346 # Specify the g++ header file directory
3347
3348 # Check whether --with-gxx-include-dir was given.
3349 if test "${with_gxx_include_dir+set}" = set; then :
3350 withval=$with_gxx_include_dir; case "${withval}" in
3351 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3352 no) ;;
3353 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3354 esac
3355 fi
3356
3357
3358 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3359 if test x${gcc_gxx_include_dir} = x; then
3360 if test x${enable_version_specific_runtime_libs} = xyes; then
3361 gcc_gxx_include_dir='${libsubdir}/include/c++'
3362 else
3363 libstdcxx_incdir='include/c++/$(version)'
3364 if test x$host != x$target; then
3365 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3366 fi
3367 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3368 fi
3369 fi
3370
3371 gcc_gxx_include_dir_add_sysroot=0
3372 if test "${with_sysroot+set}" = set; then
3373 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3374 if test "${gcc_gxx_without_sysroot}"; then
3375 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3376 gcc_gxx_include_dir_add_sysroot=1
3377 fi
3378 fi
3379
3380
3381 # Check whether --with-cpp_install_dir was given.
3382 if test "${with_cpp_install_dir+set}" = set; then :
3383 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3384 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3385 elif test x$withval != xno; then
3386 cpp_install_dir=$withval
3387 fi
3388 fi
3389
3390
3391 # We would like to our source tree to be readonly. However when releases or
3392 # pre-releases are generated, the flex/bison generated files as well as the
3393 # various formats of manuals need to be included along with the rest of the
3394 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3395 # just that.
3396
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3398 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3399 # Check whether --enable-generated-files-in-srcdir was given.
3400 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3401 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3402 else
3403 generated_files_in_srcdir=no
3404 fi
3405
3406
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3408 $as_echo "$generated_files_in_srcdir" >&6; }
3409
3410 if test "$generated_files_in_srcdir" = "yes"; then
3411 GENINSRC=''
3412 else
3413 GENINSRC='#'
3414 fi
3415
3416
3417 # -------------------
3418 # Find default linker
3419 # -------------------
3420
3421 # With GNU ld
3422
3423 # Check whether --with-gnu-ld was given.
3424 if test "${with_gnu_ld+set}" = set; then :
3425 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3426 else
3427 gnu_ld_flag=no
3428 fi
3429
3430
3431 # With pre-defined ld
3432
3433 # Check whether --with-ld was given.
3434 if test "${with_ld+set}" = set; then :
3435 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3436 fi
3437
3438 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3439 if test ! -x "$DEFAULT_LINKER"; then
3440 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3441 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3442 gnu_ld_flag=yes
3443 fi
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3447 _ACEOF
3448
3449 fi
3450
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3452 $as_echo_n "checking whether a default linker was specified... " >&6; }
3453 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3454 if test x"$gnu_ld_flag" = x"no"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3456 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3459 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3460 fi
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 fi
3465
3466 # With demangler in GNU ld
3467
3468 # Check whether --with-demangler-in-ld was given.
3469 if test "${with_demangler_in_ld+set}" = set; then :
3470 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3471 else
3472 demangler_in_ld=yes
3473 fi
3474
3475
3476 # ----------------------
3477 # Find default assembler
3478 # ----------------------
3479
3480 # With GNU as
3481
3482 # Check whether --with-gnu-as was given.
3483 if test "${with_gnu_as+set}" = set; then :
3484 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3485 else
3486 gas_flag=no
3487 fi
3488
3489
3490
3491 # Check whether --with-as was given.
3492 if test "${with_as+set}" = set; then :
3493 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3494 fi
3495
3496 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3497 if test ! -x "$DEFAULT_ASSEMBLER"; then
3498 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3499 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3500 gas_flag=yes
3501 fi
3502
3503 cat >>confdefs.h <<_ACEOF
3504 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3505 _ACEOF
3506
3507 fi
3508
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3510 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3511 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3512 if test x"$gas_flag" = x"no"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3514 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3517 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3518 fi
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524 # ---------------
3525 # Find C compiler
3526 # ---------------
3527
3528 # If a non-executable a.out is present (e.g. created by GNU as above even if
3529 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3530 # file, even when creating an executable, so an execution test fails.
3531 # Remove possible default executable files to avoid this.
3532 #
3533 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3534 # Autoconf includes it.
3535 rm -f a.out a.exe b.out
3536
3537 # Find the native compiler
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 if test -z "$ac_cv_prog_CC"; then
3583 ac_ct_CC=$CC
3584 # Extract the first word of "gcc", so it can be a program name with args.
3585 set dummy gcc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_CC"; then
3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_CC="gcc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3630 fi
3631 else
3632 CC="$ac_cv_prog_CC"
3633 fi
3634
3635 if test -z "$CC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3638 set dummy ${ac_tool_prefix}cc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 ac_cv_prog_CC="${ac_tool_prefix}cc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674 fi
3675 fi
3676 if test -z "$CC"; then
3677 # Extract the first word of "cc", so it can be a program name with args.
3678 set dummy cc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CC+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 ac_prog_rejected=no
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3696 ac_prog_rejected=yes
3697 continue
3698 fi
3699 ac_cv_prog_CC="cc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3702 fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 if test $ac_prog_rejected = yes; then
3708 # We found a bogon in the path, so make sure we never use it.
3709 set dummy $ac_cv_prog_CC
3710 shift
3711 if test $# != 0; then
3712 # We chose a different compiler from the bogus one.
3713 # However, it has the same basename, so the bogon will be chosen
3714 # first if we set CC to just the basename; use the full file name.
3715 shift
3716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 fi
3718 fi
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 fi
3732 if test -z "$CC"; then
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in cl.exe
3735 do
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_CC+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757 done
3758 done
3759 IFS=$as_save_IFS
3760
3761 fi
3762 fi
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 fi
3771
3772
3773 test -n "$CC" && break
3774 done
3775 fi
3776 if test -z "$CC"; then
3777 ac_ct_CC=$CC
3778 for ac_prog in cl.exe
3779 do
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816
3817 test -n "$ac_ct_CC" && break
3818 done
3819
3820 if test "x$ac_ct_CC" = x; then
3821 CC=""
3822 else
3823 case $cross_compiling:$ac_tool_warned in
3824 yes:)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3828 esac
3829 CC=$ac_ct_CC
3830 fi
3831 fi
3832
3833 fi
3834
3835
3836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error "no acceptable C compiler found in \$PATH
3839 See \`config.log' for more details." "$LINENO" 5; }
3840
3841 # Provide some information about the compiler.
3842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843 set X $ac_compile
3844 ac_compiler=$2
3845 for ac_option in --version -v -V -qversion; do
3846 { { ac_try="$ac_compiler $ac_option >&5"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3854 ac_status=$?
3855 if test -s conftest.err; then
3856 sed '10a\
3857 ... rest of stderr output deleted ...
3858 10q' conftest.err >conftest.er1
3859 cat conftest.er1 >&5
3860 rm -f conftest.er1 conftest.err
3861 fi
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }
3864 done
3865
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 ac_clean_files_save=$ac_clean_files
3878 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3879 # Try to create an executable without -o first, disregard a.out.
3880 # It will help us diagnose broken compilers, and finding out an intuition
3881 # of exeext.
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3883 $as_echo_n "checking for C compiler default output file name... " >&6; }
3884 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3885
3886 # The possible output files:
3887 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3888
3889 ac_rmfiles=
3890 for ac_file in $ac_files
3891 do
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3894 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3895 esac
3896 done
3897 rm -f $ac_rmfiles
3898
3899 if { { ac_try="$ac_link_default"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_link_default") 2>&5
3907 ac_status=$?
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; then :
3910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3912 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3913 # so that the user can short-circuit this test for compilers unknown to
3914 # Autoconf.
3915 for ac_file in $ac_files ''
3916 do
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3920 ;;
3921 [ab].out )
3922 # We found the default executable, but exeext='' is most
3923 # certainly right.
3924 break;;
3925 *.* )
3926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3927 then :; else
3928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 fi
3930 # We set ac_cv_exeext here because the later test for it is not
3931 # safe: cross compilers may not add the suffix if given an `-o'
3932 # argument, so we may need to know it at that point already.
3933 # Even if this section looks crufty: it has the advantage of
3934 # actually working.
3935 break;;
3936 * )
3937 break;;
3938 esac
3939 done
3940 test "$ac_cv_exeext" = no && ac_cv_exeext=
3941
3942 else
3943 ac_file=''
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 if test -z "$ac_file"; then :
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 { as_fn_set_status 77
3954 as_fn_error "C compiler cannot create executables
3955 See \`config.log' for more details." "$LINENO" 5; }; }
3956 fi
3957 ac_exeext=$ac_cv_exeext
3958
3959 # Check that the compiler produces executables we can run. If not, either
3960 # the compiler is broken, or we cross compile.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3962 $as_echo_n "checking whether the C compiler works... " >&6; }
3963 # If not cross compiling, check that we can run a simple program.
3964 if test "$cross_compiling" != yes; then
3965 if { ac_try='./$ac_file'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details." "$LINENO" 5; }
3986 fi
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 $as_echo "yes" >&6; }
3991
3992 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999 $as_echo "$cross_compiling" >&6; }
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4002 $as_echo_n "checking for suffix of executables... " >&6; }
4003 if { { ac_try="$ac_link"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_link") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4016 # work properly (i.e., refer to `conftest.exe'), while it won't with
4017 # `rm'.
4018 for ac_file in conftest.exe conftest conftest.*; do
4019 test -f "$ac_file" || continue
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 break;;
4024 * ) break;;
4025 esac
4026 done
4027 else
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "cannot compute suffix of executables: cannot compile and link
4031 See \`config.log' for more details." "$LINENO" 5; }
4032 fi
4033 rm -f conftest$ac_cv_exeext
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4035 $as_echo "$ac_cv_exeext" >&6; }
4036
4037 rm -f conftest.$ac_ext
4038 EXEEXT=$ac_cv_exeext
4039 ac_exeext=$EXEEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041 $as_echo_n "checking for suffix of object files... " >&6; }
4042 if test "${ac_cv_objext+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.o conftest.obj
4057 if { { ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
4065 ac_status=$?
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
4075 done
4076 else
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error "cannot compute suffix of object files: cannot compile
4083 See \`config.log' for more details." "$LINENO" 5; }
4084 fi
4085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088 $as_echo "$ac_cv_objext" >&6; }
4089 OBJEXT=$ac_cv_objext
4090 ac_objext=$OBJEXT
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4093 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102 #ifndef __GNUC__
4103 choke me
4104 #endif
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_compiler_gnu=yes
4112 else
4113 ac_compiler_gnu=no
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4120 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4121 if test $ac_compiler_gnu = yes; then
4122 GCC=yes
4123 else
4124 GCC=
4125 fi
4126 ac_test_CFLAGS=${CFLAGS+set}
4127 ac_save_CFLAGS=$CFLAGS
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4129 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4130 if test "${ac_cv_prog_cc_g+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 ac_cv_prog_cc_g=no
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 int
4141 main ()
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_prog_cc_g=yes
4150 else
4151 CFLAGS=""
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164
4165 else
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_g=yes
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190 $as_echo "$ac_cv_prog_cc_g" >&6; }
4191 if test "$ac_test_CFLAGS" = set; then
4192 CFLAGS=$ac_save_CFLAGS
4193 elif test $ac_cv_prog_cc_g = yes; then
4194 if test "$GCC" = yes; then
4195 CFLAGS="-g -O2"
4196 else
4197 CFLAGS="-g"
4198 fi
4199 else
4200 if test "$GCC" = yes; then
4201 CFLAGS="-O2"
4202 else
4203 CFLAGS=
4204 fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4207 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4208 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_cv_prog_cc_c89=no
4212 ac_save_CC=$CC
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdarg.h>
4216 #include <stdio.h>
4217 #include <sys/types.h>
4218 #include <sys/stat.h>
4219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4220 struct buf { int x; };
4221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222 static char *e (p, i)
4223 char **p;
4224 int i;
4225 {
4226 return p[i];
4227 }
4228 static char *f (char * (*g) (char **, int), char **p, ...)
4229 {
4230 char *s;
4231 va_list v;
4232 va_start (v,p);
4233 s = g (p, va_arg (v,int));
4234 va_end (v);
4235 return s;
4236 }
4237
4238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4239 function prototypes and stuff, but not '\xHH' hex character constants.
4240 These don't provoke an error unfortunately, instead are silently treated
4241 as 'x'. The following induces an error, until -std is added to get
4242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4243 array size at least. It's necessary to write '\x00'==0 to get something
4244 that's true only with -std. */
4245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4246
4247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4248 inside strings and character constants. */
4249 #define FOO(x) 'x'
4250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4251
4252 int test (int i, double x);
4253 struct s1 {int (*f) (int a);};
4254 struct s2 {int (*f) (double a);};
4255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4256 int argc;
4257 char **argv;
4258 int
4259 main ()
4260 {
4261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268 do
4269 CC="$ac_save_CC $ac_arg"
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_prog_cc_c89=$ac_arg
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext
4274 test "x$ac_cv_prog_cc_c89" != "xno" && break
4275 done
4276 rm -f conftest.$ac_ext
4277 CC=$ac_save_CC
4278
4279 fi
4280 # AC_CACHE_VAL
4281 case "x$ac_cv_prog_cc_c89" in
4282 x)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284 $as_echo "none needed" >&6; } ;;
4285 xno)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4287 $as_echo "unsupported" >&6; } ;;
4288 *)
4289 CC="$CC $ac_cv_prog_cc_c89"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292 esac
4293 if test "x$ac_cv_prog_cc_c89" != xno; then :
4294
4295 fi
4296
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303 ac_ext=cpp
4304 ac_cpp='$CXXCPP $CPPFLAGS'
4305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4308 if test -z "$CXX"; then
4309 if test -n "$CCC"; then
4310 CXX=$CCC
4311 else
4312 if test -n "$ac_tool_prefix"; then
4313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4314 do
4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_CXX+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CXX"; then
4323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 CXX=$ac_cv_prog_CXX
4343 if test -n "$CXX"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4345 $as_echo "$CXX" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 test -n "$CXX" && break
4353 done
4354 fi
4355 if test -z "$CXX"; then
4356 ac_ct_CXX=$CXX
4357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358 do
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$ac_ct_CXX"; then
4367 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_CXX="$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4387 if test -n "$ac_ct_CXX"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4389 $as_echo "$ac_ct_CXX" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396 test -n "$ac_ct_CXX" && break
4397 done
4398
4399 if test "x$ac_ct_CXX" = x; then
4400 CXX="g++"
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403 yes:)
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406 ac_tool_warned=yes ;;
4407 esac
4408 CXX=$ac_ct_CXX
4409 fi
4410 fi
4411
4412 fi
4413 fi
4414 # Provide some information about the compiler.
4415 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4416 set X $ac_compile
4417 ac_compiler=$2
4418 for ac_option in --version -v -V -qversion; do
4419 { { ac_try="$ac_compiler $ac_option >&5"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4427 ac_status=$?
4428 if test -s conftest.err; then
4429 sed '10a\
4430 ... rest of stderr output deleted ...
4431 10q' conftest.err >conftest.er1
4432 cat conftest.er1 >&5
4433 rm -f conftest.er1 conftest.err
4434 fi
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }
4437 done
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4440 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4441 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446
4447 int
4448 main ()
4449 {
4450 #ifndef __GNUC__
4451 choke me
4452 #endif
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 if ac_fn_cxx_try_compile "$LINENO"; then :
4459 ac_compiler_gnu=yes
4460 else
4461 ac_compiler_gnu=no
4462 fi
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4465
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4468 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4469 if test $ac_compiler_gnu = yes; then
4470 GXX=yes
4471 else
4472 GXX=
4473 fi
4474 ac_test_CXXFLAGS=${CXXFLAGS+set}
4475 ac_save_CXXFLAGS=$CXXFLAGS
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4477 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4478 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4482 ac_cxx_werror_flag=yes
4483 ac_cv_prog_cxx_g=no
4484 CXXFLAGS="-g"
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487
4488 int
4489 main ()
4490 {
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4497 ac_cv_prog_cxx_g=yes
4498 else
4499 CXXFLAGS=""
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502
4503 int
4504 main ()
4505 {
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 if ac_fn_cxx_try_compile "$LINENO"; then :
4512
4513 else
4514 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4515 CXXFLAGS="-g"
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518
4519 int
4520 main ()
4521 {
4522
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_cxx_try_compile "$LINENO"; then :
4528 ac_cv_prog_cxx_g=yes
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4538 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4539 if test "$ac_test_CXXFLAGS" = set; then
4540 CXXFLAGS=$ac_save_CXXFLAGS
4541 elif test $ac_cv_prog_cxx_g = yes; then
4542 if test "$GXX" = yes; then
4543 CXXFLAGS="-g -O2"
4544 else
4545 CXXFLAGS="-g"
4546 fi
4547 else
4548 if test "$GXX" = yes; then
4549 CXXFLAGS="-O2"
4550 else
4551 CXXFLAGS=
4552 fi
4553 fi
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561
4562
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4565 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$GNATBIND"; then
4572 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 GNATBIND=$ac_cv_prog_GNATBIND
4592 if test -n "$GNATBIND"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4594 $as_echo "$GNATBIND" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601 fi
4602 if test -z "$ac_cv_prog_GNATBIND"; then
4603 ac_ct_GNATBIND=$GNATBIND
4604 # Extract the first word of "gnatbind", so it can be a program name with args.
4605 set dummy gnatbind; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$ac_ct_GNATBIND"; then
4612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4632 if test -n "$ac_ct_GNATBIND"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4634 $as_echo "$ac_ct_GNATBIND" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640 if test "x$ac_ct_GNATBIND" = x; then
4641 GNATBIND="no"
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649 GNATBIND=$ac_ct_GNATBIND
4650 fi
4651 else
4652 GNATBIND="$ac_cv_prog_GNATBIND"
4653 fi
4654
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$GNATMAKE"; then
4664 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 GNATMAKE=$ac_cv_prog_GNATMAKE
4684 if test -n "$GNATMAKE"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4686 $as_echo "$GNATMAKE" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693 fi
4694 if test -z "$ac_cv_prog_GNATMAKE"; then
4695 ac_ct_GNATMAKE=$GNATMAKE
4696 # Extract the first word of "gnatmake", so it can be a program name with args.
4697 set dummy gnatmake; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_GNATMAKE"; then
4704 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4724 if test -n "$ac_ct_GNATMAKE"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4726 $as_echo "$ac_ct_GNATMAKE" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732 if test "x$ac_ct_GNATMAKE" = x; then
4733 GNATMAKE="no"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 GNATMAKE=$ac_ct_GNATMAKE
4742 fi
4743 else
4744 GNATMAKE="$ac_cv_prog_GNATMAKE"
4745 fi
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4748 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4749 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 cat >conftest.adb <<EOF
4753 procedure conftest is begin null; end conftest;
4754 EOF
4755 acx_cv_cc_gcc_supports_ada=no
4756 # There is a bug in old released versions of GCC which causes the
4757 # driver to exit successfully when the appropriate language module
4758 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4759 # Therefore we must check for the error message as well as an
4760 # unsuccessful exit.
4761 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4762 # given a .adb file, but produce no object file. So we must check
4763 # if an object file was really produced to guard against this.
4764 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4765 if test x"$errors" = x && test -f conftest.$ac_objext; then
4766 acx_cv_cc_gcc_supports_ada=yes
4767 fi
4768 rm -f conftest.*
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4771 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4772
4773 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4774 have_gnat=yes
4775 else
4776 have_gnat=no
4777 fi
4778
4779
4780 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4781 # optimizations to be activated explicitly by the toplevel.
4782 case "$CC" in
4783 */prev-gcc/xgcc*) ;;
4784 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4785 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4786 esac
4787
4788
4789
4790 # Determine PICFLAG for target gnatlib.
4791
4792
4793
4794
4795 case "${target}" in
4796 # PIC is the default on some targets or must not be used.
4797 *-*-darwin*)
4798 # For darwin, common symbols are not allowed in MH_DYLIB files
4799 case "${CFLAGS}" in
4800 # If we are using a compiler supporting mdynamic-no-pic
4801 # and the option has been tested as safe to add, then cancel
4802 # it here, since the code generated is incompatible with shared
4803 #libs.
4804 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4805 *) PICFLAG_FOR_TARGET=-fno-common ;;
4806 esac
4807 ;;
4808 alpha*-dec-osf5*)
4809 # PIC is the default.
4810 ;;
4811 hppa*64*-*-hpux*)
4812 # PIC is the default for 64-bit PA HP-UX.
4813 ;;
4814 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4815 ;;
4816 i[34567]86-*-mingw* | x86_64-*-mingw*)
4817 ;;
4818 i[34567]86-*-interix[3-9]*)
4819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4820 # Instead, we relocate shared libraries at runtime.
4821 ;;
4822 i[34567]86-*-nto-qnx*)
4823 # QNX uses GNU C++, but need to define -shared option too, otherwise
4824 # it will coredump.
4825 PICFLAG_FOR_TARGET='-fPIC -shared'
4826 ;;
4827 i[34567]86-pc-msdosdjgpp*)
4828 # DJGPP does not support shared libraries at all.
4829 ;;
4830 ia64*-*-hpux*)
4831 # On IA64 HP-UX, PIC is the default but the pic flag
4832 # sets the default TLS model and affects inlining.
4833 PICFLAG_FOR_TARGET=-fPIC
4834 ;;
4835 mips-sgi-irix6*)
4836 # PIC is the default.
4837 ;;
4838 rs6000-ibm-aix* | powerpc-ibm-aix*)
4839 # All AIX code is PIC.
4840 ;;
4841
4842 # Some targets support both -fPIC and -fpic, but prefer the latter.
4843 # FIXME: Why?
4844 i[34567]86-*-* | x86_64-*-*)
4845 PICFLAG_FOR_TARGET=-fpic
4846 ;;
4847 # FIXME: Override -fPIC default in libgcc only?
4848 sh-*-linux* | sh[2346lbe]*-*-linux*)
4849 PICFLAG_FOR_TARGET=-fpic
4850 ;;
4851 # FIXME: Simplify to sh*-*-netbsd*?
4852 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4853 sh64-*-netbsd* | sh64l*-*-netbsd*)
4854 PICFLAG_FOR_TARGET=-fpic
4855 ;;
4856 # Default to -fPIC unless specified otherwise.
4857 *)
4858 PICFLAG_FOR_TARGET=-fPIC
4859 ;;
4860 esac
4861
4862 # If the user explicitly uses -fpic/-fPIC, keep that.
4863 case "${CFLAGS_FOR_TARGET}" in
4864 *-fpic*)
4865 PICFLAG_FOR_TARGET=-fpic
4866 ;;
4867 *-fPIC*)
4868 PICFLAG_FOR_TARGET=-fPIC
4869 ;;
4870 esac
4871
4872
4873
4874 # -------------------------
4875 # Check C compiler features
4876 # -------------------------
4877
4878
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4885 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4886 # On Suns, sometimes $CPP names a directory.
4887 if test -n "$CPP" && test -d "$CPP"; then
4888 CPP=
4889 fi
4890 if test -z "$CPP"; then
4891 if test "${ac_cv_prog_CPP+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 # Double quotes because CPP needs to be expanded
4895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4896 do
4897 ac_preproc_ok=false
4898 for ac_c_preproc_warn_flag in '' yes
4899 do
4900 # Use a header file that comes with gcc, so configuring glibc
4901 # with a fresh cross-compiler works.
4902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903 # <limits.h> exists even on freestanding compilers.
4904 # On the NeXT, cc -E runs the code through the compiler's parser,
4905 # not just through cpp. "Syntax error" is here to catch this case.
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #ifdef __STDC__
4909 # include <limits.h>
4910 #else
4911 # include <assert.h>
4912 #endif
4913 Syntax error
4914 _ACEOF
4915 if ac_fn_c_try_cpp "$LINENO"; then :
4916
4917 else
4918 # Broken: fails on valid input.
4919 continue
4920 fi
4921 rm -f conftest.err conftest.$ac_ext
4922
4923 # OK, works on sane cases. Now check whether nonexistent headers
4924 # can be detected and how.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #include <ac_nonexistent.h>
4928 _ACEOF
4929 if ac_fn_c_try_cpp "$LINENO"; then :
4930 # Broken: success on invalid input.
4931 continue
4932 else
4933 # Passes both tests.
4934 ac_preproc_ok=:
4935 break
4936 fi
4937 rm -f conftest.err conftest.$ac_ext
4938
4939 done
4940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4941 rm -f conftest.err conftest.$ac_ext
4942 if $ac_preproc_ok; then :
4943 break
4944 fi
4945
4946 done
4947 ac_cv_prog_CPP=$CPP
4948
4949 fi
4950 CPP=$ac_cv_prog_CPP
4951 else
4952 ac_cv_prog_CPP=$CPP
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4955 $as_echo "$CPP" >&6; }
4956 ac_preproc_ok=false
4957 for ac_c_preproc_warn_flag in '' yes
4958 do
4959 # Use a header file that comes with gcc, so configuring glibc
4960 # with a fresh cross-compiler works.
4961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4962 # <limits.h> exists even on freestanding compilers.
4963 # On the NeXT, cc -E runs the code through the compiler's parser,
4964 # not just through cpp. "Syntax error" is here to catch this case.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #ifdef __STDC__
4968 # include <limits.h>
4969 #else
4970 # include <assert.h>
4971 #endif
4972 Syntax error
4973 _ACEOF
4974 if ac_fn_c_try_cpp "$LINENO"; then :
4975
4976 else
4977 # Broken: fails on valid input.
4978 continue
4979 fi
4980 rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #include <ac_nonexistent.h>
4987 _ACEOF
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4989 # Broken: success on invalid input.
4990 continue
4991 else
4992 # Passes both tests.
4993 ac_preproc_ok=:
4994 break
4995 fi
4996 rm -f conftest.err conftest.$ac_ext
4997
4998 done
4999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5000 rm -f conftest.err conftest.$ac_ext
5001 if $ac_preproc_ok; then :
5002
5003 else
5004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5006 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." "$LINENO" 5; }
5008 fi
5009
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5018 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5019 if test "${ac_cv_path_GREP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -z "$GREP"; then
5023 ac_path_GREP_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_prog in grep ggrep; do
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5033 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5034 # Check for GNU ac_path_GREP and select it if it is found.
5035 # Check for GNU $ac_path_GREP
5036 case `"$ac_path_GREP" --version 2>&1` in
5037 *GNU*)
5038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5039 *)
5040 ac_count=0
5041 $as_echo_n 0123456789 >"conftest.in"
5042 while :
5043 do
5044 cat "conftest.in" "conftest.in" >"conftest.tmp"
5045 mv "conftest.tmp" "conftest.in"
5046 cp "conftest.in" "conftest.nl"
5047 $as_echo 'GREP' >> "conftest.nl"
5048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050 as_fn_arith $ac_count + 1 && ac_count=$as_val
5051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5052 # Best one so far, save it but keep looking for a better one
5053 ac_cv_path_GREP="$ac_path_GREP"
5054 ac_path_GREP_max=$ac_count
5055 fi
5056 # 10*(2^10) chars as input seems more than enough
5057 test $ac_count -gt 10 && break
5058 done
5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 esac
5061
5062 $ac_path_GREP_found && break 3
5063 done
5064 done
5065 done
5066 IFS=$as_save_IFS
5067 if test -z "$ac_cv_path_GREP"; then
5068 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5069 fi
5070 else
5071 ac_cv_path_GREP=$GREP
5072 fi
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5076 $as_echo "$ac_cv_path_GREP" >&6; }
5077 GREP="$ac_cv_path_GREP"
5078
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5081 $as_echo_n "checking for egrep... " >&6; }
5082 if test "${ac_cv_path_EGREP+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5086 then ac_cv_path_EGREP="$GREP -E"
5087 else
5088 if test -z "$EGREP"; then
5089 ac_path_EGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in egrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5100 # Check for GNU ac_path_EGREP and select it if it is found.
5101 # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5103 *GNU*)
5104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5105 *)
5106 ac_count=0
5107 $as_echo_n 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 $as_echo 'EGREP' >> "conftest.nl"
5114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_EGREP="$ac_path_EGREP"
5120 ac_path_EGREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128 $ac_path_EGREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_EGREP"; then
5134 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136 else
5137 ac_cv_path_EGREP=$EGREP
5138 fi
5139
5140 fi
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5143 $as_echo "$ac_cv_path_EGREP" >&6; }
5144 EGREP="$ac_cv_path_EGREP"
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5148 $as_echo_n "checking for ANSI C header files... " >&6; }
5149 if test "${ac_cv_header_stdc+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <stdlib.h>
5155 #include <stdarg.h>
5156 #include <string.h>
5157 #include <float.h>
5158
5159 int
5160 main ()
5161 {
5162
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_header_stdc=yes
5169 else
5170 ac_cv_header_stdc=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173
5174 if test $ac_cv_header_stdc = yes; then
5175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <string.h>
5179
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "memchr" >/dev/null 2>&1; then :
5183
5184 else
5185 ac_cv_header_stdc=no
5186 fi
5187 rm -f conftest*
5188
5189 fi
5190
5191 if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <stdlib.h>
5196
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "free" >/dev/null 2>&1; then :
5200
5201 else
5202 ac_cv_header_stdc=no
5203 fi
5204 rm -f conftest*
5205
5206 fi
5207
5208 if test $ac_cv_header_stdc = yes; then
5209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5210 if test "$cross_compiling" = yes; then :
5211 :
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <ctype.h>
5216 #include <stdlib.h>
5217 #if ((' ' & 0x0FF) == 0x020)
5218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220 #else
5221 # define ISLOWER(c) \
5222 (('a' <= (c) && (c) <= 'i') \
5223 || ('j' <= (c) && (c) <= 'r') \
5224 || ('s' <= (c) && (c) <= 'z'))
5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5226 #endif
5227
5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5229 int
5230 main ()
5231 {
5232 int i;
5233 for (i = 0; i < 256; i++)
5234 if (XOR (islower (i), ISLOWER (i))
5235 || toupper (i) != TOUPPER (i))
5236 return 2;
5237 return 0;
5238 }
5239 _ACEOF
5240 if ac_fn_c_try_run "$LINENO"; then :
5241
5242 else
5243 ac_cv_header_stdc=no
5244 fi
5245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5246 conftest.$ac_objext conftest.beam conftest.$ac_ext
5247 fi
5248
5249 fi
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5252 $as_echo "$ac_cv_header_stdc" >&6; }
5253 if test $ac_cv_header_stdc = yes; then
5254
5255 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5256
5257 fi
5258
5259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5261 inttypes.h stdint.h unistd.h
5262 do :
5263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5264 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5265 "
5266 eval as_val=\$$as_ac_Header
5267 if test "x$as_val" = x""yes; then :
5268 cat >>confdefs.h <<_ACEOF
5269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270 _ACEOF
5271
5272 fi
5273
5274 done
5275
5276
5277
5278 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5279 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5280 MINIX=yes
5281 else
5282 MINIX=
5283 fi
5284
5285
5286 if test "$MINIX" = yes; then
5287
5288 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5289
5290
5291 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5292
5293
5294 $as_echo "#define _MINIX 1" >>confdefs.h
5295
5296 fi
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5300 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5301 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306
5307 # define __EXTENSIONS__ 1
5308 $ac_includes_default
5309 int
5310 main ()
5311 {
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_safe_to_define___extensions__=yes
5319 else
5320 ac_cv_safe_to_define___extensions__=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5325 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5326 test $ac_cv_safe_to_define___extensions__ = yes &&
5327 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5328
5329 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5330
5331 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5332
5333 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5334
5335 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5336
5337
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5345 # On Suns, sometimes $CPP names a directory.
5346 if test -n "$CPP" && test -d "$CPP"; then
5347 CPP=
5348 fi
5349 if test -z "$CPP"; then
5350 if test "${ac_cv_prog_CPP+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 # Double quotes because CPP needs to be expanded
5354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5355 do
5356 ac_preproc_ok=false
5357 for ac_c_preproc_warn_flag in '' yes
5358 do
5359 # Use a header file that comes with gcc, so configuring glibc
5360 # with a fresh cross-compiler works.
5361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 # <limits.h> exists even on freestanding compilers.
5363 # On the NeXT, cc -E runs the code through the compiler's parser,
5364 # not just through cpp. "Syntax error" is here to catch this case.
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #ifdef __STDC__
5368 # include <limits.h>
5369 #else
5370 # include <assert.h>
5371 #endif
5372 Syntax error
5373 _ACEOF
5374 if ac_fn_c_try_cpp "$LINENO"; then :
5375
5376 else
5377 # Broken: fails on valid input.
5378 continue
5379 fi
5380 rm -f conftest.err conftest.$ac_ext
5381
5382 # OK, works on sane cases. Now check whether nonexistent headers
5383 # can be detected and how.
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if ac_fn_c_try_cpp "$LINENO"; then :
5389 # Broken: success on invalid input.
5390 continue
5391 else
5392 # Passes both tests.
5393 ac_preproc_ok=:
5394 break
5395 fi
5396 rm -f conftest.err conftest.$ac_ext
5397
5398 done
5399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400 rm -f conftest.err conftest.$ac_ext
5401 if $ac_preproc_ok; then :
5402 break
5403 fi
5404
5405 done
5406 ac_cv_prog_CPP=$CPP
5407
5408 fi
5409 CPP=$ac_cv_prog_CPP
5410 else
5411 ac_cv_prog_CPP=$CPP
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5414 $as_echo "$CPP" >&6; }
5415 ac_preproc_ok=false
5416 for ac_c_preproc_warn_flag in '' yes
5417 do
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421 # <limits.h> exists even on freestanding compilers.
5422 # On the NeXT, cc -E runs the code through the compiler's parser,
5423 # not just through cpp. "Syntax error" is here to catch this case.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #ifdef __STDC__
5427 # include <limits.h>
5428 #else
5429 # include <assert.h>
5430 #endif
5431 Syntax error
5432 _ACEOF
5433 if ac_fn_c_try_cpp "$LINENO"; then :
5434
5435 else
5436 # Broken: fails on valid input.
5437 continue
5438 fi
5439 rm -f conftest.err conftest.$ac_ext
5440
5441 # OK, works on sane cases. Now check whether nonexistent headers
5442 # can be detected and how.
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <ac_nonexistent.h>
5446 _ACEOF
5447 if ac_fn_c_try_cpp "$LINENO"; then :
5448 # Broken: success on invalid input.
5449 continue
5450 else
5451 # Passes both tests.
5452 ac_preproc_ok=:
5453 break
5454 fi
5455 rm -f conftest.err conftest.$ac_ext
5456
5457 done
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then :
5461
5462 else
5463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." "$LINENO" 5; }
5467 fi
5468
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5476 $as_echo_n "checking for inline... " >&6; }
5477 if test "${ac_cv_c_inline+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 ac_cv_c_inline=no
5481 for ac_kw in inline __inline__ __inline; do
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #ifndef __cplusplus
5485 typedef int foo_t;
5486 static $ac_kw foo_t static_foo () {return 0; }
5487 $ac_kw foo_t foo () {return 0; }
5488 #endif
5489
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 ac_cv_c_inline=$ac_kw
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 test "$ac_cv_c_inline" != no && break
5496 done
5497
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5500 $as_echo "$ac_cv_c_inline" >&6; }
5501
5502 case $ac_cv_c_inline in
5503 inline | yes) ;;
5504 *)
5505 case $ac_cv_c_inline in
5506 no) ac_val=;;
5507 *) ac_val=$ac_cv_c_inline;;
5508 esac
5509 cat >>confdefs.h <<_ACEOF
5510 #ifndef __cplusplus
5511 #define inline $ac_val
5512 #endif
5513 _ACEOF
5514 ;;
5515 esac
5516
5517
5518 # Check whether --enable-largefile was given.
5519 if test "${enable_largefile+set}" = set; then :
5520 enableval=$enable_largefile;
5521 fi
5522
5523 if test "$enable_largefile" != no; then
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5526 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5527 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 ac_cv_sys_largefile_CC=no
5531 if test "$GCC" != yes; then
5532 ac_save_CC=$CC
5533 while :; do
5534 # IRIX 6.2 and later do not support large files by default,
5535 # so use the C compiler's -n32 option if that helps.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5546 ? 1 : -1];
5547 int
5548 main ()
5549 {
5550
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 break
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext
5559 CC="$CC -n32"
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 ac_cv_sys_largefile_CC=' -n32'; break
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext
5564 break
5565 done
5566 CC=$ac_save_CC
5567 rm -f conftest.$ac_ext
5568 fi
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5571 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5572 if test "$ac_cv_sys_largefile_CC" != no; then
5573 CC=$CC$ac_cv_sys_largefile_CC
5574 fi
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5577 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 while :; do
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_sys_file_offset_bits=no; break
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #define _FILE_OFFSET_BITS 64
5608 #include <sys/types.h>
5609 /* Check that off_t can represent 2**63 - 1 correctly.
5610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5611 since some C++ compilers masquerading as C compilers
5612 incorrectly reject 9223372036854775807. */
5613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5615 && LARGE_OFF_T % 2147483647 == 1)
5616 ? 1 : -1];
5617 int
5618 main ()
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 ac_cv_sys_file_offset_bits=64; break
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_file_offset_bits=unknown
5630 break
5631 done
5632 fi
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5634 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5635 case $ac_cv_sys_file_offset_bits in #(
5636 no | unknown) ;;
5637 *)
5638 cat >>confdefs.h <<_ACEOF
5639 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5640 _ACEOF
5641 ;;
5642 esac
5643 rm -rf conftest*
5644 if test $ac_cv_sys_file_offset_bits = unknown; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5646 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5647 if test "${ac_cv_sys_large_files+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 while :; do
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5661 ? 1 : -1];
5662 int
5663 main ()
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_sys_large_files=no; break
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #define _LARGE_FILES 1
5677 #include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680 since some C++ compilers masquerading as C compilers
5681 incorrectly reject 9223372036854775807. */
5682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684 && LARGE_OFF_T % 2147483647 == 1)
5685 ? 1 : -1];
5686 int
5687 main ()
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_sys_large_files=1; break
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 ac_cv_sys_large_files=unknown
5699 break
5700 done
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5703 $as_echo "$ac_cv_sys_large_files" >&6; }
5704 case $ac_cv_sys_large_files in #(
5705 no | unknown) ;;
5706 *)
5707 cat >>confdefs.h <<_ACEOF
5708 #define _LARGE_FILES $ac_cv_sys_large_files
5709 _ACEOF
5710 ;;
5711 esac
5712 rm -rf conftest*
5713 fi
5714 fi
5715
5716
5717 # sizeof(char) is 1 by definition.
5718 # The cast to long int works around a bug in the HP C Compiler
5719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5721 # This bug is HP SR number 8606223364.
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5723 $as_echo_n "checking size of void *... " >&6; }
5724 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5728
5729 else
5730 if test "$ac_cv_type_void_p" = yes; then
5731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5733 { as_fn_set_status 77
5734 as_fn_error "cannot compute sizeof (void *)
5735 See \`config.log' for more details." "$LINENO" 5; }; }
5736 else
5737 ac_cv_sizeof_void_p=0
5738 fi
5739 fi
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5743 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5744
5745
5746
5747 cat >>confdefs.h <<_ACEOF
5748 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5749 _ACEOF
5750
5751
5752 # The cast to long int works around a bug in the HP C Compiler
5753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5755 # This bug is HP SR number 8606223364.
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5757 $as_echo_n "checking size of short... " >&6; }
5758 if test "${ac_cv_sizeof_short+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5762
5763 else
5764 if test "$ac_cv_type_short" = yes; then
5765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5767 { as_fn_set_status 77
5768 as_fn_error "cannot compute sizeof (short)
5769 See \`config.log' for more details." "$LINENO" 5; }; }
5770 else
5771 ac_cv_sizeof_short=0
5772 fi
5773 fi
5774
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5777 $as_echo "$ac_cv_sizeof_short" >&6; }
5778
5779
5780
5781 cat >>confdefs.h <<_ACEOF
5782 #define SIZEOF_SHORT $ac_cv_sizeof_short
5783 _ACEOF
5784
5785
5786 # The cast to long int works around a bug in the HP C Compiler
5787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5789 # This bug is HP SR number 8606223364.
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5791 $as_echo_n "checking size of int... " >&6; }
5792 if test "${ac_cv_sizeof_int+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5796
5797 else
5798 if test "$ac_cv_type_int" = yes; then
5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801 { as_fn_set_status 77
5802 as_fn_error "cannot compute sizeof (int)
5803 See \`config.log' for more details." "$LINENO" 5; }; }
5804 else
5805 ac_cv_sizeof_int=0
5806 fi
5807 fi
5808
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5811 $as_echo "$ac_cv_sizeof_int" >&6; }
5812
5813
5814
5815 cat >>confdefs.h <<_ACEOF
5816 #define SIZEOF_INT $ac_cv_sizeof_int
5817 _ACEOF
5818
5819
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5825 $as_echo_n "checking size of long... " >&6; }
5826 if test "${ac_cv_sizeof_long+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5830
5831 else
5832 if test "$ac_cv_type_long" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status 77
5836 as_fn_error "cannot compute sizeof (long)
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5838 else
5839 ac_cv_sizeof_long=0
5840 fi
5841 fi
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5845 $as_echo "$ac_cv_sizeof_long" >&6; }
5846
5847
5848
5849 cat >>confdefs.h <<_ACEOF
5850 #define SIZEOF_LONG $ac_cv_sizeof_long
5851 _ACEOF
5852
5853
5854 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5855 if test "x$ac_cv_type_long_long" = x""yes; then :
5856
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LONG_LONG 1
5859 _ACEOF
5860
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5866 $as_echo_n "checking size of long long... " >&6; }
5867 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5871
5872 else
5873 if test "$ac_cv_type_long_long" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status 77
5877 as_fn_error "cannot compute sizeof (long long)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5879 else
5880 ac_cv_sizeof_long_long=0
5881 fi
5882 fi
5883
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5886 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5887
5888
5889
5890 cat >>confdefs.h <<_ACEOF
5891 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5892 _ACEOF
5893
5894
5895 fi
5896
5897 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5898 case $ac_cv_c_int8_t in #(
5899 no|yes) ;; #(
5900 *)
5901
5902 cat >>confdefs.h <<_ACEOF
5903 #define int8_t $ac_cv_c_int8_t
5904 _ACEOF
5905 ;;
5906 esac
5907
5908 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5909 case $ac_cv_c_int16_t in #(
5910 no|yes) ;; #(
5911 *)
5912
5913 cat >>confdefs.h <<_ACEOF
5914 #define int16_t $ac_cv_c_int16_t
5915 _ACEOF
5916 ;;
5917 esac
5918
5919 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5920 case $ac_cv_c_int32_t in #(
5921 no|yes) ;; #(
5922 *)
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define int32_t $ac_cv_c_int32_t
5926 _ACEOF
5927 ;;
5928 esac
5929
5930 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5931 case $ac_cv_c_int64_t in #(
5932 no|yes) ;; #(
5933 *)
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define int64_t $ac_cv_c_int64_t
5937 _ACEOF
5938 ;;
5939 esac
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5943 $as_echo_n "checking for long long int... " >&6; }
5944 if test "${ac_cv_type_long_long_int+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 /* For now, do not test the preprocessor; as of 2007 there are too many
5951 implementations with broken preprocessors. Perhaps this can
5952 be revisited in 2012. In the meantime, code should not expect
5953 #if to work with literals wider than 32 bits. */
5954 /* Test literals. */
5955 long long int ll = 9223372036854775807ll;
5956 long long int nll = -9223372036854775807LL;
5957 unsigned long long int ull = 18446744073709551615ULL;
5958 /* Test constant expressions. */
5959 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5960 ? 1 : -1)];
5961 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5962 ? 1 : -1)];
5963 int i = 63;
5964 int
5965 main ()
5966 {
5967 /* Test availability of runtime routines for shift and division. */
5968 long long int llmax = 9223372036854775807ll;
5969 unsigned long long int ullmax = 18446744073709551615ull;
5970 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5971 | (llmax / ll) | (llmax % ll)
5972 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5973 | (ullmax / ull) | (ullmax % ull));
5974 ;
5975 return 0;
5976 }
5977
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 if test "$cross_compiling" = yes; then :
5981 ac_cv_type_long_long_int=yes
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <limits.h>
5986 #ifndef LLONG_MAX
5987 # define HALF \
5988 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5989 # define LLONG_MAX (HALF - 1 + HALF)
5990 #endif
5991 int
5992 main ()
5993 {
5994 long long int n = 1;
5995 int i;
5996 for (i = 0; ; i++)
5997 {
5998 long long int m = n << i;
5999 if (m >> i != n)
6000 return 1;
6001 if (LLONG_MAX / 2 < m)
6002 break;
6003 }
6004 return 0;
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_run "$LINENO"; then :
6010 ac_cv_type_long_long_int=yes
6011 else
6012 ac_cv_type_long_long_int=no
6013 fi
6014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6015 conftest.$ac_objext conftest.beam conftest.$ac_ext
6016 fi
6017
6018 else
6019 ac_cv_type_long_long_int=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6025 $as_echo "$ac_cv_type_long_long_int" >&6; }
6026 if test $ac_cv_type_long_long_int = yes; then
6027
6028 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6029
6030 fi
6031
6032
6033
6034 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6035 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6036
6037 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6038
6039 else
6040 test $ac_cv_type_long_long_int = yes \
6041 && ac_type='long long int' \
6042 || ac_type='long int'
6043
6044 cat >>confdefs.h <<_ACEOF
6045 #define intmax_t $ac_type
6046 _ACEOF
6047
6048 fi
6049
6050
6051
6052 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6053 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6054
6055 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6056
6057 else
6058 for ac_type in 'int' 'long int' 'long long int'; do
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062 int
6063 main ()
6064 {
6065 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6066 test_array [0] = 0
6067
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073
6074 cat >>confdefs.h <<_ACEOF
6075 #define intptr_t $ac_type
6076 _ACEOF
6077
6078 ac_type=
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 test -z "$ac_type" && break
6082 done
6083 fi
6084
6085
6086 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6087 case $ac_cv_c_uint8_t in #(
6088 no|yes) ;; #(
6089 *)
6090
6091 $as_echo "#define _UINT8_T 1" >>confdefs.h
6092
6093
6094 cat >>confdefs.h <<_ACEOF
6095 #define uint8_t $ac_cv_c_uint8_t
6096 _ACEOF
6097 ;;
6098 esac
6099
6100 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6101 case $ac_cv_c_uint16_t in #(
6102 no|yes) ;; #(
6103 *)
6104
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define uint16_t $ac_cv_c_uint16_t
6108 _ACEOF
6109 ;;
6110 esac
6111
6112 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6113 case $ac_cv_c_uint32_t in #(
6114 no|yes) ;; #(
6115 *)
6116
6117 $as_echo "#define _UINT32_T 1" >>confdefs.h
6118
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define uint32_t $ac_cv_c_uint32_t
6122 _ACEOF
6123 ;;
6124 esac
6125
6126 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6127 case $ac_cv_c_uint64_t in #(
6128 no|yes) ;; #(
6129 *)
6130
6131 $as_echo "#define _UINT64_T 1" >>confdefs.h
6132
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define uint64_t $ac_cv_c_uint64_t
6136 _ACEOF
6137 ;;
6138 esac
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6142 $as_echo_n "checking for unsigned long long int... " >&6; }
6143 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148
6149 /* For now, do not test the preprocessor; as of 2007 there are too many
6150 implementations with broken preprocessors. Perhaps this can
6151 be revisited in 2012. In the meantime, code should not expect
6152 #if to work with literals wider than 32 bits. */
6153 /* Test literals. */
6154 long long int ll = 9223372036854775807ll;
6155 long long int nll = -9223372036854775807LL;
6156 unsigned long long int ull = 18446744073709551615ULL;
6157 /* Test constant expressions. */
6158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6159 ? 1 : -1)];
6160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6161 ? 1 : -1)];
6162 int i = 63;
6163 int
6164 main ()
6165 {
6166 /* Test availability of runtime routines for shift and division. */
6167 long long int llmax = 9223372036854775807ll;
6168 unsigned long long int ullmax = 18446744073709551615ull;
6169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6170 | (llmax / ll) | (llmax % ll)
6171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6172 | (ullmax / ull) | (ullmax % ull));
6173 ;
6174 return 0;
6175 }
6176
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 ac_cv_type_unsigned_long_long_int=yes
6180 else
6181 ac_cv_type_unsigned_long_long_int=no
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6187 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6188 if test $ac_cv_type_unsigned_long_long_int = yes; then
6189
6190 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6191
6192 fi
6193
6194
6195
6196 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6197 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6198
6199 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6200
6201 else
6202 test $ac_cv_type_unsigned_long_long_int = yes \
6203 && ac_type='unsigned long long int' \
6204 || ac_type='unsigned long int'
6205
6206 cat >>confdefs.h <<_ACEOF
6207 #define uintmax_t $ac_type
6208 _ACEOF
6209
6210 fi
6211
6212
6213
6214 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6215 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6216
6217 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6218
6219 else
6220 for ac_type in 'unsigned int' 'unsigned long int' \
6221 'unsigned long long int'; do
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 int
6226 main ()
6227 {
6228 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6229 test_array [0] = 0
6230
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236
6237 cat >>confdefs.h <<_ACEOF
6238 #define uintptr_t $ac_type
6239 _ACEOF
6240
6241 ac_type=
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 test -z "$ac_type" && break
6245 done
6246 fi
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6262 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6263 fi
6264
6265 # check what underlying integer type int64_t uses
6266 ac_ext=cpp
6267 ac_cpp='$CXXCPP $CPPFLAGS'
6268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6274 $as_echo_n "checking for int64_t underlying type... " >&6; }
6275 if test "${ac_cv_int64_t_type+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281
6282 #ifdef HAVE_STDINT_H
6283 #include <stdint.h>
6284 #endif
6285 template <typename T> struct X { };
6286 template <>
6287 struct X<long> { typedef long t; };
6288
6289 int
6290 main ()
6291 {
6292 X<int64_t>::t x;
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6298 ac_cv_int64_t_type=long
6299 else
6300 ac_cv_int64_t_type="long long"
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6305 $as_echo "$ac_cv_int64_t_type" >&6; }
6306 if test "$ac_cv_int64_t_type" = "long"; then
6307
6308 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6309
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313
6314 #ifdef HAVE_STDINT_H
6315 #include <stdint.h>
6316 #endif
6317 template <typename T> struct X { };
6318 template <>
6319 struct X<long long> { typedef long long t; };
6320
6321 int
6322 main ()
6323 {
6324 X<int64_t>::t x;
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_cxx_try_compile "$LINENO"; then :
6330
6331 else
6332 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 fi
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343
6344
6345
6346 # ---------------------
6347 # Warnings and checking
6348 # ---------------------
6349
6350 # Check $CC warning features (if it's GCC).
6351 # We want to use -pedantic, but we don't want warnings about
6352 # * 'long long'
6353 # * variadic macros
6354 # * overlong strings
6355 # * C++11 narrowing conversions in { }
6356 # So, we only use -pedantic if we can disable those warnings.
6357
6358 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6359 # Check whether --enable-build-format-warnings was given.
6360 if test "${enable_build_format_warnings+set}" = set; then :
6361 enableval=$enable_build_format_warnings;
6362 else
6363 enable_build_format_warnings=yes
6364 fi
6365
6366 if test $enable_build_format_warnings = no; then :
6367 wf_opt=-Wno-format
6368 else
6369 wf_opt=
6370 fi
6371 loose_warn=
6372 save_CFLAGS="$CFLAGS"
6373 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6374 # Do the check with the no- prefix removed since gcc silently
6375 # accepts any -Wno-* option on purpose
6376 case $real_option in
6377 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6378 *) option=$real_option ;;
6379 esac
6380 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6381
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6383 $as_echo_n "checking whether $CC supports $option... " >&6; }
6384 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 CFLAGS="$option"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390
6391 int
6392 main ()
6393 {
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 eval "$as_acx_Woption=yes"
6401 else
6402 eval "$as_acx_Woption=no"
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405
6406 fi
6407 eval ac_res=\$$as_acx_Woption
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6411 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6412 fi
6413 done
6414 CFLAGS="$save_CFLAGS"
6415
6416 c_loose_warn=
6417 save_CFLAGS="$CFLAGS"
6418 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6419 # Do the check with the no- prefix removed since gcc silently
6420 # accepts any -Wno-* option on purpose
6421 case $real_option in
6422 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6423 *) option=$real_option ;;
6424 esac
6425 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6428 $as_echo_n "checking whether $CC supports $option... " >&6; }
6429 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 CFLAGS="$option"
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435
6436 int
6437 main ()
6438 {
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 eval "$as_acx_Woption=yes"
6446 else
6447 eval "$as_acx_Woption=no"
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450
6451 fi
6452 eval ac_res=\$$as_acx_Woption
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 $as_echo "$ac_res" >&6; }
6455 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6456 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6457 fi
6458 done
6459 CFLAGS="$save_CFLAGS"
6460
6461 strict_warn=
6462 save_CFLAGS="$CFLAGS"
6463 for real_option in -Wmissing-format-attribute; do
6464 # Do the check with the no- prefix removed since gcc silently
6465 # accepts any -Wno-* option on purpose
6466 case $real_option in
6467 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6468 *) option=$real_option ;;
6469 esac
6470 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6473 $as_echo_n "checking whether $CC supports $option... " >&6; }
6474 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 CFLAGS="$option"
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480
6481 int
6482 main ()
6483 {
6484
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 eval "$as_acx_Woption=yes"
6491 else
6492 eval "$as_acx_Woption=no"
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495
6496 fi
6497 eval ac_res=\$$as_acx_Woption
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6499 $as_echo "$ac_res" >&6; }
6500 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6501 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6502 fi
6503 done
6504 CFLAGS="$save_CFLAGS"
6505
6506 save_CFLAGS="$CFLAGS"
6507 for real_option in -Woverloaded-virtual; do
6508 # Do the check with the no- prefix removed since gcc silently
6509 # accepts any -Wno-* option on purpose
6510 case $real_option in
6511 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6512 *) option=$real_option ;;
6513 esac
6514 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6517 $as_echo_n "checking whether $CC supports $option... " >&6; }
6518 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 CFLAGS="$option"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 eval "$as_acx_Woption=yes"
6535 else
6536 eval "$as_acx_Woption=no"
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539
6540 fi
6541 eval ac_res=\$$as_acx_Woption
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6545 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6546 fi
6547 done
6548 CFLAGS="$save_CFLAGS"
6549
6550 c_strict_warn=
6551 save_CFLAGS="$CFLAGS"
6552 for real_option in -Wold-style-definition -Wc++-compat; do
6553 # Do the check with the no- prefix removed since gcc silently
6554 # accepts any -Wno-* option on purpose
6555 case $real_option in
6556 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6557 *) option=$real_option ;;
6558 esac
6559 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6562 $as_echo_n "checking whether $CC supports $option... " >&6; }
6563 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 CFLAGS="$option"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569
6570 int
6571 main ()
6572 {
6573
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 eval "$as_acx_Woption=yes"
6580 else
6581 eval "$as_acx_Woption=no"
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584
6585 fi
6586 eval ac_res=\$$as_acx_Woption
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6588 $as_echo "$ac_res" >&6; }
6589 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6590 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6591 fi
6592 done
6593 CFLAGS="$save_CFLAGS"
6594
6595 # Do the check with the no- prefix removed from the warning options
6596 # since gcc silently accepts any -Wno-* option on purpose
6597 if test "$GCC" = yes; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6599 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6600 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 save_CFLAGS="$CFLAGS"
6604 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607
6608 int
6609 main ()
6610 {
6611
6612 ;
6613 return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6618 else
6619 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 CFLAGS="$save_CFLAGS"
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6625 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6626 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6627 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6628 fi
6629
6630 fi
6631
6632 # Check whether --enable-werror-always was given.
6633 if test "${enable_werror_always+set}" = set; then :
6634 enableval=$enable_werror_always;
6635 else
6636 enable_werror_always=no
6637 fi
6638
6639 if test $enable_werror_always = yes; then :
6640 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6641 fi
6642
6643
6644
6645 # The above macros do nothing if the compiler is not GCC. However, the
6646 # Makefile has more goo to add other flags, so these variables are used
6647 # to enable warnings only for GCC.
6648 warn_cflags=
6649 warn_cxxflags=
6650 if test "x$GCC" = "xyes"; then
6651 warn_cflags='$(GCC_WARN_CFLAGS)'
6652 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6653 fi
6654
6655
6656
6657 # Disable exceptions and RTTI if building with g++
6658 noexception_flags=
6659 save_CFLAGS="$CFLAGS"
6660 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option=$real_option ;;
6666 esac
6667 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6668
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 CFLAGS="$option"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677
6678 int
6679 main ()
6680 {
6681
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6688 else
6689 eval "$as_acx_Woption=no"
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692
6693 fi
6694 eval ac_res=\$$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6699 fi
6700 done
6701 CFLAGS="$save_CFLAGS"
6702
6703
6704 # Enable expensive internal checks
6705 is_release=
6706 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6707 is_release=yes
6708 fi
6709
6710 # Check whether --enable-checking was given.
6711 if test "${enable_checking+set}" = set; then :
6712 enableval=$enable_checking; ac_checking_flags="${enableval}"
6713 else
6714
6715 # Determine the default checks.
6716 if test x$is_release = x ; then
6717 ac_checking_flags=yes
6718 else
6719 ac_checking_flags=release
6720 fi
6721 fi
6722
6723 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6724 for check in release $ac_checking_flags
6725 do
6726 case $check in
6727 # these set all the flags to specific states
6728 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6729 ac_fold_checking= ; ac_gc_checking=1 ;
6730 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6731 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6732 ac_tree_checking=1 ; ac_valgrind_checking= ;
6733 ac_types_checking=1 ;;
6734 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6735 ac_fold_checking= ; ac_gc_checking= ;
6736 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6737 ac_rtlflag_checking= ; ac_runtime_checking= ;
6738 ac_tree_checking= ; ac_valgrind_checking= ;
6739 ac_types_checking= ;;
6740 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6741 ac_fold_checking=1 ; ac_gc_checking=1 ;
6742 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6743 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6744 ac_tree_checking=1 ; ac_valgrind_checking= ;
6745 ac_types_checking=1 ;;
6746 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6747 ac_fold_checking= ; ac_gc_checking= ;
6748 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6749 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6750 ac_tree_checking= ; ac_valgrind_checking= ;
6751 ac_types_checking= ;;
6752 # these enable particular checks
6753 assert) ac_assert_checking=1 ;;
6754 df) ac_df_checking=1 ;;
6755 fold) ac_fold_checking=1 ;;
6756 gc) ac_gc_checking=1 ;;
6757 gcac) ac_gc_always_collect=1 ;;
6758 gimple) ac_gimple_checking=1 ;;
6759 misc) ac_checking=1 ;;
6760 rtl) ac_rtl_checking=1 ;;
6761 rtlflag) ac_rtlflag_checking=1 ;;
6762 runtime) ac_runtime_checking=1 ;;
6763 tree) ac_tree_checking=1 ;;
6764 types) ac_types_checking=1 ;;
6765 valgrind) ac_valgrind_checking=1 ;;
6766 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6767 esac
6768 done
6769 IFS="$ac_save_IFS"
6770
6771 nocommon_flag=""
6772 if test x$ac_checking != x ; then
6773
6774 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6775
6776 nocommon_flag=-fno-common
6777 fi
6778
6779 if test x$ac_df_checking != x ; then
6780
6781 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6782
6783 fi
6784 if test x$ac_assert_checking != x ; then
6785
6786 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6787
6788 fi
6789 if test x$ac_gimple_checking != x ; then
6790
6791 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6792
6793 fi
6794
6795 if test x$ac_runtime_checking != x ; then
6796
6797 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6798
6799 fi
6800 if test x$ac_tree_checking != x ; then
6801
6802 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6803
6804 TREEBROWSER=tree-browser.o
6805 TREECHECKING=yes
6806 fi
6807 if test x$ac_types_checking != x ; then
6808
6809 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6810
6811 fi
6812
6813
6814 if test x$ac_rtl_checking != x ; then
6815
6816 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6817
6818 fi
6819 if test x$ac_rtlflag_checking != x ; then
6820
6821 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6822
6823 fi
6824 if test x$ac_gc_checking != x ; then
6825
6826 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6827
6828 fi
6829 if test x$ac_gc_always_collect != x ; then
6830
6831 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6832
6833 fi
6834 if test x$ac_fold_checking != x ; then
6835
6836 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6837
6838 fi
6839 valgrind_path_defines=
6840 valgrind_command=
6841
6842 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6843 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6844 have_valgrind_h=yes
6845 else
6846 have_valgrind_h=no
6847 fi
6848
6849
6850
6851 # It is certainly possible that there's valgrind but no valgrind.h.
6852 # GCC relies on making annotations so we must have both.
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <valgrind/memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6860 #endif
6861 _ACEOF
6862 if ac_fn_c_try_cpp "$LINENO"; then :
6863 gcc_cv_header_valgrind_memcheck_h=yes
6864 else
6865 gcc_cv_header_valgrind_memcheck_h=no
6866 fi
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6871 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <memcheck.h>
6875 #ifndef VALGRIND_DISCARD
6876 #error VALGRIND_DISCARD not defined
6877 #endif
6878 _ACEOF
6879 if ac_fn_c_try_cpp "$LINENO"; then :
6880 gcc_cv_header_memcheck_h=yes
6881 else
6882 gcc_cv_header_memcheck_h=no
6883 fi
6884 rm -f conftest.err conftest.$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6886 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6887 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6888
6889 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6890
6891 fi
6892 if test $gcc_cv_header_memcheck_h = yes; then
6893
6894 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6895
6896 fi
6897
6898 if test x$ac_valgrind_checking != x ; then
6899
6900 # Prepare PATH_SEPARATOR.
6901 # The user is always right.
6902 if test "${PATH_SEPARATOR+set}" != set; then
6903 echo "#! /bin/sh" >conf$$.sh
6904 echo "exit 0" >>conf$$.sh
6905 chmod +x conf$$.sh
6906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6907 PATH_SEPARATOR=';'
6908 else
6909 PATH_SEPARATOR=:
6910 fi
6911 rm -f conf$$.sh
6912 fi
6913
6914 # Find out how to test for executable files. Don't use a zero-byte file,
6915 # as systems may use methods other than mode bits to determine executability.
6916 cat >conf$$.file <<_ASEOF
6917 #! /bin/sh
6918 exit 0
6919 _ASEOF
6920 chmod +x conf$$.file
6921 if test -x conf$$.file >/dev/null 2>&1; then
6922 ac_executable_p="test -x"
6923 else
6924 ac_executable_p="test -f"
6925 fi
6926 rm -f conf$$.file
6927
6928 # Extract the first word of "valgrind", so it can be a program name with args.
6929 set dummy valgrind; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 case "$valgrind_path" in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6938 ;;
6939 *)
6940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6941 for ac_dir in $PATH; do
6942 IFS="$ac_save_IFS"
6943 test -z "$ac_dir" && ac_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6946 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6947 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6948 break 2
6949 fi
6950 fi
6951 done
6952 done
6953 IFS="$ac_save_IFS"
6954 ;;
6955 esac
6956 fi
6957 valgrind_path="$ac_cv_path_valgrind_path"
6958 if test -n "$valgrind_path"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6960 $as_echo "$valgrind_path" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966 if test "x$valgrind_path" = "x" \
6967 || (test $have_valgrind_h = no \
6968 && test $gcc_cv_header_memcheck_h = no \
6969 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6970 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6971 fi
6972 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6973 valgrind_command="$valgrind_path -q"
6974
6975 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6976
6977 fi
6978
6979
6980
6981 # Enable code coverage collection
6982 # Check whether --enable-coverage was given.
6983 if test "${enable_coverage+set}" = set; then :
6984 enableval=$enable_coverage; case "${enableval}" in
6985 yes|noopt)
6986 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6987 ;;
6988 opt)
6989 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6990 ;;
6991 no)
6992 # a.k.a. --disable-coverage
6993 coverage_flags=""
6994 ;;
6995 *)
6996 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6997 ;;
6998 esac
6999 else
7000 coverage_flags=""
7001 fi
7002
7003
7004
7005 # Check whether --enable-gather-detailed-mem-stats was given.
7006 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7007 enableval=$enable_gather_detailed_mem_stats;
7008 else
7009 enable_gather_detailed_mem_stats=no
7010 fi
7011
7012 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define GATHER_STATISTICS $gather_stats
7016 _ACEOF
7017
7018
7019 # Check whether --enable-valgrind-annotations was given.
7020 if test "${enable_valgrind_annotations+set}" = set; then :
7021 enableval=$enable_valgrind_annotations;
7022 else
7023 enable_valgrind_annotations=no
7024 fi
7025
7026 if test x$enable_valgrind_annotations != xno \
7027 || test x$ac_valgrind_checking != x; then
7028 if (test $have_valgrind_h = no \
7029 && test $gcc_cv_header_memcheck_h = no \
7030 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7031 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7032 fi
7033
7034 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7035
7036 fi
7037
7038 # -------------------------------
7039 # Miscenalleous configure options
7040 # -------------------------------
7041
7042 # With stabs
7043
7044 # Check whether --with-stabs was given.
7045 if test "${with_stabs+set}" = set; then :
7046 withval=$with_stabs; stabs="$with_stabs"
7047 else
7048 stabs=no
7049 fi
7050
7051
7052 # Determine whether or not multilibs are enabled.
7053 # Check whether --enable-multilib was given.
7054 if test "${enable_multilib+set}" = set; then :
7055 enableval=$enable_multilib;
7056 else
7057 enable_multilib=yes
7058 fi
7059
7060
7061
7062 # Determine whether or not multiarch is enabled.
7063 # Check whether --enable-multiarch was given.
7064 if test "${enable_multiarch+set}" = set; then :
7065 enableval=$enable_multiarch; case "${enableval}" in
7066 yes|no|auto) enable_multiarch=$enableval;;
7067 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7068 esac
7069 else
7070 enable_multiarch=auto
7071 fi
7072
7073 if test x${enable_multiarch} = xauto; then
7074 if test x${with_native_system_header_dir} != x; then
7075 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7076 enable_multiarch=no
7077 fi
7078 if test x$host != x$target && test "x$with_sysroot" = x; then
7079 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7080 enable_multiarch=no
7081 fi
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7084 $as_echo_n "checking for multiarch configuration... " >&6; }
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7087 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7088
7089 # needed for setting the multiarch name for soft-float/hard-float ABIs
7090
7091
7092
7093 # Enable __cxa_atexit for C++.
7094 # Check whether --enable-__cxa_atexit was given.
7095 if test "${enable___cxa_atexit+set}" = set; then :
7096 enableval=$enable___cxa_atexit;
7097 fi
7098
7099
7100 # Enable C extension for decimal float if target supports it.
7101
7102 # Check whether --enable-decimal-float was given.
7103 if test "${enable_decimal_float+set}" = set; then :
7104 enableval=$enable_decimal_float;
7105 case $enable_decimal_float in
7106 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7107 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7108 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7109 esac
7110
7111 else
7112
7113 case $target in
7114 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7115 i?86*-*-gnu* | \
7116 i?86*-*-mingw* | x86_64*-*-mingw* | \
7117 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7118 enable_decimal_float=yes
7119 ;;
7120 *)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7122 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7123 enable_decimal_float=no
7124 ;;
7125 esac
7126
7127 fi
7128
7129
7130 # x86's use BID format instead of DPD
7131 case x$enable_decimal_float in
7132 xyes)
7133 case $target in
7134 i?86*-*-* | x86_64*-*-*)
7135 enable_decimal_float=bid
7136 ;;
7137 *)
7138 enable_decimal_float=dpd
7139 ;;
7140 esac
7141 default_decimal_float=$enable_decimal_float
7142 ;;
7143 xno)
7144 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7145 # dependency on libdecnumber.
7146 default_decimal_float=dpd
7147 ;;
7148 esac
7149
7150
7151
7152
7153 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7154
7155 cat >>confdefs.h <<_ACEOF
7156 #define ENABLE_DECIMAL_FLOAT $dfp
7157 _ACEOF
7158
7159
7160 # Use default_decimal_float for dependency.
7161 enable_decimal_float=$default_decimal_float
7162
7163 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7164
7165 cat >>confdefs.h <<_ACEOF
7166 #define ENABLE_DECIMAL_BID_FORMAT $bid
7167 _ACEOF
7168
7169
7170 # Enable C extension for fixed-point arithmetic.
7171 # Check whether --enable-fixed-point was given.
7172 if test "${enable_fixed_point+set}" = set; then :
7173 enableval=$enable_fixed_point;
7174 else
7175
7176 case $target in
7177 arm*)
7178 enable_fixed_point=yes
7179 ;;
7180
7181 mips*-*-*)
7182 enable_fixed_point=yes
7183 ;;
7184 *)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7186 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7187 enable_fixed_point=no
7188 ;;
7189 esac
7190
7191 fi
7192
7193
7194
7195 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7196
7197 cat >>confdefs.h <<_ACEOF
7198 #define ENABLE_FIXED_POINT $fixedpoint
7199 _ACEOF
7200
7201
7202 # Enable threads
7203 # Pass with no value to take the default
7204 # Pass with a value to specify a thread package
7205 # Check whether --enable-threads was given.
7206 if test "${enable_threads+set}" = set; then :
7207 enableval=$enable_threads;
7208 else
7209 enable_threads=''
7210 fi
7211
7212
7213 # Check whether --enable-tls was given.
7214 if test "${enable_tls+set}" = set; then :
7215 enableval=$enable_tls;
7216 case $enable_tls in
7217 yes | no) ;;
7218 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7219 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7220 esac
7221
7222 else
7223 enable_tls=''
7224 fi
7225
7226
7227 # Check whether --enable-objc-gc was given.
7228 if test "${enable_objc_gc+set}" = set; then :
7229 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7230 objc_boehm_gc=''
7231 else
7232 objc_boehm_gc=1
7233 fi
7234 else
7235 objc_boehm_gc=''
7236 fi
7237
7238
7239
7240 # Check whether --with-dwarf2 was given.
7241 if test "${with_dwarf2+set}" = set; then :
7242 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7243 else
7244 dwarf2=no
7245 fi
7246
7247
7248 # Check whether --enable-shared was given.
7249 if test "${enable_shared+set}" = set; then :
7250 enableval=$enable_shared;
7251 case $enable_shared in
7252 yes | no) ;;
7253 *)
7254 enable_shared=no
7255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7256 for pkg in $enableval; do
7257 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7258 enable_shared=yes
7259 fi
7260 done
7261 IFS="$ac_save_ifs"
7262 ;;
7263 esac
7264
7265 else
7266 enable_shared=yes
7267 fi
7268
7269
7270
7271
7272 # Check whether --with-native-system-header-dir was given.
7273 if test "${with_native_system_header_dir+set}" = set; then :
7274 withval=$with_native_system_header_dir;
7275 case ${with_native_system_header_dir} in
7276 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7277 /* | [A-Za-z]:[\\/]*) ;;
7278 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7279 esac
7280 configured_native_system_header_dir="${withval}"
7281
7282 else
7283 configured_native_system_header_dir=
7284 fi
7285
7286
7287
7288 # Check whether --with-build-sysroot was given.
7289 if test "${with_build_sysroot+set}" = set; then :
7290 withval=$with_build_sysroot; if test x"$withval" != x ; then
7291 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7292 fi
7293 else
7294 SYSROOT_CFLAGS_FOR_TARGET=
7295 fi
7296
7297
7298
7299 if test "x$prefix" = xNONE; then
7300 test_prefix=/usr/local
7301 else
7302 test_prefix=$prefix
7303 fi
7304 if test "x$exec_prefix" = xNONE; then
7305 test_exec_prefix=$test_prefix
7306 else
7307 test_exec_prefix=$exec_prefix
7308 fi
7309
7310
7311 # Check whether --with-sysroot was given.
7312 if test "${with_sysroot+set}" = set; then :
7313 withval=$with_sysroot;
7314 case ${with_sysroot} in
7315 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7316 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7317 esac
7318
7319 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7320 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7321
7322 case ${TARGET_SYSTEM_ROOT} in
7323 "${test_prefix}"|"${test_prefix}/"*|\
7324 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7325 '${prefix}'|'${prefix}/'*|\
7326 '${exec_prefix}'|'${exec_prefix}/'*)
7327 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7328 TARGET_SYSTEM_ROOT_DEFINE="$t"
7329 ;;
7330 esac
7331
7332 else
7333
7334 TARGET_SYSTEM_ROOT=
7335 TARGET_SYSTEM_ROOT_DEFINE=
7336 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7337
7338 fi
7339
7340
7341
7342
7343
7344
7345 # Check whether --with-specs was given.
7346 if test "${with_specs+set}" = set; then :
7347 withval=$with_specs; CONFIGURE_SPECS=$withval
7348 else
7349 CONFIGURE_SPECS=
7350
7351 fi
7352
7353
7354
7355
7356
7357 # Check whether --with-pkgversion was given.
7358 if test "${with_pkgversion+set}" = set; then :
7359 withval=$with_pkgversion; case "$withval" in
7360 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7361 no) PKGVERSION= ;;
7362 *) PKGVERSION="($withval) " ;;
7363 esac
7364 else
7365 PKGVERSION="(GCC) "
7366
7367 fi
7368
7369
7370
7371
7372
7373 # Check whether --with-bugurl was given.
7374 if test "${with_bugurl+set}" = set; then :
7375 withval=$with_bugurl; case "$withval" in
7376 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7377 no) BUGURL=
7378 ;;
7379 *) BUGURL="$withval"
7380 ;;
7381 esac
7382 else
7383 BUGURL="http://gcc.gnu.org/bugs.html"
7384
7385 fi
7386
7387 case ${BUGURL} in
7388 "")
7389 REPORT_BUGS_TO=
7390 REPORT_BUGS_TEXI=
7391 ;;
7392 *)
7393 REPORT_BUGS_TO="<$BUGURL>"
7394 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7395 ;;
7396 esac;
7397
7398
7399
7400
7401 # Sanity check enable_languages in case someone does not run the toplevel
7402 # configure # script.
7403 # Check whether --enable-languages was given.
7404 if test "${enable_languages+set}" = set; then :
7405 enableval=$enable_languages; case ,${enable_languages}, in
7406 ,,|,yes,)
7407 # go safe -- we cannot be much sure without the toplevel
7408 # configure's
7409 # analysis of which target libs are present and usable
7410 enable_languages=c
7411 ;;
7412 *,all,*)
7413 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7414 ;;
7415 *,c,*)
7416 ;;
7417 *)
7418 enable_languages=c,${enable_languages}
7419 ;;
7420 esac
7421 else
7422 enable_languages=c
7423 fi
7424
7425
7426 if test x"$enable_as_accelerator_for" != x; then
7427
7428 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7429
7430 enable_as_accelerator=yes
7431 case "${target}" in
7432 *-intelmicemul-*)
7433 # In this case we expect offload compiler to be built as native, so we
7434 # need to rename the driver to avoid clashes with host's drivers.
7435 program_transform_name="s&^&${target}-&" ;;
7436 esac
7437 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7438 program_transform_name=`echo $program_transform_name | sed $sedscript`
7439 accel_dir_suffix=/accel/${target_noncanonical}
7440 real_target_noncanonical=${enable_as_accelerator_for}
7441 fi
7442
7443
7444
7445
7446 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7447 tgt=`echo $tgt | sed 's/=.*//'`
7448 if test x"$offload_targets" = x; then
7449 offload_targets=$tgt
7450 else
7451 offload_targets="$offload_targets:$tgt"
7452 fi
7453 done
7454
7455 cat >>confdefs.h <<_ACEOF
7456 #define OFFLOAD_TARGETS "$offload_targets"
7457 _ACEOF
7458
7459 if test x"$offload_targets" != x; then
7460
7461 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7462
7463 fi
7464
7465
7466 # Check whether --with-multilib-list was given.
7467 if test "${with_multilib_list+set}" = set; then :
7468 withval=$with_multilib_list; :
7469 else
7470 with_multilib_list=default
7471 fi
7472
7473
7474 # -------------------------
7475 # Checks for other programs
7476 # -------------------------
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7479 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7480 set x ${MAKE-make}
7481 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat >conftest.make <<\_ACEOF
7486 SHELL = /bin/sh
7487 all:
7488 @echo '@@@%%%=$(MAKE)=@@@%%%'
7489 _ACEOF
7490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7492 *@@@%%%=?*=@@@%%%*)
7493 eval ac_cv_prog_make_${ac_make}_set=yes;;
7494 *)
7495 eval ac_cv_prog_make_${ac_make}_set=no;;
7496 esac
7497 rm -f conftest.make
7498 fi
7499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501 $as_echo "yes" >&6; }
7502 SET_MAKE=
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 SET_MAKE="MAKE=${MAKE-make}"
7507 fi
7508
7509
7510 # Find some useful tools
7511 for ac_prog in gawk mawk nawk awk
7512 do
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy $ac_prog; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if test "${ac_cv_prog_AWK+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$AWK"; then
7521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_AWK="$ac_prog"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 AWK=$ac_cv_prog_AWK
7541 if test -n "$AWK"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7543 $as_echo "$AWK" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549
7550 test -n "$AWK" && break
7551 done
7552
7553 # We need awk to create options.c and options.h.
7554 # Bail out if it's missing.
7555 case ${AWK} in
7556 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7557 esac
7558
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7560 $as_echo_n "checking whether ln -s works... " >&6; }
7561 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 rm -f conftestdata_t
7565 echo >conftestdata_f
7566 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7567 then
7568 gcc_cv_prog_LN_S="ln -s"
7569 else
7570 if ln conftestdata_f conftestdata_t 2>/dev/null
7571 then
7572 gcc_cv_prog_LN_S=ln
7573 else
7574 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7575 then
7576 gcc_cv_prog_LN_S="cp -p"
7577 else
7578 gcc_cv_prog_LN_S=cp
7579 fi
7580 fi
7581 fi
7582 rm -f conftestdata_f conftestdata_t
7583
7584 fi
7585 LN_S="$gcc_cv_prog_LN_S"
7586 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588 $as_echo "yes" >&6; }
7589 else
7590 if test "$gcc_cv_prog_LN_S" = "ln"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7592 $as_echo "no, using ln" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7595 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7596 fi
7597 fi
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7600 $as_echo_n "checking whether ln works... " >&6; }
7601 if test "${acx_cv_prog_LN+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 rm -f conftestdata_t
7605 echo >conftestdata_f
7606 if ln conftestdata_f conftestdata_t 2>/dev/null
7607 then
7608 acx_cv_prog_LN=ln
7609 else
7610 acx_cv_prog_LN=no
7611 fi
7612 rm -f conftestdata_f conftestdata_t
7613
7614 fi
7615 if test $acx_cv_prog_LN = no; then
7616 LN="$LN_S"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7618 $as_echo "no, using $LN" >&6; }
7619 else
7620 LN="$acx_cv_prog_LN"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7623 fi
7624
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$RANLIB"; then
7634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 RANLIB=$ac_cv_prog_RANLIB
7654 if test -n "$RANLIB"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7656 $as_echo "$RANLIB" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662
7663 fi
7664 if test -z "$ac_cv_prog_RANLIB"; then
7665 ac_ct_RANLIB=$RANLIB
7666 # Extract the first word of "ranlib", so it can be a program name with args.
7667 set dummy ranlib; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$ac_ct_RANLIB"; then
7674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_prog_ac_ct_RANLIB="ranlib"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7694 if test -n "$ac_ct_RANLIB"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7696 $as_echo "$ac_ct_RANLIB" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702 if test "x$ac_ct_RANLIB" = x; then
7703 RANLIB=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706 yes:)
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7710 esac
7711 RANLIB=$ac_ct_RANLIB
7712 fi
7713 else
7714 RANLIB="$ac_cv_prog_RANLIB"
7715 fi
7716
7717 ranlib_flags=""
7718
7719
7720 # Find a good install program. We prefer a C program (faster),
7721 # so one script is as good as another. But avoid the broken or
7722 # incompatible versions:
7723 # SysV /etc/install, /usr/sbin/install
7724 # SunOS /usr/etc/install
7725 # IRIX /sbin/install
7726 # AIX /bin/install
7727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7729 # ./install, which can be erroneously created by make from ./install.sh.
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7731 $as_echo_n "checking for a BSD compatible install... " >&6; }
7732 if test -z "$INSTALL"; then
7733 if test "${ac_cv_path_install+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7737 for ac_dir in $PATH; do
7738 # Account for people who put trailing slashes in PATH elements.
7739 case "$ac_dir/" in
7740 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7741 *)
7742 # OSF1 and SCO ODT 3.0 have their own names for install.
7743 for ac_prog in ginstall scoinst install; do
7744 if test -f $ac_dir/$ac_prog; then
7745 if test $ac_prog = install &&
7746 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7747 # AIX install. It has an incompatible calling convention.
7748 # OSF/1 installbsd also uses dspmsg, but is usable.
7749 :
7750 else
7751 ac_cv_path_install="$ac_dir/$ac_prog -c"
7752 break 2
7753 fi
7754 fi
7755 done
7756 ;;
7757 esac
7758 done
7759 IFS="$ac_save_IFS"
7760
7761 fi
7762 if test "${ac_cv_path_install+set}" = set; then
7763 INSTALL="$ac_cv_path_install"
7764 else
7765 # As a last resort, use the slow shell script. We don't cache a
7766 # path for INSTALL within a source directory, because that will
7767 # break other packages using the cache if that directory is
7768 # removed, or if the path is relative.
7769 INSTALL="$ac_install_sh"
7770 fi
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7773 $as_echo "$INSTALL" >&6; }
7774
7775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7776 # It thinks the first close brace ends the variable substitution.
7777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7778
7779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7780
7781
7782 # See if cmp has --ignore-initial.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7784 $as_echo_n "checking for cmp's capabilities... " >&6; }
7785 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 echo abfoo >t1
7789 echo cdfoo >t2
7790 gcc_cv_prog_cmp_skip=slowcompare
7791 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7792 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7793 :
7794 else
7795 gcc_cv_prog_cmp_skip=gnucompare
7796 fi
7797 fi
7798 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7799 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7800 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7801 :
7802 else
7803 gcc_cv_prog_cmp_skip=fastcompare
7804 fi
7805 fi
7806 fi
7807 rm t1 t2
7808
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7811 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7812 make_compare_target=$gcc_cv_prog_cmp_skip
7813
7814
7815
7816 # See if we have the mktemp command.
7817 # Extract the first word of "mktemp", so it can be a program name with args.
7818 set dummy mktemp; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$have_mktemp_command"; then
7825 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_have_mktemp_command="yes"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7843 fi
7844 fi
7845 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7846 if test -n "$have_mktemp_command"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7848 $as_echo "$have_mktemp_command" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855
7856 # See if makeinfo has been installed and is modern enough
7857 # that we can use it.
7858
7859 # Extract the first word of "makeinfo", so it can be a program name with args.
7860 set dummy makeinfo; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$MAKEINFO"; then
7867 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_MAKEINFO="makeinfo"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 MAKEINFO=$ac_cv_prog_MAKEINFO
7887 if test -n "$MAKEINFO"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7889 $as_echo "$MAKEINFO" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895
7896 if test -n "$MAKEINFO"; then
7897 # Found it, now check the version.
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7899 $as_echo_n "checking for modern makeinfo... " >&6; }
7900 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7904 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7905
7906 case $ac_prog_version in
7907 '') gcc_cv_prog_makeinfo_modern=no;;
7908 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7909 *) gcc_cv_prog_makeinfo_modern=no;;
7910 esac
7911
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7914 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7915 else
7916 gcc_cv_prog_makeinfo_modern=no
7917 fi
7918 if test $gcc_cv_prog_makeinfo_modern = no; then
7919 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7920 fi
7921
7922 if test $gcc_cv_prog_makeinfo_modern = no; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7924 *** Makeinfo is missing or too old.
7925 *** Info documentation will not be built." >&5
7926 $as_echo "$as_me: WARNING:
7927 *** Makeinfo is missing or too old.
7928 *** Info documentation will not be built." >&2;}
7929 BUILD_INFO=
7930 else
7931 BUILD_INFO=info
7932 fi
7933
7934
7935 # Is pod2man recent enough to regenerate manpages?
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7937 $as_echo_n "checking for recent Pod::Man... " >&6; }
7938 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7940 $as_echo "yes" >&6; }
7941 GENERATED_MANPAGES=generated-manpages
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 GENERATED_MANPAGES=
7946 fi
7947
7948
7949 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7950
7951 # How about lex?
7952 for ac_prog in flex
7953 do
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_FLEX+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$FLEX"; then
7962 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_FLEX="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 FLEX=$ac_cv_prog_FLEX
7982 if test -n "$FLEX"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7984 $as_echo "$FLEX" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990
7991 test -n "$FLEX" && break
7992 done
7993 test -n "$FLEX" || FLEX="$MISSING flex"
7994
7995
7996 # Bison?
7997 for ac_prog in bison
7998 do
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_prog_BISON+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 if test -n "$BISON"; then
8007 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8016 ac_cv_prog_BISON="$ac_prog"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020 done
8021 done
8022 IFS=$as_save_IFS
8023
8024 fi
8025 fi
8026 BISON=$ac_cv_prog_BISON
8027 if test -n "$BISON"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8029 $as_echo "$BISON" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 fi
8034
8035
8036 test -n "$BISON" && break
8037 done
8038 test -n "$BISON" || BISON="$MISSING bison"
8039
8040
8041 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8042 # check for build == host before using them.
8043
8044 # NM
8045 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8046 && test -d ../binutils ; then
8047 NM='${objdir}/../binutils/nm-new'
8048 else
8049 # Extract the first word of "nm", so it can be a program name with args.
8050 set dummy nm; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_NM+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$NM"; then
8057 ac_cv_prog_NM="$NM" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_NM="nm"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8075 fi
8076 fi
8077 NM=$ac_cv_prog_NM
8078 if test -n "$NM"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8080 $as_echo "$NM" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 fi
8085
8086
8087 fi
8088
8089 # AR
8090 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8091 && test -d ../binutils ; then
8092 AR='${objdir}/../binutils/ar'
8093 else
8094 # Extract the first word of "ar", so it can be a program name with args.
8095 set dummy ar; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if test "${ac_cv_prog_AR+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 if test -n "$AR"; then
8102 ac_cv_prog_AR="$AR" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_prog_AR="ar"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8120 fi
8121 fi
8122 AR=$ac_cv_prog_AR
8123 if test -n "$AR"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8125 $as_echo "$AR" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 fi
8130
8131
8132 fi
8133
8134 # The jit documentation looks better if built with sphinx, but can be
8135 # built with texinfo if sphinx is not available.
8136 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8137 # Extract the first word of "sphinx-build", so it can be a program name with args.
8138 set dummy sphinx-build; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$doc_build_sys"; then
8145 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_doc_build_sys="sphinx"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8163 fi
8164 fi
8165 doc_build_sys=$ac_cv_prog_doc_build_sys
8166 if test -n "$doc_build_sys"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8168 $as_echo "$doc_build_sys" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175
8176 # --------------------
8177 # Checks for C headers
8178 # --------------------
8179
8180 # Need to reject headers which give warnings, so that the -Werror bootstrap
8181 # works later. *sigh* This needs to come before all header checks.
8182
8183 ac_c_preproc_warn_flag=yes
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8186 $as_echo_n "checking for ANSI C header files... " >&6; }
8187 if test "${ac_cv_header_stdc+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <stdlib.h>
8193 #include <stdarg.h>
8194 #include <string.h>
8195 #include <float.h>
8196
8197 int
8198 main ()
8199 {
8200
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 ac_cv_header_stdc=yes
8207 else
8208 ac_cv_header_stdc=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
8212 if test $ac_cv_header_stdc = yes; then
8213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <string.h>
8217
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "memchr" >/dev/null 2>&1; then :
8221
8222 else
8223 ac_cv_header_stdc=no
8224 fi
8225 rm -f conftest*
8226
8227 fi
8228
8229 if test $ac_cv_header_stdc = yes; then
8230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 #include <stdlib.h>
8234
8235 _ACEOF
8236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237 $EGREP "free" >/dev/null 2>&1; then :
8238
8239 else
8240 ac_cv_header_stdc=no
8241 fi
8242 rm -f conftest*
8243
8244 fi
8245
8246 if test $ac_cv_header_stdc = yes; then
8247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248 if test "$cross_compiling" = yes; then :
8249 :
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <ctype.h>
8254 #include <stdlib.h>
8255 #if ((' ' & 0x0FF) == 0x020)
8256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8258 #else
8259 # define ISLOWER(c) \
8260 (('a' <= (c) && (c) <= 'i') \
8261 || ('j' <= (c) && (c) <= 'r') \
8262 || ('s' <= (c) && (c) <= 'z'))
8263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8264 #endif
8265
8266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8267 int
8268 main ()
8269 {
8270 int i;
8271 for (i = 0; i < 256; i++)
8272 if (XOR (islower (i), ISLOWER (i))
8273 || toupper (i) != TOUPPER (i))
8274 return 2;
8275 return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_run "$LINENO"; then :
8279
8280 else
8281 ac_cv_header_stdc=no
8282 fi
8283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8284 conftest.$ac_objext conftest.beam conftest.$ac_ext
8285 fi
8286
8287 fi
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8290 $as_echo "$ac_cv_header_stdc" >&6; }
8291 if test $ac_cv_header_stdc = yes; then
8292
8293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8294
8295 fi
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8298 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8299 if test "${ac_cv_header_time+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/time.h>
8306 #include <time.h>
8307
8308 int
8309 main ()
8310 {
8311 if ((struct tm *) 0)
8312 return 0;
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_header_time=yes
8319 else
8320 ac_cv_header_time=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8325 $as_echo "$ac_cv_header_time" >&6; }
8326 if test $ac_cv_header_time = yes; then
8327
8328 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8329
8330 fi
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8333 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8334 if test "${gcc_cv_header_string+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 #include <string.h>
8340 #include <strings.h>
8341 int
8342 main ()
8343 {
8344
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 gcc_cv_header_string=yes
8351 else
8352 gcc_cv_header_string=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8357 $as_echo "$gcc_cv_header_string" >&6; }
8358 if test $gcc_cv_header_string = yes; then
8359
8360 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8361
8362 fi
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8365 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8366 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 #include <sys/types.h>
8372 #include <sys/wait.h>
8373 #ifndef WEXITSTATUS
8374 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8375 #endif
8376 #ifndef WIFEXITED
8377 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8378 #endif
8379
8380 int
8381 main ()
8382 {
8383 int s;
8384 wait (&s);
8385 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8386 ;
8387 return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_compile "$LINENO"; then :
8391 ac_cv_header_sys_wait_h=yes
8392 else
8393 ac_cv_header_sys_wait_h=no
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8398 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8399 if test $ac_cv_header_sys_wait_h = yes; then
8400
8401 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8402
8403 fi
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8406 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8407 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <sys/types.h>
8413 #include <termios.h>
8414 #ifdef TIOCGWINSZ
8415 yes
8416 #endif
8417
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "yes" >/dev/null 2>&1; then :
8421 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8422 else
8423 ac_cv_sys_tiocgwinsz_in_termios_h=no
8424 fi
8425 rm -f conftest*
8426
8427 fi
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8429 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8430
8431 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8433 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8434 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <sys/types.h>
8440 #include <sys/ioctl.h>
8441 #ifdef TIOCGWINSZ
8442 yes
8443 #endif
8444
8445 _ACEOF
8446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8447 $EGREP "yes" >/dev/null 2>&1; then :
8448 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8449 else
8450 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8451 fi
8452 rm -f conftest*
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8456 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8457
8458 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8459
8460 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8461
8462 fi
8463 fi
8464
8465 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8466 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8467 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8468 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8469 do :
8470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8472 eval as_val=\$$as_ac_Header
8473 if test "x$as_val" = x""yes; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 _ACEOF
8477
8478 fi
8479 done
8480
8481
8482 # Check for thread headers.
8483 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8484 if test "x$ac_cv_header_thread_h" = x""yes; then :
8485 have_thread_h=yes
8486 else
8487 have_thread_h=
8488 fi
8489
8490 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8491 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8492 have_pthread_h=yes
8493 else
8494 have_pthread_h=
8495 fi
8496
8497
8498 # These tests can't be done till we know if we have limits.h.
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8500 $as_echo_n "checking for CHAR_BIT... " >&6; }
8501 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #ifdef HAVE_LIMITS_H
8507 #include <limits.h>
8508 #endif
8509 #ifdef CHAR_BIT
8510 found
8511 #endif
8512 _ACEOF
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514 $EGREP "found" >/dev/null 2>&1; then :
8515 gcc_cv_decl_char_bit=yes
8516 else
8517 gcc_cv_decl_char_bit=no
8518 fi
8519 rm -f conftest*
8520
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8524 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8525 if test $gcc_cv_decl_char_bit = no; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8527 $as_echo_n "checking number of bits in a byte... " >&6; }
8528 if test "${gcc_cv_c_nbby+set}" = set; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 i=8
8532 gcc_cv_c_nbby=
8533 while test $i -lt 65; do
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536
8537 int
8538 main ()
8539 {
8540 switch(0) {
8541 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8542 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8543 ; }
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 gcc_cv_c_nbby=$i; break
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 i=`expr $i + 1`
8553 done
8554 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8558 $as_echo "$gcc_cv_c_nbby" >&6; }
8559 if test $gcc_cv_c_nbby = failed; then
8560 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8561 else
8562
8563 cat >>confdefs.h <<_ACEOF
8564 #define CHAR_BIT $gcc_cv_c_nbby
8565 _ACEOF
8566
8567 fi
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8570 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8571 if test "${ac_cv_c_bigendian+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 ac_cv_c_bigendian=unknown
8575 # See if we're dealing with a universal compiler.
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #ifndef __APPLE_CC__
8579 not a universal capable compiler
8580 #endif
8581 typedef int dummy;
8582
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"; then :
8585
8586 # Check for potential -arch flags. It is not universal unless
8587 # there are at least two -arch flags with different values.
8588 ac_arch=
8589 ac_prev=
8590 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8591 if test -n "$ac_prev"; then
8592 case $ac_word in
8593 i?86 | x86_64 | ppc | ppc64)
8594 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8595 ac_arch=$ac_word
8596 else
8597 ac_cv_c_bigendian=universal
8598 break
8599 fi
8600 ;;
8601 esac
8602 ac_prev=
8603 elif test "x$ac_word" = "x-arch"; then
8604 ac_prev=arch
8605 fi
8606 done
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 if test $ac_cv_c_bigendian = unknown; then
8610 # See if sys/param.h defines the BYTE_ORDER macro.
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #include <sys/types.h>
8614 #include <sys/param.h>
8615
8616 int
8617 main ()
8618 {
8619 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8620 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8621 && LITTLE_ENDIAN)
8622 bogus endian macros
8623 #endif
8624
8625 ;
8626 return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630 # It does; now see whether it defined to BIG_ENDIAN or not.
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <sys/types.h>
8634 #include <sys/param.h>
8635
8636 int
8637 main ()
8638 {
8639 #if BYTE_ORDER != BIG_ENDIAN
8640 not big endian
8641 #endif
8642
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 ac_cv_c_bigendian=yes
8649 else
8650 ac_cv_c_bigendian=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 fi
8656 if test $ac_cv_c_bigendian = unknown; then
8657 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <limits.h>
8661
8662 int
8663 main ()
8664 {
8665 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8666 bogus endian macros
8667 #endif
8668
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"; then :
8674 # It does; now see whether it defined to _BIG_ENDIAN or not.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <limits.h>
8678
8679 int
8680 main ()
8681 {
8682 #ifndef _BIG_ENDIAN
8683 not big endian
8684 #endif
8685
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 ac_cv_c_bigendian=yes
8692 else
8693 ac_cv_c_bigendian=no
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 fi
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 fi
8699 if test $ac_cv_c_bigendian = unknown; then
8700 # Compile a test program.
8701 if test "$cross_compiling" = yes; then :
8702 # Try to guess by grepping values from an object file.
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 short int ascii_mm[] =
8706 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8707 short int ascii_ii[] =
8708 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709 int use_ascii (int i) {
8710 return ascii_mm[i] + ascii_ii[i];
8711 }
8712 short int ebcdic_ii[] =
8713 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8714 short int ebcdic_mm[] =
8715 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8716 int use_ebcdic (int i) {
8717 return ebcdic_mm[i] + ebcdic_ii[i];
8718 }
8719 extern int foo;
8720
8721 int
8722 main ()
8723 {
8724 return use_ascii (foo) == use_ebcdic (foo);
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8731 ac_cv_c_bigendian=yes
8732 fi
8733 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8734 if test "$ac_cv_c_bigendian" = unknown; then
8735 ac_cv_c_bigendian=no
8736 else
8737 # finding both strings is unlikely to happen, but who knows?
8738 ac_cv_c_bigendian=unknown
8739 fi
8740 fi
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 $ac_includes_default
8747 int
8748 main ()
8749 {
8750
8751 /* Are we little or big endian? From Harbison&Steele. */
8752 union
8753 {
8754 long int l;
8755 char c[sizeof (long int)];
8756 } u;
8757 u.l = 1;
8758 return u.c[sizeof (long int) - 1] == 1;
8759
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_run "$LINENO"; then :
8765 ac_cv_c_bigendian=no
8766 else
8767 ac_cv_c_bigendian=yes
8768 fi
8769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8770 conftest.$ac_objext conftest.beam conftest.$ac_ext
8771 fi
8772
8773 fi
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8776 $as_echo "$ac_cv_c_bigendian" >&6; }
8777 case $ac_cv_c_bigendian in #(
8778 yes)
8779 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8780 ;; #(
8781 no)
8782 ;; #(
8783 universal)
8784
8785 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8786
8787 ;; #(
8788 *)
8789 as_fn_error "unknown endianness
8790 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8791 esac
8792
8793
8794 # ----------------------
8795 # Checks for C++ headers
8796 # ----------------------
8797
8798 ac_ext=cpp
8799 ac_cpp='$CXXCPP $CPPFLAGS'
8800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8804 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8805 if test -z "$CXXCPP"; then
8806 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 # Double quotes because CXXCPP needs to be expanded
8810 for CXXCPP in "$CXX -E" "/lib/cpp"
8811 do
8812 ac_preproc_ok=false
8813 for ac_cxx_preproc_warn_flag in '' yes
8814 do
8815 # Use a header file that comes with gcc, so configuring glibc
8816 # with a fresh cross-compiler works.
8817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8818 # <limits.h> exists even on freestanding compilers.
8819 # On the NeXT, cc -E runs the code through the compiler's parser,
8820 # not just through cpp. "Syntax error" is here to catch this case.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #ifdef __STDC__
8824 # include <limits.h>
8825 #else
8826 # include <assert.h>
8827 #endif
8828 Syntax error
8829 _ACEOF
8830 if ac_fn_cxx_try_cpp "$LINENO"; then :
8831
8832 else
8833 # Broken: fails on valid input.
8834 continue
8835 fi
8836 rm -f conftest.err conftest.$ac_ext
8837
8838 # OK, works on sane cases. Now check whether nonexistent headers
8839 # can be detected and how.
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <ac_nonexistent.h>
8843 _ACEOF
8844 if ac_fn_cxx_try_cpp "$LINENO"; then :
8845 # Broken: success on invalid input.
8846 continue
8847 else
8848 # Passes both tests.
8849 ac_preproc_ok=:
8850 break
8851 fi
8852 rm -f conftest.err conftest.$ac_ext
8853
8854 done
8855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8856 rm -f conftest.err conftest.$ac_ext
8857 if $ac_preproc_ok; then :
8858 break
8859 fi
8860
8861 done
8862 ac_cv_prog_CXXCPP=$CXXCPP
8863
8864 fi
8865 CXXCPP=$ac_cv_prog_CXXCPP
8866 else
8867 ac_cv_prog_CXXCPP=$CXXCPP
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8870 $as_echo "$CXXCPP" >&6; }
8871 ac_preproc_ok=false
8872 for ac_cxx_preproc_warn_flag in '' yes
8873 do
8874 # Use a header file that comes with gcc, so configuring glibc
8875 # with a fresh cross-compiler works.
8876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8877 # <limits.h> exists even on freestanding compilers.
8878 # On the NeXT, cc -E runs the code through the compiler's parser,
8879 # not just through cpp. "Syntax error" is here to catch this case.
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #ifdef __STDC__
8883 # include <limits.h>
8884 #else
8885 # include <assert.h>
8886 #endif
8887 Syntax error
8888 _ACEOF
8889 if ac_fn_cxx_try_cpp "$LINENO"; then :
8890
8891 else
8892 # Broken: fails on valid input.
8893 continue
8894 fi
8895 rm -f conftest.err conftest.$ac_ext
8896
8897 # OK, works on sane cases. Now check whether nonexistent headers
8898 # can be detected and how.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #include <ac_nonexistent.h>
8902 _ACEOF
8903 if ac_fn_cxx_try_cpp "$LINENO"; then :
8904 # Broken: success on invalid input.
8905 continue
8906 else
8907 # Passes both tests.
8908 ac_preproc_ok=:
8909 break
8910 fi
8911 rm -f conftest.err conftest.$ac_ext
8912
8913 done
8914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8915 rm -f conftest.err conftest.$ac_ext
8916 if $ac_preproc_ok; then :
8917
8918 else
8919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8922 See \`config.log' for more details." >&5
8923 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8924 See \`config.log' for more details." >&2;}; }
8925 fi
8926
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932
8933
8934 ac_ext=cpp
8935 ac_cpp='$CXXCPP $CPPFLAGS'
8936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8939
8940
8941
8942 for ac_header in unordered_map
8943 do :
8944 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8945 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8946 cat >>confdefs.h <<_ACEOF
8947 #define HAVE_UNORDERED_MAP 1
8948 _ACEOF
8949
8950 fi
8951 done
8952
8953 for ac_header in tr1/unordered_map
8954 do :
8955 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8956 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8957 cat >>confdefs.h <<_ACEOF
8958 #define HAVE_TR1_UNORDERED_MAP 1
8959 _ACEOF
8960
8961 fi
8962 done
8963
8964 for ac_header in ext/hash_map
8965 do :
8966 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8967 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_EXT_HASH_MAP 1
8970 _ACEOF
8971
8972 fi
8973 done
8974
8975
8976 ac_ext=c
8977 ac_cpp='$CPP $CPPFLAGS'
8978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8981
8982
8983 # --------
8984 # Dependency checking.
8985 # --------
8986
8987 ac_ext=cpp
8988 ac_cpp='$CXXCPP $CPPFLAGS'
8989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8992
8993 rm -rf .tst 2>/dev/null
8994 mkdir .tst 2>/dev/null
8995 if test -d .tst; then
8996 am__leading_dot=.
8997 else
8998 am__leading_dot=_
8999 fi
9000 rmdir .tst 2>/dev/null
9001
9002 DEPDIR="${am__leading_dot}deps"
9003
9004 ac_config_commands="$ac_config_commands depdir"
9005
9006
9007 ac_config_commands="$ac_config_commands gccdepdir"
9008
9009
9010 depcc="$CXX" am_compiler_list=
9011
9012 am_depcomp=$ac_aux_dir/depcomp
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9014 $as_echo_n "checking dependency style of $depcc... " >&6; }
9015 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -f "$am_depcomp"; then
9019 # We make a subdir and do the tests there. Otherwise we can end up
9020 # making bogus files that we don't know about and never remove. For
9021 # instance it was reported that on HP-UX the gcc test will end up
9022 # making a dummy file named `D' -- because `-MD' means `put the output
9023 # in D'.
9024 mkdir conftest.dir
9025 # Copy depcomp to subdir because otherwise we won't find it if we're
9026 # using a relative directory.
9027 cp "$am_depcomp" conftest.dir
9028 cd conftest.dir
9029 # We will build objects and dependencies in a subdirectory because
9030 # it helps to detect inapplicable dependency modes. For instance
9031 # both Tru64's cc and ICC support -MD to output dependencies as a
9032 # side effect of compilation, but ICC will put the dependencies in
9033 # the current directory while Tru64 will put them in the object
9034 # directory.
9035 mkdir sub
9036
9037 am_cv_CXX_dependencies_compiler_type=none
9038 if test "$am_compiler_list" = ""; then
9039 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9040 fi
9041 for depmode in $am_compiler_list; do
9042 if test $depmode = none; then break; fi
9043
9044 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9045 # Setup a source with many dependencies, because some compilers
9046 # like to wrap large dependency lists on column 80 (with \), and
9047 # we should not choose a depcomp mode which is confused by this.
9048 #
9049 # We need to recreate these files for each test, as the compiler may
9050 # overwrite some of them when testing with obscure command lines.
9051 # This happens at least with the AIX C compiler.
9052 : > sub/conftest.c
9053 for i in 1 2 3 4 5 6; do
9054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9056 # Solaris 8's {/usr,}/bin/sh.
9057 touch sub/conftst$i.h
9058 done
9059 echo "include sub/conftest.Po" > confmf
9060
9061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9062 # mode. It turns out that the SunPro C++ compiler does not properly
9063 # handle `-M -o', and we need to detect this.
9064 depcmd="depmode=$depmode \
9065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9068 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9069 if env $depcmd > conftest.err 2>&1 &&
9070 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9071 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9072 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9073 # icc doesn't choke on unknown options, it will just issue warnings
9074 # or remarks (even with -Werror). So we grep stderr for any message
9075 # that says an option was ignored or not supported.
9076 # When given -MP, icc 7.0 and 7.1 complain thusly:
9077 # icc: Command line warning: ignoring option '-M'; no argument required
9078 # The diagnosis changed in icc 8.0:
9079 # icc: Command line remark: option '-MP' not supported
9080 if (grep 'ignoring option' conftest.err ||
9081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9082 am_cv_CXX_dependencies_compiler_type=$depmode
9083 $as_echo "$as_me:$LINENO: success" >&5
9084 break
9085 fi
9086 fi
9087 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9088 sed -e 's/^/| /' < conftest.err >&5
9089 done
9090
9091 cd ..
9092 rm -rf conftest.dir
9093 else
9094 am_cv_CXX_dependencies_compiler_type=none
9095 fi
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9099 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9100 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9101 then as_fn_error "no usable dependency style found" "$LINENO" 5
9102 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9103
9104 fi
9105
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9111
9112
9113 # --------
9114 # UNSORTED
9115 # --------
9116
9117
9118 # These libraries may be used by collect2.
9119 # We may need a special search path to get them linked.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9121 $as_echo_n "checking for collect2 libraries... " >&6; }
9122 if test "${gcc_cv_collect2_libs+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 save_LIBS="$LIBS"
9126 for libs in '' -lld -lmld \
9127 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9128 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9129 do
9130 LIBS="$libs"
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133
9134 /* Override any GCC internal prototype to avoid an error.
9135 Use char because int might match the return type of a GCC
9136 builtin and then its argument prototype would still apply. */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 char ldopen ();
9141 int
9142 main ()
9143 {
9144 return ldopen ();
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 if ac_fn_c_try_link "$LINENO"; then :
9150 gcc_cv_collect2_libs="$libs"; break
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 done
9155 LIBS="$save_LIBS"
9156 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9159 $as_echo "$gcc_cv_collect2_libs" >&6; }
9160 case $gcc_cv_collect2_libs in
9161 "none required") ;;
9162 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9163 esac
9164
9165
9166 # When building Ada code on Alpha, we need exc_resume which is usually in
9167 # -lexc. So test for it.
9168 save_LIBS="$LIBS"
9169 LIBS=
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9171 $as_echo_n "checking for library containing exc_resume... " >&6; }
9172 if test "${ac_cv_search_exc_resume+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 ac_func_search_save_LIBS=$LIBS
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char exc_resume ();
9186 int
9187 main ()
9188 {
9189 return exc_resume ();
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 for ac_lib in '' exc; do
9195 if test -z "$ac_lib"; then
9196 ac_res="none required"
9197 else
9198 ac_res=-l$ac_lib
9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9200 fi
9201 if ac_fn_c_try_link "$LINENO"; then :
9202 ac_cv_search_exc_resume=$ac_res
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext
9206 if test "${ac_cv_search_exc_resume+set}" = set; then :
9207 break
9208 fi
9209 done
9210 if test "${ac_cv_search_exc_resume+set}" = set; then :
9211
9212 else
9213 ac_cv_search_exc_resume=no
9214 fi
9215 rm conftest.$ac_ext
9216 LIBS=$ac_func_search_save_LIBS
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9219 $as_echo "$ac_cv_search_exc_resume" >&6; }
9220 ac_res=$ac_cv_search_exc_resume
9221 if test "$ac_res" != no; then :
9222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9223
9224 fi
9225
9226 GNAT_LIBEXC="$LIBS"
9227 LIBS="$save_LIBS"
9228
9229
9230 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9231 save_LIBS="$LIBS"
9232 LIBS=
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9234 $as_echo_n "checking for library containing kstat_open... " >&6; }
9235 if test "${ac_cv_search_kstat_open+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_func_search_save_LIBS=$LIBS
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241
9242 /* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 char kstat_open ();
9249 int
9250 main ()
9251 {
9252 return kstat_open ();
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 for ac_lib in '' kstat; do
9258 if test -z "$ac_lib"; then
9259 ac_res="none required"
9260 else
9261 ac_res=-l$ac_lib
9262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9263 fi
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 ac_cv_search_kstat_open=$ac_res
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext
9269 if test "${ac_cv_search_kstat_open+set}" = set; then :
9270 break
9271 fi
9272 done
9273 if test "${ac_cv_search_kstat_open+set}" = set; then :
9274
9275 else
9276 ac_cv_search_kstat_open=no
9277 fi
9278 rm conftest.$ac_ext
9279 LIBS=$ac_func_search_save_LIBS
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9282 $as_echo "$ac_cv_search_kstat_open" >&6; }
9283 ac_res=$ac_cv_search_kstat_open
9284 if test "$ac_res" != no; then :
9285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9286
9287 fi
9288
9289 EXTRA_GCC_LIBS="$LIBS"
9290 LIBS="$save_LIBS"
9291
9292
9293 # Some systems put ldexp and frexp in libm instead of libc; assume
9294 # they're both in the same place. jcf-dump needs them.
9295 save_LIBS="$LIBS"
9296 LIBS=
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9298 $as_echo_n "checking for library containing ldexp... " >&6; }
9299 if test "${ac_cv_search_ldexp+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_func_search_save_LIBS=$LIBS
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char ldexp ();
9313 int
9314 main ()
9315 {
9316 return ldexp ();
9317 ;
9318 return 0;
9319 }
9320 _ACEOF
9321 for ac_lib in '' m; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9324 else
9325 ac_res=-l$ac_lib
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9327 fi
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 ac_cv_search_ldexp=$ac_res
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext
9333 if test "${ac_cv_search_ldexp+set}" = set; then :
9334 break
9335 fi
9336 done
9337 if test "${ac_cv_search_ldexp+set}" = set; then :
9338
9339 else
9340 ac_cv_search_ldexp=no
9341 fi
9342 rm conftest.$ac_ext
9343 LIBS=$ac_func_search_save_LIBS
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9346 $as_echo "$ac_cv_search_ldexp" >&6; }
9347 ac_res=$ac_cv_search_ldexp
9348 if test "$ac_res" != no; then :
9349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9350
9351 fi
9352
9353 LDEXP_LIB="$LIBS"
9354 LIBS="$save_LIBS"
9355
9356
9357 # Use <inttypes.h> only if it exists,
9358 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9359 # PRId64
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9361 $as_echo_n "checking for inttypes.h... " >&6; }
9362 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #define __STDC_FORMAT_MACROS
9368 #include <sys/types.h>
9369 #include <inttypes.h>
9370 int
9371 main ()
9372 {
9373 intmax_t i = -1;
9374 #ifndef PRId64
9375 choke me
9376 #endif
9377 ;
9378 return 0;
9379 }
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"; then :
9382 gcc_cv_header_inttypes_h=yes
9383 else
9384 gcc_cv_header_inttypes_h=no
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 fi
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9390 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9391 if test $gcc_cv_header_inttypes_h = yes; then
9392
9393 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9394
9395 fi
9396
9397
9398
9399 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9400 popen sysconf strsignal getrusage nl_langinfo \
9401 gettimeofday mbstowcs wcswidth mmap setlocale \
9402 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
9403 do :
9404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9406 eval as_val=\$$as_ac_var
9407 if test "x$as_val" = x""yes; then :
9408 cat >>confdefs.h <<_ACEOF
9409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9410 _ACEOF
9411
9412 fi
9413 done
9414
9415
9416 if test x$ac_cv_func_mbstowcs = xyes; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9418 $as_echo_n "checking whether mbstowcs works... " >&6; }
9419 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 if test "$cross_compiling" = yes; then :
9423 gcc_cv_func_mbstowcs_works=yes
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <stdlib.h>
9428 int main()
9429 {
9430 mbstowcs(0, "", 0);
9431 return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_run "$LINENO"; then :
9435 gcc_cv_func_mbstowcs_works=yes
9436 else
9437 gcc_cv_func_mbstowcs_works=no
9438 fi
9439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9440 conftest.$ac_objext conftest.beam conftest.$ac_ext
9441 fi
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9445 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9446 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9447
9448 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9449
9450 fi
9451 fi
9452
9453 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9454 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9455
9456 else
9457
9458 cat >>confdefs.h <<_ACEOF
9459 #define ssize_t int
9460 _ACEOF
9461
9462 fi
9463
9464 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9465 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9466
9467 else
9468
9469 cat >>confdefs.h <<_ACEOF
9470 #define caddr_t char *
9471 _ACEOF
9472
9473 fi
9474
9475
9476
9477 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9478 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9479 gcc_header_sys_mman_h=yes
9480 else
9481 gcc_header_sys_mman_h=no
9482 fi
9483
9484 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9485 if test "x$ac_cv_func_mmap" = x""yes; then :
9486 gcc_func_mmap=yes
9487 else
9488 gcc_func_mmap=no
9489 fi
9490
9491 if test "$gcc_header_sys_mman_h" != yes \
9492 || test "$gcc_func_mmap" != yes; then
9493 gcc_cv_func_mmap_file=no
9494 gcc_cv_func_mmap_dev_zero=no
9495 gcc_cv_func_mmap_anon=no
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9498 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9499 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 # Add a system to this blacklist if
9503 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9504 # memory area containing the same data that you'd get if you applied
9505 # read() to the same fd. The only system known to have a problem here
9506 # is VMS, where text files have record structure.
9507 case "$host_os" in
9508 *vms* | ultrix*)
9509 gcc_cv_func_mmap_file=no ;;
9510 *)
9511 gcc_cv_func_mmap_file=yes;;
9512 esac
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9515 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9517 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9518 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 # Add a system to this blacklist if it has mmap() but /dev/zero
9522 # does not exist, or if mmapping /dev/zero does not give anonymous
9523 # zeroed pages with both the following properties:
9524 # 1. If you map N consecutive pages in with one call, and then
9525 # unmap any subset of those pages, the pages that were not
9526 # explicitly unmapped remain accessible.
9527 # 2. If you map two adjacent blocks of memory and then unmap them
9528 # both at once, they must both go away.
9529 # Systems known to be in this category are Windows (all variants),
9530 # VMS, and Darwin.
9531 case "$host_os" in
9532 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9533 gcc_cv_func_mmap_dev_zero=no ;;
9534 *)
9535 gcc_cv_func_mmap_dev_zero=yes;;
9536 esac
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9539 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9540
9541 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9543 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9544 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #include <sys/types.h>
9550 #include <sys/mman.h>
9551 #include <unistd.h>
9552
9553 #ifndef MAP_ANONYMOUS
9554 #define MAP_ANONYMOUS MAP_ANON
9555 #endif
9556
9557 int
9558 main ()
9559 {
9560 int n = MAP_ANONYMOUS;
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_compile "$LINENO"; then :
9566 gcc_cv_decl_map_anon=yes
9567 else
9568 gcc_cv_decl_map_anon=no
9569 fi
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9573 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9574
9575 if test $gcc_cv_decl_map_anon = no; then
9576 gcc_cv_func_mmap_anon=no
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9579 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9580 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9584 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9585 # doesn't give anonymous zeroed pages with the same properties listed
9586 # above for use of /dev/zero.
9587 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9588 case "$host_os" in
9589 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9590 gcc_cv_func_mmap_anon=no ;;
9591 *)
9592 gcc_cv_func_mmap_anon=yes;;
9593 esac
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9596 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9597 fi
9598 fi
9599
9600 if test $gcc_cv_func_mmap_file = yes; then
9601
9602 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9603
9604 fi
9605 if test $gcc_cv_func_mmap_dev_zero = yes; then
9606
9607 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9608
9609 fi
9610 if test $gcc_cv_func_mmap_anon = yes; then
9611
9612 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9613
9614 fi
9615
9616
9617 case "${host}" in
9618 *-*-*vms*)
9619 # Under VMS, vfork works very differently than on Unix. The standard test
9620 # won't work, and it isn't easily adaptable. It makes more sense to
9621 # just force it.
9622 ac_cv_func_vfork_works=yes
9623 ;;
9624 esac
9625 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9626 if test "x$ac_cv_type_pid_t" = x""yes; then :
9627
9628 else
9629
9630 cat >>confdefs.h <<_ACEOF
9631 #define pid_t int
9632 _ACEOF
9633
9634 fi
9635
9636 for ac_header in vfork.h
9637 do :
9638 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9639 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_VFORK_H 1
9642 _ACEOF
9643
9644 fi
9645 done
9646
9647 for ac_func in fork vfork
9648 do :
9649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9651 eval as_val=\$$as_ac_var
9652 if test "x$as_val" = x""yes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655 _ACEOF
9656
9657 fi
9658 done
9659
9660 if test "x$ac_cv_func_fork" = xyes; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9662 $as_echo_n "checking for working fork... " >&6; }
9663 if test "${ac_cv_func_fork_works+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 if test "$cross_compiling" = yes; then :
9667 ac_cv_func_fork_works=cross
9668 else
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 $ac_includes_default
9672 int
9673 main ()
9674 {
9675
9676 /* By Ruediger Kuhlmann. */
9677 return fork () < 0;
9678
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_run "$LINENO"; then :
9684 ac_cv_func_fork_works=yes
9685 else
9686 ac_cv_func_fork_works=no
9687 fi
9688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9689 conftest.$ac_objext conftest.beam conftest.$ac_ext
9690 fi
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9694 $as_echo "$ac_cv_func_fork_works" >&6; }
9695
9696 else
9697 ac_cv_func_fork_works=$ac_cv_func_fork
9698 fi
9699 if test "x$ac_cv_func_fork_works" = xcross; then
9700 case $host in
9701 *-*-amigaos* | *-*-msdosdjgpp*)
9702 # Override, as these systems have only a dummy fork() stub
9703 ac_cv_func_fork_works=no
9704 ;;
9705 *)
9706 ac_cv_func_fork_works=yes
9707 ;;
9708 esac
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9710 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9711 fi
9712 ac_cv_func_vfork_works=$ac_cv_func_vfork
9713 if test "x$ac_cv_func_vfork" = xyes; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9715 $as_echo_n "checking for working vfork... " >&6; }
9716 if test "${ac_cv_func_vfork_works+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test "$cross_compiling" = yes; then :
9720 ac_cv_func_vfork_works=cross
9721 else
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 /* Thanks to Paul Eggert for this test. */
9725 $ac_includes_default
9726 #include <sys/wait.h>
9727 #ifdef HAVE_VFORK_H
9728 # include <vfork.h>
9729 #endif
9730 /* On some sparc systems, changes by the child to local and incoming
9731 argument registers are propagated back to the parent. The compiler
9732 is told about this with #include <vfork.h>, but some compilers
9733 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9734 static variable whose address is put into a register that is
9735 clobbered by the vfork. */
9736 static void
9737 #ifdef __cplusplus
9738 sparc_address_test (int arg)
9739 # else
9740 sparc_address_test (arg) int arg;
9741 #endif
9742 {
9743 static pid_t child;
9744 if (!child) {
9745 child = vfork ();
9746 if (child < 0) {
9747 perror ("vfork");
9748 _exit(2);
9749 }
9750 if (!child) {
9751 arg = getpid();
9752 write(-1, "", 0);
9753 _exit (arg);
9754 }
9755 }
9756 }
9757
9758 int
9759 main ()
9760 {
9761 pid_t parent = getpid ();
9762 pid_t child;
9763
9764 sparc_address_test (0);
9765
9766 child = vfork ();
9767
9768 if (child == 0) {
9769 /* Here is another test for sparc vfork register problems. This
9770 test uses lots of local variables, at least as many local
9771 variables as main has allocated so far including compiler
9772 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9773 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9774 reuse the register of parent for one of the local variables,
9775 since it will think that parent can't possibly be used any more
9776 in this routine. Assigning to the local variable will thus
9777 munge parent in the parent process. */
9778 pid_t
9779 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9780 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9781 /* Convince the compiler that p..p7 are live; otherwise, it might
9782 use the same hardware register for all 8 local variables. */
9783 if (p != p1 || p != p2 || p != p3 || p != p4
9784 || p != p5 || p != p6 || p != p7)
9785 _exit(1);
9786
9787 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9788 from child file descriptors. If the child closes a descriptor
9789 before it execs or exits, this munges the parent's descriptor
9790 as well. Test for this by closing stdout in the child. */
9791 _exit(close(fileno(stdout)) != 0);
9792 } else {
9793 int status;
9794 struct stat st;
9795
9796 while (wait(&status) != child)
9797 ;
9798 return (
9799 /* Was there some problem with vforking? */
9800 child < 0
9801
9802 /* Did the child fail? (This shouldn't happen.) */
9803 || status
9804
9805 /* Did the vfork/compiler bug occur? */
9806 || parent != getpid()
9807
9808 /* Did the file descriptor bug occur? */
9809 || fstat(fileno(stdout), &st) != 0
9810 );
9811 }
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_run "$LINENO"; then :
9815 ac_cv_func_vfork_works=yes
9816 else
9817 ac_cv_func_vfork_works=no
9818 fi
9819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9821 fi
9822
9823 fi
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9825 $as_echo "$ac_cv_func_vfork_works" >&6; }
9826
9827 fi;
9828 if test "x$ac_cv_func_fork_works" = xcross; then
9829 ac_cv_func_vfork_works=$ac_cv_func_vfork
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9831 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9832 fi
9833
9834 if test "x$ac_cv_func_vfork_works" = xyes; then
9835
9836 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9837
9838 else
9839
9840 $as_echo "#define vfork fork" >>confdefs.h
9841
9842 fi
9843 if test "x$ac_cv_func_fork_works" = xyes; then
9844
9845 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9846
9847 fi
9848
9849
9850 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9851 # iconv() prototype.
9852 ac_ext=cpp
9853 ac_cpp='$CXXCPP $CPPFLAGS'
9854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9857
9858
9859 if test "X$prefix" = "XNONE"; then
9860 acl_final_prefix="$ac_default_prefix"
9861 else
9862 acl_final_prefix="$prefix"
9863 fi
9864 if test "X$exec_prefix" = "XNONE"; then
9865 acl_final_exec_prefix='${prefix}'
9866 else
9867 acl_final_exec_prefix="$exec_prefix"
9868 fi
9869 acl_save_prefix="$prefix"
9870 prefix="$acl_final_prefix"
9871 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9872 prefix="$acl_save_prefix"
9873
9874
9875 # Check whether --with-gnu-ld was given.
9876 if test "${with_gnu_ld+set}" = set; then :
9877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9878 else
9879 with_gnu_ld=no
9880 fi
9881
9882 # Prepare PATH_SEPARATOR.
9883 # The user is always right.
9884 if test "${PATH_SEPARATOR+set}" != set; then
9885 echo "#! /bin/sh" >conf$$.sh
9886 echo "exit 0" >>conf$$.sh
9887 chmod +x conf$$.sh
9888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9889 PATH_SEPARATOR=';'
9890 else
9891 PATH_SEPARATOR=:
9892 fi
9893 rm -f conf$$.sh
9894 fi
9895 ac_prog=ld
9896 if test "$GCC" = yes; then
9897 # Check if gcc -print-prog-name=ld gives a path.
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9899 $as_echo_n "checking for ld used by GCC... " >&6; }
9900 case $host in
9901 *-*-mingw*)
9902 # gcc leaves a trailing carriage return which upsets mingw
9903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9904 *)
9905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906 esac
9907 case $ac_prog in
9908 # Accept absolute paths.
9909 [\\/]* | [A-Za-z]:[\\/]*)
9910 re_direlt='/[^/][^/]*/\.\./'
9911 # Canonicalize the path of ld
9912 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9913 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9914 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9915 done
9916 test -z "$LD" && LD="$ac_prog"
9917 ;;
9918 "")
9919 # If it fails, then pretend we aren't using GCC.
9920 ac_prog=ld
9921 ;;
9922 *)
9923 # If it is relative, then search for the first ld in PATH.
9924 with_gnu_ld=unknown
9925 ;;
9926 esac
9927 elif test "$with_gnu_ld" = yes; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9929 $as_echo_n "checking for GNU ld... " >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9932 $as_echo_n "checking for non-GNU ld... " >&6; }
9933 fi
9934 if test "${acl_cv_path_LD+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -z "$LD"; then
9938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9939 for ac_dir in $PATH; do
9940 test -z "$ac_dir" && ac_dir=.
9941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9942 acl_cv_path_LD="$ac_dir/$ac_prog"
9943 # Check to see if the program is GNU ld. I'd rather use --version,
9944 # but apparently some GNU ld's only accept -v.
9945 # Break only if it was the GNU/non-GNU ld that we prefer.
9946 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9947 test "$with_gnu_ld" != no && break
9948 else
9949 test "$with_gnu_ld" != yes && break
9950 fi
9951 fi
9952 done
9953 IFS="$ac_save_ifs"
9954 else
9955 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9956 fi
9957 fi
9958
9959 LD="$acl_cv_path_LD"
9960 if test -n "$LD"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9962 $as_echo "$LD" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9966 fi
9967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9970 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9974 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9975 acl_cv_prog_gnu_ld=yes
9976 else
9977 acl_cv_prog_gnu_ld=no
9978 fi
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9981 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9982 with_gnu_ld=$acl_cv_prog_gnu_ld
9983
9984
9985
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9987 $as_echo_n "checking for shared library run path origin... " >&6; }
9988 if test "${acl_cv_rpath+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991
9992 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9993 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9994 . ./conftest.sh
9995 rm -f ./conftest.sh
9996 acl_cv_rpath=done
9997
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10000 $as_echo "$acl_cv_rpath" >&6; }
10001 wl="$acl_cv_wl"
10002 libext="$acl_cv_libext"
10003 shlibext="$acl_cv_shlibext"
10004 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10005 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10006 hardcode_direct="$acl_cv_hardcode_direct"
10007 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10008 # Check whether --enable-rpath was given.
10009 if test "${enable_rpath+set}" = set; then :
10010 enableval=$enable_rpath; :
10011 else
10012 enable_rpath=yes
10013 fi
10014
10015
10016
10017
10018
10019
10020
10021
10022 use_additional=yes
10023
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10028
10029 eval additional_includedir=\"$includedir\"
10030 eval additional_libdir=\"$libdir\"
10031
10032 exec_prefix="$acl_save_exec_prefix"
10033 prefix="$acl_save_prefix"
10034
10035
10036 # Check whether --with-libiconv-prefix was given.
10037 if test "${with_libiconv_prefix+set}" = set; then :
10038 withval=$with_libiconv_prefix;
10039 if test "X$withval" = "Xno"; then
10040 use_additional=no
10041 else
10042 if test "X$withval" = "X"; then
10043
10044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10048
10049 eval additional_includedir=\"$includedir\"
10050 eval additional_libdir=\"$libdir\"
10051
10052 exec_prefix="$acl_save_exec_prefix"
10053 prefix="$acl_save_prefix"
10054
10055 else
10056 additional_includedir="$withval/include"
10057 additional_libdir="$withval/lib"
10058 fi
10059 fi
10060
10061 fi
10062
10063 LIBICONV=
10064 LTLIBICONV=
10065 INCICONV=
10066 rpathdirs=
10067 ltrpathdirs=
10068 names_already_handled=
10069 names_next_round='iconv '
10070 while test -n "$names_next_round"; do
10071 names_this_round="$names_next_round"
10072 names_next_round=
10073 for name in $names_this_round; do
10074 already_handled=
10075 for n in $names_already_handled; do
10076 if test "$n" = "$name"; then
10077 already_handled=yes
10078 break
10079 fi
10080 done
10081 if test -z "$already_handled"; then
10082 names_already_handled="$names_already_handled $name"
10083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10084 eval value=\"\$HAVE_LIB$uppername\"
10085 if test -n "$value"; then
10086 if test "$value" = yes; then
10087 eval value=\"\$LIB$uppername\"
10088 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10089 eval value=\"\$LTLIB$uppername\"
10090 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10091 else
10092 :
10093 fi
10094 else
10095 found_dir=
10096 found_la=
10097 found_so=
10098 found_a=
10099 if test $use_additional = yes; then
10100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10101 found_dir="$additional_libdir"
10102 found_so="$additional_libdir/lib$name.$shlibext"
10103 if test -f "$additional_libdir/lib$name.la"; then
10104 found_la="$additional_libdir/lib$name.la"
10105 fi
10106 else
10107 if test -f "$additional_libdir/lib$name.$libext"; then
10108 found_dir="$additional_libdir"
10109 found_a="$additional_libdir/lib$name.$libext"
10110 if test -f "$additional_libdir/lib$name.la"; then
10111 found_la="$additional_libdir/lib$name.la"
10112 fi
10113 fi
10114 fi
10115 fi
10116 if test "X$found_dir" = "X"; then
10117 for x in $LDFLAGS $LTLIBICONV; do
10118
10119 acl_save_prefix="$prefix"
10120 prefix="$acl_final_prefix"
10121 acl_save_exec_prefix="$exec_prefix"
10122 exec_prefix="$acl_final_exec_prefix"
10123 eval x=\"$x\"
10124 exec_prefix="$acl_save_exec_prefix"
10125 prefix="$acl_save_prefix"
10126
10127 case "$x" in
10128 -L*)
10129 dir=`echo "X$x" | sed -e 's/^X-L//'`
10130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10131 found_dir="$dir"
10132 found_so="$dir/lib$name.$shlibext"
10133 if test -f "$dir/lib$name.la"; then
10134 found_la="$dir/lib$name.la"
10135 fi
10136 else
10137 if test -f "$dir/lib$name.$libext"; then
10138 found_dir="$dir"
10139 found_a="$dir/lib$name.$libext"
10140 if test -f "$dir/lib$name.la"; then
10141 found_la="$dir/lib$name.la"
10142 fi
10143 fi
10144 fi
10145 ;;
10146 esac
10147 if test "X$found_dir" != "X"; then
10148 break
10149 fi
10150 done
10151 fi
10152 if test "X$found_dir" != "X"; then
10153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10154 if test "X$found_so" != "X"; then
10155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10157 else
10158 haveit=
10159 for x in $ltrpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10161 haveit=yes
10162 break
10163 fi
10164 done
10165 if test -z "$haveit"; then
10166 ltrpathdirs="$ltrpathdirs $found_dir"
10167 fi
10168 if test "$hardcode_direct" = yes; then
10169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10170 else
10171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10173 haveit=
10174 for x in $rpathdirs; do
10175 if test "X$x" = "X$found_dir"; then
10176 haveit=yes
10177 break
10178 fi
10179 done
10180 if test -z "$haveit"; then
10181 rpathdirs="$rpathdirs $found_dir"
10182 fi
10183 else
10184 haveit=
10185 for x in $LDFLAGS $LIBICONV; do
10186
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10191 eval x=\"$x\"
10192 exec_prefix="$acl_save_exec_prefix"
10193 prefix="$acl_save_prefix"
10194
10195 if test "X$x" = "X-L$found_dir"; then
10196 haveit=yes
10197 break
10198 fi
10199 done
10200 if test -z "$haveit"; then
10201 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10202 fi
10203 if test "$hardcode_minus_L" != no; then
10204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10205 else
10206 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10207 fi
10208 fi
10209 fi
10210 fi
10211 else
10212 if test "X$found_a" != "X"; then
10213 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10214 else
10215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10216 fi
10217 fi
10218 additional_includedir=
10219 case "$found_dir" in
10220 */lib | */lib/)
10221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10222 additional_includedir="$basedir/include"
10223 ;;
10224 esac
10225 if test "X$additional_includedir" != "X"; then
10226 if test "X$additional_includedir" != "X/usr/include"; then
10227 haveit=
10228 if test "X$additional_includedir" = "X/usr/local/include"; then
10229 if test -n "$GCC"; then
10230 case $host_os in
10231 linux*) haveit=yes;;
10232 esac
10233 fi
10234 fi
10235 if test -z "$haveit"; then
10236 for x in $CPPFLAGS $INCICONV; do
10237
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 acl_save_exec_prefix="$exec_prefix"
10241 exec_prefix="$acl_final_exec_prefix"
10242 eval x=\"$x\"
10243 exec_prefix="$acl_save_exec_prefix"
10244 prefix="$acl_save_prefix"
10245
10246 if test "X$x" = "X-I$additional_includedir"; then
10247 haveit=yes
10248 break
10249 fi
10250 done
10251 if test -z "$haveit"; then
10252 if test -d "$additional_includedir"; then
10253 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10254 fi
10255 fi
10256 fi
10257 fi
10258 fi
10259 if test -n "$found_la"; then
10260 save_libdir="$libdir"
10261 case "$found_la" in
10262 */* | *\\*) . "$found_la" ;;
10263 *) . "./$found_la" ;;
10264 esac
10265 libdir="$save_libdir"
10266 for dep in $dependency_libs; do
10267 case "$dep" in
10268 -L*)
10269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10270 if test "X$additional_libdir" != "X/usr/lib"; then
10271 haveit=
10272 if test "X$additional_libdir" = "X/usr/local/lib"; then
10273 if test -n "$GCC"; then
10274 case $host_os in
10275 linux*) haveit=yes;;
10276 esac
10277 fi
10278 fi
10279 if test -z "$haveit"; then
10280 haveit=
10281 for x in $LDFLAGS $LIBICONV; do
10282
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287 eval x=\"$x\"
10288 exec_prefix="$acl_save_exec_prefix"
10289 prefix="$acl_save_prefix"
10290
10291 if test "X$x" = "X-L$additional_libdir"; then
10292 haveit=yes
10293 break
10294 fi
10295 done
10296 if test -z "$haveit"; then
10297 if test -d "$additional_libdir"; then
10298 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10299 fi
10300 fi
10301 haveit=
10302 for x in $LDFLAGS $LTLIBICONV; do
10303
10304 acl_save_prefix="$prefix"
10305 prefix="$acl_final_prefix"
10306 acl_save_exec_prefix="$exec_prefix"
10307 exec_prefix="$acl_final_exec_prefix"
10308 eval x=\"$x\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10311
10312 if test "X$x" = "X-L$additional_libdir"; then
10313 haveit=yes
10314 break
10315 fi
10316 done
10317 if test -z "$haveit"; then
10318 if test -d "$additional_libdir"; then
10319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10320 fi
10321 fi
10322 fi
10323 fi
10324 ;;
10325 -R*)
10326 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10327 if test "$enable_rpath" != no; then
10328 haveit=
10329 for x in $rpathdirs; do
10330 if test "X$x" = "X$dir"; then
10331 haveit=yes
10332 break
10333 fi
10334 done
10335 if test -z "$haveit"; then
10336 rpathdirs="$rpathdirs $dir"
10337 fi
10338 haveit=
10339 for x in $ltrpathdirs; do
10340 if test "X$x" = "X$dir"; then
10341 haveit=yes
10342 break
10343 fi
10344 done
10345 if test -z "$haveit"; then
10346 ltrpathdirs="$ltrpathdirs $dir"
10347 fi
10348 fi
10349 ;;
10350 -l*)
10351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10352 ;;
10353 *.la)
10354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10355 ;;
10356 *)
10357 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10359 ;;
10360 esac
10361 done
10362 fi
10363 else
10364 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10365 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10366 fi
10367 fi
10368 fi
10369 done
10370 done
10371 if test "X$rpathdirs" != "X"; then
10372 if test -n "$hardcode_libdir_separator"; then
10373 alldirs=
10374 for found_dir in $rpathdirs; do
10375 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10376 done
10377 acl_save_libdir="$libdir"
10378 libdir="$alldirs"
10379 eval flag=\"$hardcode_libdir_flag_spec\"
10380 libdir="$acl_save_libdir"
10381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10382 else
10383 for found_dir in $rpathdirs; do
10384 acl_save_libdir="$libdir"
10385 libdir="$found_dir"
10386 eval flag=\"$hardcode_libdir_flag_spec\"
10387 libdir="$acl_save_libdir"
10388 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10389 done
10390 fi
10391 fi
10392 if test "X$ltrpathdirs" != "X"; then
10393 for found_dir in $ltrpathdirs; do
10394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10395 done
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404 am_save_CPPFLAGS="$CPPFLAGS"
10405
10406 for element in $INCICONV; do
10407 haveit=
10408 for x in $CPPFLAGS; do
10409
10410 acl_save_prefix="$prefix"
10411 prefix="$acl_final_prefix"
10412 acl_save_exec_prefix="$exec_prefix"
10413 exec_prefix="$acl_final_exec_prefix"
10414 eval x=\"$x\"
10415 exec_prefix="$acl_save_exec_prefix"
10416 prefix="$acl_save_prefix"
10417
10418 if test "X$x" = "X$element"; then
10419 haveit=yes
10420 break
10421 fi
10422 done
10423 if test -z "$haveit"; then
10424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10425 fi
10426 done
10427
10428
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10430 $as_echo_n "checking for iconv... " >&6; }
10431 if test "${am_cv_func_iconv+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434
10435 am_cv_func_iconv="no, consider installing GNU libiconv"
10436 am_cv_lib_iconv=no
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 #include <stdlib.h>
10440 #include <iconv.h>
10441 int
10442 main ()
10443 {
10444 iconv_t cd = iconv_open("","");
10445 iconv(cd,NULL,NULL,NULL,NULL);
10446 iconv_close(cd);
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_cxx_try_link "$LINENO"; then :
10452 am_cv_func_iconv=yes
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 if test "$am_cv_func_iconv" != yes; then
10457 am_save_LIBS="$LIBS"
10458 LIBS="$LIBS $LIBICONV"
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <stdlib.h>
10462 #include <iconv.h>
10463 int
10464 main ()
10465 {
10466 iconv_t cd = iconv_open("","");
10467 iconv(cd,NULL,NULL,NULL,NULL);
10468 iconv_close(cd);
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 if ac_fn_cxx_try_link "$LINENO"; then :
10474 am_cv_lib_iconv=yes
10475 am_cv_func_iconv=yes
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS="$am_save_LIBS"
10480 fi
10481
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10484 $as_echo "$am_cv_func_iconv" >&6; }
10485 if test "$am_cv_func_iconv" = yes; then
10486
10487 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10488
10489 fi
10490 if test "$am_cv_lib_iconv" = yes; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10492 $as_echo_n "checking how to link with libiconv... " >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10494 $as_echo "$LIBICONV" >&6; }
10495 else
10496 CPPFLAGS="$am_save_CPPFLAGS"
10497 LIBICONV=
10498 LTLIBICONV=
10499 fi
10500
10501
10502
10503 if test "$am_cv_func_iconv" = yes; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10505 $as_echo_n "checking for iconv declaration... " >&6; }
10506 if test "${am_cv_proto_iconv+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512
10513 #include <stdlib.h>
10514 #include <iconv.h>
10515 extern
10516 #ifdef __cplusplus
10517 "C"
10518 #endif
10519 #if defined(__STDC__) || defined(__cplusplus)
10520 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10521 #else
10522 size_t iconv();
10523 #endif
10524
10525 int
10526 main ()
10527 {
10528
10529 ;
10530 return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_cxx_try_compile "$LINENO"; then :
10534 am_cv_proto_iconv_arg1=""
10535 else
10536 am_cv_proto_iconv_arg1="const"
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 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);"
10540 fi
10541
10542 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10544 }$am_cv_proto_iconv" >&5
10545 $as_echo "${ac_t:-
10546 }$am_cv_proto_iconv" >&6; }
10547
10548 cat >>confdefs.h <<_ACEOF
10549 #define ICONV_CONST $am_cv_proto_iconv_arg1
10550 _ACEOF
10551
10552 fi
10553
10554 ac_ext=c
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561 # Until we have in-tree GNU iconv:
10562 LIBICONV_DEP=
10563
10564
10565
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10567 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10568 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 #include <locale.h>
10574 int
10575 main ()
10576 {
10577 return LC_MESSAGES
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 am_cv_val_LC_MESSAGES=yes
10584 else
10585 am_cv_val_LC_MESSAGES=no
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10591 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10592 if test $am_cv_val_LC_MESSAGES = yes; then
10593
10594 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10595
10596 fi
10597
10598
10599
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10601 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10602 if test "${am_cv_langinfo_codeset+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 #include <langinfo.h>
10608 int
10609 main ()
10610 {
10611 char* cs = nl_langinfo(CODESET);
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 am_cv_langinfo_codeset=yes
10618 else
10619 am_cv_langinfo_codeset=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623
10624 fi
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10626 $as_echo "$am_cv_langinfo_codeset" >&6; }
10627 if test $am_cv_langinfo_codeset = yes; then
10628
10629 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10630
10631 fi
10632
10633
10634 # We will need to find libiberty.h and ansidecl.h
10635 saved_CFLAGS="$CFLAGS"
10636 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10637 saved_CXXFLAGS="$CXXFLAGS"
10638 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10639 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10640 stpcpy strnlen strsignal strstr strverscmp \
10641 strtol strtoul strtoll strtoull \
10642 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10643 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10644 do
10645 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10647 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10648 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 #undef $ac_tr_decl
10654 #define $ac_tr_decl 1
10655
10656 #include "ansidecl.h"
10657 #include "system.h"
10658
10659 int
10660 main ()
10661 {
10662 #ifndef $ac_func
10663 char *(*pfn) = (char *(*)) $ac_func ;
10664 #endif
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"; then :
10670 eval "gcc_cv_have_decl_$ac_func=yes"
10671 else
10672 eval "gcc_cv_have_decl_$ac_func=no"
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 fi
10676
10677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 1
10681 _ACEOF
10682
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 0
10687 _ACEOF
10688
10689 fi
10690
10691 done
10692
10693
10694 for ac_func in getrlimit setrlimit getrusage
10695 do
10696 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10698 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10699 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #undef $ac_tr_decl
10705 #define $ac_tr_decl 1
10706
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_RESOURCE_H
10710 #include <sys/resource.h>
10711 #endif
10712
10713
10714 int
10715 main ()
10716 {
10717 #ifndef $ac_func
10718 char *(*pfn) = (char *(*)) $ac_func ;
10719 #endif
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725 eval "gcc_cv_have_decl_$ac_func=yes"
10726 else
10727 eval "gcc_cv_have_decl_$ac_func=no"
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731
10732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10735 #define $ac_tr_decl 1
10736 _ACEOF
10737
10738 else
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10741 #define $ac_tr_decl 0
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751
10752 #include "ansidecl.h"
10753 #include "system.h"
10754 #ifdef HAVE_SYS_RESOURCE_H
10755 #include <sys/resource.h>
10756 #endif
10757
10758 int
10759 main ()
10760 {
10761 rlim_t l = 0;
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767
10768 else
10769
10770 $as_echo "#define rlim_t long" >>confdefs.h
10771
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774
10775 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10776 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10777 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10778 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10779 for ac_func in ldgetname
10780 do
10781 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10783 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10784 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #undef $ac_tr_decl
10790 #define $ac_tr_decl 1
10791
10792 #include "ansidecl.h"
10793 #include "system.h"
10794 #ifdef HAVE_LDFCN_H
10795 #undef FREAD
10796 #undef FWRITE
10797 #include <ldfcn.h>
10798 #endif
10799
10800
10801 int
10802 main ()
10803 {
10804 #ifndef $ac_func
10805 char *(*pfn) = (char *(*)) $ac_func ;
10806 #endif
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10813 else
10814 eval "gcc_cv_have_decl_$ac_func=no"
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10822 #define $ac_tr_decl 1
10823 _ACEOF
10824
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 0
10829 _ACEOF
10830
10831 fi
10832
10833 done
10834
10835
10836 for ac_func in times
10837 do
10838 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10840 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10841 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 #undef $ac_tr_decl
10847 #define $ac_tr_decl 1
10848
10849 #include "ansidecl.h"
10850 #include "system.h"
10851 #ifdef HAVE_SYS_TIMES_H
10852 #include <sys/times.h>
10853 #endif
10854
10855
10856 int
10857 main ()
10858 {
10859 #ifndef $ac_func
10860 char *(*pfn) = (char *(*)) $ac_func ;
10861 #endif
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 if ac_fn_c_try_compile "$LINENO"; then :
10867 eval "gcc_cv_have_decl_$ac_func=yes"
10868 else
10869 eval "gcc_cv_have_decl_$ac_func=no"
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 fi
10873
10874 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10876 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10877 #define $ac_tr_decl 1
10878 _ACEOF
10879
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 0
10884 _ACEOF
10885
10886 fi
10887
10888 done
10889
10890
10891 for ac_func in sigaltstack
10892 do
10893 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10895 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10896 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 #undef $ac_tr_decl
10902 #define $ac_tr_decl 1
10903
10904 #include "ansidecl.h"
10905 #include "system.h"
10906 #include <signal.h>
10907
10908
10909 int
10910 main ()
10911 {
10912 #ifndef $ac_func
10913 char *(*pfn) = (char *(*)) $ac_func ;
10914 #endif
10915 ;
10916 return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_compile "$LINENO"; then :
10920 eval "gcc_cv_have_decl_$ac_func=yes"
10921 else
10922 eval "gcc_cv_have_decl_$ac_func=no"
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 fi
10926
10927 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10929 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10930 #define $ac_tr_decl 1
10931 _ACEOF
10932
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10936 #define $ac_tr_decl 0
10937 _ACEOF
10938
10939 fi
10940
10941 done
10942
10943
10944 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10945 # prototype.
10946 ac_ext=cpp
10947 ac_cpp='$CXXCPP $CPPFLAGS'
10948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10951
10952 for ac_func in madvise
10953 do
10954 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10957 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #undef $ac_tr_decl
10963 #define $ac_tr_decl 1
10964
10965 #include "ansidecl.h"
10966 #include "system.h"
10967
10968
10969 int
10970 main ()
10971 {
10972 #ifndef $ac_func
10973 char *(*pfn) = (char *(*)) $ac_func ;
10974 #endif
10975 ;
10976 return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_cxx_try_compile "$LINENO"; then :
10980 eval "gcc_cv_have_decl_$ac_func=yes"
10981 else
10982 eval "gcc_cv_have_decl_$ac_func=no"
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 fi
10986
10987 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10990 #define $ac_tr_decl 1
10991 _ACEOF
10992
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10996 #define $ac_tr_decl 0
10997 _ACEOF
10998
10999 fi
11000
11001 done
11002
11003 ac_ext=c
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
11009
11010 # More time-related stuff.
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11012 $as_echo_n "checking for struct tms... " >&6; }
11013 if test "${ac_cv_struct_tms+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 #include "ansidecl.h"
11021 #include "system.h"
11022 #ifdef HAVE_SYS_TIMES_H
11023 #include <sys/times.h>
11024 #endif
11025
11026 int
11027 main ()
11028 {
11029 struct tms tms;
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_compile "$LINENO"; then :
11035 ac_cv_struct_tms=yes
11036 else
11037 ac_cv_struct_tms=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11042 $as_echo "$ac_cv_struct_tms" >&6; }
11043 if test $ac_cv_struct_tms = yes; then
11044
11045 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11046
11047 fi
11048
11049 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11050 # revisit after autoconf 2.50.
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11052 $as_echo_n "checking for clock_t... " >&6; }
11053 if test "${gcc_cv_type_clock_t+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059
11060 #include "ansidecl.h"
11061 #include "system.h"
11062
11063 int
11064 main ()
11065 {
11066 clock_t x;
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_compile "$LINENO"; then :
11072 gcc_cv_type_clock_t=yes
11073 else
11074 gcc_cv_type_clock_t=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11079 $as_echo "$gcc_cv_type_clock_t" >&6; }
11080 if test $gcc_cv_type_clock_t = yes; then
11081
11082 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11083
11084 fi
11085
11086 # Check if F_SETLKW is supported by fcntl.
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11088 $as_echo_n "checking for F_SETLKW... " >&6; }
11089 if test "${ac_cv_f_setlkw+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095
11096 #include <fcntl.h>
11097 int
11098 main ()
11099 {
11100
11101 struct flock fl;
11102 fl.l_whence = 0;
11103 fl.l_start = 0;
11104 fl.l_len = 0;
11105 fl.l_pid = 0;
11106 return fcntl (1, F_SETLKW, &fl);
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_compile "$LINENO"; then :
11112 ac_cv_f_setlkw=yes
11113 else
11114 ac_cv_f_setlkw=no
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11119 $as_echo "$ac_cv_f_setlkw" >&6; }
11120 if test $ac_cv_f_setlkw = yes; then
11121
11122 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11123
11124 fi
11125
11126 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11127 CFLAGS="$saved_CFLAGS"
11128 CXXFLAGS="$saved_CXXFLAGS"
11129
11130 # mkdir takes a single argument on some systems.
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11132 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11133 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138
11139 #include <sys/types.h>
11140 #ifdef HAVE_SYS_STAT_H
11141 # include <sys/stat.h>
11142 #endif
11143 #ifdef HAVE_UNISTD_H
11144 # include <unistd.h>
11145 #endif
11146 #ifdef HAVE_DIRECT_H
11147 # include <direct.h>
11148 #endif
11149 int
11150 main ()
11151 {
11152 mkdir ("foo", 0);
11153 ;
11154 return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158 gcc_cv_mkdir_takes_one_arg=no
11159 else
11160 gcc_cv_mkdir_takes_one_arg=yes
11161 fi
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11165 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11166 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11167
11168 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11169
11170 fi
11171
11172
11173 # File extensions
11174 manext='.1'
11175 objext='.o'
11176
11177
11178
11179 # With Setjmp/Longjmp based exception handling.
11180 # Check whether --enable-sjlj-exceptions was given.
11181 if test "${enable_sjlj_exceptions+set}" = set; then :
11182 enableval=$enable_sjlj_exceptions; case $target in
11183 *-*-hpux10*)
11184 if test $enableval != yes; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11186 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11187 enableval=yes
11188 fi
11189 ;;
11190 esac
11191 force_sjlj_exceptions=yes
11192 else
11193 case $target in
11194 *-*-hpux10*)
11195 force_sjlj_exceptions=yes
11196 enableval=yes
11197 ;;
11198 lm32*-*-*)
11199 force_sjlj_exceptions=yes
11200 enableval=yes
11201 ;;
11202 *)
11203 force_sjlj_exceptions=no
11204 ;;
11205 esac
11206 fi
11207
11208 if test $force_sjlj_exceptions = yes; then
11209 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11210
11211 cat >>confdefs.h <<_ACEOF
11212 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11213 _ACEOF
11214
11215 fi
11216
11217 # --------------------------------------------------------
11218 # Build, host, and target specific configuration fragments
11219 # --------------------------------------------------------
11220
11221 # Collect build-machine-specific information.
11222 . ${srcdir}/config.build
11223
11224 # Collect host-machine-specific information.
11225 . ${srcdir}/config.host
11226
11227 target_gtfiles=
11228
11229 # Collect target-machine-specific information.
11230 . ${srcdir}/config.gcc
11231
11232 extra_objs="${host_extra_objs} ${extra_objs}"
11233 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11234
11235 # Default the target-machine variables that were not explicitly set.
11236 if test x"$tm_file" = x
11237 then tm_file=$cpu_type/$cpu_type.h; fi
11238
11239 if test x"$extra_headers" = x
11240 then extra_headers=; fi
11241
11242 if test x$md_file = x
11243 then md_file=$cpu_type/$cpu_type.md; fi
11244
11245 if test x$out_file = x
11246 then out_file=$cpu_type/$cpu_type.c; fi
11247
11248 if test x"$tmake_file" = x
11249 then tmake_file=$cpu_type/t-$cpu_type
11250 fi
11251
11252 # Support --enable-initfini-array.
11253 if test x$enable_initfini_array != xno; then
11254 tm_file="${tm_file} initfini-array.h"
11255 fi
11256
11257 if test x"$dwarf2" = xyes
11258 then tm_file="$tm_file tm-dwarf2.h"
11259 fi
11260
11261 # Say what files are being used for the output code and MD file.
11262 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11263 echo "Using \`$srcdir/config/$md_file' as machine description file."
11264
11265 # If any of the xm_file variables contain nonexistent files, warn
11266 # about them and drop them.
11267
11268 bx=
11269 for x in $build_xm_file; do
11270 if test -f $srcdir/config/$x
11271 then bx="$bx $x"
11272 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11273 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11274 fi
11275 done
11276 build_xm_file="$bx"
11277
11278 hx=
11279 for x in $host_xm_file; do
11280 if test -f $srcdir/config/$x
11281 then hx="$hx $x"
11282 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11283 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11284 fi
11285 done
11286 host_xm_file="$hx"
11287
11288 tx=
11289 for x in $xm_file; do
11290 if test -f $srcdir/config/$x
11291 then tx="$tx $x"
11292 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11293 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11294 fi
11295 done
11296 xm_file="$tx"
11297
11298 count=a
11299 for f in $tm_file; do
11300 count=${count}x
11301 done
11302 if test $count = ax; then
11303 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11304 else
11305 echo "Using the following target machine macro files:"
11306 for f in $tm_file; do
11307 echo " $srcdir/config/$f"
11308 done
11309 fi
11310
11311 if test x$use_long_long_for_widest_fast_int = xyes; then
11312
11313 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11314
11315 fi
11316
11317 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11318
11319 cat >>confdefs.h <<_ACEOF
11320 #define HAVE_GNU_LD $gnu_ld_bool
11321 _ACEOF
11322
11323
11324 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11325
11326 cat >>confdefs.h <<_ACEOF
11327 #define HAVE_GNU_AS $gnu_as_bool
11328 _ACEOF
11329
11330
11331 count=a
11332 for f in $host_xm_file; do
11333 count=${count}x
11334 done
11335 if test $count = a; then
11336 :
11337 elif test $count = ax; then
11338 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11339 else
11340 echo "Using the following host machine macro files:"
11341 for f in $host_xm_file; do
11342 echo " $srcdir/config/$f"
11343 done
11344 fi
11345 echo "Using ${out_host_hook_obj} for host machine hooks."
11346
11347 if test "$host_xm_file" != "$build_xm_file"; then
11348 count=a
11349 for f in $build_xm_file; do
11350 count=${count}x
11351 done
11352 if test $count = a; then
11353 :
11354 elif test $count = ax; then
11355 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11356 else
11357 echo "Using the following build machine macro files:"
11358 for f in $build_xm_file; do
11359 echo " $srcdir/config/$f"
11360 done
11361 fi
11362 fi
11363
11364 if test -n "$configured_native_system_header_dir"; then
11365 native_system_header_dir=$configured_native_system_header_dir
11366 fi
11367 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11368
11369
11370 case ${host} in
11371 powerpc*-*-darwin*)
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11373 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11374 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379
11380 #include <sys/cdefs.h>
11381 #include <sys/signal.h>
11382 #include <ucontext.h>
11383 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11384
11385 _ACEOF
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387 gcc_cv_mcontext_underscores=no
11388 else
11389 gcc_cv_mcontext_underscores=yes
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11394 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11395 if test $gcc_cv_mcontext_underscores = yes; then
11396
11397 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11398
11399 fi
11400 ;;
11401 esac
11402
11403 # ---------
11404 # Threading
11405 # ---------
11406
11407 # Check if a valid thread package
11408 case ${enable_threads} in
11409 "" | no)
11410 # No threads
11411 target_thread_file='single'
11412 ;;
11413 yes)
11414 # default
11415 target_thread_file='single'
11416 ;;
11417 aix | dce | lynx | mipssde | posix | rtems | \
11418 single | tpf | vxworks | win32)
11419 target_thread_file=${enable_threads}
11420 ;;
11421 *)
11422 echo "${enable_threads} is an unknown thread package" 1>&2
11423 exit 1
11424 ;;
11425 esac
11426
11427 if test x${thread_file} = x; then
11428 # No thread file set by target-specific clauses in config.gcc,
11429 # so use file chosen by default logic above
11430 thread_file=${target_thread_file}
11431 fi
11432
11433 # --------
11434 # UNSORTED
11435 # --------
11436
11437 use_cxa_atexit=no
11438 if test x$enable___cxa_atexit = xyes || \
11439 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11440 if test x$host = x$target; then
11441 case $host in
11442 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11443 # keyed to flag_use_cxa_atexit
11444 *-*-mingw32*)
11445 use_cxa_atexit=yes
11446 ;;
11447 powerpc-ibm-aix*)
11448 use_cxa_atexit=yes
11449 ;;
11450 *)
11451 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11452 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11453 use_cxa_atexit=yes
11454 else
11455 echo "__cxa_atexit can't be enabled on this target"
11456 fi
11457
11458 ;;
11459 esac
11460 else
11461 # We can't check for __cxa_atexit when building a cross, so assume
11462 # it is available
11463 use_cxa_atexit=yes
11464 fi
11465 if test x$use_cxa_atexit = xyes; then
11466
11467 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11468
11469 fi
11470 fi
11471
11472 # Look for a file containing extra machine modes.
11473 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11474 extra_modes_file='$(srcdir)'/config/${extra_modes}
11475
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define EXTRA_MODES_FILE "config/$extra_modes"
11479 _ACEOF
11480
11481 fi
11482
11483 # Convert extra_options into a form suitable for Makefile use.
11484 extra_opt_files=
11485 all_opt_files=
11486 for f in $extra_options; do
11487 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11488 all_opt_files="$all_opt_files $srcdir/config/$f"
11489 done
11490
11491
11492 # auto-host.h is the file containing items generated by autoconf and is
11493 # the first file included by config.h.
11494 # If host=build, it is correct to have bconfig include auto-host.h
11495 # as well. If host!=build, we are in error and need to do more
11496 # work to find out the build config parameters.
11497 if test x$host = x$build
11498 then
11499 build_auto=auto-host.h
11500 else
11501 # We create a subdir, then run autoconf in the subdir.
11502 # To prevent recursion we set host and build for the new
11503 # invocation of configure to the build for this invocation
11504 # of configure.
11505 tempdir=build.$$
11506 rm -rf $tempdir
11507 mkdir $tempdir
11508 cd $tempdir
11509 case ${srcdir} in
11510 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11511 *) realsrcdir=../${srcdir};;
11512 esac
11513 # Clearing GMPINC is necessary to prevent host headers being
11514 # used by the build compiler. Defining GENERATOR_FILE stops
11515 # system.h from including gmp.h.
11516 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11517 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11518 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11519 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11520 ${realsrcdir}/configure \
11521 --enable-languages=${enable_languages-all} \
11522 --target=$target_alias --host=$build_alias --build=$build_alias
11523
11524 # We just finished tests for the build machine, so rename
11525 # the file auto-build.h in the gcc directory.
11526 mv auto-host.h ../auto-build.h
11527 cd ..
11528 rm -rf $tempdir
11529 build_auto=auto-build.h
11530 fi
11531
11532
11533 tm_file="${tm_file} defaults.h"
11534 tm_p_file="${tm_p_file} tm-preds.h"
11535 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11536 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11537 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11538 # put this back in temporarily.
11539 xm_file="auto-host.h ansidecl.h ${xm_file}"
11540
11541 # --------
11542 # UNSORTED
11543 # --------
11544
11545 # Compile in configure arguments.
11546 if test -f configargs.h ; then
11547 # Being re-configured.
11548 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11549 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11550 else
11551 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11552 fi
11553
11554 # Double all backslashes and backslash all quotes to turn
11555 # gcc_config_arguments into a C string.
11556 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11557 $gcc_config_arguments
11558 EOF
11559 gcc_config_arguments_str=`cat conftest.out`
11560 rm -f conftest.out
11561
11562 cat > configargs.h <<EOF
11563 /* Generated automatically. */
11564 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11565 static const char thread_model[] = "$thread_file";
11566
11567 static const struct {
11568 const char *name, *value;
11569 } configure_default_options[] = $configure_default_options;
11570 EOF
11571
11572 gcc_BASEVER=`cat $srcdir/BASE-VER`
11573 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11574 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11575 if test -f $srcdir/REVISION ; then
11576 gcc_REVISION=`cat $srcdir/REVISION`
11577 else
11578 gcc_REVISION=""
11579 fi
11580 cat > plugin-version.h <<EOF
11581 #include "configargs.h"
11582
11583 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11584 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11585 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11586 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11587
11588 static char basever[] = "$gcc_BASEVER";
11589 static char datestamp[] = "$gcc_DATESTAMP";
11590 static char devphase[] = "$gcc_DEVPHASE";
11591 static char revision[] = "$gcc_REVISION";
11592
11593 /* FIXME plugins: We should make the version information more precise.
11594 One way to do is to add a checksum. */
11595
11596 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11597 devphase, revision,
11598 configuration_arguments};
11599 EOF
11600
11601 # Internationalization
11602 # If we haven't got the data from the intl directory,
11603 # assume NLS is disabled.
11604 USE_NLS=no
11605 LIBINTL=
11606 LIBINTL_DEP=
11607 INCINTL=
11608 XGETTEXT=
11609 GMSGFMT=
11610 POSUB=
11611
11612 if test -f ../intl/config.intl; then
11613 . ../intl/config.intl
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11616 $as_echo_n "checking whether NLS is requested... " >&6; }
11617 if test x"$USE_NLS" != xyes; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622 $as_echo "yes" >&6; }
11623
11624 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11625
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11628 $as_echo_n "checking for catalogs to be installed... " >&6; }
11629 # Look for .po and .gmo files in the source directory.
11630 CATALOGS=
11631 XLINGUAS=
11632 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11633 # If there aren't any .gmo files the shell will give us the
11634 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11635 # weeded out.
11636 case "$cat" in *\**)
11637 continue;;
11638 esac
11639 # The quadruple backslash is collapsed to a double backslash
11640 # by the backticks, then collapsed again by the double quotes,
11641 # leaving us with one backslash in the sed expression (right
11642 # before the dot that mustn't act as a wildcard).
11643 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11644 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11645 # The user is allowed to set LINGUAS to a list of languages to
11646 # install catalogs for. If it's empty that means "all of them."
11647 if test "x$LINGUAS" = x; then
11648 CATALOGS="$CATALOGS $cat"
11649 XLINGUAS="$XLINGUAS $lang"
11650 else
11651 case "$LINGUAS" in *$lang*)
11652 CATALOGS="$CATALOGS $cat"
11653 XLINGUAS="$XLINGUAS $lang"
11654 ;;
11655 esac
11656 fi
11657 done
11658 LINGUAS="$XLINGUAS"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11660 $as_echo "$LINGUAS" >&6; }
11661
11662
11663 DATADIRNAME=share
11664
11665 INSTOBJEXT=.mo
11666
11667 GENCAT=gencat
11668
11669 CATOBJEXT=.gmo
11670
11671 fi
11672
11673 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11674 # -liconv on the link line twice.
11675 case "$LIBINTL" in *$LIBICONV*)
11676 LIBICONV= ;;
11677 esac
11678
11679 # Check whether --enable-secureplt was given.
11680 if test "${enable_secureplt+set}" = set; then :
11681 enableval=$enable_secureplt;
11682 fi
11683
11684
11685 # Check whether --enable-leading-mingw64-underscores was given.
11686 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11687 enableval=$enable_leading_mingw64_underscores;
11688 fi
11689
11690 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11691
11692 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11693
11694 fi
11695
11696 # Check whether --enable-cld was given.
11697 if test "${enable_cld+set}" = set; then :
11698 enableval=$enable_cld;
11699 else
11700 enable_cld=no
11701 fi
11702
11703
11704 # Check whether --enable-frame-pointer was given.
11705 if test "${enable_frame_pointer+set}" = set; then :
11706 enableval=$enable_frame_pointer;
11707 else
11708
11709 case $target_os in
11710 linux* | darwin[8912]*)
11711 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11712 # DWARF2.
11713 enable_frame_pointer=no
11714 ;;
11715 *)
11716 enable_frame_pointer=yes
11717 ;;
11718 esac
11719
11720 fi
11721
11722
11723 # Windows32 Registry support for specifying GCC installation paths.
11724 # Check whether --enable-win32-registry was given.
11725 if test "${enable_win32_registry+set}" = set; then :
11726 enableval=$enable_win32_registry;
11727 fi
11728
11729
11730 case $host_os in
11731 win32 | pe | cygwin* | mingw32* | uwin*)
11732 if test "x$enable_win32_registry" != xno; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11734 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11735 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_func_search_save_LIBS=$LIBS
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char RegOpenKeyExA ();
11749 int
11750 main ()
11751 {
11752 return RegOpenKeyExA ();
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 for ac_lib in '' advapi32; do
11758 if test -z "$ac_lib"; then
11759 ac_res="none required"
11760 else
11761 ac_res=-l$ac_lib
11762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11763 fi
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_search_RegOpenKeyExA=$ac_res
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext
11769 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11770 break
11771 fi
11772 done
11773 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11774
11775 else
11776 ac_cv_search_RegOpenKeyExA=no
11777 fi
11778 rm conftest.$ac_ext
11779 LIBS=$ac_func_search_save_LIBS
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11782 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11783 ac_res=$ac_cv_search_RegOpenKeyExA
11784 if test "$ac_res" != no; then :
11785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11786
11787 else
11788 enable_win32_registry=no
11789 fi
11790
11791 fi
11792
11793 if test "x$enable_win32_registry" != xno; then
11794
11795 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11796
11797
11798 if test "x$enable_win32_registry" != xyes \
11799 && test "x$enable_win32_registry" != x; then
11800
11801 cat >>confdefs.h <<_ACEOF
11802 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11803 _ACEOF
11804
11805 fi
11806 fi
11807 ;;
11808 esac
11809
11810 # Get an absolute path to the GCC top-level source directory
11811 holddir=`${PWDCMD-pwd}`
11812 cd $srcdir
11813 topdir=`${PWDCMD-pwd}`
11814 cd $holddir
11815
11816 # Conditionalize the makefile for this host machine.
11817 xmake_file=
11818 for f in ${host_xmake_file}
11819 do
11820 if test -f ${srcdir}/config/$f
11821 then
11822 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11823 fi
11824 done
11825
11826 # Conditionalize the makefile for this target machine.
11827 tmake_file_=
11828 for f in ${tmake_file}
11829 do
11830 if test -f ${srcdir}/config/$f
11831 then
11832 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11833 fi
11834 done
11835 tmake_file="${tmake_file_}"
11836
11837 out_object_file=`basename $out_file .c`.o
11838 common_out_object_file=`basename $common_out_file .c`.o
11839
11840 tm_file_list="options.h"
11841 tm_include_list="options.h insn-constants.h"
11842 for f in $tm_file; do
11843 case $f in
11844 ./* )
11845 f=`echo $f | sed 's/^..//'`
11846 tm_file_list="${tm_file_list} $f"
11847 tm_include_list="${tm_include_list} $f"
11848 ;;
11849 defaults.h )
11850 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11851 tm_include_list="${tm_include_list} $f"
11852 ;;
11853 * )
11854 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11855 tm_include_list="${tm_include_list} config/$f"
11856 ;;
11857 esac
11858 done
11859
11860 tm_p_file_list=
11861 tm_p_include_list=
11862 for f in $tm_p_file; do
11863 case $f in
11864 tm-preds.h )
11865 tm_p_file_list="${tm_p_file_list} $f"
11866 tm_p_include_list="${tm_p_include_list} $f"
11867 ;;
11868 * )
11869 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11870 tm_p_include_list="${tm_p_include_list} config/$f"
11871 esac
11872 done
11873
11874 xm_file_list=
11875 xm_include_list=
11876 for f in $xm_file; do
11877 case $f in
11878 ansidecl.h )
11879 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11880 xm_include_list="${xm_include_list} $f"
11881 ;;
11882 auto-host.h )
11883 xm_file_list="${xm_file_list} $f"
11884 xm_include_list="${xm_include_list} $f"
11885 ;;
11886 * )
11887 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11888 xm_include_list="${xm_include_list} config/$f"
11889 ;;
11890 esac
11891 done
11892
11893 host_xm_file_list=
11894 host_xm_include_list=
11895 for f in $host_xm_file; do
11896 case $f in
11897 ansidecl.h )
11898 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11899 host_xm_include_list="${host_xm_include_list} $f"
11900 ;;
11901 auto-host.h )
11902 host_xm_file_list="${host_xm_file_list} $f"
11903 host_xm_include_list="${host_xm_include_list} $f"
11904 ;;
11905 * )
11906 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11907 host_xm_include_list="${host_xm_include_list} config/$f"
11908 ;;
11909 esac
11910 done
11911
11912 build_xm_file_list=
11913 for f in $build_xm_file; do
11914 case $f in
11915 ansidecl.h )
11916 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11917 build_xm_include_list="${build_xm_include_list} $f"
11918 ;;
11919 auto-build.h | auto-host.h )
11920 build_xm_file_list="${build_xm_file_list} $f"
11921 build_xm_include_list="${build_xm_include_list} $f"
11922 ;;
11923 * )
11924 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11925 build_xm_include_list="${build_xm_include_list} config/$f"
11926 ;;
11927 esac
11928 done
11929
11930 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11931 # cross-compiler which does not use the native headers and libraries.
11932 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11933 CROSS=
11934 ALL=all.internal
11935 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11936
11937 if test "x$with_build_sysroot" != x; then
11938 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11939 else
11940 # This value is used, even on a native system, because
11941 # CROSS_SYSTEM_HEADER_DIR is just
11942 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11943 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11944 fi
11945
11946 if test x$host != x$target
11947 then
11948 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11949 ALL=all.cross
11950 SYSTEM_HEADER_DIR=$build_system_header_dir
11951 case "$host","$target" in
11952 # Darwin crosses can use the host system's libraries and headers,
11953 # because of the fat library support. Of course, it must be the
11954 # same version of Darwin on both sides. Allow the user to
11955 # just say --target=foo-darwin without a version number to mean
11956 # "the version on this system".
11957 *-*-darwin*,*-*-darwin*)
11958 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11959 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11960 if test $hostos = $targetos -o $targetos = darwin ; then
11961 CROSS=
11962 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11963 with_headers=yes
11964 fi
11965 ;;
11966
11967 i?86-*-*,x86_64-*-* \
11968 | powerpc*-*-*,powerpc64*-*-*)
11969 CROSS="$CROSS -DNATIVE_CROSS" ;;
11970 esac
11971
11972 case $target in
11973 *-*-mingw*)
11974 if test "x$with_headers" = x; then
11975 with_headers=yes
11976 fi
11977 ;;
11978 *)
11979 ;;
11980 esac
11981 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11982 SYSTEM_HEADER_DIR=$build_system_header_dir
11983 fi
11984
11985 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11986 if test "x$with_headers" != x; then
11987 target_header_dir=$with_headers
11988 elif test "x$with_sysroot" = x; then
11989 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11990 elif test "x$with_build_sysroot" != "x"; then
11991 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11992 elif test "x$with_sysroot" = xyes; then
11993 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11994 else
11995 target_header_dir="${with_sysroot}${native_system_header_dir}"
11996 fi
11997 else
11998 target_header_dir=${native_system_header_dir}
11999 fi
12000
12001 # If this is a cross-compiler that does not
12002 # have its own set of headers then define
12003 # inhibit_libc
12004
12005 # If this is using newlib, without having the headers available now,
12006 # then define inhibit_libc in LIBGCC2_CFLAGS.
12007 # This prevents libgcc2 from containing any code which requires libc
12008 # support.
12009 : ${inhibit_libc=false}
12010 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12011 test x$with_newlib = xyes ; } &&
12012 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12013 inhibit_libc=true
12014 fi
12015
12016
12017 # When building gcc with a cross-compiler, we need to adjust things so
12018 # that the generator programs are still built with the native compiler.
12019 # Also, we cannot run fixincludes.
12020
12021 # These are the normal (build=host) settings:
12022 CC_FOR_BUILD='$(CC)'
12023 CXX_FOR_BUILD='$(CXX)'
12024 BUILD_CFLAGS='$(ALL_CFLAGS)'
12025 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12026 BUILD_LDFLAGS='$(LDFLAGS)'
12027 STMP_FIXINC=stmp-fixinc
12028
12029 # And these apply if build != host, or we are generating coverage data
12030 if test x$build != x$host || test "x$coverage_flags" != x
12031 then
12032 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12033 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12034 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12035 fi
12036
12037 # Expand extra_headers to include complete path.
12038 # This substitutes for lots of t-* files.
12039 extra_headers_list=
12040 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12041 for file in ${extra_headers} ; do
12042 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12043 done
12044
12045 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12046 if test x"$use_gcc_tgmath" = xyes
12047 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12048 fi
12049
12050 # Define collect2 in Makefile.
12051 case $host_can_use_collect2 in
12052 no) collect2= ;;
12053 *) collect2='collect2$(exeext)' ;;
12054 esac
12055
12056
12057 # Add a definition of USE_COLLECT2 if system wants one.
12058 case $use_collect2 in
12059 no) use_collect2= ;;
12060 "") ;;
12061 *)
12062 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12063 xm_defines="${xm_defines} USE_COLLECT2"
12064 case $host_can_use_collect2 in
12065 no)
12066 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12067 ;;
12068 esac
12069 ;;
12070 esac
12071
12072
12073 cat >>confdefs.h <<_ACEOF
12074 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12075 _ACEOF
12076
12077
12078 # ---------------------------
12079 # Assembler & linker features
12080 # ---------------------------
12081
12082 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12083 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12084 # However when ld-new is first executed from the build tree, libtool will
12085 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12086 # to the build tree. While doing this we need to use the previous-stage
12087 # linker, or we have an infinite loop. The presence of a shell script as
12088 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12089 # the gcc/collect-ld script. So we need to know how libtool works, or
12090 # exec-tool will fail.
12091
12092
12093 case `pwd` in
12094 *\ * | *\ *)
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12096 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12097 esac
12098
12099
12100
12101 macro_version='2.2.7a'
12102 macro_revision='1.3134'
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116 ltmain="$ac_aux_dir/ltmain.sh"
12117
12118 # Backslashify metacharacters that are still active within
12119 # double-quoted strings.
12120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12121
12122 # Same as above, but do not quote variable references.
12123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12124
12125 # Sed substitution to delay expansion of an escaped shell variable in a
12126 # double_quote_subst'ed string.
12127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12128
12129 # Sed substitution to delay expansion of an escaped single quote.
12130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12131
12132 # Sed substitution to avoid accidental globbing in evaled expressions
12133 no_glob_subst='s/\*/\\\*/g'
12134
12135 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12136 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12140 $as_echo_n "checking how to print strings... " >&6; }
12141 # Test print first, because it will be a builtin if present.
12142 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12143 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12144 ECHO='print -r --'
12145 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12146 ECHO='printf %s\n'
12147 else
12148 # Use this function as a fallback that always works.
12149 func_fallback_echo ()
12150 {
12151 eval 'cat <<_LTECHO_EOF
12152 $1
12153 _LTECHO_EOF'
12154 }
12155 ECHO='func_fallback_echo'
12156 fi
12157
12158 # func_echo_all arg...
12159 # Invoke $ECHO with all args, space-separated.
12160 func_echo_all ()
12161 {
12162 $ECHO ""
12163 }
12164
12165 case "$ECHO" in
12166 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12167 $as_echo "printf" >&6; } ;;
12168 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12169 $as_echo "print -r" >&6; } ;;
12170 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12171 $as_echo "cat" >&6; } ;;
12172 esac
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12188 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12189 if test "${ac_cv_path_SED+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12193 for ac_i in 1 2 3 4 5 6 7; do
12194 ac_script="$ac_script$as_nl$ac_script"
12195 done
12196 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12197 { ac_script=; unset ac_script;}
12198 if test -z "$SED"; then
12199 ac_path_SED_found=false
12200 # Loop through the user's path and test for each of PROGNAME-LIST
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_prog in sed gsed; do
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12209 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12210 # Check for GNU ac_path_SED and select it if it is found.
12211 # Check for GNU $ac_path_SED
12212 case `"$ac_path_SED" --version 2>&1` in
12213 *GNU*)
12214 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12215 *)
12216 ac_count=0
12217 $as_echo_n 0123456789 >"conftest.in"
12218 while :
12219 do
12220 cat "conftest.in" "conftest.in" >"conftest.tmp"
12221 mv "conftest.tmp" "conftest.in"
12222 cp "conftest.in" "conftest.nl"
12223 $as_echo '' >> "conftest.nl"
12224 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12226 as_fn_arith $ac_count + 1 && ac_count=$as_val
12227 if test $ac_count -gt ${ac_path_SED_max-0}; then
12228 # Best one so far, save it but keep looking for a better one
12229 ac_cv_path_SED="$ac_path_SED"
12230 ac_path_SED_max=$ac_count
12231 fi
12232 # 10*(2^10) chars as input seems more than enough
12233 test $ac_count -gt 10 && break
12234 done
12235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12236 esac
12237
12238 $ac_path_SED_found && break 3
12239 done
12240 done
12241 done
12242 IFS=$as_save_IFS
12243 if test -z "$ac_cv_path_SED"; then
12244 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12245 fi
12246 else
12247 ac_cv_path_SED=$SED
12248 fi
12249
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12252 $as_echo "$ac_cv_path_SED" >&6; }
12253 SED="$ac_cv_path_SED"
12254 rm -f conftest.sed
12255
12256 test -z "$SED" && SED=sed
12257 Xsed="$SED -e 1s/^X//"
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12270 $as_echo_n "checking for fgrep... " >&6; }
12271 if test "${ac_cv_path_FGREP+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12275 then ac_cv_path_FGREP="$GREP -F"
12276 else
12277 if test -z "$FGREP"; then
12278 ac_path_FGREP_found=false
12279 # Loop through the user's path and test for each of PROGNAME-LIST
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12282 do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_prog in fgrep; do
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12288 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12289 # Check for GNU ac_path_FGREP and select it if it is found.
12290 # Check for GNU $ac_path_FGREP
12291 case `"$ac_path_FGREP" --version 2>&1` in
12292 *GNU*)
12293 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12294 *)
12295 ac_count=0
12296 $as_echo_n 0123456789 >"conftest.in"
12297 while :
12298 do
12299 cat "conftest.in" "conftest.in" >"conftest.tmp"
12300 mv "conftest.tmp" "conftest.in"
12301 cp "conftest.in" "conftest.nl"
12302 $as_echo 'FGREP' >> "conftest.nl"
12303 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12305 as_fn_arith $ac_count + 1 && ac_count=$as_val
12306 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12307 # Best one so far, save it but keep looking for a better one
12308 ac_cv_path_FGREP="$ac_path_FGREP"
12309 ac_path_FGREP_max=$ac_count
12310 fi
12311 # 10*(2^10) chars as input seems more than enough
12312 test $ac_count -gt 10 && break
12313 done
12314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12315 esac
12316
12317 $ac_path_FGREP_found && break 3
12318 done
12319 done
12320 done
12321 IFS=$as_save_IFS
12322 if test -z "$ac_cv_path_FGREP"; then
12323 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12324 fi
12325 else
12326 ac_cv_path_FGREP=$FGREP
12327 fi
12328
12329 fi
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12332 $as_echo "$ac_cv_path_FGREP" >&6; }
12333 FGREP="$ac_cv_path_FGREP"
12334
12335
12336 test -z "$GREP" && GREP=grep
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356 # Check whether --with-gnu-ld was given.
12357 if test "${with_gnu_ld+set}" = set; then :
12358 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12359 else
12360 with_gnu_ld=no
12361 fi
12362
12363 ac_prog=ld
12364 if test "$GCC" = yes; then
12365 # Check if gcc -print-prog-name=ld gives a path.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12367 $as_echo_n "checking for ld used by $CC... " >&6; }
12368 case $host in
12369 *-*-mingw*)
12370 # gcc leaves a trailing carriage return which upsets mingw
12371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12372 *)
12373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12374 esac
12375 case $ac_prog in
12376 # Accept absolute paths.
12377 [\\/]* | ?:[\\/]*)
12378 re_direlt='/[^/][^/]*/\.\./'
12379 # Canonicalize the pathname of ld
12380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12383 done
12384 test -z "$LD" && LD="$ac_prog"
12385 ;;
12386 "")
12387 # If it fails, then pretend we aren't using GCC.
12388 ac_prog=ld
12389 ;;
12390 *)
12391 # If it is relative, then search for the first ld in PATH.
12392 with_gnu_ld=unknown
12393 ;;
12394 esac
12395 elif test "$with_gnu_ld" = yes; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12397 $as_echo_n "checking for GNU ld... " >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12400 $as_echo_n "checking for non-GNU ld... " >&6; }
12401 fi
12402 if test "${lt_cv_path_LD+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -z "$LD"; then
12406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12407 for ac_dir in $PATH; do
12408 IFS="$lt_save_ifs"
12409 test -z "$ac_dir" && ac_dir=.
12410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12411 lt_cv_path_LD="$ac_dir/$ac_prog"
12412 # Check to see if the program is GNU ld. I'd rather use --version,
12413 # but apparently some variants of GNU ld only accept -v.
12414 # Break only if it was the GNU/non-GNU ld that we prefer.
12415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12416 *GNU* | *'with BFD'*)
12417 test "$with_gnu_ld" != no && break
12418 ;;
12419 *)
12420 test "$with_gnu_ld" != yes && break
12421 ;;
12422 esac
12423 fi
12424 done
12425 IFS="$lt_save_ifs"
12426 else
12427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12428 fi
12429 fi
12430
12431 LD="$lt_cv_path_LD"
12432 if test -n "$LD"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12434 $as_echo "$LD" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12441 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12442 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12446 case `$LD -v 2>&1 </dev/null` in
12447 *GNU* | *'with BFD'*)
12448 lt_cv_prog_gnu_ld=yes
12449 ;;
12450 *)
12451 lt_cv_prog_gnu_ld=no
12452 ;;
12453 esac
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12456 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12457 with_gnu_ld=$lt_cv_prog_gnu_ld
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12468 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12469 if test "${lt_cv_path_NM+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$NM"; then
12473 # Let the user override the test.
12474 lt_cv_path_NM="$NM"
12475 else
12476 lt_nm_to_check="${ac_tool_prefix}nm"
12477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12478 lt_nm_to_check="$lt_nm_to_check nm"
12479 fi
12480 for lt_tmp_nm in $lt_nm_to_check; do
12481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12483 IFS="$lt_save_ifs"
12484 test -z "$ac_dir" && ac_dir=.
12485 tmp_nm="$ac_dir/$lt_tmp_nm"
12486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12487 # Check to see if the nm accepts a BSD-compat flag.
12488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12489 # nm: unknown option "B" ignored
12490 # Tru64's nm complains that /dev/null is an invalid object file
12491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12492 */dev/null* | *'Invalid file or object type'*)
12493 lt_cv_path_NM="$tmp_nm -B"
12494 break
12495 ;;
12496 *)
12497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12498 */dev/null*)
12499 lt_cv_path_NM="$tmp_nm -p"
12500 break
12501 ;;
12502 *)
12503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12504 continue # so that we can try to find one that supports BSD flags
12505 ;;
12506 esac
12507 ;;
12508 esac
12509 fi
12510 done
12511 IFS="$lt_save_ifs"
12512 done
12513 : ${lt_cv_path_NM=no}
12514 fi
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12517 $as_echo "$lt_cv_path_NM" >&6; }
12518 if test "$lt_cv_path_NM" != "no"; then
12519 NM="$lt_cv_path_NM"
12520 else
12521 # Didn't find any BSD compatible name lister, look for dumpbin.
12522 if test -n "$DUMPBIN"; then :
12523 # Let the user override the test.
12524 else
12525 if test -n "$ac_tool_prefix"; then
12526 for ac_prog in dumpbin "link -dump"
12527 do
12528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$DUMPBIN"; then
12536 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 DUMPBIN=$ac_cv_prog_DUMPBIN
12556 if test -n "$DUMPBIN"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12558 $as_echo "$DUMPBIN" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 test -n "$DUMPBIN" && break
12566 done
12567 fi
12568 if test -z "$DUMPBIN"; then
12569 ac_ct_DUMPBIN=$DUMPBIN
12570 for ac_prog in dumpbin "link -dump"
12571 do
12572 # Extract the first word of "$ac_prog", so it can be a program name with args.
12573 set dummy $ac_prog; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$ac_ct_DUMPBIN"; then
12580 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 fi
12598 fi
12599 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12600 if test -n "$ac_ct_DUMPBIN"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12602 $as_echo "$ac_ct_DUMPBIN" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609 test -n "$ac_ct_DUMPBIN" && break
12610 done
12611
12612 if test "x$ac_ct_DUMPBIN" = x; then
12613 DUMPBIN=":"
12614 else
12615 case $cross_compiling:$ac_tool_warned in
12616 yes:)
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12619 ac_tool_warned=yes ;;
12620 esac
12621 DUMPBIN=$ac_ct_DUMPBIN
12622 fi
12623 fi
12624
12625 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12626 *COFF*)
12627 DUMPBIN="$DUMPBIN -symbols"
12628 ;;
12629 *)
12630 DUMPBIN=:
12631 ;;
12632 esac
12633 fi
12634
12635 if test "$DUMPBIN" != ":"; then
12636 NM="$DUMPBIN"
12637 fi
12638 fi
12639 test -z "$NM" && NM=nm
12640
12641
12642
12643
12644
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12647 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12648 if test "${lt_cv_nm_interface+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 lt_cv_nm_interface="BSD nm"
12652 echo "int some_variable = 0;" > conftest.$ac_ext
12653 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12654 (eval "$ac_compile" 2>conftest.err)
12655 cat conftest.err >&5
12656 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12657 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12658 cat conftest.err >&5
12659 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12660 cat conftest.out >&5
12661 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12662 lt_cv_nm_interface="MS dumpbin"
12663 fi
12664 rm -f conftest*
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12667 $as_echo "$lt_cv_nm_interface" >&6; }
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12670 $as_echo_n "checking whether ln -s works... " >&6; }
12671 LN_S=$as_ln_s
12672 if test "$LN_S" = "ln -s"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12677 $as_echo "no, using $LN_S" >&6; }
12678 fi
12679
12680 # find the maximum length of command line arguments
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12682 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12683 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 i=0
12687 teststring="ABCD"
12688
12689 case $build_os in
12690 msdosdjgpp*)
12691 # On DJGPP, this test can blow up pretty badly due to problems in libc
12692 # (any single argument exceeding 2000 bytes causes a buffer overrun
12693 # during glob expansion). Even if it were fixed, the result of this
12694 # check would be larger than it should be.
12695 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12696 ;;
12697
12698 gnu*)
12699 # Under GNU Hurd, this test is not required because there is
12700 # no limit to the length of command line arguments.
12701 # Libtool will interpret -1 as no limit whatsoever
12702 lt_cv_sys_max_cmd_len=-1;
12703 ;;
12704
12705 cygwin* | mingw* | cegcc*)
12706 # On Win9x/ME, this test blows up -- it succeeds, but takes
12707 # about 5 minutes as the teststring grows exponentially.
12708 # Worse, since 9x/ME are not pre-emptively multitasking,
12709 # you end up with a "frozen" computer, even though with patience
12710 # the test eventually succeeds (with a max line length of 256k).
12711 # Instead, let's just punt: use the minimum linelength reported by
12712 # all of the supported platforms: 8192 (on NT/2K/XP).
12713 lt_cv_sys_max_cmd_len=8192;
12714 ;;
12715
12716 mint*)
12717 # On MiNT this can take a long time and run out of memory.
12718 lt_cv_sys_max_cmd_len=8192;
12719 ;;
12720
12721 amigaos*)
12722 # On AmigaOS with pdksh, this test takes hours, literally.
12723 # So we just punt and use a minimum line length of 8192.
12724 lt_cv_sys_max_cmd_len=8192;
12725 ;;
12726
12727 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12728 # This has been around since 386BSD, at least. Likely further.
12729 if test -x /sbin/sysctl; then
12730 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12731 elif test -x /usr/sbin/sysctl; then
12732 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12733 else
12734 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12735 fi
12736 # And add a safety zone
12737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12739 ;;
12740
12741 interix*)
12742 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12743 lt_cv_sys_max_cmd_len=196608
12744 ;;
12745
12746 osf*)
12747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12749 # nice to cause kernel panics so lets avoid the loop below.
12750 # First set a reasonable default.
12751 lt_cv_sys_max_cmd_len=16384
12752 #
12753 if test -x /sbin/sysconfig; then
12754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12755 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12756 esac
12757 fi
12758 ;;
12759 sco3.2v5*)
12760 lt_cv_sys_max_cmd_len=102400
12761 ;;
12762 sysv5* | sco5v6* | sysv4.2uw2*)
12763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12764 if test -n "$kargmax"; then
12765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12766 else
12767 lt_cv_sys_max_cmd_len=32768
12768 fi
12769 ;;
12770 *)
12771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12772 if test -n "$lt_cv_sys_max_cmd_len"; then
12773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12775 else
12776 # Make teststring a little bigger before we do anything with it.
12777 # a 1K string should be a reasonable start.
12778 for i in 1 2 3 4 5 6 7 8 ; do
12779 teststring=$teststring$teststring
12780 done
12781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12782 # If test is not a shell built-in, we'll probably end up computing a
12783 # maximum length that is only half of the actual maximum length, but
12784 # we can't tell.
12785 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12786 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12787 test $i != 17 # 1/2 MB should be enough
12788 do
12789 i=`expr $i + 1`
12790 teststring=$teststring$teststring
12791 done
12792 # Only check the string length outside the loop.
12793 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12794 teststring=
12795 # Add a significant safety factor because C++ compilers can tack on
12796 # massive amounts of additional arguments before passing them to the
12797 # linker. It appears as though 1/2 is a usable value.
12798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12799 fi
12800 ;;
12801 esac
12802
12803 fi
12804
12805 if test -n $lt_cv_sys_max_cmd_len ; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12807 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12810 $as_echo "none" >&6; }
12811 fi
12812 max_cmd_len=$lt_cv_sys_max_cmd_len
12813
12814
12815
12816
12817
12818
12819 : ${CP="cp -f"}
12820 : ${MV="mv -f"}
12821 : ${RM="rm -f"}
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12824 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12825 # Try some XSI features
12826 xsi_shell=no
12827 ( _lt_dummy="a/b/c"
12828 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12829 = c,a/b,, \
12830 && eval 'test $(( 1 + 1 )) -eq 2 \
12831 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12832 && xsi_shell=yes
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12834 $as_echo "$xsi_shell" >&6; }
12835
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12838 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12839 lt_shell_append=no
12840 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12841 >/dev/null 2>&1 \
12842 && lt_shell_append=yes
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12844 $as_echo "$lt_shell_append" >&6; }
12845
12846
12847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12848 lt_unset=unset
12849 else
12850 lt_unset=false
12851 fi
12852
12853
12854
12855
12856
12857 # test EBCDIC or ASCII
12858 case `echo X|tr X '\101'` in
12859 A) # ASCII based system
12860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12861 lt_SP2NL='tr \040 \012'
12862 lt_NL2SP='tr \015\012 \040\040'
12863 ;;
12864 *) # EBCDIC based system
12865 lt_SP2NL='tr \100 \n'
12866 lt_NL2SP='tr \r\n \100\100'
12867 ;;
12868 esac
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12879 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12880 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 lt_cv_ld_reload_flag='-r'
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12886 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12887 reload_flag=$lt_cv_ld_reload_flag
12888 case $reload_flag in
12889 "" | " "*) ;;
12890 *) reload_flag=" $reload_flag" ;;
12891 esac
12892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12893 case $host_os in
12894 darwin*)
12895 if test "$GCC" = yes; then
12896 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12897 else
12898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12899 fi
12900 ;;
12901 esac
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 if test -n "$ac_tool_prefix"; then
12912 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12913 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$OBJDUMP"; then
12920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12932 fi
12933 done
12934 done
12935 IFS=$as_save_IFS
12936
12937 fi
12938 fi
12939 OBJDUMP=$ac_cv_prog_OBJDUMP
12940 if test -n "$OBJDUMP"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12942 $as_echo "$OBJDUMP" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949 fi
12950 if test -z "$ac_cv_prog_OBJDUMP"; then
12951 ac_ct_OBJDUMP=$OBJDUMP
12952 # Extract the first word of "objdump", so it can be a program name with args.
12953 set dummy objdump; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$ac_ct_OBJDUMP"; then
12960 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12972 fi
12973 done
12974 done
12975 IFS=$as_save_IFS
12976
12977 fi
12978 fi
12979 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12980 if test -n "$ac_ct_OBJDUMP"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12982 $as_echo "$ac_ct_OBJDUMP" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987
12988 if test "x$ac_ct_OBJDUMP" = x; then
12989 OBJDUMP="false"
12990 else
12991 case $cross_compiling:$ac_tool_warned in
12992 yes:)
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12995 ac_tool_warned=yes ;;
12996 esac
12997 OBJDUMP=$ac_ct_OBJDUMP
12998 fi
12999 else
13000 OBJDUMP="$ac_cv_prog_OBJDUMP"
13001 fi
13002
13003 test -z "$OBJDUMP" && OBJDUMP=objdump
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13014 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13015 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 lt_cv_file_magic_cmd='$MAGIC_CMD'
13019 lt_cv_file_magic_test_file=
13020 lt_cv_deplibs_check_method='unknown'
13021 # Need to set the preceding variable on all platforms that support
13022 # interlibrary dependencies.
13023 # 'none' -- dependencies not supported.
13024 # `unknown' -- same as none, but documents that we really don't know.
13025 # 'pass_all' -- all dependencies passed with no checks.
13026 # 'test_compile' -- check by making test program.
13027 # 'file_magic [[regex]]' -- check by looking for files in library path
13028 # which responds to the $file_magic_cmd with a given extended regex.
13029 # If you have `file' or equivalent on your system and you're not sure
13030 # whether `pass_all' will *always* work, you probably want this one.
13031
13032 case $host_os in
13033 aix[4-9]*)
13034 lt_cv_deplibs_check_method=pass_all
13035 ;;
13036
13037 beos*)
13038 lt_cv_deplibs_check_method=pass_all
13039 ;;
13040
13041 bsdi[45]*)
13042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13043 lt_cv_file_magic_cmd='/usr/bin/file -L'
13044 lt_cv_file_magic_test_file=/shlib/libc.so
13045 ;;
13046
13047 cygwin*)
13048 # func_win32_libid is a shell function defined in ltmain.sh
13049 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13050 lt_cv_file_magic_cmd='func_win32_libid'
13051 ;;
13052
13053 mingw* | pw32*)
13054 # Base MSYS/MinGW do not provide the 'file' command needed by
13055 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13056 # unless we find 'file', for example because we are cross-compiling.
13057 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13058 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13060 lt_cv_file_magic_cmd='func_win32_libid'
13061 else
13062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13063 lt_cv_file_magic_cmd='$OBJDUMP -f'
13064 fi
13065 ;;
13066
13067 cegcc*)
13068 # use the weaker test based on 'objdump'. See mingw*.
13069 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13070 lt_cv_file_magic_cmd='$OBJDUMP -f'
13071 ;;
13072
13073 darwin* | rhapsody*)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076
13077 freebsd* | dragonfly*)
13078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13079 case $host_cpu in
13080 i*86 )
13081 # Not sure whether the presence of OpenBSD here was a mistake.
13082 # Let's accept both of them until this is cleared up.
13083 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13084 lt_cv_file_magic_cmd=/usr/bin/file
13085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13086 ;;
13087 esac
13088 else
13089 lt_cv_deplibs_check_method=pass_all
13090 fi
13091 ;;
13092
13093 gnu*)
13094 lt_cv_deplibs_check_method=pass_all
13095 ;;
13096
13097 haiku*)
13098 lt_cv_deplibs_check_method=pass_all
13099 ;;
13100
13101 hpux10.20* | hpux11*)
13102 lt_cv_file_magic_cmd=/usr/bin/file
13103 case $host_cpu in
13104 ia64*)
13105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13106 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13107 ;;
13108 hppa*64*)
13109 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]'
13110 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13111 ;;
13112 *)
13113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13114 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13115 ;;
13116 esac
13117 ;;
13118
13119 interix[3-9]*)
13120 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13122 ;;
13123
13124 irix5* | irix6* | nonstopux*)
13125 case $LD in
13126 *-32|*"-32 ") libmagic=32-bit;;
13127 *-n32|*"-n32 ") libmagic=N32;;
13128 *-64|*"-64 ") libmagic=64-bit;;
13129 *) libmagic=never-match;;
13130 esac
13131 lt_cv_deplibs_check_method=pass_all
13132 ;;
13133
13134 # This must be Linux ELF.
13135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13136 lt_cv_deplibs_check_method=pass_all
13137 ;;
13138
13139 netbsd*)
13140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13142 else
13143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13144 fi
13145 ;;
13146
13147 newos6*)
13148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13149 lt_cv_file_magic_cmd=/usr/bin/file
13150 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13151 ;;
13152
13153 *nto* | *qnx*)
13154 lt_cv_deplibs_check_method=pass_all
13155 ;;
13156
13157 openbsd*)
13158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13160 else
13161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13162 fi
13163 ;;
13164
13165 osf3* | osf4* | osf5*)
13166 lt_cv_deplibs_check_method=pass_all
13167 ;;
13168
13169 rdos*)
13170 lt_cv_deplibs_check_method=pass_all
13171 ;;
13172
13173 solaris*)
13174 lt_cv_deplibs_check_method=pass_all
13175 ;;
13176
13177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13178 lt_cv_deplibs_check_method=pass_all
13179 ;;
13180
13181 sysv4 | sysv4.3*)
13182 case $host_vendor in
13183 motorola)
13184 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]'
13185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13186 ;;
13187 ncr)
13188 lt_cv_deplibs_check_method=pass_all
13189 ;;
13190 sequent)
13191 lt_cv_file_magic_cmd='/bin/file'
13192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13193 ;;
13194 sni)
13195 lt_cv_file_magic_cmd='/bin/file'
13196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13197 lt_cv_file_magic_test_file=/lib/libc.so
13198 ;;
13199 siemens)
13200 lt_cv_deplibs_check_method=pass_all
13201 ;;
13202 pc)
13203 lt_cv_deplibs_check_method=pass_all
13204 ;;
13205 esac
13206 ;;
13207
13208 tpf*)
13209 lt_cv_deplibs_check_method=pass_all
13210 ;;
13211 esac
13212
13213 fi
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13215 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13216 file_magic_cmd=$lt_cv_file_magic_cmd
13217 deplibs_check_method=$lt_cv_deplibs_check_method
13218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231 if test -n "$ac_tool_prefix"; then
13232 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13233 set dummy ${ac_tool_prefix}ar; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if test "${ac_cv_prog_AR+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$AR"; then
13240 ac_cv_prog_AR="$AR" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13244 do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_AR="${ac_tool_prefix}ar"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253 done
13254 done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 AR=$ac_cv_prog_AR
13260 if test -n "$AR"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13262 $as_echo "$AR" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 fi
13267
13268
13269 fi
13270 if test -z "$ac_cv_prog_AR"; then
13271 ac_ct_AR=$AR
13272 # Extract the first word of "ar", so it can be a program name with args.
13273 set dummy ar; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 if test -n "$ac_ct_AR"; then
13280 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13281 else
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13284 do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13289 ac_cv_prog_ac_ct_AR="ar"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293 done
13294 done
13295 IFS=$as_save_IFS
13296
13297 fi
13298 fi
13299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13300 if test -n "$ac_ct_AR"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13302 $as_echo "$ac_ct_AR" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13306 fi
13307
13308 if test "x$ac_ct_AR" = x; then
13309 AR="false"
13310 else
13311 case $cross_compiling:$ac_tool_warned in
13312 yes:)
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315 ac_tool_warned=yes ;;
13316 esac
13317 AR=$ac_ct_AR
13318 fi
13319 else
13320 AR="$ac_cv_prog_AR"
13321 fi
13322
13323 test -z "$AR" && AR=ar
13324 test -z "$AR_FLAGS" && AR_FLAGS=cru
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336 if test -n "$ac_tool_prefix"; then
13337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13338 set dummy ${ac_tool_prefix}strip; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if test "${ac_cv_prog_STRIP+set}" = set; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 if test -n "$STRIP"; then
13345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13346 else
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13349 do
13350 IFS=$as_save_IFS
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 break 2
13357 fi
13358 done
13359 done
13360 IFS=$as_save_IFS
13361
13362 fi
13363 fi
13364 STRIP=$ac_cv_prog_STRIP
13365 if test -n "$STRIP"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13367 $as_echo "$STRIP" >&6; }
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373
13374 fi
13375 if test -z "$ac_cv_prog_STRIP"; then
13376 ac_ct_STRIP=$STRIP
13377 # Extract the first word of "strip", so it can be a program name with args.
13378 set dummy strip; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 if test -n "$ac_ct_STRIP"; then
13385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394 ac_cv_prog_ac_ct_STRIP="strip"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13397 fi
13398 done
13399 done
13400 IFS=$as_save_IFS
13401
13402 fi
13403 fi
13404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13405 if test -n "$ac_ct_STRIP"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13407 $as_echo "$ac_ct_STRIP" >&6; }
13408 else
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411 fi
13412
13413 if test "x$ac_ct_STRIP" = x; then
13414 STRIP=":"
13415 else
13416 case $cross_compiling:$ac_tool_warned in
13417 yes:)
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13420 ac_tool_warned=yes ;;
13421 esac
13422 STRIP=$ac_ct_STRIP
13423 fi
13424 else
13425 STRIP="$ac_cv_prog_STRIP"
13426 fi
13427
13428 test -z "$STRIP" && STRIP=:
13429
13430
13431
13432
13433
13434
13435 if test -n "$ac_tool_prefix"; then
13436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test -n "$RANLIB"; then
13444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13448 do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13456 fi
13457 done
13458 done
13459 IFS=$as_save_IFS
13460
13461 fi
13462 fi
13463 RANLIB=$ac_cv_prog_RANLIB
13464 if test -n "$RANLIB"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13466 $as_echo "$RANLIB" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13470 fi
13471
13472
13473 fi
13474 if test -z "$ac_cv_prog_RANLIB"; then
13475 ac_ct_RANLIB=$RANLIB
13476 # Extract the first word of "ranlib", so it can be a program name with args.
13477 set dummy ranlib; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 if test -n "$ac_ct_RANLIB"; then
13484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13485 else
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH
13488 do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13493 ac_cv_prog_ac_ct_RANLIB="ranlib"
13494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497 done
13498 done
13499 IFS=$as_save_IFS
13500
13501 fi
13502 fi
13503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13504 if test -n "$ac_ct_RANLIB"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13506 $as_echo "$ac_ct_RANLIB" >&6; }
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13510 fi
13511
13512 if test "x$ac_ct_RANLIB" = x; then
13513 RANLIB=":"
13514 else
13515 case $cross_compiling:$ac_tool_warned in
13516 yes:)
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13519 ac_tool_warned=yes ;;
13520 esac
13521 RANLIB=$ac_ct_RANLIB
13522 fi
13523 else
13524 RANLIB="$ac_cv_prog_RANLIB"
13525 fi
13526
13527 test -z "$RANLIB" && RANLIB=:
13528
13529
13530
13531
13532
13533
13534 # Determine commands to create old-style static archives.
13535 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13536 old_postinstall_cmds='chmod 644 $oldlib'
13537 old_postuninstall_cmds=
13538
13539 if test -n "$RANLIB"; then
13540 case $host_os in
13541 openbsd*)
13542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13543 ;;
13544 *)
13545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13546 ;;
13547 esac
13548 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13549 fi
13550
13551 case $host_os in
13552 darwin*)
13553 lock_old_archive_extraction=yes ;;
13554 *)
13555 lock_old_archive_extraction=no ;;
13556 esac
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596 # If no C compiler was specified, use CC.
13597 LTCC=${LTCC-"$CC"}
13598
13599 # If no C compiler flags were specified, use CFLAGS.
13600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13601
13602 # Allow CC to be a program name with arguments.
13603 compiler=$CC
13604
13605
13606 # Check for command to grab the raw symbol name followed by C symbol from nm.
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13608 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612
13613 # These are sane defaults that work on at least a few old systems.
13614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13615
13616 # Character class describing NM global symbol codes.
13617 symcode='[BCDEGRST]'
13618
13619 # Regexp to match symbols that can be accessed directly from C.
13620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13621
13622 # Define system-specific variables.
13623 case $host_os in
13624 aix*)
13625 symcode='[BCDT]'
13626 ;;
13627 cygwin* | mingw* | pw32* | cegcc*)
13628 symcode='[ABCDGISTW]'
13629 ;;
13630 hpux*)
13631 if test "$host_cpu" = ia64; then
13632 symcode='[ABCDEGRST]'
13633 fi
13634 ;;
13635 irix* | nonstopux*)
13636 symcode='[BCDEGRST]'
13637 ;;
13638 osf*)
13639 symcode='[BCDEGQRST]'
13640 ;;
13641 solaris*)
13642 symcode='[BDRT]'
13643 ;;
13644 sco3.2v5*)
13645 symcode='[DT]'
13646 ;;
13647 sysv4.2uw2*)
13648 symcode='[DT]'
13649 ;;
13650 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13651 symcode='[ABDT]'
13652 ;;
13653 sysv4)
13654 symcode='[DFNSTU]'
13655 ;;
13656 esac
13657
13658 # If we're using GNU nm, then use its standard symbol codes.
13659 case `$NM -V 2>&1` in
13660 *GNU* | *'with BFD'*)
13661 symcode='[ABCDGIRSTW]' ;;
13662 esac
13663
13664 # Transform an extracted symbol line into a proper C declaration.
13665 # Some systems (esp. on ia64) link data and code symbols differently,
13666 # so use this general approach.
13667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13668
13669 # Transform an extracted symbol line into symbol name and symbol address
13670 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13671 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'"
13672
13673 # Handle CRLF in mingw tool chain
13674 opt_cr=
13675 case $build_os in
13676 mingw*)
13677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13678 ;;
13679 esac
13680
13681 # Try without a prefix underscore, then with it.
13682 for ac_symprfx in "" "_"; do
13683
13684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13685 symxfrm="\\1 $ac_symprfx\\2 \\2"
13686
13687 # Write the raw and C identifiers.
13688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13689 # Fake it for dumpbin and say T for any non-static function
13690 # and D for any global variable.
13691 # Also find C++ and __fastcall symbols from MSVC++,
13692 # which start with @ or ?.
13693 lt_cv_sys_global_symbol_pipe="$AWK '"\
13694 " {last_section=section; section=\$ 3};"\
13695 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13696 " \$ 0!~/External *\|/{next};"\
13697 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13698 " {if(hide[section]) next};"\
13699 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13700 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13701 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13702 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13703 " ' prfx=^$ac_symprfx"
13704 else
13705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13706 fi
13707
13708 # Check to see that the pipe works correctly.
13709 pipe_works=no
13710
13711 rm -f conftest*
13712 cat > conftest.$ac_ext <<_LT_EOF
13713 #ifdef __cplusplus
13714 extern "C" {
13715 #endif
13716 char nm_test_var;
13717 void nm_test_func(void);
13718 void nm_test_func(void){}
13719 #ifdef __cplusplus
13720 }
13721 #endif
13722 int main(){nm_test_var='a';nm_test_func();return(0);}
13723 _LT_EOF
13724
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13726 (eval $ac_compile) 2>&5
13727 ac_status=$?
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; }; then
13730 # Now try to grab the symbols.
13731 nlist=conftest.nm
13732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13733 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13734 ac_status=$?
13735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; } && test -s "$nlist"; then
13737 # Try sorting and uniquifying the output.
13738 if sort "$nlist" | uniq > "$nlist"T; then
13739 mv -f "$nlist"T "$nlist"
13740 else
13741 rm -f "$nlist"T
13742 fi
13743
13744 # Make sure that we snagged all the symbols we need.
13745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13747 cat <<_LT_EOF > conftest.$ac_ext
13748 #ifdef __cplusplus
13749 extern "C" {
13750 #endif
13751
13752 _LT_EOF
13753 # Now generate the symbol file.
13754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13755
13756 cat <<_LT_EOF >> conftest.$ac_ext
13757
13758 /* The mapping between symbol names and symbols. */
13759 const struct {
13760 const char *name;
13761 void *address;
13762 }
13763 lt__PROGRAM__LTX_preloaded_symbols[] =
13764 {
13765 { "@PROGRAM@", (void *) 0 },
13766 _LT_EOF
13767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13768 cat <<\_LT_EOF >> conftest.$ac_ext
13769 {0, (void *) 0}
13770 };
13771
13772 /* This works around a problem in FreeBSD linker */
13773 #ifdef FREEBSD_WORKAROUND
13774 static const void *lt_preloaded_setup() {
13775 return lt__PROGRAM__LTX_preloaded_symbols;
13776 }
13777 #endif
13778
13779 #ifdef __cplusplus
13780 }
13781 #endif
13782 _LT_EOF
13783 # Now try linking the two files.
13784 mv conftest.$ac_objext conftstm.$ac_objext
13785 lt_save_LIBS="$LIBS"
13786 lt_save_CFLAGS="$CFLAGS"
13787 LIBS="conftstm.$ac_objext"
13788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13790 (eval $ac_link) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13794 pipe_works=yes
13795 fi
13796 LIBS="$lt_save_LIBS"
13797 CFLAGS="$lt_save_CFLAGS"
13798 else
13799 echo "cannot find nm_test_func in $nlist" >&5
13800 fi
13801 else
13802 echo "cannot find nm_test_var in $nlist" >&5
13803 fi
13804 else
13805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13806 fi
13807 else
13808 echo "$progname: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 fi
13811 rm -rf conftest* conftst*
13812
13813 # Do not use the global_symbol_pipe unless it works.
13814 if test "$pipe_works" = yes; then
13815 break
13816 else
13817 lt_cv_sys_global_symbol_pipe=
13818 fi
13819 done
13820
13821 fi
13822
13823 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13824 lt_cv_sys_global_symbol_to_cdecl=
13825 fi
13826 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13828 $as_echo "failed" >&6; }
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13831 $as_echo "ok" >&6; }
13832 fi
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 # Check whether --enable-libtool-lock was given.
13856 if test "${enable_libtool_lock+set}" = set; then :
13857 enableval=$enable_libtool_lock;
13858 fi
13859
13860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13861
13862 # Some flags need to be propagated to the compiler or linker for good
13863 # libtool support.
13864 case $host in
13865 ia64-*-hpux*)
13866 # Find out which ABI we are using.
13867 echo 'int i;' > conftest.$ac_ext
13868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869 (eval $ac_compile) 2>&5
13870 ac_status=$?
13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; }; then
13873 case `/usr/bin/file conftest.$ac_objext` in
13874 *ELF-32*)
13875 HPUX_IA64_MODE="32"
13876 ;;
13877 *ELF-64*)
13878 HPUX_IA64_MODE="64"
13879 ;;
13880 esac
13881 fi
13882 rm -rf conftest*
13883 ;;
13884 *-*-irix6*)
13885 # Find out which ABI we are using.
13886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891 test $ac_status = 0; }; then
13892 if test "$lt_cv_prog_gnu_ld" = yes; then
13893 case `/usr/bin/file conftest.$ac_objext` in
13894 *32-bit*)
13895 LD="${LD-ld} -melf32bsmip"
13896 ;;
13897 *N32*)
13898 LD="${LD-ld} -melf32bmipn32"
13899 ;;
13900 *64-bit*)
13901 LD="${LD-ld} -melf64bmip"
13902 ;;
13903 esac
13904 else
13905 case `/usr/bin/file conftest.$ac_objext` in
13906 *32-bit*)
13907 LD="${LD-ld} -32"
13908 ;;
13909 *N32*)
13910 LD="${LD-ld} -n32"
13911 ;;
13912 *64-bit*)
13913 LD="${LD-ld} -64"
13914 ;;
13915 esac
13916 fi
13917 fi
13918 rm -rf conftest*
13919 ;;
13920
13921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13923 # Find out which ABI we are using.
13924 echo 'int i;' > conftest.$ac_ext
13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13926 (eval $ac_compile) 2>&5
13927 ac_status=$?
13928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; }; then
13930 case `/usr/bin/file conftest.o` in
13931 *32-bit*)
13932 case $host in
13933 x86_64-*kfreebsd*-gnu)
13934 LD="${LD-ld} -m elf_i386_fbsd"
13935 ;;
13936 x86_64-*linux*)
13937 case `/usr/bin/file conftest.o` in
13938 *x86-64*)
13939 LD="${LD-ld} -m elf32_x86_64"
13940 ;;
13941 *)
13942 LD="${LD-ld} -m elf_i386"
13943 ;;
13944 esac
13945 ;;
13946 powerpc64le-*linux*)
13947 LD="${LD-ld} -m elf32lppclinux"
13948 ;;
13949 powerpc64-*linux*)
13950 LD="${LD-ld} -m elf32ppclinux"
13951 ;;
13952 s390x-*linux*)
13953 LD="${LD-ld} -m elf_s390"
13954 ;;
13955 sparc64-*linux*)
13956 LD="${LD-ld} -m elf32_sparc"
13957 ;;
13958 esac
13959 ;;
13960 *64-bit*)
13961 case $host in
13962 x86_64-*kfreebsd*-gnu)
13963 LD="${LD-ld} -m elf_x86_64_fbsd"
13964 ;;
13965 x86_64-*linux*)
13966 LD="${LD-ld} -m elf_x86_64"
13967 ;;
13968 powerpcle-*linux*)
13969 LD="${LD-ld} -m elf64lppc"
13970 ;;
13971 powerpc-*linux*)
13972 LD="${LD-ld} -m elf64ppc"
13973 ;;
13974 s390*-*linux*|s390*-*tpf*)
13975 LD="${LD-ld} -m elf64_s390"
13976 ;;
13977 sparc*-*linux*)
13978 LD="${LD-ld} -m elf64_sparc"
13979 ;;
13980 esac
13981 ;;
13982 esac
13983 fi
13984 rm -rf conftest*
13985 ;;
13986
13987 *-*-sco3.2v5*)
13988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13989 SAVE_CFLAGS="$CFLAGS"
13990 CFLAGS="$CFLAGS -belf"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13993 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 ac_ext=c
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14001
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004
14005 int
14006 main ()
14007 {
14008
14009 ;
14010 return 0;
14011 }
14012 _ACEOF
14013 if ac_fn_c_try_link "$LINENO"; then :
14014 lt_cv_cc_needs_belf=yes
14015 else
14016 lt_cv_cc_needs_belf=no
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 ac_ext=c
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14031 CFLAGS="$SAVE_CFLAGS"
14032 fi
14033 ;;
14034 sparc*-*solaris*)
14035 # Find out which ABI we are using.
14036 echo 'int i;' > conftest.$ac_ext
14037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14041 test $ac_status = 0; }; then
14042 case `/usr/bin/file conftest.o` in
14043 *64-bit*)
14044 case $lt_cv_prog_gnu_ld in
14045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14046 *)
14047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14048 LD="${LD-ld} -64"
14049 fi
14050 ;;
14051 esac
14052 ;;
14053 esac
14054 fi
14055 rm -rf conftest*
14056 ;;
14057 esac
14058
14059 need_locks="$enable_libtool_lock"
14060
14061
14062 case $host_os in
14063 rhapsody* | darwin*)
14064 if test -n "$ac_tool_prefix"; then
14065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068 $as_echo_n "checking for $ac_word... " >&6; }
14069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 if test -n "$DSYMUTIL"; then
14073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14074 else
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14077 do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14085 fi
14086 done
14087 done
14088 IFS=$as_save_IFS
14089
14090 fi
14091 fi
14092 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14093 if test -n "$DSYMUTIL"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14095 $as_echo "$DSYMUTIL" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14099 fi
14100
14101
14102 fi
14103 if test -z "$ac_cv_prog_DSYMUTIL"; then
14104 ac_ct_DSYMUTIL=$DSYMUTIL
14105 # Extract the first word of "dsymutil", so it can be a program name with args.
14106 set dummy dsymutil; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 if test -n "$ac_ct_DSYMUTIL"; then
14113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14125 fi
14126 done
14127 done
14128 IFS=$as_save_IFS
14129
14130 fi
14131 fi
14132 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14133 if test -n "$ac_ct_DSYMUTIL"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14135 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141 if test "x$ac_ct_DSYMUTIL" = x; then
14142 DSYMUTIL=":"
14143 else
14144 case $cross_compiling:$ac_tool_warned in
14145 yes:)
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14148 ac_tool_warned=yes ;;
14149 esac
14150 DSYMUTIL=$ac_ct_DSYMUTIL
14151 fi
14152 else
14153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14154 fi
14155
14156 if test -n "$ac_tool_prefix"; then
14157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160 $as_echo_n "checking for $ac_word... " >&6; }
14161 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 if test -n "$NMEDIT"; then
14165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14166 else
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168 for as_dir in $PATH
14169 do
14170 IFS=$as_save_IFS
14171 test -z "$as_dir" && as_dir=.
14172 for ac_exec_ext in '' $ac_executable_extensions; do
14173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14176 break 2
14177 fi
14178 done
14179 done
14180 IFS=$as_save_IFS
14181
14182 fi
14183 fi
14184 NMEDIT=$ac_cv_prog_NMEDIT
14185 if test -n "$NMEDIT"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14187 $as_echo "$NMEDIT" >&6; }
14188 else
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "no" >&6; }
14191 fi
14192
14193
14194 fi
14195 if test -z "$ac_cv_prog_NMEDIT"; then
14196 ac_ct_NMEDIT=$NMEDIT
14197 # Extract the first word of "nmedit", so it can be a program name with args.
14198 set dummy nmedit; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 if test -n "$ac_ct_NMEDIT"; then
14205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14225 if test -n "$ac_ct_NMEDIT"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14227 $as_echo "$ac_ct_NMEDIT" >&6; }
14228 else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233 if test "x$ac_ct_NMEDIT" = x; then
14234 NMEDIT=":"
14235 else
14236 case $cross_compiling:$ac_tool_warned in
14237 yes:)
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14240 ac_tool_warned=yes ;;
14241 esac
14242 NMEDIT=$ac_ct_NMEDIT
14243 fi
14244 else
14245 NMEDIT="$ac_cv_prog_NMEDIT"
14246 fi
14247
14248 if test -n "$ac_tool_prefix"; then
14249 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14250 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252 $as_echo_n "checking for $ac_word... " >&6; }
14253 if test "${ac_cv_prog_LIPO+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 if test -n "$LIPO"; then
14257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14261 do
14262 IFS=$as_save_IFS
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 break 2
14269 fi
14270 done
14271 done
14272 IFS=$as_save_IFS
14273
14274 fi
14275 fi
14276 LIPO=$ac_cv_prog_LIPO
14277 if test -n "$LIPO"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14279 $as_echo "$LIPO" >&6; }
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14283 fi
14284
14285
14286 fi
14287 if test -z "$ac_cv_prog_LIPO"; then
14288 ac_ct_LIPO=$LIPO
14289 # Extract the first word of "lipo", so it can be a program name with args.
14290 set dummy lipo; ac_word=$2
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292 $as_echo_n "checking for $ac_word... " >&6; }
14293 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 if test -n "$ac_ct_LIPO"; then
14297 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14298 else
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300 for as_dir in $PATH
14301 do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 for ac_exec_ext in '' $ac_executable_extensions; do
14305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14306 ac_cv_prog_ac_ct_LIPO="lipo"
14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308 break 2
14309 fi
14310 done
14311 done
14312 IFS=$as_save_IFS
14313
14314 fi
14315 fi
14316 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14317 if test -n "$ac_ct_LIPO"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14319 $as_echo "$ac_ct_LIPO" >&6; }
14320 else
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14323 fi
14324
14325 if test "x$ac_ct_LIPO" = x; then
14326 LIPO=":"
14327 else
14328 case $cross_compiling:$ac_tool_warned in
14329 yes:)
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14332 ac_tool_warned=yes ;;
14333 esac
14334 LIPO=$ac_ct_LIPO
14335 fi
14336 else
14337 LIPO="$ac_cv_prog_LIPO"
14338 fi
14339
14340 if test -n "$ac_tool_prefix"; then
14341 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14342 set dummy ${ac_tool_prefix}otool; ac_word=$2
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14344 $as_echo_n "checking for $ac_word... " >&6; }
14345 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 if test -n "$OTOOL"; then
14349 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14350 else
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14358 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14361 fi
14362 done
14363 done
14364 IFS=$as_save_IFS
14365
14366 fi
14367 fi
14368 OTOOL=$ac_cv_prog_OTOOL
14369 if test -n "$OTOOL"; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14371 $as_echo "$OTOOL" >&6; }
14372 else
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374 $as_echo "no" >&6; }
14375 fi
14376
14377
14378 fi
14379 if test -z "$ac_cv_prog_OTOOL"; then
14380 ac_ct_OTOOL=$OTOOL
14381 # Extract the first word of "otool", so it can be a program name with args.
14382 set dummy otool; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test -n "$ac_ct_OTOOL"; then
14389 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398 ac_cv_prog_ac_ct_OTOOL="otool"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14409 if test -n "$ac_ct_OTOOL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14411 $as_echo "$ac_ct_OTOOL" >&6; }
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417 if test "x$ac_ct_OTOOL" = x; then
14418 OTOOL=":"
14419 else
14420 case $cross_compiling:$ac_tool_warned in
14421 yes:)
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14424 ac_tool_warned=yes ;;
14425 esac
14426 OTOOL=$ac_ct_OTOOL
14427 fi
14428 else
14429 OTOOL="$ac_cv_prog_OTOOL"
14430 fi
14431
14432 if test -n "$ac_tool_prefix"; then
14433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14434 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 if test -n "$OTOOL64"; then
14441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14442 else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14445 do
14446 IFS=$as_save_IFS
14447 test -z "$as_dir" && as_dir=.
14448 for ac_exec_ext in '' $ac_executable_extensions; do
14449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14452 break 2
14453 fi
14454 done
14455 done
14456 IFS=$as_save_IFS
14457
14458 fi
14459 fi
14460 OTOOL64=$ac_cv_prog_OTOOL64
14461 if test -n "$OTOOL64"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14463 $as_echo "$OTOOL64" >&6; }
14464 else
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14467 fi
14468
14469
14470 fi
14471 if test -z "$ac_cv_prog_OTOOL64"; then
14472 ac_ct_OTOOL64=$OTOOL64
14473 # Extract the first word of "otool64", so it can be a program name with args.
14474 set dummy otool64; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$ac_ct_OTOOL64"; then
14481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_ac_ct_OTOOL64="otool64"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494 done
14495 done
14496 IFS=$as_save_IFS
14497
14498 fi
14499 fi
14500 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14501 if test -n "$ac_ct_OTOOL64"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14503 $as_echo "$ac_ct_OTOOL64" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507 fi
14508
14509 if test "x$ac_ct_OTOOL64" = x; then
14510 OTOOL64=":"
14511 else
14512 case $cross_compiling:$ac_tool_warned in
14513 yes:)
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14516 ac_tool_warned=yes ;;
14517 esac
14518 OTOOL64=$ac_ct_OTOOL64
14519 fi
14520 else
14521 OTOOL64="$ac_cv_prog_OTOOL64"
14522 fi
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14551 $as_echo_n "checking for -single_module linker flag... " >&6; }
14552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 lt_cv_apple_cc_single_mod=no
14556 if test -z "${LT_MULTI_MODULE}"; then
14557 # By default we will add the -single_module flag. You can override
14558 # by either setting the environment variable LT_MULTI_MODULE
14559 # non-empty at configure time, or by adding -multi_module to the
14560 # link flags.
14561 rm -rf libconftest.dylib*
14562 echo "int foo(void){return 1;}" > conftest.c
14563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14564 -dynamiclib -Wl,-single_module conftest.c" >&5
14565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14567 _lt_result=$?
14568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14569 lt_cv_apple_cc_single_mod=yes
14570 else
14571 cat conftest.err >&5
14572 fi
14573 rm -rf libconftest.dylib*
14574 rm -f conftest.*
14575 fi
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14580 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 lt_cv_ld_exported_symbols_list=no
14585 save_LDFLAGS=$LDFLAGS
14586 echo "_main" > conftest.sym
14587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590
14591 int
14592 main ()
14593 {
14594
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_link "$LINENO"; then :
14600 lt_cv_ld_exported_symbols_list=yes
14601 else
14602 lt_cv_ld_exported_symbols_list=no
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606 LDFLAGS="$save_LDFLAGS"
14607
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14610 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14612 $as_echo_n "checking for -force_load linker flag... " >&6; }
14613 if test "${lt_cv_ld_force_load+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 lt_cv_ld_force_load=no
14617 cat > conftest.c << _LT_EOF
14618 int forced_loaded() { return 2;}
14619 _LT_EOF
14620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14622 echo "$AR cru libconftest.a conftest.o" >&5
14623 $AR cru libconftest.a conftest.o 2>&5
14624 cat > conftest.c << _LT_EOF
14625 int main() { return 0;}
14626 _LT_EOF
14627 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14628 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14629 _lt_result=$?
14630 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14631 lt_cv_ld_force_load=yes
14632 else
14633 cat conftest.err >&5
14634 fi
14635 rm -f conftest.err libconftest.a conftest conftest.c
14636 rm -rf conftest.dSYM
14637
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14640 $as_echo "$lt_cv_ld_force_load" >&6; }
14641 case $host_os in
14642 rhapsody* | darwin1.[012])
14643 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14644 darwin1.*)
14645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14646 darwin*) # darwin 5.x on
14647 # if running on 10.5 or later, the deployment target defaults
14648 # to the OS version, if on x86, and 10.4, the deployment
14649 # target defaults to 10.4. Don't you love it?
14650 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14651 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14653 10.[012][,.]*)
14654 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14655 10.*)
14656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14657 esac
14658 ;;
14659 esac
14660 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14661 _lt_dar_single_mod='$single_module'
14662 fi
14663 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14664 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14665 else
14666 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14667 fi
14668 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14669 _lt_dsymutil='~$DSYMUTIL $lib || :'
14670 else
14671 _lt_dsymutil=
14672 fi
14673 ;;
14674 esac
14675
14676 for ac_header in dlfcn.h
14677 do :
14678 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14679 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DLFCN_H 1
14682 _ACEOF
14683
14684 fi
14685 done
14686
14687
14688
14689
14690
14691 # Set options
14692
14693
14694
14695 enable_dlopen=no
14696
14697
14698 enable_win32_dll=no
14699
14700
14701 # Check whether --enable-shared was given.
14702 if test "${enable_shared+set}" = set; then :
14703 enableval=$enable_shared; p=${PACKAGE-default}
14704 case $enableval in
14705 yes) enable_shared=yes ;;
14706 no) enable_shared=no ;;
14707 *)
14708 enable_shared=no
14709 # Look at the argument we got. We use all the common list separators.
14710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14711 for pkg in $enableval; do
14712 IFS="$lt_save_ifs"
14713 if test "X$pkg" = "X$p"; then
14714 enable_shared=yes
14715 fi
14716 done
14717 IFS="$lt_save_ifs"
14718 ;;
14719 esac
14720 else
14721 enable_shared=yes
14722 fi
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732 # Check whether --enable-static was given.
14733 if test "${enable_static+set}" = set; then :
14734 enableval=$enable_static; p=${PACKAGE-default}
14735 case $enableval in
14736 yes) enable_static=yes ;;
14737 no) enable_static=no ;;
14738 *)
14739 enable_static=no
14740 # Look at the argument we got. We use all the common list separators.
14741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14742 for pkg in $enableval; do
14743 IFS="$lt_save_ifs"
14744 if test "X$pkg" = "X$p"; then
14745 enable_static=yes
14746 fi
14747 done
14748 IFS="$lt_save_ifs"
14749 ;;
14750 esac
14751 else
14752 enable_static=yes
14753 fi
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764 # Check whether --with-pic was given.
14765 if test "${with_pic+set}" = set; then :
14766 withval=$with_pic; pic_mode="$withval"
14767 else
14768 pic_mode=default
14769 fi
14770
14771
14772 test -z "$pic_mode" && pic_mode=default
14773
14774
14775
14776
14777
14778
14779
14780 # Check whether --enable-fast-install was given.
14781 if test "${enable_fast_install+set}" = set; then :
14782 enableval=$enable_fast_install; p=${PACKAGE-default}
14783 case $enableval in
14784 yes) enable_fast_install=yes ;;
14785 no) enable_fast_install=no ;;
14786 *)
14787 enable_fast_install=no
14788 # Look at the argument we got. We use all the common list separators.
14789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14790 for pkg in $enableval; do
14791 IFS="$lt_save_ifs"
14792 if test "X$pkg" = "X$p"; then
14793 enable_fast_install=yes
14794 fi
14795 done
14796 IFS="$lt_save_ifs"
14797 ;;
14798 esac
14799 else
14800 enable_fast_install=yes
14801 fi
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813 # This can be used to rebuild libtool when needed
14814 LIBTOOL_DEPS="$ltmain"
14815
14816 # Always use our own libtool.
14817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844 test -z "$LN_S" && LN_S="ln -s"
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859 if test -n "${ZSH_VERSION+set}" ; then
14860 setopt NO_GLOB_SUBST
14861 fi
14862
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14864 $as_echo_n "checking for objdir... " >&6; }
14865 if test "${lt_cv_objdir+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 rm -f .libs 2>/dev/null
14869 mkdir .libs 2>/dev/null
14870 if test -d .libs; then
14871 lt_cv_objdir=.libs
14872 else
14873 # MS-DOS does not allow filenames that begin with a dot.
14874 lt_cv_objdir=_libs
14875 fi
14876 rmdir .libs 2>/dev/null
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14879 $as_echo "$lt_cv_objdir" >&6; }
14880 objdir=$lt_cv_objdir
14881
14882
14883
14884
14885
14886 cat >>confdefs.h <<_ACEOF
14887 #define LT_OBJDIR "$lt_cv_objdir/"
14888 _ACEOF
14889
14890
14891
14892
14893 case $host_os in
14894 aix3*)
14895 # AIX sometimes has problems with the GCC collect2 program. For some
14896 # reason, if we set the COLLECT_NAMES environment variable, the problems
14897 # vanish in a puff of smoke.
14898 if test "X${COLLECT_NAMES+set}" != Xset; then
14899 COLLECT_NAMES=
14900 export COLLECT_NAMES
14901 fi
14902 ;;
14903 esac
14904
14905 # Global variables:
14906 ofile=libtool
14907 can_build_shared=yes
14908
14909 # All known linkers require a `.a' archive for static linking (except MSVC,
14910 # which needs '.lib').
14911 libext=a
14912
14913 with_gnu_ld="$lt_cv_prog_gnu_ld"
14914
14915 old_CC="$CC"
14916 old_CFLAGS="$CFLAGS"
14917
14918 # Set sane defaults for various variables
14919 test -z "$CC" && CC=cc
14920 test -z "$LTCC" && LTCC=$CC
14921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14922 test -z "$LD" && LD=ld
14923 test -z "$ac_objext" && ac_objext=o
14924
14925 for cc_temp in $compiler""; do
14926 case $cc_temp in
14927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14929 \-*) ;;
14930 *) break;;
14931 esac
14932 done
14933 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14934
14935
14936 # Only perform the check for file, if the check method requires it
14937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14938 case $deplibs_check_method in
14939 file_magic*)
14940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14942 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 case $MAGIC_CMD in
14947 [\\/*] | ?:[\\/]*)
14948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14949 ;;
14950 *)
14951 lt_save_MAGIC_CMD="$MAGIC_CMD"
14952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14954 for ac_dir in $ac_dummy; do
14955 IFS="$lt_save_ifs"
14956 test -z "$ac_dir" && ac_dir=.
14957 if test -f $ac_dir/${ac_tool_prefix}file; then
14958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14959 if test -n "$file_magic_test_file"; then
14960 case $deplibs_check_method in
14961 "file_magic "*)
14962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14965 $EGREP "$file_magic_regex" > /dev/null; then
14966 :
14967 else
14968 cat <<_LT_EOF 1>&2
14969
14970 *** Warning: the command libtool uses to detect shared libraries,
14971 *** $file_magic_cmd, produces output that libtool cannot recognize.
14972 *** The result is that libtool may fail to recognize shared libraries
14973 *** as such. This will affect the creation of libtool libraries that
14974 *** depend on shared libraries, but programs linked with such libtool
14975 *** libraries will work regardless of this problem. Nevertheless, you
14976 *** may want to report the problem to your system manager and/or to
14977 *** bug-libtool@gnu.org
14978
14979 _LT_EOF
14980 fi ;;
14981 esac
14982 fi
14983 break
14984 fi
14985 done
14986 IFS="$lt_save_ifs"
14987 MAGIC_CMD="$lt_save_MAGIC_CMD"
14988 ;;
14989 esac
14990 fi
14991
14992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14993 if test -n "$MAGIC_CMD"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14995 $as_echo "$MAGIC_CMD" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000
15001
15002
15003
15004
15005 if test -z "$lt_cv_path_MAGIC_CMD"; then
15006 if test -n "$ac_tool_prefix"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15008 $as_echo_n "checking for file... " >&6; }
15009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 case $MAGIC_CMD in
15013 [\\/*] | ?:[\\/]*)
15014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15015 ;;
15016 *)
15017 lt_save_MAGIC_CMD="$MAGIC_CMD"
15018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15020 for ac_dir in $ac_dummy; do
15021 IFS="$lt_save_ifs"
15022 test -z "$ac_dir" && ac_dir=.
15023 if test -f $ac_dir/file; then
15024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15025 if test -n "$file_magic_test_file"; then
15026 case $deplibs_check_method in
15027 "file_magic "*)
15028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15031 $EGREP "$file_magic_regex" > /dev/null; then
15032 :
15033 else
15034 cat <<_LT_EOF 1>&2
15035
15036 *** Warning: the command libtool uses to detect shared libraries,
15037 *** $file_magic_cmd, produces output that libtool cannot recognize.
15038 *** The result is that libtool may fail to recognize shared libraries
15039 *** as such. This will affect the creation of libtool libraries that
15040 *** depend on shared libraries, but programs linked with such libtool
15041 *** libraries will work regardless of this problem. Nevertheless, you
15042 *** may want to report the problem to your system manager and/or to
15043 *** bug-libtool@gnu.org
15044
15045 _LT_EOF
15046 fi ;;
15047 esac
15048 fi
15049 break
15050 fi
15051 done
15052 IFS="$lt_save_ifs"
15053 MAGIC_CMD="$lt_save_MAGIC_CMD"
15054 ;;
15055 esac
15056 fi
15057
15058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15059 if test -n "$MAGIC_CMD"; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15061 $as_echo "$MAGIC_CMD" >&6; }
15062 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 $as_echo "no" >&6; }
15065 fi
15066
15067
15068 else
15069 MAGIC_CMD=:
15070 fi
15071 fi
15072
15073 fi
15074 ;;
15075 esac
15076
15077 # Use C for the default configuration in the libtool script
15078
15079 lt_save_CC="$CC"
15080 ac_ext=c
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15085
15086
15087 # Source file extension for C test sources.
15088 ac_ext=c
15089
15090 # Object file extension for compiled C test sources.
15091 objext=o
15092 objext=$objext
15093
15094 # Code to be used in simple compile tests
15095 lt_simple_compile_test_code="int some_variable = 0;"
15096
15097 # Code to be used in simple link tests
15098 lt_simple_link_test_code='int main(){return(0);}'
15099
15100
15101
15102
15103
15104
15105
15106 # If no C compiler was specified, use CC.
15107 LTCC=${LTCC-"$CC"}
15108
15109 # If no C compiler flags were specified, use CFLAGS.
15110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15111
15112 # Allow CC to be a program name with arguments.
15113 compiler=$CC
15114
15115 # Save the default compiler, since it gets overwritten when the other
15116 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15117 compiler_DEFAULT=$CC
15118
15119 # save warnings/boilerplate of simple test code
15120 ac_outfile=conftest.$ac_objext
15121 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15123 _lt_compiler_boilerplate=`cat conftest.err`
15124 $RM conftest*
15125
15126 ac_outfile=conftest.$ac_objext
15127 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15129 _lt_linker_boilerplate=`cat conftest.err`
15130 $RM -r conftest*
15131
15132
15133 ## CAVEAT EMPTOR:
15134 ## There is no encapsulation within the following macros, do not change
15135 ## the running order or otherwise move them around unless you know exactly
15136 ## what you are doing...
15137 if test -n "$compiler"; then
15138
15139 lt_prog_compiler_no_builtin_flag=
15140
15141 if test "$GCC" = yes; then
15142 case $cc_basename in
15143 nvcc*)
15144 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15145 *)
15146 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15147 esac
15148
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15150 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15151 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 lt_cv_prog_compiler_rtti_exceptions=no
15155 ac_outfile=conftest.$ac_objext
15156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15157 lt_compiler_flag="-fno-rtti -fno-exceptions"
15158 # Insert the option either (1) after the last *FLAGS variable, or
15159 # (2) before a word containing "conftest.", or (3) at the end.
15160 # Note that $ac_compile itself does not contain backslashes and begins
15161 # with a dollar sign (not a hyphen), so the echo should work correctly.
15162 # The option is referenced via a variable to avoid confusing sed.
15163 lt_compile=`echo "$ac_compile" | $SED \
15164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15166 -e 's:$: $lt_compiler_flag:'`
15167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15168 (eval "$lt_compile" 2>conftest.err)
15169 ac_status=$?
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 if (exit $ac_status) && test -s "$ac_outfile"; then
15173 # The compiler can only warn and ignore the option if not recognized
15174 # So say no if there are warnings other than the usual output.
15175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15178 lt_cv_prog_compiler_rtti_exceptions=yes
15179 fi
15180 fi
15181 $RM conftest*
15182
15183 fi
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15185 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15186
15187 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15188 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15189 else
15190 :
15191 fi
15192
15193 fi
15194
15195
15196
15197
15198
15199
15200 lt_prog_compiler_wl=
15201 lt_prog_compiler_pic=
15202 lt_prog_compiler_static=
15203
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15205 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15206
15207 if test "$GCC" = yes; then
15208 lt_prog_compiler_wl='-Wl,'
15209 lt_prog_compiler_static='-static'
15210
15211 case $host_os in
15212 aix*)
15213 # All AIX code is PIC.
15214 if test "$host_cpu" = ia64; then
15215 # AIX 5 now supports IA64 processor
15216 lt_prog_compiler_static='-Bstatic'
15217 fi
15218 lt_prog_compiler_pic='-fPIC'
15219 ;;
15220
15221 amigaos*)
15222 case $host_cpu in
15223 powerpc)
15224 # see comment about AmigaOS4 .so support
15225 lt_prog_compiler_pic='-fPIC'
15226 ;;
15227 m68k)
15228 # FIXME: we need at least 68020 code to build shared libraries, but
15229 # adding the `-m68020' flag to GCC prevents building anything better,
15230 # like `-m68040'.
15231 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15232 ;;
15233 esac
15234 ;;
15235
15236 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15237 # PIC is the default for these OSes.
15238 ;;
15239
15240 mingw* | cygwin* | pw32* | os2* | cegcc*)
15241 # This hack is so that the source file can tell whether it is being
15242 # built for inclusion in a dll (and should export symbols for example).
15243 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15244 # (--disable-auto-import) libraries
15245 lt_prog_compiler_pic='-DDLL_EXPORT'
15246 ;;
15247
15248 darwin* | rhapsody*)
15249 # PIC is the default on this platform
15250 # Common symbols not allowed in MH_DYLIB files
15251 lt_prog_compiler_pic='-fno-common'
15252 ;;
15253
15254 haiku*)
15255 # PIC is the default for Haiku.
15256 # The "-static" flag exists, but is broken.
15257 lt_prog_compiler_static=
15258 ;;
15259
15260 hpux*)
15261 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15262 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15263 # sets the default TLS model and affects inlining.
15264 case $host_cpu in
15265 hppa*64*)
15266 # +Z the default
15267 ;;
15268 *)
15269 lt_prog_compiler_pic='-fPIC'
15270 ;;
15271 esac
15272 ;;
15273
15274 interix[3-9]*)
15275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15276 # Instead, we relocate shared libraries at runtime.
15277 ;;
15278
15279 msdosdjgpp*)
15280 # Just because we use GCC doesn't mean we suddenly get shared libraries
15281 # on systems that don't support them.
15282 lt_prog_compiler_can_build_shared=no
15283 enable_shared=no
15284 ;;
15285
15286 *nto* | *qnx*)
15287 # QNX uses GNU C++, but need to define -shared option too, otherwise
15288 # it will coredump.
15289 lt_prog_compiler_pic='-fPIC -shared'
15290 ;;
15291
15292 sysv4*MP*)
15293 if test -d /usr/nec; then
15294 lt_prog_compiler_pic=-Kconform_pic
15295 fi
15296 ;;
15297
15298 *)
15299 lt_prog_compiler_pic='-fPIC'
15300 ;;
15301 esac
15302
15303 case $cc_basename in
15304 nvcc*) # Cuda Compiler Driver 2.2
15305 lt_prog_compiler_wl='-Xlinker '
15306 lt_prog_compiler_pic='-Xcompiler -fPIC'
15307 ;;
15308 esac
15309 else
15310 # PORTME Check for flag to pass linker flags through the system compiler.
15311 case $host_os in
15312 aix*)
15313 lt_prog_compiler_wl='-Wl,'
15314 if test "$host_cpu" = ia64; then
15315 # AIX 5 now supports IA64 processor
15316 lt_prog_compiler_static='-Bstatic'
15317 else
15318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15319 fi
15320 ;;
15321
15322 mingw* | cygwin* | pw32* | os2* | cegcc*)
15323 # This hack is so that the source file can tell whether it is being
15324 # built for inclusion in a dll (and should export symbols for example).
15325 lt_prog_compiler_pic='-DDLL_EXPORT'
15326 ;;
15327
15328 hpux9* | hpux10* | hpux11*)
15329 lt_prog_compiler_wl='-Wl,'
15330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15331 # not for PA HP-UX.
15332 case $host_cpu in
15333 hppa*64*|ia64*)
15334 # +Z the default
15335 ;;
15336 *)
15337 lt_prog_compiler_pic='+Z'
15338 ;;
15339 esac
15340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15341 lt_prog_compiler_static='${wl}-a ${wl}archive'
15342 ;;
15343
15344 irix5* | irix6* | nonstopux*)
15345 lt_prog_compiler_wl='-Wl,'
15346 # PIC (with -KPIC) is the default.
15347 lt_prog_compiler_static='-non_shared'
15348 ;;
15349
15350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15351 case $cc_basename in
15352 # old Intel for x86_64 which still supported -KPIC.
15353 ecc*)
15354 lt_prog_compiler_wl='-Wl,'
15355 lt_prog_compiler_pic='-KPIC'
15356 lt_prog_compiler_static='-static'
15357 ;;
15358 # icc used to be incompatible with GCC.
15359 # ICC 10 doesn't accept -KPIC any more.
15360 icc* | ifort*)
15361 lt_prog_compiler_wl='-Wl,'
15362 lt_prog_compiler_pic='-fPIC'
15363 lt_prog_compiler_static='-static'
15364 ;;
15365 # Lahey Fortran 8.1.
15366 lf95*)
15367 lt_prog_compiler_wl='-Wl,'
15368 lt_prog_compiler_pic='--shared'
15369 lt_prog_compiler_static='--static'
15370 ;;
15371 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15372 # Portland Group compilers (*not* the Pentium gcc compiler,
15373 # which looks to be a dead project)
15374 lt_prog_compiler_wl='-Wl,'
15375 lt_prog_compiler_pic='-fpic'
15376 lt_prog_compiler_static='-Bstatic'
15377 ;;
15378 ccc*)
15379 lt_prog_compiler_wl='-Wl,'
15380 # All Alpha code is PIC.
15381 lt_prog_compiler_static='-non_shared'
15382 ;;
15383 xl* | bgxl* | bgf* | mpixl*)
15384 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15385 lt_prog_compiler_wl='-Wl,'
15386 lt_prog_compiler_pic='-qpic'
15387 lt_prog_compiler_static='-qstaticlink'
15388 ;;
15389 *)
15390 case `$CC -V 2>&1 | sed 5q` in
15391 *Sun\ F* | *Sun*Fortran*)
15392 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15395 lt_prog_compiler_wl=''
15396 ;;
15397 *Sun\ C*)
15398 # Sun C 5.9
15399 lt_prog_compiler_pic='-KPIC'
15400 lt_prog_compiler_static='-Bstatic'
15401 lt_prog_compiler_wl='-Wl,'
15402 ;;
15403 esac
15404 ;;
15405 esac
15406 ;;
15407
15408 newsos6)
15409 lt_prog_compiler_pic='-KPIC'
15410 lt_prog_compiler_static='-Bstatic'
15411 ;;
15412
15413 *nto* | *qnx*)
15414 # QNX uses GNU C++, but need to define -shared option too, otherwise
15415 # it will coredump.
15416 lt_prog_compiler_pic='-fPIC -shared'
15417 ;;
15418
15419 osf3* | osf4* | osf5*)
15420 lt_prog_compiler_wl='-Wl,'
15421 # All OSF/1 code is PIC.
15422 lt_prog_compiler_static='-non_shared'
15423 ;;
15424
15425 rdos*)
15426 lt_prog_compiler_static='-non_shared'
15427 ;;
15428
15429 solaris*)
15430 lt_prog_compiler_pic='-KPIC'
15431 lt_prog_compiler_static='-Bstatic'
15432 case $cc_basename in
15433 f77* | f90* | f95*)
15434 lt_prog_compiler_wl='-Qoption ld ';;
15435 *)
15436 lt_prog_compiler_wl='-Wl,';;
15437 esac
15438 ;;
15439
15440 sunos4*)
15441 lt_prog_compiler_wl='-Qoption ld '
15442 lt_prog_compiler_pic='-PIC'
15443 lt_prog_compiler_static='-Bstatic'
15444 ;;
15445
15446 sysv4 | sysv4.2uw2* | sysv4.3*)
15447 lt_prog_compiler_wl='-Wl,'
15448 lt_prog_compiler_pic='-KPIC'
15449 lt_prog_compiler_static='-Bstatic'
15450 ;;
15451
15452 sysv4*MP*)
15453 if test -d /usr/nec ;then
15454 lt_prog_compiler_pic='-Kconform_pic'
15455 lt_prog_compiler_static='-Bstatic'
15456 fi
15457 ;;
15458
15459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15460 lt_prog_compiler_wl='-Wl,'
15461 lt_prog_compiler_pic='-KPIC'
15462 lt_prog_compiler_static='-Bstatic'
15463 ;;
15464
15465 unicos*)
15466 lt_prog_compiler_wl='-Wl,'
15467 lt_prog_compiler_can_build_shared=no
15468 ;;
15469
15470 uts4*)
15471 lt_prog_compiler_pic='-pic'
15472 lt_prog_compiler_static='-Bstatic'
15473 ;;
15474
15475 *)
15476 lt_prog_compiler_can_build_shared=no
15477 ;;
15478 esac
15479 fi
15480
15481 case $host_os in
15482 # For platforms which do not support PIC, -DPIC is meaningless:
15483 *djgpp*)
15484 lt_prog_compiler_pic=
15485 ;;
15486 *)
15487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15488 ;;
15489 esac
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15491 $as_echo "$lt_prog_compiler_pic" >&6; }
15492
15493
15494
15495
15496
15497
15498 #
15499 # Check to make sure the PIC flag actually works.
15500 #
15501 if test -n "$lt_prog_compiler_pic"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15503 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15504 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 lt_cv_prog_compiler_pic_works=no
15508 ac_outfile=conftest.$ac_objext
15509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15511 # Insert the option either (1) after the last *FLAGS variable, or
15512 # (2) before a word containing "conftest.", or (3) at the end.
15513 # Note that $ac_compile itself does not contain backslashes and begins
15514 # with a dollar sign (not a hyphen), so the echo should work correctly.
15515 # The option is referenced via a variable to avoid confusing sed.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>conftest.err)
15522 ac_status=$?
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s "$ac_outfile"; then
15526 # The compiler can only warn and ignore the option if not recognized
15527 # So say no if there are warnings other than the usual output.
15528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15531 lt_cv_prog_compiler_pic_works=yes
15532 fi
15533 fi
15534 $RM conftest*
15535
15536 fi
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15538 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15539
15540 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15541 case $lt_prog_compiler_pic in
15542 "" | " "*) ;;
15543 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15544 esac
15545 else
15546 lt_prog_compiler_pic=
15547 lt_prog_compiler_can_build_shared=no
15548 fi
15549
15550 fi
15551
15552
15553
15554
15555
15556
15557 #
15558 # Check to make sure the static flag actually works.
15559 #
15560 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15562 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15563 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 lt_cv_prog_compiler_static_works=no
15567 save_LDFLAGS="$LDFLAGS"
15568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15571 # The linker can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test -s conftest.err; then
15574 # Append any errors to the config.log.
15575 cat conftest.err 1>&5
15576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578 if diff conftest.exp conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_static_works=yes
15580 fi
15581 else
15582 lt_cv_prog_compiler_static_works=yes
15583 fi
15584 fi
15585 $RM -r conftest*
15586 LDFLAGS="$save_LDFLAGS"
15587
15588 fi
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15590 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15591
15592 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15593 :
15594 else
15595 lt_prog_compiler_static=
15596 fi
15597
15598
15599
15600
15601
15602
15603
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15606 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 lt_cv_prog_compiler_c_o=no
15610 $RM -r conftest 2>/dev/null
15611 mkdir conftest
15612 cd conftest
15613 mkdir out
15614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15615
15616 lt_compiler_flag="-o out/conftest2.$ac_objext"
15617 # Insert the option either (1) after the last *FLAGS variable, or
15618 # (2) before a word containing "conftest.", or (3) at the end.
15619 # Note that $ac_compile itself does not contain backslashes and begins
15620 # with a dollar sign (not a hyphen), so the echo should work correctly.
15621 lt_compile=`echo "$ac_compile" | $SED \
15622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15624 -e 's:$: $lt_compiler_flag:'`
15625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15626 (eval "$lt_compile" 2>out/conftest.err)
15627 ac_status=$?
15628 cat out/conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15631 then
15632 # The compiler can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15637 lt_cv_prog_compiler_c_o=yes
15638 fi
15639 fi
15640 chmod u+w . 2>&5
15641 $RM conftest*
15642 # SGI C++ compiler will create directory out/ii_files/ for
15643 # template instantiation
15644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15645 $RM out/* && rmdir out
15646 cd ..
15647 $RM -r conftest
15648 $RM conftest*
15649
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15652 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15653
15654
15655
15656
15657
15658
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15661 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15662 $as_echo_n "(cached) " >&6
15663 else
15664 lt_cv_prog_compiler_c_o=no
15665 $RM -r conftest 2>/dev/null
15666 mkdir conftest
15667 cd conftest
15668 mkdir out
15669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15670
15671 lt_compiler_flag="-o out/conftest2.$ac_objext"
15672 # Insert the option either (1) after the last *FLAGS variable, or
15673 # (2) before a word containing "conftest.", or (3) at the end.
15674 # Note that $ac_compile itself does not contain backslashes and begins
15675 # with a dollar sign (not a hyphen), so the echo should work correctly.
15676 lt_compile=`echo "$ac_compile" | $SED \
15677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15679 -e 's:$: $lt_compiler_flag:'`
15680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15681 (eval "$lt_compile" 2>out/conftest.err)
15682 ac_status=$?
15683 cat out/conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15686 then
15687 # The compiler can only warn and ignore the option if not recognized
15688 # So say no if there are warnings
15689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15692 lt_cv_prog_compiler_c_o=yes
15693 fi
15694 fi
15695 chmod u+w . 2>&5
15696 $RM conftest*
15697 # SGI C++ compiler will create directory out/ii_files/ for
15698 # template instantiation
15699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15700 $RM out/* && rmdir out
15701 cd ..
15702 $RM -r conftest
15703 $RM conftest*
15704
15705 fi
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15708
15709
15710
15711
15712 hard_links="nottested"
15713 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15714 # do not overwrite the value of need_locks provided by the user
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15716 $as_echo_n "checking if we can lock with hard links... " >&6; }
15717 hard_links=yes
15718 $RM conftest*
15719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15720 touch conftest.a
15721 ln conftest.a conftest.b 2>&5 || hard_links=no
15722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15724 $as_echo "$hard_links" >&6; }
15725 if test "$hard_links" = no; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15727 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15728 need_locks=warn
15729 fi
15730 else
15731 need_locks=no
15732 fi
15733
15734
15735
15736
15737
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15741
15742 runpath_var=
15743 allow_undefined_flag=
15744 always_export_symbols=no
15745 archive_cmds=
15746 archive_expsym_cmds=
15747 compiler_needs_object=no
15748 enable_shared_with_static_runtimes=no
15749 export_dynamic_flag_spec=
15750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15751 hardcode_automatic=no
15752 hardcode_direct=no
15753 hardcode_direct_absolute=no
15754 hardcode_libdir_flag_spec=
15755 hardcode_libdir_flag_spec_ld=
15756 hardcode_libdir_separator=
15757 hardcode_minus_L=no
15758 hardcode_shlibpath_var=unsupported
15759 inherit_rpath=no
15760 link_all_deplibs=unknown
15761 module_cmds=
15762 module_expsym_cmds=
15763 old_archive_from_new_cmds=
15764 old_archive_from_expsyms_cmds=
15765 thread_safe_flag_spec=
15766 whole_archive_flag_spec=
15767 # include_expsyms should be a list of space-separated symbols to be *always*
15768 # included in the symbol list
15769 include_expsyms=
15770 # exclude_expsyms can be an extended regexp of symbols to exclude
15771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15773 # as well as any symbol that contains `d'.
15774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15776 # platforms (ab)use it in PIC code, but their linkers get confused if
15777 # the symbol is explicitly referenced. Since portable code cannot
15778 # rely on this symbol name, it's probably fine to never include it in
15779 # preloaded symbol tables.
15780 # Exclude shared library initialization/finalization symbols.
15781 extract_expsyms_cmds=
15782
15783 case $host_os in
15784 cygwin* | mingw* | pw32* | cegcc*)
15785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15786 # When not using gcc, we currently assume that we are using
15787 # Microsoft Visual C++.
15788 if test "$GCC" != yes; then
15789 with_gnu_ld=no
15790 fi
15791 ;;
15792 interix*)
15793 # we just hope/assume this is gcc and not c89 (= MSVC++)
15794 with_gnu_ld=yes
15795 ;;
15796 openbsd*)
15797 with_gnu_ld=no
15798 ;;
15799 esac
15800
15801 ld_shlibs=yes
15802
15803 # On some targets, GNU ld is compatible enough with the native linker
15804 # that we're better off using the native interface for both.
15805 lt_use_gnu_ld_interface=no
15806 if test "$with_gnu_ld" = yes; then
15807 case $host_os in
15808 aix*)
15809 # The AIX port of GNU ld has always aspired to compatibility
15810 # with the native linker. However, as the warning in the GNU ld
15811 # block says, versions before 2.19.5* couldn't really create working
15812 # shared libraries, regardless of the interface used.
15813 case `$LD -v 2>&1` in
15814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15816 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15817 *)
15818 lt_use_gnu_ld_interface=yes
15819 ;;
15820 esac
15821 ;;
15822 *)
15823 lt_use_gnu_ld_interface=yes
15824 ;;
15825 esac
15826 fi
15827
15828 if test "$lt_use_gnu_ld_interface" = yes; then
15829 # If archive_cmds runs LD, not CC, wlarc should be empty
15830 wlarc='${wl}'
15831
15832 # Set some defaults for GNU ld with shared library support. These
15833 # are reset later if shared libraries are not supported. Putting them
15834 # here allows them to be overridden if necessary.
15835 runpath_var=LD_RUN_PATH
15836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15837 export_dynamic_flag_spec='${wl}--export-dynamic'
15838 # ancient GNU ld didn't support --whole-archive et. al.
15839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15841 else
15842 whole_archive_flag_spec=
15843 fi
15844 supports_anon_versioning=no
15845 case `$LD -v 2>&1` in
15846 *GNU\ gold*) supports_anon_versioning=yes ;;
15847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15850 *\ 2.11.*) ;; # other 2.11 versions
15851 *) supports_anon_versioning=yes ;;
15852 esac
15853
15854 # See if GNU ld supports shared libraries.
15855 case $host_os in
15856 aix[3-9]*)
15857 # On AIX/PPC, the GNU linker is very broken
15858 if test "$host_cpu" != ia64; then
15859 ld_shlibs=no
15860 cat <<_LT_EOF 1>&2
15861
15862 *** Warning: the GNU linker, at least up to release 2.19, is reported
15863 *** to be unable to reliably create shared libraries on AIX.
15864 *** Therefore, libtool is disabling shared libraries support. If you
15865 *** really care for shared libraries, you may want to install binutils
15866 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15867 *** You will then need to restart the configuration process.
15868
15869 _LT_EOF
15870 fi
15871 ;;
15872
15873 amigaos*)
15874 case $host_cpu in
15875 powerpc)
15876 # see comment about AmigaOS4 .so support
15877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 archive_expsym_cmds=''
15879 ;;
15880 m68k)
15881 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)'
15882 hardcode_libdir_flag_spec='-L$libdir'
15883 hardcode_minus_L=yes
15884 ;;
15885 esac
15886 ;;
15887
15888 beos*)
15889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15890 allow_undefined_flag=unsupported
15891 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15892 # support --undefined. This deserves some investigation. FIXME
15893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894 else
15895 ld_shlibs=no
15896 fi
15897 ;;
15898
15899 cygwin* | mingw* | pw32* | cegcc*)
15900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15901 # as there is no search path for DLLs.
15902 hardcode_libdir_flag_spec='-L$libdir'
15903 export_dynamic_flag_spec='${wl}--export-all-symbols'
15904 allow_undefined_flag=unsupported
15905 always_export_symbols=no
15906 enable_shared_with_static_runtimes=yes
15907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15908
15909 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15911 # If the export-symbols file already is a .def file (1st line
15912 # is EXPORTS), use it as is; otherwise, prepend...
15913 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15914 cp $export_symbols $output_objdir/$soname.def;
15915 else
15916 echo EXPORTS > $output_objdir/$soname.def;
15917 cat $export_symbols >> $output_objdir/$soname.def;
15918 fi~
15919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15920 else
15921 ld_shlibs=no
15922 fi
15923 ;;
15924
15925 haiku*)
15926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15927 link_all_deplibs=yes
15928 ;;
15929
15930 interix[3-9]*)
15931 hardcode_direct=no
15932 hardcode_shlibpath_var=no
15933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15934 export_dynamic_flag_spec='${wl}-E'
15935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15936 # Instead, shared libraries are loaded at an image base (0x10000000 by
15937 # default) and relocated if they conflict, which is a slow very memory
15938 # consuming and fragmenting process. To avoid this, we pick a random,
15939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15942 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'
15943 ;;
15944
15945 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15946 tmp_diet=no
15947 if test "$host_os" = linux-dietlibc; then
15948 case $cc_basename in
15949 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15950 esac
15951 fi
15952 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15953 && test "$tmp_diet" = no
15954 then
15955 tmp_addflag=' $pic_flag'
15956 tmp_sharedflag='-shared'
15957 case $cc_basename,$host_cpu in
15958 pgcc*) # Portland Group C compiler
15959 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'
15960 tmp_addflag=' $pic_flag'
15961 ;;
15962 pgf77* | pgf90* | pgf95* | pgfortran*)
15963 # Portland Group f77 and f90 compilers
15964 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'
15965 tmp_addflag=' $pic_flag -Mnomain' ;;
15966 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15967 tmp_addflag=' -i_dynamic' ;;
15968 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15969 tmp_addflag=' -i_dynamic -nofor_main' ;;
15970 ifc* | ifort*) # Intel Fortran compiler
15971 tmp_addflag=' -nofor_main' ;;
15972 lf95*) # Lahey Fortran 8.1
15973 whole_archive_flag_spec=
15974 tmp_sharedflag='--shared' ;;
15975 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15976 tmp_sharedflag='-qmkshrobj'
15977 tmp_addflag= ;;
15978 nvcc*) # Cuda Compiler Driver 2.2
15979 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'
15980 compiler_needs_object=yes
15981 ;;
15982 esac
15983 case `$CC -V 2>&1 | sed 5q` in
15984 *Sun\ C*) # Sun C 5.9
15985 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'
15986 compiler_needs_object=yes
15987 tmp_sharedflag='-G' ;;
15988 *Sun\ F*) # Sun Fortran 8.3
15989 tmp_sharedflag='-G' ;;
15990 esac
15991 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992
15993 if test "x$supports_anon_versioning" = xyes; then
15994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996 echo "local: *; };" >> $output_objdir/$libname.ver~
15997 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15998 fi
15999
16000 case $cc_basename in
16001 xlf* | bgf* | bgxlf* | mpixlf*)
16002 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16003 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16004 hardcode_libdir_flag_spec=
16005 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16006 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16007 if test "x$supports_anon_versioning" = xyes; then
16008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16010 echo "local: *; };" >> $output_objdir/$libname.ver~
16011 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16012 fi
16013 ;;
16014 esac
16015 else
16016 ld_shlibs=no
16017 fi
16018 ;;
16019
16020 netbsd*)
16021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16023 wlarc=
16024 else
16025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16027 fi
16028 ;;
16029
16030 solaris*)
16031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16032 ld_shlibs=no
16033 cat <<_LT_EOF 1>&2
16034
16035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16036 *** create shared libraries on Solaris systems. Therefore, libtool
16037 *** is disabling shared libraries support. We urge you to upgrade GNU
16038 *** binutils to release 2.9.1 or newer. Another option is to modify
16039 *** your PATH or compiler configuration so that the native linker is
16040 *** used, and then restart.
16041
16042 _LT_EOF
16043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16046 else
16047 ld_shlibs=no
16048 fi
16049 ;;
16050
16051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16052 case `$LD -v 2>&1` in
16053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16054 ld_shlibs=no
16055 cat <<_LT_EOF 1>&2
16056
16057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16058 *** reliably create shared libraries on SCO systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16063
16064 _LT_EOF
16065 ;;
16066 *)
16067 # For security reasons, it is highly recommended that you always
16068 # use absolute paths for naming shared libraries, and exclude the
16069 # DT_RUNPATH tag from executables and libraries. But doing so
16070 # requires that you compile everything twice, which is a pain.
16071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16075 else
16076 ld_shlibs=no
16077 fi
16078 ;;
16079 esac
16080 ;;
16081
16082 sunos4*)
16083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 wlarc=
16085 hardcode_direct=yes
16086 hardcode_shlibpath_var=no
16087 ;;
16088
16089 *)
16090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16093 else
16094 ld_shlibs=no
16095 fi
16096 ;;
16097 esac
16098
16099 if test "$ld_shlibs" = no; then
16100 runpath_var=
16101 hardcode_libdir_flag_spec=
16102 export_dynamic_flag_spec=
16103 whole_archive_flag_spec=
16104 fi
16105 else
16106 # PORTME fill in a description of your system's linker (not GNU ld)
16107 case $host_os in
16108 aix3*)
16109 allow_undefined_flag=unsupported
16110 always_export_symbols=yes
16111 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'
16112 # Note: this linker hardcodes the directories in LIBPATH if there
16113 # are no directories specified by -L.
16114 hardcode_minus_L=yes
16115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16116 # Neither direct hardcoding nor static linking is supported with a
16117 # broken collect2.
16118 hardcode_direct=unsupported
16119 fi
16120 ;;
16121
16122 aix[4-9]*)
16123 if test "$host_cpu" = ia64; then
16124 # On IA64, the linker does run time linking by default, so we don't
16125 # have to do anything special.
16126 aix_use_runtimelinking=no
16127 exp_sym_flag='-Bexport'
16128 no_entry_flag=""
16129 else
16130 # If we're using GNU nm, then we don't want the "-C" option.
16131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16132 # Also, AIX nm treats weak defined symbols like other global
16133 # defined symbols, whereas GNU nm marks them as "W".
16134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16135 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'
16136 else
16137 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'
16138 fi
16139 aix_use_runtimelinking=no
16140
16141 # Test if we are trying to use run time linking or normal
16142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16143 # need to do runtime linking.
16144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16145 for ld_flag in $LDFLAGS; do
16146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16147 aix_use_runtimelinking=yes
16148 break
16149 fi
16150 done
16151 ;;
16152 esac
16153
16154 exp_sym_flag='-bexport'
16155 no_entry_flag='-bnoentry'
16156 fi
16157
16158 # When large executables or shared objects are built, AIX ld can
16159 # have problems creating the table of contents. If linking a library
16160 # or program results in "error TOC overflow" add -mminimal-toc to
16161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16163
16164 archive_cmds=''
16165 hardcode_direct=yes
16166 hardcode_direct_absolute=yes
16167 hardcode_libdir_separator=':'
16168 link_all_deplibs=yes
16169 file_list_spec='${wl}-f,'
16170
16171 if test "$GCC" = yes; then
16172 case $host_os in aix4.[012]|aix4.[012].*)
16173 # We only want to do this on AIX 4.2 and lower, the check
16174 # below for broken collect2 doesn't work under 4.3+
16175 collect2name=`${CC} -print-prog-name=collect2`
16176 if test -f "$collect2name" &&
16177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16178 then
16179 # We have reworked collect2
16180 :
16181 else
16182 # We have old collect2
16183 hardcode_direct=unsupported
16184 # It fails to find uninstalled libraries when the uninstalled
16185 # path is not listed in the libpath. Setting hardcode_minus_L
16186 # to unsupported forces relinking
16187 hardcode_minus_L=yes
16188 hardcode_libdir_flag_spec='-L$libdir'
16189 hardcode_libdir_separator=
16190 fi
16191 ;;
16192 esac
16193 shared_flag='-shared'
16194 if test "$aix_use_runtimelinking" = yes; then
16195 shared_flag="$shared_flag "'${wl}-G'
16196 fi
16197 else
16198 # not using gcc
16199 if test "$host_cpu" = ia64; then
16200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16201 # chokes on -Wl,-G. The following line is correct:
16202 shared_flag='-G'
16203 else
16204 if test "$aix_use_runtimelinking" = yes; then
16205 shared_flag='${wl}-G'
16206 else
16207 shared_flag='${wl}-bM:SRE'
16208 fi
16209 fi
16210 fi
16211
16212 export_dynamic_flag_spec='${wl}-bexpall'
16213 # It seems that -bexpall does not export symbols beginning with
16214 # underscore (_), so it is better to generate a list of symbols to export.
16215 always_export_symbols=yes
16216 if test "$aix_use_runtimelinking" = yes; then
16217 # Warning - without using the other runtime loading flags (-brtl),
16218 # -berok will link without error, but may produce a broken library.
16219 allow_undefined_flag='-berok'
16220 # Determine the default libpath from the value encoded in an
16221 # empty executable.
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224
16225 int
16226 main ()
16227 {
16228
16229 ;
16230 return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"; then :
16234
16235 lt_aix_libpath_sed='
16236 /Import File Strings/,/^$/ {
16237 /^0/ {
16238 s/^0 *\(.*\)$/\1/
16239 p
16240 }
16241 }'
16242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16243 # Check for a 64-bit object if we didn't find anything.
16244 if test -z "$aix_libpath"; then
16245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16246 fi
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16251
16252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16253 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"
16254 else
16255 if test "$host_cpu" = ia64; then
16256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16257 allow_undefined_flag="-z nodefs"
16258 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"
16259 else
16260 # Determine the default libpath from the value encoded in an
16261 # empty executable.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264
16265 int
16266 main ()
16267 {
16268
16269 ;
16270 return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_link "$LINENO"; then :
16274
16275 lt_aix_libpath_sed='
16276 /Import File Strings/,/^$/ {
16277 /^0/ {
16278 s/^0 *\(.*\)$/\1/
16279 p
16280 }
16281 }'
16282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16283 # Check for a 64-bit object if we didn't find anything.
16284 if test -z "$aix_libpath"; then
16285 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16286 fi
16287 fi
16288 rm -f core conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16291
16292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16293 # Warning - without using the other run time loading flags,
16294 # -berok will link without error, but may produce a broken library.
16295 no_undefined_flag=' ${wl}-bernotok'
16296 allow_undefined_flag=' ${wl}-berok'
16297 if test "$with_gnu_ld" = yes; then
16298 # We only use this code for GNU lds that support --whole-archive.
16299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16300 else
16301 # Exported symbols can be pulled into shared objects from archives
16302 whole_archive_flag_spec='$convenience'
16303 fi
16304 archive_cmds_need_lc=yes
16305 # This is similar to how AIX traditionally builds its shared libraries.
16306 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'
16307 fi
16308 fi
16309 ;;
16310
16311 amigaos*)
16312 case $host_cpu in
16313 powerpc)
16314 # see comment about AmigaOS4 .so support
16315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16316 archive_expsym_cmds=''
16317 ;;
16318 m68k)
16319 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)'
16320 hardcode_libdir_flag_spec='-L$libdir'
16321 hardcode_minus_L=yes
16322 ;;
16323 esac
16324 ;;
16325
16326 bsdi[45]*)
16327 export_dynamic_flag_spec=-rdynamic
16328 ;;
16329
16330 cygwin* | mingw* | pw32* | cegcc*)
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 # hardcode_libdir_flag_spec is actually meaningless, as there is
16334 # no search path for DLLs.
16335 hardcode_libdir_flag_spec=' '
16336 allow_undefined_flag=unsupported
16337 # Tell ltmain to make .lib files, not .a files.
16338 libext=lib
16339 # Tell ltmain to make .dll files, not .so files.
16340 shrext_cmds=".dll"
16341 # FIXME: Setting linknames here is a bad hack.
16342 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16343 # The linker will automatically build a .lib file if we build a DLL.
16344 old_archive_from_new_cmds='true'
16345 # FIXME: Should let the user specify the lib program.
16346 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16347 fix_srcfile_path='`cygpath -w "$srcfile"`'
16348 enable_shared_with_static_runtimes=yes
16349 ;;
16350
16351 darwin* | rhapsody*)
16352
16353
16354 archive_cmds_need_lc=no
16355 hardcode_direct=no
16356 hardcode_automatic=yes
16357 hardcode_shlibpath_var=unsupported
16358 if test "$lt_cv_ld_force_load" = "yes"; then
16359 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\"`'
16360 else
16361 whole_archive_flag_spec=''
16362 fi
16363 link_all_deplibs=yes
16364 allow_undefined_flag="$_lt_dar_allow_undefined"
16365 case $cc_basename in
16366 ifort*) _lt_dar_can_shared=yes ;;
16367 *) _lt_dar_can_shared=$GCC ;;
16368 esac
16369 if test "$_lt_dar_can_shared" = "yes"; then
16370 output_verbose_link_cmd=func_echo_all
16371 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16372 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16373 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}"
16374 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}"
16375
16376 else
16377 ld_shlibs=no
16378 fi
16379
16380 ;;
16381
16382 dgux*)
16383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16384 hardcode_libdir_flag_spec='-L$libdir'
16385 hardcode_shlibpath_var=no
16386 ;;
16387
16388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16389 # support. Future versions do this automatically, but an explicit c++rt0.o
16390 # does not break anything, and helps significantly (at the cost of a little
16391 # extra space).
16392 freebsd2.2*)
16393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16394 hardcode_libdir_flag_spec='-R$libdir'
16395 hardcode_direct=yes
16396 hardcode_shlibpath_var=no
16397 ;;
16398
16399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 freebsd2.*)
16401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct=yes
16403 hardcode_minus_L=yes
16404 hardcode_shlibpath_var=no
16405 ;;
16406
16407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16408 freebsd* | dragonfly*)
16409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec='-R$libdir'
16411 hardcode_direct=yes
16412 hardcode_shlibpath_var=no
16413 ;;
16414
16415 hpux9*)
16416 if test "$GCC" = yes; then
16417 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'
16418 else
16419 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'
16420 fi
16421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16422 hardcode_libdir_separator=:
16423 hardcode_direct=yes
16424
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L=yes
16428 export_dynamic_flag_spec='${wl}-E'
16429 ;;
16430
16431 hpux10*)
16432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16434 else
16435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16436 fi
16437 if test "$with_gnu_ld" = no; then
16438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16439 hardcode_libdir_flag_spec_ld='+b $libdir'
16440 hardcode_libdir_separator=:
16441 hardcode_direct=yes
16442 hardcode_direct_absolute=yes
16443 export_dynamic_flag_spec='${wl}-E'
16444 # hardcode_minus_L: Not really in the search PATH,
16445 # but as the default location of the library.
16446 hardcode_minus_L=yes
16447 fi
16448 ;;
16449
16450 hpux11*)
16451 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16452 case $host_cpu in
16453 hppa*64*)
16454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 ;;
16456 ia64*)
16457 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16458 ;;
16459 *)
16460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16461 ;;
16462 esac
16463 else
16464 case $host_cpu in
16465 hppa*64*)
16466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 ;;
16468 ia64*)
16469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16470 ;;
16471 *)
16472
16473 # Older versions of the 11.00 compiler do not understand -b yet
16474 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16476 $as_echo_n "checking if $CC understands -b... " >&6; }
16477 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 lt_cv_prog_compiler__b=no
16481 save_LDFLAGS="$LDFLAGS"
16482 LDFLAGS="$LDFLAGS -b"
16483 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16485 # The linker can only warn and ignore the option if not recognized
16486 # So say no if there are warnings
16487 if test -s conftest.err; then
16488 # Append any errors to the config.log.
16489 cat conftest.err 1>&5
16490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16492 if diff conftest.exp conftest.er2 >/dev/null; then
16493 lt_cv_prog_compiler__b=yes
16494 fi
16495 else
16496 lt_cv_prog_compiler__b=yes
16497 fi
16498 fi
16499 $RM -r conftest*
16500 LDFLAGS="$save_LDFLAGS"
16501
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16504 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16505
16506 if test x"$lt_cv_prog_compiler__b" = xyes; then
16507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16508 else
16509 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16510 fi
16511
16512 ;;
16513 esac
16514 fi
16515 if test "$with_gnu_ld" = no; then
16516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16517 hardcode_libdir_separator=:
16518
16519 case $host_cpu in
16520 hppa*64*|ia64*)
16521 hardcode_direct=no
16522 hardcode_shlibpath_var=no
16523 ;;
16524 *)
16525 hardcode_direct=yes
16526 hardcode_direct_absolute=yes
16527 export_dynamic_flag_spec='${wl}-E'
16528
16529 # hardcode_minus_L: Not really in the search PATH,
16530 # but as the default location of the library.
16531 hardcode_minus_L=yes
16532 ;;
16533 esac
16534 fi
16535 ;;
16536
16537 irix5* | irix6* | nonstopux*)
16538 if test "$GCC" = yes; then
16539 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'
16540 # Try to use the -exported_symbol ld option, if it does not
16541 # work, assume that -exports_file does not work either and
16542 # implicitly export all symbols.
16543 save_LDFLAGS="$LDFLAGS"
16544 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 int foo(void) {}
16548 _ACEOF
16549 if ac_fn_c_try_link "$LINENO"; then :
16550 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'
16551
16552 fi
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555 LDFLAGS="$save_LDFLAGS"
16556 else
16557 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'
16558 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'
16559 fi
16560 archive_cmds_need_lc='no'
16561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator=:
16563 inherit_rpath=yes
16564 link_all_deplibs=yes
16565 ;;
16566
16567 netbsd*)
16568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16570 else
16571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16572 fi
16573 hardcode_libdir_flag_spec='-R$libdir'
16574 hardcode_direct=yes
16575 hardcode_shlibpath_var=no
16576 ;;
16577
16578 newsos6)
16579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580 hardcode_direct=yes
16581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16582 hardcode_libdir_separator=:
16583 hardcode_shlibpath_var=no
16584 ;;
16585
16586 *nto* | *qnx*)
16587 ;;
16588
16589 openbsd*)
16590 if test -f /usr/libexec/ld.so; then
16591 hardcode_direct=yes
16592 hardcode_shlibpath_var=no
16593 hardcode_direct_absolute=yes
16594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16598 export_dynamic_flag_spec='${wl}-E'
16599 else
16600 case $host_os in
16601 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_libdir_flag_spec='-R$libdir'
16604 ;;
16605 *)
16606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16608 ;;
16609 esac
16610 fi
16611 else
16612 ld_shlibs=no
16613 fi
16614 ;;
16615
16616 os2*)
16617 hardcode_libdir_flag_spec='-L$libdir'
16618 hardcode_minus_L=yes
16619 allow_undefined_flag=unsupported
16620 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'
16621 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16622 ;;
16623
16624 osf3*)
16625 if test "$GCC" = yes; then
16626 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16627 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'
16628 else
16629 allow_undefined_flag=' -expect_unresolved \*'
16630 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'
16631 fi
16632 archive_cmds_need_lc='no'
16633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16634 hardcode_libdir_separator=:
16635 ;;
16636
16637 osf4* | osf5*) # as osf3* with the addition of -msym flag
16638 if test "$GCC" = yes; then
16639 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16640 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'
16641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16642 else
16643 allow_undefined_flag=' -expect_unresolved \*'
16644 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'
16645 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~
16646 $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'
16647
16648 # Both c and cxx compiler support -rpath directly
16649 hardcode_libdir_flag_spec='-rpath $libdir'
16650 fi
16651 archive_cmds_need_lc='no'
16652 hardcode_libdir_separator=:
16653 ;;
16654
16655 solaris*)
16656 no_undefined_flag=' -z defs'
16657 if test "$GCC" = yes; then
16658 wlarc='${wl}'
16659 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16661 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16662 else
16663 case `$CC -V 2>&1` in
16664 *"Compilers 5.0"*)
16665 wlarc=''
16666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16669 ;;
16670 *)
16671 wlarc='${wl}'
16672 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16674 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16675 ;;
16676 esac
16677 fi
16678 hardcode_libdir_flag_spec='-R$libdir'
16679 hardcode_shlibpath_var=no
16680 case $host_os in
16681 solaris2.[0-5] | solaris2.[0-5].*) ;;
16682 *)
16683 # The compiler driver will combine and reorder linker options,
16684 # but understands `-z linker_flag'. GCC discards it without `$wl',
16685 # but is careful enough not to reorder.
16686 # Supported since Solaris 2.6 (maybe 2.5.1?)
16687 if test "$GCC" = yes; then
16688 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16689 else
16690 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16691 fi
16692 ;;
16693 esac
16694 link_all_deplibs=yes
16695 ;;
16696
16697 sunos4*)
16698 if test "x$host_vendor" = xsequent; then
16699 # Use $CC to link under sequent, because it throws in some extra .o
16700 # files that make .init and .fini sections work.
16701 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16702 else
16703 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16704 fi
16705 hardcode_libdir_flag_spec='-L$libdir'
16706 hardcode_direct=yes
16707 hardcode_minus_L=yes
16708 hardcode_shlibpath_var=no
16709 ;;
16710
16711 sysv4)
16712 case $host_vendor in
16713 sni)
16714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16715 hardcode_direct=yes # is this really true???
16716 ;;
16717 siemens)
16718 ## LD is ld it makes a PLAMLIB
16719 ## CC just makes a GrossModule.
16720 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16721 reload_cmds='$CC -r -o $output$reload_objs'
16722 hardcode_direct=no
16723 ;;
16724 motorola)
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16727 ;;
16728 esac
16729 runpath_var='LD_RUN_PATH'
16730 hardcode_shlibpath_var=no
16731 ;;
16732
16733 sysv4.3*)
16734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_shlibpath_var=no
16736 export_dynamic_flag_spec='-Bexport'
16737 ;;
16738
16739 sysv4*MP*)
16740 if test -d /usr/nec; then
16741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_shlibpath_var=no
16743 runpath_var=LD_RUN_PATH
16744 hardcode_runpath_var=yes
16745 ld_shlibs=yes
16746 fi
16747 ;;
16748
16749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16750 no_undefined_flag='${wl}-z,text'
16751 archive_cmds_need_lc=no
16752 hardcode_shlibpath_var=no
16753 runpath_var='LD_RUN_PATH'
16754
16755 if test "$GCC" = yes; then
16756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 else
16759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 fi
16762 ;;
16763
16764 sysv5* | sco3.2v5* | sco5v6*)
16765 # Note: We can NOT use -z defs as we might desire, because we do not
16766 # link with -lc, and that would cause any symbols used from libc to
16767 # always be unresolved, which means just about no library would
16768 # ever link correctly. If we're not using GNU ld we use -z text
16769 # though, which does catch some bad symbols but isn't as heavy-handed
16770 # as -z defs.
16771 no_undefined_flag='${wl}-z,text'
16772 allow_undefined_flag='${wl}-z,nodefs'
16773 archive_cmds_need_lc=no
16774 hardcode_shlibpath_var=no
16775 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16776 hardcode_libdir_separator=':'
16777 link_all_deplibs=yes
16778 export_dynamic_flag_spec='${wl}-Bexport'
16779 runpath_var='LD_RUN_PATH'
16780
16781 if test "$GCC" = yes; then
16782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 else
16785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 fi
16788 ;;
16789
16790 uts4*)
16791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 hardcode_libdir_flag_spec='-L$libdir'
16793 hardcode_shlibpath_var=no
16794 ;;
16795
16796 *)
16797 ld_shlibs=no
16798 ;;
16799 esac
16800
16801 if test x$host_vendor = xsni; then
16802 case $host in
16803 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16804 export_dynamic_flag_spec='${wl}-Blargedynsym'
16805 ;;
16806 esac
16807 fi
16808 fi
16809
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16811 $as_echo "$ld_shlibs" >&6; }
16812 test "$ld_shlibs" = no && can_build_shared=no
16813
16814 with_gnu_ld=$with_gnu_ld
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830 #
16831 # Do we need to explicitly link libc?
16832 #
16833 case "x$archive_cmds_need_lc" in
16834 x|xyes)
16835 # Assume -lc should be added
16836 archive_cmds_need_lc=yes
16837
16838 if test "$enable_shared" = yes && test "$GCC" = yes; then
16839 case $archive_cmds in
16840 *'~'*)
16841 # FIXME: we may have to deal with multi-command sequences.
16842 ;;
16843 '$CC '*)
16844 # Test whether the compiler implicitly links with -lc since on some
16845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16846 # to ld, don't add -lc before -lgcc.
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16849 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 $RM conftest*
16853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16854
16855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16856 (eval $ac_compile) 2>&5
16857 ac_status=$?
16858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16859 test $ac_status = 0; } 2>conftest.err; then
16860 soname=conftest
16861 lib=conftest
16862 libobjs=conftest.$ac_objext
16863 deplibs=
16864 wl=$lt_prog_compiler_wl
16865 pic_flag=$lt_prog_compiler_pic
16866 compiler_flags=-v
16867 linker_flags=-v
16868 verstring=
16869 output_objdir=.
16870 libname=conftest
16871 lt_save_allow_undefined_flag=$allow_undefined_flag
16872 allow_undefined_flag=
16873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16874 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16875 ac_status=$?
16876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16877 test $ac_status = 0; }
16878 then
16879 lt_cv_archive_cmds_need_lc=no
16880 else
16881 lt_cv_archive_cmds_need_lc=yes
16882 fi
16883 allow_undefined_flag=$lt_save_allow_undefined_flag
16884 else
16885 cat conftest.err 1>&5
16886 fi
16887 $RM conftest*
16888
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16891 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16892 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16893 ;;
16894 esac
16895 fi
16896 ;;
16897 esac
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17056 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17057
17058 if test "$GCC" = yes; then
17059 case $host_os in
17060 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17061 *) lt_awk_arg="/^libraries:/" ;;
17062 esac
17063 case $host_os in
17064 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17065 *) lt_sed_strip_eq="s,=/,/,g" ;;
17066 esac
17067 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17068 case $lt_search_path_spec in
17069 *\;*)
17070 # if the path contains ";" then we assume it to be the separator
17071 # otherwise default to the standard path separator (i.e. ":") - it is
17072 # assumed that no part of a normal pathname contains ";" but that should
17073 # okay in the real world where ";" in dirpaths is itself problematic.
17074 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17075 ;;
17076 *)
17077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17078 ;;
17079 esac
17080 # Ok, now we have the path, separated by spaces, we can step through it
17081 # and add multilib dir if necessary.
17082 lt_tmp_lt_search_path_spec=
17083 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17084 for lt_sys_path in $lt_search_path_spec; do
17085 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17087 else
17088 test -d "$lt_sys_path" && \
17089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17090 fi
17091 done
17092 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17093 BEGIN {RS=" "; FS="/|\n";} {
17094 lt_foo="";
17095 lt_count=0;
17096 for (lt_i = NF; lt_i > 0; lt_i--) {
17097 if ($lt_i != "" && $lt_i != ".") {
17098 if ($lt_i == "..") {
17099 lt_count++;
17100 } else {
17101 if (lt_count == 0) {
17102 lt_foo="/" $lt_i lt_foo;
17103 } else {
17104 lt_count--;
17105 }
17106 }
17107 }
17108 }
17109 if (lt_foo != "") { lt_freq[lt_foo]++; }
17110 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17111 }'`
17112 # AWK program above erroneously prepends '/' to C:/dos/paths
17113 # for these hosts.
17114 case $host_os in
17115 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17116 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17117 esac
17118 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17119 else
17120 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17121 fi
17122 library_names_spec=
17123 libname_spec='lib$name'
17124 soname_spec=
17125 shrext_cmds=".so"
17126 postinstall_cmds=
17127 postuninstall_cmds=
17128 finish_cmds=
17129 finish_eval=
17130 shlibpath_var=
17131 shlibpath_overrides_runpath=unknown
17132 version_type=none
17133 dynamic_linker="$host_os ld.so"
17134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17135 need_lib_prefix=unknown
17136 hardcode_into_libs=no
17137
17138 # when you set need_version to no, make sure it does not cause -set_version
17139 # flags to be left without arguments
17140 need_version=unknown
17141
17142 case $host_os in
17143 aix3*)
17144 version_type=linux
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17146 shlibpath_var=LIBPATH
17147
17148 # AIX 3 has no versioning support, so we append a major version to the name.
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 ;;
17151
17152 aix[4-9]*)
17153 version_type=linux
17154 need_lib_prefix=no
17155 need_version=no
17156 hardcode_into_libs=yes
17157 if test "$host_cpu" = ia64; then
17158 # AIX 5 supports IA64
17159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 else
17162 # With GCC up to 2.95.x, collect2 would create an import file
17163 # for dependence libraries. The import file would start with
17164 # the line `#! .'. This would cause the generated library to
17165 # depend on `.', always an invalid library. This was fixed in
17166 # development snapshots of GCC prior to 3.0.
17167 case $host_os in
17168 aix4 | aix4.[01] | aix4.[01].*)
17169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17170 echo ' yes '
17171 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17172 :
17173 else
17174 can_build_shared=no
17175 fi
17176 ;;
17177 esac
17178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17179 # soname into executable. Probably we can add versioning support to
17180 # collect2, so additional links can be useful in future.
17181 if test "$aix_use_runtimelinking" = yes; then
17182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17183 # instead of lib<name>.a to let people know that these are not
17184 # typical AIX shared libraries.
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 else
17187 # We preserve .a as extension for shared libraries through AIX4.2
17188 # and later when we are not doing run time linking.
17189 library_names_spec='${libname}${release}.a $libname.a'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 fi
17192 shlibpath_var=LIBPATH
17193 fi
17194 ;;
17195
17196 amigaos*)
17197 case $host_cpu in
17198 powerpc)
17199 # Since July 2007 AmigaOS4 officially supports .so libraries.
17200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 ;;
17203 m68k)
17204 library_names_spec='$libname.ixlibrary $libname.a'
17205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17206 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'
17207 ;;
17208 esac
17209 ;;
17210
17211 beos*)
17212 library_names_spec='${libname}${shared_ext}'
17213 dynamic_linker="$host_os ld.so"
17214 shlibpath_var=LIBRARY_PATH
17215 ;;
17216
17217 bsdi[45]*)
17218 version_type=linux
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17226 # the default ld.so.conf also contains /usr/contrib/lib and
17227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17228 # libtool to hard-code these into programs
17229 ;;
17230
17231 cygwin* | mingw* | pw32* | cegcc*)
17232 version_type=windows
17233 shrext_cmds=".dll"
17234 need_version=no
17235 need_lib_prefix=no
17236
17237 case $GCC,$host_os in
17238 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17239 library_names_spec='$libname.dll.a'
17240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17241 postinstall_cmds='base_file=`basename \${file}`~
17242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17243 dldir=$destdir/`dirname \$dlpath`~
17244 test -d \$dldir || mkdir -p \$dldir~
17245 $install_prog $dir/$dlname \$dldir/$dlname~
17246 chmod a+x \$dldir/$dlname~
17247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17249 fi'
17250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17251 dlpath=$dir/\$dldll~
17252 $RM \$dlpath'
17253 shlibpath_overrides_runpath=yes
17254
17255 case $host_os in
17256 cygwin*)
17257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17258 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17259
17260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17261 ;;
17262 mingw* | cegcc*)
17263 # MinGW DLLs use traditional 'lib' prefix
17264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17265 ;;
17266 pw32*)
17267 # pw32 DLLs use 'pw' prefix rather than 'lib'
17268 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17269 ;;
17270 esac
17271 ;;
17272
17273 *)
17274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17275 ;;
17276 esac
17277 dynamic_linker='Win32 ld.exe'
17278 # FIXME: first we should search . and the directory the executable is in
17279 shlibpath_var=PATH
17280 ;;
17281
17282 darwin* | rhapsody*)
17283 dynamic_linker="$host_os dyld"
17284 version_type=darwin
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17288 soname_spec='${libname}${release}${major}$shared_ext'
17289 shlibpath_overrides_runpath=yes
17290 shlibpath_var=DYLD_LIBRARY_PATH
17291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17292
17293 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17295 ;;
17296
17297 dgux*)
17298 version_type=linux
17299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 ;;
17305
17306 freebsd* | dragonfly*)
17307 # DragonFly does not have aout. When/if they implement a new
17308 # versioning mechanism, adjust this.
17309 if test -x /usr/bin/objformat; then
17310 objformat=`/usr/bin/objformat`
17311 else
17312 case $host_os in
17313 freebsd[23].*) objformat=aout ;;
17314 *) objformat=elf ;;
17315 esac
17316 fi
17317 version_type=freebsd-$objformat
17318 case $version_type in
17319 freebsd-elf*)
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17321 need_version=no
17322 need_lib_prefix=no
17323 ;;
17324 freebsd-*)
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17326 need_version=yes
17327 ;;
17328 esac
17329 shlibpath_var=LD_LIBRARY_PATH
17330 case $host_os in
17331 freebsd2.*)
17332 shlibpath_overrides_runpath=yes
17333 ;;
17334 freebsd3.[01]* | freebsdelf3.[01]*)
17335 shlibpath_overrides_runpath=yes
17336 hardcode_into_libs=yes
17337 ;;
17338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17340 shlibpath_overrides_runpath=no
17341 hardcode_into_libs=yes
17342 ;;
17343 *) # from 4.6 on, and DragonFly
17344 shlibpath_overrides_runpath=yes
17345 hardcode_into_libs=yes
17346 ;;
17347 esac
17348 ;;
17349
17350 gnu*)
17351 version_type=linux
17352 need_lib_prefix=no
17353 need_version=no
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 hardcode_into_libs=yes
17358 ;;
17359
17360 haiku*)
17361 version_type=linux
17362 need_lib_prefix=no
17363 need_version=no
17364 dynamic_linker="$host_os runtime_loader"
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 shlibpath_var=LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17370 hardcode_into_libs=yes
17371 ;;
17372
17373 hpux9* | hpux10* | hpux11*)
17374 # Give a soname corresponding to the major version so that dld.sl refuses to
17375 # link against other versions.
17376 version_type=sunos
17377 need_lib_prefix=no
17378 need_version=no
17379 case $host_cpu in
17380 ia64*)
17381 shrext_cmds='.so'
17382 hardcode_into_libs=yes
17383 dynamic_linker="$host_os dld.so"
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 if test "X$HPUX_IA64_MODE" = X32; then
17389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17390 else
17391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17392 fi
17393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17394 ;;
17395 hppa*64*)
17396 shrext_cmds='.sl'
17397 hardcode_into_libs=yes
17398 dynamic_linker="$host_os dld.sl"
17399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17405 ;;
17406 *)
17407 shrext_cmds='.sl'
17408 dynamic_linker="$host_os dld.sl"
17409 shlibpath_var=SHLIB_PATH
17410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 ;;
17414 esac
17415 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17416 postinstall_cmds='chmod 555 $lib'
17417 # or fails outright, so override atomically:
17418 install_override_mode=555
17419 ;;
17420
17421 interix[3-9]*)
17422 version_type=linux
17423 need_lib_prefix=no
17424 need_version=no
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath=no
17430 hardcode_into_libs=yes
17431 ;;
17432
17433 irix5* | irix6* | nonstopux*)
17434 case $host_os in
17435 nonstopux*) version_type=nonstopux ;;
17436 *)
17437 if test "$lt_cv_prog_gnu_ld" = yes; then
17438 version_type=linux
17439 else
17440 version_type=irix
17441 fi ;;
17442 esac
17443 need_lib_prefix=no
17444 need_version=no
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17447 case $host_os in
17448 irix5* | nonstopux*)
17449 libsuff= shlibsuff=
17450 ;;
17451 *)
17452 case $LD in # libtool.m4 will add one of these switches to LD
17453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17454 libsuff= shlibsuff= libmagic=32-bit;;
17455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17456 libsuff=32 shlibsuff=N32 libmagic=N32;;
17457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17459 *) libsuff= shlibsuff= libmagic=never-match;;
17460 esac
17461 ;;
17462 esac
17463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17464 shlibpath_overrides_runpath=no
17465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17467 hardcode_into_libs=yes
17468 ;;
17469
17470 # No shared lib support for Linux oldld, aout, or coff.
17471 linux*oldld* | linux*aout* | linux*coff*)
17472 dynamic_linker=no
17473 ;;
17474
17475 # This must be Linux ELF.
17476 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 shlibpath_overrides_runpath=no
17485
17486 # Some binutils ld are patched to set DT_RUNPATH
17487 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17488 $as_echo_n "(cached) " >&6
17489 else
17490 lt_cv_shlibpath_overrides_runpath=no
17491 save_LDFLAGS=$LDFLAGS
17492 save_libdir=$libdir
17493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17497
17498 int
17499 main ()
17500 {
17501
17502 ;
17503 return 0;
17504 }
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17508 lt_cv_shlibpath_overrides_runpath=yes
17509 fi
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LDFLAGS=$save_LDFLAGS
17514 libdir=$save_libdir
17515
17516 fi
17517
17518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17519
17520 # This implies no fast_install, which is unacceptable.
17521 # Some rework will be needed to allow for fast_install
17522 # before this can be enabled.
17523 hardcode_into_libs=yes
17524
17525 # Append ld.so.conf contents to the search path
17526 if test -f /etc/ld.so.conf; then
17527 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' ' '`
17528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17529 fi
17530
17531 # We used to test for /lib/ld.so.1 and disable shared libraries on
17532 # powerpc, because MkLinux only supported shared libraries with the
17533 # GNU dynamic linker. Since this was broken with cross compilers,
17534 # most powerpc-linux boxes support dynamic linking these days and
17535 # people can always --disable-shared, the test was removed, and we
17536 # assume the GNU/Linux dynamic linker is in use.
17537 dynamic_linker='GNU/Linux ld.so'
17538 ;;
17539
17540 netbsd*)
17541 version_type=sunos
17542 need_lib_prefix=no
17543 need_version=no
17544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17547 dynamic_linker='NetBSD (a.out) ld.so'
17548 else
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 dynamic_linker='NetBSD ld.elf_so'
17552 fi
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17555 hardcode_into_libs=yes
17556 ;;
17557
17558 newsos6)
17559 version_type=linux
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=yes
17563 ;;
17564
17565 *nto* | *qnx*)
17566 version_type=qnx
17567 need_lib_prefix=no
17568 need_version=no
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath=no
17573 hardcode_into_libs=yes
17574 dynamic_linker='ldqnx.so'
17575 ;;
17576
17577 openbsd*)
17578 version_type=sunos
17579 sys_lib_dlsearch_path_spec="/usr/lib"
17580 need_lib_prefix=no
17581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17582 case $host_os in
17583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17584 *) need_version=no ;;
17585 esac
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17590 case $host_os in
17591 openbsd2.[89] | openbsd2.[89].*)
17592 shlibpath_overrides_runpath=no
17593 ;;
17594 *)
17595 shlibpath_overrides_runpath=yes
17596 ;;
17597 esac
17598 else
17599 shlibpath_overrides_runpath=yes
17600 fi
17601 ;;
17602
17603 os2*)
17604 libname_spec='$name'
17605 shrext_cmds=".dll"
17606 need_lib_prefix=no
17607 library_names_spec='$libname${shared_ext} $libname.a'
17608 dynamic_linker='OS/2 ld.exe'
17609 shlibpath_var=LIBPATH
17610 ;;
17611
17612 osf3* | osf4* | osf5*)
17613 version_type=osf
17614 need_lib_prefix=no
17615 need_version=no
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17621 ;;
17622
17623 rdos*)
17624 dynamic_linker=no
17625 ;;
17626
17627 solaris*)
17628 version_type=linux
17629 need_lib_prefix=no
17630 need_version=no
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17636 # ldd complains unless libraries are executable
17637 postinstall_cmds='chmod +x $lib'
17638 ;;
17639
17640 sunos4*)
17641 version_type=sunos
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes
17646 if test "$with_gnu_ld" = yes; then
17647 need_lib_prefix=no
17648 fi
17649 need_version=yes
17650 ;;
17651
17652 sysv4 | sysv4.3*)
17653 version_type=linux
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 case $host_vendor in
17658 sni)
17659 shlibpath_overrides_runpath=no
17660 need_lib_prefix=no
17661 runpath_var=LD_RUN_PATH
17662 ;;
17663 siemens)
17664 need_lib_prefix=no
17665 ;;
17666 motorola)
17667 need_lib_prefix=no
17668 need_version=no
17669 shlibpath_overrides_runpath=no
17670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17671 ;;
17672 esac
17673 ;;
17674
17675 sysv4*MP*)
17676 if test -d /usr/nec ;then
17677 version_type=linux
17678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17679 soname_spec='$libname${shared_ext}.$major'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 fi
17682 ;;
17683
17684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17685 version_type=freebsd-elf
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 shlibpath_overrides_runpath=yes
17692 hardcode_into_libs=yes
17693 if test "$with_gnu_ld" = yes; then
17694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17695 else
17696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17697 case $host_os in
17698 sco3.2v5*)
17699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17700 ;;
17701 esac
17702 fi
17703 sys_lib_dlsearch_path_spec='/usr/lib'
17704 ;;
17705
17706 tpf*)
17707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=no
17714 hardcode_into_libs=yes
17715 ;;
17716
17717 uts4*)
17718 version_type=linux
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 ;;
17723
17724 *)
17725 dynamic_linker=no
17726 ;;
17727 esac
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17729 $as_echo "$dynamic_linker" >&6; }
17730 test "$dynamic_linker" = no && can_build_shared=no
17731
17732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17733 if test "$GCC" = yes; then
17734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17735 fi
17736
17737 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17739 fi
17740 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17742 fi
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17837 hardcode_action=
17838 if test -n "$hardcode_libdir_flag_spec" ||
17839 test -n "$runpath_var" ||
17840 test "X$hardcode_automatic" = "Xyes" ; then
17841
17842 # We can hardcode non-existent directories.
17843 if test "$hardcode_direct" != no &&
17844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17845 # have to relink, otherwise we might link with an installed library
17846 # when we should be linking with a yet-to-be-installed one
17847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17848 test "$hardcode_minus_L" != no; then
17849 # Linking always hardcodes the temporary library directory.
17850 hardcode_action=relink
17851 else
17852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17853 hardcode_action=immediate
17854 fi
17855 else
17856 # We cannot hardcode anything, or else we can only hardcode existing
17857 # directories.
17858 hardcode_action=unsupported
17859 fi
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17861 $as_echo "$hardcode_action" >&6; }
17862
17863 if test "$hardcode_action" = relink ||
17864 test "$inherit_rpath" = yes; then
17865 # Fast installation is not supported
17866 enable_fast_install=no
17867 elif test "$shlibpath_overrides_runpath" = yes ||
17868 test "$enable_shared" = no; then
17869 # Fast installation is not necessary
17870 enable_fast_install=needless
17871 fi
17872
17873
17874
17875
17876
17877
17878 if test "x$enable_dlopen" != xyes; then
17879 enable_dlopen=unknown
17880 enable_dlopen_self=unknown
17881 enable_dlopen_self_static=unknown
17882 else
17883 lt_cv_dlopen=no
17884 lt_cv_dlopen_libs=
17885
17886 case $host_os in
17887 beos*)
17888 lt_cv_dlopen="load_add_on"
17889 lt_cv_dlopen_libs=
17890 lt_cv_dlopen_self=yes
17891 ;;
17892
17893 mingw* | pw32* | cegcc*)
17894 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen_libs=
17896 ;;
17897
17898 cygwin*)
17899 lt_cv_dlopen="dlopen"
17900 lt_cv_dlopen_libs=
17901 ;;
17902
17903 darwin*)
17904 # if libdl is installed we need to link against it
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldl $LIBS"
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17914
17915 /* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char dlopen ();
17922 int
17923 main ()
17924 {
17925 return dlopen ();
17926 ;
17927 return 0;
17928 }
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931 ac_cv_lib_dl_dlopen=yes
17932 else
17933 ac_cv_lib_dl_dlopen=no
17934 fi
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17938 fi
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17941 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17943 else
17944
17945 lt_cv_dlopen="dyld"
17946 lt_cv_dlopen_libs=
17947 lt_cv_dlopen_self=yes
17948
17949 fi
17950
17951 ;;
17952
17953 *)
17954 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17955 if test "x$ac_cv_func_shl_load" = x""yes; then :
17956 lt_cv_dlopen="shl_load"
17957 else
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17959 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17960 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17961 $as_echo_n "(cached) " >&6
17962 else
17963 ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-ldld $LIBS"
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char shl_load ();
17975 int
17976 main ()
17977 {
17978 return shl_load ();
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17984 ac_cv_lib_dld_shl_load=yes
17985 else
17986 ac_cv_lib_dld_shl_load=no
17987 fi
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 LIBS=$ac_check_lib_save_LIBS
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17993 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17994 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17996 else
17997 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17998 if test "x$ac_cv_func_dlopen" = x""yes; then :
17999 lt_cv_dlopen="dlopen"
18000 else
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18002 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18004 $as_echo_n "(cached) " >&6
18005 else
18006 ac_check_lib_save_LIBS=$LIBS
18007 LIBS="-ldl $LIBS"
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char dlopen ();
18018 int
18019 main ()
18020 {
18021 return dlopen ();
18022 ;
18023 return 0;
18024 }
18025 _ACEOF
18026 if ac_fn_c_try_link "$LINENO"; then :
18027 ac_cv_lib_dl_dlopen=yes
18028 else
18029 ac_cv_lib_dl_dlopen=no
18030 fi
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18033 LIBS=$ac_check_lib_save_LIBS
18034 fi
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18036 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18037 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18041 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 ac_check_lib_save_LIBS=$LIBS
18046 LIBS="-lsvld $LIBS"
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 char dlopen ();
18057 int
18058 main ()
18059 {
18060 return dlopen ();
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_link "$LINENO"; then :
18066 ac_cv_lib_svld_dlopen=yes
18067 else
18068 ac_cv_lib_svld_dlopen=no
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072 LIBS=$ac_check_lib_save_LIBS
18073 fi
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18075 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18076 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18078 else
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18080 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 ac_check_lib_save_LIBS=$LIBS
18085 LIBS="-ldld $LIBS"
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088
18089 /* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char dld_link ();
18096 int
18097 main ()
18098 {
18099 return dld_link ();
18100 ;
18101 return 0;
18102 }
18103 _ACEOF
18104 if ac_fn_c_try_link "$LINENO"; then :
18105 ac_cv_lib_dld_dld_link=yes
18106 else
18107 ac_cv_lib_dld_dld_link=no
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18112 fi
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18114 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18115 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18117 fi
18118
18119
18120 fi
18121
18122
18123 fi
18124
18125
18126 fi
18127
18128
18129 fi
18130
18131
18132 fi
18133
18134 ;;
18135 esac
18136
18137 if test "x$lt_cv_dlopen" != xno; then
18138 enable_dlopen=yes
18139 else
18140 enable_dlopen=no
18141 fi
18142
18143 case $lt_cv_dlopen in
18144 dlopen)
18145 save_CPPFLAGS="$CPPFLAGS"
18146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18147
18148 save_LDFLAGS="$LDFLAGS"
18149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18150
18151 save_LIBS="$LIBS"
18152 LIBS="$lt_cv_dlopen_libs $LIBS"
18153
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18155 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18156 if test "${lt_cv_dlopen_self+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 if test "$cross_compiling" = yes; then :
18160 lt_cv_dlopen_self=cross
18161 else
18162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18163 lt_status=$lt_dlunknown
18164 cat > conftest.$ac_ext <<_LT_EOF
18165 #line 18165 "configure"
18166 #include "confdefs.h"
18167
18168 #if HAVE_DLFCN_H
18169 #include <dlfcn.h>
18170 #endif
18171
18172 #include <stdio.h>
18173
18174 #ifdef RTLD_GLOBAL
18175 # define LT_DLGLOBAL RTLD_GLOBAL
18176 #else
18177 # ifdef DL_GLOBAL
18178 # define LT_DLGLOBAL DL_GLOBAL
18179 # else
18180 # define LT_DLGLOBAL 0
18181 # endif
18182 #endif
18183
18184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18185 find out it does not work in some platform. */
18186 #ifndef LT_DLLAZY_OR_NOW
18187 # ifdef RTLD_LAZY
18188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18189 # else
18190 # ifdef DL_LAZY
18191 # define LT_DLLAZY_OR_NOW DL_LAZY
18192 # else
18193 # ifdef RTLD_NOW
18194 # define LT_DLLAZY_OR_NOW RTLD_NOW
18195 # else
18196 # ifdef DL_NOW
18197 # define LT_DLLAZY_OR_NOW DL_NOW
18198 # else
18199 # define LT_DLLAZY_OR_NOW 0
18200 # endif
18201 # endif
18202 # endif
18203 # endif
18204 #endif
18205
18206 /* When -fvisbility=hidden is used, assume the code has been annotated
18207 correspondingly for the symbols needed. */
18208 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18209 void fnord () __attribute__((visibility("default")));
18210 #endif
18211
18212 void fnord () { int i=42; }
18213 int main ()
18214 {
18215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18216 int status = $lt_dlunknown;
18217
18218 if (self)
18219 {
18220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18221 else
18222 {
18223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18224 else puts (dlerror ());
18225 }
18226 /* dlclose (self); */
18227 }
18228 else
18229 puts (dlerror ());
18230
18231 return status;
18232 }
18233 _LT_EOF
18234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18235 (eval $ac_link) 2>&5
18236 ac_status=$?
18237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18238 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18239 (./conftest; exit; ) >&5 2>/dev/null
18240 lt_status=$?
18241 case x$lt_status in
18242 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18243 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18244 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18245 esac
18246 else :
18247 # compilation failed
18248 lt_cv_dlopen_self=no
18249 fi
18250 fi
18251 rm -fr conftest*
18252
18253
18254 fi
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18256 $as_echo "$lt_cv_dlopen_self" >&6; }
18257
18258 if test "x$lt_cv_dlopen_self" = xyes; then
18259 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18261 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18262 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18265 if test "$cross_compiling" = yes; then :
18266 lt_cv_dlopen_self_static=cross
18267 else
18268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18269 lt_status=$lt_dlunknown
18270 cat > conftest.$ac_ext <<_LT_EOF
18271 #line 18271 "configure"
18272 #include "confdefs.h"
18273
18274 #if HAVE_DLFCN_H
18275 #include <dlfcn.h>
18276 #endif
18277
18278 #include <stdio.h>
18279
18280 #ifdef RTLD_GLOBAL
18281 # define LT_DLGLOBAL RTLD_GLOBAL
18282 #else
18283 # ifdef DL_GLOBAL
18284 # define LT_DLGLOBAL DL_GLOBAL
18285 # else
18286 # define LT_DLGLOBAL 0
18287 # endif
18288 #endif
18289
18290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18291 find out it does not work in some platform. */
18292 #ifndef LT_DLLAZY_OR_NOW
18293 # ifdef RTLD_LAZY
18294 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18295 # else
18296 # ifdef DL_LAZY
18297 # define LT_DLLAZY_OR_NOW DL_LAZY
18298 # else
18299 # ifdef RTLD_NOW
18300 # define LT_DLLAZY_OR_NOW RTLD_NOW
18301 # else
18302 # ifdef DL_NOW
18303 # define LT_DLLAZY_OR_NOW DL_NOW
18304 # else
18305 # define LT_DLLAZY_OR_NOW 0
18306 # endif
18307 # endif
18308 # endif
18309 # endif
18310 #endif
18311
18312 /* When -fvisbility=hidden is used, assume the code has been annotated
18313 correspondingly for the symbols needed. */
18314 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18315 void fnord () __attribute__((visibility("default")));
18316 #endif
18317
18318 void fnord () { int i=42; }
18319 int main ()
18320 {
18321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18322 int status = $lt_dlunknown;
18323
18324 if (self)
18325 {
18326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18327 else
18328 {
18329 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18330 else puts (dlerror ());
18331 }
18332 /* dlclose (self); */
18333 }
18334 else
18335 puts (dlerror ());
18336
18337 return status;
18338 }
18339 _LT_EOF
18340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18341 (eval $ac_link) 2>&5
18342 ac_status=$?
18343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18344 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18345 (./conftest; exit; ) >&5 2>/dev/null
18346 lt_status=$?
18347 case x$lt_status in
18348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18350 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18351 esac
18352 else :
18353 # compilation failed
18354 lt_cv_dlopen_self_static=no
18355 fi
18356 fi
18357 rm -fr conftest*
18358
18359
18360 fi
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18362 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18363 fi
18364
18365 CPPFLAGS="$save_CPPFLAGS"
18366 LDFLAGS="$save_LDFLAGS"
18367 LIBS="$save_LIBS"
18368 ;;
18369 esac
18370
18371 case $lt_cv_dlopen_self in
18372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18373 *) enable_dlopen_self=unknown ;;
18374 esac
18375
18376 case $lt_cv_dlopen_self_static in
18377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18378 *) enable_dlopen_self_static=unknown ;;
18379 esac
18380 fi
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398 striplib=
18399 old_striplib=
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18401 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18402 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 else
18408 # FIXME - insert some real tests, host_os isn't really good enough
18409 case $host_os in
18410 darwin*)
18411 if test -n "$STRIP" ; then
18412 striplib="$STRIP -x"
18413 old_striplib="$STRIP -S"
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18415 $as_echo "yes" >&6; }
18416 else
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18419 fi
18420 ;;
18421 *)
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424 ;;
18425 esac
18426 fi
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439 # Report which library types will actually be built
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18441 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18443 $as_echo "$can_build_shared" >&6; }
18444
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18446 $as_echo_n "checking whether to build shared libraries... " >&6; }
18447 test "$can_build_shared" = "no" && enable_shared=no
18448
18449 # On AIX, shared libraries and static libraries use the same namespace, and
18450 # are all built from PIC.
18451 case $host_os in
18452 aix3*)
18453 test "$enable_shared" = yes && enable_static=no
18454 if test -n "$RANLIB"; then
18455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18456 postinstall_cmds='$RANLIB $lib'
18457 fi
18458 ;;
18459
18460 aix[4-9]*)
18461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18462 test "$enable_shared" = yes && enable_static=no
18463 fi
18464 ;;
18465 esac
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18467 $as_echo "$enable_shared" >&6; }
18468
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18470 $as_echo_n "checking whether to build static libraries... " >&6; }
18471 # Make sure either enable_shared or enable_static is yes.
18472 test "$enable_shared" = yes || enable_static=yes
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18474 $as_echo "$enable_static" >&6; }
18475
18476
18477
18478
18479 fi
18480 ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486 CC="$lt_save_CC"
18487
18488 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18489 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18490 (test "X$CXX" != "Xg++"))) ; then
18491 ac_ext=cpp
18492 ac_cpp='$CXXCPP $CPPFLAGS'
18493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18497 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18498 if test -z "$CXXCPP"; then
18499 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18500 $as_echo_n "(cached) " >&6
18501 else
18502 # Double quotes because CXXCPP needs to be expanded
18503 for CXXCPP in "$CXX -E" "/lib/cpp"
18504 do
18505 ac_preproc_ok=false
18506 for ac_cxx_preproc_warn_flag in '' yes
18507 do
18508 # Use a header file that comes with gcc, so configuring glibc
18509 # with a fresh cross-compiler works.
18510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18511 # <limits.h> exists even on freestanding compilers.
18512 # On the NeXT, cc -E runs the code through the compiler's parser,
18513 # not just through cpp. "Syntax error" is here to catch this case.
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516 #ifdef __STDC__
18517 # include <limits.h>
18518 #else
18519 # include <assert.h>
18520 #endif
18521 Syntax error
18522 _ACEOF
18523 if ac_fn_cxx_try_cpp "$LINENO"; then :
18524
18525 else
18526 # Broken: fails on valid input.
18527 continue
18528 fi
18529 rm -f conftest.err conftest.$ac_ext
18530
18531 # OK, works on sane cases. Now check whether nonexistent headers
18532 # can be detected and how.
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535 #include <ac_nonexistent.h>
18536 _ACEOF
18537 if ac_fn_cxx_try_cpp "$LINENO"; then :
18538 # Broken: success on invalid input.
18539 continue
18540 else
18541 # Passes both tests.
18542 ac_preproc_ok=:
18543 break
18544 fi
18545 rm -f conftest.err conftest.$ac_ext
18546
18547 done
18548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18549 rm -f conftest.err conftest.$ac_ext
18550 if $ac_preproc_ok; then :
18551 break
18552 fi
18553
18554 done
18555 ac_cv_prog_CXXCPP=$CXXCPP
18556
18557 fi
18558 CXXCPP=$ac_cv_prog_CXXCPP
18559 else
18560 ac_cv_prog_CXXCPP=$CXXCPP
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18563 $as_echo "$CXXCPP" >&6; }
18564 ac_preproc_ok=false
18565 for ac_cxx_preproc_warn_flag in '' yes
18566 do
18567 # Use a header file that comes with gcc, so configuring glibc
18568 # with a fresh cross-compiler works.
18569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570 # <limits.h> exists even on freestanding compilers.
18571 # On the NeXT, cc -E runs the code through the compiler's parser,
18572 # not just through cpp. "Syntax error" is here to catch this case.
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575 #ifdef __STDC__
18576 # include <limits.h>
18577 #else
18578 # include <assert.h>
18579 #endif
18580 Syntax error
18581 _ACEOF
18582 if ac_fn_cxx_try_cpp "$LINENO"; then :
18583
18584 else
18585 # Broken: fails on valid input.
18586 continue
18587 fi
18588 rm -f conftest.err conftest.$ac_ext
18589
18590 # OK, works on sane cases. Now check whether nonexistent headers
18591 # can be detected and how.
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18594 #include <ac_nonexistent.h>
18595 _ACEOF
18596 if ac_fn_cxx_try_cpp "$LINENO"; then :
18597 # Broken: success on invalid input.
18598 continue
18599 else
18600 # Passes both tests.
18601 ac_preproc_ok=:
18602 break
18603 fi
18604 rm -f conftest.err conftest.$ac_ext
18605
18606 done
18607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18608 rm -f conftest.err conftest.$ac_ext
18609 if $ac_preproc_ok; then :
18610
18611 else
18612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18614 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18615 See \`config.log' for more details." "$LINENO" 5; }
18616 fi
18617
18618 ac_ext=c
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623
18624 else
18625 _lt_caught_CXX_error=yes
18626 fi
18627
18628 ac_ext=cpp
18629 ac_cpp='$CXXCPP $CPPFLAGS'
18630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18633
18634 archive_cmds_need_lc_CXX=no
18635 allow_undefined_flag_CXX=
18636 always_export_symbols_CXX=no
18637 archive_expsym_cmds_CXX=
18638 compiler_needs_object_CXX=no
18639 export_dynamic_flag_spec_CXX=
18640 hardcode_direct_CXX=no
18641 hardcode_direct_absolute_CXX=no
18642 hardcode_libdir_flag_spec_CXX=
18643 hardcode_libdir_flag_spec_ld_CXX=
18644 hardcode_libdir_separator_CXX=
18645 hardcode_minus_L_CXX=no
18646 hardcode_shlibpath_var_CXX=unsupported
18647 hardcode_automatic_CXX=no
18648 inherit_rpath_CXX=no
18649 module_cmds_CXX=
18650 module_expsym_cmds_CXX=
18651 link_all_deplibs_CXX=unknown
18652 old_archive_cmds_CXX=$old_archive_cmds
18653 reload_flag_CXX=$reload_flag
18654 reload_cmds_CXX=$reload_cmds
18655 no_undefined_flag_CXX=
18656 whole_archive_flag_spec_CXX=
18657 enable_shared_with_static_runtimes_CXX=no
18658
18659 # Source file extension for C++ test sources.
18660 ac_ext=cpp
18661
18662 # Object file extension for compiled C++ test sources.
18663 objext=o
18664 objext_CXX=$objext
18665
18666 # No sense in running all these tests if we already determined that
18667 # the CXX compiler isn't working. Some variables (like enable_shared)
18668 # are currently assumed to apply to all compilers on this platform,
18669 # and will be corrupted by setting them based on a non-working compiler.
18670 if test "$_lt_caught_CXX_error" != yes; then
18671 # Code to be used in simple compile tests
18672 lt_simple_compile_test_code="int some_variable = 0;"
18673
18674 # Code to be used in simple link tests
18675 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18676
18677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18678
18679
18680
18681
18682
18683
18684 # If no C compiler was specified, use CC.
18685 LTCC=${LTCC-"$CC"}
18686
18687 # If no C compiler flags were specified, use CFLAGS.
18688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18689
18690 # Allow CC to be a program name with arguments.
18691 compiler=$CC
18692
18693
18694 # save warnings/boilerplate of simple test code
18695 ac_outfile=conftest.$ac_objext
18696 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18698 _lt_compiler_boilerplate=`cat conftest.err`
18699 $RM conftest*
18700
18701 ac_outfile=conftest.$ac_objext
18702 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18704 _lt_linker_boilerplate=`cat conftest.err`
18705 $RM -r conftest*
18706
18707
18708 # Allow CC to be a program name with arguments.
18709 lt_save_CC=$CC
18710 lt_save_LD=$LD
18711 lt_save_GCC=$GCC
18712 GCC=$GXX
18713 lt_save_with_gnu_ld=$with_gnu_ld
18714 lt_save_path_LD=$lt_cv_path_LD
18715 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18716 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18717 else
18718 $as_unset lt_cv_prog_gnu_ld
18719 fi
18720 if test -n "${lt_cv_path_LDCXX+set}"; then
18721 lt_cv_path_LD=$lt_cv_path_LDCXX
18722 else
18723 $as_unset lt_cv_path_LD
18724 fi
18725 test -z "${LDCXX+set}" || LD=$LDCXX
18726 CC=${CXX-"c++"}
18727 compiler=$CC
18728 compiler_CXX=$CC
18729 for cc_temp in $compiler""; do
18730 case $cc_temp in
18731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18733 \-*) ;;
18734 *) break;;
18735 esac
18736 done
18737 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18738
18739
18740 if test -n "$compiler"; then
18741 # We don't want -fno-exception when compiling C++ code, so set the
18742 # no_builtin_flag separately
18743 if test "$GXX" = yes; then
18744 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18745 else
18746 lt_prog_compiler_no_builtin_flag_CXX=
18747 fi
18748
18749 if test "$GXX" = yes; then
18750 # Set up default GNU C++ configuration
18751
18752
18753
18754 # Check whether --with-gnu-ld was given.
18755 if test "${with_gnu_ld+set}" = set; then :
18756 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18757 else
18758 with_gnu_ld=no
18759 fi
18760
18761 ac_prog=ld
18762 if test "$GCC" = yes; then
18763 # Check if gcc -print-prog-name=ld gives a path.
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18765 $as_echo_n "checking for ld used by $CC... " >&6; }
18766 case $host in
18767 *-*-mingw*)
18768 # gcc leaves a trailing carriage return which upsets mingw
18769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18770 *)
18771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18772 esac
18773 case $ac_prog in
18774 # Accept absolute paths.
18775 [\\/]* | ?:[\\/]*)
18776 re_direlt='/[^/][^/]*/\.\./'
18777 # Canonicalize the pathname of ld
18778 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18779 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18780 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18781 done
18782 test -z "$LD" && LD="$ac_prog"
18783 ;;
18784 "")
18785 # If it fails, then pretend we aren't using GCC.
18786 ac_prog=ld
18787 ;;
18788 *)
18789 # If it is relative, then search for the first ld in PATH.
18790 with_gnu_ld=unknown
18791 ;;
18792 esac
18793 elif test "$with_gnu_ld" = yes; then
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18795 $as_echo_n "checking for GNU ld... " >&6; }
18796 else
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18798 $as_echo_n "checking for non-GNU ld... " >&6; }
18799 fi
18800 if test "${lt_cv_path_LD+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 if test -z "$LD"; then
18804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18805 for ac_dir in $PATH; do
18806 IFS="$lt_save_ifs"
18807 test -z "$ac_dir" && ac_dir=.
18808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18809 lt_cv_path_LD="$ac_dir/$ac_prog"
18810 # Check to see if the program is GNU ld. I'd rather use --version,
18811 # but apparently some variants of GNU ld only accept -v.
18812 # Break only if it was the GNU/non-GNU ld that we prefer.
18813 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18814 *GNU* | *'with BFD'*)
18815 test "$with_gnu_ld" != no && break
18816 ;;
18817 *)
18818 test "$with_gnu_ld" != yes && break
18819 ;;
18820 esac
18821 fi
18822 done
18823 IFS="$lt_save_ifs"
18824 else
18825 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18826 fi
18827 fi
18828
18829 LD="$lt_cv_path_LD"
18830 if test -n "$LD"; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18832 $as_echo "$LD" >&6; }
18833 else
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835 $as_echo "no" >&6; }
18836 fi
18837 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18839 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18840 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18844 case `$LD -v 2>&1 </dev/null` in
18845 *GNU* | *'with BFD'*)
18846 lt_cv_prog_gnu_ld=yes
18847 ;;
18848 *)
18849 lt_cv_prog_gnu_ld=no
18850 ;;
18851 esac
18852 fi
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18854 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18855 with_gnu_ld=$lt_cv_prog_gnu_ld
18856
18857
18858
18859
18860
18861
18862
18863 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18864 # archiving commands below assume that GNU ld is being used.
18865 if test "$with_gnu_ld" = yes; then
18866 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18867 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'
18868
18869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18871
18872 # If archive_cmds runs LD, not CC, wlarc should be empty
18873 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18874 # investigate it a little bit more. (MM)
18875 wlarc='${wl}'
18876
18877 # ancient GNU ld didn't support --whole-archive et. al.
18878 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18879 $GREP 'no-whole-archive' > /dev/null; then
18880 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18881 else
18882 whole_archive_flag_spec_CXX=
18883 fi
18884 else
18885 with_gnu_ld=no
18886 wlarc=
18887
18888 # A generic and very simple default shared library creation
18889 # command for GNU C++ for the case where it uses the native
18890 # linker, instead of GNU ld. If possible, this setting should
18891 # overridden to take advantage of the native linker features on
18892 # the platform it is being used on.
18893 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18894 fi
18895
18896 # Commands to make compiler produce verbose output that lists
18897 # what "hidden" libraries, object files and flags are used when
18898 # linking a shared library.
18899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18900
18901 else
18902 GXX=no
18903 with_gnu_ld=no
18904 wlarc=
18905 fi
18906
18907 # PORTME: fill in a description of your system's C++ link characteristics
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18910 ld_shlibs_CXX=yes
18911 case $host_os in
18912 aix3*)
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18915 ;;
18916 aix[4-9]*)
18917 if test "$host_cpu" = ia64; then
18918 # On IA64, the linker does run time linking by default, so we don't
18919 # have to do anything special.
18920 aix_use_runtimelinking=no
18921 exp_sym_flag='-Bexport'
18922 no_entry_flag=""
18923 else
18924 aix_use_runtimelinking=no
18925
18926 # Test if we are trying to use run time linking or normal
18927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18928 # need to do runtime linking.
18929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18930 for ld_flag in $LDFLAGS; do
18931 case $ld_flag in
18932 *-brtl*)
18933 aix_use_runtimelinking=yes
18934 break
18935 ;;
18936 esac
18937 done
18938 ;;
18939 esac
18940
18941 exp_sym_flag='-bexport'
18942 no_entry_flag='-bnoentry'
18943 fi
18944
18945 # When large executables or shared objects are built, AIX ld can
18946 # have problems creating the table of contents. If linking a library
18947 # or program results in "error TOC overflow" add -mminimal-toc to
18948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18950
18951 archive_cmds_CXX=''
18952 hardcode_direct_CXX=yes
18953 hardcode_direct_absolute_CXX=yes
18954 hardcode_libdir_separator_CXX=':'
18955 link_all_deplibs_CXX=yes
18956 file_list_spec_CXX='${wl}-f,'
18957
18958 if test "$GXX" = yes; then
18959 case $host_os in aix4.[012]|aix4.[012].*)
18960 # We only want to do this on AIX 4.2 and lower, the check
18961 # below for broken collect2 doesn't work under 4.3+
18962 collect2name=`${CC} -print-prog-name=collect2`
18963 if test -f "$collect2name" &&
18964 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18965 then
18966 # We have reworked collect2
18967 :
18968 else
18969 # We have old collect2
18970 hardcode_direct_CXX=unsupported
18971 # It fails to find uninstalled libraries when the uninstalled
18972 # path is not listed in the libpath. Setting hardcode_minus_L
18973 # to unsupported forces relinking
18974 hardcode_minus_L_CXX=yes
18975 hardcode_libdir_flag_spec_CXX='-L$libdir'
18976 hardcode_libdir_separator_CXX=
18977 fi
18978 esac
18979 shared_flag='-shared'
18980 if test "$aix_use_runtimelinking" = yes; then
18981 shared_flag="$shared_flag "'${wl}-G'
18982 fi
18983 else
18984 # not using gcc
18985 if test "$host_cpu" = ia64; then
18986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18987 # chokes on -Wl,-G. The following line is correct:
18988 shared_flag='-G'
18989 else
18990 if test "$aix_use_runtimelinking" = yes; then
18991 shared_flag='${wl}-G'
18992 else
18993 shared_flag='${wl}-bM:SRE'
18994 fi
18995 fi
18996 fi
18997
18998 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18999 # It seems that -bexpall does not export symbols beginning with
19000 # underscore (_), so it is better to generate a list of symbols to
19001 # export.
19002 always_export_symbols_CXX=yes
19003 if test "$aix_use_runtimelinking" = yes; then
19004 # Warning - without using the other runtime loading flags (-brtl),
19005 # -berok will link without error, but may produce a broken library.
19006 allow_undefined_flag_CXX='-berok'
19007 # Determine the default libpath from the value encoded in an empty
19008 # executable.
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19011
19012 int
19013 main ()
19014 {
19015
19016 ;
19017 return 0;
19018 }
19019 _ACEOF
19020 if ac_fn_cxx_try_link "$LINENO"; then :
19021
19022 lt_aix_libpath_sed='
19023 /Import File Strings/,/^$/ {
19024 /^0/ {
19025 s/^0 *\(.*\)$/\1/
19026 p
19027 }
19028 }'
19029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19030 # Check for a 64-bit object if we didn't find anything.
19031 if test -z "$aix_libpath"; then
19032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19033 fi
19034 fi
19035 rm -f core conftest.err conftest.$ac_objext \
19036 conftest$ac_exeext conftest.$ac_ext
19037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19038
19039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19040
19041 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"
19042 else
19043 if test "$host_cpu" = ia64; then
19044 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19045 allow_undefined_flag_CXX="-z nodefs"
19046 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"
19047 else
19048 # Determine the default libpath from the value encoded in an
19049 # empty executable.
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19052
19053 int
19054 main ()
19055 {
19056
19057 ;
19058 return 0;
19059 }
19060 _ACEOF
19061 if ac_fn_cxx_try_link "$LINENO"; then :
19062
19063 lt_aix_libpath_sed='
19064 /Import File Strings/,/^$/ {
19065 /^0/ {
19066 s/^0 *\(.*\)$/\1/
19067 p
19068 }
19069 }'
19070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19071 # Check for a 64-bit object if we didn't find anything.
19072 if test -z "$aix_libpath"; then
19073 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19074 fi
19075 fi
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19079
19080 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19081 # Warning - without using the other run time loading flags,
19082 # -berok will link without error, but may produce a broken library.
19083 no_undefined_flag_CXX=' ${wl}-bernotok'
19084 allow_undefined_flag_CXX=' ${wl}-berok'
19085 if test "$with_gnu_ld" = yes; then
19086 # We only use this code for GNU lds that support --whole-archive.
19087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19088 else
19089 # Exported symbols can be pulled into shared objects from archives
19090 whole_archive_flag_spec_CXX='$convenience'
19091 fi
19092 archive_cmds_need_lc_CXX=yes
19093 # This is similar to how AIX traditionally builds its shared
19094 # libraries.
19095 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'
19096 fi
19097 fi
19098 ;;
19099
19100 beos*)
19101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19102 allow_undefined_flag_CXX=unsupported
19103 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
19104 # support --undefined. This deserves some investigation. FIXME
19105 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 else
19107 ld_shlibs_CXX=no
19108 fi
19109 ;;
19110
19111 chorus*)
19112 case $cc_basename in
19113 *)
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
19117 esac
19118 ;;
19119
19120 cygwin* | mingw* | pw32* | cegcc*)
19121 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19122 # as there is no search path for DLLs.
19123 hardcode_libdir_flag_spec_CXX='-L$libdir'
19124 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19125 allow_undefined_flag_CXX=unsupported
19126 always_export_symbols_CXX=no
19127 enable_shared_with_static_runtimes_CXX=yes
19128
19129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19130 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'
19131 # If the export-symbols file already is a .def file (1st line
19132 # is EXPORTS), use it as is; otherwise, prepend...
19133 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19134 cp $export_symbols $output_objdir/$soname.def;
19135 else
19136 echo EXPORTS > $output_objdir/$soname.def;
19137 cat $export_symbols >> $output_objdir/$soname.def;
19138 fi~
19139 $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'
19140 else
19141 ld_shlibs_CXX=no
19142 fi
19143 ;;
19144 darwin* | rhapsody*)
19145
19146
19147 archive_cmds_need_lc_CXX=no
19148 hardcode_direct_CXX=no
19149 hardcode_automatic_CXX=yes
19150 hardcode_shlibpath_var_CXX=unsupported
19151 if test "$lt_cv_ld_force_load" = "yes"; then
19152 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\"`'
19153 else
19154 whole_archive_flag_spec_CXX=''
19155 fi
19156 link_all_deplibs_CXX=yes
19157 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19158 case $cc_basename in
19159 ifort*) _lt_dar_can_shared=yes ;;
19160 *) _lt_dar_can_shared=$GCC ;;
19161 esac
19162 if test "$_lt_dar_can_shared" = "yes"; then
19163 output_verbose_link_cmd=func_echo_all
19164 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}"
19165 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19166 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}"
19167 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}"
19168 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19169 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}"
19170 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}"
19171 fi
19172
19173 else
19174 ld_shlibs_CXX=no
19175 fi
19176
19177 ;;
19178
19179 dgux*)
19180 case $cc_basename in
19181 ec++*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
19185 ghcx*)
19186 # Green Hills C++ Compiler
19187 # FIXME: insert proper C++ library support
19188 ld_shlibs_CXX=no
19189 ;;
19190 *)
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 esac
19195 ;;
19196
19197 freebsd2.*)
19198 # C++ shared libraries reported to be fairly broken before
19199 # switch to ELF
19200 ld_shlibs_CXX=no
19201 ;;
19202
19203 freebsd-elf*)
19204 archive_cmds_need_lc_CXX=no
19205 ;;
19206
19207 freebsd* | dragonfly*)
19208 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19209 # conventions
19210 ld_shlibs_CXX=yes
19211 ;;
19212
19213 gnu*)
19214 ;;
19215
19216 haiku*)
19217 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 link_all_deplibs_CXX=yes
19219 ;;
19220
19221 hpux9*)
19222 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19223 hardcode_libdir_separator_CXX=:
19224 export_dynamic_flag_spec_CXX='${wl}-E'
19225 hardcode_direct_CXX=yes
19226 hardcode_minus_L_CXX=yes # Not in the search PATH,
19227 # but as the default
19228 # location of the library.
19229
19230 case $cc_basename in
19231 CC*)
19232 # FIXME: insert proper C++ library support
19233 ld_shlibs_CXX=no
19234 ;;
19235 aCC*)
19236 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'
19237 # Commands to make compiler produce verbose output that lists
19238 # what "hidden" libraries, object files and flags are used when
19239 # linking a shared library.
19240 #
19241 # There doesn't appear to be a way to prevent this compiler from
19242 # explicitly linking system object files so we need to strip them
19243 # from the output so that they don't get included in the library
19244 # dependencies.
19245 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"'
19246 ;;
19247 *)
19248 if test "$GXX" = yes; then
19249 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'
19250 else
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19253 fi
19254 ;;
19255 esac
19256 ;;
19257
19258 hpux10*|hpux11*)
19259 if test $with_gnu_ld = no; then
19260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19261 hardcode_libdir_separator_CXX=:
19262
19263 case $host_cpu in
19264 hppa*64*|ia64*)
19265 ;;
19266 *)
19267 export_dynamic_flag_spec_CXX='${wl}-E'
19268 ;;
19269 esac
19270 fi
19271 case $host_cpu in
19272 hppa*64*|ia64*)
19273 hardcode_direct_CXX=no
19274 hardcode_shlibpath_var_CXX=no
19275 ;;
19276 *)
19277 hardcode_direct_CXX=yes
19278 hardcode_direct_absolute_CXX=yes
19279 hardcode_minus_L_CXX=yes # Not in the search PATH,
19280 # but as the default
19281 # location of the library.
19282 ;;
19283 esac
19284
19285 case $cc_basename in
19286 CC*)
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19289 ;;
19290 aCC*)
19291 case $host_cpu in
19292 hppa*64*)
19293 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19294 ;;
19295 ia64*)
19296 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19297 ;;
19298 *)
19299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19300 ;;
19301 esac
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19305 #
19306 # There doesn't appear to be a way to prevent this compiler from
19307 # explicitly linking system object files so we need to strip them
19308 # from the output so that they don't get included in the library
19309 # dependencies.
19310 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"'
19311 ;;
19312 *)
19313 if test "$GXX" = yes; then
19314 if test $with_gnu_ld = no; then
19315 case $host_cpu in
19316 hppa*64*)
19317 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19318 ;;
19319 ia64*)
19320 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19321 ;;
19322 *)
19323 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'
19324 ;;
19325 esac
19326 fi
19327 else
19328 # FIXME: insert proper C++ library support
19329 ld_shlibs_CXX=no
19330 fi
19331 ;;
19332 esac
19333 ;;
19334
19335 interix[3-9]*)
19336 hardcode_direct_CXX=no
19337 hardcode_shlibpath_var_CXX=no
19338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19339 export_dynamic_flag_spec_CXX='${wl}-E'
19340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19341 # Instead, shared libraries are loaded at an image base (0x10000000 by
19342 # default) and relocated if they conflict, which is a slow very memory
19343 # consuming and fragmenting process. To avoid this, we pick a random,
19344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19346 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'
19347 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'
19348 ;;
19349 irix5* | irix6*)
19350 case $cc_basename in
19351 CC*)
19352 # SGI C++
19353 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'
19354
19355 # Archives containing C++ object files must be created using
19356 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19357 # necessary to make sure instantiated templates are included
19358 # in the archive.
19359 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19360 ;;
19361 *)
19362 if test "$GXX" = yes; then
19363 if test "$with_gnu_ld" = no; then
19364 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'
19365 else
19366 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'
19367 fi
19368 fi
19369 link_all_deplibs_CXX=yes
19370 ;;
19371 esac
19372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19373 hardcode_libdir_separator_CXX=:
19374 inherit_rpath_CXX=yes
19375 ;;
19376
19377 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19378 case $cc_basename in
19379 KCC*)
19380 # Kuck and Associates, Inc. (KAI) C++ Compiler
19381
19382 # KCC will only create a shared library if the output file
19383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19384 # to its proper name (with version) after linking.
19385 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'
19386 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'
19387 # Commands to make compiler produce verbose output that lists
19388 # what "hidden" libraries, object files and flags are used when
19389 # linking a shared library.
19390 #
19391 # There doesn't appear to be a way to prevent this compiler from
19392 # explicitly linking system object files so we need to strip them
19393 # from the output so that they don't get included in the library
19394 # dependencies.
19395 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"'
19396
19397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19399
19400 # Archives containing C++ object files must be created using
19401 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19402 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19403 ;;
19404 icpc* | ecpc* )
19405 # Intel C++
19406 with_gnu_ld=yes
19407 # version 8.0 and above of icpc choke on multiply defined symbols
19408 # if we add $predep_objects and $postdep_objects, however 7.1 and
19409 # earlier do not add the objects themselves.
19410 case `$CC -V 2>&1` in
19411 *"Version 7."*)
19412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 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'
19414 ;;
19415 *) # Version 8.0 or newer
19416 tmp_idyn=
19417 case $host_cpu in
19418 ia64*) tmp_idyn=' -i_dynamic';;
19419 esac
19420 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19421 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'
19422 ;;
19423 esac
19424 archive_cmds_need_lc_CXX=no
19425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19427 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19428 ;;
19429 pgCC* | pgcpp*)
19430 # Portland Group C++ compiler
19431 case `$CC -V` in
19432 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19433 prelink_cmds_CXX='tpldir=Template.dir~
19434 rm -rf $tpldir~
19435 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19436 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19437 old_archive_cmds_CXX='tpldir=Template.dir~
19438 rm -rf $tpldir~
19439 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19440 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19441 $RANLIB $oldlib'
19442 archive_cmds_CXX='tpldir=Template.dir~
19443 rm -rf $tpldir~
19444 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19445 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19446 archive_expsym_cmds_CXX='tpldir=Template.dir~
19447 rm -rf $tpldir~
19448 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19449 $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'
19450 ;;
19451 *) # Version 6 and above use weak symbols
19452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19453 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'
19454 ;;
19455 esac
19456
19457 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19459 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'
19460 ;;
19461 cxx*)
19462 # Compaq C++
19463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19464 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'
19465
19466 runpath_var=LD_RUN_PATH
19467 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19468 hardcode_libdir_separator_CXX=:
19469
19470 # Commands to make compiler produce verbose output that lists
19471 # what "hidden" libraries, object files and flags are used when
19472 # linking a shared library.
19473 #
19474 # There doesn't appear to be a way to prevent this compiler from
19475 # explicitly linking system object files so we need to strip them
19476 # from the output so that they don't get included in the library
19477 # dependencies.
19478 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'
19479 ;;
19480 xl* | mpixl* | bgxl*)
19481 # IBM XL 8.0 on PPC, with GNU ld
19482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19483 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19484 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19485 if test "x$supports_anon_versioning" = xyes; then
19486 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19488 echo "local: *; };" >> $output_objdir/$libname.ver~
19489 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19490 fi
19491 ;;
19492 *)
19493 case `$CC -V 2>&1 | sed 5q` in
19494 *Sun\ C*)
19495 # Sun C++ 5.9
19496 no_undefined_flag_CXX=' -zdefs'
19497 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19498 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'
19499 hardcode_libdir_flag_spec_CXX='-R$libdir'
19500 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'
19501 compiler_needs_object_CXX=yes
19502
19503 # Not sure whether something based on
19504 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19505 # would be better.
19506 output_verbose_link_cmd='func_echo_all'
19507
19508 # Archives containing C++ object files must be created using
19509 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19510 # necessary to make sure instantiated templates are included
19511 # in the archive.
19512 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19513 ;;
19514 esac
19515 ;;
19516 esac
19517 ;;
19518
19519 lynxos*)
19520 # FIXME: insert proper C++ library support
19521 ld_shlibs_CXX=no
19522 ;;
19523
19524 m88k*)
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19527 ;;
19528
19529 mvs*)
19530 case $cc_basename in
19531 cxx*)
19532 # FIXME: insert proper C++ library support
19533 ld_shlibs_CXX=no
19534 ;;
19535 *)
19536 # FIXME: insert proper C++ library support
19537 ld_shlibs_CXX=no
19538 ;;
19539 esac
19540 ;;
19541
19542 netbsd*)
19543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19544 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19545 wlarc=
19546 hardcode_libdir_flag_spec_CXX='-R$libdir'
19547 hardcode_direct_CXX=yes
19548 hardcode_shlibpath_var_CXX=no
19549 fi
19550 # Workaround some broken pre-1.5 toolchains
19551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19552 ;;
19553
19554 *nto* | *qnx*)
19555 ld_shlibs_CXX=yes
19556 ;;
19557
19558 openbsd2*)
19559 # C++ shared libraries are fairly broken
19560 ld_shlibs_CXX=no
19561 ;;
19562
19563 openbsd*)
19564 if test -f /usr/libexec/ld.so; then
19565 hardcode_direct_CXX=yes
19566 hardcode_shlibpath_var_CXX=no
19567 hardcode_direct_absolute_CXX=yes
19568 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19571 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19572 export_dynamic_flag_spec_CXX='${wl}-E'
19573 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19574 fi
19575 output_verbose_link_cmd=func_echo_all
19576 else
19577 ld_shlibs_CXX=no
19578 fi
19579 ;;
19580
19581 osf3* | osf4* | osf5*)
19582 case $cc_basename in
19583 KCC*)
19584 # Kuck and Associates, Inc. (KAI) C++ Compiler
19585
19586 # KCC will only create a shared library if the output file
19587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19588 # to its proper name (with version) after linking.
19589 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'
19590
19591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19592 hardcode_libdir_separator_CXX=:
19593
19594 # Archives containing C++ object files must be created using
19595 # the KAI C++ compiler.
19596 case $host in
19597 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19598 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19599 esac
19600 ;;
19601 RCC*)
19602 # Rational C++ 2.4.1
19603 # FIXME: insert proper C++ library support
19604 ld_shlibs_CXX=no
19605 ;;
19606 cxx*)
19607 case $host in
19608 osf3*)
19609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19610 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'
19611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19612 ;;
19613 *)
19614 allow_undefined_flag_CXX=' -expect_unresolved \*'
19615 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'
19616 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19617 echo "-hidden">> $lib.exp~
19618 $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~
19619 $RM $lib.exp'
19620 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19621 ;;
19622 esac
19623
19624 hardcode_libdir_separator_CXX=:
19625
19626 # Commands to make compiler produce verbose output that lists
19627 # what "hidden" libraries, object files and flags are used when
19628 # linking a shared library.
19629 #
19630 # There doesn't appear to be a way to prevent this compiler from
19631 # explicitly linking system object files so we need to strip them
19632 # from the output so that they don't get included in the library
19633 # dependencies.
19634 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"'
19635 ;;
19636 *)
19637 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19638 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19639 case $host in
19640 osf3*)
19641 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'
19642 ;;
19643 *)
19644 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'
19645 ;;
19646 esac
19647
19648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19649 hardcode_libdir_separator_CXX=:
19650
19651 # Commands to make compiler produce verbose output that lists
19652 # what "hidden" libraries, object files and flags are used when
19653 # linking a shared library.
19654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19655
19656 else
19657 # FIXME: insert proper C++ library support
19658 ld_shlibs_CXX=no
19659 fi
19660 ;;
19661 esac
19662 ;;
19663
19664 psos*)
19665 # FIXME: insert proper C++ library support
19666 ld_shlibs_CXX=no
19667 ;;
19668
19669 sunos4*)
19670 case $cc_basename in
19671 CC*)
19672 # Sun C++ 4.x
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19675 ;;
19676 lcc*)
19677 # Lucid
19678 # FIXME: insert proper C++ library support
19679 ld_shlibs_CXX=no
19680 ;;
19681 *)
19682 # FIXME: insert proper C++ library support
19683 ld_shlibs_CXX=no
19684 ;;
19685 esac
19686 ;;
19687
19688 solaris*)
19689 case $cc_basename in
19690 CC*)
19691 # Sun C++ 4.2, 5.x and Centerline C++
19692 archive_cmds_need_lc_CXX=yes
19693 no_undefined_flag_CXX=' -zdefs'
19694 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19695 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19696 $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'
19697
19698 hardcode_libdir_flag_spec_CXX='-R$libdir'
19699 hardcode_shlibpath_var_CXX=no
19700 case $host_os in
19701 solaris2.[0-5] | solaris2.[0-5].*) ;;
19702 *)
19703 # The compiler driver will combine and reorder linker options,
19704 # but understands `-z linker_flag'.
19705 # Supported since Solaris 2.6 (maybe 2.5.1?)
19706 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19707 ;;
19708 esac
19709 link_all_deplibs_CXX=yes
19710
19711 output_verbose_link_cmd='func_echo_all'
19712
19713 # Archives containing C++ object files must be created using
19714 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19715 # necessary to make sure instantiated templates are included
19716 # in the archive.
19717 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19718 ;;
19719 gcx*)
19720 # Green Hills C++ Compiler
19721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19722
19723 # The C++ compiler must be used to create the archive.
19724 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19725 ;;
19726 *)
19727 # GNU C++ compiler with Solaris linker
19728 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19729 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19730 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19731 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19732 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19733 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19734
19735 # Commands to make compiler produce verbose output that lists
19736 # what "hidden" libraries, object files and flags are used when
19737 # linking a shared library.
19738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19739 else
19740 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19741 # platform.
19742 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19743 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19744 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19745
19746 # Commands to make compiler produce verbose output that lists
19747 # what "hidden" libraries, object files and flags are used when
19748 # linking a shared library.
19749 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19750 fi
19751
19752 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19753 case $host_os in
19754 solaris2.[0-5] | solaris2.[0-5].*) ;;
19755 *)
19756 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19757 ;;
19758 esac
19759 fi
19760 ;;
19761 esac
19762 ;;
19763
19764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19765 no_undefined_flag_CXX='${wl}-z,text'
19766 archive_cmds_need_lc_CXX=no
19767 hardcode_shlibpath_var_CXX=no
19768 runpath_var='LD_RUN_PATH'
19769
19770 case $cc_basename in
19771 CC*)
19772 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 ;;
19775 *)
19776 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 ;;
19779 esac
19780 ;;
19781
19782 sysv5* | sco3.2v5* | sco5v6*)
19783 # Note: We can NOT use -z defs as we might desire, because we do not
19784 # link with -lc, and that would cause any symbols used from libc to
19785 # always be unresolved, which means just about no library would
19786 # ever link correctly. If we're not using GNU ld we use -z text
19787 # though, which does catch some bad symbols but isn't as heavy-handed
19788 # as -z defs.
19789 no_undefined_flag_CXX='${wl}-z,text'
19790 allow_undefined_flag_CXX='${wl}-z,nodefs'
19791 archive_cmds_need_lc_CXX=no
19792 hardcode_shlibpath_var_CXX=no
19793 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19794 hardcode_libdir_separator_CXX=':'
19795 link_all_deplibs_CXX=yes
19796 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19797 runpath_var='LD_RUN_PATH'
19798
19799 case $cc_basename in
19800 CC*)
19801 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19803 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19804 '"$old_archive_cmds_CXX"
19805 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19806 '"$reload_cmds_CXX"
19807 ;;
19808 *)
19809 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 ;;
19812 esac
19813 ;;
19814
19815 tandem*)
19816 case $cc_basename in
19817 NCC*)
19818 # NonStop-UX NCC 3.20
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19821 ;;
19822 *)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19825 ;;
19826 esac
19827 ;;
19828
19829 vxworks*)
19830 # FIXME: insert proper C++ library support
19831 ld_shlibs_CXX=no
19832 ;;
19833
19834 *)
19835 # FIXME: insert proper C++ library support
19836 ld_shlibs_CXX=no
19837 ;;
19838 esac
19839
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19841 $as_echo "$ld_shlibs_CXX" >&6; }
19842 test "$ld_shlibs_CXX" = no && can_build_shared=no
19843
19844 GCC_CXX="$GXX"
19845 LD_CXX="$LD"
19846
19847 ## CAVEAT EMPTOR:
19848 ## There is no encapsulation within the following macros, do not change
19849 ## the running order or otherwise move them around unless you know exactly
19850 ## what you are doing...
19851 # Dependencies to place before and after the object being linked:
19852 predep_objects_CXX=
19853 postdep_objects_CXX=
19854 predeps_CXX=
19855 postdeps_CXX=
19856 compiler_lib_search_path_CXX=
19857
19858 cat > conftest.$ac_ext <<_LT_EOF
19859 class Foo
19860 {
19861 public:
19862 Foo (void) { a = 0; }
19863 private:
19864 int a;
19865 };
19866 _LT_EOF
19867
19868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19869 (eval $ac_compile) 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19872 test $ac_status = 0; }; then
19873 # Parse the compiler output and extract the necessary
19874 # objects, libraries and library flags.
19875
19876 # Sentinel used to keep track of whether or not we are before
19877 # the conftest object file.
19878 pre_test_object_deps_done=no
19879
19880 for p in `eval "$output_verbose_link_cmd"`; do
19881 case $p in
19882
19883 -L* | -R* | -l*)
19884 # Some compilers place space between "-{L,R}" and the path.
19885 # Remove the space.
19886 if test $p = "-L" ||
19887 test $p = "-R"; then
19888 prev=$p
19889 continue
19890 else
19891 prev=
19892 fi
19893
19894 if test "$pre_test_object_deps_done" = no; then
19895 case $p in
19896 -L* | -R*)
19897 # Internal compiler library paths should come after those
19898 # provided the user. The postdeps already come after the
19899 # user supplied libs so there is no need to process them.
19900 if test -z "$compiler_lib_search_path_CXX"; then
19901 compiler_lib_search_path_CXX="${prev}${p}"
19902 else
19903 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19904 fi
19905 ;;
19906 # The "-l" case would never come before the object being
19907 # linked, so don't bother handling this case.
19908 esac
19909 else
19910 if test -z "$postdeps_CXX"; then
19911 postdeps_CXX="${prev}${p}"
19912 else
19913 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19914 fi
19915 fi
19916 ;;
19917
19918 *.$objext)
19919 # This assumes that the test object file only shows up
19920 # once in the compiler output.
19921 if test "$p" = "conftest.$objext"; then
19922 pre_test_object_deps_done=yes
19923 continue
19924 fi
19925
19926 if test "$pre_test_object_deps_done" = no; then
19927 if test -z "$predep_objects_CXX"; then
19928 predep_objects_CXX="$p"
19929 else
19930 predep_objects_CXX="$predep_objects_CXX $p"
19931 fi
19932 else
19933 if test -z "$postdep_objects_CXX"; then
19934 postdep_objects_CXX="$p"
19935 else
19936 postdep_objects_CXX="$postdep_objects_CXX $p"
19937 fi
19938 fi
19939 ;;
19940
19941 *) ;; # Ignore the rest.
19942
19943 esac
19944 done
19945
19946 # Clean up.
19947 rm -f a.out a.exe
19948 else
19949 echo "libtool.m4: error: problem compiling CXX test program"
19950 fi
19951
19952 $RM -f confest.$objext
19953
19954 # PORTME: override above test on systems where it is broken
19955 case $host_os in
19956 interix[3-9]*)
19957 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19958 # hack all around it, let's just trust "g++" to DTRT.
19959 predep_objects_CXX=
19960 postdep_objects_CXX=
19961 postdeps_CXX=
19962 ;;
19963
19964 linux*)
19965 case `$CC -V 2>&1 | sed 5q` in
19966 *Sun\ C*)
19967 # Sun C++ 5.9
19968
19969 # The more standards-conforming stlport4 library is
19970 # incompatible with the Cstd library. Avoid specifying
19971 # it if it's in CXXFLAGS. Ignore libCrun as
19972 # -library=stlport4 depends on it.
19973 case " $CXX $CXXFLAGS " in
19974 *" -library=stlport4 "*)
19975 solaris_use_stlport4=yes
19976 ;;
19977 esac
19978
19979 if test "$solaris_use_stlport4" != yes; then
19980 postdeps_CXX='-library=Cstd -library=Crun'
19981 fi
19982 ;;
19983 esac
19984 ;;
19985
19986 solaris*)
19987 case $cc_basename in
19988 CC*)
19989 # The more standards-conforming stlport4 library is
19990 # incompatible with the Cstd library. Avoid specifying
19991 # it if it's in CXXFLAGS. Ignore libCrun as
19992 # -library=stlport4 depends on it.
19993 case " $CXX $CXXFLAGS " in
19994 *" -library=stlport4 "*)
19995 solaris_use_stlport4=yes
19996 ;;
19997 esac
19998
19999 # Adding this requires a known-good setup of shared libraries for
20000 # Sun compiler versions before 5.6, else PIC objects from an old
20001 # archive will be linked into the output, leading to subtle bugs.
20002 if test "$solaris_use_stlport4" != yes; then
20003 postdeps_CXX='-library=Cstd -library=Crun'
20004 fi
20005 ;;
20006 esac
20007 ;;
20008 esac
20009
20010
20011 case " $postdeps_CXX " in
20012 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20013 esac
20014 compiler_lib_search_dirs_CXX=
20015 if test -n "${compiler_lib_search_path_CXX}"; then
20016 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20017 fi
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049 lt_prog_compiler_wl_CXX=
20050 lt_prog_compiler_pic_CXX=
20051 lt_prog_compiler_static_CXX=
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20055
20056 # C++ specific cases for pic, static, wl, etc.
20057 if test "$GXX" = yes; then
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_static_CXX='-static'
20060
20061 case $host_os in
20062 aix*)
20063 # All AIX code is PIC.
20064 if test "$host_cpu" = ia64; then
20065 # AIX 5 now supports IA64 processor
20066 lt_prog_compiler_static_CXX='-Bstatic'
20067 fi
20068 lt_prog_compiler_pic_CXX='-fPIC'
20069 ;;
20070
20071 amigaos*)
20072 case $host_cpu in
20073 powerpc)
20074 # see comment about AmigaOS4 .so support
20075 lt_prog_compiler_pic_CXX='-fPIC'
20076 ;;
20077 m68k)
20078 # FIXME: we need at least 68020 code to build shared libraries, but
20079 # adding the `-m68020' flag to GCC prevents building anything better,
20080 # like `-m68040'.
20081 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20082 ;;
20083 esac
20084 ;;
20085
20086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20087 # PIC is the default for these OSes.
20088 ;;
20089 mingw* | cygwin* | os2* | pw32* | cegcc*)
20090 # This hack is so that the source file can tell whether it is being
20091 # built for inclusion in a dll (and should export symbols for example).
20092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20093 # (--disable-auto-import) libraries
20094 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20095 ;;
20096 darwin* | rhapsody*)
20097 # PIC is the default on this platform
20098 # Common symbols not allowed in MH_DYLIB files
20099 lt_prog_compiler_pic_CXX='-fno-common'
20100 ;;
20101 *djgpp*)
20102 # DJGPP does not support shared libraries at all
20103 lt_prog_compiler_pic_CXX=
20104 ;;
20105 haiku*)
20106 # PIC is the default for Haiku.
20107 # The "-static" flag exists, but is broken.
20108 lt_prog_compiler_static_CXX=
20109 ;;
20110 interix[3-9]*)
20111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20112 # Instead, we relocate shared libraries at runtime.
20113 ;;
20114 sysv4*MP*)
20115 if test -d /usr/nec; then
20116 lt_prog_compiler_pic_CXX=-Kconform_pic
20117 fi
20118 ;;
20119 hpux*)
20120 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20121 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20122 # sets the default TLS model and affects inlining.
20123 case $host_cpu in
20124 hppa*64*)
20125 ;;
20126 *)
20127 lt_prog_compiler_pic_CXX='-fPIC'
20128 ;;
20129 esac
20130 ;;
20131 *qnx* | *nto*)
20132 # QNX uses GNU C++, but need to define -shared option too, otherwise
20133 # it will coredump.
20134 lt_prog_compiler_pic_CXX='-fPIC -shared'
20135 ;;
20136 *)
20137 lt_prog_compiler_pic_CXX='-fPIC'
20138 ;;
20139 esac
20140 else
20141 case $host_os in
20142 aix[4-9]*)
20143 # All AIX code is PIC.
20144 if test "$host_cpu" = ia64; then
20145 # AIX 5 now supports IA64 processor
20146 lt_prog_compiler_static_CXX='-Bstatic'
20147 else
20148 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20149 fi
20150 ;;
20151 chorus*)
20152 case $cc_basename in
20153 cxch68*)
20154 # Green Hills C++ Compiler
20155 # _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"
20156 ;;
20157 esac
20158 ;;
20159 dgux*)
20160 case $cc_basename in
20161 ec++*)
20162 lt_prog_compiler_pic_CXX='-KPIC'
20163 ;;
20164 ghcx*)
20165 # Green Hills C++ Compiler
20166 lt_prog_compiler_pic_CXX='-pic'
20167 ;;
20168 *)
20169 ;;
20170 esac
20171 ;;
20172 freebsd* | dragonfly*)
20173 # FreeBSD uses GNU C++
20174 ;;
20175 hpux9* | hpux10* | hpux11*)
20176 case $cc_basename in
20177 CC*)
20178 lt_prog_compiler_wl_CXX='-Wl,'
20179 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20180 if test "$host_cpu" != ia64; then
20181 lt_prog_compiler_pic_CXX='+Z'
20182 fi
20183 ;;
20184 aCC*)
20185 lt_prog_compiler_wl_CXX='-Wl,'
20186 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20187 case $host_cpu in
20188 hppa*64*|ia64*)
20189 # +Z the default
20190 ;;
20191 *)
20192 lt_prog_compiler_pic_CXX='+Z'
20193 ;;
20194 esac
20195 ;;
20196 *)
20197 ;;
20198 esac
20199 ;;
20200 interix*)
20201 # This is c89, which is MS Visual C++ (no shared libs)
20202 # Anyone wants to do a port?
20203 ;;
20204 irix5* | irix6* | nonstopux*)
20205 case $cc_basename in
20206 CC*)
20207 lt_prog_compiler_wl_CXX='-Wl,'
20208 lt_prog_compiler_static_CXX='-non_shared'
20209 # CC pic flag -KPIC is the default.
20210 ;;
20211 *)
20212 ;;
20213 esac
20214 ;;
20215 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20216 case $cc_basename in
20217 KCC*)
20218 # KAI C++ Compiler
20219 lt_prog_compiler_wl_CXX='--backend -Wl,'
20220 lt_prog_compiler_pic_CXX='-fPIC'
20221 ;;
20222 ecpc* )
20223 # old Intel C++ for x86_64 which still supported -KPIC.
20224 lt_prog_compiler_wl_CXX='-Wl,'
20225 lt_prog_compiler_pic_CXX='-KPIC'
20226 lt_prog_compiler_static_CXX='-static'
20227 ;;
20228 icpc* )
20229 # Intel C++, used to be incompatible with GCC.
20230 # ICC 10 doesn't accept -KPIC any more.
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 lt_prog_compiler_pic_CXX='-fPIC'
20233 lt_prog_compiler_static_CXX='-static'
20234 ;;
20235 pgCC* | pgcpp*)
20236 # Portland Group C++ compiler
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_pic_CXX='-fpic'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20240 ;;
20241 cxx*)
20242 # Compaq C++
20243 # Make sure the PIC flag is empty. It appears that all Alpha
20244 # Linux and Compaq Tru64 Unix objects are PIC.
20245 lt_prog_compiler_pic_CXX=
20246 lt_prog_compiler_static_CXX='-non_shared'
20247 ;;
20248 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20249 # IBM XL 8.0, 9.0 on PPC and BlueGene
20250 lt_prog_compiler_wl_CXX='-Wl,'
20251 lt_prog_compiler_pic_CXX='-qpic'
20252 lt_prog_compiler_static_CXX='-qstaticlink'
20253 ;;
20254 *)
20255 case `$CC -V 2>&1 | sed 5q` in
20256 *Sun\ C*)
20257 # Sun C++ 5.9
20258 lt_prog_compiler_pic_CXX='-KPIC'
20259 lt_prog_compiler_static_CXX='-Bstatic'
20260 lt_prog_compiler_wl_CXX='-Qoption ld '
20261 ;;
20262 esac
20263 ;;
20264 esac
20265 ;;
20266 lynxos*)
20267 ;;
20268 m88k*)
20269 ;;
20270 mvs*)
20271 case $cc_basename in
20272 cxx*)
20273 lt_prog_compiler_pic_CXX='-W c,exportall'
20274 ;;
20275 *)
20276 ;;
20277 esac
20278 ;;
20279 netbsd*)
20280 ;;
20281 *qnx* | *nto*)
20282 # QNX uses GNU C++, but need to define -shared option too, otherwise
20283 # it will coredump.
20284 lt_prog_compiler_pic_CXX='-fPIC -shared'
20285 ;;
20286 osf3* | osf4* | osf5*)
20287 case $cc_basename in
20288 KCC*)
20289 lt_prog_compiler_wl_CXX='--backend -Wl,'
20290 ;;
20291 RCC*)
20292 # Rational C++ 2.4.1
20293 lt_prog_compiler_pic_CXX='-pic'
20294 ;;
20295 cxx*)
20296 # Digital/Compaq C++
20297 lt_prog_compiler_wl_CXX='-Wl,'
20298 # Make sure the PIC flag is empty. It appears that all Alpha
20299 # Linux and Compaq Tru64 Unix objects are PIC.
20300 lt_prog_compiler_pic_CXX=
20301 lt_prog_compiler_static_CXX='-non_shared'
20302 ;;
20303 *)
20304 ;;
20305 esac
20306 ;;
20307 psos*)
20308 ;;
20309 solaris*)
20310 case $cc_basename in
20311 CC*)
20312 # Sun C++ 4.2, 5.x and Centerline C++
20313 lt_prog_compiler_pic_CXX='-KPIC'
20314 lt_prog_compiler_static_CXX='-Bstatic'
20315 lt_prog_compiler_wl_CXX='-Qoption ld '
20316 ;;
20317 gcx*)
20318 # Green Hills C++ Compiler
20319 lt_prog_compiler_pic_CXX='-PIC'
20320 ;;
20321 *)
20322 ;;
20323 esac
20324 ;;
20325 sunos4*)
20326 case $cc_basename in
20327 CC*)
20328 # Sun C++ 4.x
20329 lt_prog_compiler_pic_CXX='-pic'
20330 lt_prog_compiler_static_CXX='-Bstatic'
20331 ;;
20332 lcc*)
20333 # Lucid
20334 lt_prog_compiler_pic_CXX='-pic'
20335 ;;
20336 *)
20337 ;;
20338 esac
20339 ;;
20340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20341 case $cc_basename in
20342 CC*)
20343 lt_prog_compiler_wl_CXX='-Wl,'
20344 lt_prog_compiler_pic_CXX='-KPIC'
20345 lt_prog_compiler_static_CXX='-Bstatic'
20346 ;;
20347 esac
20348 ;;
20349 tandem*)
20350 case $cc_basename in
20351 NCC*)
20352 # NonStop-UX NCC 3.20
20353 lt_prog_compiler_pic_CXX='-KPIC'
20354 ;;
20355 *)
20356 ;;
20357 esac
20358 ;;
20359 vxworks*)
20360 ;;
20361 *)
20362 lt_prog_compiler_can_build_shared_CXX=no
20363 ;;
20364 esac
20365 fi
20366
20367 case $host_os in
20368 # For platforms which do not support PIC, -DPIC is meaningless:
20369 *djgpp*)
20370 lt_prog_compiler_pic_CXX=
20371 ;;
20372 *)
20373 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20374 ;;
20375 esac
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20377 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20378
20379
20380
20381 #
20382 # Check to make sure the PIC flag actually works.
20383 #
20384 if test -n "$lt_prog_compiler_pic_CXX"; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20386 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20387 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20388 $as_echo_n "(cached) " >&6
20389 else
20390 lt_cv_prog_compiler_pic_works_CXX=no
20391 ac_outfile=conftest.$ac_objext
20392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20393 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20394 # Insert the option either (1) after the last *FLAGS variable, or
20395 # (2) before a word containing "conftest.", or (3) at the end.
20396 # Note that $ac_compile itself does not contain backslashes and begins
20397 # with a dollar sign (not a hyphen), so the echo should work correctly.
20398 # The option is referenced via a variable to avoid confusing sed.
20399 lt_compile=`echo "$ac_compile" | $SED \
20400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20402 -e 's:$: $lt_compiler_flag:'`
20403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20404 (eval "$lt_compile" 2>conftest.err)
20405 ac_status=$?
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 if (exit $ac_status) && test -s "$ac_outfile"; then
20409 # The compiler can only warn and ignore the option if not recognized
20410 # So say no if there are warnings other than the usual output.
20411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20414 lt_cv_prog_compiler_pic_works_CXX=yes
20415 fi
20416 fi
20417 $RM conftest*
20418
20419 fi
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20421 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20422
20423 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20424 case $lt_prog_compiler_pic_CXX in
20425 "" | " "*) ;;
20426 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20427 esac
20428 else
20429 lt_prog_compiler_pic_CXX=
20430 lt_prog_compiler_can_build_shared_CXX=no
20431 fi
20432
20433 fi
20434
20435
20436
20437 #
20438 # Check to make sure the static flag actually works.
20439 #
20440 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20443 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20444 $as_echo_n "(cached) " >&6
20445 else
20446 lt_cv_prog_compiler_static_works_CXX=no
20447 save_LDFLAGS="$LDFLAGS"
20448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20451 # The linker can only warn and ignore the option if not recognized
20452 # So say no if there are warnings
20453 if test -s conftest.err; then
20454 # Append any errors to the config.log.
20455 cat conftest.err 1>&5
20456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20458 if diff conftest.exp conftest.er2 >/dev/null; then
20459 lt_cv_prog_compiler_static_works_CXX=yes
20460 fi
20461 else
20462 lt_cv_prog_compiler_static_works_CXX=yes
20463 fi
20464 fi
20465 $RM -r conftest*
20466 LDFLAGS="$save_LDFLAGS"
20467
20468 fi
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20470 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20471
20472 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20473 :
20474 else
20475 lt_prog_compiler_static_CXX=
20476 fi
20477
20478
20479
20480
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20484 $as_echo_n "(cached) " >&6
20485 else
20486 lt_cv_prog_compiler_c_o_CXX=no
20487 $RM -r conftest 2>/dev/null
20488 mkdir conftest
20489 cd conftest
20490 mkdir out
20491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20492
20493 lt_compiler_flag="-o out/conftest2.$ac_objext"
20494 # Insert the option either (1) after the last *FLAGS variable, or
20495 # (2) before a word containing "conftest.", or (3) at the end.
20496 # Note that $ac_compile itself does not contain backslashes and begins
20497 # with a dollar sign (not a hyphen), so the echo should work correctly.
20498 lt_compile=`echo "$ac_compile" | $SED \
20499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20501 -e 's:$: $lt_compiler_flag:'`
20502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20503 (eval "$lt_compile" 2>out/conftest.err)
20504 ac_status=$?
20505 cat out/conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20508 then
20509 # The compiler can only warn and ignore the option if not recognized
20510 # So say no if there are warnings
20511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20514 lt_cv_prog_compiler_c_o_CXX=yes
20515 fi
20516 fi
20517 chmod u+w . 2>&5
20518 $RM conftest*
20519 # SGI C++ compiler will create directory out/ii_files/ for
20520 # template instantiation
20521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20522 $RM out/* && rmdir out
20523 cd ..
20524 $RM -r conftest
20525 $RM conftest*
20526
20527 fi
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20529 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20530
20531
20532
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20535 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20536 $as_echo_n "(cached) " >&6
20537 else
20538 lt_cv_prog_compiler_c_o_CXX=no
20539 $RM -r conftest 2>/dev/null
20540 mkdir conftest
20541 cd conftest
20542 mkdir out
20543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20544
20545 lt_compiler_flag="-o out/conftest2.$ac_objext"
20546 # Insert the option either (1) after the last *FLAGS variable, or
20547 # (2) before a word containing "conftest.", or (3) at the end.
20548 # Note that $ac_compile itself does not contain backslashes and begins
20549 # with a dollar sign (not a hyphen), so the echo should work correctly.
20550 lt_compile=`echo "$ac_compile" | $SED \
20551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20553 -e 's:$: $lt_compiler_flag:'`
20554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20555 (eval "$lt_compile" 2>out/conftest.err)
20556 ac_status=$?
20557 cat out/conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20560 then
20561 # The compiler can only warn and ignore the option if not recognized
20562 # So say no if there are warnings
20563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20566 lt_cv_prog_compiler_c_o_CXX=yes
20567 fi
20568 fi
20569 chmod u+w . 2>&5
20570 $RM conftest*
20571 # SGI C++ compiler will create directory out/ii_files/ for
20572 # template instantiation
20573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20574 $RM out/* && rmdir out
20575 cd ..
20576 $RM -r conftest
20577 $RM conftest*
20578
20579 fi
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20581 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20582
20583
20584
20585
20586 hard_links="nottested"
20587 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20588 # do not overwrite the value of need_locks provided by the user
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20590 $as_echo_n "checking if we can lock with hard links... " >&6; }
20591 hard_links=yes
20592 $RM conftest*
20593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20594 touch conftest.a
20595 ln conftest.a conftest.b 2>&5 || hard_links=no
20596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20598 $as_echo "$hard_links" >&6; }
20599 if test "$hard_links" = no; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20601 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20602 need_locks=warn
20603 fi
20604 else
20605 need_locks=no
20606 fi
20607
20608
20609
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20612
20613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20614 case $host_os in
20615 aix[4-9]*)
20616 # If we're using GNU nm, then we don't want the "-C" option.
20617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20618 # Also, AIX nm treats weak defined symbols like other global defined
20619 # symbols, whereas GNU nm marks them as "W".
20620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20621 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'
20622 else
20623 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'
20624 fi
20625 ;;
20626 pw32*)
20627 export_symbols_cmds_CXX="$ltdll_cmds"
20628 ;;
20629 cygwin* | mingw* | cegcc*)
20630 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'
20631 ;;
20632 *)
20633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20634 ;;
20635 esac
20636 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20637
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20639 $as_echo "$ld_shlibs_CXX" >&6; }
20640 test "$ld_shlibs_CXX" = no && can_build_shared=no
20641
20642 with_gnu_ld_CXX=$with_gnu_ld
20643
20644
20645
20646
20647
20648
20649 #
20650 # Do we need to explicitly link libc?
20651 #
20652 case "x$archive_cmds_need_lc_CXX" in
20653 x|xyes)
20654 # Assume -lc should be added
20655 archive_cmds_need_lc_CXX=yes
20656
20657 if test "$enable_shared" = yes && test "$GCC" = yes; then
20658 case $archive_cmds_CXX in
20659 *'~'*)
20660 # FIXME: we may have to deal with multi-command sequences.
20661 ;;
20662 '$CC '*)
20663 # Test whether the compiler implicitly links with -lc since on some
20664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20665 # to ld, don't add -lc before -lgcc.
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20667 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20668 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 $RM conftest*
20672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20673
20674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20675 (eval $ac_compile) 2>&5
20676 ac_status=$?
20677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20678 test $ac_status = 0; } 2>conftest.err; then
20679 soname=conftest
20680 lib=conftest
20681 libobjs=conftest.$ac_objext
20682 deplibs=
20683 wl=$lt_prog_compiler_wl_CXX
20684 pic_flag=$lt_prog_compiler_pic_CXX
20685 compiler_flags=-v
20686 linker_flags=-v
20687 verstring=
20688 output_objdir=.
20689 libname=conftest
20690 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20691 allow_undefined_flag_CXX=
20692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20693 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20694 ac_status=$?
20695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20696 test $ac_status = 0; }
20697 then
20698 lt_cv_archive_cmds_need_lc_CXX=no
20699 else
20700 lt_cv_archive_cmds_need_lc_CXX=yes
20701 fi
20702 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20703 else
20704 cat conftest.err 1>&5
20705 fi
20706 $RM conftest*
20707
20708 fi
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20710 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20711 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20712 ;;
20713 esac
20714 fi
20715 ;;
20716 esac
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20783
20784 library_names_spec=
20785 libname_spec='lib$name'
20786 soname_spec=
20787 shrext_cmds=".so"
20788 postinstall_cmds=
20789 postuninstall_cmds=
20790 finish_cmds=
20791 finish_eval=
20792 shlibpath_var=
20793 shlibpath_overrides_runpath=unknown
20794 version_type=none
20795 dynamic_linker="$host_os ld.so"
20796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20797 need_lib_prefix=unknown
20798 hardcode_into_libs=no
20799
20800 # when you set need_version to no, make sure it does not cause -set_version
20801 # flags to be left without arguments
20802 need_version=unknown
20803
20804 case $host_os in
20805 aix3*)
20806 version_type=linux
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20808 shlibpath_var=LIBPATH
20809
20810 # AIX 3 has no versioning support, so we append a major version to the name.
20811 soname_spec='${libname}${release}${shared_ext}$major'
20812 ;;
20813
20814 aix[4-9]*)
20815 version_type=linux
20816 need_lib_prefix=no
20817 need_version=no
20818 hardcode_into_libs=yes
20819 if test "$host_cpu" = ia64; then
20820 # AIX 5 supports IA64
20821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 else
20824 # With GCC up to 2.95.x, collect2 would create an import file
20825 # for dependence libraries. The import file would start with
20826 # the line `#! .'. This would cause the generated library to
20827 # depend on `.', always an invalid library. This was fixed in
20828 # development snapshots of GCC prior to 3.0.
20829 case $host_os in
20830 aix4 | aix4.[01] | aix4.[01].*)
20831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20832 echo ' yes '
20833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20834 :
20835 else
20836 can_build_shared=no
20837 fi
20838 ;;
20839 esac
20840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20841 # soname into executable. Probably we can add versioning support to
20842 # collect2, so additional links can be useful in future.
20843 if test "$aix_use_runtimelinking" = yes; then
20844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20845 # instead of lib<name>.a to let people know that these are not
20846 # typical AIX shared libraries.
20847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848 else
20849 # We preserve .a as extension for shared libraries through AIX4.2
20850 # and later when we are not doing run time linking.
20851 library_names_spec='${libname}${release}.a $libname.a'
20852 soname_spec='${libname}${release}${shared_ext}$major'
20853 fi
20854 shlibpath_var=LIBPATH
20855 fi
20856 ;;
20857
20858 amigaos*)
20859 case $host_cpu in
20860 powerpc)
20861 # Since July 2007 AmigaOS4 officially supports .so libraries.
20862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20864 ;;
20865 m68k)
20866 library_names_spec='$libname.ixlibrary $libname.a'
20867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20868 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'
20869 ;;
20870 esac
20871 ;;
20872
20873 beos*)
20874 library_names_spec='${libname}${shared_ext}'
20875 dynamic_linker="$host_os ld.so"
20876 shlibpath_var=LIBRARY_PATH
20877 ;;
20878
20879 bsdi[45]*)
20880 version_type=linux
20881 need_version=no
20882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20883 soname_spec='${libname}${release}${shared_ext}$major'
20884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20888 # the default ld.so.conf also contains /usr/contrib/lib and
20889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20890 # libtool to hard-code these into programs
20891 ;;
20892
20893 cygwin* | mingw* | pw32* | cegcc*)
20894 version_type=windows
20895 shrext_cmds=".dll"
20896 need_version=no
20897 need_lib_prefix=no
20898
20899 case $GCC,$host_os in
20900 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20901 library_names_spec='$libname.dll.a'
20902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20903 postinstall_cmds='base_file=`basename \${file}`~
20904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20905 dldir=$destdir/`dirname \$dlpath`~
20906 test -d \$dldir || mkdir -p \$dldir~
20907 $install_prog $dir/$dlname \$dldir/$dlname~
20908 chmod a+x \$dldir/$dlname~
20909 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20910 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20911 fi'
20912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20913 dlpath=$dir/\$dldll~
20914 $RM \$dlpath'
20915 shlibpath_overrides_runpath=yes
20916
20917 case $host_os in
20918 cygwin*)
20919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20921
20922 ;;
20923 mingw* | cegcc*)
20924 # MinGW DLLs use traditional 'lib' prefix
20925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20926 ;;
20927 pw32*)
20928 # pw32 DLLs use 'pw' prefix rather than 'lib'
20929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20930 ;;
20931 esac
20932 ;;
20933
20934 *)
20935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20936 ;;
20937 esac
20938 dynamic_linker='Win32 ld.exe'
20939 # FIXME: first we should search . and the directory the executable is in
20940 shlibpath_var=PATH
20941 ;;
20942
20943 darwin* | rhapsody*)
20944 dynamic_linker="$host_os dyld"
20945 version_type=darwin
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20949 soname_spec='${libname}${release}${major}$shared_ext'
20950 shlibpath_overrides_runpath=yes
20951 shlibpath_var=DYLD_LIBRARY_PATH
20952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20953
20954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20955 ;;
20956
20957 dgux*)
20958 version_type=linux
20959 need_lib_prefix=no
20960 need_version=no
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20964 ;;
20965
20966 freebsd* | dragonfly*)
20967 # DragonFly does not have aout. When/if they implement a new
20968 # versioning mechanism, adjust this.
20969 if test -x /usr/bin/objformat; then
20970 objformat=`/usr/bin/objformat`
20971 else
20972 case $host_os in
20973 freebsd[23].*) objformat=aout ;;
20974 *) objformat=elf ;;
20975 esac
20976 fi
20977 version_type=freebsd-$objformat
20978 case $version_type in
20979 freebsd-elf*)
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20981 need_version=no
20982 need_lib_prefix=no
20983 ;;
20984 freebsd-*)
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20986 need_version=yes
20987 ;;
20988 esac
20989 shlibpath_var=LD_LIBRARY_PATH
20990 case $host_os in
20991 freebsd2.*)
20992 shlibpath_overrides_runpath=yes
20993 ;;
20994 freebsd3.[01]* | freebsdelf3.[01]*)
20995 shlibpath_overrides_runpath=yes
20996 hardcode_into_libs=yes
20997 ;;
20998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21000 shlibpath_overrides_runpath=no
21001 hardcode_into_libs=yes
21002 ;;
21003 *) # from 4.6 on, and DragonFly
21004 shlibpath_overrides_runpath=yes
21005 hardcode_into_libs=yes
21006 ;;
21007 esac
21008 ;;
21009
21010 gnu*)
21011 version_type=linux
21012 need_lib_prefix=no
21013 need_version=no
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21015 soname_spec='${libname}${release}${shared_ext}$major'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 hardcode_into_libs=yes
21018 ;;
21019
21020 haiku*)
21021 version_type=linux
21022 need_lib_prefix=no
21023 need_version=no
21024 dynamic_linker="$host_os runtime_loader"
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21030 hardcode_into_libs=yes
21031 ;;
21032
21033 hpux9* | hpux10* | hpux11*)
21034 # Give a soname corresponding to the major version so that dld.sl refuses to
21035 # link against other versions.
21036 version_type=sunos
21037 need_lib_prefix=no
21038 need_version=no
21039 case $host_cpu in
21040 ia64*)
21041 shrext_cmds='.so'
21042 hardcode_into_libs=yes
21043 dynamic_linker="$host_os dld.so"
21044 shlibpath_var=LD_LIBRARY_PATH
21045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 if test "X$HPUX_IA64_MODE" = X32; then
21049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21050 else
21051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21052 fi
21053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21054 ;;
21055 hppa*64*)
21056 shrext_cmds='.sl'
21057 hardcode_into_libs=yes
21058 dynamic_linker="$host_os dld.sl"
21059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 soname_spec='${libname}${release}${shared_ext}$major'
21063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21065 ;;
21066 *)
21067 shrext_cmds='.sl'
21068 dynamic_linker="$host_os dld.sl"
21069 shlibpath_var=SHLIB_PATH
21070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21073 ;;
21074 esac
21075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21076 postinstall_cmds='chmod 555 $lib'
21077 # or fails outright, so override atomically:
21078 install_override_mode=555
21079 ;;
21080
21081 interix[3-9]*)
21082 version_type=linux
21083 need_lib_prefix=no
21084 need_version=no
21085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21086 soname_spec='${libname}${release}${shared_ext}$major'
21087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21088 shlibpath_var=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath=no
21090 hardcode_into_libs=yes
21091 ;;
21092
21093 irix5* | irix6* | nonstopux*)
21094 case $host_os in
21095 nonstopux*) version_type=nonstopux ;;
21096 *)
21097 if test "$lt_cv_prog_gnu_ld" = yes; then
21098 version_type=linux
21099 else
21100 version_type=irix
21101 fi ;;
21102 esac
21103 need_lib_prefix=no
21104 need_version=no
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21107 case $host_os in
21108 irix5* | nonstopux*)
21109 libsuff= shlibsuff=
21110 ;;
21111 *)
21112 case $LD in # libtool.m4 will add one of these switches to LD
21113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21114 libsuff= shlibsuff= libmagic=32-bit;;
21115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21116 libsuff=32 shlibsuff=N32 libmagic=N32;;
21117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21119 *) libsuff= shlibsuff= libmagic=never-match;;
21120 esac
21121 ;;
21122 esac
21123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21124 shlibpath_overrides_runpath=no
21125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21127 hardcode_into_libs=yes
21128 ;;
21129
21130 # No shared lib support for Linux oldld, aout, or coff.
21131 linux*oldld* | linux*aout* | linux*coff*)
21132 dynamic_linker=no
21133 ;;
21134
21135 # This must be Linux ELF.
21136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21137 version_type=linux
21138 need_lib_prefix=no
21139 need_version=no
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21143 shlibpath_var=LD_LIBRARY_PATH
21144 shlibpath_overrides_runpath=no
21145
21146 # Some binutils ld are patched to set DT_RUNPATH
21147 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21148 $as_echo_n "(cached) " >&6
21149 else
21150 lt_cv_shlibpath_overrides_runpath=no
21151 save_LDFLAGS=$LDFLAGS
21152 save_libdir=$libdir
21153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21157
21158 int
21159 main ()
21160 {
21161
21162 ;
21163 return 0;
21164 }
21165 _ACEOF
21166 if ac_fn_cxx_try_link "$LINENO"; then :
21167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21168 lt_cv_shlibpath_overrides_runpath=yes
21169 fi
21170 fi
21171 rm -f core conftest.err conftest.$ac_objext \
21172 conftest$ac_exeext conftest.$ac_ext
21173 LDFLAGS=$save_LDFLAGS
21174 libdir=$save_libdir
21175
21176 fi
21177
21178 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21179
21180 # This implies no fast_install, which is unacceptable.
21181 # Some rework will be needed to allow for fast_install
21182 # before this can be enabled.
21183 hardcode_into_libs=yes
21184
21185 # Append ld.so.conf contents to the search path
21186 if test -f /etc/ld.so.conf; then
21187 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' ' '`
21188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21189 fi
21190
21191 # We used to test for /lib/ld.so.1 and disable shared libraries on
21192 # powerpc, because MkLinux only supported shared libraries with the
21193 # GNU dynamic linker. Since this was broken with cross compilers,
21194 # most powerpc-linux boxes support dynamic linking these days and
21195 # people can always --disable-shared, the test was removed, and we
21196 # assume the GNU/Linux dynamic linker is in use.
21197 dynamic_linker='GNU/Linux ld.so'
21198 ;;
21199
21200 netbsd*)
21201 version_type=sunos
21202 need_lib_prefix=no
21203 need_version=no
21204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21207 dynamic_linker='NetBSD (a.out) ld.so'
21208 else
21209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21210 soname_spec='${libname}${release}${shared_ext}$major'
21211 dynamic_linker='NetBSD ld.elf_so'
21212 fi
21213 shlibpath_var=LD_LIBRARY_PATH
21214 shlibpath_overrides_runpath=yes
21215 hardcode_into_libs=yes
21216 ;;
21217
21218 newsos6)
21219 version_type=linux
21220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 shlibpath_overrides_runpath=yes
21223 ;;
21224
21225 *nto* | *qnx*)
21226 version_type=qnx
21227 need_lib_prefix=no
21228 need_version=no
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 shlibpath_var=LD_LIBRARY_PATH
21232 shlibpath_overrides_runpath=no
21233 hardcode_into_libs=yes
21234 dynamic_linker='ldqnx.so'
21235 ;;
21236
21237 openbsd*)
21238 version_type=sunos
21239 sys_lib_dlsearch_path_spec="/usr/lib"
21240 need_lib_prefix=no
21241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21242 case $host_os in
21243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21244 *) need_version=no ;;
21245 esac
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21248 shlibpath_var=LD_LIBRARY_PATH
21249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21250 case $host_os in
21251 openbsd2.[89] | openbsd2.[89].*)
21252 shlibpath_overrides_runpath=no
21253 ;;
21254 *)
21255 shlibpath_overrides_runpath=yes
21256 ;;
21257 esac
21258 else
21259 shlibpath_overrides_runpath=yes
21260 fi
21261 ;;
21262
21263 os2*)
21264 libname_spec='$name'
21265 shrext_cmds=".dll"
21266 need_lib_prefix=no
21267 library_names_spec='$libname${shared_ext} $libname.a'
21268 dynamic_linker='OS/2 ld.exe'
21269 shlibpath_var=LIBPATH
21270 ;;
21271
21272 osf3* | osf4* | osf5*)
21273 version_type=osf
21274 need_lib_prefix=no
21275 need_version=no
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21281 ;;
21282
21283 rdos*)
21284 dynamic_linker=no
21285 ;;
21286
21287 solaris*)
21288 version_type=linux
21289 need_lib_prefix=no
21290 need_version=no
21291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21292 soname_spec='${libname}${release}${shared_ext}$major'
21293 shlibpath_var=LD_LIBRARY_PATH
21294 shlibpath_overrides_runpath=yes
21295 hardcode_into_libs=yes
21296 # ldd complains unless libraries are executable
21297 postinstall_cmds='chmod +x $lib'
21298 ;;
21299
21300 sunos4*)
21301 version_type=sunos
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21304 shlibpath_var=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath=yes
21306 if test "$with_gnu_ld" = yes; then
21307 need_lib_prefix=no
21308 fi
21309 need_version=yes
21310 ;;
21311
21312 sysv4 | sysv4.3*)
21313 version_type=linux
21314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21315 soname_spec='${libname}${release}${shared_ext}$major'
21316 shlibpath_var=LD_LIBRARY_PATH
21317 case $host_vendor in
21318 sni)
21319 shlibpath_overrides_runpath=no
21320 need_lib_prefix=no
21321 runpath_var=LD_RUN_PATH
21322 ;;
21323 siemens)
21324 need_lib_prefix=no
21325 ;;
21326 motorola)
21327 need_lib_prefix=no
21328 need_version=no
21329 shlibpath_overrides_runpath=no
21330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21331 ;;
21332 esac
21333 ;;
21334
21335 sysv4*MP*)
21336 if test -d /usr/nec ;then
21337 version_type=linux
21338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21339 soname_spec='$libname${shared_ext}.$major'
21340 shlibpath_var=LD_LIBRARY_PATH
21341 fi
21342 ;;
21343
21344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21345 version_type=freebsd-elf
21346 need_lib_prefix=no
21347 need_version=no
21348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21349 soname_spec='${libname}${release}${shared_ext}$major'
21350 shlibpath_var=LD_LIBRARY_PATH
21351 shlibpath_overrides_runpath=yes
21352 hardcode_into_libs=yes
21353 if test "$with_gnu_ld" = yes; then
21354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21355 else
21356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21357 case $host_os in
21358 sco3.2v5*)
21359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21360 ;;
21361 esac
21362 fi
21363 sys_lib_dlsearch_path_spec='/usr/lib'
21364 ;;
21365
21366 tpf*)
21367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21368 version_type=linux
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21372 shlibpath_var=LD_LIBRARY_PATH
21373 shlibpath_overrides_runpath=no
21374 hardcode_into_libs=yes
21375 ;;
21376
21377 uts4*)
21378 version_type=linux
21379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21380 soname_spec='${libname}${release}${shared_ext}$major'
21381 shlibpath_var=LD_LIBRARY_PATH
21382 ;;
21383
21384 *)
21385 dynamic_linker=no
21386 ;;
21387 esac
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21389 $as_echo "$dynamic_linker" >&6; }
21390 test "$dynamic_linker" = no && can_build_shared=no
21391
21392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21393 if test "$GCC" = yes; then
21394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21395 fi
21396
21397 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21398 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21399 fi
21400 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21401 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21402 fi
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21442 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21443 hardcode_action_CXX=
21444 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21445 test -n "$runpath_var_CXX" ||
21446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21447
21448 # We can hardcode non-existent directories.
21449 if test "$hardcode_direct_CXX" != no &&
21450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21451 # have to relink, otherwise we might link with an installed library
21452 # when we should be linking with a yet-to-be-installed one
21453 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21454 test "$hardcode_minus_L_CXX" != no; then
21455 # Linking always hardcodes the temporary library directory.
21456 hardcode_action_CXX=relink
21457 else
21458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21459 hardcode_action_CXX=immediate
21460 fi
21461 else
21462 # We cannot hardcode anything, or else we can only hardcode existing
21463 # directories.
21464 hardcode_action_CXX=unsupported
21465 fi
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21467 $as_echo "$hardcode_action_CXX" >&6; }
21468
21469 if test "$hardcode_action_CXX" = relink ||
21470 test "$inherit_rpath_CXX" = yes; then
21471 # Fast installation is not supported
21472 enable_fast_install=no
21473 elif test "$shlibpath_overrides_runpath" = yes ||
21474 test "$enable_shared" = no; then
21475 # Fast installation is not necessary
21476 enable_fast_install=needless
21477 fi
21478
21479
21480
21481
21482
21483
21484
21485 fi # test -n "$compiler"
21486
21487 CC=$lt_save_CC
21488 LDCXX=$LD
21489 LD=$lt_save_LD
21490 GCC=$lt_save_GCC
21491 with_gnu_ld=$lt_save_with_gnu_ld
21492 lt_cv_path_LDCXX=$lt_cv_path_LD
21493 lt_cv_path_LD=$lt_save_path_LD
21494 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21495 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21496 fi # test "$_lt_caught_CXX_error" != yes
21497
21498 ac_ext=c
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519 # Only expand once:
21520
21521
21522
21523
21524
21525 # Identify the assembler which will work hand-in-glove with the newly
21526 # built GCC, so that we can examine its features. This is the assembler
21527 # which will be driven by the driver program.
21528 #
21529 # If build != host, and we aren't building gas in-tree, we identify a
21530 # build->target assembler and hope that it will have the same features
21531 # as the host->target assembler we'll be using.
21532 gcc_cv_gas_major_version=
21533 gcc_cv_gas_minor_version=
21534 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21535
21536 if test "${gcc_cv_as+set}" = set; then :
21537
21538 else
21539
21540 if test -x "$DEFAULT_ASSEMBLER"; then
21541 gcc_cv_as="$DEFAULT_ASSEMBLER"
21542 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21543 && test -f ../gas/Makefile \
21544 && test x$build = x$host; then
21545 gcc_cv_as=../gas/as-new$build_exeext
21546 elif test -x as$build_exeext; then
21547 # Build using assembler in the current directory.
21548 gcc_cv_as=./as$build_exeext
21549 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21550 gcc_cv_as="$AS_FOR_TARGET"
21551 else
21552 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21553 set dummy $AS_FOR_TARGET; ac_word=$2
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21555 $as_echo_n "checking for $ac_word... " >&6; }
21556 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21558 else
21559 case $gcc_cv_as in
21560 [\\/]* | ?:[\\/]*)
21561 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21562 ;;
21563 *)
21564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21566 do
21567 IFS=$as_save_IFS
21568 test -z "$as_dir" && as_dir=.
21569 for ac_exec_ext in '' $ac_executable_extensions; do
21570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21573 break 2
21574 fi
21575 done
21576 done
21577 IFS=$as_save_IFS
21578
21579 ;;
21580 esac
21581 fi
21582 gcc_cv_as=$ac_cv_path_gcc_cv_as
21583 if test -n "$gcc_cv_as"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21585 $as_echo "$gcc_cv_as" >&6; }
21586 else
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588 $as_echo "no" >&6; }
21589 fi
21590
21591
21592 fi
21593 fi
21594
21595 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21596
21597 case "$ORIGINAL_AS_FOR_TARGET" in
21598 ./as | ./as$build_exeext) ;;
21599 *) ac_config_files="$ac_config_files as:exec-tool.in"
21600 ;;
21601 esac
21602
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21604 $as_echo_n "checking what assembler to use... " >&6; }
21605 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21606 # Single tree build which includes gas. We want to prefer it
21607 # over whatever linker top-level may have detected, since
21608 # we'll use what we're building after installation anyway.
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21610 $as_echo "newly built gas" >&6; }
21611 in_tree_gas=yes
21612 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21613 for f in $gcc_cv_as_bfd_srcdir/configure \
21614 $gcc_cv_as_gas_srcdir/configure \
21615 $gcc_cv_as_gas_srcdir/configure.in \
21616 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21617 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21618 if test x$gcc_cv_gas_version != x; then
21619 break
21620 fi
21621 done
21622 case $gcc_cv_gas_version in
21623 VERSION=[0-9]*) ;;
21624 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21625 esac
21626 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21627 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21628 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21629 case $gcc_cv_gas_patch_version in
21630 "") gcc_cv_gas_patch_version="0" ;;
21631 esac
21632 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21633 + $gcc_cv_gas_minor_version \) \* 1000 \
21634 + $gcc_cv_gas_patch_version`
21635
21636 in_tree_gas_is_elf=no
21637 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21638 || (grep 'obj_format = multi' ../gas/Makefile \
21639 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21640 then
21641 in_tree_gas_is_elf=yes
21642 fi
21643 else
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21645 $as_echo "$gcc_cv_as" >&6; }
21646 in_tree_gas=no
21647 fi
21648
21649 default_ld=
21650 # Check whether --enable-ld was given.
21651 if test "${enable_ld+set}" = set; then :
21652 enableval=$enable_ld; case "${enableval}" in
21653 no)
21654 default_ld=ld.gold
21655 ;;
21656 esac
21657 fi
21658
21659
21660 install_gold_as_default=no
21661 # Check whether --enable-gold was given.
21662 if test "${enable_gold+set}" = set; then :
21663 enableval=$enable_gold; case "${enableval}" in
21664 default)
21665 install_gold_as_default=yes
21666 ;;
21667 yes)
21668 if test x${default_ld} != x; then
21669 install_gold_as_default=yes
21670 fi
21671 ;;
21672 no)
21673 ;;
21674 *)
21675 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21676 ;;
21677 esac
21678 fi
21679
21680
21681 # Identify the linker which will work hand-in-glove with the newly
21682 # built GCC, so that we can examine its features. This is the linker
21683 # which will be driven by the driver program.
21684 #
21685 # If build != host, and we aren't building gas in-tree, we identify a
21686 # build->target linker and hope that it will have the same features
21687 # as the host->target linker we'll be using.
21688 gcc_cv_gld_major_version=
21689 gcc_cv_gld_minor_version=
21690 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21691 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21692 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21693
21694 if test "${gcc_cv_ld+set}" = set; then :
21695
21696 else
21697
21698 if test -x "$DEFAULT_LINKER"; then
21699 gcc_cv_ld="$DEFAULT_LINKER"
21700 elif test $install_gold_as_default = yes \
21701 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21702 && test -f ../gold/Makefile \
21703 && test x$build = x$host; then
21704 gcc_cv_ld=../gold/ld-new$build_exeext
21705 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21706 && test -f ../ld/Makefile \
21707 && test x$build = x$host; then
21708 gcc_cv_ld=../ld/ld-new$build_exeext
21709 elif test -x collect-ld$build_exeext; then
21710 # Build using linker in the current directory.
21711 gcc_cv_ld=./collect-ld$build_exeext
21712 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21713 gcc_cv_ld="$LD_FOR_TARGET"
21714 else
21715 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21716 set dummy $LD_FOR_TARGET; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 case $gcc_cv_ld in
21723 [\\/]* | ?:[\\/]*)
21724 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21725 ;;
21726 *)
21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730 IFS=$as_save_IFS
21731 test -z "$as_dir" && as_dir=.
21732 for ac_exec_ext in '' $ac_executable_extensions; do
21733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21734 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 break 2
21737 fi
21738 done
21739 done
21740 IFS=$as_save_IFS
21741
21742 ;;
21743 esac
21744 fi
21745 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21746 if test -n "$gcc_cv_ld"; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21748 $as_echo "$gcc_cv_ld" >&6; }
21749 else
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21752 fi
21753
21754
21755 fi
21756 fi
21757
21758 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21759 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21760 # if the PLUGIN_LD is set ld-new, just have it as ld
21761 # as that is the installed named.
21762 if test x$PLUGIN_LD_SUFFIX = xld-new \
21763 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21764 PLUGIN_LD_SUFFIX=ld
21765 fi
21766
21767 # Check whether --with-plugin-ld was given.
21768 if test "${with_plugin_ld+set}" = set; then :
21769 withval=$with_plugin_ld; if test x"$withval" != x; then
21770 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21771 PLUGIN_LD_SUFFIX="$withval"
21772 fi
21773 fi
21774
21775
21776
21777 cat >>confdefs.h <<_ACEOF
21778 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21779 _ACEOF
21780
21781
21782 # Check to see if we are using gold instead of ld
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21784 $as_echo_n "checking whether we are using gold... " >&6; }
21785 ld_is_gold=no
21786 if test x$gcc_cv_ld != x; then
21787 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21788 | grep "GNU gold" > /dev/null; then
21789 ld_is_gold=yes
21790 fi
21791 fi
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21793 $as_echo "$ld_is_gold" >&6; }
21794
21795 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21796
21797 case "$ORIGINAL_LD_FOR_TARGET" in
21798 ./collect-ld | ./collect-ld$build_exeext) ;;
21799 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21800 ;;
21801 esac
21802
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21804 $as_echo_n "checking what linker to use... " >&6; }
21805 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21806 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21807 # Single tree build which includes ld. We want to prefer it
21808 # over whatever linker top-level may have detected, since
21809 # we'll use what we're building after installation anyway.
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21811 $as_echo "newly built ld" >&6; }
21812 in_tree_ld=yes
21813 in_tree_ld_is_elf=no
21814 if (grep 'EMUL = .*elf' ../ld/Makefile \
21815 || grep 'EMUL = .*linux' ../ld/Makefile \
21816 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21817 in_tree_ld_is_elf=yes
21818 elif test "$ld_is_gold" = yes; then
21819 in_tree_ld_is_elf=yes
21820 fi
21821 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21822 do
21823 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21824 if test x$gcc_cv_gld_version != x; then
21825 break
21826 fi
21827 done
21828 case $gcc_cv_gld_version in
21829 VERSION=[0-9]*) ;;
21830 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21831 esac
21832 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21833 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21834 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21835 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21836 else
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21838 $as_echo "$gcc_cv_ld" >&6; }
21839 in_tree_ld=no
21840 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21841 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21842 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21843 fi
21844
21845
21846
21847
21848 # Figure out what nm we will be using.
21849 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21850 if test "${gcc_cv_nm+set}" = set; then :
21851
21852 else
21853
21854 if test -f $gcc_cv_binutils_srcdir/configure.in \
21855 && test -f ../binutils/Makefile \
21856 && test x$build = x$host; then
21857 gcc_cv_nm=../binutils/nm-new$build_exeext
21858 elif test -x nm$build_exeext; then
21859 gcc_cv_nm=./nm$build_exeext
21860 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21861 gcc_cv_nm="$NM_FOR_TARGET"
21862 else
21863 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21864 set dummy $NM_FOR_TARGET; ac_word=$2
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21866 $as_echo_n "checking for $ac_word... " >&6; }
21867 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21868 $as_echo_n "(cached) " >&6
21869 else
21870 case $gcc_cv_nm in
21871 [\\/]* | ?:[\\/]*)
21872 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21873 ;;
21874 *)
21875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21876 for as_dir in $PATH
21877 do
21878 IFS=$as_save_IFS
21879 test -z "$as_dir" && as_dir=.
21880 for ac_exec_ext in '' $ac_executable_extensions; do
21881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21882 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21884 break 2
21885 fi
21886 done
21887 done
21888 IFS=$as_save_IFS
21889
21890 ;;
21891 esac
21892 fi
21893 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21894 if test -n "$gcc_cv_nm"; then
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21896 $as_echo "$gcc_cv_nm" >&6; }
21897 else
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21899 $as_echo "no" >&6; }
21900 fi
21901
21902
21903 fi
21904 fi
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21907 $as_echo_n "checking what nm to use... " >&6; }
21908 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21909 # Single tree build which includes binutils.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21911 $as_echo "newly built nm" >&6; }
21912 in_tree_nm=yes
21913 else
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21915 $as_echo "$gcc_cv_nm" >&6; }
21916 in_tree_nm=no
21917 fi
21918
21919 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21920
21921 case "$ORIGINAL_NM_FOR_TARGET" in
21922 ./nm | ./nm$build_exeext) ;;
21923 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21924 ;;
21925 esac
21926
21927
21928 # Figure out what objdump we will be using.
21929 if test "${gcc_cv_objdump+set}" = set; then :
21930
21931 else
21932
21933 if test -f $gcc_cv_binutils_srcdir/configure.in \
21934 && test -f ../binutils/Makefile \
21935 && test x$build = x$host; then
21936 # Single tree build which includes binutils.
21937 gcc_cv_objdump=../binutils/objdump$build_exeext
21938 elif test -x objdump$build_exeext; then
21939 gcc_cv_objdump=./objdump$build_exeext
21940 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21941 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21942 else
21943 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21944 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21946 $as_echo_n "checking for $ac_word... " >&6; }
21947 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950 case $gcc_cv_objdump in
21951 [\\/]* | ?:[\\/]*)
21952 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21953 ;;
21954 *)
21955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21956 for as_dir in $PATH
21957 do
21958 IFS=$as_save_IFS
21959 test -z "$as_dir" && as_dir=.
21960 for ac_exec_ext in '' $ac_executable_extensions; do
21961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21962 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21964 break 2
21965 fi
21966 done
21967 done
21968 IFS=$as_save_IFS
21969
21970 ;;
21971 esac
21972 fi
21973 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21974 if test -n "$gcc_cv_objdump"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21976 $as_echo "$gcc_cv_objdump" >&6; }
21977 else
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21980 fi
21981
21982
21983 fi
21984 fi
21985
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21987 $as_echo_n "checking what objdump to use... " >&6; }
21988 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21989 # Single tree build which includes binutils.
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21991 $as_echo "newly built objdump" >&6; }
21992 elif test x$gcc_cv_objdump = x; then
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21994 $as_echo "not found" >&6; }
21995 else
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21997 $as_echo "$gcc_cv_objdump" >&6; }
21998 fi
21999
22000 # Figure out what readelf we will be using.
22001 if test "${gcc_cv_readelf+set}" = set; then :
22002
22003 else
22004
22005 if test -f $gcc_cv_binutils_srcdir/configure.in \
22006 && test -f ../binutils/Makefile \
22007 && test x$build = x$host; then
22008 # Single tree build which includes binutils.
22009 gcc_cv_readelf=../binutils/readelf$build_exeext
22010 elif test -x readelf$build_exeext; then
22011 gcc_cv_readelf=./readelf$build_exeext
22012 else
22013 # Extract the first word of "readelf", so it can be a program name with args.
22014 set dummy readelf; ac_word=$2
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22016 $as_echo_n "checking for $ac_word... " >&6; }
22017 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22018 $as_echo_n "(cached) " >&6
22019 else
22020 case $gcc_cv_readelf in
22021 [\\/]* | ?:[\\/]*)
22022 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22023 ;;
22024 *)
22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22027 do
22028 IFS=$as_save_IFS
22029 test -z "$as_dir" && as_dir=.
22030 for ac_exec_ext in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22034 break 2
22035 fi
22036 done
22037 done
22038 IFS=$as_save_IFS
22039
22040 ;;
22041 esac
22042 fi
22043 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22044 if test -n "$gcc_cv_readelf"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22046 $as_echo "$gcc_cv_readelf" >&6; }
22047 else
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22050 fi
22051
22052
22053 fi
22054 fi
22055
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22057 $as_echo_n "checking what readelf to use... " >&6; }
22058 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22059 # Single tree build which includes binutils.
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22061 $as_echo "newly built readelf" >&6; }
22062 elif test x$gcc_cv_readelf = x; then
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22064 $as_echo "not found" >&6; }
22065 else
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22067 $as_echo "$gcc_cv_readelf" >&6; }
22068 fi
22069
22070 # Figure out what assembler alignment features are present.
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22072 $as_echo_n "checking assembler flags... " >&6; }
22073 if test "${gcc_cv_as_flags+set}" = set; then :
22074 $as_echo_n "(cached) " >&6
22075 else
22076 case "$target" in
22077 i[34567]86-*-linux*)
22078 gcc_cv_as_flags=--32
22079 ;;
22080 x86_64-*-linux-gnux32)
22081 gcc_cv_as_flags=--x32
22082 ;;
22083 x86_64-*-linux*)
22084 gcc_cv_as_flags=--64
22085 ;;
22086 powerpc*-*-darwin*)
22087 gcc_cv_as_flags="-arch ppc"
22088 ;;
22089 *)
22090 gcc_cv_as_flags=" "
22091 ;;
22092 esac
22093 fi
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22095 $as_echo "$gcc_cv_as_flags" >&6; }
22096
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22098 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22099 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22100 $as_echo_n "(cached) " >&6
22101 else
22102 gcc_cv_as_balign_and_p2align=no
22103 if test $in_tree_gas = yes; then
22104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22105 then gcc_cv_as_balign_and_p2align=yes
22106 fi
22107 elif test x$gcc_cv_as != x; then
22108 $as_echo '.balign 4
22109 .p2align 2' > conftest.s
22110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }
22116 then
22117 gcc_cv_as_balign_and_p2align=yes
22118 else
22119 echo "configure: failed program was" >&5
22120 cat conftest.s >&5
22121 fi
22122 rm -f conftest.o conftest.s
22123 fi
22124 fi
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22126 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22127 if test $gcc_cv_as_balign_and_p2align = yes; then
22128
22129 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22130
22131 fi
22132
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22134 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22135 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22137 else
22138 gcc_cv_as_max_skip_p2align=no
22139 if test $in_tree_gas = yes; then
22140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22141 then gcc_cv_as_max_skip_p2align=yes
22142 fi
22143 elif test x$gcc_cv_as != x; then
22144 $as_echo '.p2align 4,,7' > conftest.s
22145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22151 then
22152 gcc_cv_as_max_skip_p2align=yes
22153 else
22154 echo "configure: failed program was" >&5
22155 cat conftest.s >&5
22156 fi
22157 rm -f conftest.o conftest.s
22158 fi
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22161 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22162 if test $gcc_cv_as_max_skip_p2align = yes; then
22163
22164 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22165
22166 fi
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22169 $as_echo_n "checking assembler for .literal16... " >&6; }
22170 if test "${gcc_cv_as_literal16+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 gcc_cv_as_literal16=no
22174 if test $in_tree_gas = yes; then
22175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22176 then gcc_cv_as_literal16=yes
22177 fi
22178 elif test x$gcc_cv_as != x; then
22179 $as_echo '.literal16' > conftest.s
22180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22185 test $ac_status = 0; }; }
22186 then
22187 gcc_cv_as_literal16=yes
22188 else
22189 echo "configure: failed program was" >&5
22190 cat conftest.s >&5
22191 fi
22192 rm -f conftest.o conftest.s
22193 fi
22194 fi
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22196 $as_echo "$gcc_cv_as_literal16" >&6; }
22197 if test $gcc_cv_as_literal16 = yes; then
22198
22199 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22200
22201 fi
22202
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22204 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22205 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 gcc_cv_as_subsection_m1=no
22209 if test $in_tree_gas = yes; then
22210 if test $in_tree_gas_is_elf = yes \
22211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22212 then gcc_cv_as_subsection_m1=yes
22213 fi
22214 elif test x$gcc_cv_as != x; then
22215 $as_echo 'conftest_label1: .word 0
22216 .subsection -1
22217 conftest_label2: .word 0
22218 .previous' > conftest.s
22219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22224 test $ac_status = 0; }; }
22225 then
22226 if test x$gcc_cv_nm != x; then
22227 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22228 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22229 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22230 then :
22231 else gcc_cv_as_subsection_m1=yes
22232 fi
22233 rm -f conftest.nm1 conftest.nm2
22234 fi
22235 else
22236 echo "configure: failed program was" >&5
22237 cat conftest.s >&5
22238 fi
22239 rm -f conftest.o conftest.s
22240 fi
22241 fi
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22243 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22244 if test $gcc_cv_as_subsection_m1 = yes; then
22245
22246 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22247
22248 fi
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22251 $as_echo_n "checking assembler for .weak... " >&6; }
22252 if test "${gcc_cv_as_weak+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 gcc_cv_as_weak=no
22256 if test $in_tree_gas = yes; then
22257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22258 then gcc_cv_as_weak=yes
22259 fi
22260 elif test x$gcc_cv_as != x; then
22261 $as_echo ' .weak foobar' > conftest.s
22262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22267 test $ac_status = 0; }; }
22268 then
22269 gcc_cv_as_weak=yes
22270 else
22271 echo "configure: failed program was" >&5
22272 cat conftest.s >&5
22273 fi
22274 rm -f conftest.o conftest.s
22275 fi
22276 fi
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22278 $as_echo "$gcc_cv_as_weak" >&6; }
22279 if test $gcc_cv_as_weak = yes; then
22280
22281 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22282
22283 fi
22284
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22286 $as_echo_n "checking assembler for .weakref... " >&6; }
22287 if test "${gcc_cv_as_weakref+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22289 else
22290 gcc_cv_as_weakref=no
22291 if test $in_tree_gas = yes; then
22292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22293 then gcc_cv_as_weakref=yes
22294 fi
22295 elif test x$gcc_cv_as != x; then
22296 $as_echo ' .weakref foobar, barfnot' > conftest.s
22297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302 test $ac_status = 0; }; }
22303 then
22304 gcc_cv_as_weakref=yes
22305 else
22306 echo "configure: failed program was" >&5
22307 cat conftest.s >&5
22308 fi
22309 rm -f conftest.o conftest.s
22310 fi
22311 fi
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22313 $as_echo "$gcc_cv_as_weakref" >&6; }
22314 if test $gcc_cv_as_weakref = yes; then
22315
22316 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22317
22318 fi
22319
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22321 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22322 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 gcc_cv_as_nsubspa_comdat=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22328 then gcc_cv_as_nsubspa_comdat=yes
22329 fi
22330 elif test x$gcc_cv_as != x; then
22331 $as_echo ' .SPACE $TEXT$
22332 .NSUBSPA $CODE$,COMDAT' > conftest.s
22333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22338 test $ac_status = 0; }; }
22339 then
22340 gcc_cv_as_nsubspa_comdat=yes
22341 else
22342 echo "configure: failed program was" >&5
22343 cat conftest.s >&5
22344 fi
22345 rm -f conftest.o conftest.s
22346 fi
22347 fi
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22349 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22350 if test $gcc_cv_as_nsubspa_comdat = yes; then
22351
22352 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22353
22354 fi
22355
22356 # .hidden needs to be supported in both the assembler and the linker,
22357 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22358 # This is irritatingly difficult to feature test for; we have to check the
22359 # date string after the version number. If we've got an in-tree
22360 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22361 # to be safe.
22362 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22364 $as_echo_n "checking assembler for .hidden... " >&6; }
22365 if test "${gcc_cv_as_hidden+set}" = set; then :
22366 $as_echo_n "(cached) " >&6
22367 else
22368 gcc_cv_as_hidden=no
22369 if test $in_tree_gas = yes; then
22370 if test $in_tree_gas_is_elf = yes \
22371 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22372 then gcc_cv_as_hidden=yes
22373 fi
22374 elif test x$gcc_cv_as != x; then
22375 $as_echo ' .hidden foobar
22376 foobar:' > conftest.s
22377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22382 test $ac_status = 0; }; }
22383 then
22384 gcc_cv_as_hidden=yes
22385 else
22386 echo "configure: failed program was" >&5
22387 cat conftest.s >&5
22388 fi
22389 rm -f conftest.o conftest.s
22390 fi
22391 fi
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22393 $as_echo "$gcc_cv_as_hidden" >&6; }
22394
22395 case "${target}" in
22396 *-*-darwin*)
22397 # Darwin as has some visibility support, though with a different syntax.
22398 gcc_cv_as_hidden=yes
22399 ;;
22400 esac
22401
22402 # gnu_indirect_function type is an extension proposed at
22403 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22404 # selection of function implementation
22405 # Check whether --enable-gnu-indirect-function was given.
22406 if test "${enable_gnu_indirect_function+set}" = set; then :
22407 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22408 yes | no) ;;
22409 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22410 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22411 esac
22412 else
22413 enable_gnu_indirect_function="$default_gnu_indirect_function"
22414 fi
22415
22416
22417 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22418
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22421 _ACEOF
22422
22423
22424
22425 if test $in_tree_ld != yes ; then
22426 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22427 if echo "$ld_ver" | grep GNU > /dev/null; then
22428 if test x"$ld_is_gold" = xyes; then
22429 # GNU gold --version looks like this:
22430 #
22431 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22432 #
22433 # We extract the binutils version which is more familiar and specific
22434 # than the gold version.
22435 ld_vers=`echo $ld_ver | sed -n \
22436 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22437 else
22438 # GNU ld --version looks like this:
22439 #
22440 # GNU ld (GNU Binutils) 2.21.51.20110225
22441 ld_vers=`echo $ld_ver | sed -n \
22442 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22443 fi
22444 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'`
22445 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22446 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22447 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22448 else
22449 case "${target}" in
22450 *-*-solaris2*)
22451 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22452 # format.
22453 #
22454 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22455 # /usr/ccs/bin/ld has been configured.
22456 ld_ver=`$gcc_cv_ld -V 2>&1`
22457 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22458 ld_vers=`echo $ld_ver | sed -n \
22459 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22460 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22461 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22462 fi
22463 ;;
22464 esac
22465 fi
22466 fi
22467
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22469 $as_echo_n "checking linker for .hidden support... " >&6; }
22470 if test "${gcc_cv_ld_hidden+set}" = set; then :
22471 $as_echo_n "(cached) " >&6
22472 else
22473 if test $in_tree_ld = yes ; then
22474 gcc_cv_ld_hidden=no
22475 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 \
22476 && test $in_tree_ld_is_elf = yes; then
22477 gcc_cv_ld_hidden=yes
22478 fi
22479 else
22480 gcc_cv_ld_hidden=yes
22481 if test x"$ld_is_gold" = xyes; then
22482 :
22483 elif echo "$ld_ver" | grep GNU > /dev/null; then
22484 case "${target}" in
22485 mmix-knuth-mmixware)
22486 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22487 gcc_cv_ld_hidden=no
22488 ;;
22489 esac
22490 if test 0"$ld_date" -lt 20020404; then
22491 if test -n "$ld_date"; then
22492 # If there was date string, but was earlier than 2002-04-04, fail
22493 gcc_cv_ld_hidden=no
22494 elif test -z "$ld_vers"; then
22495 # If there was no date string nor ld version number, something is wrong
22496 gcc_cv_ld_hidden=no
22497 else
22498 test -z "$ld_vers_patch" && ld_vers_patch=0
22499 if test "$ld_vers_major" -lt 2; then
22500 gcc_cv_ld_hidden=no
22501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22502 gcc_cv_ld_hidden="no"
22503 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22504 gcc_cv_ld_hidden=no
22505 fi
22506 fi
22507 fi
22508 else
22509 case "${target}" in
22510 *-*-darwin*)
22511 # Darwin ld has some visibility support.
22512 gcc_cv_ld_hidden=yes
22513 ;;
22514 hppa64*-*-hpux* | ia64*-*-hpux*)
22515 gcc_cv_ld_hidden=yes
22516 ;;
22517 *-*-solaris2.1[0-9]*)
22518 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22519 # .symbolic was only added in Solaris 9 12/02.
22520 gcc_cv_ld_hidden=yes
22521 ;;
22522 *)
22523 gcc_cv_ld_hidden=no
22524 ;;
22525 esac
22526 fi
22527 fi
22528 fi
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22530 $as_echo "$gcc_cv_ld_hidden" >&6; }
22531 libgcc_visibility=no
22532
22533
22534 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22535 libgcc_visibility=yes
22536
22537 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22538
22539 fi
22540
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22542 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22543 gcc_cv_ld_ro_rw_mix=unknown
22544 if test $in_tree_ld = yes ; then
22545 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 \
22546 && test $in_tree_ld_is_elf = yes; then
22547 gcc_cv_ld_ro_rw_mix=read-write
22548 fi
22549 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22550 echo '.section myfoosect, "a"' > conftest1.s
22551 echo '.section myfoosect, "aw"' > conftest2.s
22552 echo '.byte 1' >> conftest2.s
22553 echo '.section myfoosect, "a"' > conftest3.s
22554 echo '.byte 0' >> conftest3.s
22555 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22556 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22557 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22558 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22559 conftest2.o conftest3.o > /dev/null 2>&1; then
22560 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22561 | sed -e '/myfoosect/!d' -e N`
22562 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22563 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22564 gcc_cv_ld_ro_rw_mix=read-only
22565 else
22566 gcc_cv_ld_ro_rw_mix=read-write
22567 fi
22568 fi
22569 fi
22570 rm -f conftest.* conftest[123].*
22571 fi
22572 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22573
22574 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22575
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22578 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22579
22580 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22581 case "${target}" in
22582 *-*-solaris2*)
22583 #
22584 # Solaris 2 ld -V output looks like this for a regular version:
22585 #
22586 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22587 #
22588 # but test versions add stuff at the end:
22589 #
22590 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22591 #
22592 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22593 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22594 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22595 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22596 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22597 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22598 fi
22599 ;;
22600 esac
22601 fi
22602
22603 # Check whether --enable-initfini-array was given.
22604 if test "${enable_initfini_array+set}" = set; then :
22605 enableval=$enable_initfini_array;
22606 else
22607
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22609 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22610 if test "${gcc_cv_initfini_array+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22614 case "${target}" in
22615 ia64-*)
22616 if test "$cross_compiling" = yes; then :
22617 gcc_cv_initfini_array=no
22618 else
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620 /* end confdefs.h. */
22621
22622 #ifndef __ELF__
22623 #error Not an ELF OS
22624 #endif
22625 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22626 if it can be used. */
22627 static int x = -1;
22628 int main (void) { return x; }
22629 int foo (void) { x = 0; }
22630 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22631
22632 _ACEOF
22633 if ac_fn_c_try_run "$LINENO"; then :
22634 gcc_cv_initfini_array=yes
22635 else
22636 gcc_cv_initfini_array=no
22637 fi
22638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22639 conftest.$ac_objext conftest.beam conftest.$ac_ext
22640 fi
22641 ;;
22642 *)
22643 gcc_cv_initfini_array=no
22644 if test $in_tree_ld = yes ; then
22645 if test "$gcc_cv_gld_major_version" -eq 2 \
22646 -a "$gcc_cv_gld_minor_version" -ge 22 \
22647 -o "$gcc_cv_gld_major_version" -gt 2 \
22648 && test $in_tree_ld_is_elf = yes; then
22649 gcc_cv_initfini_array=yes
22650 fi
22651 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22652 cat > conftest.s <<\EOF
22653 .section .dtors,"a",%progbits
22654 .balign 4
22655 .byte 'A', 'A', 'A', 'A'
22656 .section .ctors,"a",%progbits
22657 .balign 4
22658 .byte 'B', 'B', 'B', 'B'
22659 .section .fini_array.65530,"a",%progbits
22660 .balign 4
22661 .byte 'C', 'C', 'C', 'C'
22662 .section .init_array.65530,"a",%progbits
22663 .balign 4
22664 .byte 'D', 'D', 'D', 'D'
22665 .section .dtors.64528,"a",%progbits
22666 .balign 4
22667 .byte 'E', 'E', 'E', 'E'
22668 .section .ctors.64528,"a",%progbits
22669 .balign 4
22670 .byte 'F', 'F', 'F', 'F'
22671 .section .fini_array.01005,"a",%progbits
22672 .balign 4
22673 .byte 'G', 'G', 'G', 'G'
22674 .section .init_array.01005,"a",%progbits
22675 .balign 4
22676 .byte 'H', 'H', 'H', 'H'
22677 .text
22678 .globl _start
22679 _start:
22680 EOF
22681 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22682 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22683 && $gcc_cv_objdump -s -j .init_array conftest \
22684 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22685 && $gcc_cv_objdump -s -j .fini_array conftest \
22686 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22687 gcc_cv_initfini_array=yes
22688 fi
22689 rm -f conftest conftest.*
22690 fi
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h. */
22693
22694 #ifndef __ELF__
22695 # error Not an ELF OS
22696 #endif
22697 #include <stdlib.h>
22698 #if defined __GLIBC_PREREQ
22699 # if __GLIBC_PREREQ (2, 4)
22700 # else
22701 # error GLIBC 2.4 required
22702 # endif
22703 #else
22704 # if defined __sun__ && defined __svr4__
22705 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22706 # else
22707 # error The C library not known to support .init_array/.fini_array
22708 # endif
22709 #endif
22710
22711 _ACEOF
22712 if ac_fn_c_try_cpp "$LINENO"; then :
22713
22714 else
22715 gcc_cv_initfini_array=no
22716 fi
22717 rm -f conftest.err conftest.$ac_ext;;
22718 esac
22719 else
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22721 $as_echo_n "checking cross compile... guessing... " >&6; }
22722 gcc_cv_initfini_array=no
22723 fi
22724 fi
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22726 $as_echo "$gcc_cv_initfini_array" >&6; }
22727 enable_initfini_array=$gcc_cv_initfini_array
22728
22729 fi
22730
22731 if test $enable_initfini_array = yes; then
22732
22733 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22734
22735 fi
22736
22737 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22739 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22740 if test "${gcc_cv_as_leb128+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22742 else
22743 gcc_cv_as_leb128=no
22744 if test $in_tree_gas = yes; then
22745 if test $in_tree_gas_is_elf = yes \
22746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22747 then gcc_cv_as_leb128=yes
22748 fi
22749 elif test x$gcc_cv_as != x; then
22750 $as_echo ' .data
22751 .uleb128 L2 - L1
22752 L1:
22753 .uleb128 1280
22754 .sleb128 -1010
22755 L2:' > conftest.s
22756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22761 test $ac_status = 0; }; }
22762 then
22763 # GAS versions before 2.11 do not support uleb128,
22764 # despite appearing to.
22765 # ??? There exists an elf-specific test that will crash
22766 # the assembler. Perhaps it's better to figure out whether
22767 # arbitrary sections are supported and try the test.
22768 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22769 if echo "$as_ver" | grep GNU > /dev/null; then
22770 as_vers=`echo $as_ver | sed -n \
22771 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22772 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22773 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22774 if test $as_major -eq 2 && test $as_minor -lt 11
22775 then :
22776 else gcc_cv_as_leb128=yes
22777 fi
22778 fi
22779 else
22780 echo "configure: failed program was" >&5
22781 cat conftest.s >&5
22782 fi
22783 rm -f conftest.o conftest.s
22784 fi
22785 fi
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22787 $as_echo "$gcc_cv_as_leb128" >&6; }
22788 if test $gcc_cv_as_leb128 = yes; then
22789
22790 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22791
22792 fi
22793
22794 # Check if we have assembler support for unwind directives.
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22796 $as_echo_n "checking assembler for cfi directives... " >&6; }
22797 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22798 $as_echo_n "(cached) " >&6
22799 else
22800 gcc_cv_as_cfi_directive=no
22801 if test x$gcc_cv_as != x; then
22802 $as_echo ' .text
22803 .cfi_startproc
22804 .cfi_offset 0, 0
22805 .cfi_same_value 1
22806 .cfi_def_cfa 1, 2
22807 .cfi_escape 1, 2, 3, 4, 5
22808 .cfi_endproc' > conftest.s
22809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22814 test $ac_status = 0; }; }
22815 then
22816 case "$target" in
22817 *-*-solaris*)
22818 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22819 # read-only and read-write sections, we need to make sure that the
22820 # assembler used emits read-write .eh_frame sections.
22821 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22822 if test "x$gcc_cv_objdump" != x; then
22823 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22824 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22825 gcc_cv_as_cfi_directive=no
22826 else
22827 case "$target" in
22828 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22829 # On Solaris/x86, make sure that GCC and assembler agree on using
22830 # read-only .eh_frame sections for 64-bit.
22831 if test x$gas = xyes; then
22832 as_ix86_64_opt="--64"
22833 else
22834 as_ix86_64_opt="-xarch=amd64"
22835 fi
22836 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22837 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22838 sed -e /.eh_frame/!d -e N | \
22839 grep READONLY > /dev/null; then
22840 gcc_cv_as_cfi_directive=yes
22841 else
22842 gcc_cv_as_cfi_directive=no
22843 fi
22844 ;;
22845 *)
22846 gcc_cv_as_cfi_directive=yes
22847 ;;
22848 esac
22849 fi
22850 else
22851 # no objdump, err on the side of caution
22852 gcc_cv_as_cfi_directive=no
22853 fi
22854 else
22855 gcc_cv_as_cfi_directive=yes
22856 fi
22857 ;;
22858 *-*-*)
22859 gcc_cv_as_cfi_directive=yes
22860 ;;
22861 esac
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22865 fi
22866 rm -f conftest.o conftest.s
22867 fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22870 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22871
22872 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22874 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22875 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_cfi_advance_working=no
22879 if test x$gcc_cv_as != x; then
22880 $as_echo ' .text
22881 .cfi_startproc
22882 .cfi_adjust_cfa_offset 64
22883 .skip 75040, 0
22884 .cfi_adjust_cfa_offset 128
22885 .cfi_endproc' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22893
22894 if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \
22895 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22896 gcc_cv_as_cfi_advance_working=yes
22897 fi
22898
22899 else
22900 echo "configure: failed program was" >&5
22901 cat conftest.s >&5
22902 fi
22903 rm -f conftest.o conftest.s
22904 fi
22905 fi
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22907 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22908
22909 else
22910 # no objdump, err on the side of caution
22911 gcc_cv_as_cfi_advance_working=no
22912 fi
22913
22914
22915 cat >>confdefs.h <<_ACEOF
22916 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22917 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22918 _ACEOF
22919
22920
22921
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22923 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22924 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22926 else
22927 gcc_cv_as_cfi_personality_directive=no
22928 if test x$gcc_cv_as != x; then
22929 $as_echo ' .text
22930 .cfi_startproc
22931 .cfi_personality 0, symbol
22932 .cfi_endproc' > conftest.s
22933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; }
22939 then
22940 gcc_cv_as_cfi_personality_directive=yes
22941 else
22942 echo "configure: failed program was" >&5
22943 cat conftest.s >&5
22944 fi
22945 rm -f conftest.o conftest.s
22946 fi
22947 fi
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22949 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22950
22951
22952 cat >>confdefs.h <<_ACEOF
22953 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22954 then echo 1; else echo 0; fi`
22955 _ACEOF
22956
22957
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22959 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22960 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22962 else
22963 gcc_cv_as_cfi_sections_directive=no
22964 if test x$gcc_cv_as != x; then
22965 $as_echo ' .text
22966 .cfi_sections .debug_frame, .eh_frame
22967 .cfi_startproc
22968 .cfi_endproc' > conftest.s
22969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22971 (eval $ac_try) 2>&5
22972 ac_status=$?
22973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974 test $ac_status = 0; }; }
22975 then
22976 case $target_os in
22977 win32 | pe | cygwin* | mingw32* | uwin*)
22978 # Need to check that we generated the correct relocation for the
22979 # .debug_frame section. This was fixed for binutils 2.21.
22980 gcc_cv_as_cfi_sections_directive=no
22981 if test "x$gcc_cv_objdump" != x; then
22982 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22983 grep secrel > /dev/null; then
22984 gcc_cv_as_cfi_sections_directive=yes
22985 fi
22986 fi
22987 ;;
22988 *)
22989 gcc_cv_as_cfi_sections_directive=yes
22990 ;;
22991 esac
22992 else
22993 echo "configure: failed program was" >&5
22994 cat conftest.s >&5
22995 fi
22996 rm -f conftest.o conftest.s
22997 fi
22998 fi
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23000 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23001
23002
23003
23004 cat >>confdefs.h <<_ACEOF
23005 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23006 then echo 1; else echo 0; fi`
23007 _ACEOF
23008
23009
23010 # GAS versions up to and including 2.11.0 may mis-optimize
23011 # .eh_frame data.
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23013 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23014 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23016 else
23017 gcc_cv_as_eh_frame=no
23018 if test $in_tree_gas = yes; then
23019 if test $in_tree_gas_is_elf = yes \
23020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23021 then gcc_cv_as_eh_frame=yes
23022 fi
23023 elif test x$gcc_cv_as != x; then
23024 $as_echo ' .text
23025 .LFB1:
23026 .4byte 0
23027 .L1:
23028 .4byte 0
23029 .LFE1:
23030 .section .eh_frame,"aw",@progbits
23031 __FRAME_BEGIN__:
23032 .4byte .LECIE1-.LSCIE1
23033 .LSCIE1:
23034 .4byte 0x0
23035 .byte 0x1
23036 .ascii "z\0"
23037 .byte 0x1
23038 .byte 0x78
23039 .byte 0x1a
23040 .byte 0x0
23041 .byte 0x4
23042 .4byte 1
23043 .p2align 1
23044 .LECIE1:
23045 .LSFDE1:
23046 .4byte .LEFDE1-.LASFDE1
23047 .LASFDE1:
23048 .4byte .LASFDE1-__FRAME_BEGIN__
23049 .4byte .LFB1
23050 .4byte .LFE1-.LFB1
23051 .byte 0x4
23052 .4byte .LFE1-.LFB1
23053 .byte 0x4
23054 .4byte .L1-.LFB1
23055 .LEFDE1:' > conftest.s
23056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23061 test $ac_status = 0; }; }
23062 then
23063 cat > conftest.lit <<EOF
23064 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23065 0010 01000000 12000000 18000000 00000000 ................
23066 0020 08000000 04080000 0044 .........D
23067 EOF
23068 cat > conftest.big <<EOF
23069 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23070 0010 00000001 00000012 00000018 00000000 ................
23071 0020 00000008 04000000 0844 .........D
23072 EOF
23073 # If the assembler didn't choke, and we can objdump,
23074 # and we got the correct data, then succeed.
23075 # The text in the here-document typically retains its unix-style line
23076 # endings, while the output of objdump will use host line endings.
23077 # Therefore, use diff -b for the comparisons.
23078 if test x$gcc_cv_objdump != x \
23079 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23080 | tail -3 > conftest.got \
23081 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23082 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23083 then
23084 gcc_cv_as_eh_frame=yes
23085 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }; then
23091 gcc_cv_as_eh_frame=buggy
23092 else
23093 # Uh oh, what do we do now?
23094 gcc_cv_as_eh_frame=no
23095 fi
23096 else
23097 echo "configure: failed program was" >&5
23098 cat conftest.s >&5
23099 fi
23100 rm -f conftest.o conftest.s
23101 fi
23102 fi
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23104 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23105
23106
23107 if test $gcc_cv_as_eh_frame = buggy; then
23108
23109 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23110
23111 fi
23112
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23114 $as_echo_n "checking assembler for section merging support... " >&6; }
23115 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23116 $as_echo_n "(cached) " >&6
23117 else
23118 gcc_cv_as_shf_merge=no
23119 if test $in_tree_gas = yes; then
23120 if test $in_tree_gas_is_elf = yes \
23121 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23122 then gcc_cv_as_shf_merge=yes
23123 fi
23124 elif test x$gcc_cv_as != x; then
23125 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23132 then
23133 gcc_cv_as_shf_merge=yes
23134 else
23135 echo "configure: failed program was" >&5
23136 cat conftest.s >&5
23137 fi
23138 rm -f conftest.o conftest.s
23139 fi
23140 fi
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23142 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23143
23144 if test $gcc_cv_as_shf_merge = no; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23146 $as_echo_n "checking assembler for section merging support... " >&6; }
23147 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23150 gcc_cv_as_shf_merge=no
23151 if test $in_tree_gas = yes; then
23152 if test $in_tree_gas_is_elf = yes \
23153 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23154 then gcc_cv_as_shf_merge=yes
23155 fi
23156 elif test x$gcc_cv_as != x; then
23157 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; }
23164 then
23165 gcc_cv_as_shf_merge=yes
23166 else
23167 echo "configure: failed program was" >&5
23168 cat conftest.s >&5
23169 fi
23170 rm -f conftest.o conftest.s
23171 fi
23172 fi
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23174 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23175
23176 fi
23177
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23180 _ACEOF
23181
23182
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23184 $as_echo_n "checking assembler for stabs directive... " >&6; }
23185 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 gcc_cv_as_stabs_directive=no
23189 if test x$gcc_cv_as != x; then
23190 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23193 (eval $ac_try) 2>&5
23194 ac_status=$?
23195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23196 test $ac_status = 0; }; }
23197 then
23198 gcc_cv_as_stabs_directive=yes
23199 else
23200 echo "configure: failed program was" >&5
23201 cat conftest.s >&5
23202 fi
23203 rm -f conftest.o conftest.s
23204 fi
23205 fi
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23207 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23208 if test $gcc_cv_as_stabs_directive = yes; then
23209
23210 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23211
23212 fi
23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23215 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23216 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 gcc_cv_as_comdat_group=no
23220 if test $in_tree_gas = yes; then
23221 if test $in_tree_gas_is_elf = yes \
23222 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23223 then gcc_cv_as_comdat_group=yes
23224 fi
23225 elif test x$gcc_cv_as != x; then
23226 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23229 (eval $ac_try) 2>&5
23230 ac_status=$?
23231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23232 test $ac_status = 0; }; }
23233 then
23234 gcc_cv_as_comdat_group=yes
23235 else
23236 echo "configure: failed program was" >&5
23237 cat conftest.s >&5
23238 fi
23239 rm -f conftest.o conftest.s
23240 fi
23241 fi
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23243 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23244
23245 if test $gcc_cv_as_comdat_group = yes; then
23246 gcc_cv_as_comdat_group_percent=no
23247 gcc_cv_as_comdat_group_group=no
23248 else
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23250 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23251 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23252 $as_echo_n "(cached) " >&6
23253 else
23254 gcc_cv_as_comdat_group_percent=no
23255 if test $in_tree_gas = yes; then
23256 if test $in_tree_gas_is_elf = yes \
23257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23258 then gcc_cv_as_comdat_group_percent=yes
23259 fi
23260 elif test x$gcc_cv_as != x; then
23261 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23267 test $ac_status = 0; }; }
23268 then
23269 gcc_cv_as_comdat_group_percent=yes
23270 else
23271 echo "configure: failed program was" >&5
23272 cat conftest.s >&5
23273 fi
23274 rm -f conftest.o conftest.s
23275 fi
23276 fi
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23278 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23279
23280 if test $gcc_cv_as_comdat_group_percent = yes; then
23281 gcc_cv_as_comdat_group_group=no
23282 else
23283 case "${target}" in
23284 # Sun as uses a completely different syntax.
23285 *-*-solaris2*)
23286 case "${target}" in
23287 sparc*-*-solaris2*)
23288 conftest_s='
23289 .group foo,".text%foo",#comdat
23290 .section ".text%foo", #alloc,#execinstr,#progbits
23291 .globl foo
23292 foo:
23293 '
23294 ;;
23295 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23296 conftest_s='
23297 .group foo,.text%foo,#comdat
23298 .section .text%foo, "ax", @progbits
23299 .globl foo
23300 foo:
23301 '
23302 ;;
23303 esac
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23305 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23306 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
23308 else
23309 gcc_cv_as_comdat_group_group=no
23310 if test x$gcc_cv_as != x; then
23311 $as_echo "$conftest_s" > conftest.s
23312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }; }
23318 then
23319 gcc_cv_as_comdat_group_group=yes
23320 else
23321 echo "configure: failed program was" >&5
23322 cat conftest.s >&5
23323 fi
23324 rm -f conftest.o conftest.s
23325 fi
23326 fi
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23328 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23329
23330 ;;
23331 esac
23332 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23333 gcc_cv_as_comdat_group_group=no
23334 fi
23335 fi
23336 fi
23337 if test x"$ld_is_gold" = xyes; then
23338 comdat_group=yes
23339 elif test $in_tree_ld = yes ; then
23340 comdat_group=no
23341 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 \
23342 && test $in_tree_ld_is_elf = yes; then
23343 comdat_group=yes
23344 fi
23345 elif echo "$ld_ver" | grep GNU > /dev/null; then
23346 comdat_group=yes
23347 if test 0"$ld_date" -lt 20050308; then
23348 if test -n "$ld_date"; then
23349 # If there was date string, but was earlier than 2005-03-08, fail
23350 comdat_group=no
23351 elif test "$ld_vers_major" -lt 2; then
23352 comdat_group=no
23353 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23354 comdat_group=no
23355 fi
23356 fi
23357 else
23358 case "${target}" in
23359 *-*-solaris2.1[1-9]*)
23360 comdat_group=no
23361 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23362 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23363 # version 1.688.
23364 #
23365 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23366 # least ld version 1.2267.
23367 if test "$ld_vers_major" -gt 1; then
23368 comdat_group=yes
23369 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23370 comdat_group=yes
23371 elif test "$ld_vers_minor" -ge 2267; then
23372 comdat_group=yes
23373 fi
23374 ;;
23375 *)
23376 # Assume linkers other than GNU ld don't support COMDAT group.
23377 comdat_group=no
23378 ;;
23379 esac
23380 fi
23381 # Allow overriding the automatic COMDAT group tests above.
23382 # Check whether --enable-comdat was given.
23383 if test "${enable_comdat+set}" = set; then :
23384 enableval=$enable_comdat; comdat_group="$enable_comdat"
23385 fi
23386
23387 if test $comdat_group = no; then
23388 gcc_cv_as_comdat_group=no
23389 gcc_cv_as_comdat_group_percent=no
23390 gcc_cv_as_comdat_group_group=no
23391 fi
23392
23393 cat >>confdefs.h <<_ACEOF
23394 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23395 || test $gcc_cv_as_comdat_group_percent = yes \
23396 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23397 _ACEOF
23398
23399
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23401 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23402 if test "${gcc_cv_as_discriminator+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23404 else
23405 gcc_cv_as_discriminator=no
23406 if test $in_tree_gas = yes; then
23407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23408 then gcc_cv_as_discriminator=yes
23409 fi
23410 elif test x$gcc_cv_as != x; then
23411 $as_echo ' .text
23412 .file 1 "conf.c"
23413 .loc 1 1 0 discriminator 1' > conftest.s
23414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23419 test $ac_status = 0; }; }
23420 then
23421 gcc_cv_as_discriminator=yes
23422 else
23423 echo "configure: failed program was" >&5
23424 cat conftest.s >&5
23425 fi
23426 rm -f conftest.o conftest.s
23427 fi
23428 fi
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23430 $as_echo "$gcc_cv_as_discriminator" >&6; }
23431 if test $gcc_cv_as_discriminator = yes; then
23432
23433 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23434
23435 fi
23436
23437 # Thread-local storage - the check is heavily parameterized.
23438 conftest_s=
23439 tls_first_major=
23440 tls_first_minor=
23441 tls_as_opt=
23442 case "$target" in
23443 alpha*-*-*)
23444 conftest_s='
23445 .section ".tdata","awT",@progbits
23446 foo: .long 25
23447 .text
23448 ldq $27,__tls_get_addr($29) !literal!1
23449 lda $16,foo($29) !tlsgd!1
23450 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23451 ldq $27,__tls_get_addr($29) !literal!2
23452 lda $16,foo($29) !tlsldm!2
23453 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23454 ldq $1,foo($29) !gotdtprel
23455 ldah $2,foo($29) !dtprelhi
23456 lda $3,foo($2) !dtprello
23457 lda $4,foo($29) !dtprel
23458 ldq $1,foo($29) !gottprel
23459 ldah $2,foo($29) !tprelhi
23460 lda $3,foo($2) !tprello
23461 lda $4,foo($29) !tprel'
23462 tls_first_major=2
23463 tls_first_minor=13
23464 tls_as_opt=--fatal-warnings
23465 ;;
23466 cris-*-*|crisv32-*-*)
23467 conftest_s='
23468 .section ".tdata","awT",@progbits
23469 x: .long 25
23470 .text
23471 move.d x:IE,$r10
23472 nop'
23473 tls_first_major=2
23474 tls_first_minor=20
23475 tls_as_opt=--fatal-warnings
23476 ;;
23477 frv*-*-*)
23478 conftest_s='
23479 .section ".tdata","awT",@progbits
23480 x: .long 25
23481 .text
23482 call #gettlsoff(x)'
23483 tls_first_major=2
23484 tls_first_minor=14
23485 ;;
23486 hppa*-*-linux* | hppa*-*-netbsd*)
23487 conftest_s='
23488 t1: .reg %r20
23489 t2: .reg %r21
23490 gp: .reg %r19
23491 .section ".tdata","awT",@progbits
23492 foo: .long 25
23493 .text
23494 .align 4
23495 addil LT%foo-$tls_gdidx$,gp
23496 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23497 b __tls_get_addr
23498 nop
23499 addil LT%foo-$tls_ldidx$,gp
23500 b __tls_get_addr
23501 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23502 addil LR%foo-$tls_dtpoff$,%ret0
23503 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23504 mfctl %cr27,%t1
23505 addil LT%foo-$tls_ieoff$,gp
23506 ldw RT%foo-$tls_ieoff$(%r1),%t2
23507 add %t1,%t2,%t3
23508 mfctl %cr27,%t1
23509 addil LR%foo-$tls_leoff$,%t1
23510 ldo RR%foo-$tls_leoff$(%r1),%t2'
23511 tls_first_major=2
23512 tls_first_minor=15
23513 tls_as_opt=--fatal-warnings
23514 ;;
23515 arm*-*-*)
23516 conftest_s='
23517 .section ".tdata","awT",%progbits
23518 foo: .long 25
23519 .text
23520 .word foo(gottpoff)
23521 .word foo(tpoff)
23522 .word foo(tlsgd)
23523 .word foo(tlsldm)
23524 .word foo(tlsldo)'
23525 tls_first_major=2
23526 tls_first_minor=17
23527 ;;
23528 i[34567]86-*-* | x86_64-*-*)
23529 case "$target" in
23530 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23531 on_solaris=yes
23532 ;;
23533 *)
23534 on_solaris=no
23535 ;;
23536 esac
23537 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23538 conftest_s='
23539 .section .tdata,"awt",@progbits'
23540 tls_first_major=0
23541 tls_first_minor=0
23542 tls_section_flag=t
23543
23544 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23545
23546 else
23547 conftest_s='
23548 .section ".tdata","awT",@progbits'
23549 tls_first_major=2
23550 tls_first_minor=14
23551 tls_section_flag=T
23552 tls_as_opt="--fatal-warnings"
23553 fi
23554 case "$target" in
23555 i[34567]86-*-*)
23556 conftest_s="$conftest_s
23557 foo: .long 25
23558 .text
23559 movl %gs:0, %eax
23560 leal foo@tlsgd(,%ebx,1), %eax
23561 leal foo@tlsldm(%ebx), %eax
23562 leal foo@dtpoff(%eax), %edx
23563 movl foo@gottpoff(%ebx), %eax
23564 subl foo@gottpoff(%ebx), %eax
23565 addl foo@gotntpoff(%ebx), %eax
23566 movl foo@indntpoff, %eax
23567 movl \$foo@tpoff, %eax
23568 subl \$foo@tpoff, %eax
23569 leal foo@ntpoff(%ecx), %eax"
23570 ;;
23571 x86_64-*-*)
23572 if test x$on_solaris = xyes; then
23573 case $gas_flag in
23574 yes) tls_as_opt="$tls_as_opt --64" ;;
23575 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23576 esac
23577 fi
23578 conftest_s="$conftest_s
23579 foo: .long 25
23580 .text
23581 movq %fs:0, %rax
23582 leaq foo@tlsgd(%rip), %rdi
23583 leaq foo@tlsld(%rip), %rdi
23584 leaq foo@dtpoff(%rax), %rdx
23585 movq foo@gottpoff(%rip), %rax
23586 movq \$foo@tpoff, %rax"
23587 ;;
23588 esac
23589 ;;
23590 ia64-*-*)
23591 conftest_s='
23592 .section ".tdata","awT",@progbits
23593 foo: data8 25
23594 .text
23595 addl r16 = @ltoff(@dtpmod(foo#)), gp
23596 addl r17 = @ltoff(@dtprel(foo#)), gp
23597 addl r18 = @ltoff(@tprel(foo#)), gp
23598 addl r19 = @dtprel(foo#), gp
23599 adds r21 = @dtprel(foo#), r13
23600 movl r23 = @dtprel(foo#)
23601 addl r20 = @tprel(foo#), gp
23602 adds r22 = @tprel(foo#), r13
23603 movl r24 = @tprel(foo#)'
23604 tls_first_major=2
23605 tls_first_minor=13
23606 tls_as_opt=--fatal-warnings
23607 ;;
23608 microblaze*-*-*)
23609 conftest_s='
23610 .section .tdata,"awT",@progbits
23611 x:
23612 .word 2
23613 .text
23614 addik r5,r20,x@TLSGD
23615 addik r5,r20,x@TLSLDM'
23616 tls_first_major=2
23617 tls_first_minor=20
23618 tls_as_opt='--fatal-warnings'
23619 ;;
23620 mips*-*-*)
23621 conftest_s='
23622 .section .tdata,"awT",@progbits
23623 x:
23624 .word 2
23625 .text
23626 addiu $4, $28, %tlsgd(x)
23627 addiu $4, $28, %tlsldm(x)
23628 lui $4, %dtprel_hi(x)
23629 addiu $4, $4, %dtprel_lo(x)
23630 lw $4, %gottprel(x)($28)
23631 lui $4, %tprel_hi(x)
23632 addiu $4, $4, %tprel_lo(x)'
23633 tls_first_major=2
23634 tls_first_minor=16
23635 tls_as_opt='-32 --fatal-warnings'
23636 ;;
23637 m68k-*-*|m5407-*-*)
23638 conftest_s='
23639 .section .tdata,"awT",@progbits
23640 x:
23641 .word 2
23642 .text
23643 foo:
23644 move.l x@TLSGD(%a5),%a0
23645 move.l x@TLSLDM(%a5),%a0
23646 move.l x@TLSLDO(%a5),%a0
23647 move.l x@TLSIE(%a5),%a0
23648 move.l x@TLSLE(%a5),%a0'
23649 tls_first_major=2
23650 tls_first_minor=19
23651 tls_as_opt='--fatal-warnings'
23652 ;;
23653 nios2-*-*)
23654 conftest_s='
23655 .section ".tdata","awT",@progbits'
23656 tls_first_major=2
23657 tls_first_minor=23
23658 tls_as_opt="--fatal-warnings"
23659 ;;
23660 aarch64*-*-*)
23661 conftest_s='
23662 .section ".tdata","awT",%progbits
23663 foo: .long 25
23664 .text
23665 adrp x0, :tlsgd:x
23666 add x0, x0, #:tlsgd_lo12:x
23667 bl __tls_get_addr
23668 nop'
23669 tls_first_major=2
23670 tls_first_minor=20
23671 tls_as_opt='--fatal-warnings'
23672 ;;
23673 powerpc-ibm-aix*)
23674 conftest_s='
23675 .extern __get_tpointer
23676 .toc
23677 LC..1:
23678 .tc a[TC],a[TL]@le
23679 .csect .text[PR]
23680 .tlstest:
23681 lwz 9,LC..1(2)
23682 bla __get_tpointer
23683 lwzx 3,9,3
23684 .globl a
23685 .csect a[TL],4
23686 a:
23687 .space 4'
23688 tls_first_major=0
23689 tls_first_minor=0
23690 ;;
23691 powerpc64*-*-*)
23692 conftest_s='
23693 .section ".tdata","awT",@progbits
23694 .align 3
23695 ld0: .space 8
23696 ld1: .space 8
23697 x1: .space 8
23698 x2: .space 8
23699 x3: .space 8
23700 .text
23701 addi 3,2,ld0@got@tlsgd
23702 bl .__tls_get_addr
23703 nop
23704 addi 3,2,ld1@toc
23705 bl .__tls_get_addr
23706 nop
23707 addi 3,2,x1@got@tlsld
23708 bl .__tls_get_addr
23709 nop
23710 addi 9,3,x1@dtprel
23711 bl .__tls_get_addr
23712 nop
23713 addis 9,3,x2@dtprel@ha
23714 addi 9,9,x2@dtprel@l
23715 bl .__tls_get_addr
23716 nop
23717 ld 9,x3@got@dtprel(2)
23718 add 9,9,3
23719 bl .__tls_get_addr
23720 nop'
23721 tls_first_major=2
23722 tls_first_minor=14
23723 tls_as_opt="-a64 --fatal-warnings"
23724 ;;
23725 powerpc*-*-*)
23726 conftest_s='
23727 .section ".tdata","awT",@progbits
23728 .align 2
23729 ld0: .space 4
23730 ld1: .space 4
23731 x1: .space 4
23732 x2: .space 4
23733 x3: .space 4
23734 .text
23735 addi 3,31,ld0@got@tlsgd
23736 bl __tls_get_addr
23737 addi 3,31,x1@got@tlsld
23738 bl __tls_get_addr
23739 addi 9,3,x1@dtprel
23740 addis 9,3,x2@dtprel@ha
23741 addi 9,9,x2@dtprel@l
23742 lwz 9,x3@got@tprel(31)
23743 add 9,9,x@tls
23744 addi 9,2,x1@tprel
23745 addis 9,2,x2@tprel@ha
23746 addi 9,9,x2@tprel@l'
23747 tls_first_major=2
23748 tls_first_minor=14
23749 tls_as_opt="-a32 --fatal-warnings"
23750 ;;
23751 riscv*-*-*)
23752 conftest_s='
23753 .section .tdata,"awT",@progbits
23754 x:
23755 .word 2
23756 .text
23757 la.tls.gd a0,x
23758 la.tls.ie a1,x
23759 lui a0,%tls_ie_pcrel_hi(x)
23760 lw a0,%pcrel_lo(x)(a0)
23761 add a0,a0,tp
23762 lw a0,(a0)
23763 lui a0,%tprel_hi(x)
23764 add a0,a0,tp,%tprel_add(x)
23765 lw a0,%tprel_lo(x)(a0)'
23766 tls_first_major=2
23767 tls_first_minor=21
23768 tls_as_opt='-m32 --fatal-warnings'
23769 ;;
23770 s390-*-*)
23771 conftest_s='
23772 .section ".tdata","awT",@progbits
23773 foo: .long 25
23774 .text
23775 .long foo@TLSGD
23776 .long foo@TLSLDM
23777 .long foo@DTPOFF
23778 .long foo@NTPOFF
23779 .long foo@GOTNTPOFF
23780 .long foo@INDNTPOFF
23781 l %r1,foo@GOTNTPOFF(%r12)
23782 l %r1,0(%r1):tls_load:foo
23783 bas %r14,0(%r1,%r13):tls_gdcall:foo
23784 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23785 tls_first_major=2
23786 tls_first_minor=14
23787 tls_as_opt="-m31 --fatal-warnings"
23788 ;;
23789 s390x-*-*)
23790 conftest_s='
23791 .section ".tdata","awT",@progbits
23792 foo: .long 25
23793 .text
23794 .quad foo@TLSGD
23795 .quad foo@TLSLDM
23796 .quad foo@DTPOFF
23797 .quad foo@NTPOFF
23798 .quad foo@GOTNTPOFF
23799 lg %r1,foo@GOTNTPOFF(%r12)
23800 larl %r1,foo@INDNTPOFF
23801 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23802 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23803 tls_first_major=2
23804 tls_first_minor=14
23805 tls_as_opt="-m64 -Aesame --fatal-warnings"
23806 ;;
23807 sh-*-* | sh[34]-*-* | sh*l*-*-*)
23808 conftest_s='
23809 .section ".tdata","awT",@progbits
23810 foo: .long 25
23811 .text
23812 .long foo@TLSGD
23813 .long foo@TLSLDM
23814 .long foo@DTPOFF
23815 .long foo@GOTTPOFF
23816 .long foo@TPOFF'
23817 tls_first_major=2
23818 tls_first_minor=13
23819 tls_as_opt=--fatal-warnings
23820 ;;
23821 sparc*-*-*)
23822 case "$target" in
23823 sparc*-sun-solaris2.*)
23824 on_solaris=yes
23825 ;;
23826 *)
23827 on_solaris=no
23828 ;;
23829 esac
23830 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23831 conftest_s='
23832 .section ".tdata",#alloc,#write,#tls'
23833 tls_first_major=0
23834 tls_first_minor=0
23835 else
23836 conftest_s='
23837 .section ".tdata","awT",@progbits'
23838 tls_first_major=2
23839 tls_first_minor=14
23840 tls_as_opt="-32 --fatal-warnings"
23841 fi
23842 conftest_s="$conftest_s
23843 foo: .long 25
23844 .text
23845 sethi %tgd_hi22(foo), %o0
23846 add %o0, %tgd_lo10(foo), %o1
23847 add %l7, %o1, %o0, %tgd_add(foo)
23848 call __tls_get_addr, %tgd_call(foo)
23849 sethi %tldm_hi22(foo), %l1
23850 add %l1, %tldm_lo10(foo), %l2
23851 add %l7, %l2, %o0, %tldm_add(foo)
23852 call __tls_get_addr, %tldm_call(foo)
23853 sethi %tldo_hix22(foo), %l3
23854 xor %l3, %tldo_lox10(foo), %l4
23855 add %o0, %l4, %l5, %tldo_add(foo)
23856 sethi %tie_hi22(foo), %o3
23857 add %o3, %tie_lo10(foo), %o3
23858 ld [%l7 + %o3], %o2, %tie_ld(foo)
23859 add %g7, %o2, %o4, %tie_add(foo)
23860 sethi %tle_hix22(foo), %l1
23861 xor %l1, %tle_lox10(foo), %o5
23862 ld [%g7 + %o5], %o1"
23863 ;;
23864 tilepro*-*-*)
23865 conftest_s='
23866 .section ".tdata","awT",@progbits
23867 foo: .long 25
23868 .text
23869 addli r0, zero, tls_gd(foo)
23870 auli r0, zero, tls_gd_ha16(foo)
23871 addli r0, r0, tls_gd_lo16(foo)
23872 jal __tls_get_addr
23873 addli r0, zero, tls_ie(foo)
23874 auli r0, r0, tls_ie_ha16(foo)
23875 addli r0, r0, tls_ie_lo16(foo)'
23876 tls_first_major=2
23877 tls_first_minor=22
23878 tls_as_opt="--fatal-warnings"
23879 ;;
23880 tilegx*-*-*)
23881 conftest_s='
23882 .section ".tdata","awT",@progbits
23883 foo: .long 25
23884 .text
23885 shl16insli r0, zero, hw0_last_tls_gd(foo)
23886 shl16insli r0, zero, hw1_last_tls_gd(foo)
23887 shl16insli r0, r0, hw0_tls_gd(foo)
23888 jal __tls_get_addr
23889 shl16insli r0, zero, hw1_last_tls_ie(foo)
23890 shl16insli r0, r0, hw0_tls_ie(foo)'
23891 tls_first_major=2
23892 tls_first_minor=22
23893 tls_as_opt="--fatal-warnings"
23894 ;;
23895 xtensa*-*-*)
23896 conftest_s='
23897 .section ".tdata","awT",@progbits
23898 foo: .long 25
23899 .text
23900 movi a8, foo@TLSFUNC
23901 movi a10, foo@TLSARG
23902 callx8.tls a8, foo@TLSCALL'
23903 tls_first_major=2
23904 tls_first_minor=19
23905 ;;
23906 esac
23907 set_have_as_tls=no
23908 if test "x$enable_tls" = xno ; then
23909 : # TLS explicitly disabled.
23910 elif test "x$enable_tls" = xyes ; then
23911 set_have_as_tls=yes # TLS explicitly enabled.
23912 elif test -z "$tls_first_major"; then
23913 : # If we don't have a check, assume no support.
23914 else
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23916 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23917 if test "${gcc_cv_as_tls+set}" = set; then :
23918 $as_echo_n "(cached) " >&6
23919 else
23920 gcc_cv_as_tls=no
23921 if test $in_tree_gas = yes; then
23922 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23923 then gcc_cv_as_tls=yes
23924 fi
23925 elif test x$gcc_cv_as != x; then
23926 $as_echo "$conftest_s" > conftest.s
23927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23933 then
23934 gcc_cv_as_tls=yes
23935 else
23936 echo "configure: failed program was" >&5
23937 cat conftest.s >&5
23938 fi
23939 rm -f conftest.o conftest.s
23940 fi
23941 fi
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23943 $as_echo "$gcc_cv_as_tls" >&6; }
23944 if test $gcc_cv_as_tls = yes; then
23945 set_have_as_tls=yes
23946 fi
23947 fi
23948 if test $set_have_as_tls = yes ; then
23949
23950 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23951
23952 fi
23953
23954 # Target-specific assembler checks.
23955
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23957 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23958 gcc_cv_ld_static_dynamic=no
23959 gcc_cv_ld_static_option='-Bstatic'
23960 gcc_cv_ld_dynamic_option='-Bdynamic'
23961 if test $in_tree_ld = yes ; then
23962 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
23963 gcc_cv_ld_static_dynamic=yes
23964 fi
23965 elif test x$gcc_cv_ld != x; then
23966 # Check if linker supports -Bstatic/-Bdynamic option
23967 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23968 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23969 gcc_cv_ld_static_dynamic=yes
23970 else
23971 case "$target" in
23972 # AIX ld uses -b flags
23973 *-*-aix4.[23]* | *-*-aix[5-9]*)
23974 gcc_cv_ld_static_dynamic=yes
23975 gcc_cv_ld_static_option="-bstatic"
23976 gcc_cv_ld_dynamic_option="-bdynamic"
23977 ;;
23978 # HP-UX ld uses -a flags to select between shared and archive.
23979 *-*-hpux*)
23980 if test x"$gnu_ld" = xno; then
23981 gcc_cv_ld_static_dynamic=yes
23982 gcc_cv_ld_static_option="-aarchive_shared"
23983 gcc_cv_ld_dynamic_option="-adefault"
23984 fi
23985 ;;
23986 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23987 *-*-solaris2*)
23988 gcc_cv_ld_static_dynamic=yes
23989 ;;
23990 esac
23991 fi
23992 fi
23993 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23994
23995 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23996
23997
23998 cat >>confdefs.h <<_ACEOF
23999 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24000 _ACEOF
24001
24002
24003 cat >>confdefs.h <<_ACEOF
24004 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24005 _ACEOF
24006
24007 fi
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24009 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24010
24011 if test x"$demangler_in_ld" = xyes; then
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24013 $as_echo_n "checking linker --demangle support... " >&6; }
24014 gcc_cv_ld_demangle=no
24015 if test $in_tree_ld = yes; then
24016 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 \
24017 gcc_cv_ld_demangle=yes
24018 fi
24019 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24020 # Check if the GNU linker supports --demangle option
24021 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24022 gcc_cv_ld_demangle=yes
24023 fi
24024 fi
24025 if test x"$gcc_cv_ld_demangle" = xyes; then
24026
24027 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24028
24029 fi
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24031 $as_echo "$gcc_cv_ld_demangle" >&6; }
24032 fi
24033
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24035 $as_echo_n "checking linker plugin support... " >&6; }
24036 gcc_cv_lto_plugin=0
24037 if test -f liblto_plugin.la; then
24038 save_ld_ver="$ld_ver"
24039 save_ld_vers_major="$ld_vers_major"
24040 save_ld_vers_minor="$ld_vers_minor"
24041 save_ld_is_gold="$ld_is_gold"
24042
24043 ld_is_gold=no
24044
24045 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24046 ld_ver="GNU ld"
24047 # FIXME: ld_is_gold?
24048 ld_vers_major="$gcc_cv_gld_major_version"
24049 ld_vers_minor="$gcc_cv_gld_minor_version"
24050 else
24051 # Determine plugin linker version.
24052 # FIXME: Partial duplicate from above, generalize.
24053 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24054 if echo "$ld_ver" | grep GNU > /dev/null; then
24055 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24056 ld_is_gold=yes
24057 ld_vers=`echo $ld_ver | sed -n \
24058 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24059 else
24060 ld_vers=`echo $ld_ver | sed -n \
24061 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24062 fi
24063 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24064 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24065 fi
24066 fi
24067
24068 # Determine plugin support.
24069 if echo "$ld_ver" | grep GNU > /dev/null; then
24070 # Require GNU ld or gold 2.21+ for plugin support by default.
24071 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24072 gcc_cv_lto_plugin=2
24073 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24074 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24075 gcc_cv_lto_plugin=1
24076 fi
24077 fi
24078
24079 ld_ver="$save_ld_ver"
24080 ld_vers_major="$save_ld_vers_major"
24081 ld_vers_minor="$save_ld_vers_minor"
24082 ld_is_gold="$save_ld_is_gold"
24083 fi
24084
24085 cat >>confdefs.h <<_ACEOF
24086 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24087 _ACEOF
24088
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24090 $as_echo "$gcc_cv_lto_plugin" >&6; }
24091
24092 case "$target" in
24093 aarch64*-*-*)
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24095 $as_echo_n "checking assembler for -mabi option... " >&6; }
24096 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24097 $as_echo_n "(cached) " >&6
24098 else
24099 gcc_cv_as_aarch64_mabi=no
24100 if test x$gcc_cv_as != x; then
24101 $as_echo '.text' > conftest.s
24102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24104 (eval $ac_try) 2>&5
24105 ac_status=$?
24106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24107 test $ac_status = 0; }; }
24108 then
24109 gcc_cv_as_aarch64_mabi=yes
24110 else
24111 echo "configure: failed program was" >&5
24112 cat conftest.s >&5
24113 fi
24114 rm -f conftest.o conftest.s
24115 fi
24116 fi
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24118 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24119
24120 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24121
24122 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24123
24124 else
24125 if test x$with_abi = xilp32; then
24126 as_fn_error "Assembler does not support -mabi=ilp32.\
24127 Upgrade the Assembler." "$LINENO" 5
24128 fi
24129 if test x"$with_multilib_list" = xdefault; then
24130 TM_MULTILIB_CONFIG=lp64
24131 else
24132 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24133 for aarch64_multilib in ${aarch64_multilibs}; do
24134 case ${aarch64_multilib} in
24135 ilp32)
24136 as_fn_error "Assembler does not support -mabi=ilp32.\
24137 Upgrade the Assembler." "$LINENO" 5
24138 ;;
24139 *)
24140 ;;
24141 esac
24142 done
24143 fi
24144 fi
24145 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24146 # Check whether --enable-fix-cortex-a53-835769 was given.
24147 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24148 enableval=$enable_fix_cortex_a53_835769;
24149 case $enableval in
24150 yes)
24151 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24152 ;;
24153 no)
24154 ;;
24155 *)
24156 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24157 Valid choices are 'yes' and 'no'." "$LINENO" 5
24158 ;;
24159
24160 esac
24161
24162 fi
24163
24164 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24165 # Check whether --enable-fix-cortex-a53-843419 was given.
24166 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24167 enableval=$enable_fix_cortex_a53_843419;
24168 case $enableval in
24169 yes)
24170 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24171 ;;
24172 no)
24173 ;;
24174 *)
24175 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24176 Valid choices are 'yes' and 'no'." "$LINENO" 5
24177 ;;
24178
24179 esac
24180
24181 fi
24182
24183 ;;
24184
24185 # All TARGET_ABI_OSF targets.
24186 alpha*-*-linux* | alpha*-*-*bsd*)
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24188 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24189 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24191 else
24192 gcc_cv_as_alpha_explicit_relocs=no
24193 if test $in_tree_gas = yes; then
24194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24195 then gcc_cv_as_alpha_explicit_relocs=yes
24196 fi
24197 elif test x$gcc_cv_as != x; then
24198 $as_echo ' .set nomacro
24199 .text
24200 extbl $3, $2, $3 !lituse_bytoff!1
24201 ldq $2, a($29) !literal!1
24202 ldq $4, b($29) !literal!2
24203 ldq_u $3, 0($2) !lituse_base!1
24204 ldq $27, f($29) !literal!5
24205 jsr $26, ($27), f !lituse_jsr!5
24206 ldah $29, 0($26) !gpdisp!3
24207 lda $0, c($29) !gprel
24208 ldah $1, d($29) !gprelhigh
24209 lda $1, d($1) !gprellow
24210 lda $29, 0($29) !gpdisp!3' > conftest.s
24211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24216 test $ac_status = 0; }; }
24217 then
24218 gcc_cv_as_alpha_explicit_relocs=yes
24219 else
24220 echo "configure: failed program was" >&5
24221 cat conftest.s >&5
24222 fi
24223 rm -f conftest.o conftest.s
24224 fi
24225 fi
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24227 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24228 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24229
24230 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24231
24232 fi
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24234 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24235 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24238 gcc_cv_as_alpha_jsrdirect_relocs=no
24239 if test $in_tree_gas = yes; then
24240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24241 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24242 fi
24243 elif test x$gcc_cv_as != x; then
24244 $as_echo ' .set nomacro
24245 .text
24246 ldq $27, a($29) !literal!1
24247 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24254 then
24255 gcc_cv_as_alpha_jsrdirect_relocs=yes
24256 else
24257 echo "configure: failed program was" >&5
24258 cat conftest.s >&5
24259 fi
24260 rm -f conftest.o conftest.s
24261 fi
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24264 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24265 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24266
24267 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24268
24269 fi
24270 ;;
24271
24272 avr-*-*)
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24274 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24275 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24276 $as_echo_n "(cached) " >&6
24277 else
24278 gcc_cv_as_avr_mlink_relax=no
24279 if test x$gcc_cv_as != x; then
24280 $as_echo '.text' > conftest.s
24281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
24285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24286 test $ac_status = 0; }; }
24287 then
24288 gcc_cv_as_avr_mlink_relax=yes
24289 else
24290 echo "configure: failed program was" >&5
24291 cat conftest.s >&5
24292 fi
24293 rm -f conftest.o conftest.s
24294 fi
24295 fi
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24297 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24298 if test $gcc_cv_as_avr_mlink_relax = yes; then
24299
24300 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24301
24302 fi
24303
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24305 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24306 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309 gcc_cv_as_avr_mrmw=no
24310 if test x$gcc_cv_as != x; then
24311 $as_echo '.text' > conftest.s
24312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24317 test $ac_status = 0; }; }
24318 then
24319 gcc_cv_as_avr_mrmw=yes
24320 else
24321 echo "configure: failed program was" >&5
24322 cat conftest.s >&5
24323 fi
24324 rm -f conftest.o conftest.s
24325 fi
24326 fi
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24328 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24329 if test $gcc_cv_as_avr_mrmw = yes; then
24330
24331 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24332
24333 fi
24334 ;;
24335
24336 cris-*-*)
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24338 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24339 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24341 else
24342 gcc_cv_as_cris_no_mul_bug=no
24343 if test $in_tree_gas = yes; then
24344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24345 then gcc_cv_as_cris_no_mul_bug=yes
24346 fi
24347 elif test x$gcc_cv_as != x; then
24348 $as_echo '.text' > conftest.s
24349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24355 then
24356 gcc_cv_as_cris_no_mul_bug=yes
24357 else
24358 echo "configure: failed program was" >&5
24359 cat conftest.s >&5
24360 fi
24361 rm -f conftest.o conftest.s
24362 fi
24363 fi
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24365 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24366 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24367
24368 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24369
24370 fi
24371 ;;
24372
24373 sparc*-*-*)
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24375 $as_echo_n "checking assembler for .register... " >&6; }
24376 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24378 else
24379 gcc_cv_as_sparc_register_op=no
24380 if test x$gcc_cv_as != x; then
24381 $as_echo '.register %g2, #scratch' > conftest.s
24382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24388 then
24389 gcc_cv_as_sparc_register_op=yes
24390 else
24391 echo "configure: failed program was" >&5
24392 cat conftest.s >&5
24393 fi
24394 rm -f conftest.o conftest.s
24395 fi
24396 fi
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24398 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24399 if test $gcc_cv_as_sparc_register_op = yes; then
24400
24401 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24402
24403 fi
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24406 $as_echo_n "checking assembler for #nobits... " >&6; }
24407 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_sparc_nobits=no
24411 if test x$gcc_cv_as != x; then
24412 $as_echo '.section "nobits",#alloc,#write,#nobits
24413 .section "progbits",#alloc,#write,#progbits' > conftest.s
24414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24417 ac_status=$?
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24420 then
24421 gcc_cv_as_sparc_nobits=yes
24422 else
24423 echo "configure: failed program was" >&5
24424 cat conftest.s >&5
24425 fi
24426 rm -f conftest.o conftest.s
24427 fi
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24430 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24431
24432
24433 cat >>confdefs.h <<_ACEOF
24434 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24435 _ACEOF
24436
24437
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24439 $as_echo_n "checking assembler for -relax option... " >&6; }
24440 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24442 else
24443 gcc_cv_as_sparc_relax=no
24444 if test x$gcc_cv_as != x; then
24445 $as_echo '.text' > conftest.s
24446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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_sparc_relax=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_sparc_relax" >&5
24462 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24463 if test $gcc_cv_as_sparc_relax = yes; then
24464
24465 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24466
24467 fi
24468
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24470 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24471 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24473 else
24474 gcc_cv_as_sparc_gotdata_op=no
24475 if test x$gcc_cv_as != x; then
24476 $as_echo '.text
24477 .align 4
24478 foo:
24479 nop
24480 bar:
24481 sethi %gdop_hix22(foo), %g1
24482 xor %g1, %gdop_lox10(foo), %g1
24483 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24486 (eval $ac_try) 2>&5
24487 ac_status=$?
24488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24489 test $ac_status = 0; }; }
24490 then
24491 if test x$gcc_cv_ld != x \
24492 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24493 if test x$gcc_cv_objdump != x; then
24494 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24495 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24496 gcc_cv_as_sparc_gotdata_op=no
24497 else
24498 gcc_cv_as_sparc_gotdata_op=yes
24499 fi
24500 fi
24501 fi
24502 rm -f conftest
24503 else
24504 echo "configure: failed program was" >&5
24505 cat conftest.s >&5
24506 fi
24507 rm -f conftest.o conftest.s
24508 fi
24509 fi
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24511 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24512 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24513
24514 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24515
24516 fi
24517
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24519 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24520 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24521 $as_echo_n "(cached) " >&6
24522 else
24523 gcc_cv_as_sparc_ua_pcrel=no
24524 if test x$gcc_cv_as != x; then
24525 $as_echo '.text
24526 foo:
24527 nop
24528 .data
24529 .align 4
24530 .byte 0
24531 .uaword %r_disp32(foo)' > conftest.s
24532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24538 then
24539 if test x$gcc_cv_ld != x \
24540 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24541 gcc_cv_as_sparc_ua_pcrel=yes
24542 fi
24543 rm -f conftest
24544 else
24545 echo "configure: failed program was" >&5
24546 cat conftest.s >&5
24547 fi
24548 rm -f conftest.o conftest.s
24549 fi
24550 fi
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24552 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24553 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24554
24555 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24556
24557
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24559 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24560 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24561 $as_echo_n "(cached) " >&6
24562 else
24563 gcc_cv_as_sparc_ua_pcrel_hidden=no
24564 if test x$gcc_cv_as != x; then
24565 $as_echo '.data
24566 .align 4
24567 .byte 0x31
24568 .uaword %r_disp32(foo)
24569 .byte 0x32, 0x33, 0x34
24570 .global foo
24571 .hidden foo
24572 foo:
24573 .skip 4' > conftest.s
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24580 then
24581 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24582 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24583 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24584 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24585 if $gcc_cv_objdump -R conftest 2> /dev/null \
24586 | grep 'DISP32' > /dev/null 2>&1; then
24587 :
24588 else
24589 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24590 fi
24591 fi
24592 rm -f conftest
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24596 fi
24597 rm -f conftest.o conftest.s
24598 fi
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24601 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24602 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24603
24604 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24605
24606 fi
24607
24608 fi # unaligned pcrel relocs
24609
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24611 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24612 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24614 else
24615 gcc_cv_as_sparc_offsetable_lo10=no
24616 if test x$gcc_cv_as != x; then
24617 $as_echo '.text
24618 or %g1, %lo(ab) + 12, %g1
24619 or %g1, %lo(ab + 12), %g1' > conftest.s
24620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622 (eval $ac_try) 2>&5
24623 ac_status=$?
24624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; }
24626 then
24627 if test x$gcc_cv_objdump != x \
24628 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24629 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24630 gcc_cv_as_sparc_offsetable_lo10=yes
24631 fi
24632 else
24633 echo "configure: failed program was" >&5
24634 cat conftest.s >&5
24635 fi
24636 rm -f conftest.o conftest.s
24637 fi
24638 fi
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24640 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24641 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24642
24643 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24644
24645 fi
24646
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24648 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24649 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24650 $as_echo_n "(cached) " >&6
24651 else
24652 gcc_cv_as_sparc_fmaf=no
24653 if test x$gcc_cv_as != x; then
24654 $as_echo '.text
24655 .register %g2, #scratch
24656 .register %g3, #scratch
24657 .align 4
24658 fmaddd %f0, %f2, %f4, %f6
24659 addxccc %g1, %g2, %g3
24660 fsrl32 %f2, %f4, %f8
24661 fnaddd %f10, %f12, %f14' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24669 gcc_cv_as_sparc_fmaf=yes
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24673 fi
24674 rm -f conftest.o conftest.s
24675 fi
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24678 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24679 if test $gcc_cv_as_sparc_fmaf = yes; then
24680
24681 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24682
24683 fi
24684
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24686 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24687 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24689 else
24690 gcc_cv_as_sparc_sparc4=no
24691 if test x$gcc_cv_as != x; then
24692 $as_echo '.text
24693 .register %g2, #scratch
24694 .register %g3, #scratch
24695 .align 4
24696 cxbe %g2, %g3, 1f
24697 1: cwbneg %g2, %g3, 1f
24698 1: sha1
24699 md5
24700 aes_kexpand0 %f4, %f6, %f8
24701 des_round %f38, %f40, %f42, %f44
24702 camellia_f %f54, %f56, %f58, %f60
24703 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24707 ac_status=$?
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24710 then
24711 gcc_cv_as_sparc_sparc4=yes
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24715 fi
24716 rm -f conftest.o conftest.s
24717 fi
24718 fi
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24720 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24721 if test $gcc_cv_as_sparc_sparc4 = yes; then
24722
24723 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24724
24725 fi
24726
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24728 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24729 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24731 else
24732 gcc_cv_as_sparc_leon=no
24733 if test x$gcc_cv_as != x; then
24734 $as_echo '.text
24735 .register %g2, #scratch
24736 .register %g3, #scratch
24737 .align 4
24738 smac %g2, %g3, %g1
24739 umac %g2, %g3, %g1
24740 casa [%g2] 0xb, %g3, %g1' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_sparc_leon=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24752 fi
24753 rm -f conftest.o conftest.s
24754 fi
24755 fi
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24757 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24758 if test $gcc_cv_as_sparc_leon = yes; then
24759
24760 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24761
24762 fi
24763 ;;
24764
24765 i[34567]86-*-* | x86_64-*-*)
24766 case $target_os in
24767 cygwin*)
24768 # Full C++ conformance when using a shared libstdc++-v3 requires some
24769 # support from the Cygwin DLL, which in more recent versions exports
24770 # wrappers to aid in interposing and redirecting operators new, delete,
24771 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24772 # are configuring for a version of Cygwin that exports the wrappers.
24773 if test x$host = x$target && test x$host_cpu = xi686; then
24774 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24775 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24776 gcc_ac_cygwin_dll_wrappers=yes
24777 else
24778 gcc_ac_cygwin_dll_wrappers=no
24779 fi
24780
24781 else
24782 # Can't check presence of libc functions during cross-compile, so
24783 # we just have to assume we're building for an up-to-date target.
24784 gcc_ac_cygwin_dll_wrappers=yes
24785 fi
24786
24787 cat >>confdefs.h <<_ACEOF
24788 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24789 _ACEOF
24790
24791 esac
24792 case $target_os in
24793 cygwin* | pe | mingw32* | interix*)
24794 # Recent binutils allows the three-operand form of ".comm" on PE. This
24795 # definition is used unconditionally to initialise the default state of
24796 # the target option variable that governs usage of the feature.
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24798 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24799 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24800 $as_echo_n "(cached) " >&6
24801 else
24802 gcc_cv_as_comm_has_align=no
24803 if test $in_tree_gas = yes; then
24804 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24805 then gcc_cv_as_comm_has_align=yes
24806 fi
24807 elif test x$gcc_cv_as != x; then
24808 $as_echo '.comm foo,1,32' > conftest.s
24809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24815 then
24816 gcc_cv_as_comm_has_align=yes
24817 else
24818 echo "configure: failed program was" >&5
24819 cat conftest.s >&5
24820 fi
24821 rm -f conftest.o conftest.s
24822 fi
24823 fi
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24825 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24826
24827
24828 cat >>confdefs.h <<_ACEOF
24829 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24830 _ACEOF
24831
24832 # Used for DWARF 2 in PE
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24834 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24835 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24837 else
24838 gcc_cv_as_ix86_pe_secrel32=no
24839 if test $in_tree_gas = yes; then
24840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24841 then gcc_cv_as_ix86_pe_secrel32=yes
24842 fi
24843 elif test x$gcc_cv_as != x; then
24844 $as_echo '.text
24845 foo: nop
24846 .data
24847 .secrel32 foo' > conftest.s
24848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24853 test $ac_status = 0; }; }
24854 then
24855 if test x$gcc_cv_ld != x \
24856 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24857 gcc_cv_as_ix86_pe_secrel32=yes
24858 fi
24859 rm -f conftest
24860 else
24861 echo "configure: failed program was" >&5
24862 cat conftest.s >&5
24863 fi
24864 rm -f conftest.o conftest.s
24865 fi
24866 fi
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24868 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24869 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24870
24871 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24872
24873 fi
24874 # Test if the assembler supports the extended form of the .section
24875 # directive that specifies section alignment. LTO support uses this,
24876 # but normally only after installation, so we warn but don't fail the
24877 # configure if LTO is enabled but the assembler does not support it.
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24879 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24880 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24882 else
24883 gcc_cv_as_section_has_align=no
24884 if test $in_tree_gas = yes; then
24885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24886 then gcc_cv_as_section_has_align=yes
24887 fi
24888 elif test x$gcc_cv_as != x; then
24889 $as_echo '.section lto_test,"dr0"' > conftest.s
24890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24895 test $ac_status = 0; }; }
24896 then
24897 gcc_cv_as_section_has_align=yes
24898 else
24899 echo "configure: failed program was" >&5
24900 cat conftest.s >&5
24901 fi
24902 rm -f conftest.o conftest.s
24903 fi
24904 fi
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24906 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24907
24908 if test x$gcc_cv_as_section_has_align != xyes; then
24909 case ",$enable_languages," in
24910 *,lto,*)
24911 { $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
24912 $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;}
24913 ;;
24914 esac
24915 fi
24916 ;;
24917 esac
24918
24919 # Test if the assembler supports the section flag 'e' for specifying
24920 # an excluded section.
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24922 $as_echo_n "checking assembler for .section with e... " >&6; }
24923 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_section_has_e=no
24927 if test $in_tree_gas = yes; then
24928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24929 then gcc_cv_as_section_has_e=yes
24930 fi
24931 elif test x$gcc_cv_as != x; then
24932 $as_echo '.section foo1,"e"
24933 .byte 0,0,0,0' > conftest.s
24934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24939 test $ac_status = 0; }; }
24940 then
24941 gcc_cv_as_section_has_e=yes
24942 else
24943 echo "configure: failed program was" >&5
24944 cat conftest.s >&5
24945 fi
24946 rm -f conftest.o conftest.s
24947 fi
24948 fi
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24950 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24951
24952
24953 cat >>confdefs.h <<_ACEOF
24954 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24955 _ACEOF
24956
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24959 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24960 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 gcc_cv_as_ix86_filds=no
24964 if test x$gcc_cv_as != x; then
24965 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
24966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24968 (eval $ac_try) 2>&5
24969 ac_status=$?
24970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971 test $ac_status = 0; }; }
24972 then
24973 gcc_cv_as_ix86_filds=yes
24974 else
24975 echo "configure: failed program was" >&5
24976 cat conftest.s >&5
24977 fi
24978 rm -f conftest.o conftest.s
24979 fi
24980 fi
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24982 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24983 if test $gcc_cv_as_ix86_filds = yes; then
24984
24985 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24986
24987 fi
24988
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24990 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24991 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994 gcc_cv_as_ix86_fildq=no
24995 if test x$gcc_cv_as != x; then
24996 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
24997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25003 then
25004 gcc_cv_as_ix86_fildq=yes
25005 else
25006 echo "configure: failed program was" >&5
25007 cat conftest.s >&5
25008 fi
25009 rm -f conftest.o conftest.s
25010 fi
25011 fi
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25013 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25014 if test $gcc_cv_as_ix86_fildq = yes; then
25015
25016 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25017
25018 fi
25019
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25021 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25022 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 gcc_cv_as_ix86_cmov_sun_syntax=no
25026 if test x$gcc_cv_as != x; then
25027 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25034 then
25035 gcc_cv_as_ix86_cmov_sun_syntax=yes
25036 else
25037 echo "configure: failed program was" >&5
25038 cat conftest.s >&5
25039 fi
25040 rm -f conftest.o conftest.s
25041 fi
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25044 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25045 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25046
25047 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25048
25049 fi
25050
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25052 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25053 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 gcc_cv_as_ix86_ffreep=no
25057 if test x$gcc_cv_as != x; then
25058 $as_echo 'ffreep %st(1)' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_ix86_ffreep=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25070 fi
25071 rm -f conftest.o conftest.s
25072 fi
25073 fi
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25075 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25076 if test $gcc_cv_as_ix86_ffreep = yes; then
25077
25078 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25079
25080 fi
25081
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25083 $as_echo_n "checking assembler for .quad directive... " >&6; }
25084 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25086 else
25087 gcc_cv_as_ix86_quad=no
25088 if test x$gcc_cv_as != x; then
25089 $as_echo '.quad 0' > conftest.s
25090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25092 (eval $ac_try) 2>&5
25093 ac_status=$?
25094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25095 test $ac_status = 0; }; }
25096 then
25097 gcc_cv_as_ix86_quad=yes
25098 else
25099 echo "configure: failed program was" >&5
25100 cat conftest.s >&5
25101 fi
25102 rm -f conftest.o conftest.s
25103 fi
25104 fi
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25106 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25107 if test $gcc_cv_as_ix86_quad = yes; then
25108
25109 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25110
25111 fi
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25114 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25115 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_ix86_sahf=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo '.code64
25121 sahf' > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 gcc_cv_as_ix86_sahf=yes
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25133 fi
25134 rm -f conftest.o conftest.s
25135 fi
25136 fi
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25138 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25139 if test $gcc_cv_as_ix86_sahf = yes; then
25140
25141 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25142
25143 fi
25144
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25146 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25147 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_ix86_interunit_movq=no
25151 if test x$gcc_cv_as != x; then
25152 $as_echo '.code64
25153 movq %mm0, %rax
25154 movq %rax, %xmm0' > conftest.s
25155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25161 then
25162 gcc_cv_as_ix86_interunit_movq=yes
25163 else
25164 echo "configure: failed program was" >&5
25165 cat conftest.s >&5
25166 fi
25167 rm -f conftest.o conftest.s
25168 fi
25169 fi
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25171 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25172
25173
25174 cat >>confdefs.h <<_ACEOF
25175 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25176 _ACEOF
25177
25178
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25180 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25181 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25182 $as_echo_n "(cached) " >&6
25183 else
25184 gcc_cv_as_ix86_hle=no
25185 if test x$gcc_cv_as != x; then
25186 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25193 then
25194 gcc_cv_as_ix86_hle=yes
25195 else
25196 echo "configure: failed program was" >&5
25197 cat conftest.s >&5
25198 fi
25199 rm -f conftest.o conftest.s
25200 fi
25201 fi
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25203 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25204 if test $gcc_cv_as_ix86_hle = yes; then
25205
25206 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25207
25208 fi
25209
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25211 $as_echo_n "checking assembler for swap suffix... " >&6; }
25212 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25213 $as_echo_n "(cached) " >&6
25214 else
25215 gcc_cv_as_ix86_swap=no
25216 if test x$gcc_cv_as != x; then
25217 $as_echo 'movl.s %esp, %ebp' > conftest.s
25218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25224 then
25225 gcc_cv_as_ix86_swap=yes
25226 else
25227 echo "configure: failed program was" >&5
25228 cat conftest.s >&5
25229 fi
25230 rm -f conftest.o conftest.s
25231 fi
25232 fi
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25234 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25235 if test $gcc_cv_as_ix86_swap = yes; then
25236
25237 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25238
25239 fi
25240
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25242 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25243 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25245 else
25246 gcc_cv_as_ix86_diff_sect_delta=no
25247 if test x$gcc_cv_as != x; then
25248 $as_echo '.section .rodata
25249 .L1:
25250 .long .L2-.L1
25251 .long .L3-.L1
25252 .text
25253 .L3: nop
25254 .L2: nop' > conftest.s
25255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25261 then
25262 gcc_cv_as_ix86_diff_sect_delta=yes
25263 else
25264 echo "configure: failed program was" >&5
25265 cat conftest.s >&5
25266 fi
25267 rm -f conftest.o conftest.s
25268 fi
25269 fi
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25271 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25272 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25273
25274 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25275
25276 fi
25277
25278 # These two are used unconditionally by i386.[ch]; it is to be defined
25279 # to 1 if the feature is present, 0 otherwise.
25280 as_ix86_gotoff_in_data_opt=
25281 if test x$gas = xyes; then
25282 as_ix86_gotoff_in_data_opt="--32"
25283 fi
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25285 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25286 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25288 else
25289 gcc_cv_as_ix86_gotoff_in_data=no
25290 if test $in_tree_gas = yes; then
25291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25292 then gcc_cv_as_ix86_gotoff_in_data=yes
25293 fi
25294 elif test x$gcc_cv_as != x; then
25295 $as_echo ' .text
25296 .L0:
25297 nop
25298 .data
25299 .long .L0@GOTOFF' > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_ix86_gotoff_in_data=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25311 fi
25312 rm -f conftest.o conftest.s
25313 fi
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25316 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25317
25318
25319 cat >>confdefs.h <<_ACEOF
25320 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25321 _ACEOF
25322
25323
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25325 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25326 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25328 else
25329 gcc_cv_as_ix86_rep_lock_prefix=no
25330 if test x$gcc_cv_as != x; then
25331 $as_echo 'rep movsl
25332 rep ret
25333 rep nop
25334 rep bsf %ecx, %eax
25335 rep bsr %ecx, %eax
25336 lock addl %edi, (%eax,%esi)
25337 lock orl $0, (%esp)' > conftest.s
25338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25343 test $ac_status = 0; }; }
25344 then
25345 gcc_cv_as_ix86_rep_lock_prefix=yes
25346 else
25347 echo "configure: failed program was" >&5
25348 cat conftest.s >&5
25349 fi
25350 rm -f conftest.o conftest.s
25351 fi
25352 fi
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25354 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25355 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25356
25357 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25358
25359 fi
25360
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25362 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25363 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 gcc_cv_as_ix86_ud2=no
25367 if test x$gcc_cv_as != x; then
25368 $as_echo 'ud2' > conftest.s
25369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25371 (eval $ac_try) 2>&5
25372 ac_status=$?
25373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25374 test $ac_status = 0; }; }
25375 then
25376 gcc_cv_as_ix86_ud2=yes
25377 else
25378 echo "configure: failed program was" >&5
25379 cat conftest.s >&5
25380 fi
25381 rm -f conftest.o conftest.s
25382 fi
25383 fi
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25385 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25386 if test $gcc_cv_as_ix86_ud2 = yes; then
25387
25388 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25389
25390 fi
25391
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25393 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25394 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25396 else
25397 gcc_cv_as_ix86_tlsgdplt=no
25398 if test x$gcc_cv_as != x; then
25399 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 then
25407 if test x$gcc_cv_ld != x \
25408 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25409 gcc_cv_as_ix86_tlsgdplt=yes
25410 fi
25411 rm -f conftest
25412 else
25413 echo "configure: failed program was" >&5
25414 cat conftest.s >&5
25415 fi
25416 rm -f conftest.o conftest.s
25417 fi
25418 fi
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25420 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25421 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25422
25423 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25424
25425 fi
25426
25427 conftest_s='
25428 .section .tdata,"aw'$tls_section_flag'",@progbits
25429 tls_ld:
25430 .section .text,"ax",@progbits
25431 call tls_ld@tlsldmplt'
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25433 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25434 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 gcc_cv_as_ix86_tlsldmplt=no
25438 if test x$gcc_cv_as != x; then
25439 $as_echo "$conftest_s" > conftest.s
25440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25446 then
25447 if test x$gcc_cv_ld != x \
25448 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25449 gcc_cv_as_ix86_tlsldmplt=yes
25450 fi
25451 rm -f conftest
25452 else
25453 echo "configure: failed program was" >&5
25454 cat conftest.s >&5
25455 fi
25456 rm -f conftest.o conftest.s
25457 fi
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25460 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25461
25462
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25465 _ACEOF
25466
25467
25468 # Enforce 32-bit output with gas and gld.
25469 if test x$gas = xyes; then
25470 as_ix86_tls_ldm_opt="--32"
25471 fi
25472 if echo "$ld_ver" | grep GNU > /dev/null; then
25473 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25474 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25475 else
25476 ld_ix86_tls_ldm_opt="-melf_i386"
25477 fi
25478 fi
25479 conftest_s='
25480 .section .text,"ax",@progbits
25481 .globl _start
25482 .type _start, @function
25483 _start:
25484 leal value@tlsldm(%ebx), %eax
25485 call ___tls_get_addr@plt
25486
25487 .section .tdata,"aw'$tls_section_flag'",@progbits
25488 .type value, @object
25489 value:'
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25491 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25492 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25494 else
25495 gcc_cv_as_ix86_tlsldm=no
25496 if test x$gcc_cv_as != x; then
25497 $as_echo "$conftest_s" > conftest.s
25498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25500 (eval $ac_try) 2>&5
25501 ac_status=$?
25502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25503 test $ac_status = 0; }; }
25504 then
25505 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25506 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25507 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25508 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25509 gcc_cv_as_ix86_tlsldm=yes
25510 fi
25511 fi
25512 rm -f conftest
25513 else
25514 echo "configure: failed program was" >&5
25515 cat conftest.s >&5
25516 fi
25517 rm -f conftest.o conftest.s
25518 fi
25519 fi
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25521 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25522
25523
25524 cat >>confdefs.h <<_ACEOF
25525 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25526 _ACEOF
25527
25528
25529 ;;
25530
25531 ia64*-*-*)
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25533 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25534 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25535 $as_echo_n "(cached) " >&6
25536 else
25537 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25538 if test $in_tree_gas = yes; then
25539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25540 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25541 fi
25542 elif test x$gcc_cv_as != x; then
25543 $as_echo ' .text
25544 addl r15 = @ltoffx(x#), gp
25545 ;;
25546 ld8.mov r16 = [r15], x#' > conftest.s
25547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552 test $ac_status = 0; }; }
25553 then
25554 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25555 else
25556 echo "configure: failed program was" >&5
25557 cat conftest.s >&5
25558 fi
25559 rm -f conftest.o conftest.s
25560 fi
25561 fi
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25563 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25564 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25565
25566 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25567
25568 fi
25569
25570 ;;
25571
25572 powerpc*-*-*)
25573 case $target in
25574 *-*-aix*) conftest_s=' .machine "pwr5"
25575 .csect .text[PR]
25576 mfcr 3,128';;
25577 *-*-darwin*)
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25579 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25580 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_machine_directive=no
25584 if test x$gcc_cv_as != x; then
25585 $as_echo ' .machine ppc7400' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_machine_directive=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25597 fi
25598 rm -f conftest.o conftest.s
25599 fi
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25602 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25603
25604 if test x$gcc_cv_as_machine_directive != xyes; then
25605 echo "*** This target requires an assembler supporting \".machine\"" >&2
25606 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25607 test x$build = x$target && exit 1
25608 fi
25609 conftest_s=' .text
25610 mfcr r3,128';;
25611 *) conftest_s=' .machine power4
25612 .text
25613 mfcr 3,128';;
25614 esac
25615
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25617 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25618 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_powerpc_mfcrf=no
25622 if test $in_tree_gas = yes; then
25623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25624 then gcc_cv_as_powerpc_mfcrf=yes
25625 fi
25626 elif test x$gcc_cv_as != x; then
25627 $as_echo "$conftest_s" > 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_powerpc_mfcrf=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_powerpc_mfcrf" >&5
25644 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25645 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25646
25647 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25648
25649 fi
25650
25651 case $target in
25652 *-*-aix*) conftest_s=' .machine "pwr5"
25653 .csect .text[PR]
25654 popcntb 3,3';;
25655 *) conftest_s=' .machine power5
25656 .text
25657 popcntb 3,3';;
25658 esac
25659
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25661 $as_echo_n "checking assembler for popcntb support... " >&6; }
25662 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25663 $as_echo_n "(cached) " >&6
25664 else
25665 gcc_cv_as_powerpc_popcntb=no
25666 if test $in_tree_gas = yes; then
25667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25668 then gcc_cv_as_powerpc_popcntb=yes
25669 fi
25670 elif test x$gcc_cv_as != x; then
25671 $as_echo "$conftest_s" > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_powerpc_popcntb=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25683 fi
25684 rm -f conftest.o conftest.s
25685 fi
25686 fi
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25688 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25689 if test $gcc_cv_as_powerpc_popcntb = yes; then
25690
25691 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25692
25693 fi
25694
25695 case $target in
25696 *-*-aix*) conftest_s=' .machine "pwr5x"
25697 .csect .text[PR]
25698 frin 1,1';;
25699 *) conftest_s=' .machine power5
25700 .text
25701 frin 1,1';;
25702 esac
25703
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25705 $as_echo_n "checking assembler for fp round support... " >&6; }
25706 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25707 $as_echo_n "(cached) " >&6
25708 else
25709 gcc_cv_as_powerpc_fprnd=no
25710 if test $in_tree_gas = yes; then
25711 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25712 then gcc_cv_as_powerpc_fprnd=yes
25713 fi
25714 elif test x$gcc_cv_as != x; then
25715 $as_echo "$conftest_s" > conftest.s
25716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721 test $ac_status = 0; }; }
25722 then
25723 gcc_cv_as_powerpc_fprnd=yes
25724 else
25725 echo "configure: failed program was" >&5
25726 cat conftest.s >&5
25727 fi
25728 rm -f conftest.o conftest.s
25729 fi
25730 fi
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25732 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25733 if test $gcc_cv_as_powerpc_fprnd = yes; then
25734
25735 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25736
25737 fi
25738
25739 case $target in
25740 *-*-aix*) conftest_s=' .machine "pwr6"
25741 .csect .text[PR]
25742 mffgpr 1,3';;
25743 *) conftest_s=' .machine power6
25744 .text
25745 mffgpr 1,3';;
25746 esac
25747
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25749 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25750 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25752 else
25753 gcc_cv_as_powerpc_mfpgpr=no
25754 if test $in_tree_gas = yes; then
25755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25756 then gcc_cv_as_powerpc_mfpgpr=yes
25757 fi
25758 elif test x$gcc_cv_as != x; then
25759 $as_echo "$conftest_s" > conftest.s
25760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25766 then
25767 gcc_cv_as_powerpc_mfpgpr=yes
25768 else
25769 echo "configure: failed program was" >&5
25770 cat conftest.s >&5
25771 fi
25772 rm -f conftest.o conftest.s
25773 fi
25774 fi
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25776 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25777 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25778
25779 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25780
25781 fi
25782
25783 case $target in
25784 *-*-aix*) conftest_s=' .csect .text[PR]
25785 LCF..0:
25786 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25787 *-*-darwin*)
25788 conftest_s=' .text
25789 LCF0:
25790 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25791 *) conftest_s=' .text
25792 .LCF0:
25793 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25794 esac
25795
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25797 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25798 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25800 else
25801 gcc_cv_as_powerpc_rel16=no
25802 if test $in_tree_gas = yes; then
25803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25804 then gcc_cv_as_powerpc_rel16=yes
25805 fi
25806 elif test x$gcc_cv_as != x; then
25807 $as_echo "$conftest_s" > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 gcc_cv_as_powerpc_rel16=yes
25816 else
25817 echo "configure: failed program was" >&5
25818 cat conftest.s >&5
25819 fi
25820 rm -f conftest.o conftest.s
25821 fi
25822 fi
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25824 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25825 if test $gcc_cv_as_powerpc_rel16 = yes; then
25826
25827 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25828
25829 fi
25830
25831 case $target in
25832 *-*-aix*) conftest_s=' .machine "pwr6"
25833 .csect .text[PR]
25834 cmpb 3,4,5';;
25835 *) conftest_s=' .machine power6
25836 .text
25837 cmpb 3,4,5';;
25838 esac
25839
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25841 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25842 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25843 $as_echo_n "(cached) " >&6
25844 else
25845 gcc_cv_as_powerpc_cmpb=no
25846 if test $in_tree_gas = yes; then
25847 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25848 then gcc_cv_as_powerpc_cmpb=yes
25849 fi
25850 elif test x$gcc_cv_as != x; then
25851 $as_echo "$conftest_s" > conftest.s
25852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25857 test $ac_status = 0; }; }
25858 then
25859 gcc_cv_as_powerpc_cmpb=yes
25860 else
25861 echo "configure: failed program was" >&5
25862 cat conftest.s >&5
25863 fi
25864 rm -f conftest.o conftest.s
25865 fi
25866 fi
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25868 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25869 if test $gcc_cv_as_powerpc_cmpb = yes; then
25870
25871 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25872
25873 fi
25874
25875 case $target in
25876 *-*-aix*) conftest_s=' .machine "pwr6"
25877 .csect .text[PR]
25878 dadd 1,2,3';;
25879 *) conftest_s=' .machine power6
25880 .text
25881 dadd 1,2,3';;
25882 esac
25883
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25885 $as_echo_n "checking assembler for decimal float support... " >&6; }
25886 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25887 $as_echo_n "(cached) " >&6
25888 else
25889 gcc_cv_as_powerpc_dfp=no
25890 if test $in_tree_gas = yes; then
25891 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25892 then gcc_cv_as_powerpc_dfp=yes
25893 fi
25894 elif test x$gcc_cv_as != x; then
25895 $as_echo "$conftest_s" > conftest.s
25896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25902 then
25903 gcc_cv_as_powerpc_dfp=yes
25904 else
25905 echo "configure: failed program was" >&5
25906 cat conftest.s >&5
25907 fi
25908 rm -f conftest.o conftest.s
25909 fi
25910 fi
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25912 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25913 if test $gcc_cv_as_powerpc_dfp = yes; then
25914
25915 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25916
25917 fi
25918
25919 case $target in
25920 *-*-aix*) conftest_s=' .machine "pwr7"
25921 .csect .text[PR]
25922 lxvd2x 1,2,3';;
25923 *) conftest_s=' .machine power7
25924 .text
25925 lxvd2x 1,2,3';;
25926 esac
25927
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25929 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25930 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25931 $as_echo_n "(cached) " >&6
25932 else
25933 gcc_cv_as_powerpc_vsx=no
25934 if test $in_tree_gas = yes; then
25935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25936 then gcc_cv_as_powerpc_vsx=yes
25937 fi
25938 elif test x$gcc_cv_as != x; then
25939 $as_echo "$conftest_s" > conftest.s
25940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25945 test $ac_status = 0; }; }
25946 then
25947 gcc_cv_as_powerpc_vsx=yes
25948 else
25949 echo "configure: failed program was" >&5
25950 cat conftest.s >&5
25951 fi
25952 rm -f conftest.o conftest.s
25953 fi
25954 fi
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25956 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25957 if test $gcc_cv_as_powerpc_vsx = yes; then
25958
25959 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25960
25961 fi
25962
25963 case $target in
25964 *-*-aix*) conftest_s=' .machine "pwr7"
25965 .csect .text[PR]
25966 popcntd 3,3';;
25967 *) conftest_s=' .machine power7
25968 .text
25969 popcntd 3,3';;
25970 esac
25971
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25973 $as_echo_n "checking assembler for popcntd support... " >&6; }
25974 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25975 $as_echo_n "(cached) " >&6
25976 else
25977 gcc_cv_as_powerpc_popcntd=no
25978 if test $in_tree_gas = yes; then
25979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25980 then gcc_cv_as_powerpc_popcntd=yes
25981 fi
25982 elif test x$gcc_cv_as != x; then
25983 $as_echo "$conftest_s" > conftest.s
25984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989 test $ac_status = 0; }; }
25990 then
25991 gcc_cv_as_powerpc_popcntd=yes
25992 else
25993 echo "configure: failed program was" >&5
25994 cat conftest.s >&5
25995 fi
25996 rm -f conftest.o conftest.s
25997 fi
25998 fi
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26000 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26001 if test $gcc_cv_as_powerpc_popcntd = yes; then
26002
26003 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26004
26005 fi
26006
26007 case $target in
26008 *-*-aix*) conftest_s=' .machine "pwr8"
26009 .csect .text[PR]';;
26010 *) conftest_s=' .machine power8
26011 .text';;
26012 esac
26013
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26015 $as_echo_n "checking assembler for power8 support... " >&6; }
26016 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_powerpc_power8=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26022 then gcc_cv_as_powerpc_power8=yes
26023 fi
26024 elif test x$gcc_cv_as != x; then
26025 $as_echo "$conftest_s" > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26032 then
26033 gcc_cv_as_powerpc_power8=yes
26034 else
26035 echo "configure: failed program was" >&5
26036 cat conftest.s >&5
26037 fi
26038 rm -f conftest.o conftest.s
26039 fi
26040 fi
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26042 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26043 if test $gcc_cv_as_powerpc_power8 = yes; then
26044
26045 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26046
26047 fi
26048
26049 case $target in
26050 *-*-aix*) conftest_s=' .csect .text[PR]
26051 lwsync';;
26052 *) conftest_s=' .text
26053 lwsync';;
26054 esac
26055
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26057 $as_echo_n "checking assembler for lwsync support... " >&6; }
26058 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26059 $as_echo_n "(cached) " >&6
26060 else
26061 gcc_cv_as_powerpc_lwsync=no
26062 if test $in_tree_gas = yes; then
26063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26064 then gcc_cv_as_powerpc_lwsync=yes
26065 fi
26066 elif test x$gcc_cv_as != x; then
26067 $as_echo "$conftest_s" > conftest.s
26068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; }
26074 then
26075 gcc_cv_as_powerpc_lwsync=yes
26076 else
26077 echo "configure: failed program was" >&5
26078 cat conftest.s >&5
26079 fi
26080 rm -f conftest.o conftest.s
26081 fi
26082 fi
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26084 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26085 if test $gcc_cv_as_powerpc_lwsync = yes; then
26086
26087 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26088
26089 fi
26090
26091 case $target in
26092 *-*-aix*) conftest_s=' .machine "476"
26093 .csect .text[PR]
26094 dci 0';;
26095 *) conftest_s=' .machine "476"
26096 .text
26097 dci 0';;
26098 esac
26099
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26101 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26102 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26103 $as_echo_n "(cached) " >&6
26104 else
26105 gcc_cv_as_powerpc_dci=no
26106 if test $in_tree_gas = yes; then
26107 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26108 then gcc_cv_as_powerpc_dci=yes
26109 fi
26110 elif test x$gcc_cv_as != x; then
26111 $as_echo "$conftest_s" > conftest.s
26112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26118 then
26119 gcc_cv_as_powerpc_dci=yes
26120 else
26121 echo "configure: failed program was" >&5
26122 cat conftest.s >&5
26123 fi
26124 rm -f conftest.o conftest.s
26125 fi
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26128 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26129 if test $gcc_cv_as_powerpc_dci = yes; then
26130
26131 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26132
26133 fi
26134
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26136 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26137 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26139 else
26140 gcc_cv_as_powerpc_gnu_attribute=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26143 then gcc_cv_as_powerpc_gnu_attribute=yes
26144 fi
26145 elif test x$gcc_cv_as != x; then
26146 $as_echo '.gnu_attribute 4,1' > conftest.s
26147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26153 then
26154 gcc_cv_as_powerpc_gnu_attribute=yes
26155 else
26156 echo "configure: failed program was" >&5
26157 cat conftest.s >&5
26158 fi
26159 rm -f conftest.o conftest.s
26160 fi
26161 fi
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26163 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26164 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26165
26166 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26167
26168 fi
26169
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26171 $as_echo_n "checking assembler for tls marker support... " >&6; }
26172 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 gcc_cv_as_powerpc_tls_markers=no
26176 if test $in_tree_gas = yes; then
26177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26178 then gcc_cv_as_powerpc_tls_markers=yes
26179 fi
26180 elif test x$gcc_cv_as != x; then
26181 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; }
26188 then
26189 gcc_cv_as_powerpc_tls_markers=yes
26190 else
26191 echo "configure: failed program was" >&5
26192 cat conftest.s >&5
26193 fi
26194 rm -f conftest.o conftest.s
26195 fi
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26198 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26199 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26200
26201 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26202
26203 fi
26204
26205 case $target in
26206 *-*-aix*)
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26208 $as_echo_n "checking assembler for .ref support... " >&6; }
26209 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_aix_ref=no
26213 if test $in_tree_gas = yes; then
26214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26215 then gcc_cv_as_aix_ref=yes
26216 fi
26217 elif test x$gcc_cv_as != x; then
26218 $as_echo ' .csect stuff[rw]
26219 stuff:
26220 .long 1
26221 .extern sym
26222 .ref sym
26223 ' > conftest.s
26224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26226 (eval $ac_try) 2>&5
26227 ac_status=$?
26228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26229 test $ac_status = 0; }; }
26230 then
26231 gcc_cv_as_aix_ref=yes
26232 else
26233 echo "configure: failed program was" >&5
26234 cat conftest.s >&5
26235 fi
26236 rm -f conftest.o conftest.s
26237 fi
26238 fi
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26240 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26241 if test $gcc_cv_as_aix_ref = yes; then
26242
26243 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26244
26245 fi
26246 ;;
26247 esac
26248 ;;
26249
26250 mips*-*-*)
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26252 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26253 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26254 $as_echo_n "(cached) " >&6
26255 else
26256 gcc_cv_as_mips_explicit_relocs=no
26257 if test $in_tree_gas = yes; then
26258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26259 then gcc_cv_as_mips_explicit_relocs=yes
26260 fi
26261 elif test x$gcc_cv_as != x; then
26262 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26265 (eval $ac_try) 2>&5
26266 ac_status=$?
26267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26268 test $ac_status = 0; }; }
26269 then
26270 gcc_cv_as_mips_explicit_relocs=yes
26271 else
26272 echo "configure: failed program was" >&5
26273 cat conftest.s >&5
26274 fi
26275 rm -f conftest.o conftest.s
26276 fi
26277 fi
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26279 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26280 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26281 if test x$target_cpu_default = x
26282 then target_cpu_default=MASK_EXPLICIT_RELOCS
26283 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26284 fi
26285 fi
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26287 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26288 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26289 $as_echo_n "(cached) " >&6
26290 else
26291 gcc_cv_as_mips_no_shared=no
26292 if test $in_tree_gas = yes; then
26293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26294 then gcc_cv_as_mips_no_shared=yes
26295 fi
26296 elif test x$gcc_cv_as != x; then
26297 $as_echo 'nop' > conftest.s
26298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26304 then
26305 gcc_cv_as_mips_no_shared=yes
26306 else
26307 echo "configure: failed program was" >&5
26308 cat conftest.s >&5
26309 fi
26310 rm -f conftest.o conftest.s
26311 fi
26312 fi
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26314 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26315 if test $gcc_cv_as_mips_no_shared = yes; then
26316
26317 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26318
26319 fi
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26322 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26323 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26324 $as_echo_n "(cached) " >&6
26325 else
26326 gcc_cv_as_mips_gnu_attribute=no
26327 if test $in_tree_gas = yes; then
26328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26329 then gcc_cv_as_mips_gnu_attribute=yes
26330 fi
26331 elif test x$gcc_cv_as != x; then
26332 $as_echo '.gnu_attribute 4,1' > conftest.s
26333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }
26339 then
26340 gcc_cv_as_mips_gnu_attribute=yes
26341 else
26342 echo "configure: failed program was" >&5
26343 cat conftest.s >&5
26344 fi
26345 rm -f conftest.o conftest.s
26346 fi
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26349 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26350 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26351
26352 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26353
26354 fi
26355
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26357 $as_echo_n "checking assembler for .module support... " >&6; }
26358 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26359 $as_echo_n "(cached) " >&6
26360 else
26361 gcc_cv_as_mips_dot_module=no
26362 if test x$gcc_cv_as != x; then
26363 $as_echo '.module mips2
26364 .module fp=xx' > conftest.s
26365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26371 then
26372 gcc_cv_as_mips_dot_module=yes
26373 else
26374 echo "configure: failed program was" >&5
26375 cat conftest.s >&5
26376 fi
26377 rm -f conftest.o conftest.s
26378 fi
26379 fi
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26381 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26382 if test $gcc_cv_as_mips_dot_module = yes; then
26383
26384 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26385
26386 fi
26387 if test x$gcc_cv_as_mips_dot_module = xno \
26388 && test x$with_fp_32 != x; then
26389 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26390 fi
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26393 $as_echo_n "checking assembler for .micromips support... " >&6; }
26394 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 gcc_cv_as_micromips_support=no
26398 if test x$gcc_cv_as != x; then
26399 $as_echo '.set micromips' > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_micromips_support=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_micromips_support" >&5
26416 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26417 if test $gcc_cv_as_micromips_support = yes; then
26418
26419 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26420
26421 fi
26422
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26424 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26425 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_as_mips_dtprelword=no
26429 if test $in_tree_gas = yes; then
26430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26431 then gcc_cv_as_mips_dtprelword=yes
26432 fi
26433 elif test x$gcc_cv_as != x; then
26434 $as_echo '.section .tdata,"awT",@progbits
26435 x:
26436 .word 2
26437 .text
26438 .dtprelword x+0x8000' > conftest.s
26439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26445 then
26446 gcc_cv_as_mips_dtprelword=yes
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26450 fi
26451 rm -f conftest.o conftest.s
26452 fi
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26455 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26456 if test $gcc_cv_as_mips_dtprelword = yes; then
26457
26458 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26459
26460 fi
26461
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26463 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26464 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26465 $as_echo_n "(cached) " >&6
26466 else
26467 gcc_cv_as_mips_dspr1_mult=no
26468 if test x$gcc_cv_as != x; then
26469 $as_echo ' .set mips32r2
26470 .set nodspr2
26471 .set dsp
26472 madd $ac3,$4,$5
26473 maddu $ac3,$4,$5
26474 msub $ac3,$4,$5
26475 msubu $ac3,$4,$5
26476 mult $ac3,$4,$5
26477 multu $ac3,$4,$5' > conftest.s
26478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26483 test $ac_status = 0; }; }
26484 then
26485 gcc_cv_as_mips_dspr1_mult=yes
26486 else
26487 echo "configure: failed program was" >&5
26488 cat conftest.s >&5
26489 fi
26490 rm -f conftest.o conftest.s
26491 fi
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26494 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26495 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26496
26497 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26498
26499 fi
26500
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26502 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26503 gcc_cv_as_ld_jalr_reloc=no
26504 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26505 if test $in_tree_ld = yes ; then
26506 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 \
26507 && test $in_tree_ld_is_elf = yes; then
26508 gcc_cv_as_ld_jalr_reloc=yes
26509 fi
26510 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26511 echo ' .ent x' > conftest.s
26512 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26513 echo ' lw $25,%call16(y)($28)' >> conftest.s
26514 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26515 echo '1: jalr $25' >> conftest.s
26516 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26517 echo '1: jalr $25' >> conftest.s
26518 echo ' .end x' >> conftest.s
26519 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26520 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26521 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26522 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26523 gcc_cv_as_ld_jalr_reloc=yes
26524 fi
26525 fi
26526 rm -f conftest.*
26527 fi
26528 fi
26529 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26530 if test x$target_cpu_default = x; then
26531 target_cpu_default=MASK_RELAX_PIC_CALLS
26532 else
26533 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26534 fi
26535 fi
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26537 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26538
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26540 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26541 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26544 gcc_cv_ld_mips_personality_relaxation=no
26545 if test $in_tree_ld = yes ; then
26546 if test "$gcc_cv_gld_major_version" -eq 2 \
26547 -a "$gcc_cv_gld_minor_version" -ge 21 \
26548 -o "$gcc_cv_gld_major_version" -gt 2; then
26549 gcc_cv_ld_mips_personality_relaxation=yes
26550 fi
26551 elif test x$gcc_cv_as != x \
26552 -a x$gcc_cv_ld != x \
26553 -a x$gcc_cv_readelf != x ; then
26554 cat > conftest.s <<EOF
26555 .cfi_startproc
26556 .cfi_personality 0x80,indirect_ptr
26557 .ent test
26558 test:
26559 nop
26560 .end test
26561 .cfi_endproc
26562
26563 .section .data,"aw",@progbits
26564 indirect_ptr:
26565 .dc.a personality
26566 EOF
26567 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26568 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26569 if $gcc_cv_readelf -d conftest 2>&1 \
26570 | grep TEXTREL > /dev/null 2>&1; then
26571 :
26572 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26573 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26574 :
26575 else
26576 gcc_cv_ld_mips_personality_relaxation=yes
26577 fi
26578 fi
26579 fi
26580 rm -f conftest.s conftest.o conftest
26581 fi
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26583 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26584 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26585
26586 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26587
26588 fi
26589
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26591 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26592 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26593 $as_echo_n "(cached) " >&6
26594 else
26595 gcc_cv_as_mips_nan=no
26596 if test x$gcc_cv_as != x; then
26597 $as_echo '' > conftest.s
26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26604 then
26605 gcc_cv_as_mips_nan=yes
26606 else
26607 echo "configure: failed program was" >&5
26608 cat conftest.s >&5
26609 fi
26610 rm -f conftest.o conftest.s
26611 fi
26612 fi
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26614 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26615 if test $gcc_cv_as_mips_nan = yes; then
26616
26617 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26618
26619 fi
26620 if test x$gcc_cv_as_mips_nan = xno \
26621 && test x$with_nan != x; then
26622 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26623 fi
26624 ;;
26625 s390*-*-*)
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26627 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26628 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26629 $as_echo_n "(cached) " >&6
26630 else
26631 gcc_cv_as_s390_gnu_attribute=no
26632 if test $in_tree_gas = yes; then
26633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26634 then gcc_cv_as_s390_gnu_attribute=yes
26635 fi
26636 elif test x$gcc_cv_as != x; then
26637 $as_echo '.gnu_attribute 8,1' > conftest.s
26638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26640 (eval $ac_try) 2>&5
26641 ac_status=$?
26642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26643 test $ac_status = 0; }; }
26644 then
26645 gcc_cv_as_s390_gnu_attribute=yes
26646 else
26647 echo "configure: failed program was" >&5
26648 cat conftest.s >&5
26649 fi
26650 rm -f conftest.o conftest.s
26651 fi
26652 fi
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26654 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26655 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26656
26657 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26658
26659 fi
26660 ;;
26661 esac
26662
26663 # Mips and HP-UX need the GNU assembler.
26664 # Linux on IA64 might be able to use the Intel assembler.
26665
26666 case "$target" in
26667 mips*-*-* | *-*-hpux* )
26668 if test x$gas_flag = xyes \
26669 || test x"$host" != x"$build" \
26670 || test ! -x "$gcc_cv_as" \
26671 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26672 :
26673 else
26674 echo "*** This configuration requires the GNU assembler" >&2
26675 exit 1
26676 fi
26677 ;;
26678 esac
26679
26680 # ??? Not all targets support dwarf2 debug_line, even within a version
26681 # of gas. Moreover, we need to emit a valid instruction to trigger any
26682 # info to the output file. So, as supported targets are added to gas 2.11,
26683 # add some instruction here to (also) show we expect this might work.
26684 # ??? Once 2.11 is released, probably need to add first known working
26685 # version to the per-target configury.
26686 case "$cpu_type" in
26687 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26688 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26689 | visium | xstormy16 | xtensa)
26690 insn="nop"
26691 ;;
26692 ia64 | s390)
26693 insn="nop 0"
26694 ;;
26695 mmix)
26696 insn="swym 0"
26697 ;;
26698 esac
26699 if test x"$insn" != x; then
26700 conftest_s="\
26701 .file 1 \"conftest.s\"
26702 .loc 1 3 0
26703 $insn"
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26705 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26706 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26707 $as_echo_n "(cached) " >&6
26708 else
26709 gcc_cv_as_dwarf2_debug_line=no
26710 if test $in_tree_gas = yes; then
26711 if test $in_tree_gas_is_elf = yes \
26712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26713 then gcc_cv_as_dwarf2_debug_line=yes
26714 fi
26715 elif test x$gcc_cv_as != x; then
26716 $as_echo "$conftest_s" > conftest.s
26717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26722 test $ac_status = 0; }; }
26723 then
26724 if test x$gcc_cv_objdump != x \
26725 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26726 | grep debug_line > /dev/null 2>&1; then
26727 gcc_cv_as_dwarf2_debug_line=yes
26728 fi
26729 else
26730 echo "configure: failed program was" >&5
26731 cat conftest.s >&5
26732 fi
26733 rm -f conftest.o conftest.s
26734 fi
26735 fi
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26737 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26738
26739
26740 # The .debug_line file table must be in the exact order that
26741 # we specified the files, since these indices are also used
26742 # by DW_AT_decl_file. Approximate this test by testing if
26743 # the assembler bitches if the same index is assigned twice.
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26745 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26746 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26747 $as_echo_n "(cached) " >&6
26748 else
26749 gcc_cv_as_dwarf2_file_buggy=no
26750 if test x$gcc_cv_as != x; then
26751 $as_echo ' .file 1 "foo.s"
26752 .file 1 "bar.s"' > conftest.s
26753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26755 (eval $ac_try) 2>&5
26756 ac_status=$?
26757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26758 test $ac_status = 0; }; }
26759 then
26760 gcc_cv_as_dwarf2_file_buggy=yes
26761 else
26762 echo "configure: failed program was" >&5
26763 cat conftest.s >&5
26764 fi
26765 rm -f conftest.o conftest.s
26766 fi
26767 fi
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26769 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26770
26771
26772 if test $gcc_cv_as_dwarf2_debug_line = yes \
26773 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26774
26775 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26776
26777 fi
26778
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26780 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26781 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 gcc_cv_as_gdwarf2_flag=no
26785 if test $in_tree_gas = yes; then
26786 if test $in_tree_gas_is_elf = yes \
26787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26788 then gcc_cv_as_gdwarf2_flag=yes
26789 fi
26790 elif test x$gcc_cv_as != x; then
26791 $as_echo "$insn" > conftest.s
26792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26797 test $ac_status = 0; }; }
26798 then
26799 gcc_cv_as_gdwarf2_flag=yes
26800 else
26801 echo "configure: failed program was" >&5
26802 cat conftest.s >&5
26803 fi
26804 rm -f conftest.o conftest.s
26805 fi
26806 fi
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26808 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26809 if test $gcc_cv_as_gdwarf2_flag = yes; then
26810
26811 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26812
26813 fi
26814
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26816 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26817 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26818 $as_echo_n "(cached) " >&6
26819 else
26820 gcc_cv_as_gstabs_flag=no
26821 if test $in_tree_gas = yes; then
26822 if test $in_tree_gas_is_elf = yes \
26823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26824 then gcc_cv_as_gstabs_flag=yes
26825 fi
26826 elif test x$gcc_cv_as != x; then
26827 $as_echo "$insn" > conftest.s
26828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26833 test $ac_status = 0; }; }
26834 then
26835 gcc_cv_as_gstabs_flag=yes
26836 else
26837 echo "configure: failed program was" >&5
26838 cat conftest.s >&5
26839 fi
26840 rm -f conftest.o conftest.s
26841 fi
26842 fi
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26844 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26845 if test $gcc_cv_as_gstabs_flag = yes; then
26846
26847 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26848
26849 fi
26850
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26852 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26853 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26854 $as_echo_n "(cached) " >&6
26855 else
26856 gcc_cv_as_debug_prefix_map_flag=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26859 then gcc_cv_as_debug_prefix_map_flag=yes
26860 fi
26861 elif test x$gcc_cv_as != x; then
26862 $as_echo "$insn" > conftest.s
26863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26865 (eval $ac_try) 2>&5
26866 ac_status=$?
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; }
26869 then
26870 gcc_cv_as_debug_prefix_map_flag=yes
26871 else
26872 echo "configure: failed program was" >&5
26873 cat conftest.s >&5
26874 fi
26875 rm -f conftest.o conftest.s
26876 fi
26877 fi
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26879 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26880 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26881
26882 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26883
26884 fi
26885 fi
26886
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26888 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26889 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26890 $as_echo_n "(cached) " >&6
26891 else
26892 gcc_cv_as_compress_debug=no
26893 if test x$gcc_cv_as != x; then
26894 $as_echo '' > conftest.s
26895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26900 test $ac_status = 0; }; }
26901 then
26902 # gas compiled without zlib cannot compress debug sections and warns
26903 # about it, but still exits successfully. So check for this, too.
26904 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26905 then
26906 gcc_cv_as_compress_debug=0
26907 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26908 then
26909 gcc_cv_as_compress_debug=1
26910 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26911 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26912 else
26913 gcc_cv_as_compress_debug=0
26914 # FIXME: Future gas versions will support ELF gABI style via
26915 # --compress-debug-sections[=type].
26916 fi
26917 else
26918 echo "configure: failed program was" >&5
26919 cat conftest.s >&5
26920 fi
26921 rm -f conftest.o conftest.s
26922 fi
26923 fi
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26925 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26926
26927
26928 cat >>confdefs.h <<_ACEOF
26929 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26930 _ACEOF
26931
26932
26933 cat >>confdefs.h <<_ACEOF
26934 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26935 _ACEOF
26936
26937
26938 cat >>confdefs.h <<_ACEOF
26939 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26940 _ACEOF
26941
26942
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26944 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26945 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26946 $as_echo_n "(cached) " >&6
26947 else
26948 gcc_cv_as_lcomm_with_alignment=no
26949 if test x$gcc_cv_as != x; then
26950 $as_echo '.lcomm bar,4,16' > conftest.s
26951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26957 then
26958 gcc_cv_as_lcomm_with_alignment=yes
26959 else
26960 echo "configure: failed program was" >&5
26961 cat conftest.s >&5
26962 fi
26963 rm -f conftest.o conftest.s
26964 fi
26965 fi
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26967 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26968 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26969
26970 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26971
26972 fi
26973
26974 if test x$with_sysroot = x && test x$host = x$target \
26975 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26976 && test "$prefix" != "NONE"; then
26977
26978 cat >>confdefs.h <<_ACEOF
26979 #define PREFIX_INCLUDE_DIR "$prefix/include"
26980 _ACEOF
26981
26982 fi
26983
26984 # Determine the version of glibc, if any, used on the target.
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26986 $as_echo_n "checking for target glibc version... " >&6; }
26987
26988 # Check whether --with-glibc-version was given.
26989 if test "${with_glibc_version+set}" = set; then :
26990 withval=$with_glibc_version;
26991 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26992 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26993 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26994 else
26995 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26996 fi
26997 else
26998
26999 glibc_version_major=0
27000 glibc_version_minor=0
27001 if test -f $target_header_dir/features.h \
27002 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27003 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27004 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27005 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27006 fi
27007 fi
27008
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27010 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27011
27012 cat >>confdefs.h <<_ACEOF
27013 #define TARGET_GLIBC_MAJOR $glibc_version_major
27014 _ACEOF
27015
27016
27017 cat >>confdefs.h <<_ACEOF
27018 #define TARGET_GLIBC_MINOR $glibc_version_minor
27019 _ACEOF
27020
27021
27022 # Check whether --enable-gnu-unique-object was given.
27023 if test "${enable_gnu_unique_object+set}" = set; then :
27024 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27025 yes | no) ;;
27026 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27027 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27028 esac
27029 else
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27031 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27032 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27033 $as_echo_n "(cached) " >&6
27034 else
27035 gcc_cv_as_gnu_unique_object=no
27036 if test $in_tree_gas = yes; then
27037 if test $in_tree_gas_is_elf = yes \
27038 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27039 then gcc_cv_as_gnu_unique_object=yes
27040 fi
27041 elif test x$gcc_cv_as != x; then
27042 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27045 (eval $ac_try) 2>&5
27046 ac_status=$?
27047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27048 test $ac_status = 0; }; }
27049 then
27050 gcc_cv_as_gnu_unique_object=yes
27051 else
27052 echo "configure: failed program was" >&5
27053 cat conftest.s >&5
27054 fi
27055 rm -f conftest.o conftest.s
27056 fi
27057 fi
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27059 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27060 if test $gcc_cv_as_gnu_unique_object = yes; then
27061 # We need to unquote above to to use the definition from config.gcc.
27062 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27063
27064 if test $glibc_version_major -gt 2 \
27065 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27066 enable_gnu_unique_object=yes
27067 fi
27068
27069 fi
27070 fi
27071
27072 if test x$enable_gnu_unique_object = xyes; then
27073
27074 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27075
27076 fi
27077
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27079 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27080 if test "${gcc_cv_as_line_zero+set}" = set; then :
27081 $as_echo_n "(cached) " >&6
27082 else
27083 gcc_cv_as_line_zero=no
27084 if test $in_tree_gas = yes; then
27085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27086 then gcc_cv_as_line_zero=yes
27087 fi
27088 elif test "x$gcc_cv_as" != x; then
27089 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27090 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27095 test $ac_status = 0; }; } &&
27096 test "x`cat conftest.out`" = x
27097 then
27098 gcc_cv_as_line_zero=yes
27099 else
27100 echo "configure: failed program was" >&5
27101 cat conftest.s >&5
27102 echo "configure: error output was" >&5
27103 cat conftest.out >&5
27104 fi
27105 rm -f conftest.o conftest.s conftest.out
27106 fi
27107 fi
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27109 $as_echo "$gcc_cv_as_line_zero" >&6; }
27110 if test "x$gcc_cv_as_line_zero" = xyes; then
27111
27112 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27113
27114 fi
27115
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27117 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27118 gcc_cv_ld_eh_frame_hdr=no
27119 if test $in_tree_ld = yes ; then
27120 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 \
27121 && test $in_tree_ld_is_elf = yes; then
27122 gcc_cv_ld_eh_frame_hdr=yes
27123 fi
27124 elif test x$gcc_cv_ld != x; then
27125 if echo "$ld_ver" | grep GNU > /dev/null; then
27126 # Check if linker supports --eh-frame-hdr option
27127 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27128 gcc_cv_ld_eh_frame_hdr=yes
27129 fi
27130 else
27131 case "$target" in
27132 *-*-solaris2*)
27133 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27134 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27135 gcc_cv_ld_eh_frame_hdr=yes
27136 fi
27137 ;;
27138 esac
27139 fi
27140 fi
27141
27142 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27143
27144 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27145
27146 fi
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27148 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27149
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27151 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27152 gcc_cv_ld_eh_frame_ciev3=no
27153 if test $in_tree_ld = yes ; then
27154 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 \
27155 && test $in_tree_ld_is_elf = yes; then
27156 gcc_cv_ld_eh_frame_ciev3=yes
27157 fi
27158 elif test x$gcc_cv_ld != x; then
27159 if echo "$ld_ver" | grep GNU > /dev/null; then
27160 gcc_cv_ld_eh_frame_ciev3=yes
27161 if test 0"$ld_date" -lt 20040513; then
27162 if test -n "$ld_date"; then
27163 # If there was date string, but was earlier than 2004-05-13, fail
27164 gcc_cv_ld_eh_frame_ciev3=no
27165 elif test "$ld_vers_major" -lt 2; then
27166 gcc_cv_ld_eh_frame_ciev3=no
27167 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27168 gcc_cv_ld_eh_frame_ciev3=no
27169 fi
27170 fi
27171 else
27172 case "$target" in
27173 *-*-solaris2*)
27174 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27175 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27176 gcc_cv_ld_eh_frame_ciev3=yes
27177 fi
27178 ;;
27179 esac
27180 fi
27181 fi
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27185 _ACEOF
27186
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27188 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27189
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27191 $as_echo_n "checking linker position independent executable support... " >&6; }
27192 gcc_cv_ld_pie=no
27193 if test $in_tree_ld = yes ; then
27194 case "$target" in
27195 # Full PIE support on Solaris was only introduced in gld 2.26.
27196 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27197 *) gcc_gld_pie_min_version=15 ;;
27198 esac
27199 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 \
27200 && test $in_tree_ld_is_elf = yes; then
27201 gcc_cv_ld_pie=yes
27202 fi
27203 elif test x$gcc_cv_ld != x; then
27204 # Check if linker supports -pie option
27205 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27206 gcc_cv_ld_pie=yes
27207 case "$target" in
27208 *-*-solaris2*)
27209 if echo "$ld_ver" | grep GNU > /dev/null \
27210 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27211 gcc_cv_ld_pie=no
27212 fi
27213 ;;
27214 esac
27215 else
27216 case "$target" in
27217 *-*-solaris2.1[1-9]*)
27218 # Solaris 11.x and Solaris 12 added PIE support.
27219 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27220 gcc_cv_ld_pie=yes
27221 fi
27222 ;;
27223 esac
27224 fi
27225 fi
27226 if test x"$gcc_cv_ld_pie" = xyes; then
27227
27228 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27229
27230 fi
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27232 $as_echo "$gcc_cv_ld_pie" >&6; }
27233
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27235 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27236 gcc_cv_ld_pie_copyreloc=no
27237 if test $gcc_cv_ld_pie = yes ; then
27238 if test $in_tree_ld = yes ; then
27239 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
27240 gcc_cv_ld_pie_copyreloc=yes
27241 fi
27242 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27243 # Check if linker supports -pie option with copy reloc
27244 case "$target" in
27245 i?86-*-linux* | x86_64-*-linux*)
27246 cat > conftest1.s <<EOF
27247 .globl a_glob
27248 .data
27249 .type a_glob, @object
27250 .size a_glob, 4
27251 a_glob:
27252 .long 2
27253 EOF
27254 cat > conftest2.s <<EOF
27255 .text
27256 .globl main
27257 .type main, @function
27258 main:
27259 movl %eax, a_glob(%rip)
27260 .size main, .-main
27261 .globl ptr
27262 .section .data.rel,"aw",@progbits
27263 .type ptr, @object
27264 ptr:
27265 .quad a_glob
27266 EOF
27267 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27268 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27269 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27270 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27271 gcc_cv_ld_pie_copyreloc=yes
27272 fi
27273 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27274 ;;
27275 esac
27276 fi
27277 fi
27278
27279 cat >>confdefs.h <<_ACEOF
27280 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27281 _ACEOF
27282
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27284 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27285
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27287 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27288 gcc_cv_ld_eh_gc_sections=no
27289 if test $in_tree_ld = yes ; then
27290 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 \
27291 && test $in_tree_ld_is_elf = yes; then
27292 gcc_cv_ld_eh_gc_sections=yes
27293 fi
27294 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27295 cat > conftest.s <<EOF
27296 .section .text
27297 .globl _start
27298 .type _start, @function
27299 _start:
27300 .long foo
27301 .size _start, .-_start
27302 .section .text.foo,"ax",@progbits
27303 .type foo, @function
27304 foo:
27305 .long 0
27306 .size foo, .-foo
27307 .section .gcc_except_table.foo,"a",@progbits
27308 .L0:
27309 .long 0
27310 .section .eh_frame,"a",@progbits
27311 .long .L0
27312 EOF
27313 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27314 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27315 | grep "gc-sections option ignored" > /dev/null; then
27316 gcc_cv_ld_eh_gc_sections=no
27317 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27318 | grep gcc_except_table > /dev/null; then
27319 gcc_cv_ld_eh_gc_sections=yes
27320 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27321 if test x$gcc_cv_as_comdat_group != xyes; then
27322 gcc_cv_ld_eh_gc_sections=no
27323 cat > conftest.s <<EOF
27324 .section .text
27325 .globl _start
27326 .type _start, @function
27327 _start:
27328 .long foo
27329 .size _start, .-_start
27330 .section .gnu.linkonce.t.foo,"ax",@progbits
27331 .type foo, @function
27332 foo:
27333 .long 0
27334 .size foo, .-foo
27335 .section .gcc_except_table.foo,"a",@progbits
27336 .L0:
27337 .long 0
27338 .section .eh_frame,"a",@progbits
27339 .long .L0
27340 EOF
27341 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27342 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27343 | grep "gc-sections option ignored" > /dev/null; then
27344 gcc_cv_ld_eh_gc_sections=no
27345 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27346 | grep gcc_except_table > /dev/null; then
27347 gcc_cv_ld_eh_gc_sections=yes
27348 fi
27349 fi
27350 fi
27351 fi
27352 fi
27353 rm -f conftest.s conftest.o conftest
27354 fi
27355 case "$target" in
27356 hppa*-*-linux*)
27357 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27358 gcc_cv_ld_eh_gc_sections=no
27359 ;;
27360 esac
27361 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27362
27363 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27364
27365 fi
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27367 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27368
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27370 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27371 gcc_cv_ld_eh_gc_sections_bug=no
27372 if test $in_tree_ld = yes ; then
27373 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 \
27374 && test $in_tree_ld_is_elf = yes; then
27375 gcc_cv_ld_eh_gc_sections_bug=yes
27376 fi
27377 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
27378 gcc_cv_ld_eh_gc_sections_bug=yes
27379 cat > conftest.s <<EOF
27380 .section .text
27381 .globl _start
27382 .type _start, @function
27383 _start:
27384 .long foo
27385 .size _start, .-_start
27386 .section .text.startup.foo,"ax",@progbits
27387 .type foo, @function
27388 foo:
27389 .long 0
27390 .size foo, .-foo
27391 .section .gcc_except_table.foo,"a",@progbits
27392 .L0:
27393 .long 0
27394 .section .eh_frame,"a",@progbits
27395 .long .L0
27396 EOF
27397 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27398 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27399 | grep "gc-sections option ignored" > /dev/null; then
27400 :
27401 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27402 | grep gcc_except_table > /dev/null; then
27403 gcc_cv_ld_eh_gc_sections_bug=no
27404 fi
27405 fi
27406 rm -f conftest.s conftest.o conftest
27407 fi
27408 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27409
27410 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27411
27412 fi
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27414 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27415
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27417 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27418 # gold/gld support compressed debug sections since binutils 2.19/2.21
27419 if test $in_tree_ld = yes ; then
27420 gcc_cv_ld_compress_debug=0
27421 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 \
27422 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27423 gcc_cv_ld_compress_debug=2
27424 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27425 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 \
27426 && test $in_tree_ld_is_elf = yes; then
27427 gcc_cv_ld_compress_debug=1
27428 fi
27429 elif echo "$ld_ver" | grep GNU > /dev/null; then
27430 gcc_cv_ld_compress_debug=1
27431 if test 0"$ld_date" -lt 20050308; then
27432 if test -n "$ld_date"; then
27433 # If there was date string, but was earlier than 2005-03-08, fail
27434 gcc_cv_ld_compress_debug=0
27435 elif test "$ld_vers_major" -lt 2; then
27436 gcc_cv_ld_compress_debug=0
27437 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27438 gcc_cv_ld_compress_debug=0
27439 fi
27440 fi
27441 if test $ld_is_gold = yes; then
27442 gcc_cv_ld_compress_debug=2
27443 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27444 fi
27445 else
27446 case "${target}" in
27447 *-*-solaris2*)
27448 # Introduced in Solaris 11.2.
27449 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27450 gcc_cv_ld_compress_debug=3
27451 gcc_cv_ld_compress_debug_option="-z compress-sections"
27452 else
27453 gcc_cv_ld_compress_debug=0
27454 fi
27455 ;;
27456 *)
27457 # Assume linkers other than GNU ld don't support compessed debug
27458 # sections.
27459 gcc_cv_ld_compress_debug=0
27460 ;;
27461 esac
27462 fi
27463
27464 cat >>confdefs.h <<_ACEOF
27465 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27466 _ACEOF
27467
27468
27469 cat >>confdefs.h <<_ACEOF
27470 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27471 _ACEOF
27472
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27474 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27475
27476 # --------
27477 # UNSORTED
27478 # --------
27479
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27481 $as_echo_n "checking linker --as-needed support... " >&6; }
27482 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27483 $as_echo_n "(cached) " >&6
27484 else
27485 gcc_cv_ld_as_needed=no
27486 gcc_cv_ld_as_needed_option='--as-needed'
27487 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27488 if test $in_tree_ld = yes ; then
27489 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 \
27490 && test $in_tree_ld_is_elf = yes; then
27491 gcc_cv_ld_as_needed=yes
27492 fi
27493 elif test x$gcc_cv_ld != x; then
27494 # Check if linker supports --as-needed and --no-as-needed options
27495 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27496 gcc_cv_ld_as_needed=yes
27497 else
27498 case "$target" in
27499 # Solaris 2 ld always supports -z ignore/-z record.
27500 *-*-solaris2*)
27501 gcc_cv_ld_as_needed=yes
27502 gcc_cv_ld_as_needed_option="-z ignore"
27503 gcc_cv_ld_no_as_needed_option="-z record"
27504 ;;
27505 esac
27506 fi
27507 fi
27508 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27509 # dl_iterate_phdr, i.e. since Solaris 11.
27510 case "$target" in
27511 *-*-solaris2.1[1-9]*)
27512 case "$target" in
27513 i?86-*-* | x86_64-*-*)
27514 if echo "$ld_ver" | grep GNU > /dev/null; then
27515 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27516 gcc_cv_ld_as_needed=no
27517 fi
27518 ;;
27519 esac
27520 ;;
27521 *-*-solaris2*)
27522 gcc_cv_ld_as_needed=no
27523 ;;
27524 esac
27525
27526 fi
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27528 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27529 if test x"$gcc_cv_ld_as_needed" = xyes; then
27530
27531 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27532
27533
27534 cat >>confdefs.h <<_ACEOF
27535 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27536 _ACEOF
27537
27538
27539 cat >>confdefs.h <<_ACEOF
27540 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27541 _ACEOF
27542
27543 fi
27544
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27546 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27547 saved_LDFLAGS="$LDFLAGS"
27548 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27549 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27552 int main(void) {return 0;}
27553 _ACEOF
27554 if ac_fn_c_try_link "$LINENO"; then :
27555 gcc_cv_ld_clearcap=yes; break
27556 else
27557 gcc_cv_ld_clearcap=no
27558 fi
27559 rm -f core conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
27561 done
27562 LDFLAGS="$saved_LDFLAGS"
27563 if test "x$gcc_cv_ld_clearcap" = xyes; then
27564
27565 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27566
27567 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27568
27569 fi
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27571 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27572
27573 case "$target:$tm_file" in
27574 powerpc64-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27575 case "$target" in
27576 *le-*-linux*)
27577 emul_name="-melf64lppc"
27578 ;;
27579 *-*-linux* | *-*-netbsd*)
27580 emul_name="-melf64ppc"
27581 ;;
27582 *-*-freebsd*)
27583 emul_name="-melf64ppc_fbsd"
27584 ;;
27585 esac
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27587 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27588 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27589 $as_echo_n "(cached) " >&6
27590 else
27591 gcc_cv_ld_no_dot_syms=no
27592 if test x"$ld_is_gold" = xyes; then
27593 gcc_cv_ld_no_dot_syms=yes
27594 elif test $in_tree_ld = yes ; then
27595 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
27596 gcc_cv_ld_no_dot_syms=yes
27597 fi
27598 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27599 cat > conftest1.s <<EOF
27600 .text
27601 bl .foo
27602 EOF
27603 cat > conftest2.s <<EOF
27604 .section ".opd","aw"
27605 .align 3
27606 .globl foo
27607 .type foo,@function
27608 foo:
27609 .quad .LEfoo,.TOC.@tocbase,0
27610 .text
27611 .LEfoo:
27612 blr
27613 .size foo,.-.LEfoo
27614 EOF
27615 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27616 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27617 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27618 gcc_cv_ld_no_dot_syms=yes
27619 fi
27620 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27621 fi
27622
27623 fi
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27625 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27626 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27627
27628 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27629
27630 fi
27631
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27633 $as_echo_n "checking linker large toc support... " >&6; }
27634 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27635 $as_echo_n "(cached) " >&6
27636 else
27637 gcc_cv_ld_large_toc=no
27638 if test x"$ld_is_gold" = xyes; then
27639 gcc_cv_ld_large_toc=yes
27640 elif test $in_tree_ld = yes ; then
27641 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
27642 gcc_cv_ld_large_toc=yes
27643 fi
27644 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27645 cat > conftest.s <<EOF
27646 .section ".tbss","awT",@nobits
27647 .align 3
27648 ie0: .space 8
27649 .global _start
27650 .text
27651 _start:
27652 addis 9,13,ie0@got@tprel@ha
27653 ld 9,ie0@got@tprel@l(9)
27654 EOF
27655 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27656 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27657 gcc_cv_ld_large_toc=yes
27658 fi
27659 rm -f conftest conftest.o conftest.s
27660 fi
27661
27662 fi
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27664 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27665 if test x"$gcc_cv_ld_large_toc" = xyes; then
27666
27667 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27668
27669 fi
27670 ;;
27671 esac
27672
27673 case "$target" in
27674 *-*-aix*)
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27676 $as_echo_n "checking linker large toc support... " >&6; }
27677 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27678 $as_echo_n "(cached) " >&6
27679 else
27680 gcc_cv_ld_large_toc=no
27681 if test x$gcc_cv_as != x ; then
27682 cat > conftest.s <<EOF
27683 .toc
27684 LC..1:
27685 .tc a[TC],a[RW]
27686 .extern a[RW]
27687 .csect .text[PR]
27688 .largetoctest:
27689 addis 9,LC..1@u(2)
27690 ld 3,LC..1@l(9)
27691 EOF
27692 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27693 gcc_cv_ld_large_toc=yes
27694 fi
27695 rm -f conftest conftest.o conftest.s
27696 fi
27697
27698 fi
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27700 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27701 if test x"$gcc_cv_ld_large_toc" = xyes; then
27702
27703 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27704
27705 fi
27706 ;;
27707 esac
27708
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27710 $as_echo_n "checking linker --build-id support... " >&6; }
27711 if test "${gcc_cv_ld_buildid+set}" = set; then :
27712 $as_echo_n "(cached) " >&6
27713 else
27714 gcc_cv_ld_buildid=no
27715 if test $in_tree_ld = yes ; then
27716 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27717 "$gcc_cv_gld_minor_version" -ge 18 -o \
27718 "$gcc_cv_gld_major_version" -gt 2 \
27719 && test $in_tree_ld_is_elf = yes; then
27720 gcc_cv_ld_buildid=yes
27721 fi
27722 elif test x$gcc_cv_ld != x; then
27723 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27724 gcc_cv_ld_buildid=yes
27725 fi
27726 fi
27727 fi
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27729 $as_echo "$gcc_cv_ld_buildid" >&6; }
27730 if test x"$gcc_cv_ld_buildid" = xyes; then
27731
27732 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27733
27734 fi
27735
27736 # Check whether --enable-linker-build-id was given.
27737 if test "${enable_linker_build_id+set}" = set; then :
27738 enableval=$enable_linker_build_id;
27739 else
27740 enable_linker_build_id=no
27741 fi
27742
27743
27744 if test x"$enable_linker_build_id" = xyes; then
27745 if test x"$gcc_cv_ld_buildid" = xyes; then
27746
27747 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27748
27749 else
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27751 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27752 fi
27753 fi
27754
27755 # In binutils 2.21, GNU ld gained support for new emulations fully
27756 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27758 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27759 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27760 $as_echo_n "(cached) " >&6
27761 else
27762 gcc_cv_ld_sol2_emulation=no
27763 if test $in_tree_ld = yes ; then
27764 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27765 "$gcc_cv_gld_minor_version" -ge 21 -o \
27766 "$gcc_cv_gld_major_version" -gt 2 \
27767 && test $in_tree_ld_is_elf = yes; then
27768 gcc_cv_ld_sol2_emulation=yes
27769 fi
27770 elif test x$gcc_cv_ld != x; then
27771 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27772 grep _sol2 > /dev/null; then
27773 gcc_cv_ld_sol2_emulation=yes
27774 fi
27775 fi
27776 fi
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27778 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27779 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27780
27781 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27782
27783 fi
27784
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27786 $as_echo_n "checking linker --sysroot support... " >&6; }
27787 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27788 $as_echo_n "(cached) " >&6
27789 else
27790 gcc_cv_ld_sysroot=no
27791 if test $in_tree_ld = yes ; then
27792 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
27793 gcc_cv_ld_sysroot=yes
27794 fi
27795 elif test x$gcc_cv_ld != x; then
27796 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27797 gcc_cv_ld_sysroot=yes
27798 fi
27799 fi
27800 fi
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27802 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27803 if test x"$gcc_cv_ld_sysroot" = xyes; then
27804
27805 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27806
27807 fi
27808
27809 case $target in
27810 *-*-solaris2*)
27811 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
27813 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
27814 if test "${gcc_cv_solaris_crts+set}" = set; then :
27815 $as_echo_n "(cached) " >&6
27816 else
27817 gcc_cv_solaris_crts=no
27818 if test x$host != x$target; then
27819 if test "x$with_sysroot" = xyes; then
27820 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
27821 else
27822 target_sysroot="${with_sysroot}"
27823 fi
27824 fi
27825 target_libdir="$target_sysroot/usr/lib"
27826 # At the time they were added, gcrt1.o became a symlink for backwards
27827 # compatibility on x86, while crt1.o was added on sparc, so check for that.
27828 case $target in
27829 i?86-*-solaris2* | x86_64-*-solaris2*)
27830 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
27831 ;;
27832 sparc*-*-solaris2*)
27833 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
27834 ;;
27835 esac
27836 fi
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
27838 $as_echo "$gcc_cv_solaris_crts" >&6; }
27839 ;;
27840 esac
27841 if test x$gcc_cv_solaris_crts = xyes; then
27842
27843 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
27844
27845 fi
27846
27847 # Test for stack protector support in target C library.
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27849 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27850 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27851 $as_echo_n "(cached) " >&6
27852 else
27853 gcc_cv_libc_provides_ssp=no
27854 case "$target" in
27855 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27856 # glibc 2.4 and later provides __stack_chk_fail and
27857 # either __stack_chk_guard, or TLS access to stack guard canary.
27858
27859 if test $glibc_version_major -gt 2 \
27860 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27861 gcc_cv_libc_provides_ssp=yes
27862 else
27863
27864 if test -f $target_header_dir/features.h \
27865 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27866 $target_header_dir/features.h > /dev/null; then
27867 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27868 $target_header_dir/features.h > /dev/null && \
27869 test -f $target_header_dir/bits/uClibc_config.h && \
27870 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27871 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27872 gcc_cv_libc_provides_ssp=yes
27873 fi
27874 # all versions of Bionic support stack protector
27875 elif test -f $target_header_dir/sys/cdefs.h \
27876 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27877 $target_header_dir/sys/cdefs.h > /dev/null; then
27878 gcc_cv_libc_provides_ssp=yes
27879 fi
27880 fi
27881 ;;
27882 *-*-gnu*)
27883 # Avoid complicated tests (see
27884 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27885 # simply assert that glibc does provide this, which is true for all
27886 # realistically usable GNU/Hurd configurations.
27887 gcc_cv_libc_provides_ssp=yes;;
27888 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
27889 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27890 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27891 gcc_cv_libc_provides_ssp=yes
27892 else
27893 echo "no __stack_chk_fail on this target"
27894 fi
27895
27896 ;;
27897 *) gcc_cv_libc_provides_ssp=no ;;
27898 esac
27899 fi
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27901 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27902
27903 if test x$gcc_cv_libc_provides_ssp = xyes; then
27904
27905 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27906
27907 fi
27908
27909 # Test for <sys/sdt.h> on the target.
27910
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27912 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27913 have_sys_sdt_h=no
27914 if test -f $target_header_dir/sys/sdt.h; then
27915 have_sys_sdt_h=yes
27916
27917 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27918
27919 fi
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27921 $as_echo "$have_sys_sdt_h" >&6; }
27922
27923 # Check if TFmode long double should be used by default or not.
27924 # Some glibc targets used DFmode long double, but with glibc 2.4
27925 # and later they can use TFmode.
27926 case "$target" in
27927 powerpc*-*-linux* | \
27928 sparc*-*-linux* | \
27929 s390*-*-linux* | \
27930 alpha*-*-linux*)
27931
27932 # Check whether --with-long-double-128 was given.
27933 if test "${with_long_double_128+set}" = set; then :
27934 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27935 else
27936
27937 if test $glibc_version_major -gt 2 \
27938 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27939 gcc_cv_target_ldbl128=yes
27940 else
27941
27942 gcc_cv_target_ldbl128=no
27943 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27944 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27945 && gcc_cv_target_ldbl128=yes
27946
27947 fi
27948 fi
27949
27950 ;;
27951 esac
27952 if test x$gcc_cv_target_ldbl128 = xyes; then
27953
27954 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27955
27956 fi
27957
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27959 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27960 gcc_cv_target_dl_iterate_phdr=unknown
27961 case "$target" in
27962 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27963 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27964 # libdl there, both complicating its use and breaking compatibility
27965 # between Solaris 10 updates.
27966 *-*-solaris2.1[1-9]*)
27967 # <link.h> needs both a dl_iterate_phdr declaration and support for
27968 # compilation with largefile support.
27969 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27970 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27971 gcc_cv_target_dl_iterate_phdr=yes
27972 else
27973 gcc_cv_target_dl_iterate_phdr=no
27974 fi
27975 ;;
27976 *-*-dragonfly* | *-*-freebsd*)
27977 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27978 gcc_cv_target_dl_iterate_phdr=yes
27979 else
27980 gcc_cv_target_dl_iterate_phdr=no
27981 fi
27982 ;;
27983 esac
27984
27985 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27986
27987 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27988
27989 fi
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27991 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27992
27993 # We no longer support different GC mechanisms. Emit an error if
27994 # the user configures with --with-gc.
27995
27996 # Check whether --with-gc was given.
27997 if test "${with_gc+set}" = set; then :
27998 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27999 fi
28000
28001
28002 # Libraries to use on the host. This will normally be set by the top
28003 # level Makefile. Here we simply capture the value for our Makefile.
28004 if test -z "${HOST_LIBS+set}"; then
28005 HOST_LIBS=
28006 fi
28007
28008
28009 # Use the system's zlib library.
28010 zlibdir=-L../zlib
28011 zlibinc="-I\$(srcdir)/../zlib"
28012
28013 # Check whether --with-system-zlib was given.
28014 if test "${with_system_zlib+set}" = set; then :
28015 withval=$with_system_zlib; zlibdir=
28016 zlibinc=
28017
28018 fi
28019
28020
28021
28022
28023
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28025 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28026 # Check whether --enable-maintainer-mode was given.
28027 if test "${enable_maintainer_mode+set}" = set; then :
28028 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28029 else
28030 maintainer_mode=no
28031 fi
28032
28033
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28035 $as_echo "$maintainer_mode" >&6; }
28036
28037 if test "$maintainer_mode" = "yes"; then
28038 MAINT=''
28039 else
28040 MAINT='#'
28041 fi
28042
28043
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28045 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28046 # Check whether --enable-link-mutex was given.
28047 if test "${enable_link_mutex+set}" = set; then :
28048 enableval=$enable_link_mutex; do_link_mutex=$enableval
28049 else
28050 do_link_mutex=no
28051 fi
28052
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28054 $as_echo "$do_link_mutex" >&6; }
28055
28056 if test "$do_link_mutex" = "yes"; then
28057 DO_LINK_MUTEX=true
28058 else
28059 DO_LINK_MUTEX=false
28060 fi
28061
28062
28063 # --------------
28064 # Language hooks
28065 # --------------
28066
28067 # Make empty files to contain the specs and options for each language.
28068 # Then add #include lines to for a compiler that has specs and/or options.
28069
28070 subdirs=
28071 lang_opt_files=
28072 lang_specs_files=
28073 lang_tree_files=
28074 # These (without "all_") are set in each config-lang.in.
28075 # `language' must be a single word so is spelled singularly.
28076 all_languages=
28077 all_compilers=
28078 all_outputs='Makefile'
28079 # List of language makefile fragments.
28080 all_lang_makefrags=
28081 # Additional files for gengtype
28082 all_gtfiles="$target_gtfiles"
28083
28084 # These are the languages that are set in --enable-languages,
28085 # and are available in the GCC tree.
28086 all_selected_languages=
28087
28088 # Add the language fragments.
28089 # Languages are added via two mechanisms. Some information must be
28090 # recorded in makefile variables, these are defined in config-lang.in.
28091 # We accumulate them and plug them into the main Makefile.
28092 # The other mechanism is a set of hooks for each of the main targets
28093 # like `clean', `install', etc.
28094
28095 language_hooks="Make-hooks"
28096
28097 for lang in ${srcdir}/*/config-lang.in
28098 do
28099 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28100
28101 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28102 if test "x$lang_alias" = x
28103 then
28104 echo "$lang doesn't set \$language." 1>&2
28105 exit 1
28106 fi
28107 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28108 subdirs="$subdirs $subdir"
28109
28110 # $gcc_subdir is where the gcc integration files are to be found
28111 # for a language, both for internal compiler purposes (compiler
28112 # sources implementing front-end to GCC tree converters), and for
28113 # build infrastructure purposes (Make-lang.in, etc.)
28114 #
28115 # This will be <subdir> (relative to $srcdir) if a line like
28116 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28117 # is found in <langdir>/config-lang.in, and will remain <langdir>
28118 # otherwise.
28119 #
28120 # Except for the language alias (fetched above), the regular
28121 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28122 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28123 # only this and the language alias.
28124
28125 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28126 if [ "$gcc_subdir" = "" ]; then
28127 gcc_subdir="$subdir"
28128 fi
28129
28130 case ",$enable_languages," in
28131 *,$lang_alias,*)
28132 all_selected_languages="$all_selected_languages $lang_alias"
28133 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28134 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28135 fi
28136 ;;
28137 esac
28138
28139 language=
28140 boot_language=
28141 compilers=
28142 outputs=
28143 gtfiles=
28144 subdir_requires=
28145 . ${srcdir}/$gcc_subdir/config-lang.in
28146 if test "x$language" = x
28147 then
28148 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28149 exit 1
28150 fi
28151
28152 ok=:
28153 case ",$enable_languages," in
28154 *,$lang_alias,*) ;;
28155 *)
28156 for i in $subdir_requires; do
28157 test -f "${srcdir}/$i/config-lang.in" && continue
28158 ok=false
28159 break
28160 done
28161 ;;
28162 esac
28163 $ok || continue
28164
28165 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28166 if test -f $srcdir/$gcc_subdir/lang.opt; then
28167 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28168 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28169 fi
28170 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28171 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28172 fi
28173 all_languages="$all_languages $language"
28174 all_compilers="$all_compilers $compilers"
28175 all_outputs="$all_outputs $outputs"
28176 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28177 case ",$enable_languages," in
28178 *,lto,*)
28179
28180 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28181
28182 enable_lto=yes
28183
28184 ;;
28185 *) ;;
28186 esac
28187 done
28188
28189 check_languages=
28190 for language in $all_selected_languages
28191 do
28192 check_languages="$check_languages check-$language"
28193 done
28194
28195 # We link each language in with a set of hooks, reached indirectly via
28196 # lang.${target}. Only do so for selected languages.
28197
28198 rm -f Make-hooks
28199 touch Make-hooks
28200 target_list="all.cross start.encap rest.encap tags \
28201 install-common install-man install-info install-pdf install-html dvi \
28202 pdf html uninstall info man srcextra srcman srcinfo \
28203 mostlyclean clean distclean maintainer-clean install-plugin"
28204
28205 for t in $target_list
28206 do
28207 x=
28208 for lang in $all_selected_languages
28209 do
28210 x="$x $lang.$t"
28211 done
28212 echo "lang.$t: $x" >> Make-hooks
28213 done
28214
28215 # --------
28216 # Option include files
28217 # --------
28218
28219 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28220 option_includes="option-includes.mk"
28221
28222
28223 # --------
28224 # UNSORTED
28225 # --------
28226
28227 # Create .gdbinit.
28228
28229 echo "dir ." > .gdbinit
28230 echo "dir ${srcdir}" >> .gdbinit
28231 if test x$gdb_needs_out_file_path = xyes
28232 then
28233 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28234 fi
28235 if test "x$subdirs" != x; then
28236 for s in $subdirs
28237 do
28238 echo "dir ${srcdir}/$s" >> .gdbinit
28239 done
28240 fi
28241 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28242 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28243
28244 # Put a breakpoint on __asan_report_error to help with debugging buffer
28245 # overflow.
28246 case "$CFLAGS" in
28247 *-fsanitize=address*)
28248 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28249 ;;
28250 esac
28251
28252 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28253
28254
28255
28256 # Find a directory in which to install a shared libgcc.
28257
28258 # Check whether --enable-version-specific-runtime-libs was given.
28259 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28260 enableval=$enable_version_specific_runtime_libs;
28261 fi
28262
28263
28264 # Substitute configuration variables
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327 # Echo link setup.
28328 if test x${build} = x${host} ; then
28329 if test x${host} = x${target} ; then
28330 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28331 else
28332 echo "Links are now set up to build a cross-compiler" 1>&2
28333 echo " from ${host} to ${target}." 1>&2
28334 fi
28335 else
28336 if test x${host} = x${target} ; then
28337 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28338 echo " for ${target}." 1>&2
28339 else
28340 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28341 echo " from ${host} to ${target}." 1>&2
28342 fi
28343 fi
28344
28345
28346
28347
28348
28349
28350 if test "x${ISLLIBS}" != "x" ; then
28351
28352 $as_echo "#define HAVE_isl 1" >>confdefs.h
28353
28354 fi
28355
28356 # Check whether isl_schedule_constraints_compute_schedule is available;
28357 # it's new in ISL-0.13.
28358 # Check whether isl_options_set_schedule_serialize_sccs is available;
28359 # it's new in ISL-0.15.
28360 if test "x${ISLLIBS}" != "x" ; then
28361 saved_CFLAGS="$CFLAGS"
28362 CFLAGS="$CFLAGS $ISLINC"
28363 saved_LIBS="$LIBS"
28364 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28365
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28367 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h. */
28370 #include <isl/schedule.h>
28371 int
28372 main ()
28373 {
28374 isl_schedule_constraints_compute_schedule (NULL);
28375 ;
28376 return 0;
28377 }
28378 _ACEOF
28379 if ac_fn_c_try_link "$LINENO"; then :
28380 ac_has_isl_schedule_constraints_compute_schedule=yes
28381 else
28382 ac_has_isl_schedule_constraints_compute_schedule=no
28383 fi
28384 rm -f core conftest.err conftest.$ac_objext \
28385 conftest$ac_exeext conftest.$ac_ext
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28387 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28388
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28390 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28392 /* end confdefs.h. */
28393 #include <isl/schedule.h>
28394 int
28395 main ()
28396 {
28397 isl_options_set_schedule_serialize_sccs (NULL, 0);
28398 ;
28399 return 0;
28400 }
28401 _ACEOF
28402 if ac_fn_c_try_link "$LINENO"; then :
28403 ac_has_isl_options_set_schedule_serialize_sccs=yes
28404 else
28405 ac_has_isl_options_set_schedule_serialize_sccs=no
28406 fi
28407 rm -f core conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28410 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28411
28412 LIBS="$saved_LIBS"
28413 CFLAGS="$saved_CFLAGS"
28414
28415 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28416
28417 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28418
28419 fi
28420
28421 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28422
28423 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28424
28425 fi
28426 fi
28427
28428 # Check for plugin support
28429 # Check whether --enable-plugin was given.
28430 if test "${enable_plugin+set}" = set; then :
28431 enableval=$enable_plugin; enable_plugin=$enableval
28432 else
28433 enable_plugin=yes; default_plugin=yes
28434 fi
28435
28436
28437 pluginlibs=
28438
28439 case "${host}" in
28440 *-*-darwin*)
28441 if test x$build = x$host; then
28442 export_sym_check="nm${exeext} -g"
28443 elif test x$host = x$target; then
28444 export_sym_check="$gcc_cv_nm -g"
28445 else
28446 export_sym_check=
28447 fi
28448 ;;
28449 *)
28450 if test x$build = x$host; then
28451 export_sym_check="objdump${exeext} -T"
28452 elif test x$host = x$target; then
28453 export_sym_check="$gcc_cv_objdump -T"
28454 else
28455 export_sym_check=
28456 fi
28457 ;;
28458 esac
28459
28460 if test x"$enable_plugin" = x"yes"; then
28461
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28463 $as_echo_n "checking for exported symbols... " >&6; }
28464 if test "x$export_sym_check" != x; then
28465 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28466 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28467 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28468 : # No need to use a flag
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28470 $as_echo "yes" >&6; }
28471 else
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28475 $as_echo_n "checking for -rdynamic... " >&6; }
28476 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28477 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28478 plugin_rdynamic=yes
28479 pluginlibs="-rdynamic"
28480 else
28481 plugin_rdynamic=no
28482 enable_plugin=no
28483 fi
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28485 $as_echo "$plugin_rdynamic" >&6; }
28486 fi
28487 else
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28489 $as_echo "unable to check" >&6; }
28490 fi
28491
28492 # Check -ldl
28493 saved_LIBS="$LIBS"
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28495 $as_echo_n "checking for library containing dlopen... " >&6; }
28496 if test "${ac_cv_search_dlopen+set}" = set; then :
28497 $as_echo_n "(cached) " >&6
28498 else
28499 ac_func_search_save_LIBS=$LIBS
28500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28501 /* end confdefs.h. */
28502
28503 /* Override any GCC internal prototype to avoid an error.
28504 Use char because int might match the return type of a GCC
28505 builtin and then its argument prototype would still apply. */
28506 #ifdef __cplusplus
28507 extern "C"
28508 #endif
28509 char dlopen ();
28510 int
28511 main ()
28512 {
28513 return dlopen ();
28514 ;
28515 return 0;
28516 }
28517 _ACEOF
28518 for ac_lib in '' dl; do
28519 if test -z "$ac_lib"; then
28520 ac_res="none required"
28521 else
28522 ac_res=-l$ac_lib
28523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28524 fi
28525 if ac_fn_c_try_link "$LINENO"; then :
28526 ac_cv_search_dlopen=$ac_res
28527 fi
28528 rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext
28530 if test "${ac_cv_search_dlopen+set}" = set; then :
28531 break
28532 fi
28533 done
28534 if test "${ac_cv_search_dlopen+set}" = set; then :
28535
28536 else
28537 ac_cv_search_dlopen=no
28538 fi
28539 rm conftest.$ac_ext
28540 LIBS=$ac_func_search_save_LIBS
28541 fi
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28543 $as_echo "$ac_cv_search_dlopen" >&6; }
28544 ac_res=$ac_cv_search_dlopen
28545 if test "$ac_res" != no; then :
28546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28547
28548 fi
28549
28550 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28551 pluginlibs="$pluginlibs -ldl"
28552 fi
28553 LIBS="$saved_LIBS"
28554
28555 # Check that we can build shared objects with -fPIC -shared
28556 saved_LDFLAGS="$LDFLAGS"
28557 saved_CFLAGS="$CFLAGS"
28558 case "${host}" in
28559 *-*-darwin*)
28560 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28561 CFLAGS="$CFLAGS -fPIC"
28562 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28563 ;;
28564 *)
28565 CFLAGS="$CFLAGS -fPIC"
28566 LDFLAGS="$LDFLAGS -fPIC -shared"
28567 ;;
28568 esac
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28570 $as_echo_n "checking for -fPIC -shared... " >&6; }
28571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572 /* end confdefs.h. */
28573 extern int X;
28574 int
28575 main ()
28576 {
28577 return X == 0;
28578 ;
28579 return 0;
28580 }
28581 _ACEOF
28582 if ac_fn_c_try_link "$LINENO"; then :
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28584 $as_echo "yes" >&6; }; have_pic_shared=yes
28585 else
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28587 $as_echo "no" >&6; }; have_pic_shared=no
28588 fi
28589 rm -f core conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
28591 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28592 pluginlibs=
28593 enable_plugin=no
28594 fi
28595 LDFLAGS="$saved_LDFLAGS"
28596 CFLAGS="$saved_CFLAGS"
28597
28598 # If plugin support had been requested but not available, fail.
28599 if test x"$enable_plugin" = x"no" ; then
28600 if test x"$default_plugin" != x"yes"; then
28601 as_fn_error "
28602 Building GCC with plugin support requires a host that supports
28603 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28604 fi
28605 fi
28606 fi
28607
28608
28609
28610 if test x"$enable_plugin" = x"yes"; then
28611
28612 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28613
28614 fi
28615
28616
28617 # Enable --enable-host-shared
28618 # Check whether --enable-host-shared was given.
28619 if test "${enable_host_shared+set}" = set; then :
28620 enableval=$enable_host_shared; PICFLAG=-fPIC
28621 else
28622 PICFLAG=
28623 fi
28624
28625
28626
28627
28628
28629 # Check whether --enable-libquadmath-support was given.
28630 if test "${enable_libquadmath_support+set}" = set; then :
28631 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28632 else
28633 ENABLE_LIBQUADMATH_SUPPORT=yes
28634 fi
28635
28636 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28637
28638 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28639
28640 fi
28641
28642
28643 # Specify what hash style to use by default.
28644
28645 # Check whether --with-linker-hash-style was given.
28646 if test "${with_linker_hash_style+set}" = set; then :
28647 withval=$with_linker_hash_style; case x"$withval" in
28648 xsysv)
28649 LINKER_HASH_STYLE=sysv
28650 ;;
28651 xgnu)
28652 LINKER_HASH_STYLE=gnu
28653 ;;
28654 xboth)
28655 LINKER_HASH_STYLE=both
28656 ;;
28657 *)
28658 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28659 ;;
28660 esac
28661 else
28662 LINKER_HASH_STYLE=''
28663 fi
28664
28665 if test x"${LINKER_HASH_STYLE}" != x; then
28666
28667 cat >>confdefs.h <<_ACEOF
28668 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28669 _ACEOF
28670
28671 fi
28672
28673 # Specify what should be the default of -fdiagnostics-color option.
28674
28675 # Check whether --with-diagnostics-color was given.
28676 if test "${with_diagnostics_color+set}" = set; then :
28677 withval=$with_diagnostics_color; case x"$withval" in
28678 xnever)
28679 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28680 ;;
28681 xauto)
28682 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28683 ;;
28684 xauto-if-env)
28685 DIAGNOSTICS_COLOR_DEFAULT=-1
28686 ;;
28687 xalways)
28688 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28689 ;;
28690 *)
28691 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28692 ;;
28693 esac
28694 else
28695 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28696 fi
28697
28698
28699 cat >>confdefs.h <<_ACEOF
28700 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28701 _ACEOF
28702
28703
28704 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28705 # of jit/jit-playback.c.
28706 cat > gcc-driver-name.h <<EOF
28707 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28708 EOF
28709
28710 # Configure the subdirectories
28711 # AC_CONFIG_SUBDIRS($subdirs)
28712
28713 # Create the Makefile
28714 # and configure language subdirectories
28715 ac_config_files="$ac_config_files $all_outputs"
28716
28717
28718 ac_config_commands="$ac_config_commands default"
28719
28720 cat >confcache <<\_ACEOF
28721 # This file is a shell script that caches the results of configure
28722 # tests run on this system so they can be shared between configure
28723 # scripts and configure runs, see configure's option --config-cache.
28724 # It is not useful on other systems. If it contains results you don't
28725 # want to keep, you may remove or edit it.
28726 #
28727 # config.status only pays attention to the cache file if you give it
28728 # the --recheck option to rerun configure.
28729 #
28730 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28732 # following values.
28733
28734 _ACEOF
28735
28736 # The following way of writing the cache mishandles newlines in values,
28737 # but we know of no workaround that is simple, portable, and efficient.
28738 # So, we kill variables containing newlines.
28739 # Ultrix sh set writes to stderr and can't be redirected directly,
28740 # and sets the high bit in the cache file unless we assign to the vars.
28741 (
28742 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28743 eval ac_val=\$$ac_var
28744 case $ac_val in #(
28745 *${as_nl}*)
28746 case $ac_var in #(
28747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28749 esac
28750 case $ac_var in #(
28751 _ | IFS | as_nl) ;; #(
28752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28753 *) { eval $ac_var=; unset $ac_var;} ;;
28754 esac ;;
28755 esac
28756 done
28757
28758 (set) 2>&1 |
28759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28760 *${as_nl}ac_space=\ *)
28761 # `set' does not quote correctly, so add quotes: double-quote
28762 # substitution turns \\\\ into \\, and sed turns \\ into \.
28763 sed -n \
28764 "s/'/'\\\\''/g;
28765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28766 ;; #(
28767 *)
28768 # `set' quotes correctly as required by POSIX, so do not add quotes.
28769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28770 ;;
28771 esac |
28772 sort
28773 ) |
28774 sed '
28775 /^ac_cv_env_/b end
28776 t clear
28777 :clear
28778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28779 t end
28780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28781 :end' >>confcache
28782 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28783 if test -w "$cache_file"; then
28784 test "x$cache_file" != "x/dev/null" &&
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28786 $as_echo "$as_me: updating cache $cache_file" >&6;}
28787 cat confcache >$cache_file
28788 else
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28790 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28791 fi
28792 fi
28793 rm -f confcache
28794
28795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28796 # Let make expand exec_prefix.
28797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28798
28799 DEFS=-DHAVE_CONFIG_H
28800
28801 ac_libobjs=
28802 ac_ltlibobjs=
28803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28804 # 1. Remove the extension, and $U if already installed.
28805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28806 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28808 # will be set to the directory where LIBOBJS objects are built.
28809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28811 done
28812 LIBOBJS=$ac_libobjs
28813
28814 LTLIBOBJS=$ac_ltlibobjs
28815
28816
28817
28818
28819 : ${CONFIG_STATUS=./config.status}
28820 ac_write_fail=0
28821 ac_clean_files_save=$ac_clean_files
28822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28825 as_write_fail=0
28826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28827 #! $SHELL
28828 # Generated by $as_me.
28829 # Run this file to recreate the current configuration.
28830 # Compiler output produced by configure, useful for debugging
28831 # configure, is in config.log if it exists.
28832
28833 debug=false
28834 ac_cs_recheck=false
28835 ac_cs_silent=false
28836
28837 SHELL=\${CONFIG_SHELL-$SHELL}
28838 export SHELL
28839 _ASEOF
28840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28841 ## -------------------- ##
28842 ## M4sh Initialization. ##
28843 ## -------------------- ##
28844
28845 # Be more Bourne compatible
28846 DUALCASE=1; export DUALCASE # for MKS sh
28847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28848 emulate sh
28849 NULLCMD=:
28850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28851 # is contrary to our usage. Disable this feature.
28852 alias -g '${1+"$@"}'='"$@"'
28853 setopt NO_GLOB_SUBST
28854 else
28855 case `(set -o) 2>/dev/null` in #(
28856 *posix*) :
28857 set -o posix ;; #(
28858 *) :
28859 ;;
28860 esac
28861 fi
28862
28863
28864 as_nl='
28865 '
28866 export as_nl
28867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28871 # Prefer a ksh shell builtin over an external printf program on Solaris,
28872 # but without wasting forks for bash or zsh.
28873 if test -z "$BASH_VERSION$ZSH_VERSION" \
28874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28875 as_echo='print -r --'
28876 as_echo_n='print -rn --'
28877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28878 as_echo='printf %s\n'
28879 as_echo_n='printf %s'
28880 else
28881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28883 as_echo_n='/usr/ucb/echo -n'
28884 else
28885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28886 as_echo_n_body='eval
28887 arg=$1;
28888 case $arg in #(
28889 *"$as_nl"*)
28890 expr "X$arg" : "X\\(.*\\)$as_nl";
28891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28892 esac;
28893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28894 '
28895 export as_echo_n_body
28896 as_echo_n='sh -c $as_echo_n_body as_echo'
28897 fi
28898 export as_echo_body
28899 as_echo='sh -c $as_echo_body as_echo'
28900 fi
28901
28902 # The user is always right.
28903 if test "${PATH_SEPARATOR+set}" != set; then
28904 PATH_SEPARATOR=:
28905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28907 PATH_SEPARATOR=';'
28908 }
28909 fi
28910
28911
28912 # IFS
28913 # We need space, tab and new line, in precisely that order. Quoting is
28914 # there to prevent editors from complaining about space-tab.
28915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28916 # splitting by setting IFS to empty value.)
28917 IFS=" "" $as_nl"
28918
28919 # Find who we are. Look in the path if we contain no directory separator.
28920 case $0 in #((
28921 *[\\/]* ) as_myself=$0 ;;
28922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28923 for as_dir in $PATH
28924 do
28925 IFS=$as_save_IFS
28926 test -z "$as_dir" && as_dir=.
28927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28928 done
28929 IFS=$as_save_IFS
28930
28931 ;;
28932 esac
28933 # We did not find ourselves, most probably we were run as `sh COMMAND'
28934 # in which case we are not to be found in the path.
28935 if test "x$as_myself" = x; then
28936 as_myself=$0
28937 fi
28938 if test ! -f "$as_myself"; then
28939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28940 exit 1
28941 fi
28942
28943 # Unset variables that we do not need and which cause bugs (e.g. in
28944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28945 # suppresses any "Segmentation fault" message there. '((' could
28946 # trigger a bug in pdksh 5.2.14.
28947 for as_var in BASH_ENV ENV MAIL MAILPATH
28948 do eval test x\${$as_var+set} = xset \
28949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28950 done
28951 PS1='$ '
28952 PS2='> '
28953 PS4='+ '
28954
28955 # NLS nuisances.
28956 LC_ALL=C
28957 export LC_ALL
28958 LANGUAGE=C
28959 export LANGUAGE
28960
28961 # CDPATH.
28962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28963
28964
28965 # as_fn_error ERROR [LINENO LOG_FD]
28966 # ---------------------------------
28967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28969 # script with status $?, using 1 if that was 0.
28970 as_fn_error ()
28971 {
28972 as_status=$?; test $as_status -eq 0 && as_status=1
28973 if test "$3"; then
28974 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28976 fi
28977 $as_echo "$as_me: error: $1" >&2
28978 as_fn_exit $as_status
28979 } # as_fn_error
28980
28981
28982 # as_fn_set_status STATUS
28983 # -----------------------
28984 # Set $? to STATUS, without forking.
28985 as_fn_set_status ()
28986 {
28987 return $1
28988 } # as_fn_set_status
28989
28990 # as_fn_exit STATUS
28991 # -----------------
28992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28993 as_fn_exit ()
28994 {
28995 set +e
28996 as_fn_set_status $1
28997 exit $1
28998 } # as_fn_exit
28999
29000 # as_fn_unset VAR
29001 # ---------------
29002 # Portably unset VAR.
29003 as_fn_unset ()
29004 {
29005 { eval $1=; unset $1;}
29006 }
29007 as_unset=as_fn_unset
29008 # as_fn_append VAR VALUE
29009 # ----------------------
29010 # Append the text in VALUE to the end of the definition contained in VAR. Take
29011 # advantage of any shell optimizations that allow amortized linear growth over
29012 # repeated appends, instead of the typical quadratic growth present in naive
29013 # implementations.
29014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29015 eval 'as_fn_append ()
29016 {
29017 eval $1+=\$2
29018 }'
29019 else
29020 as_fn_append ()
29021 {
29022 eval $1=\$$1\$2
29023 }
29024 fi # as_fn_append
29025
29026 # as_fn_arith ARG...
29027 # ------------------
29028 # Perform arithmetic evaluation on the ARGs, and store the result in the
29029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29030 # must be portable across $(()) and expr.
29031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29032 eval 'as_fn_arith ()
29033 {
29034 as_val=$(( $* ))
29035 }'
29036 else
29037 as_fn_arith ()
29038 {
29039 as_val=`expr "$@" || test $? -eq 1`
29040 }
29041 fi # as_fn_arith
29042
29043
29044 if expr a : '\(a\)' >/dev/null 2>&1 &&
29045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29046 as_expr=expr
29047 else
29048 as_expr=false
29049 fi
29050
29051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29052 as_basename=basename
29053 else
29054 as_basename=false
29055 fi
29056
29057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29058 as_dirname=dirname
29059 else
29060 as_dirname=false
29061 fi
29062
29063 as_me=`$as_basename -- "$0" ||
29064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29065 X"$0" : 'X\(//\)$' \| \
29066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29067 $as_echo X/"$0" |
29068 sed '/^.*\/\([^/][^/]*\)\/*$/{
29069 s//\1/
29070 q
29071 }
29072 /^X\/\(\/\/\)$/{
29073 s//\1/
29074 q
29075 }
29076 /^X\/\(\/\).*/{
29077 s//\1/
29078 q
29079 }
29080 s/.*/./; q'`
29081
29082 # Avoid depending upon Character Ranges.
29083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29086 as_cr_digits='0123456789'
29087 as_cr_alnum=$as_cr_Letters$as_cr_digits
29088
29089 ECHO_C= ECHO_N= ECHO_T=
29090 case `echo -n x` in #(((((
29091 -n*)
29092 case `echo 'xy\c'` in
29093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29094 xy) ECHO_C='\c';;
29095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29096 ECHO_T=' ';;
29097 esac;;
29098 *)
29099 ECHO_N='-n';;
29100 esac
29101
29102 rm -f conf$$ conf$$.exe conf$$.file
29103 if test -d conf$$.dir; then
29104 rm -f conf$$.dir/conf$$.file
29105 else
29106 rm -f conf$$.dir
29107 mkdir conf$$.dir 2>/dev/null
29108 fi
29109 if (echo >conf$$.file) 2>/dev/null; then
29110 if ln -s conf$$.file conf$$ 2>/dev/null; then
29111 as_ln_s='ln -s'
29112 # ... but there are two gotchas:
29113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29115 # In both cases, we have to default to `cp -p'.
29116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29117 as_ln_s='cp -p'
29118 elif ln conf$$.file conf$$ 2>/dev/null; then
29119 as_ln_s=ln
29120 else
29121 as_ln_s='cp -p'
29122 fi
29123 else
29124 as_ln_s='cp -p'
29125 fi
29126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29127 rmdir conf$$.dir 2>/dev/null
29128
29129
29130 # as_fn_mkdir_p
29131 # -------------
29132 # Create "$as_dir" as a directory, including parents if necessary.
29133 as_fn_mkdir_p ()
29134 {
29135
29136 case $as_dir in #(
29137 -*) as_dir=./$as_dir;;
29138 esac
29139 test -d "$as_dir" || eval $as_mkdir_p || {
29140 as_dirs=
29141 while :; do
29142 case $as_dir in #(
29143 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29144 *) as_qdir=$as_dir;;
29145 esac
29146 as_dirs="'$as_qdir' $as_dirs"
29147 as_dir=`$as_dirname -- "$as_dir" ||
29148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29149 X"$as_dir" : 'X\(//\)[^/]' \| \
29150 X"$as_dir" : 'X\(//\)$' \| \
29151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29152 $as_echo X"$as_dir" |
29153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29154 s//\1/
29155 q
29156 }
29157 /^X\(\/\/\)[^/].*/{
29158 s//\1/
29159 q
29160 }
29161 /^X\(\/\/\)$/{
29162 s//\1/
29163 q
29164 }
29165 /^X\(\/\).*/{
29166 s//\1/
29167 q
29168 }
29169 s/.*/./; q'`
29170 test -d "$as_dir" && break
29171 done
29172 test -z "$as_dirs" || eval "mkdir $as_dirs"
29173 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29174
29175
29176 } # as_fn_mkdir_p
29177 if mkdir -p . 2>/dev/null; then
29178 as_mkdir_p='mkdir -p "$as_dir"'
29179 else
29180 test -d ./-p && rmdir ./-p
29181 as_mkdir_p=false
29182 fi
29183
29184 if test -x / >/dev/null 2>&1; then
29185 as_test_x='test -x'
29186 else
29187 if ls -dL / >/dev/null 2>&1; then
29188 as_ls_L_option=L
29189 else
29190 as_ls_L_option=
29191 fi
29192 as_test_x='
29193 eval sh -c '\''
29194 if test -d "$1"; then
29195 test -d "$1/.";
29196 else
29197 case $1 in #(
29198 -*)set "./$1";;
29199 esac;
29200 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29201 ???[sx]*):;;*)false;;esac;fi
29202 '\'' sh
29203 '
29204 fi
29205 as_executable_p=$as_test_x
29206
29207 # Sed expression to map a string onto a valid CPP name.
29208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29209
29210 # Sed expression to map a string onto a valid variable name.
29211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29212
29213
29214 exec 6>&1
29215 ## ----------------------------------- ##
29216 ## Main body of $CONFIG_STATUS script. ##
29217 ## ----------------------------------- ##
29218 _ASEOF
29219 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29220
29221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29222 # Save the log message, to keep $0 and so on meaningful, and to
29223 # report actual input values of CONFIG_FILES etc. instead of their
29224 # values after options handling.
29225 ac_log="
29226 This file was extended by $as_me, which was
29227 generated by GNU Autoconf 2.64. Invocation command line was
29228
29229 CONFIG_FILES = $CONFIG_FILES
29230 CONFIG_HEADERS = $CONFIG_HEADERS
29231 CONFIG_LINKS = $CONFIG_LINKS
29232 CONFIG_COMMANDS = $CONFIG_COMMANDS
29233 $ $0 $@
29234
29235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29236 "
29237
29238 _ACEOF
29239
29240 case $ac_config_files in *"
29241 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29242 esac
29243
29244 case $ac_config_headers in *"
29245 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29246 esac
29247
29248
29249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29250 # Files that config.status was made for.
29251 config_files="$ac_config_files"
29252 config_headers="$ac_config_headers"
29253 config_links="$ac_config_links"
29254 config_commands="$ac_config_commands"
29255
29256 _ACEOF
29257
29258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29259 ac_cs_usage="\
29260 \`$as_me' instantiates files and other configuration actions
29261 from templates according to the current configuration. Unless the files
29262 and actions are specified as TAGs, all are instantiated by default.
29263
29264 Usage: $0 [OPTION]... [TAG]...
29265
29266 -h, --help print this help, then exit
29267 -V, --version print version number and configuration settings, then exit
29268 -q, --quiet, --silent
29269 do not print progress messages
29270 -d, --debug don't remove temporary files
29271 --recheck update $as_me by reconfiguring in the same conditions
29272 --file=FILE[:TEMPLATE]
29273 instantiate the configuration file FILE
29274 --header=FILE[:TEMPLATE]
29275 instantiate the configuration header FILE
29276
29277 Configuration files:
29278 $config_files
29279
29280 Configuration headers:
29281 $config_headers
29282
29283 Configuration links:
29284 $config_links
29285
29286 Configuration commands:
29287 $config_commands
29288
29289 Report bugs to the package provider."
29290
29291 _ACEOF
29292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29293 ac_cs_version="\\
29294 config.status
29295 configured by $0, generated by GNU Autoconf 2.64,
29296 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29297
29298 Copyright (C) 2009 Free Software Foundation, Inc.
29299 This config.status script is free software; the Free Software Foundation
29300 gives unlimited permission to copy, distribute and modify it."
29301
29302 ac_pwd='$ac_pwd'
29303 srcdir='$srcdir'
29304 AWK='$AWK'
29305 test -n "\$AWK" || AWK=awk
29306 _ACEOF
29307
29308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29309 # The default lists apply if the user does not specify any file.
29310 ac_need_defaults=:
29311 while test $# != 0
29312 do
29313 case $1 in
29314 --*=*)
29315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29317 ac_shift=:
29318 ;;
29319 *)
29320 ac_option=$1
29321 ac_optarg=$2
29322 ac_shift=shift
29323 ;;
29324 esac
29325
29326 case $ac_option in
29327 # Handling of the options.
29328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29329 ac_cs_recheck=: ;;
29330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29331 $as_echo "$ac_cs_version"; exit ;;
29332 --debug | --debu | --deb | --de | --d | -d )
29333 debug=: ;;
29334 --file | --fil | --fi | --f )
29335 $ac_shift
29336 case $ac_optarg in
29337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29338 esac
29339 as_fn_append CONFIG_FILES " '$ac_optarg'"
29340 ac_need_defaults=false;;
29341 --header | --heade | --head | --hea )
29342 $ac_shift
29343 case $ac_optarg in
29344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29345 esac
29346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29347 ac_need_defaults=false;;
29348 --he | --h)
29349 # Conflict between --help and --header
29350 as_fn_error "ambiguous option: \`$1'
29351 Try \`$0 --help' for more information.";;
29352 --help | --hel | -h )
29353 $as_echo "$ac_cs_usage"; exit ;;
29354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29356 ac_cs_silent=: ;;
29357
29358 # This is an error.
29359 -*) as_fn_error "unrecognized option: \`$1'
29360 Try \`$0 --help' for more information." ;;
29361
29362 *) as_fn_append ac_config_targets " $1"
29363 ac_need_defaults=false ;;
29364
29365 esac
29366 shift
29367 done
29368
29369 ac_configure_extra_args=
29370
29371 if $ac_cs_silent; then
29372 exec 6>/dev/null
29373 ac_configure_extra_args="$ac_configure_extra_args --silent"
29374 fi
29375
29376 _ACEOF
29377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29378 if \$ac_cs_recheck; then
29379 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29380 shift
29381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29382 CONFIG_SHELL='$SHELL'
29383 export CONFIG_SHELL
29384 exec "\$@"
29385 fi
29386
29387 _ACEOF
29388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29389 exec 5>>config.log
29390 {
29391 echo
29392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29393 ## Running $as_me. ##
29394 _ASBOX
29395 $as_echo "$ac_log"
29396 } >&5
29397
29398 _ACEOF
29399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29400 #
29401 # INIT-COMMANDS
29402 #
29403 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29404 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29405 subdirs='$subdirs'
29406
29407 _ACEOF
29408
29409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29410
29411 # Handling of arguments.
29412 for ac_config_target in $ac_config_targets
29413 do
29414 case $ac_config_target in
29415 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29416 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29417 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29418 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29419 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29420 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29421 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29422 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29423 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29424
29425 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29426 esac
29427 done
29428
29429
29430 # If the user did not use the arguments to specify the items to instantiate,
29431 # then the envvar interface is used. Set only those that are not.
29432 # We use the long form for the default assignment because of an extremely
29433 # bizarre bug on SunOS 4.1.3.
29434 if $ac_need_defaults; then
29435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29437 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29439 fi
29440
29441 # Have a temporary directory for convenience. Make it in the build tree
29442 # simply because there is no reason against having it here, and in addition,
29443 # creating and moving files from /tmp can sometimes cause problems.
29444 # Hook for its removal unless debugging.
29445 # Note that there is a small window in which the directory will not be cleaned:
29446 # after its creation but before its name has been assigned to `$tmp'.
29447 $debug ||
29448 {
29449 tmp=
29450 trap 'exit_status=$?
29451 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29452 ' 0
29453 trap 'as_fn_exit 1' 1 2 13 15
29454 }
29455 # Create a (secure) tmp directory for tmp files.
29456
29457 {
29458 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29459 test -n "$tmp" && test -d "$tmp"
29460 } ||
29461 {
29462 tmp=./conf$$-$RANDOM
29463 (umask 077 && mkdir "$tmp")
29464 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29465
29466 # Set up the scripts for CONFIG_FILES section.
29467 # No need to generate them if there are no CONFIG_FILES.
29468 # This happens for instance with `./config.status config.h'.
29469 if test -n "$CONFIG_FILES"; then
29470
29471 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29472 ac_cs_awk_getline=:
29473 ac_cs_awk_pipe_init=
29474 ac_cs_awk_read_file='
29475 while ((getline aline < (F[key])) > 0)
29476 print(aline)
29477 close(F[key])'
29478 ac_cs_awk_pipe_fini=
29479 else
29480 ac_cs_awk_getline=false
29481 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29482 ac_cs_awk_read_file='
29483 print "|#_!!_#|"
29484 print "cat " F[key] " &&"
29485 '$ac_cs_awk_pipe_init
29486 # The final `:' finishes the AND list.
29487 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29488 fi
29489 ac_cr=`echo X | tr X '\015'`
29490 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29491 # But we know of no other shell where ac_cr would be empty at this
29492 # point, so we can use a bashism as a fallback.
29493 if test "x$ac_cr" = x; then
29494 eval ac_cr=\$\'\\r\'
29495 fi
29496 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29497 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29498 ac_cs_awk_cr='\r'
29499 else
29500 ac_cs_awk_cr=$ac_cr
29501 fi
29502
29503 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29504 _ACEOF
29505
29506 # Create commands to substitute file output variables.
29507 {
29508 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29509 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29510 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29511 echo "_ACAWK" &&
29512 echo "_ACEOF"
29513 } >conf$$files.sh &&
29514 . ./conf$$files.sh ||
29515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29516 rm -f conf$$files.sh
29517
29518 {
29519 echo "cat >conf$$subs.awk <<_ACEOF" &&
29520 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29521 echo "_ACEOF"
29522 } >conf$$subs.sh ||
29523 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29524 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29525 ac_delim='%!_!# '
29526 for ac_last_try in false false false false false :; do
29527 . ./conf$$subs.sh ||
29528 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29529
29530 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29531 if test $ac_delim_n = $ac_delim_num; then
29532 break
29533 elif $ac_last_try; then
29534 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29535 else
29536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29537 fi
29538 done
29539 rm -f conf$$subs.sh
29540
29541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29542 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29543 _ACEOF
29544 sed -n '
29545 h
29546 s/^/S["/; s/!.*/"]=/
29547 p
29548 g
29549 s/^[^!]*!//
29550 :repl
29551 t repl
29552 s/'"$ac_delim"'$//
29553 t delim
29554 :nl
29555 h
29556 s/\(.\{148\}\).*/\1/
29557 t more1
29558 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29559 p
29560 n
29561 b repl
29562 :more1
29563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29564 p
29565 g
29566 s/.\{148\}//
29567 t nl
29568 :delim
29569 h
29570 s/\(.\{148\}\).*/\1/
29571 t more2
29572 s/["\\]/\\&/g; s/^/"/; s/$/"/
29573 p
29574 b
29575 :more2
29576 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29577 p
29578 g
29579 s/.\{148\}//
29580 t delim
29581 ' <conf$$subs.awk | sed '
29582 /^[^""]/{
29583 N
29584 s/\n//
29585 }
29586 ' >>$CONFIG_STATUS || ac_write_fail=1
29587 rm -f conf$$subs.awk
29588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29589 _ACAWK
29590 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29591 for (key in S) S_is_set[key] = 1
29592 FS = ""
29593 \$ac_cs_awk_pipe_init
29594 }
29595 {
29596 line = $ 0
29597 nfields = split(line, field, "@")
29598 substed = 0
29599 len = length(field[1])
29600 for (i = 2; i < nfields; i++) {
29601 key = field[i]
29602 keylen = length(key)
29603 if (S_is_set[key]) {
29604 value = S[key]
29605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29606 len += length(value) + length(field[++i])
29607 substed = 1
29608 } else
29609 len += 1 + keylen
29610 }
29611 if (nfields == 3 && !substed) {
29612 key = field[2]
29613 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29614 \$ac_cs_awk_read_file
29615 next
29616 }
29617 }
29618 print line
29619 }
29620 \$ac_cs_awk_pipe_fini
29621 _ACAWK
29622 _ACEOF
29623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29624 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29626 else
29627 cat
29628 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29629 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29630 _ACEOF
29631
29632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29634 # trailing colons and then remove the whole line if VPATH becomes empty
29635 # (actually we leave an empty line to preserve line numbers).
29636 if test "x$srcdir" = x.; then
29637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29638 s/:*\$(srcdir):*/:/
29639 s/:*\${srcdir}:*/:/
29640 s/:*@srcdir@:*/:/
29641 s/^\([^=]*=[ ]*\):*/\1/
29642 s/:*$//
29643 s/^[^=]*=[ ]*$//
29644 }'
29645 fi
29646
29647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29648 fi # test -n "$CONFIG_FILES"
29649
29650 # Set up the scripts for CONFIG_HEADERS section.
29651 # No need to generate them if there are no CONFIG_HEADERS.
29652 # This happens for instance with `./config.status Makefile'.
29653 if test -n "$CONFIG_HEADERS"; then
29654 cat >"$tmp/defines.awk" <<\_ACAWK ||
29655 BEGIN {
29656 _ACEOF
29657
29658 # Transform confdefs.h into an awk script `defines.awk', embedded as
29659 # here-document in config.status, that substitutes the proper values into
29660 # config.h.in to produce config.h.
29661
29662 # Create a delimiter string that does not exist in confdefs.h, to ease
29663 # handling of long lines.
29664 ac_delim='%!_!# '
29665 for ac_last_try in false false :; do
29666 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29667 if test -z "$ac_t"; then
29668 break
29669 elif $ac_last_try; then
29670 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29671 else
29672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29673 fi
29674 done
29675
29676 # For the awk script, D is an array of macro values keyed by name,
29677 # likewise P contains macro parameters if any. Preserve backslash
29678 # newline sequences.
29679
29680 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29681 sed -n '
29682 s/.\{148\}/&'"$ac_delim"'/g
29683 t rset
29684 :rset
29685 s/^[ ]*#[ ]*define[ ][ ]*/ /
29686 t def
29687 d
29688 :def
29689 s/\\$//
29690 t bsnl
29691 s/["\\]/\\&/g
29692 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29693 D["\1"]=" \3"/p
29694 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29695 d
29696 :bsnl
29697 s/["\\]/\\&/g
29698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29699 D["\1"]=" \3\\\\\\n"\\/p
29700 t cont
29701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29702 t cont
29703 d
29704 :cont
29705 n
29706 s/.\{148\}/&'"$ac_delim"'/g
29707 t clear
29708 :clear
29709 s/\\$//
29710 t bsnlc
29711 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29712 d
29713 :bsnlc
29714 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29715 b cont
29716 ' <confdefs.h | sed '
29717 s/'"$ac_delim"'/"\\\
29718 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29719
29720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29721 for (key in D) D_is_set[key] = 1
29722 FS = ""
29723 }
29724 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29725 line = \$ 0
29726 split(line, arg, " ")
29727 if (arg[1] == "#") {
29728 defundef = arg[2]
29729 mac1 = arg[3]
29730 } else {
29731 defundef = substr(arg[1], 2)
29732 mac1 = arg[2]
29733 }
29734 split(mac1, mac2, "(") #)
29735 macro = mac2[1]
29736 prefix = substr(line, 1, index(line, defundef) - 1)
29737 if (D_is_set[macro]) {
29738 # Preserve the white space surrounding the "#".
29739 print prefix "define", macro P[macro] D[macro]
29740 next
29741 } else {
29742 # Replace #undef with comments. This is necessary, for example,
29743 # in the case of _POSIX_SOURCE, which is predefined and required
29744 # on some systems where configure will not decide to define it.
29745 if (defundef == "undef") {
29746 print "/*", prefix defundef, macro, "*/"
29747 next
29748 }
29749 }
29750 }
29751 { print }
29752 _ACAWK
29753 _ACEOF
29754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29755 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29756 fi # test -n "$CONFIG_HEADERS"
29757
29758
29759 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29760 shift
29761 for ac_tag
29762 do
29763 case $ac_tag in
29764 :[FHLC]) ac_mode=$ac_tag; continue;;
29765 esac
29766 case $ac_mode$ac_tag in
29767 :[FHL]*:*);;
29768 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29769 :[FH]-) ac_tag=-:-;;
29770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29771 esac
29772 ac_save_IFS=$IFS
29773 IFS=:
29774 set x $ac_tag
29775 IFS=$ac_save_IFS
29776 shift
29777 ac_file=$1
29778 shift
29779
29780 case $ac_mode in
29781 :L) ac_source=$1;;
29782 :[FH])
29783 ac_file_inputs=
29784 for ac_f
29785 do
29786 case $ac_f in
29787 -) ac_f="$tmp/stdin";;
29788 *) # Look for the file first in the build tree, then in the source tree
29789 # (if the path is not absolute). The absolute path cannot be DOS-style,
29790 # because $ac_f cannot contain `:'.
29791 test -f "$ac_f" ||
29792 case $ac_f in
29793 [\\/$]*) false;;
29794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29795 esac ||
29796 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29797 esac
29798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29799 as_fn_append ac_file_inputs " '$ac_f'"
29800 done
29801
29802 # Let's still pretend it is `configure' which instantiates (i.e., don't
29803 # use $as_me), people would be surprised to read:
29804 # /* config.h. Generated by config.status. */
29805 configure_input='Generated from '`
29806 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29807 `' by configure.'
29808 if test x"$ac_file" != x-; then
29809 configure_input="$ac_file. $configure_input"
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29811 $as_echo "$as_me: creating $ac_file" >&6;}
29812 fi
29813 # Neutralize special characters interpreted by sed in replacement strings.
29814 case $configure_input in #(
29815 *\&* | *\|* | *\\* )
29816 ac_sed_conf_input=`$as_echo "$configure_input" |
29817 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29818 *) ac_sed_conf_input=$configure_input;;
29819 esac
29820
29821 case $ac_tag in
29822 *:-:* | *:-) cat >"$tmp/stdin" \
29823 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29824 esac
29825 ;;
29826 esac
29827
29828 ac_dir=`$as_dirname -- "$ac_file" ||
29829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29830 X"$ac_file" : 'X\(//\)[^/]' \| \
29831 X"$ac_file" : 'X\(//\)$' \| \
29832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29833 $as_echo X"$ac_file" |
29834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29835 s//\1/
29836 q
29837 }
29838 /^X\(\/\/\)[^/].*/{
29839 s//\1/
29840 q
29841 }
29842 /^X\(\/\/\)$/{
29843 s//\1/
29844 q
29845 }
29846 /^X\(\/\).*/{
29847 s//\1/
29848 q
29849 }
29850 s/.*/./; q'`
29851 as_dir="$ac_dir"; as_fn_mkdir_p
29852 ac_builddir=.
29853
29854 case "$ac_dir" in
29855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29856 *)
29857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29858 # A ".." for each directory in $ac_dir_suffix.
29859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29860 case $ac_top_builddir_sub in
29861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29863 esac ;;
29864 esac
29865 ac_abs_top_builddir=$ac_pwd
29866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29867 # for backward compatibility:
29868 ac_top_builddir=$ac_top_build_prefix
29869
29870 case $srcdir in
29871 .) # We are building in place.
29872 ac_srcdir=.
29873 ac_top_srcdir=$ac_top_builddir_sub
29874 ac_abs_top_srcdir=$ac_pwd ;;
29875 [\\/]* | ?:[\\/]* ) # Absolute name.
29876 ac_srcdir=$srcdir$ac_dir_suffix;
29877 ac_top_srcdir=$srcdir
29878 ac_abs_top_srcdir=$srcdir ;;
29879 *) # Relative name.
29880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29881 ac_top_srcdir=$ac_top_build_prefix$srcdir
29882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29883 esac
29884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29885
29886
29887 case $ac_mode in
29888 :F)
29889 #
29890 # CONFIG_FILE
29891 #
29892
29893 _ACEOF
29894
29895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29896 # If the template does not know about datarootdir, expand it.
29897 # FIXME: This hack should be removed a few years after 2.60.
29898 ac_datarootdir_hack=; ac_datarootdir_seen=
29899 ac_sed_dataroot='
29900 /datarootdir/ {
29901 p
29902 q
29903 }
29904 /@datadir@/p
29905 /@docdir@/p
29906 /@infodir@/p
29907 /@localedir@/p
29908 /@mandir@/p'
29909 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29910 *datarootdir*) ac_datarootdir_seen=yes;;
29911 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29913 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29914 _ACEOF
29915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29916 ac_datarootdir_hack='
29917 s&@datadir@&$datadir&g
29918 s&@docdir@&$docdir&g
29919 s&@infodir@&$infodir&g
29920 s&@localedir@&$localedir&g
29921 s&@mandir@&$mandir&g
29922 s&\\\${datarootdir}&$datarootdir&g' ;;
29923 esac
29924 _ACEOF
29925
29926 # Neutralize VPATH when `$srcdir' = `.'.
29927 # Shell code in configure.ac might set extrasub.
29928 # FIXME: do we really want to maintain this feature?
29929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29930 ac_sed_extra="$ac_vpsub
29931 $extrasub
29932 _ACEOF
29933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29934 :t
29935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29936 s|@configure_input@|$ac_sed_conf_input|;t t
29937 s&@top_builddir@&$ac_top_builddir_sub&;t t
29938 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29939 s&@srcdir@&$ac_srcdir&;t t
29940 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29941 s&@top_srcdir@&$ac_top_srcdir&;t t
29942 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29943 s&@builddir@&$ac_builddir&;t t
29944 s&@abs_builddir@&$ac_abs_builddir&;t t
29945 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29946 $ac_datarootdir_hack
29947 "
29948 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29949 if $ac_cs_awk_getline; then
29950 $AWK -f "$tmp/subs.awk"
29951 else
29952 $AWK -f "$tmp/subs.awk" | $SHELL
29953 fi >$tmp/out \
29954 || as_fn_error "could not create $ac_file" "$LINENO" 5
29955
29956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29957 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29960 which seems to be undefined. Please make sure it is defined." >&5
29961 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29962 which seems to be undefined. Please make sure it is defined." >&2;}
29963
29964 rm -f "$tmp/stdin"
29965 case $ac_file in
29966 -) cat "$tmp/out" && rm -f "$tmp/out";;
29967 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29968 esac \
29969 || as_fn_error "could not create $ac_file" "$LINENO" 5
29970 ;;
29971 :H)
29972 #
29973 # CONFIG_HEADER
29974 #
29975 if test x"$ac_file" != x-; then
29976 {
29977 $as_echo "/* $configure_input */" \
29978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29979 } >"$tmp/config.h" \
29980 || as_fn_error "could not create $ac_file" "$LINENO" 5
29981 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29983 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29984 else
29985 rm -f "$ac_file"
29986 mv "$tmp/config.h" "$ac_file" \
29987 || as_fn_error "could not create $ac_file" "$LINENO" 5
29988 fi
29989 else
29990 $as_echo "/* $configure_input */" \
29991 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29992 || as_fn_error "could not create -" "$LINENO" 5
29993 fi
29994 ;;
29995 :L)
29996 #
29997 # CONFIG_LINK
29998 #
29999
30000 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30001 :
30002 else
30003 # Prefer the file from the source tree if names are identical.
30004 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30005 ac_source=$srcdir/$ac_source
30006 fi
30007
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30009 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30010
30011 if test ! -r "$ac_source"; then
30012 as_fn_error "$ac_source: file not found" "$LINENO" 5
30013 fi
30014 rm -f "$ac_file"
30015
30016 # Try a relative symlink, then a hard link, then a copy.
30017 case $srcdir in
30018 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30019 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30020 esac
30021 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30022 ln "$ac_source" "$ac_file" 2>/dev/null ||
30023 cp -p "$ac_source" "$ac_file" ||
30024 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30025 fi
30026 ;;
30027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30028 $as_echo "$as_me: executing $ac_file commands" >&6;}
30029 ;;
30030 esac
30031
30032
30033 case $ac_file$ac_mode in
30034 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30035 "gccdepdir":C)
30036 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30037 for lang in $subdirs c-family common
30038 do
30039 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30040 done ;;
30041 "as":F) chmod +x as ;;
30042 "collect-ld":F) chmod +x collect-ld ;;
30043 "nm":F) chmod +x nm ;;
30044 "default":C)
30045 case ${CONFIG_HEADERS} in
30046 *auto-host.h:config.in*)
30047 echo > cstamp-h ;;
30048 esac
30049 # Make sure all the subdirs exist.
30050 for d in $subdirs doc build common c-family
30051 do
30052 test -d $d || mkdir $d
30053 done
30054 ;;
30055
30056 esac
30057 done # for ac_tag
30058
30059
30060 as_fn_exit 0
30061 _ACEOF
30062 ac_clean_files=$ac_clean_files_save
30063
30064 test $ac_write_fail = 0 ||
30065 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30066
30067
30068 # configure is writing to config.log, and then calls config.status.
30069 # config.status does its own redirection, appending to config.log.
30070 # Unfortunately, on DOS this fails, as config.log is still kept open
30071 # by configure, so config.status won't be able to write to it; its
30072 # output is simply discarded. So we exec the FD to /dev/null,
30073 # effectively closing config.log, so it can be properly (re)opened and
30074 # appended to by config.status. When coming back to configure, we
30075 # need to make the FD available again.
30076 if test "$no_create" != yes; then
30077 ac_cs_success=:
30078 ac_config_status_args=
30079 test "$silent" = yes &&
30080 ac_config_status_args="$ac_config_status_args --quiet"
30081 exec 5>/dev/null
30082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30083 exec 5>>config.log
30084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30085 # would make configure fail if this is the last instruction.
30086 $ac_cs_success || as_fn_exit $?
30087 fi
30088 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30090 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30091 fi
30092