configure.ac: Fix assembly for explicit JALR relocation check.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
746 AR
747 NM
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
760 LN
761 LN_S
762 AWK
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
795 CPP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
801 CXX
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 with_glibc_version
924 enable_gnu_unique_object
925 enable_linker_build_id
926 with_long_double_128
927 with_gc
928 with_system_zlib
929 enable_maintainer_mode
930 enable_link_mutex
931 enable_version_specific_runtime_libs
932 enable_plugin
933 enable_host_shared
934 enable_libquadmath_support
935 with_linker_hash_style
936 '
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CXX
946 CXXFLAGS
947 CCC
948 CPP
949 CXXCPP
950 GMPLIBS
951 GMPINC
952 ISLLIBS
953 ISLINC
954 CLOOGLIBS
955 CLOOGINC'
956
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
1027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1052
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1075
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1080
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1085
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1305
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1321
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1325
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1332
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1339
1340 -*) as_fn_error "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information."
1342 ;;
1343
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1353
1354 *)
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 ;;
1361
1362 esac
1363 done
1364
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error "missing argument to $ac_option"
1368 fi
1369
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1376 fi
1377
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1383 do
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1398
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1405
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1414 fi
1415 fi
1416
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419
1420 test "$silent" = yes && exec 6>/dev/null
1421
1422
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error "pwd does not report name of working directory"
1429
1430
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\).*/{
1454 s//\1/
1455 q
1456 }
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1461 fi
1462 else
1463 ac_srcdir_defaulted=no
1464 fi
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468 fi
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1476 fi
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1489
1490 #
1491 # Report the --help message.
1492 #
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1498
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1503
1504 Defaults for the options are specified in brackets.
1505
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1522
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1527
1528 For better control, use the options below.
1529
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1551
1552 cat <<\_ACEOF
1553
1554 Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567
1568 cat <<\_ACEOF
1569
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-generated-files-in-srcdir
1575 put copies of generated files in source dir intended
1576 for creating source tarballs for users without
1577 texinfo bison or flex
1578 --disable-largefile omit support for large files
1579 --disable-build-format-warnings
1580 don't use -Wformat while building GCC
1581 --enable-werror-always enable -Werror despite compiler version
1582 --enable-checking[=LIST]
1583 enable expensive run-time checks. With LIST, enable
1584 only specific categories of checks. Categories are:
1585 yes,no,all,none,release. Flags are:
1586 assert,df,fold,gc,gcac,gimple,misc,
1587 rtlflag,rtl,runtime,tree,valgrind,types
1588 --enable-coverage[=LEVEL]
1589 enable compiler's code coverage collection. Use to
1590 measure compiler performance and locate unused parts
1591 of the compiler. With LEVEL, specify optimization.
1592 Values are opt, noopt, default is noopt
1593 --enable-gather-detailed-mem-stats
1594 enable detailed memory allocation stats gathering
1595 --enable-valgrind-annotations
1596 enable valgrind runtime interaction
1597 --enable-multilib enable library support for multiple ABIs
1598 --enable-multiarch enable support for multiarch paths
1599 --enable-__cxa_atexit enable __cxa_atexit for C++
1600 --enable-decimal-float={no,yes,bid,dpd}
1601 enable decimal float extension to C. Selecting 'bid'
1602 or 'dpd' choses which decimal floating point format
1603 to use
1604 --enable-fixed-point enable fixed-point arithmetic extension to C
1605 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1606 package
1607 --enable-tls enable or disable generation of tls code overriding
1608 the assembler check for tls support
1609 --enable-objc-gc enable the use of Boehm's garbage collector with the
1610 GNU Objective-C runtime
1611 --disable-shared don't provide a shared libgcc
1612 --enable-languages=LIST specify which front-ends to build
1613 --disable-rpath do not hardcode runtime library paths
1614 --enable-sjlj-exceptions
1615 arrange to use setjmp/longjmp exception handling
1616 --enable-secureplt enable -msecure-plt by default for PowerPC
1617 --enable-leading-mingw64-underscores
1618 enable leading underscores on 64 bit mingw targets
1619 --enable-cld enable -mcld by default for 32bit x86
1620 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1621 x86
1622 --disable-win32-registry
1623 disable lookup of installation paths in the Registry
1624 on Windows hosts
1625 --enable-win32-registry enable registry lookup (default)
1626 --enable-win32-registry=KEY
1627 use KEY instead of GCC version as the last portion
1628 of the registry key
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1635 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1636 --enable-gnu-indirect-function
1637 enable the use of the @gnu_indirect_function to
1638 glibc systems
1639 --enable-initfini-array use .init_array/.fini_array sections
1640 --enable-comdat enable COMDAT group support
1641 --enable-gnu-unique-object
1642 enable the use of the @gnu_unique_object ELF
1643 extension on glibc systems
1644 --enable-linker-build-id
1645 compiler will always pass --build-id to linker
1646 --enable-maintainer-mode
1647 enable make rules and dependencies not useful (and
1648 sometimes confusing) to the casual installer
1649 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1650 thrashing on the build machine
1651 --enable-version-specific-runtime-libs
1652 specify that runtime libraries should be installed
1653 in a compiler-specific directory
1654 --enable-plugin enable plugin support
1655 --enable-host-shared build host code as shared libraries
1656 --disable-libquadmath-support
1657 disable libquadmath support for Fortran
1658
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-build-libsubdir=DIR Directory where to find libraries for build system
1663 --with-local-prefix=DIR specifies directory to put local include
1664 --with-gxx-include-dir=DIR
1665 specifies directory to put g++ header files
1666 --with-cpp-install-dir=DIR
1667 install the user visible C preprocessor in DIR
1668 (relative to PREFIX) as well as PREFIX/bin
1669 --with-gnu-ld arrange to work with GNU ld
1670 --with-ld arrange to use the specified ld (full pathname)
1671 --with-demangler-in-ld try to use demangler in GNU ld
1672 --with-gnu-as arrange to work with GNU as
1673 --with-as arrange to use the specified as (full pathname)
1674 --with-stabs arrange to use stabs instead of host debug format
1675 --with-dwarf2 force the default debug format to be DWARF 2
1676 --with-native-system-header-dir=dir
1677 use dir as the directory to look for standard
1678 system header files in. Defaults to /usr/include.
1679 --with-build-sysroot=sysroot
1680 use sysroot as the system root during the build
1681 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1682 --with-specs=SPECS add SPECS to driver command-line processing
1683 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1686 --with-gnu-ld assume the C compiler uses GNU ld default=no
1687 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1688 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1689 --with-pic try to use only PIC/non-PIC objects [default=use
1690 both]
1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1692 --with-plugin-ld=[ARG] specify the plugin linker
1693 --with-glibc-version=M.N
1694 assume GCC used with glibc version M.N or later
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1698 the compiler
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1702
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 CPP C preprocessor
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1721
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1724
1725 Report bugs to the package provider.
1726 _ACEOF
1727 ac_status=$?
1728 fi
1729
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1737
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *)
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1753
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1783 fi
1784
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 configure
1789 generated by GNU Autoconf 2.64
1790
1791 Copyright (C) 2009 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1796 fi
1797
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1801
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1837
1838 } # ac_fn_c_try_compile
1839
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876 } # ac_fn_cxx_try_compile
1877
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1912
1913 } # ac_fn_c_try_cpp
1914
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 fi
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1949
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1961 fi
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1965
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ;;
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 ;;
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 fi
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999
2000 } # ac_fn_c_check_header_mongrel
2001
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=$ac_status
2037 fi
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 return $ac_retval
2041
2042 } # ac_fn_c_try_run
2043
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072
2073 } # ac_fn_c_check_header_compile
2074
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2079 # computed
2080 ac_fn_c_compute_int ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 $4
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2092 test_array [0] = 0
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116 else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2121 fi
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158 else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 ac_lo= ac_hi=
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 $4
2180 int
2181 main ()
2182 {
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2209 int
2210 main ()
2211 {
2212
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2217 {
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2222 }
2223 else
2224 {
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2229 }
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2242 fi
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2246
2247 fi
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2250
2251 } # ac_fn_c_compute_int
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273 return 0;
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286 return 0;
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294 eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304
2305 } # ac_fn_c_check_type
2306
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_find_intX_t ()
2312 {
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 eval "$3=no"
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2325 int
2326 main ()
2327 {
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2329 test_array [0] = 0
2330
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2339 int
2340 main ()
2341 {
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2344 test_array [0] = 0
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351
2352 else
2353 case $ac_type in #(
2354 int$2_t) :
2355 eval "$3=yes" ;; #(
2356 *) :
2357 eval "$3=\$ac_type" ;;
2358 esac
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval as_val=\$$3
2364 if test "x$as_val" = x""no; then :
2365
2366 else
2367 break
2368 fi
2369 done
2370 fi
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376 } # ac_fn_c_find_intX_t
2377
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_link ()
2382 {
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2398 fi
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest$ac_exeext
2406 }; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_retval=1
2413 fi
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 return $ac_retval
2421
2422 } # ac_fn_c_try_link
2423
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_find_uintX_t ()
2429 {
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 eval "$3=no"
2437 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2442 int
2443 main ()
2444 {
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2446 test_array [0] = 0
2447
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 case $ac_type in #(
2454 uint$2_t) :
2455 eval "$3=yes" ;; #(
2456 *) :
2457 eval "$3=\$ac_type" ;;
2458 esac
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2463
2464 else
2465 break
2466 fi
2467 done
2468 fi
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_find_uintX_t
2475
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_c_try_cpp "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2495 fi
2496 rm -f conftest.err conftest.$ac_ext
2497 fi
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502
2503 } # ac_fn_c_check_header_preproc
2504
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp ()
2509 {
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 if { { ac_try="$ac_cpp conftest.$ac_ext"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2524 fi
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 }; then :
2530 ac_retval=0
2531 else
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_retval=1
2536 fi
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 return $ac_retval
2539
2540 } # ac_fn_cxx_try_cpp
2541
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 #include <$2>
2556 _ACEOF
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2561 fi
2562 rm -f conftest.err conftest.$ac_ext
2563 fi
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568
2569 } # ac_fn_cxx_check_header_preproc
2570
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2575 {
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2587
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2592
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2598
2599 #undef $2
2600
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2614
2615 int
2616 main ()
2617 {
2618 return $2 ();
2619 ;
2620 return 0;
2621 }
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2627 fi
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2630 fi
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636 } # ac_fn_c_check_func
2637
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2642 {
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2658 fi
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 ac_retval=1
2673 fi
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2681
2682 } # ac_fn_cxx_try_link
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2686
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2689
2690 $ $0 $@
2691
2692 _ACEOF
2693 exec 5>>config.log
2694 {
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2699
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2705
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2708
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2716
2717 _ASUNAME
2718
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2727
2728 } >&5
2729
2730 cat >&5 <<_ACEOF
2731
2732
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2736
2737 _ACEOF
2738
2739
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2750 do
2751 for ac_arg
2752 do
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2763 2)
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2776 ;;
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2779 fi
2780 as_fn_append ac_configure_args " '$ac_arg'"
2781 ;;
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2787
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2795 {
2796 echo
2797
2798 cat <<\_ASBOX
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2802 _ASBOX
2803 echo
2804 # The following way of writing the cache mishandles newlines in values,
2805 (
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2808 case $ac_val in #(
2809 *${as_nl}*)
2810 case $ac_var in #(
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2813 esac
2814 case $ac_var in #(
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2818 esac ;;
2819 esac
2820 done
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 sed -n \
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2827 ;; #(
2828 *)
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2830 ;;
2831 esac |
2832 sort
2833 )
2834 echo
2835
2836 cat <<\_ASBOX
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2840 _ASBOX
2841 echo
2842 for ac_var in $ac_subst_vars
2843 do
2844 eval ac_val=\$$ac_var
2845 case $ac_val in
2846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 esac
2848 $as_echo "$ac_var='\''$ac_val'\''"
2849 done | sort
2850 echo
2851
2852 if test -n "$ac_subst_files"; then
2853 cat <<\_ASBOX
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2857 _ASBOX
2858 echo
2859 for ac_var in $ac_subst_files
2860 do
2861 eval ac_val=\$$ac_var
2862 case $ac_val in
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 esac
2865 $as_echo "$ac_var='\''$ac_val'\''"
2866 done | sort
2867 echo
2868 fi
2869
2870 if test -s confdefs.h; then
2871 cat <<\_ASBOX
2872 ## ----------- ##
2873 ## confdefs.h. ##
2874 ## ----------- ##
2875 _ASBOX
2876 echo
2877 cat confdefs.h
2878 echo
2879 fi
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2883 } >&5
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 exit $exit_status
2887 ' 0
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2892
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2895
2896 $as_echo "/* confdefs.h */" > confdefs.h
2897
2898 # Predefined preprocessor variables.
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2919
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2923
2924
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE; then
2932 ac_site_file1=$prefix/share/config.site
2933 ac_site_file2=$prefix/etc/config.site
2934 else
2935 ac_site_file1=$ac_default_prefix/share/config.site
2936 ac_site_file2=$ac_default_prefix/etc/config.site
2937 fi
2938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2939 do
2940 test "x$ac_site_file" = xNONE && continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2945 . "$ac_site_file"
2946 fi
2947 done
2948
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2955 case $cache_file in
2956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2957 *) . "./$cache_file";;
2958 esac
2959 fi
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 >$cache_file
2964 fi
2965
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2984 *)
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3014 fi
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3022 fi
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034
3035
3036
3037
3038 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3039
3040
3041 gcc_version=`cat $srcdir/BASE-VER`
3042
3043 # Determine the host, build, and target systems
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t in install-sh install.sh shtool; do
3047 if test -f "$ac_dir/$ac_t"; then
3048 ac_aux_dir=$ac_dir
3049 ac_install_sh="$ac_aux_dir/$ac_t -c"
3050 break 2
3051 fi
3052 done
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3056 fi
3057
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3065
3066
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3083
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3088 *-*-*) ;;
3089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3090 esac
3091 build=$ac_cv_build
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_build
3094 shift
3095 build_cpu=$1
3096 build_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 build_os=$*
3101 IFS=$ac_save_IFS
3102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3103
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test "x$host_alias" = x; then
3111 ac_cv_host=$ac_cv_build
3112 else
3113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3115 fi
3116
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3120 case $ac_cv_host in
3121 *-*-*) ;;
3122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3123 esac
3124 host=$ac_cv_host
3125 ac_save_IFS=$IFS; IFS='-'
3126 set x $ac_cv_host
3127 shift
3128 host_cpu=$1
3129 host_vendor=$2
3130 shift; shift
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3133 host_os=$*
3134 IFS=$ac_save_IFS
3135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3136
3137
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test "x$target_alias" = x; then
3144 ac_cv_target=$ac_cv_host
3145 else
3146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3148 fi
3149
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3156 esac
3157 target=$ac_cv_target
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_target
3160 shift
3161 target_cpu=$1
3162 target_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 target_os=$*
3167 IFS=$ac_save_IFS
3168 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3169
3170
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
3177
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3183
3184 case ${host_alias} in
3185 "") host_noncanonical=${build_noncanonical} ;;
3186 *) host_noncanonical=${host_alias} ;;
3187 esac
3188
3189 case ${target_alias} in
3190 "") target_noncanonical=${host_noncanonical} ;;
3191 *) target_noncanonical=${target_alias} ;;
3192 esac
3193
3194
3195
3196
3197 # Determine the target- and build-specific subdirectories
3198
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3204 # finishes. So:
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3207
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir="build-${build_noncanonical}"
3210
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval=$with_build_libsubdir; build_libsubdir="$withval"
3214 else
3215 build_libsubdir="$build_subdir"
3216 fi
3217
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = . && test -d gcc ) \
3220 || test -d $srcdir/../host-${host_noncanonical}; then
3221 host_subdir="host-${host_noncanonical}"
3222 else
3223 host_subdir=.
3224 fi
3225 # No prefix.
3226 target_subdir=${target_noncanonical}
3227
3228
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE &&
3231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE &&
3234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3239
3240
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 library_path_setting="contains current directory"
3254 ;;
3255 *)
3256 library_path_setting="ok"
3257 ;;
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3262 as_fn_error "
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3266 fi
3267
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 gcc_exec_prefix_setting="contains current directory"
3280 ;;
3281 *)
3282 gcc_exec_prefix_setting="ok"
3283 ;;
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3288 as_fn_error "
3289 *** GCC_EXEC_PREFIX 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 # -----------
3295 # Directories
3296 # -----------
3297
3298 # Specify the local prefix
3299 local_prefix=
3300
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3305 no) ;;
3306 *) local_prefix=$with_local_prefix ;;
3307 esac
3308 fi
3309
3310
3311 # Default local prefix if it is empty
3312 if test x$local_prefix = x; then
3313 local_prefix=/usr/local
3314 fi
3315
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir=
3320 # Specify the g++ header file directory
3321
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3326 no) ;;
3327 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3328 esac
3329 fi
3330
3331
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x${gcc_gxx_include_dir} = x; then
3334 if test x${enable_version_specific_runtime_libs} = xyes; then
3335 gcc_gxx_include_dir='${libsubdir}/include/c++'
3336 else
3337 libstdcxx_incdir='include/c++/$(version)'
3338 if test x$host != x$target; then
3339 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3340 fi
3341 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3342 fi
3343 fi
3344
3345 gcc_gxx_include_dir_add_sysroot=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot=1
3351 fi
3352 fi
3353
3354
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3358 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x$withval != xno; then
3360 cpp_install_dir=$withval
3361 fi
3362 fi
3363
3364
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3369 # just that.
3370
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3376 else
3377 generated_files_in_srcdir=no
3378 fi
3379
3380
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3383
3384 if test "$generated_files_in_srcdir" = "yes"; then
3385 GENINSRC=''
3386 else
3387 GENINSRC='#'
3388 fi
3389
3390
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3394
3395 # With GNU ld
3396
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3400 else
3401 gnu_ld_flag=no
3402 fi
3403
3404
3405 # With pre-defined ld
3406
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3410 fi
3411
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3416 gnu_ld_flag=yes
3417 fi
3418
3419 cat >>confdefs.h <<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 _ACEOF
3422
3423 fi
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test x"$gnu_ld_flag" = x"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3434 fi
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440 # With demangler in GNU ld
3441
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3445 else
3446 demangler_in_ld=yes
3447 fi
3448
3449
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3453
3454 # With GNU as
3455
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3459 else
3460 gas_flag=no
3461 fi
3462
3463
3464
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3468 fi
3469
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3474 gas_flag=yes
3475 fi
3476
3477 cat >>confdefs.h <<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 _ACEOF
3480
3481 fi
3482
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test x"$gas_flag" = x"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3492 fi
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498 # ---------------
3499 # Find C compiler
3500 # ---------------
3501
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3506 #
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3510
3511 # Find the native compiler
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555 fi
3556 if test -z "$ac_cv_prog_CC"; then
3557 ac_ct_CC=$CC
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3604 fi
3605 else
3606 CC="$ac_cv_prog_CC"
3607 fi
3608
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648 fi
3649 fi
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3671 continue
3672 fi
3673 ac_cv_prog_CC="cc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3684 shift
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3689 shift
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3691 fi
3692 fi
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3709 do
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731 done
3732 done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746
3747 test -n "$CC" && break
3748 done
3749 fi
3750 if test -z "$CC"; then
3751 ac_ct_CC=$CC
3752 for ac_prog in cl.exe
3753 do
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 test -n "$ac_ct_CC" && break
3792 done
3793
3794 if test "x$ac_ct_CC" = x; then
3795 CC=""
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 CC=$ac_ct_CC
3804 fi
3805 fi
3806
3807 fi
3808
3809
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3814
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828 ac_status=$?
3829 if test -s conftest.err; then
3830 sed '10a\
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3835 fi
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 done
3839
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3859
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3862
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3865 do
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 esac
3870 done
3871 rm -f $ac_rmfiles
3872
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3890 do
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3894 ;;
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903 fi
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3910 * )
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3915
3916 else
3917 ac_file=''
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status 77
3928 as_fn_error "C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3930 fi
3931 ac_exeext=$ac_cv_exeext
3932
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3950 cross_compiling=no
3951 else
3952 if test "$cross_compiling" = maybe; then
3953 cross_compiling=yes
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details." "$LINENO" 5; }
3960 fi
3961 fi
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3965
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4006 fi
4007 rm -f conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4010
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021
4022 int
4023 main ()
4024 {
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try="$ac_compile"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 break;;
4048 esac
4049 done
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files: cannot compile
4057 See \`config.log' for more details." "$LINENO" 5; }
4058 fi
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4064 ac_objext=$OBJEXT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main ()
4075 {
4076 #ifndef __GNUC__
4077 choke me
4078 #endif
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086 else
4087 ac_compiler_gnu=no
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097 else
4098 GCC=
4099 fi
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_g=yes
4124 else
4125 CFLAGS=""
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128
4129 int
4130 main ()
4131 {
4132
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138
4139 else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main ()
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4172 fi
4173 else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4178 fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4197 char **p;
4198 int i;
4199 {
4200 return p[i];
4201 }
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4203 {
4204 char *s;
4205 va_list v;
4206 va_start (v,p);
4207 s = g (p, va_arg (v,int));
4208 va_end (v);
4209 return s;
4210 }
4211
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4220
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4223 #define FOO(x) 'x'
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4225
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 int argc;
4231 char **argv;
4232 int
4233 main ()
4234 {
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4242 do
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4252
4253 fi
4254 # AC_CACHE_VAL
4255 case "x$ac_cv_prog_cc_c89" in
4256 x)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4259 xno)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4262 *)
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 esac
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268
4269 fi
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277 ac_ext=cpp
4278 ac_cpp='$CXXCPP $CPPFLAGS'
4279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4282 if test -z "$CXX"; then
4283 if test -n "$CCC"; then
4284 CXX=$CCC
4285 else
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CXX+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$CXX"; then
4297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 CXX=$ac_cv_prog_CXX
4317 if test -n "$CXX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4319 $as_echo "$CXX" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326 test -n "$CXX" && break
4327 done
4328 fi
4329 if test -z "$CXX"; then
4330 ac_ct_CXX=$CXX
4331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4332 do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$ac_ct_CXX"; then
4341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CXX="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4361 if test -n "$ac_ct_CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4363 $as_echo "$ac_ct_CXX" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 test -n "$ac_ct_CXX" && break
4371 done
4372
4373 if test "x$ac_ct_CXX" = x; then
4374 CXX="g++"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382 CXX=$ac_ct_CXX
4383 fi
4384 fi
4385
4386 fi
4387 fi
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4390 set X $ac_compile
4391 ac_compiler=$2
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401 ac_status=$?
4402 if test -s conftest.err; then
4403 sed '10a\
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4408 fi
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 done
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420
4421 int
4422 main ()
4423 {
4424 #ifndef __GNUC__
4425 choke me
4426 #endif
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_compiler_gnu=yes
4434 else
4435 ac_compiler_gnu=no
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4439
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4443 if test $ac_compiler_gnu = yes; then
4444 GXX=yes
4445 else
4446 GXX=
4447 fi
4448 ac_test_CXXFLAGS=${CXXFLAGS+set}
4449 ac_save_CXXFLAGS=$CXXFLAGS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4452 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4456 ac_cxx_werror_flag=yes
4457 ac_cv_prog_cxx_g=no
4458 CXXFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461
4462 int
4463 main ()
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_cxx_try_compile "$LINENO"; then :
4471 ac_cv_prog_cxx_g=yes
4472 else
4473 CXXFLAGS=""
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476
4477 int
4478 main ()
4479 {
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4486
4487 else
4488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 int
4494 main ()
4495 {
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4513 if test "$ac_test_CXXFLAGS" = set; then
4514 CXXFLAGS=$ac_save_CXXFLAGS
4515 elif test $ac_cv_prog_cxx_g = yes; then
4516 if test "$GXX" = yes; then
4517 CXXFLAGS="-g -O2"
4518 else
4519 CXXFLAGS="-g"
4520 fi
4521 else
4522 if test "$GXX" = yes; then
4523 CXXFLAGS="-O2"
4524 else
4525 CXXFLAGS=
4526 fi
4527 fi
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534
4535
4536
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$GNATBIND"; then
4546 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 GNATBIND=$ac_cv_prog_GNATBIND
4566 if test -n "$GNATBIND"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4568 $as_echo "$GNATBIND" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575 fi
4576 if test -z "$ac_cv_prog_GNATBIND"; then
4577 ac_ct_GNATBIND=$GNATBIND
4578 # Extract the first word of "gnatbind", so it can be a program name with args.
4579 set dummy gnatbind; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_GNATBIND"; then
4586 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4606 if test -n "$ac_ct_GNATBIND"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4608 $as_echo "$ac_ct_GNATBIND" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614 if test "x$ac_ct_GNATBIND" = x; then
4615 GNATBIND="no"
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623 GNATBIND=$ac_ct_GNATBIND
4624 fi
4625 else
4626 GNATBIND="$ac_cv_prog_GNATBIND"
4627 fi
4628
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$GNATMAKE"; then
4638 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 GNATMAKE=$ac_cv_prog_GNATMAKE
4658 if test -n "$GNATMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4660 $as_echo "$GNATMAKE" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 fi
4668 if test -z "$ac_cv_prog_GNATMAKE"; then
4669 ac_ct_GNATMAKE=$GNATMAKE
4670 # Extract the first word of "gnatmake", so it can be a program name with args.
4671 set dummy gnatmake; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$ac_ct_GNATMAKE"; then
4678 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4698 if test -n "$ac_ct_GNATMAKE"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4700 $as_echo "$ac_ct_GNATMAKE" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706 if test "x$ac_ct_GNATMAKE" = x; then
4707 GNATMAKE="no"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 GNATMAKE=$ac_ct_GNATMAKE
4716 fi
4717 else
4718 GNATMAKE="$ac_cv_prog_GNATMAKE"
4719 fi
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4722 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4723 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat >conftest.adb <<EOF
4727 procedure conftest is begin null; end conftest;
4728 EOF
4729 acx_cv_cc_gcc_supports_ada=no
4730 # There is a bug in old released versions of GCC which causes the
4731 # driver to exit successfully when the appropriate language module
4732 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4733 # Therefore we must check for the error message as well as an
4734 # unsuccessful exit.
4735 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4736 # given a .adb file, but produce no object file. So we must check
4737 # if an object file was really produced to guard against this.
4738 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4739 if test x"$errors" = x && test -f conftest.$ac_objext; then
4740 acx_cv_cc_gcc_supports_ada=yes
4741 fi
4742 rm -f conftest.*
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4745 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4746
4747 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4748 have_gnat=yes
4749 else
4750 have_gnat=no
4751 fi
4752
4753
4754 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4755 # optimizations to be activated explicitly by the toplevel.
4756 case "$CC" in
4757 */prev-gcc/xgcc*) ;;
4758 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4759 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4760 esac
4761
4762
4763
4764 # Determine PICFLAG for target gnatlib.
4765
4766
4767
4768
4769 case "${target}" in
4770 # PIC is the default on some targets or must not be used.
4771 *-*-darwin*)
4772 # PIC is the default on this platform
4773 # Common symbols not allowed in MH_DYLIB files
4774 PICFLAG_FOR_TARGET=-fno-common
4775 ;;
4776 alpha*-dec-osf5*)
4777 # PIC is the default.
4778 ;;
4779 hppa*64*-*-hpux*)
4780 # PIC is the default for 64-bit PA HP-UX.
4781 ;;
4782 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4783 ;;
4784 i[34567]86-*-mingw* | x86_64-*-mingw*)
4785 ;;
4786 i[34567]86-*-interix[3-9]*)
4787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4788 # Instead, we relocate shared libraries at runtime.
4789 ;;
4790 i[34567]86-*-nto-qnx*)
4791 # QNX uses GNU C++, but need to define -shared option too, otherwise
4792 # it will coredump.
4793 PICFLAG_FOR_TARGET='-fPIC -shared'
4794 ;;
4795 i[34567]86-pc-msdosdjgpp*)
4796 # DJGPP does not support shared libraries at all.
4797 ;;
4798 ia64*-*-hpux*)
4799 # On IA64 HP-UX, PIC is the default but the pic flag
4800 # sets the default TLS model and affects inlining.
4801 PICFLAG_FOR_TARGET=-fPIC
4802 ;;
4803 mips-sgi-irix6*)
4804 # PIC is the default.
4805 ;;
4806 rs6000-ibm-aix* | powerpc-ibm-aix*)
4807 # All AIX code is PIC.
4808 ;;
4809
4810 # Some targets support both -fPIC and -fpic, but prefer the latter.
4811 # FIXME: Why?
4812 i[34567]86-*-* | x86_64-*-*)
4813 PICFLAG_FOR_TARGET=-fpic
4814 ;;
4815 # FIXME: Override -fPIC default in libgcc only?
4816 sh-*-linux* | sh[2346lbe]*-*-linux*)
4817 PICFLAG_FOR_TARGET=-fpic
4818 ;;
4819 # FIXME: Simplify to sh*-*-netbsd*?
4820 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4821 sh64-*-netbsd* | sh64l*-*-netbsd*)
4822 PICFLAG_FOR_TARGET=-fpic
4823 ;;
4824 # Default to -fPIC unless specified otherwise.
4825 *)
4826 PICFLAG_FOR_TARGET=-fPIC
4827 ;;
4828 esac
4829
4830 # If the user explicitly uses -fpic/-fPIC, keep that.
4831 case "${CFLAGS_FOR_TARGET}" in
4832 *-fpic*)
4833 PICFLAG_FOR_TARGET=-fpic
4834 ;;
4835 *-fPIC*)
4836 PICFLAG_FOR_TARGET=-fPIC
4837 ;;
4838 esac
4839
4840
4841
4842 # -------------------------
4843 # Check C compiler features
4844 # -------------------------
4845
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4854 # On Suns, sometimes $CPP names a directory.
4855 if test -n "$CPP" && test -d "$CPP"; then
4856 CPP=
4857 fi
4858 if test -z "$CPP"; then
4859 if test "${ac_cv_prog_CPP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 # Double quotes because CPP needs to be expanded
4863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4864 do
4865 ac_preproc_ok=false
4866 for ac_c_preproc_warn_flag in '' yes
4867 do
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881 Syntax error
4882 _ACEOF
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4884
4885 else
4886 # Broken: fails on valid input.
4887 continue
4888 fi
4889 rm -f conftest.err conftest.$ac_ext
4890
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4904 fi
4905 rm -f conftest.err conftest.$ac_ext
4906
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then :
4911 break
4912 fi
4913
4914 done
4915 ac_cv_prog_CPP=$CPP
4916
4917 fi
4918 CPP=$ac_cv_prog_CPP
4919 else
4920 ac_cv_prog_CPP=$CPP
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4923 $as_echo "$CPP" >&6; }
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4926 do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4943
4944 else
4945 # Broken: fails on valid input.
4946 continue
4947 fi
4948 rm -f conftest.err conftest.$ac_ext
4949
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4963 fi
4964 rm -f conftest.err conftest.$ac_ext
4965
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4970
4971 else
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4975 See \`config.log' for more details." "$LINENO" 5; }
4976 fi
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4987 if test "${ac_cv_path_GREP+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$GREP"; then
4991 ac_path_GREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in grep ggrep; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5002 # Check for GNU ac_path_GREP and select it if it is found.
5003 # Check for GNU $ac_path_GREP
5004 case `"$ac_path_GREP" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5007 *)
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5011 do
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'GREP' >> "conftest.nl"
5016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_GREP="$ac_path_GREP"
5022 ac_path_GREP_max=$ac_count
5023 fi
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5029
5030 $ac_path_GREP_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_GREP"; then
5036 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 fi
5038 else
5039 ac_cv_path_GREP=$GREP
5040 fi
5041
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5044 $as_echo "$ac_cv_path_GREP" >&6; }
5045 GREP="$ac_cv_path_GREP"
5046
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5049 $as_echo_n "checking for egrep... " >&6; }
5050 if test "${ac_cv_path_EGREP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5054 then ac_cv_path_EGREP="$GREP -E"
5055 else
5056 if test -z "$EGREP"; then
5057 ac_path_EGREP_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in egrep; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5068 # Check for GNU ac_path_EGREP and select it if it is found.
5069 # Check for GNU $ac_path_EGREP
5070 case `"$ac_path_EGREP" --version 2>&1` in
5071 *GNU*)
5072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5073 *)
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5077 do
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'EGREP' >> "conftest.nl"
5082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_EGREP="$ac_path_EGREP"
5088 ac_path_EGREP_max=$ac_count
5089 fi
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 esac
5095
5096 $ac_path_EGREP_found && break 3
5097 done
5098 done
5099 done
5100 IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_EGREP"; then
5102 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 fi
5104 else
5105 ac_cv_path_EGREP=$EGREP
5106 fi
5107
5108 fi
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5111 $as_echo "$ac_cv_path_EGREP" >&6; }
5112 EGREP="$ac_cv_path_EGREP"
5113
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if test "${ac_cv_header_stdc+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5123 #include <stdarg.h>
5124 #include <string.h>
5125 #include <float.h>
5126
5127 int
5128 main ()
5129 {
5130
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_header_stdc=yes
5137 else
5138 ac_cv_header_stdc=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <string.h>
5147
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev/null 2>&1; then :
5151
5152 else
5153 ac_cv_header_stdc=no
5154 fi
5155 rm -f conftest*
5156
5157 fi
5158
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <stdlib.h>
5164
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev/null 2>&1; then :
5168
5169 else
5170 ac_cv_header_stdc=no
5171 fi
5172 rm -f conftest*
5173
5174 fi
5175
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5179 :
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <ctype.h>
5184 #include <stdlib.h>
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5188 #else
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #endif
5195
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5197 int
5198 main ()
5199 {
5200 int i;
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5204 return 2;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_run "$LINENO"; then :
5209
5210 else
5211 ac_cv_header_stdc=no
5212 fi
5213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5214 conftest.$ac_objext conftest.beam conftest.$ac_ext
5215 fi
5216
5217 fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5222
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5224
5225 fi
5226
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5230 do :
5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5233 "
5234 eval as_val=\$$as_ac_Header
5235 if test "x$as_val" = x""yes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241
5242 done
5243
5244
5245
5246 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5248 MINIX=yes
5249 else
5250 MINIX=
5251 fi
5252
5253
5254 if test "$MINIX" = yes; then
5255
5256 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5257
5258
5259 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5260
5261
5262 $as_echo "#define _MINIX 1" >>confdefs.h
5263
5264 fi
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5268 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5269 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274
5275 # define __EXTENSIONS__ 1
5276 $ac_includes_default
5277 int
5278 main ()
5279 {
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_safe_to_define___extensions__=yes
5287 else
5288 ac_cv_safe_to_define___extensions__=no
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5293 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5294 test $ac_cv_safe_to_define___extensions__ = yes &&
5295 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5296
5297 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5298
5299 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5300
5301 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5302
5303 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5304
5305
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5313 # On Suns, sometimes $CPP names a directory.
5314 if test -n "$CPP" && test -d "$CPP"; then
5315 CPP=
5316 fi
5317 if test -z "$CPP"; then
5318 if test "${ac_cv_prog_CPP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 # Double quotes because CPP needs to be expanded
5322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 do
5324 ac_preproc_ok=false
5325 for ac_c_preproc_warn_flag in '' yes
5326 do
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340 Syntax error
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5343
5344 else
5345 # Broken: fails on valid input.
5346 continue
5347 fi
5348 rm -f conftest.err conftest.$ac_ext
5349
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5357 # Broken: success on invalid input.
5358 continue
5359 else
5360 # Passes both tests.
5361 ac_preproc_ok=:
5362 break
5363 fi
5364 rm -f conftest.err conftest.$ac_ext
5365
5366 done
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.err conftest.$ac_ext
5369 if $ac_preproc_ok; then :
5370 break
5371 fi
5372
5373 done
5374 ac_cv_prog_CPP=$CPP
5375
5376 fi
5377 CPP=$ac_cv_prog_CPP
5378 else
5379 ac_cv_prog_CPP=$CPP
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5382 $as_echo "$CPP" >&6; }
5383 ac_preproc_ok=false
5384 for ac_c_preproc_warn_flag in '' yes
5385 do
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifdef __STDC__
5395 # include <limits.h>
5396 #else
5397 # include <assert.h>
5398 #endif
5399 Syntax error
5400 _ACEOF
5401 if ac_fn_c_try_cpp "$LINENO"; then :
5402
5403 else
5404 # Broken: fails on valid input.
5405 continue
5406 fi
5407 rm -f conftest.err conftest.$ac_ext
5408
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if ac_fn_c_try_cpp "$LINENO"; then :
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 # Passes both tests.
5420 ac_preproc_ok=:
5421 break
5422 fi
5423 rm -f conftest.err conftest.$ac_ext
5424
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then :
5429
5430 else
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." "$LINENO" 5; }
5435 fi
5436
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5444 $as_echo_n "checking for inline... " >&6; }
5445 if test "${ac_cv_c_inline+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_inline=no
5449 for ac_kw in inline __inline__ __inline; do
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __cplusplus
5453 typedef int foo_t;
5454 static $ac_kw foo_t static_foo () {return 0; }
5455 $ac_kw foo_t foo () {return 0; }
5456 #endif
5457
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_c_inline=$ac_kw
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 test "$ac_cv_c_inline" != no && break
5464 done
5465
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5468 $as_echo "$ac_cv_c_inline" >&6; }
5469
5470 case $ac_cv_c_inline in
5471 inline | yes) ;;
5472 *)
5473 case $ac_cv_c_inline in
5474 no) ac_val=;;
5475 *) ac_val=$ac_cv_c_inline;;
5476 esac
5477 cat >>confdefs.h <<_ACEOF
5478 #ifndef __cplusplus
5479 #define inline $ac_val
5480 #endif
5481 _ACEOF
5482 ;;
5483 esac
5484
5485
5486 # Check whether --enable-largefile was given.
5487 if test "${enable_largefile+set}" = set; then :
5488 enableval=$enable_largefile;
5489 fi
5490
5491 if test "$enable_largefile" != no; then
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_cv_sys_largefile_CC=no
5499 if test "$GCC" != yes; then
5500 ac_save_CC=$CC
5501 while :; do
5502 # IRIX 6.2 and later do not support large files by default,
5503 # so use the C compiler's -n32 option if that helps.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 /* Check that off_t can represent 2**63 - 1 correctly.
5508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5509 since some C++ compilers masquerading as C compilers
5510 incorrectly reject 9223372036854775807. */
5511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5513 && LARGE_OFF_T % 2147483647 == 1)
5514 ? 1 : -1];
5515 int
5516 main ()
5517 {
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 break
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext
5527 CC="$CC -n32"
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_sys_largefile_CC=' -n32'; break
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext
5532 break
5533 done
5534 CC=$ac_save_CC
5535 rm -f conftest.$ac_ext
5536 fi
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5540 if test "$ac_cv_sys_largefile_CC" != no; then
5541 CC=$CC$ac_cv_sys_largefile_CC
5542 fi
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 while :; do
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5560 ? 1 : -1];
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_sys_file_offset_bits=no; break
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5584 ? 1 : -1];
5585 int
5586 main ()
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_sys_file_offset_bits=64; break
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 ac_cv_sys_file_offset_bits=unknown
5598 break
5599 done
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5603 case $ac_cv_sys_file_offset_bits in #(
5604 no | unknown) ;;
5605 *)
5606 cat >>confdefs.h <<_ACEOF
5607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5608 _ACEOF
5609 ;;
5610 esac
5611 rm -rf conftest*
5612 if test $ac_cv_sys_file_offset_bits = unknown; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5615 if test "${ac_cv_sys_large_files+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 while :; do
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_large_files=no; break
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #define _LARGE_FILES 1
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5653 ? 1 : -1];
5654 int
5655 main ()
5656 {
5657
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_sys_large_files=1; break
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 ac_cv_sys_large_files=unknown
5667 break
5668 done
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5671 $as_echo "$ac_cv_sys_large_files" >&6; }
5672 case $ac_cv_sys_large_files in #(
5673 no | unknown) ;;
5674 *)
5675 cat >>confdefs.h <<_ACEOF
5676 #define _LARGE_FILES $ac_cv_sys_large_files
5677 _ACEOF
5678 ;;
5679 esac
5680 rm -rf conftest*
5681 fi
5682 fi
5683
5684
5685 # sizeof(char) is 1 by definition.
5686 # The cast to long int works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5691 $as_echo_n "checking size of void *... " >&6; }
5692 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5696
5697 else
5698 if test "$ac_cv_type_void_p" = yes; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 { as_fn_set_status 77
5702 as_fn_error "cannot compute sizeof (void *)
5703 See \`config.log' for more details." "$LINENO" 5; }; }
5704 else
5705 ac_cv_sizeof_void_p=0
5706 fi
5707 fi
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5711 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5712
5713
5714
5715 cat >>confdefs.h <<_ACEOF
5716 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5717 _ACEOF
5718
5719
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5725 $as_echo_n "checking size of short... " >&6; }
5726 if test "${ac_cv_sizeof_short+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5730
5731 else
5732 if test "$ac_cv_type_short" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status 77
5736 as_fn_error "cannot compute sizeof (short)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5738 else
5739 ac_cv_sizeof_short=0
5740 fi
5741 fi
5742
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5745 $as_echo "$ac_cv_sizeof_short" >&6; }
5746
5747
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_SHORT $ac_cv_sizeof_short
5751 _ACEOF
5752
5753
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5759 $as_echo_n "checking size of int... " >&6; }
5760 if test "${ac_cv_sizeof_int+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5764
5765 else
5766 if test "$ac_cv_type_int" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status 77
5770 as_fn_error "cannot compute sizeof (int)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5772 else
5773 ac_cv_sizeof_int=0
5774 fi
5775 fi
5776
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5779 $as_echo "$ac_cv_sizeof_int" >&6; }
5780
5781
5782
5783 cat >>confdefs.h <<_ACEOF
5784 #define SIZEOF_INT $ac_cv_sizeof_int
5785 _ACEOF
5786
5787
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5793 $as_echo_n "checking size of long... " >&6; }
5794 if test "${ac_cv_sizeof_long+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5798
5799 else
5800 if test "$ac_cv_type_long" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (long)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806 else
5807 ac_cv_sizeof_long=0
5808 fi
5809 fi
5810
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5813 $as_echo "$ac_cv_sizeof_long" >&6; }
5814
5815
5816
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 _ACEOF
5820
5821
5822 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5823 if test "x$ac_cv_type_long_long" = x""yes; then :
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LONG_LONG 1
5827 _ACEOF
5828
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5834 $as_echo_n "checking size of long long... " >&6; }
5835 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5839
5840 else
5841 if test "$ac_cv_type_long_long" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (long long)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847 else
5848 ac_cv_sizeof_long_long=0
5849 fi
5850 fi
5851
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5854 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5855
5856
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5860 _ACEOF
5861
5862
5863 fi
5864
5865 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5866 if test "x$ac_cv_type___int64" = x""yes; then :
5867
5868 cat >>confdefs.h <<_ACEOF
5869 #define HAVE___INT64 1
5870 _ACEOF
5871
5872 # The cast to long int works around a bug in the HP C Compiler
5873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5875 # This bug is HP SR number 8606223364.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5877 $as_echo_n "checking size of __int64... " >&6; }
5878 if test "${ac_cv_sizeof___int64+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5882
5883 else
5884 if test "$ac_cv_type___int64" = yes; then
5885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5887 { as_fn_set_status 77
5888 as_fn_error "cannot compute sizeof (__int64)
5889 See \`config.log' for more details." "$LINENO" 5; }; }
5890 else
5891 ac_cv_sizeof___int64=0
5892 fi
5893 fi
5894
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5897 $as_echo "$ac_cv_sizeof___int64" >&6; }
5898
5899
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5903 _ACEOF
5904
5905
5906 fi
5907
5908 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5909 case $ac_cv_c_int8_t in #(
5910 no|yes) ;; #(
5911 *)
5912
5913 cat >>confdefs.h <<_ACEOF
5914 #define int8_t $ac_cv_c_int8_t
5915 _ACEOF
5916 ;;
5917 esac
5918
5919 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5920 case $ac_cv_c_int16_t in #(
5921 no|yes) ;; #(
5922 *)
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define int16_t $ac_cv_c_int16_t
5926 _ACEOF
5927 ;;
5928 esac
5929
5930 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5931 case $ac_cv_c_int32_t in #(
5932 no|yes) ;; #(
5933 *)
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define int32_t $ac_cv_c_int32_t
5937 _ACEOF
5938 ;;
5939 esac
5940
5941 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5942 case $ac_cv_c_int64_t in #(
5943 no|yes) ;; #(
5944 *)
5945
5946 cat >>confdefs.h <<_ACEOF
5947 #define int64_t $ac_cv_c_int64_t
5948 _ACEOF
5949 ;;
5950 esac
5951
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5954 $as_echo_n "checking for long long int... " >&6; }
5955 if test "${ac_cv_type_long_long_int+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960
5961 /* For now, do not test the preprocessor; as of 2007 there are too many
5962 implementations with broken preprocessors. Perhaps this can
5963 be revisited in 2012. In the meantime, code should not expect
5964 #if to work with literals wider than 32 bits. */
5965 /* Test literals. */
5966 long long int ll = 9223372036854775807ll;
5967 long long int nll = -9223372036854775807LL;
5968 unsigned long long int ull = 18446744073709551615ULL;
5969 /* Test constant expressions. */
5970 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5971 ? 1 : -1)];
5972 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5973 ? 1 : -1)];
5974 int i = 63;
5975 int
5976 main ()
5977 {
5978 /* Test availability of runtime routines for shift and division. */
5979 long long int llmax = 9223372036854775807ll;
5980 unsigned long long int ullmax = 18446744073709551615ull;
5981 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5982 | (llmax / ll) | (llmax % ll)
5983 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5984 | (ullmax / ull) | (ullmax % ull));
5985 ;
5986 return 0;
5987 }
5988
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 if test "$cross_compiling" = yes; then :
5992 ac_cv_type_long_long_int=yes
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #include <limits.h>
5997 #ifndef LLONG_MAX
5998 # define HALF \
5999 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6000 # define LLONG_MAX (HALF - 1 + HALF)
6001 #endif
6002 int
6003 main ()
6004 {
6005 long long int n = 1;
6006 int i;
6007 for (i = 0; ; i++)
6008 {
6009 long long int m = n << i;
6010 if (m >> i != n)
6011 return 1;
6012 if (LLONG_MAX / 2 < m)
6013 break;
6014 }
6015 return 0;
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_run "$LINENO"; then :
6021 ac_cv_type_long_long_int=yes
6022 else
6023 ac_cv_type_long_long_int=no
6024 fi
6025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6026 conftest.$ac_objext conftest.beam conftest.$ac_ext
6027 fi
6028
6029 else
6030 ac_cv_type_long_long_int=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6036 $as_echo "$ac_cv_type_long_long_int" >&6; }
6037 if test $ac_cv_type_long_long_int = yes; then
6038
6039 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6040
6041 fi
6042
6043
6044
6045 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6046 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6047
6048 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6049
6050 else
6051 test $ac_cv_type_long_long_int = yes \
6052 && ac_type='long long int' \
6053 || ac_type='long int'
6054
6055 cat >>confdefs.h <<_ACEOF
6056 #define intmax_t $ac_type
6057 _ACEOF
6058
6059 fi
6060
6061
6062
6063 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6064 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6065
6066 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6067
6068 else
6069 for ac_type in 'int' 'long int' 'long long int'; do
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 int
6074 main ()
6075 {
6076 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6077 test_array [0] = 0
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084
6085 cat >>confdefs.h <<_ACEOF
6086 #define intptr_t $ac_type
6087 _ACEOF
6088
6089 ac_type=
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 test -z "$ac_type" && break
6093 done
6094 fi
6095
6096
6097 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6098 case $ac_cv_c_uint8_t in #(
6099 no|yes) ;; #(
6100 *)
6101
6102 $as_echo "#define _UINT8_T 1" >>confdefs.h
6103
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint8_t $ac_cv_c_uint8_t
6107 _ACEOF
6108 ;;
6109 esac
6110
6111 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6112 case $ac_cv_c_uint16_t in #(
6113 no|yes) ;; #(
6114 *)
6115
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define uint16_t $ac_cv_c_uint16_t
6119 _ACEOF
6120 ;;
6121 esac
6122
6123 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6124 case $ac_cv_c_uint32_t in #(
6125 no|yes) ;; #(
6126 *)
6127
6128 $as_echo "#define _UINT32_T 1" >>confdefs.h
6129
6130
6131 cat >>confdefs.h <<_ACEOF
6132 #define uint32_t $ac_cv_c_uint32_t
6133 _ACEOF
6134 ;;
6135 esac
6136
6137 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6138 case $ac_cv_c_uint64_t in #(
6139 no|yes) ;; #(
6140 *)
6141
6142 $as_echo "#define _UINT64_T 1" >>confdefs.h
6143
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define uint64_t $ac_cv_c_uint64_t
6147 _ACEOF
6148 ;;
6149 esac
6150
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6153 $as_echo_n "checking for unsigned long long int... " >&6; }
6154 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6170 ? 1 : -1)];
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6172 ? 1 : -1)];
6173 int i = 63;
6174 int
6175 main ()
6176 {
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6184 ;
6185 return 0;
6186 }
6187
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"; then :
6190 ac_cv_type_unsigned_long_long_int=yes
6191 else
6192 ac_cv_type_unsigned_long_long_int=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6198 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6199 if test $ac_cv_type_unsigned_long_long_int = yes; then
6200
6201 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6202
6203 fi
6204
6205
6206
6207 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6208 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6209
6210 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6211
6212 else
6213 test $ac_cv_type_unsigned_long_long_int = yes \
6214 && ac_type='unsigned long long int' \
6215 || ac_type='unsigned long int'
6216
6217 cat >>confdefs.h <<_ACEOF
6218 #define uintmax_t $ac_type
6219 _ACEOF
6220
6221 fi
6222
6223
6224
6225 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6226 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6227
6228 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6229
6230 else
6231 for ac_type in 'unsigned int' 'unsigned long int' \
6232 'unsigned long long int'; do
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 int
6237 main ()
6238 {
6239 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6240 test_array [0] = 0
6241
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define uintptr_t $ac_type
6250 _ACEOF
6251
6252 ac_type=
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 test -z "$ac_type" && break
6256 done
6257 fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 # ---------------------
6274 # Warnings and checking
6275 # ---------------------
6276
6277 # Check $CC warning features (if it's GCC).
6278 # We want to use -pedantic, but we don't want warnings about
6279 # * 'long long'
6280 # * variadic macros
6281 # * overlong strings
6282 # * C++11 narrowing conversions in { }
6283 # So, we only use -pedantic if we can disable those warnings.
6284
6285 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6286 # Check whether --enable-build-format-warnings was given.
6287 if test "${enable_build_format_warnings+set}" = set; then :
6288 enableval=$enable_build_format_warnings;
6289 else
6290 enable_build_format_warnings=yes
6291 fi
6292
6293 if test $enable_build_format_warnings = no; then :
6294 wf_opt=-Wno-format
6295 else
6296 wf_opt=
6297 fi
6298 loose_warn=
6299 save_CFLAGS="$CFLAGS"
6300 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6301 # Do the check with the no- prefix removed since gcc silently
6302 # accepts any -Wno-* option on purpose
6303 case $real_option in
6304 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6305 *) option=$real_option ;;
6306 esac
6307 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6310 $as_echo_n "checking whether $CC supports $option... " >&6; }
6311 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 CFLAGS="$option"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317
6318 int
6319 main ()
6320 {
6321
6322 ;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 eval "$as_acx_Woption=yes"
6328 else
6329 eval "$as_acx_Woption=no"
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332
6333 fi
6334 eval ac_res=\$$as_acx_Woption
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6336 $as_echo "$ac_res" >&6; }
6337 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6338 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6339 fi
6340 done
6341 CFLAGS="$save_CFLAGS"
6342
6343 c_loose_warn=
6344 save_CFLAGS="$CFLAGS"
6345 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6346 # Do the check with the no- prefix removed since gcc silently
6347 # accepts any -Wno-* option on purpose
6348 case $real_option in
6349 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6350 *) option=$real_option ;;
6351 esac
6352 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6355 $as_echo_n "checking whether $CC supports $option... " >&6; }
6356 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 CFLAGS="$option"
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362
6363 int
6364 main ()
6365 {
6366
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 eval "$as_acx_Woption=yes"
6373 else
6374 eval "$as_acx_Woption=no"
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377
6378 fi
6379 eval ac_res=\$$as_acx_Woption
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6383 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6384 fi
6385 done
6386 CFLAGS="$save_CFLAGS"
6387
6388 strict_warn=
6389 save_CFLAGS="$CFLAGS"
6390 for real_option in -Wmissing-format-attribute; do
6391 # Do the check with the no- prefix removed since gcc silently
6392 # accepts any -Wno-* option on purpose
6393 case $real_option in
6394 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6395 *) option=$real_option ;;
6396 esac
6397 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 CFLAGS="$option"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6418 else
6419 eval "$as_acx_Woption=no"
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422
6423 fi
6424 eval ac_res=\$$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6429 fi
6430 done
6431 CFLAGS="$save_CFLAGS"
6432
6433 save_CFLAGS="$CFLAGS"
6434 for real_option in -Woverloaded-virtual; do
6435 # Do the check with the no- prefix removed since gcc silently
6436 # accepts any -Wno-* option on purpose
6437 case $real_option in
6438 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6439 *) option=$real_option ;;
6440 esac
6441 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6444 $as_echo_n "checking whether $CC supports $option... " >&6; }
6445 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 CFLAGS="$option"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451
6452 int
6453 main ()
6454 {
6455
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 eval "$as_acx_Woption=yes"
6462 else
6463 eval "$as_acx_Woption=no"
6464 fi
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466
6467 fi
6468 eval ac_res=\$$as_acx_Woption
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6470 $as_echo "$ac_res" >&6; }
6471 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6472 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6473 fi
6474 done
6475 CFLAGS="$save_CFLAGS"
6476
6477 c_strict_warn=
6478 save_CFLAGS="$CFLAGS"
6479 for real_option in -Wold-style-definition -Wc++-compat; do
6480 # Do the check with the no- prefix removed since gcc silently
6481 # accepts any -Wno-* option on purpose
6482 case $real_option in
6483 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6484 *) option=$real_option ;;
6485 esac
6486 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6489 $as_echo_n "checking whether $CC supports $option... " >&6; }
6490 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 CFLAGS="$option"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496
6497 int
6498 main ()
6499 {
6500
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 eval "$as_acx_Woption=yes"
6507 else
6508 eval "$as_acx_Woption=no"
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511
6512 fi
6513 eval ac_res=\$$as_acx_Woption
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6516 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6517 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6518 fi
6519 done
6520 CFLAGS="$save_CFLAGS"
6521
6522 # Do the check with the no- prefix removed from the warning options
6523 # since gcc silently accepts any -Wno-* option on purpose
6524 if test "$GCC" = yes; then :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6526 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6527 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 save_CFLAGS="$CFLAGS"
6531 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534
6535 int
6536 main ()
6537 {
6538
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6545 else
6546 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 CFLAGS="$save_CFLAGS"
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6552 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6553 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6554 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6555 fi
6556
6557 fi
6558
6559 # Check whether --enable-werror-always was given.
6560 if test "${enable_werror_always+set}" = set; then :
6561 enableval=$enable_werror_always;
6562 else
6563 enable_werror_always=no
6564 fi
6565
6566 if test $enable_werror_always = yes; then :
6567 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6568 fi
6569
6570
6571
6572 # The above macros do nothing if the compiler is not GCC. However, the
6573 # Makefile has more goo to add other flags, so these variables are used
6574 # to enable warnings only for GCC.
6575 warn_cflags=
6576 warn_cxxflags=
6577 if test "x$GCC" = "xyes"; then
6578 warn_cflags='$(GCC_WARN_CFLAGS)'
6579 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6580 fi
6581
6582
6583
6584 # Disable exceptions and RTTI if building with g++
6585 noexception_flags=
6586 save_CFLAGS="$CFLAGS"
6587 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6588 # Do the check with the no- prefix removed since gcc silently
6589 # accepts any -Wno-* option on purpose
6590 case $real_option in
6591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6592 *) option=$real_option ;;
6593 esac
6594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6597 $as_echo_n "checking whether $CC supports $option... " >&6; }
6598 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 CFLAGS="$option"
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604
6605 int
6606 main ()
6607 {
6608
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 eval "$as_acx_Woption=yes"
6615 else
6616 eval "$as_acx_Woption=no"
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619
6620 fi
6621 eval ac_res=\$$as_acx_Woption
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6623 $as_echo "$ac_res" >&6; }
6624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6625 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6626 fi
6627 done
6628 CFLAGS="$save_CFLAGS"
6629
6630
6631 # Enable expensive internal checks
6632 is_release=
6633 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6634 is_release=yes
6635 fi
6636
6637 # Check whether --enable-checking was given.
6638 if test "${enable_checking+set}" = set; then :
6639 enableval=$enable_checking; ac_checking_flags="${enableval}"
6640 else
6641
6642 # Determine the default checks.
6643 if test x$is_release = x ; then
6644 ac_checking_flags=yes
6645 else
6646 ac_checking_flags=release
6647 fi
6648 fi
6649
6650 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6651 for check in release $ac_checking_flags
6652 do
6653 case $check in
6654 # these set all the flags to specific states
6655 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6656 ac_fold_checking= ; ac_gc_checking=1 ;
6657 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6658 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6659 ac_tree_checking=1 ; ac_valgrind_checking= ;
6660 ac_types_checking=1 ;;
6661 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6662 ac_fold_checking= ; ac_gc_checking= ;
6663 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6664 ac_rtlflag_checking= ; ac_runtime_checking= ;
6665 ac_tree_checking= ; ac_valgrind_checking= ;
6666 ac_types_checking= ;;
6667 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6668 ac_fold_checking=1 ; ac_gc_checking=1 ;
6669 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6670 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6671 ac_tree_checking=1 ; ac_valgrind_checking= ;
6672 ac_types_checking=1 ;;
6673 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6674 ac_fold_checking= ; ac_gc_checking= ;
6675 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6676 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6677 ac_tree_checking= ; ac_valgrind_checking= ;
6678 ac_types_checking= ;;
6679 # these enable particular checks
6680 assert) ac_assert_checking=1 ;;
6681 df) ac_df_checking=1 ;;
6682 fold) ac_fold_checking=1 ;;
6683 gc) ac_gc_checking=1 ;;
6684 gcac) ac_gc_always_collect=1 ;;
6685 gimple) ac_gimple_checking=1 ;;
6686 misc) ac_checking=1 ;;
6687 rtl) ac_rtl_checking=1 ;;
6688 rtlflag) ac_rtlflag_checking=1 ;;
6689 runtime) ac_runtime_checking=1 ;;
6690 tree) ac_tree_checking=1 ;;
6691 types) ac_types_checking=1 ;;
6692 valgrind) ac_valgrind_checking=1 ;;
6693 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6694 esac
6695 done
6696 IFS="$ac_save_IFS"
6697
6698 nocommon_flag=""
6699 if test x$ac_checking != x ; then
6700
6701 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6702
6703 nocommon_flag=-fno-common
6704 fi
6705
6706 if test x$ac_df_checking != x ; then
6707
6708 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6709
6710 fi
6711 if test x$ac_assert_checking != x ; then
6712
6713 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6714
6715 fi
6716 if test x$ac_gimple_checking != x ; then
6717
6718 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6719
6720 fi
6721
6722 if test x$ac_runtime_checking != x ; then
6723
6724 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6725
6726 fi
6727 if test x$ac_tree_checking != x ; then
6728
6729 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6730
6731 TREEBROWSER=tree-browser.o
6732 TREECHECKING=yes
6733 fi
6734 if test x$ac_types_checking != x ; then
6735
6736 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6737
6738 fi
6739
6740
6741 if test x$ac_rtl_checking != x ; then
6742
6743 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6744
6745 fi
6746 if test x$ac_rtlflag_checking != x ; then
6747
6748 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6749
6750 fi
6751 if test x$ac_gc_checking != x ; then
6752
6753 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6754
6755 fi
6756 if test x$ac_gc_always_collect != x ; then
6757
6758 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6759
6760 fi
6761 if test x$ac_fold_checking != x ; then
6762
6763 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6764
6765 fi
6766 valgrind_path_defines=
6767 valgrind_command=
6768
6769 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6770 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6771 have_valgrind_h=yes
6772 else
6773 have_valgrind_h=no
6774 fi
6775
6776
6777
6778 # It is certainly possible that there's valgrind but no valgrind.h.
6779 # GCC relies on making annotations so we must have both.
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6781 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <valgrind/memcheck.h>
6785 #ifndef VALGRIND_DISCARD
6786 #error VALGRIND_DISCARD not defined
6787 #endif
6788 _ACEOF
6789 if ac_fn_c_try_cpp "$LINENO"; then :
6790 gcc_cv_header_valgrind_memcheck_h=yes
6791 else
6792 gcc_cv_header_valgrind_memcheck_h=no
6793 fi
6794 rm -f conftest.err conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6796 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6798 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <memcheck.h>
6802 #ifndef VALGRIND_DISCARD
6803 #error VALGRIND_DISCARD not defined
6804 #endif
6805 _ACEOF
6806 if ac_fn_c_try_cpp "$LINENO"; then :
6807 gcc_cv_header_memcheck_h=yes
6808 else
6809 gcc_cv_header_memcheck_h=no
6810 fi
6811 rm -f conftest.err conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6813 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6814 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6815
6816 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6817
6818 fi
6819 if test $gcc_cv_header_memcheck_h = yes; then
6820
6821 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6822
6823 fi
6824
6825 if test x$ac_valgrind_checking != x ; then
6826
6827 # Prepare PATH_SEPARATOR.
6828 # The user is always right.
6829 if test "${PATH_SEPARATOR+set}" != set; then
6830 echo "#! /bin/sh" >conf$$.sh
6831 echo "exit 0" >>conf$$.sh
6832 chmod +x conf$$.sh
6833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6834 PATH_SEPARATOR=';'
6835 else
6836 PATH_SEPARATOR=:
6837 fi
6838 rm -f conf$$.sh
6839 fi
6840
6841 # Find out how to test for executable files. Don't use a zero-byte file,
6842 # as systems may use methods other than mode bits to determine executability.
6843 cat >conf$$.file <<_ASEOF
6844 #! /bin/sh
6845 exit 0
6846 _ASEOF
6847 chmod +x conf$$.file
6848 if test -x conf$$.file >/dev/null 2>&1; then
6849 ac_executable_p="test -x"
6850 else
6851 ac_executable_p="test -f"
6852 fi
6853 rm -f conf$$.file
6854
6855 # Extract the first word of "valgrind", so it can be a program name with args.
6856 set dummy valgrind; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 case "$valgrind_path" in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6868 for ac_dir in $PATH; do
6869 IFS="$ac_save_IFS"
6870 test -z "$ac_dir" && ac_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6873 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6874 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6875 break 2
6876 fi
6877 fi
6878 done
6879 done
6880 IFS="$ac_save_IFS"
6881 ;;
6882 esac
6883 fi
6884 valgrind_path="$ac_cv_path_valgrind_path"
6885 if test -n "$valgrind_path"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6887 $as_echo "$valgrind_path" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$valgrind_path" = "x" \
6894 || (test $have_valgrind_h = no \
6895 && test $gcc_cv_header_memcheck_h = no \
6896 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6897 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6898 fi
6899 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6900 valgrind_command="$valgrind_path -q"
6901
6902 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6903
6904 fi
6905
6906
6907
6908 # Enable code coverage collection
6909 # Check whether --enable-coverage was given.
6910 if test "${enable_coverage+set}" = set; then :
6911 enableval=$enable_coverage; case "${enableval}" in
6912 yes|noopt)
6913 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6914 ;;
6915 opt)
6916 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6917 ;;
6918 no)
6919 # a.k.a. --disable-coverage
6920 coverage_flags=""
6921 ;;
6922 *)
6923 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6924 ;;
6925 esac
6926 else
6927 coverage_flags=""
6928 fi
6929
6930
6931
6932 # Check whether --enable-gather-detailed-mem-stats was given.
6933 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6934 enableval=$enable_gather_detailed_mem_stats;
6935 else
6936 enable_gather_detailed_mem_stats=no
6937 fi
6938
6939 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6940
6941 cat >>confdefs.h <<_ACEOF
6942 #define GATHER_STATISTICS $gather_stats
6943 _ACEOF
6944
6945
6946 # Check whether --enable-valgrind-annotations was given.
6947 if test "${enable_valgrind_annotations+set}" = set; then :
6948 enableval=$enable_valgrind_annotations;
6949 else
6950 enable_valgrind_annotations=no
6951 fi
6952
6953 if test x$enable_valgrind_annotations != xno \
6954 || test x$ac_valgrind_checking != x; then
6955 if (test $have_valgrind_h = no \
6956 && test $gcc_cv_header_memcheck_h = no \
6957 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6958 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6959 fi
6960
6961 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
6962
6963 fi
6964
6965 # -------------------------------
6966 # Miscenalleous configure options
6967 # -------------------------------
6968
6969 # With stabs
6970
6971 # Check whether --with-stabs was given.
6972 if test "${with_stabs+set}" = set; then :
6973 withval=$with_stabs; stabs="$with_stabs"
6974 else
6975 stabs=no
6976 fi
6977
6978
6979 # Determine whether or not multilibs are enabled.
6980 # Check whether --enable-multilib was given.
6981 if test "${enable_multilib+set}" = set; then :
6982 enableval=$enable_multilib;
6983 else
6984 enable_multilib=yes
6985 fi
6986
6987
6988
6989 # Determine whether or not multiarch is enabled.
6990 # Check whether --enable-multiarch was given.
6991 if test "${enable_multiarch+set}" = set; then :
6992 enableval=$enable_multiarch; case "${enableval}" in
6993 yes|no|auto) enable_multiarch=$enableval;;
6994 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6995 esac
6996 else
6997 enable_multiarch=auto
6998 fi
6999
7000 if test x${enable_multiarch} = xauto; then
7001 if test x${with_native_system_header_dir} != x; then
7002 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7003 enable_multiarch=no
7004 fi
7005 if test x$host != x$target && test "x$with_sysroot" = x; then
7006 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7007 enable_multiarch=no
7008 fi
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7011 $as_echo_n "checking for multiarch configuration... " >&6; }
7012
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7014 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7015
7016 # needed for setting the multiarch name for soft-float/hard-float ABIs
7017
7018
7019
7020 # Enable __cxa_atexit for C++.
7021 # Check whether --enable-__cxa_atexit was given.
7022 if test "${enable___cxa_atexit+set}" = set; then :
7023 enableval=$enable___cxa_atexit;
7024 fi
7025
7026
7027 # Enable C extension for decimal float if target supports it.
7028
7029 # Check whether --enable-decimal-float was given.
7030 if test "${enable_decimal_float+set}" = set; then :
7031 enableval=$enable_decimal_float;
7032 case $enable_decimal_float in
7033 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7034 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7035 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7036 esac
7037
7038 else
7039
7040 case $target in
7041 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7042 i?86*-*-gnu* | \
7043 i?86*-*-mingw* | x86_64*-*-mingw* | \
7044 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7045 enable_decimal_float=yes
7046 ;;
7047 *)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7049 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7050 enable_decimal_float=no
7051 ;;
7052 esac
7053
7054 fi
7055
7056
7057 # x86's use BID format instead of DPD
7058 case x$enable_decimal_float in
7059 xyes)
7060 case $target in
7061 i?86*-*-* | x86_64*-*-*)
7062 enable_decimal_float=bid
7063 ;;
7064 *)
7065 enable_decimal_float=dpd
7066 ;;
7067 esac
7068 default_decimal_float=$enable_decimal_float
7069 ;;
7070 xno)
7071 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7072 # dependency on libdecnumber.
7073 default_decimal_float=dpd
7074 ;;
7075 esac
7076
7077
7078
7079
7080 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define ENABLE_DECIMAL_FLOAT $dfp
7084 _ACEOF
7085
7086
7087 # Use default_decimal_float for dependency.
7088 enable_decimal_float=$default_decimal_float
7089
7090 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7091
7092 cat >>confdefs.h <<_ACEOF
7093 #define ENABLE_DECIMAL_BID_FORMAT $bid
7094 _ACEOF
7095
7096
7097 # Enable C extension for fixed-point arithmetic.
7098 # Check whether --enable-fixed-point was given.
7099 if test "${enable_fixed_point+set}" = set; then :
7100 enableval=$enable_fixed_point;
7101 else
7102
7103 case $target in
7104 arm*)
7105 enable_fixed_point=yes
7106 ;;
7107
7108 mips*-*-*)
7109 enable_fixed_point=yes
7110 ;;
7111 *)
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7114 enable_fixed_point=no
7115 ;;
7116 esac
7117
7118 fi
7119
7120
7121
7122 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define ENABLE_FIXED_POINT $fixedpoint
7126 _ACEOF
7127
7128
7129 # Enable threads
7130 # Pass with no value to take the default
7131 # Pass with a value to specify a thread package
7132 # Check whether --enable-threads was given.
7133 if test "${enable_threads+set}" = set; then :
7134 enableval=$enable_threads;
7135 else
7136 enable_threads=''
7137 fi
7138
7139
7140 # Check whether --enable-tls was given.
7141 if test "${enable_tls+set}" = set; then :
7142 enableval=$enable_tls;
7143 case $enable_tls in
7144 yes | no) ;;
7145 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7146 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7147 esac
7148
7149 else
7150 enable_tls=''
7151 fi
7152
7153
7154 # Check whether --enable-objc-gc was given.
7155 if test "${enable_objc_gc+set}" = set; then :
7156 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7157 objc_boehm_gc=''
7158 else
7159 objc_boehm_gc=1
7160 fi
7161 else
7162 objc_boehm_gc=''
7163 fi
7164
7165
7166
7167 # Check whether --with-dwarf2 was given.
7168 if test "${with_dwarf2+set}" = set; then :
7169 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7170 else
7171 dwarf2=no
7172 fi
7173
7174
7175 # Check whether --enable-shared was given.
7176 if test "${enable_shared+set}" = set; then :
7177 enableval=$enable_shared;
7178 case $enable_shared in
7179 yes | no) ;;
7180 *)
7181 enable_shared=no
7182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7183 for pkg in $enableval; do
7184 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7185 enable_shared=yes
7186 fi
7187 done
7188 IFS="$ac_save_ifs"
7189 ;;
7190 esac
7191
7192 else
7193 enable_shared=yes
7194 fi
7195
7196
7197
7198
7199 # Check whether --with-native-system-header-dir was given.
7200 if test "${with_native_system_header_dir+set}" = set; then :
7201 withval=$with_native_system_header_dir;
7202 case ${with_native_system_header_dir} in
7203 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7204 /* | [A-Za-z]:[\\/]*) ;;
7205 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7206 esac
7207 configured_native_system_header_dir="${withval}"
7208
7209 else
7210 configured_native_system_header_dir=
7211 fi
7212
7213
7214
7215 # Check whether --with-build-sysroot was given.
7216 if test "${with_build_sysroot+set}" = set; then :
7217 withval=$with_build_sysroot; if test x"$withval" != x ; then
7218 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7219 fi
7220 else
7221 SYSROOT_CFLAGS_FOR_TARGET=
7222 fi
7223
7224
7225
7226 if test "x$prefix" = xNONE; then
7227 test_prefix=/usr/local
7228 else
7229 test_prefix=$prefix
7230 fi
7231 if test "x$exec_prefix" = xNONE; then
7232 test_exec_prefix=$test_prefix
7233 else
7234 test_exec_prefix=$exec_prefix
7235 fi
7236
7237
7238 # Check whether --with-sysroot was given.
7239 if test "${with_sysroot+set}" = set; then :
7240 withval=$with_sysroot;
7241 case ${with_sysroot} in
7242 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7243 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7244 esac
7245
7246 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7247 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7248
7249 case ${TARGET_SYSTEM_ROOT} in
7250 "${test_prefix}"|"${test_prefix}/"*|\
7251 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7252 '${prefix}'|'${prefix}/'*|\
7253 '${exec_prefix}'|'${exec_prefix}/'*)
7254 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7255 TARGET_SYSTEM_ROOT_DEFINE="$t"
7256 ;;
7257 esac
7258
7259 else
7260
7261 TARGET_SYSTEM_ROOT=
7262 TARGET_SYSTEM_ROOT_DEFINE=
7263 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7264
7265 fi
7266
7267
7268
7269
7270
7271
7272 # Check whether --with-specs was given.
7273 if test "${with_specs+set}" = set; then :
7274 withval=$with_specs; CONFIGURE_SPECS=$withval
7275 else
7276 CONFIGURE_SPECS=
7277
7278 fi
7279
7280
7281
7282
7283
7284 # Check whether --with-pkgversion was given.
7285 if test "${with_pkgversion+set}" = set; then :
7286 withval=$with_pkgversion; case "$withval" in
7287 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7288 no) PKGVERSION= ;;
7289 *) PKGVERSION="($withval) " ;;
7290 esac
7291 else
7292 PKGVERSION="(GCC) "
7293
7294 fi
7295
7296
7297
7298
7299
7300 # Check whether --with-bugurl was given.
7301 if test "${with_bugurl+set}" = set; then :
7302 withval=$with_bugurl; case "$withval" in
7303 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7304 no) BUGURL=
7305 ;;
7306 *) BUGURL="$withval"
7307 ;;
7308 esac
7309 else
7310 BUGURL="http://gcc.gnu.org/bugs.html"
7311
7312 fi
7313
7314 case ${BUGURL} in
7315 "")
7316 REPORT_BUGS_TO=
7317 REPORT_BUGS_TEXI=
7318 ;;
7319 *)
7320 REPORT_BUGS_TO="<$BUGURL>"
7321 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7322 ;;
7323 esac;
7324
7325
7326
7327
7328 # Sanity check enable_languages in case someone does not run the toplevel
7329 # configure # script.
7330 # Check whether --enable-languages was given.
7331 if test "${enable_languages+set}" = set; then :
7332 enableval=$enable_languages; case ,${enable_languages}, in
7333 ,,|,yes,)
7334 # go safe -- we cannot be much sure without the toplevel
7335 # configure's
7336 # analysis of which target libs are present and usable
7337 enable_languages=c
7338 ;;
7339 *,all,*)
7340 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7341 ;;
7342 *,c,*)
7343 ;;
7344 *)
7345 enable_languages=c,${enable_languages}
7346 ;;
7347 esac
7348 else
7349 enable_languages=c
7350 fi
7351
7352
7353
7354 # Check whether --with-multilib-list was given.
7355 if test "${with_multilib_list+set}" = set; then :
7356 withval=$with_multilib_list; :
7357 else
7358 with_multilib_list=default
7359 fi
7360
7361
7362 # -------------------------
7363 # Checks for other programs
7364 # -------------------------
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7367 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7368 set x ${MAKE-make}
7369 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 cat >conftest.make <<\_ACEOF
7374 SHELL = /bin/sh
7375 all:
7376 @echo '@@@%%%=$(MAKE)=@@@%%%'
7377 _ACEOF
7378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7380 *@@@%%%=?*=@@@%%%*)
7381 eval ac_cv_prog_make_${ac_make}_set=yes;;
7382 *)
7383 eval ac_cv_prog_make_${ac_make}_set=no;;
7384 esac
7385 rm -f conftest.make
7386 fi
7387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7390 SET_MAKE=
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 SET_MAKE="MAKE=${MAKE-make}"
7395 fi
7396
7397
7398 # Find some useful tools
7399 for ac_prog in gawk mawk nawk awk
7400 do
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_AWK+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$AWK"; then
7409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_AWK="$ac_prog"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 AWK=$ac_cv_prog_AWK
7429 if test -n "$AWK"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7431 $as_echo "$AWK" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 test -n "$AWK" && break
7439 done
7440
7441 # We need awk to create options.c and options.h.
7442 # Bail out if it's missing.
7443 case ${AWK} in
7444 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7445 esac
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7448 $as_echo_n "checking whether ln -s works... " >&6; }
7449 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7455 then
7456 gcc_cv_prog_LN_S="ln -s"
7457 else
7458 if ln conftestdata_f conftestdata_t 2>/dev/null
7459 then
7460 gcc_cv_prog_LN_S=ln
7461 else
7462 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7463 then
7464 gcc_cv_prog_LN_S="cp -p"
7465 else
7466 gcc_cv_prog_LN_S=cp
7467 fi
7468 fi
7469 fi
7470 rm -f conftestdata_f conftestdata_t
7471
7472 fi
7473 LN_S="$gcc_cv_prog_LN_S"
7474 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476 $as_echo "yes" >&6; }
7477 else
7478 if test "$gcc_cv_prog_LN_S" = "ln"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7480 $as_echo "no, using ln" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7483 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7484 fi
7485 fi
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7488 $as_echo_n "checking whether ln works... " >&6; }
7489 if test "${acx_cv_prog_LN+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 rm -f conftestdata_t
7493 echo >conftestdata_f
7494 if ln conftestdata_f conftestdata_t 2>/dev/null
7495 then
7496 acx_cv_prog_LN=ln
7497 else
7498 acx_cv_prog_LN=no
7499 fi
7500 rm -f conftestdata_f conftestdata_t
7501
7502 fi
7503 if test $acx_cv_prog_LN = no; then
7504 LN="$LN_S"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7506 $as_echo "no, using $LN" >&6; }
7507 else
7508 LN="$acx_cv_prog_LN"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510 $as_echo "yes" >&6; }
7511 fi
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$RANLIB"; then
7522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 RANLIB=$ac_cv_prog_RANLIB
7542 if test -n "$RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7544 $as_echo "$RANLIB" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_RANLIB"; then
7553 ac_ct_RANLIB=$RANLIB
7554 # Extract the first word of "ranlib", so it can be a program name with args.
7555 set dummy ranlib; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_RANLIB"; then
7562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_ac_ct_RANLIB="ranlib"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7582 if test -n "$ac_ct_RANLIB"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7584 $as_echo "$ac_ct_RANLIB" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590 if test "x$ac_ct_RANLIB" = x; then
7591 RANLIB=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 RANLIB=$ac_ct_RANLIB
7600 fi
7601 else
7602 RANLIB="$ac_cv_prog_RANLIB"
7603 fi
7604
7605 ranlib_flags=""
7606
7607
7608 # Find a good install program. We prefer a C program (faster),
7609 # so one script is as good as another. But avoid the broken or
7610 # incompatible versions:
7611 # SysV /etc/install, /usr/sbin/install
7612 # SunOS /usr/etc/install
7613 # IRIX /sbin/install
7614 # AIX /bin/install
7615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7617 # ./install, which can be erroneously created by make from ./install.sh.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7619 $as_echo_n "checking for a BSD compatible install... " >&6; }
7620 if test -z "$INSTALL"; then
7621 if test "${ac_cv_path_install+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7625 for ac_dir in $PATH; do
7626 # Account for people who put trailing slashes in PATH elements.
7627 case "$ac_dir/" in
7628 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7629 *)
7630 # OSF1 and SCO ODT 3.0 have their own names for install.
7631 for ac_prog in ginstall scoinst install; do
7632 if test -f $ac_dir/$ac_prog; then
7633 if test $ac_prog = install &&
7634 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7635 # AIX install. It has an incompatible calling convention.
7636 # OSF/1 installbsd also uses dspmsg, but is usable.
7637 :
7638 else
7639 ac_cv_path_install="$ac_dir/$ac_prog -c"
7640 break 2
7641 fi
7642 fi
7643 done
7644 ;;
7645 esac
7646 done
7647 IFS="$ac_save_IFS"
7648
7649 fi
7650 if test "${ac_cv_path_install+set}" = set; then
7651 INSTALL="$ac_cv_path_install"
7652 else
7653 # As a last resort, use the slow shell script. We don't cache a
7654 # path for INSTALL within a source directory, because that will
7655 # break other packages using the cache if that directory is
7656 # removed, or if the path is relative.
7657 INSTALL="$ac_install_sh"
7658 fi
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7661 $as_echo "$INSTALL" >&6; }
7662
7663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7664 # It thinks the first close brace ends the variable substitution.
7665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7666
7667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7668
7669
7670 # See if cmp has --ignore-initial.
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7672 $as_echo_n "checking for cmp's capabilities... " >&6; }
7673 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 echo abfoo >t1
7677 echo cdfoo >t2
7678 gcc_cv_prog_cmp_skip=slowcompare
7679 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7680 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7681 :
7682 else
7683 gcc_cv_prog_cmp_skip=gnucompare
7684 fi
7685 fi
7686 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7687 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7688 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7689 :
7690 else
7691 gcc_cv_prog_cmp_skip=fastcompare
7692 fi
7693 fi
7694 fi
7695 rm t1 t2
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7699 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7700 make_compare_target=$gcc_cv_prog_cmp_skip
7701
7702
7703
7704 # See if we have the mktemp command.
7705 # Extract the first word of "mktemp", so it can be a program name with args.
7706 set dummy mktemp; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$have_mktemp_command"; then
7713 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_have_mktemp_command="yes"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7731 fi
7732 fi
7733 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7734 if test -n "$have_mktemp_command"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7736 $as_echo "$have_mktemp_command" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742
7743
7744 # See if makeinfo has been installed and is modern enough
7745 # that we can use it.
7746
7747 # Extract the first word of "makeinfo", so it can be a program name with args.
7748 set dummy makeinfo; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$MAKEINFO"; then
7755 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_MAKEINFO="makeinfo"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 MAKEINFO=$ac_cv_prog_MAKEINFO
7775 if test -n "$MAKEINFO"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7777 $as_echo "$MAKEINFO" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 if test -n "$MAKEINFO"; then
7785 # Found it, now check the version.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7787 $as_echo_n "checking for modern makeinfo... " >&6; }
7788 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7792 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7793
7794 case $ac_prog_version in
7795 '') gcc_cv_prog_makeinfo_modern=no;;
7796 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7797 *) gcc_cv_prog_makeinfo_modern=no;;
7798 esac
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7802 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7803 else
7804 gcc_cv_prog_makeinfo_modern=no
7805 fi
7806 if test $gcc_cv_prog_makeinfo_modern = no; then
7807 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7808 fi
7809
7810 if test $gcc_cv_prog_makeinfo_modern = no; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7812 *** Makeinfo is missing or too old.
7813 *** Info documentation will not be built." >&5
7814 $as_echo "$as_me: WARNING:
7815 *** Makeinfo is missing or too old.
7816 *** Info documentation will not be built." >&2;}
7817 BUILD_INFO=
7818 else
7819 BUILD_INFO=info
7820 fi
7821
7822
7823 # Is pod2man recent enough to regenerate manpages?
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7825 $as_echo_n "checking for recent Pod::Man... " >&6; }
7826 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 GENERATED_MANPAGES=generated-manpages
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 GENERATED_MANPAGES=
7834 fi
7835
7836
7837 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7838
7839 # How about lex?
7840 for ac_prog in flex
7841 do
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_FLEX+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$FLEX"; then
7850 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_FLEX="$ac_prog"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 FLEX=$ac_cv_prog_FLEX
7870 if test -n "$FLEX"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7872 $as_echo "$FLEX" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 test -n "$FLEX" && break
7880 done
7881 test -n "$FLEX" || FLEX="$MISSING flex"
7882
7883
7884 # Bison?
7885 for ac_prog in bison
7886 do
7887 # Extract the first word of "$ac_prog", so it can be a program name with args.
7888 set dummy $ac_prog; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_BISON+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$BISON"; then
7895 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_BISON="$ac_prog"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 BISON=$ac_cv_prog_BISON
7915 if test -n "$BISON"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7917 $as_echo "$BISON" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 test -n "$BISON" && break
7925 done
7926 test -n "$BISON" || BISON="$MISSING bison"
7927
7928
7929 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7930 # check for build == host before using them.
7931
7932 # NM
7933 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7934 && test -d ../binutils ; then
7935 NM='${objdir}/../binutils/nm-new'
7936 else
7937 # Extract the first word of "nm", so it can be a program name with args.
7938 set dummy nm; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_NM+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$NM"; then
7945 ac_cv_prog_NM="$NM" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_NM="nm"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7963 fi
7964 fi
7965 NM=$ac_cv_prog_NM
7966 if test -n "$NM"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7968 $as_echo "$NM" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976
7977 # AR
7978 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7979 && test -d ../binutils ; then
7980 AR='${objdir}/../binutils/ar'
7981 else
7982 # Extract the first word of "ar", so it can be a program name with args.
7983 set dummy ar; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_AR+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$AR"; then
7990 ac_cv_prog_AR="$AR" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_AR="ar"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8008 fi
8009 fi
8010 AR=$ac_cv_prog_AR
8011 if test -n "$AR"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8013 $as_echo "$AR" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019
8020 fi
8021
8022
8023 # --------------------
8024 # Checks for C headers
8025 # --------------------
8026
8027 # Need to reject headers which give warnings, so that the -Werror bootstrap
8028 # works later. *sigh* This needs to come before all header checks.
8029
8030 ac_c_preproc_warn_flag=yes
8031
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8033 $as_echo_n "checking for ANSI C header files... " >&6; }
8034 if test "${ac_cv_header_stdc+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <stdlib.h>
8040 #include <stdarg.h>
8041 #include <string.h>
8042 #include <float.h>
8043
8044 int
8045 main ()
8046 {
8047
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 ac_cv_header_stdc=yes
8054 else
8055 ac_cv_header_stdc=no
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058
8059 if test $ac_cv_header_stdc = yes; then
8060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #include <string.h>
8064
8065 _ACEOF
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 $EGREP "memchr" >/dev/null 2>&1; then :
8068
8069 else
8070 ac_cv_header_stdc=no
8071 fi
8072 rm -f conftest*
8073
8074 fi
8075
8076 if test $ac_cv_header_stdc = yes; then
8077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <stdlib.h>
8081
8082 _ACEOF
8083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8084 $EGREP "free" >/dev/null 2>&1; then :
8085
8086 else
8087 ac_cv_header_stdc=no
8088 fi
8089 rm -f conftest*
8090
8091 fi
8092
8093 if test $ac_cv_header_stdc = yes; then
8094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8095 if test "$cross_compiling" = yes; then :
8096 :
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 #include <ctype.h>
8101 #include <stdlib.h>
8102 #if ((' ' & 0x0FF) == 0x020)
8103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8105 #else
8106 # define ISLOWER(c) \
8107 (('a' <= (c) && (c) <= 'i') \
8108 || ('j' <= (c) && (c) <= 'r') \
8109 || ('s' <= (c) && (c) <= 'z'))
8110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8111 #endif
8112
8113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8114 int
8115 main ()
8116 {
8117 int i;
8118 for (i = 0; i < 256; i++)
8119 if (XOR (islower (i), ISLOWER (i))
8120 || toupper (i) != TOUPPER (i))
8121 return 2;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_run "$LINENO"; then :
8126
8127 else
8128 ac_cv_header_stdc=no
8129 fi
8130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8131 conftest.$ac_objext conftest.beam conftest.$ac_ext
8132 fi
8133
8134 fi
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8137 $as_echo "$ac_cv_header_stdc" >&6; }
8138 if test $ac_cv_header_stdc = yes; then
8139
8140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8141
8142 fi
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8146 if test "${ac_cv_header_time+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 #include <sys/types.h>
8152 #include <sys/time.h>
8153 #include <time.h>
8154
8155 int
8156 main ()
8157 {
8158 if ((struct tm *) 0)
8159 return 0;
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 ac_cv_header_time=yes
8166 else
8167 ac_cv_header_time=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8172 $as_echo "$ac_cv_header_time" >&6; }
8173 if test $ac_cv_header_time = yes; then
8174
8175 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8176
8177 fi
8178
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8180 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8181 if test "${gcc_cv_header_string+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <string.h>
8187 #include <strings.h>
8188 int
8189 main ()
8190 {
8191
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 gcc_cv_header_string=yes
8198 else
8199 gcc_cv_header_string=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8204 $as_echo "$gcc_cv_header_string" >&6; }
8205 if test $gcc_cv_header_string = yes; then
8206
8207 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8208
8209 fi
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8212 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8213 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/wait.h>
8220 #ifndef WEXITSTATUS
8221 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8222 #endif
8223 #ifndef WIFEXITED
8224 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8225 #endif
8226
8227 int
8228 main ()
8229 {
8230 int s;
8231 wait (&s);
8232 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 ac_cv_header_sys_wait_h=yes
8239 else
8240 ac_cv_header_sys_wait_h=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8245 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8246 if test $ac_cv_header_sys_wait_h = yes; then
8247
8248 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8249
8250 fi
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8253 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8254 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <termios.h>
8261 #ifdef TIOCGWINSZ
8262 yes
8263 #endif
8264
8265 _ACEOF
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "yes" >/dev/null 2>&1; then :
8268 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8269 else
8270 ac_cv_sys_tiocgwinsz_in_termios_h=no
8271 fi
8272 rm -f conftest*
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8276 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8277
8278 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8280 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8281 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 #include <sys/types.h>
8287 #include <sys/ioctl.h>
8288 #ifdef TIOCGWINSZ
8289 yes
8290 #endif
8291
8292 _ACEOF
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294 $EGREP "yes" >/dev/null 2>&1; then :
8295 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8296 else
8297 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8298 fi
8299 rm -f conftest*
8300
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8303 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8304
8305 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8306
8307 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8308
8309 fi
8310 fi
8311
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8316 do :
8317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8319 eval as_val=\$$as_ac_Header
8320 if test "x$as_val" = x""yes; then :
8321 cat >>confdefs.h <<_ACEOF
8322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8323 _ACEOF
8324
8325 fi
8326 done
8327
8328
8329 # Check for thread headers.
8330 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8331 if test "x$ac_cv_header_thread_h" = x""yes; then :
8332 have_thread_h=yes
8333 else
8334 have_thread_h=
8335 fi
8336
8337 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8338 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8339 have_pthread_h=yes
8340 else
8341 have_pthread_h=
8342 fi
8343
8344
8345 # These tests can't be done till we know if we have limits.h.
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8347 $as_echo_n "checking for CHAR_BIT... " >&6; }
8348 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #ifdef HAVE_LIMITS_H
8354 #include <limits.h>
8355 #endif
8356 #ifdef CHAR_BIT
8357 found
8358 #endif
8359 _ACEOF
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361 $EGREP "found" >/dev/null 2>&1; then :
8362 gcc_cv_decl_char_bit=yes
8363 else
8364 gcc_cv_decl_char_bit=no
8365 fi
8366 rm -f conftest*
8367
8368
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8371 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8372 if test $gcc_cv_decl_char_bit = no; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8374 $as_echo_n "checking number of bits in a byte... " >&6; }
8375 if test "${gcc_cv_c_nbby+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 i=8
8379 gcc_cv_c_nbby=
8380 while test $i -lt 65; do
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383
8384 int
8385 main ()
8386 {
8387 switch(0) {
8388 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8389 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8390 ; }
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 gcc_cv_c_nbby=$i; break
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 i=`expr $i + 1`
8400 done
8401 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8402
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8405 $as_echo "$gcc_cv_c_nbby" >&6; }
8406 if test $gcc_cv_c_nbby = failed; then
8407 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8408 else
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define CHAR_BIT $gcc_cv_c_nbby
8412 _ACEOF
8413
8414 fi
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8418 if test "${ac_cv_c_bigendian+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 ac_cv_c_bigendian=unknown
8422 # See if we're dealing with a universal compiler.
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #ifndef __APPLE_CC__
8426 not a universal capable compiler
8427 #endif
8428 typedef int dummy;
8429
8430 _ACEOF
8431 if ac_fn_c_try_compile "$LINENO"; then :
8432
8433 # Check for potential -arch flags. It is not universal unless
8434 # there are at least two -arch flags with different values.
8435 ac_arch=
8436 ac_prev=
8437 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8438 if test -n "$ac_prev"; then
8439 case $ac_word in
8440 i?86 | x86_64 | ppc | ppc64)
8441 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8442 ac_arch=$ac_word
8443 else
8444 ac_cv_c_bigendian=universal
8445 break
8446 fi
8447 ;;
8448 esac
8449 ac_prev=
8450 elif test "x$ac_word" = "x-arch"; then
8451 ac_prev=arch
8452 fi
8453 done
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test $ac_cv_c_bigendian = unknown; then
8457 # See if sys/param.h defines the BYTE_ORDER macro.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/param.h>
8462
8463 int
8464 main ()
8465 {
8466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8467 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8468 && LITTLE_ENDIAN)
8469 bogus endian macros
8470 #endif
8471
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 # It does; now see whether it defined to BIG_ENDIAN or not.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <sys/types.h>
8481 #include <sys/param.h>
8482
8483 int
8484 main ()
8485 {
8486 #if BYTE_ORDER != BIG_ENDIAN
8487 not big endian
8488 #endif
8489
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 ac_cv_c_bigendian=yes
8496 else
8497 ac_cv_c_bigendian=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503 if test $ac_cv_c_bigendian = unknown; then
8504 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <limits.h>
8508
8509 int
8510 main ()
8511 {
8512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8513 bogus endian macros
8514 #endif
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to _BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <limits.h>
8525
8526 int
8527 main ()
8528 {
8529 #ifndef _BIG_ENDIAN
8530 not big endian
8531 #endif
8532
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"; then :
8538 ac_cv_c_bigendian=yes
8539 else
8540 ac_cv_c_bigendian=no
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 if test $ac_cv_c_bigendian = unknown; then
8547 # Compile a test program.
8548 if test "$cross_compiling" = yes; then :
8549 # Try to guess by grepping values from an object file.
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 short int ascii_mm[] =
8553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8554 short int ascii_ii[] =
8555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8556 int use_ascii (int i) {
8557 return ascii_mm[i] + ascii_ii[i];
8558 }
8559 short int ebcdic_ii[] =
8560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8561 short int ebcdic_mm[] =
8562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8563 int use_ebcdic (int i) {
8564 return ebcdic_mm[i] + ebcdic_ii[i];
8565 }
8566 extern int foo;
8567
8568 int
8569 main ()
8570 {
8571 return use_ascii (foo) == use_ebcdic (foo);
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8578 ac_cv_c_bigendian=yes
8579 fi
8580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8581 if test "$ac_cv_c_bigendian" = unknown; then
8582 ac_cv_c_bigendian=no
8583 else
8584 # finding both strings is unlikely to happen, but who knows?
8585 ac_cv_c_bigendian=unknown
8586 fi
8587 fi
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 else
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 $ac_includes_default
8594 int
8595 main ()
8596 {
8597
8598 /* Are we little or big endian? From Harbison&Steele. */
8599 union
8600 {
8601 long int l;
8602 char c[sizeof (long int)];
8603 } u;
8604 u.l = 1;
8605 return u.c[sizeof (long int) - 1] == 1;
8606
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_run "$LINENO"; then :
8612 ac_cv_c_bigendian=no
8613 else
8614 ac_cv_c_bigendian=yes
8615 fi
8616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8617 conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 fi
8619
8620 fi
8621 fi
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8623 $as_echo "$ac_cv_c_bigendian" >&6; }
8624 case $ac_cv_c_bigendian in #(
8625 yes)
8626 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8627 ;; #(
8628 no)
8629 ;; #(
8630 universal)
8631
8632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8633
8634 ;; #(
8635 *)
8636 as_fn_error "unknown endianness
8637 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8638 esac
8639
8640
8641 # ----------------------
8642 # Checks for C++ headers
8643 # ----------------------
8644
8645 ac_ext=cpp
8646 ac_cpp='$CXXCPP $CPPFLAGS'
8647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8651 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8652 if test -z "$CXXCPP"; then
8653 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 # Double quotes because CXXCPP needs to be expanded
8657 for CXXCPP in "$CXX -E" "/lib/cpp"
8658 do
8659 ac_preproc_ok=false
8660 for ac_cxx_preproc_warn_flag in '' yes
8661 do
8662 # Use a header file that comes with gcc, so configuring glibc
8663 # with a fresh cross-compiler works.
8664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8665 # <limits.h> exists even on freestanding compilers.
8666 # On the NeXT, cc -E runs the code through the compiler's parser,
8667 # not just through cpp. "Syntax error" is here to catch this case.
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670 #ifdef __STDC__
8671 # include <limits.h>
8672 #else
8673 # include <assert.h>
8674 #endif
8675 Syntax error
8676 _ACEOF
8677 if ac_fn_cxx_try_cpp "$LINENO"; then :
8678
8679 else
8680 # Broken: fails on valid input.
8681 continue
8682 fi
8683 rm -f conftest.err conftest.$ac_ext
8684
8685 # OK, works on sane cases. Now check whether nonexistent headers
8686 # can be detected and how.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <ac_nonexistent.h>
8690 _ACEOF
8691 if ac_fn_cxx_try_cpp "$LINENO"; then :
8692 # Broken: success on invalid input.
8693 continue
8694 else
8695 # Passes both tests.
8696 ac_preproc_ok=:
8697 break
8698 fi
8699 rm -f conftest.err conftest.$ac_ext
8700
8701 done
8702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8703 rm -f conftest.err conftest.$ac_ext
8704 if $ac_preproc_ok; then :
8705 break
8706 fi
8707
8708 done
8709 ac_cv_prog_CXXCPP=$CXXCPP
8710
8711 fi
8712 CXXCPP=$ac_cv_prog_CXXCPP
8713 else
8714 ac_cv_prog_CXXCPP=$CXXCPP
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8717 $as_echo "$CXXCPP" >&6; }
8718 ac_preproc_ok=false
8719 for ac_cxx_preproc_warn_flag in '' yes
8720 do
8721 # Use a header file that comes with gcc, so configuring glibc
8722 # with a fresh cross-compiler works.
8723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 # <limits.h> exists even on freestanding compilers.
8725 # On the NeXT, cc -E runs the code through the compiler's parser,
8726 # not just through cpp. "Syntax error" is here to catch this case.
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #ifdef __STDC__
8730 # include <limits.h>
8731 #else
8732 # include <assert.h>
8733 #endif
8734 Syntax error
8735 _ACEOF
8736 if ac_fn_cxx_try_cpp "$LINENO"; then :
8737
8738 else
8739 # Broken: fails on valid input.
8740 continue
8741 fi
8742 rm -f conftest.err conftest.$ac_ext
8743
8744 # OK, works on sane cases. Now check whether nonexistent headers
8745 # can be detected and how.
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #include <ac_nonexistent.h>
8749 _ACEOF
8750 if ac_fn_cxx_try_cpp "$LINENO"; then :
8751 # Broken: success on invalid input.
8752 continue
8753 else
8754 # Passes both tests.
8755 ac_preproc_ok=:
8756 break
8757 fi
8758 rm -f conftest.err conftest.$ac_ext
8759
8760 done
8761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8762 rm -f conftest.err conftest.$ac_ext
8763 if $ac_preproc_ok; then :
8764
8765 else
8766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8769 See \`config.log' for more details." >&5
8770 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8771 See \`config.log' for more details." >&2;}; }
8772 fi
8773
8774 ac_ext=c
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
8780
8781 ac_ext=cpp
8782 ac_cpp='$CXXCPP $CPPFLAGS'
8783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8786
8787
8788
8789
8790 for ac_header in unordered_map
8791 do :
8792 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8793 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_UNORDERED_MAP 1
8796 _ACEOF
8797
8798 fi
8799 done
8800
8801 for ac_header in tr1/unordered_map
8802 do :
8803 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8804 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8805 cat >>confdefs.h <<_ACEOF
8806 #define HAVE_TR1_UNORDERED_MAP 1
8807 _ACEOF
8808
8809 fi
8810 done
8811
8812 for ac_header in ext/hash_map
8813 do :
8814 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8815 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_EXT_HASH_MAP 1
8818 _ACEOF
8819
8820 fi
8821 done
8822
8823
8824 ac_ext=c
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830
8831 # --------
8832 # Dependency checking.
8833 # --------
8834
8835 ac_ext=cpp
8836 ac_cpp='$CXXCPP $CPPFLAGS'
8837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8840
8841 rm -rf .tst 2>/dev/null
8842 mkdir .tst 2>/dev/null
8843 if test -d .tst; then
8844 am__leading_dot=.
8845 else
8846 am__leading_dot=_
8847 fi
8848 rmdir .tst 2>/dev/null
8849
8850 DEPDIR="${am__leading_dot}deps"
8851
8852 ac_config_commands="$ac_config_commands depdir"
8853
8854
8855 ac_config_commands="$ac_config_commands gccdepdir"
8856
8857
8858 depcc="$CXX" am_compiler_list=
8859
8860 am_depcomp=$ac_aux_dir/depcomp
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8862 $as_echo_n "checking dependency style of $depcc... " >&6; }
8863 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -f "$am_depcomp"; then
8867 # We make a subdir and do the tests there. Otherwise we can end up
8868 # making bogus files that we don't know about and never remove. For
8869 # instance it was reported that on HP-UX the gcc test will end up
8870 # making a dummy file named `D' -- because `-MD' means `put the output
8871 # in D'.
8872 mkdir conftest.dir
8873 # Copy depcomp to subdir because otherwise we won't find it if we're
8874 # using a relative directory.
8875 cp "$am_depcomp" conftest.dir
8876 cd conftest.dir
8877 # We will build objects and dependencies in a subdirectory because
8878 # it helps to detect inapplicable dependency modes. For instance
8879 # both Tru64's cc and ICC support -MD to output dependencies as a
8880 # side effect of compilation, but ICC will put the dependencies in
8881 # the current directory while Tru64 will put them in the object
8882 # directory.
8883 mkdir sub
8884
8885 am_cv_CXX_dependencies_compiler_type=none
8886 if test "$am_compiler_list" = ""; then
8887 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8888 fi
8889 for depmode in $am_compiler_list; do
8890 if test $depmode = none; then break; fi
8891
8892 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8893 # Setup a source with many dependencies, because some compilers
8894 # like to wrap large dependency lists on column 80 (with \), and
8895 # we should not choose a depcomp mode which is confused by this.
8896 #
8897 # We need to recreate these files for each test, as the compiler may
8898 # overwrite some of them when testing with obscure command lines.
8899 # This happens at least with the AIX C compiler.
8900 : > sub/conftest.c
8901 for i in 1 2 3 4 5 6; do
8902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8904 # Solaris 8's {/usr,}/bin/sh.
8905 touch sub/conftst$i.h
8906 done
8907 echo "include sub/conftest.Po" > confmf
8908
8909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8910 # mode. It turns out that the SunPro C++ compiler does not properly
8911 # handle `-M -o', and we need to detect this.
8912 depcmd="depmode=$depmode \
8913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8916 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8917 if env $depcmd > conftest.err 2>&1 &&
8918 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8920 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8921 # icc doesn't choke on unknown options, it will just issue warnings
8922 # or remarks (even with -Werror). So we grep stderr for any message
8923 # that says an option was ignored or not supported.
8924 # When given -MP, icc 7.0 and 7.1 complain thusly:
8925 # icc: Command line warning: ignoring option '-M'; no argument required
8926 # The diagnosis changed in icc 8.0:
8927 # icc: Command line remark: option '-MP' not supported
8928 if (grep 'ignoring option' conftest.err ||
8929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8930 am_cv_CXX_dependencies_compiler_type=$depmode
8931 $as_echo "$as_me:$LINENO: success" >&5
8932 break
8933 fi
8934 fi
8935 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8936 sed -e 's/^/| /' < conftest.err >&5
8937 done
8938
8939 cd ..
8940 rm -rf conftest.dir
8941 else
8942 am_cv_CXX_dependencies_compiler_type=none
8943 fi
8944
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8947 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8948 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8949 then as_fn_error "no usable dependency style found" "$LINENO" 5
8950 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8951
8952 fi
8953
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960
8961 # --------
8962 # UNSORTED
8963 # --------
8964
8965
8966 # These libraries may be used by collect2.
8967 # We may need a special search path to get them linked.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8969 $as_echo_n "checking for collect2 libraries... " >&6; }
8970 if test "${gcc_cv_collect2_libs+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 save_LIBS="$LIBS"
8974 for libs in '' -lld -lmld \
8975 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8976 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8977 do
8978 LIBS="$libs"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981
8982 /* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 char ldopen ();
8989 int
8990 main ()
8991 {
8992 return ldopen ();
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"; then :
8998 gcc_cv_collect2_libs="$libs"; break
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 done
9003 LIBS="$save_LIBS"
9004 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9007 $as_echo "$gcc_cv_collect2_libs" >&6; }
9008 case $gcc_cv_collect2_libs in
9009 "none required") ;;
9010 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9011 esac
9012
9013
9014 # When building Ada code on Alpha, we need exc_resume which is usually in
9015 # -lexc. So test for it.
9016 save_LIBS="$LIBS"
9017 LIBS=
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9019 $as_echo_n "checking for library containing exc_resume... " >&6; }
9020 if test "${ac_cv_search_exc_resume+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 ac_func_search_save_LIBS=$LIBS
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026
9027 /* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
9030 #ifdef __cplusplus
9031 extern "C"
9032 #endif
9033 char exc_resume ();
9034 int
9035 main ()
9036 {
9037 return exc_resume ();
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 for ac_lib in '' exc; do
9043 if test -z "$ac_lib"; then
9044 ac_res="none required"
9045 else
9046 ac_res=-l$ac_lib
9047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9048 fi
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ac_cv_search_exc_resume=$ac_res
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext
9054 if test "${ac_cv_search_exc_resume+set}" = set; then :
9055 break
9056 fi
9057 done
9058 if test "${ac_cv_search_exc_resume+set}" = set; then :
9059
9060 else
9061 ac_cv_search_exc_resume=no
9062 fi
9063 rm conftest.$ac_ext
9064 LIBS=$ac_func_search_save_LIBS
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9067 $as_echo "$ac_cv_search_exc_resume" >&6; }
9068 ac_res=$ac_cv_search_exc_resume
9069 if test "$ac_res" != no; then :
9070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071
9072 fi
9073
9074 GNAT_LIBEXC="$LIBS"
9075 LIBS="$save_LIBS"
9076
9077
9078 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9079 save_LIBS="$LIBS"
9080 LIBS=
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9082 $as_echo_n "checking for library containing kstat_open... " >&6; }
9083 if test "${ac_cv_search_kstat_open+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 ac_func_search_save_LIBS=$LIBS
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char kstat_open ();
9097 int
9098 main ()
9099 {
9100 return kstat_open ();
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 for ac_lib in '' kstat; do
9106 if test -z "$ac_lib"; then
9107 ac_res="none required"
9108 else
9109 ac_res=-l$ac_lib
9110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9111 fi
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 ac_cv_search_kstat_open=$ac_res
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext
9117 if test "${ac_cv_search_kstat_open+set}" = set; then :
9118 break
9119 fi
9120 done
9121 if test "${ac_cv_search_kstat_open+set}" = set; then :
9122
9123 else
9124 ac_cv_search_kstat_open=no
9125 fi
9126 rm conftest.$ac_ext
9127 LIBS=$ac_func_search_save_LIBS
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9130 $as_echo "$ac_cv_search_kstat_open" >&6; }
9131 ac_res=$ac_cv_search_kstat_open
9132 if test "$ac_res" != no; then :
9133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9134
9135 fi
9136
9137 EXTRA_GCC_LIBS="$LIBS"
9138 LIBS="$save_LIBS"
9139
9140
9141 # Some systems put ldexp and frexp in libm instead of libc; assume
9142 # they're both in the same place. jcf-dump needs them.
9143 save_LIBS="$LIBS"
9144 LIBS=
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9146 $as_echo_n "checking for library containing ldexp... " >&6; }
9147 if test "${ac_cv_search_ldexp+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_func_search_save_LIBS=$LIBS
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153
9154 /* Override any GCC internal prototype to avoid an error.
9155 Use char because int might match the return type of a GCC
9156 builtin and then its argument prototype would still apply. */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 char ldexp ();
9161 int
9162 main ()
9163 {
9164 return ldexp ();
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 for ac_lib in '' m; do
9170 if test -z "$ac_lib"; then
9171 ac_res="none required"
9172 else
9173 ac_res=-l$ac_lib
9174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9175 fi
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 ac_cv_search_ldexp=$ac_res
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext
9181 if test "${ac_cv_search_ldexp+set}" = set; then :
9182 break
9183 fi
9184 done
9185 if test "${ac_cv_search_ldexp+set}" = set; then :
9186
9187 else
9188 ac_cv_search_ldexp=no
9189 fi
9190 rm conftest.$ac_ext
9191 LIBS=$ac_func_search_save_LIBS
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9194 $as_echo "$ac_cv_search_ldexp" >&6; }
9195 ac_res=$ac_cv_search_ldexp
9196 if test "$ac_res" != no; then :
9197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9198
9199 fi
9200
9201 LDEXP_LIB="$LIBS"
9202 LIBS="$save_LIBS"
9203
9204
9205 # Use <inttypes.h> only if it exists,
9206 # doesn't clash with <sys/types.h>, and declares intmax_t.
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9208 $as_echo_n "checking for inttypes.h... " >&6; }
9209 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <sys/types.h>
9215 #include <inttypes.h>
9216 int
9217 main ()
9218 {
9219 intmax_t i = -1;
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 gcc_cv_header_inttypes_h=yes
9226 else
9227 gcc_cv_header_inttypes_h=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 fi
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9233 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9234 if test $gcc_cv_header_inttypes_h = yes; then
9235
9236 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9237
9238 fi
9239
9240
9241
9242 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9243 sysconf strsignal getrusage nl_langinfo \
9244 gettimeofday mbstowcs wcswidth mmap setlocale \
9245 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
9246 do :
9247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9249 eval as_val=\$$as_ac_var
9250 if test "x$as_val" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9253 _ACEOF
9254
9255 fi
9256 done
9257
9258
9259 if test x$ac_cv_func_mbstowcs = xyes; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9261 $as_echo_n "checking whether mbstowcs works... " >&6; }
9262 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 if test "$cross_compiling" = yes; then :
9266 gcc_cv_func_mbstowcs_works=yes
9267 else
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <stdlib.h>
9271 int main()
9272 {
9273 mbstowcs(0, "", 0);
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_run "$LINENO"; then :
9278 gcc_cv_func_mbstowcs_works=yes
9279 else
9280 gcc_cv_func_mbstowcs_works=no
9281 fi
9282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9283 conftest.$ac_objext conftest.beam conftest.$ac_ext
9284 fi
9285
9286 fi
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9288 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9289 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9290
9291 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9292
9293 fi
9294 fi
9295
9296 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9297 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9298
9299 else
9300
9301 cat >>confdefs.h <<_ACEOF
9302 #define ssize_t int
9303 _ACEOF
9304
9305 fi
9306
9307 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9308 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9309
9310 else
9311
9312 cat >>confdefs.h <<_ACEOF
9313 #define caddr_t char *
9314 _ACEOF
9315
9316 fi
9317
9318
9319
9320 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9321 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9322 gcc_header_sys_mman_h=yes
9323 else
9324 gcc_header_sys_mman_h=no
9325 fi
9326
9327 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9328 if test "x$ac_cv_func_mmap" = x""yes; then :
9329 gcc_func_mmap=yes
9330 else
9331 gcc_func_mmap=no
9332 fi
9333
9334 if test "$gcc_header_sys_mman_h" != yes \
9335 || test "$gcc_func_mmap" != yes; then
9336 gcc_cv_func_mmap_file=no
9337 gcc_cv_func_mmap_dev_zero=no
9338 gcc_cv_func_mmap_anon=no
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9341 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9342 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 # Add a system to this blacklist if
9346 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9347 # memory area containing the same data that you'd get if you applied
9348 # read() to the same fd. The only system known to have a problem here
9349 # is VMS, where text files have record structure.
9350 case "$host_os" in
9351 *vms* | ultrix*)
9352 gcc_cv_func_mmap_file=no ;;
9353 *)
9354 gcc_cv_func_mmap_file=yes;;
9355 esac
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9358 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9360 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9361 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 # Add a system to this blacklist if it has mmap() but /dev/zero
9365 # does not exist, or if mmapping /dev/zero does not give anonymous
9366 # zeroed pages with both the following properties:
9367 # 1. If you map N consecutive pages in with one call, and then
9368 # unmap any subset of those pages, the pages that were not
9369 # explicitly unmapped remain accessible.
9370 # 2. If you map two adjacent blocks of memory and then unmap them
9371 # both at once, they must both go away.
9372 # Systems known to be in this category are Windows (all variants),
9373 # VMS, and Darwin.
9374 case "$host_os" in
9375 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9376 gcc_cv_func_mmap_dev_zero=no ;;
9377 *)
9378 gcc_cv_func_mmap_dev_zero=yes;;
9379 esac
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9382 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9383
9384 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9386 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9387 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <sys/types.h>
9393 #include <sys/mman.h>
9394 #include <unistd.h>
9395
9396 #ifndef MAP_ANONYMOUS
9397 #define MAP_ANONYMOUS MAP_ANON
9398 #endif
9399
9400 int
9401 main ()
9402 {
9403 int n = MAP_ANONYMOUS;
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_compile "$LINENO"; then :
9409 gcc_cv_decl_map_anon=yes
9410 else
9411 gcc_cv_decl_map_anon=no
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9416 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9417
9418 if test $gcc_cv_decl_map_anon = no; then
9419 gcc_cv_func_mmap_anon=no
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9422 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9423 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9427 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9428 # doesn't give anonymous zeroed pages with the same properties listed
9429 # above for use of /dev/zero.
9430 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9431 case "$host_os" in
9432 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9433 gcc_cv_func_mmap_anon=no ;;
9434 *)
9435 gcc_cv_func_mmap_anon=yes;;
9436 esac
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9439 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9440 fi
9441 fi
9442
9443 if test $gcc_cv_func_mmap_file = yes; then
9444
9445 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9446
9447 fi
9448 if test $gcc_cv_func_mmap_dev_zero = yes; then
9449
9450 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9451
9452 fi
9453 if test $gcc_cv_func_mmap_anon = yes; then
9454
9455 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9456
9457 fi
9458
9459
9460 case "${host}" in
9461 *-*-*vms*)
9462 # Under VMS, vfork works very differently than on Unix. The standard test
9463 # won't work, and it isn't easily adaptable. It makes more sense to
9464 # just force it.
9465 ac_cv_func_vfork_works=yes
9466 ;;
9467 esac
9468 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9469 if test "x$ac_cv_type_pid_t" = x""yes; then :
9470
9471 else
9472
9473 cat >>confdefs.h <<_ACEOF
9474 #define pid_t int
9475 _ACEOF
9476
9477 fi
9478
9479 for ac_header in vfork.h
9480 do :
9481 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9482 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_VFORK_H 1
9485 _ACEOF
9486
9487 fi
9488 done
9489
9490 for ac_func in fork vfork
9491 do :
9492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9494 eval as_val=\$$as_ac_var
9495 if test "x$as_val" = x""yes; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9498 _ACEOF
9499
9500 fi
9501 done
9502
9503 if test "x$ac_cv_func_fork" = xyes; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9505 $as_echo_n "checking for working fork... " >&6; }
9506 if test "${ac_cv_func_fork_works+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 if test "$cross_compiling" = yes; then :
9510 ac_cv_func_fork_works=cross
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 int
9516 main ()
9517 {
9518
9519 /* By Ruediger Kuhlmann. */
9520 return fork () < 0;
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_run "$LINENO"; then :
9527 ac_cv_func_fork_works=yes
9528 else
9529 ac_cv_func_fork_works=no
9530 fi
9531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9532 conftest.$ac_objext conftest.beam conftest.$ac_ext
9533 fi
9534
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9537 $as_echo "$ac_cv_func_fork_works" >&6; }
9538
9539 else
9540 ac_cv_func_fork_works=$ac_cv_func_fork
9541 fi
9542 if test "x$ac_cv_func_fork_works" = xcross; then
9543 case $host in
9544 *-*-amigaos* | *-*-msdosdjgpp*)
9545 # Override, as these systems have only a dummy fork() stub
9546 ac_cv_func_fork_works=no
9547 ;;
9548 *)
9549 ac_cv_func_fork_works=yes
9550 ;;
9551 esac
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9553 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9554 fi
9555 ac_cv_func_vfork_works=$ac_cv_func_vfork
9556 if test "x$ac_cv_func_vfork" = xyes; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9558 $as_echo_n "checking for working vfork... " >&6; }
9559 if test "${ac_cv_func_vfork_works+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 if test "$cross_compiling" = yes; then :
9563 ac_cv_func_vfork_works=cross
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 /* Thanks to Paul Eggert for this test. */
9568 $ac_includes_default
9569 #include <sys/wait.h>
9570 #ifdef HAVE_VFORK_H
9571 # include <vfork.h>
9572 #endif
9573 /* On some sparc systems, changes by the child to local and incoming
9574 argument registers are propagated back to the parent. The compiler
9575 is told about this with #include <vfork.h>, but some compilers
9576 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9577 static variable whose address is put into a register that is
9578 clobbered by the vfork. */
9579 static void
9580 #ifdef __cplusplus
9581 sparc_address_test (int arg)
9582 # else
9583 sparc_address_test (arg) int arg;
9584 #endif
9585 {
9586 static pid_t child;
9587 if (!child) {
9588 child = vfork ();
9589 if (child < 0) {
9590 perror ("vfork");
9591 _exit(2);
9592 }
9593 if (!child) {
9594 arg = getpid();
9595 write(-1, "", 0);
9596 _exit (arg);
9597 }
9598 }
9599 }
9600
9601 int
9602 main ()
9603 {
9604 pid_t parent = getpid ();
9605 pid_t child;
9606
9607 sparc_address_test (0);
9608
9609 child = vfork ();
9610
9611 if (child == 0) {
9612 /* Here is another test for sparc vfork register problems. This
9613 test uses lots of local variables, at least as many local
9614 variables as main has allocated so far including compiler
9615 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9616 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9617 reuse the register of parent for one of the local variables,
9618 since it will think that parent can't possibly be used any more
9619 in this routine. Assigning to the local variable will thus
9620 munge parent in the parent process. */
9621 pid_t
9622 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9623 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9624 /* Convince the compiler that p..p7 are live; otherwise, it might
9625 use the same hardware register for all 8 local variables. */
9626 if (p != p1 || p != p2 || p != p3 || p != p4
9627 || p != p5 || p != p6 || p != p7)
9628 _exit(1);
9629
9630 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9631 from child file descriptors. If the child closes a descriptor
9632 before it execs or exits, this munges the parent's descriptor
9633 as well. Test for this by closing stdout in the child. */
9634 _exit(close(fileno(stdout)) != 0);
9635 } else {
9636 int status;
9637 struct stat st;
9638
9639 while (wait(&status) != child)
9640 ;
9641 return (
9642 /* Was there some problem with vforking? */
9643 child < 0
9644
9645 /* Did the child fail? (This shouldn't happen.) */
9646 || status
9647
9648 /* Did the vfork/compiler bug occur? */
9649 || parent != getpid()
9650
9651 /* Did the file descriptor bug occur? */
9652 || fstat(fileno(stdout), &st) != 0
9653 );
9654 }
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_run "$LINENO"; then :
9658 ac_cv_func_vfork_works=yes
9659 else
9660 ac_cv_func_vfork_works=no
9661 fi
9662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9663 conftest.$ac_objext conftest.beam conftest.$ac_ext
9664 fi
9665
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9668 $as_echo "$ac_cv_func_vfork_works" >&6; }
9669
9670 fi;
9671 if test "x$ac_cv_func_fork_works" = xcross; then
9672 ac_cv_func_vfork_works=$ac_cv_func_vfork
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9674 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9675 fi
9676
9677 if test "x$ac_cv_func_vfork_works" = xyes; then
9678
9679 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9680
9681 else
9682
9683 $as_echo "#define vfork fork" >>confdefs.h
9684
9685 fi
9686 if test "x$ac_cv_func_fork_works" = xyes; then
9687
9688 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9689
9690 fi
9691
9692
9693 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9694 # iconv() prototype.
9695 ac_ext=cpp
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9700
9701
9702 if test "X$prefix" = "XNONE"; then
9703 acl_final_prefix="$ac_default_prefix"
9704 else
9705 acl_final_prefix="$prefix"
9706 fi
9707 if test "X$exec_prefix" = "XNONE"; then
9708 acl_final_exec_prefix='${prefix}'
9709 else
9710 acl_final_exec_prefix="$exec_prefix"
9711 fi
9712 acl_save_prefix="$prefix"
9713 prefix="$acl_final_prefix"
9714 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9715 prefix="$acl_save_prefix"
9716
9717
9718 # Check whether --with-gnu-ld was given.
9719 if test "${with_gnu_ld+set}" = set; then :
9720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9721 else
9722 with_gnu_ld=no
9723 fi
9724
9725 # Prepare PATH_SEPARATOR.
9726 # The user is always right.
9727 if test "${PATH_SEPARATOR+set}" != set; then
9728 echo "#! /bin/sh" >conf$$.sh
9729 echo "exit 0" >>conf$$.sh
9730 chmod +x conf$$.sh
9731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9732 PATH_SEPARATOR=';'
9733 else
9734 PATH_SEPARATOR=:
9735 fi
9736 rm -f conf$$.sh
9737 fi
9738 ac_prog=ld
9739 if test "$GCC" = yes; then
9740 # Check if gcc -print-prog-name=ld gives a path.
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9742 $as_echo_n "checking for ld used by GCC... " >&6; }
9743 case $host in
9744 *-*-mingw*)
9745 # gcc leaves a trailing carriage return which upsets mingw
9746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9747 *)
9748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9749 esac
9750 case $ac_prog in
9751 # Accept absolute paths.
9752 [\\/]* | [A-Za-z]:[\\/]*)
9753 re_direlt='/[^/][^/]*/\.\./'
9754 # Canonicalize the path of ld
9755 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9756 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9757 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9758 done
9759 test -z "$LD" && LD="$ac_prog"
9760 ;;
9761 "")
9762 # If it fails, then pretend we aren't using GCC.
9763 ac_prog=ld
9764 ;;
9765 *)
9766 # If it is relative, then search for the first ld in PATH.
9767 with_gnu_ld=unknown
9768 ;;
9769 esac
9770 elif test "$with_gnu_ld" = yes; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9772 $as_echo_n "checking for GNU ld... " >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9775 $as_echo_n "checking for non-GNU ld... " >&6; }
9776 fi
9777 if test "${acl_cv_path_LD+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 if test -z "$LD"; then
9781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9782 for ac_dir in $PATH; do
9783 test -z "$ac_dir" && ac_dir=.
9784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9785 acl_cv_path_LD="$ac_dir/$ac_prog"
9786 # Check to see if the program is GNU ld. I'd rather use --version,
9787 # but apparently some GNU ld's only accept -v.
9788 # Break only if it was the GNU/non-GNU ld that we prefer.
9789 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9790 test "$with_gnu_ld" != no && break
9791 else
9792 test "$with_gnu_ld" != yes && break
9793 fi
9794 fi
9795 done
9796 IFS="$ac_save_ifs"
9797 else
9798 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9799 fi
9800 fi
9801
9802 LD="$acl_cv_path_LD"
9803 if test -n "$LD"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9805 $as_echo "$LD" >&6; }
9806 else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9809 fi
9810 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9813 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9817 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9818 acl_cv_prog_gnu_ld=yes
9819 else
9820 acl_cv_prog_gnu_ld=no
9821 fi
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9824 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9825 with_gnu_ld=$acl_cv_prog_gnu_ld
9826
9827
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9830 $as_echo_n "checking for shared library run path origin... " >&6; }
9831 if test "${acl_cv_rpath+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834
9835 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9836 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9837 . ./conftest.sh
9838 rm -f ./conftest.sh
9839 acl_cv_rpath=done
9840
9841 fi
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9843 $as_echo "$acl_cv_rpath" >&6; }
9844 wl="$acl_cv_wl"
9845 libext="$acl_cv_libext"
9846 shlibext="$acl_cv_shlibext"
9847 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9848 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9849 hardcode_direct="$acl_cv_hardcode_direct"
9850 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9851 # Check whether --enable-rpath was given.
9852 if test "${enable_rpath+set}" = set; then :
9853 enableval=$enable_rpath; :
9854 else
9855 enable_rpath=yes
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865 use_additional=yes
9866
9867 acl_save_prefix="$prefix"
9868 prefix="$acl_final_prefix"
9869 acl_save_exec_prefix="$exec_prefix"
9870 exec_prefix="$acl_final_exec_prefix"
9871
9872 eval additional_includedir=\"$includedir\"
9873 eval additional_libdir=\"$libdir\"
9874
9875 exec_prefix="$acl_save_exec_prefix"
9876 prefix="$acl_save_prefix"
9877
9878
9879 # Check whether --with-libiconv-prefix was given.
9880 if test "${with_libiconv_prefix+set}" = set; then :
9881 withval=$with_libiconv_prefix;
9882 if test "X$withval" = "Xno"; then
9883 use_additional=no
9884 else
9885 if test "X$withval" = "X"; then
9886
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9891
9892 eval additional_includedir=\"$includedir\"
9893 eval additional_libdir=\"$libdir\"
9894
9895 exec_prefix="$acl_save_exec_prefix"
9896 prefix="$acl_save_prefix"
9897
9898 else
9899 additional_includedir="$withval/include"
9900 additional_libdir="$withval/lib"
9901 fi
9902 fi
9903
9904 fi
9905
9906 LIBICONV=
9907 LTLIBICONV=
9908 INCICONV=
9909 rpathdirs=
9910 ltrpathdirs=
9911 names_already_handled=
9912 names_next_round='iconv '
9913 while test -n "$names_next_round"; do
9914 names_this_round="$names_next_round"
9915 names_next_round=
9916 for name in $names_this_round; do
9917 already_handled=
9918 for n in $names_already_handled; do
9919 if test "$n" = "$name"; then
9920 already_handled=yes
9921 break
9922 fi
9923 done
9924 if test -z "$already_handled"; then
9925 names_already_handled="$names_already_handled $name"
9926 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9927 eval value=\"\$HAVE_LIB$uppername\"
9928 if test -n "$value"; then
9929 if test "$value" = yes; then
9930 eval value=\"\$LIB$uppername\"
9931 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9932 eval value=\"\$LTLIB$uppername\"
9933 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9934 else
9935 :
9936 fi
9937 else
9938 found_dir=
9939 found_la=
9940 found_so=
9941 found_a=
9942 if test $use_additional = yes; then
9943 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9944 found_dir="$additional_libdir"
9945 found_so="$additional_libdir/lib$name.$shlibext"
9946 if test -f "$additional_libdir/lib$name.la"; then
9947 found_la="$additional_libdir/lib$name.la"
9948 fi
9949 else
9950 if test -f "$additional_libdir/lib$name.$libext"; then
9951 found_dir="$additional_libdir"
9952 found_a="$additional_libdir/lib$name.$libext"
9953 if test -f "$additional_libdir/lib$name.la"; then
9954 found_la="$additional_libdir/lib$name.la"
9955 fi
9956 fi
9957 fi
9958 fi
9959 if test "X$found_dir" = "X"; then
9960 for x in $LDFLAGS $LTLIBICONV; do
9961
9962 acl_save_prefix="$prefix"
9963 prefix="$acl_final_prefix"
9964 acl_save_exec_prefix="$exec_prefix"
9965 exec_prefix="$acl_final_exec_prefix"
9966 eval x=\"$x\"
9967 exec_prefix="$acl_save_exec_prefix"
9968 prefix="$acl_save_prefix"
9969
9970 case "$x" in
9971 -L*)
9972 dir=`echo "X$x" | sed -e 's/^X-L//'`
9973 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9974 found_dir="$dir"
9975 found_so="$dir/lib$name.$shlibext"
9976 if test -f "$dir/lib$name.la"; then
9977 found_la="$dir/lib$name.la"
9978 fi
9979 else
9980 if test -f "$dir/lib$name.$libext"; then
9981 found_dir="$dir"
9982 found_a="$dir/lib$name.$libext"
9983 if test -f "$dir/lib$name.la"; then
9984 found_la="$dir/lib$name.la"
9985 fi
9986 fi
9987 fi
9988 ;;
9989 esac
9990 if test "X$found_dir" != "X"; then
9991 break
9992 fi
9993 done
9994 fi
9995 if test "X$found_dir" != "X"; then
9996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9997 if test "X$found_so" != "X"; then
9998 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9999 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10000 else
10001 haveit=
10002 for x in $ltrpathdirs; do
10003 if test "X$x" = "X$found_dir"; then
10004 haveit=yes
10005 break
10006 fi
10007 done
10008 if test -z "$haveit"; then
10009 ltrpathdirs="$ltrpathdirs $found_dir"
10010 fi
10011 if test "$hardcode_direct" = yes; then
10012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10013 else
10014 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10016 haveit=
10017 for x in $rpathdirs; do
10018 if test "X$x" = "X$found_dir"; then
10019 haveit=yes
10020 break
10021 fi
10022 done
10023 if test -z "$haveit"; then
10024 rpathdirs="$rpathdirs $found_dir"
10025 fi
10026 else
10027 haveit=
10028 for x in $LDFLAGS $LIBICONV; do
10029
10030 acl_save_prefix="$prefix"
10031 prefix="$acl_final_prefix"
10032 acl_save_exec_prefix="$exec_prefix"
10033 exec_prefix="$acl_final_exec_prefix"
10034 eval x=\"$x\"
10035 exec_prefix="$acl_save_exec_prefix"
10036 prefix="$acl_save_prefix"
10037
10038 if test "X$x" = "X-L$found_dir"; then
10039 haveit=yes
10040 break
10041 fi
10042 done
10043 if test -z "$haveit"; then
10044 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10045 fi
10046 if test "$hardcode_minus_L" != no; then
10047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10048 else
10049 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10050 fi
10051 fi
10052 fi
10053 fi
10054 else
10055 if test "X$found_a" != "X"; then
10056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10057 else
10058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10059 fi
10060 fi
10061 additional_includedir=
10062 case "$found_dir" in
10063 */lib | */lib/)
10064 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10065 additional_includedir="$basedir/include"
10066 ;;
10067 esac
10068 if test "X$additional_includedir" != "X"; then
10069 if test "X$additional_includedir" != "X/usr/include"; then
10070 haveit=
10071 if test "X$additional_includedir" = "X/usr/local/include"; then
10072 if test -n "$GCC"; then
10073 case $host_os in
10074 linux*) haveit=yes;;
10075 esac
10076 fi
10077 fi
10078 if test -z "$haveit"; then
10079 for x in $CPPFLAGS $INCICONV; do
10080
10081 acl_save_prefix="$prefix"
10082 prefix="$acl_final_prefix"
10083 acl_save_exec_prefix="$exec_prefix"
10084 exec_prefix="$acl_final_exec_prefix"
10085 eval x=\"$x\"
10086 exec_prefix="$acl_save_exec_prefix"
10087 prefix="$acl_save_prefix"
10088
10089 if test "X$x" = "X-I$additional_includedir"; then
10090 haveit=yes
10091 break
10092 fi
10093 done
10094 if test -z "$haveit"; then
10095 if test -d "$additional_includedir"; then
10096 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10097 fi
10098 fi
10099 fi
10100 fi
10101 fi
10102 if test -n "$found_la"; then
10103 save_libdir="$libdir"
10104 case "$found_la" in
10105 */* | *\\*) . "$found_la" ;;
10106 *) . "./$found_la" ;;
10107 esac
10108 libdir="$save_libdir"
10109 for dep in $dependency_libs; do
10110 case "$dep" in
10111 -L*)
10112 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10113 if test "X$additional_libdir" != "X/usr/lib"; then
10114 haveit=
10115 if test "X$additional_libdir" = "X/usr/local/lib"; then
10116 if test -n "$GCC"; then
10117 case $host_os in
10118 linux*) haveit=yes;;
10119 esac
10120 fi
10121 fi
10122 if test -z "$haveit"; then
10123 haveit=
10124 for x in $LDFLAGS $LIBICONV; do
10125
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 acl_save_exec_prefix="$exec_prefix"
10129 exec_prefix="$acl_final_exec_prefix"
10130 eval x=\"$x\"
10131 exec_prefix="$acl_save_exec_prefix"
10132 prefix="$acl_save_prefix"
10133
10134 if test "X$x" = "X-L$additional_libdir"; then
10135 haveit=yes
10136 break
10137 fi
10138 done
10139 if test -z "$haveit"; then
10140 if test -d "$additional_libdir"; then
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10142 fi
10143 fi
10144 haveit=
10145 for x in $LDFLAGS $LTLIBICONV; do
10146
10147 acl_save_prefix="$prefix"
10148 prefix="$acl_final_prefix"
10149 acl_save_exec_prefix="$exec_prefix"
10150 exec_prefix="$acl_final_exec_prefix"
10151 eval x=\"$x\"
10152 exec_prefix="$acl_save_exec_prefix"
10153 prefix="$acl_save_prefix"
10154
10155 if test "X$x" = "X-L$additional_libdir"; then
10156 haveit=yes
10157 break
10158 fi
10159 done
10160 if test -z "$haveit"; then
10161 if test -d "$additional_libdir"; then
10162 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10163 fi
10164 fi
10165 fi
10166 fi
10167 ;;
10168 -R*)
10169 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10170 if test "$enable_rpath" != no; then
10171 haveit=
10172 for x in $rpathdirs; do
10173 if test "X$x" = "X$dir"; then
10174 haveit=yes
10175 break
10176 fi
10177 done
10178 if test -z "$haveit"; then
10179 rpathdirs="$rpathdirs $dir"
10180 fi
10181 haveit=
10182 for x in $ltrpathdirs; do
10183 if test "X$x" = "X$dir"; then
10184 haveit=yes
10185 break
10186 fi
10187 done
10188 if test -z "$haveit"; then
10189 ltrpathdirs="$ltrpathdirs $dir"
10190 fi
10191 fi
10192 ;;
10193 -l*)
10194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10195 ;;
10196 *.la)
10197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10198 ;;
10199 *)
10200 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10202 ;;
10203 esac
10204 done
10205 fi
10206 else
10207 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10209 fi
10210 fi
10211 fi
10212 done
10213 done
10214 if test "X$rpathdirs" != "X"; then
10215 if test -n "$hardcode_libdir_separator"; then
10216 alldirs=
10217 for found_dir in $rpathdirs; do
10218 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10219 done
10220 acl_save_libdir="$libdir"
10221 libdir="$alldirs"
10222 eval flag=\"$hardcode_libdir_flag_spec\"
10223 libdir="$acl_save_libdir"
10224 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10225 else
10226 for found_dir in $rpathdirs; do
10227 acl_save_libdir="$libdir"
10228 libdir="$found_dir"
10229 eval flag=\"$hardcode_libdir_flag_spec\"
10230 libdir="$acl_save_libdir"
10231 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10232 done
10233 fi
10234 fi
10235 if test "X$ltrpathdirs" != "X"; then
10236 for found_dir in $ltrpathdirs; do
10237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10238 done
10239 fi
10240
10241
10242
10243
10244
10245
10246
10247 am_save_CPPFLAGS="$CPPFLAGS"
10248
10249 for element in $INCICONV; do
10250 haveit=
10251 for x in $CPPFLAGS; do
10252
10253 acl_save_prefix="$prefix"
10254 prefix="$acl_final_prefix"
10255 acl_save_exec_prefix="$exec_prefix"
10256 exec_prefix="$acl_final_exec_prefix"
10257 eval x=\"$x\"
10258 exec_prefix="$acl_save_exec_prefix"
10259 prefix="$acl_save_prefix"
10260
10261 if test "X$x" = "X$element"; then
10262 haveit=yes
10263 break
10264 fi
10265 done
10266 if test -z "$haveit"; then
10267 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10268 fi
10269 done
10270
10271
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10273 $as_echo_n "checking for iconv... " >&6; }
10274 if test "${am_cv_func_iconv+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277
10278 am_cv_func_iconv="no, consider installing GNU libiconv"
10279 am_cv_lib_iconv=no
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #include <stdlib.h>
10283 #include <iconv.h>
10284 int
10285 main ()
10286 {
10287 iconv_t cd = iconv_open("","");
10288 iconv(cd,NULL,NULL,NULL,NULL);
10289 iconv_close(cd);
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_cxx_try_link "$LINENO"; then :
10295 am_cv_func_iconv=yes
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 if test "$am_cv_func_iconv" != yes; then
10300 am_save_LIBS="$LIBS"
10301 LIBS="$LIBS $LIBICONV"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <stdlib.h>
10305 #include <iconv.h>
10306 int
10307 main ()
10308 {
10309 iconv_t cd = iconv_open("","");
10310 iconv(cd,NULL,NULL,NULL,NULL);
10311 iconv_close(cd);
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 if ac_fn_cxx_try_link "$LINENO"; then :
10317 am_cv_lib_iconv=yes
10318 am_cv_func_iconv=yes
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LIBS="$am_save_LIBS"
10323 fi
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10327 $as_echo "$am_cv_func_iconv" >&6; }
10328 if test "$am_cv_func_iconv" = yes; then
10329
10330 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10331
10332 fi
10333 if test "$am_cv_lib_iconv" = yes; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10335 $as_echo_n "checking how to link with libiconv... " >&6; }
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10337 $as_echo "$LIBICONV" >&6; }
10338 else
10339 CPPFLAGS="$am_save_CPPFLAGS"
10340 LIBICONV=
10341 LTLIBICONV=
10342 fi
10343
10344
10345
10346 if test "$am_cv_func_iconv" = yes; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10348 $as_echo_n "checking for iconv declaration... " >&6; }
10349 if test "${am_cv_proto_iconv+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 #include <stdlib.h>
10357 #include <iconv.h>
10358 extern
10359 #ifdef __cplusplus
10360 "C"
10361 #endif
10362 #if defined(__STDC__) || defined(__cplusplus)
10363 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10364 #else
10365 size_t iconv();
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371
10372 ;
10373 return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_cxx_try_compile "$LINENO"; then :
10377 am_cv_proto_iconv_arg1=""
10378 else
10379 am_cv_proto_iconv_arg1="const"
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 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);"
10383 fi
10384
10385 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10387 }$am_cv_proto_iconv" >&5
10388 $as_echo "${ac_t:-
10389 }$am_cv_proto_iconv" >&6; }
10390
10391 cat >>confdefs.h <<_ACEOF
10392 #define ICONV_CONST $am_cv_proto_iconv_arg1
10393 _ACEOF
10394
10395 fi
10396
10397 ac_ext=c
10398 ac_cpp='$CPP $CPPFLAGS'
10399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10402
10403
10404 # Until we have in-tree GNU iconv:
10405 LIBICONV_DEP=
10406
10407
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10410 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10411 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <locale.h>
10417 int
10418 main ()
10419 {
10420 return LC_MESSAGES
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"; then :
10426 am_cv_val_LC_MESSAGES=yes
10427 else
10428 am_cv_val_LC_MESSAGES=no
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10434 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10435 if test $am_cv_val_LC_MESSAGES = yes; then
10436
10437 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10438
10439 fi
10440
10441
10442
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10444 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10445 if test "${am_cv_langinfo_codeset+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #include <langinfo.h>
10451 int
10452 main ()
10453 {
10454 char* cs = nl_langinfo(CODESET);
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 am_cv_langinfo_codeset=yes
10461 else
10462 am_cv_langinfo_codeset=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10469 $as_echo "$am_cv_langinfo_codeset" >&6; }
10470 if test $am_cv_langinfo_codeset = yes; then
10471
10472 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10473
10474 fi
10475
10476
10477 # We will need to find libiberty.h and ansidecl.h
10478 saved_CFLAGS="$CFLAGS"
10479 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10480 saved_CXXFLAGS="$CXXFLAGS"
10481 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10482 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10483 strsignal strstr stpcpy strverscmp \
10484 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10485 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
10486 do
10487 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10489 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10490 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #undef $ac_tr_decl
10496 #define $ac_tr_decl 1
10497
10498 #include "ansidecl.h"
10499 #include "system.h"
10500
10501 int
10502 main ()
10503 {
10504 #ifndef $ac_func
10505 char *(*pfn) = (char *(*)) $ac_func ;
10506 #endif
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 eval "gcc_cv_have_decl_$ac_func=yes"
10513 else
10514 eval "gcc_cv_have_decl_$ac_func=no"
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 fi
10518
10519 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10522 #define $ac_tr_decl 1
10523 _ACEOF
10524
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10528 #define $ac_tr_decl 0
10529 _ACEOF
10530
10531 fi
10532
10533 done
10534
10535
10536 for ac_func in getrlimit setrlimit getrusage
10537 do
10538 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10540 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10541 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #undef $ac_tr_decl
10547 #define $ac_tr_decl 1
10548
10549 #include "ansidecl.h"
10550 #include "system.h"
10551 #ifdef HAVE_SYS_RESOURCE_H
10552 #include <sys/resource.h>
10553 #endif
10554
10555
10556 int
10557 main ()
10558 {
10559 #ifndef $ac_func
10560 char *(*pfn) = (char *(*)) $ac_func ;
10561 #endif
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"; then :
10567 eval "gcc_cv_have_decl_$ac_func=yes"
10568 else
10569 eval "gcc_cv_have_decl_$ac_func=no"
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 fi
10573
10574 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10577 #define $ac_tr_decl 1
10578 _ACEOF
10579
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10583 #define $ac_tr_decl 0
10584 _ACEOF
10585
10586 fi
10587
10588 done
10589
10590
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #ifdef HAVE_SYS_RESOURCE_H
10597 #include <sys/resource.h>
10598 #endif
10599
10600 int
10601 main ()
10602 {
10603 rlim_t l = 0;
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_compile "$LINENO"; then :
10609
10610 else
10611
10612 $as_echo "#define rlim_t long" >>confdefs.h
10613
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616
10617 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10618 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10619 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10620 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10621 for ac_func in ldgetname
10622 do
10623 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10625 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10626 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #undef $ac_tr_decl
10632 #define $ac_tr_decl 1
10633
10634 #include "ansidecl.h"
10635 #include "system.h"
10636 #ifdef HAVE_LDFCN_H
10637 #undef FREAD
10638 #undef FWRITE
10639 #include <ldfcn.h>
10640 #endif
10641
10642
10643 int
10644 main ()
10645 {
10646 #ifndef $ac_func
10647 char *(*pfn) = (char *(*)) $ac_func ;
10648 #endif
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"; then :
10654 eval "gcc_cv_have_decl_$ac_func=yes"
10655 else
10656 eval "gcc_cv_have_decl_$ac_func=no"
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659 fi
10660
10661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10664 #define $ac_tr_decl 1
10665 _ACEOF
10666
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10670 #define $ac_tr_decl 0
10671 _ACEOF
10672
10673 fi
10674
10675 done
10676
10677
10678 for ac_func in times
10679 do
10680 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10682 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10683 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 #undef $ac_tr_decl
10689 #define $ac_tr_decl 1
10690
10691 #include "ansidecl.h"
10692 #include "system.h"
10693 #ifdef HAVE_SYS_TIMES_H
10694 #include <sys/times.h>
10695 #endif
10696
10697
10698 int
10699 main ()
10700 {
10701 #ifndef $ac_func
10702 char *(*pfn) = (char *(*)) $ac_func ;
10703 #endif
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709 eval "gcc_cv_have_decl_$ac_func=yes"
10710 else
10711 eval "gcc_cv_have_decl_$ac_func=no"
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 fi
10715
10716 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10719 #define $ac_tr_decl 1
10720 _ACEOF
10721
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10725 #define $ac_tr_decl 0
10726 _ACEOF
10727
10728 fi
10729
10730 done
10731
10732
10733 for ac_func in sigaltstack
10734 do
10735 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10737 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10738 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 #undef $ac_tr_decl
10744 #define $ac_tr_decl 1
10745
10746 #include "ansidecl.h"
10747 #include "system.h"
10748 #include <signal.h>
10749
10750
10751 int
10752 main ()
10753 {
10754 #ifndef $ac_func
10755 char *(*pfn) = (char *(*)) $ac_func ;
10756 #endif
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762 eval "gcc_cv_have_decl_$ac_func=yes"
10763 else
10764 eval "gcc_cv_have_decl_$ac_func=no"
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768
10769 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10772 #define $ac_tr_decl 1
10773 _ACEOF
10774
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10778 #define $ac_tr_decl 0
10779 _ACEOF
10780
10781 fi
10782
10783 done
10784
10785
10786 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10787 # prototype.
10788 ac_ext=cpp
10789 ac_cpp='$CXXCPP $CPPFLAGS'
10790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10793
10794 for ac_func in madvise
10795 do
10796 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10798 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10799 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #undef $ac_tr_decl
10805 #define $ac_tr_decl 1
10806
10807 #include "ansidecl.h"
10808 #include "system.h"
10809
10810
10811 int
10812 main ()
10813 {
10814 #ifndef $ac_func
10815 char *(*pfn) = (char *(*)) $ac_func ;
10816 #endif
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_cxx_try_compile "$LINENO"; then :
10822 eval "gcc_cv_have_decl_$ac_func=yes"
10823 else
10824 eval "gcc_cv_have_decl_$ac_func=no"
10825 fi
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 fi
10828
10829 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10832 #define $ac_tr_decl 1
10833 _ACEOF
10834
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10838 #define $ac_tr_decl 0
10839 _ACEOF
10840
10841 fi
10842
10843 done
10844
10845 ac_ext=c
10846 ac_cpp='$CPP $CPPFLAGS'
10847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850
10851
10852 # More time-related stuff.
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10854 $as_echo_n "checking for struct tms... " >&6; }
10855 if test "${ac_cv_struct_tms+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861
10862 #include "ansidecl.h"
10863 #include "system.h"
10864 #ifdef HAVE_SYS_TIMES_H
10865 #include <sys/times.h>
10866 #endif
10867
10868 int
10869 main ()
10870 {
10871 struct tms tms;
10872 ;
10873 return 0;
10874 }
10875 _ACEOF
10876 if ac_fn_c_try_compile "$LINENO"; then :
10877 ac_cv_struct_tms=yes
10878 else
10879 ac_cv_struct_tms=no
10880 fi
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10884 $as_echo "$ac_cv_struct_tms" >&6; }
10885 if test $ac_cv_struct_tms = yes; then
10886
10887 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10888
10889 fi
10890
10891 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10892 # revisit after autoconf 2.50.
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10894 $as_echo_n "checking for clock_t... " >&6; }
10895 if test "${gcc_cv_type_clock_t+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901
10902 #include "ansidecl.h"
10903 #include "system.h"
10904
10905 int
10906 main ()
10907 {
10908 clock_t x;
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"; then :
10914 gcc_cv_type_clock_t=yes
10915 else
10916 gcc_cv_type_clock_t=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10921 $as_echo "$gcc_cv_type_clock_t" >&6; }
10922 if test $gcc_cv_type_clock_t = yes; then
10923
10924 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10925
10926 fi
10927
10928 # Check if F_SETLKW is supported by fcntl.
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10930 $as_echo_n "checking for F_SETLKW... " >&6; }
10931 if test "${ac_cv_f_setlkw+set}" = set; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 #include <fcntl.h>
10939 int
10940 main ()
10941 {
10942
10943 struct flock fl;
10944 fl.l_whence = 0;
10945 fl.l_start = 0;
10946 fl.l_len = 0;
10947 fl.l_pid = 0;
10948 return fcntl (1, F_SETLKW, &fl);
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 ac_cv_f_setlkw=yes
10955 else
10956 ac_cv_f_setlkw=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10961 $as_echo "$ac_cv_f_setlkw" >&6; }
10962 if test $ac_cv_f_setlkw = yes; then
10963
10964 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10965
10966 fi
10967
10968 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10969 CFLAGS="$saved_CFLAGS"
10970 CXXFLAGS="$saved_CXXFLAGS"
10971
10972 # mkdir takes a single argument on some systems.
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10974 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10975 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980
10981 #include <sys/types.h>
10982 #ifdef HAVE_SYS_STAT_H
10983 # include <sys/stat.h>
10984 #endif
10985 #ifdef HAVE_UNISTD_H
10986 # include <unistd.h>
10987 #endif
10988 #ifdef HAVE_DIRECT_H
10989 # include <direct.h>
10990 #endif
10991 int
10992 main ()
10993 {
10994 mkdir ("foo", 0);
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_compile "$LINENO"; then :
11000 gcc_cv_mkdir_takes_one_arg=no
11001 else
11002 gcc_cv_mkdir_takes_one_arg=yes
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11007 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11008 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11009
11010 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11011
11012 fi
11013
11014
11015 # File extensions
11016 manext='.1'
11017 objext='.o'
11018
11019
11020
11021 # With Setjmp/Longjmp based exception handling.
11022 # Check whether --enable-sjlj-exceptions was given.
11023 if test "${enable_sjlj_exceptions+set}" = set; then :
11024 enableval=$enable_sjlj_exceptions; case $target in
11025 *-*-hpux10*)
11026 if test $enableval != yes; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11028 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11029 enableval=yes
11030 fi
11031 ;;
11032 esac
11033 force_sjlj_exceptions=yes
11034 else
11035 case $target in
11036 *-*-hpux10*)
11037 force_sjlj_exceptions=yes
11038 enableval=yes
11039 ;;
11040 lm32*-*-*)
11041 force_sjlj_exceptions=yes
11042 enableval=yes
11043 ;;
11044 *)
11045 force_sjlj_exceptions=no
11046 ;;
11047 esac
11048 fi
11049
11050 if test $force_sjlj_exceptions = yes; then
11051 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11052
11053 cat >>confdefs.h <<_ACEOF
11054 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11055 _ACEOF
11056
11057 fi
11058
11059 # --------------------------------------------------------
11060 # Build, host, and target specific configuration fragments
11061 # --------------------------------------------------------
11062
11063 # Collect build-machine-specific information.
11064 . ${srcdir}/config.build
11065
11066 # Collect host-machine-specific information.
11067 . ${srcdir}/config.host
11068
11069 target_gtfiles=
11070
11071 # Collect target-machine-specific information.
11072 . ${srcdir}/config.gcc
11073
11074 extra_objs="${host_extra_objs} ${extra_objs}"
11075 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11076
11077 # Default the target-machine variables that were not explicitly set.
11078 if test x"$tm_file" = x
11079 then tm_file=$cpu_type/$cpu_type.h; fi
11080
11081 if test x"$extra_headers" = x
11082 then extra_headers=; fi
11083
11084 if test x$md_file = x
11085 then md_file=$cpu_type/$cpu_type.md; fi
11086
11087 if test x$out_file = x
11088 then out_file=$cpu_type/$cpu_type.c; fi
11089
11090 if test x"$tmake_file" = x
11091 then tmake_file=$cpu_type/t-$cpu_type
11092 fi
11093
11094 # Support --enable-initfini-array.
11095 if test x$enable_initfini_array != xno; then
11096 tm_file="${tm_file} initfini-array.h"
11097 fi
11098
11099 if test x"$dwarf2" = xyes
11100 then tm_file="$tm_file tm-dwarf2.h"
11101 fi
11102
11103 # Say what files are being used for the output code and MD file.
11104 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11105 echo "Using \`$srcdir/config/$md_file' as machine description file."
11106
11107 # If any of the xm_file variables contain nonexistent files, warn
11108 # about them and drop them.
11109
11110 bx=
11111 for x in $build_xm_file; do
11112 if test -f $srcdir/config/$x
11113 then bx="$bx $x"
11114 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11115 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11116 fi
11117 done
11118 build_xm_file="$bx"
11119
11120 hx=
11121 for x in $host_xm_file; do
11122 if test -f $srcdir/config/$x
11123 then hx="$hx $x"
11124 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11125 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11126 fi
11127 done
11128 host_xm_file="$hx"
11129
11130 tx=
11131 for x in $xm_file; do
11132 if test -f $srcdir/config/$x
11133 then tx="$tx $x"
11134 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11135 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11136 fi
11137 done
11138 xm_file="$tx"
11139
11140 count=a
11141 for f in $tm_file; do
11142 count=${count}x
11143 done
11144 if test $count = ax; then
11145 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11146 else
11147 echo "Using the following target machine macro files:"
11148 for f in $tm_file; do
11149 echo " $srcdir/config/$f"
11150 done
11151 fi
11152
11153 if test x$need_64bit_hwint = xyes; then
11154
11155 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11156
11157 fi
11158
11159 if test x$use_long_long_for_widest_fast_int = xyes; then
11160
11161 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11162
11163 fi
11164
11165 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11166
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_GNU_LD $gnu_ld_bool
11169 _ACEOF
11170
11171
11172 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11173
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_GNU_AS $gnu_as_bool
11176 _ACEOF
11177
11178
11179 count=a
11180 for f in $host_xm_file; do
11181 count=${count}x
11182 done
11183 if test $count = a; then
11184 :
11185 elif test $count = ax; then
11186 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11187 else
11188 echo "Using the following host machine macro files:"
11189 for f in $host_xm_file; do
11190 echo " $srcdir/config/$f"
11191 done
11192 fi
11193 echo "Using ${out_host_hook_obj} for host machine hooks."
11194
11195 if test "$host_xm_file" != "$build_xm_file"; then
11196 count=a
11197 for f in $build_xm_file; do
11198 count=${count}x
11199 done
11200 if test $count = a; then
11201 :
11202 elif test $count = ax; then
11203 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11204 else
11205 echo "Using the following build machine macro files:"
11206 for f in $build_xm_file; do
11207 echo " $srcdir/config/$f"
11208 done
11209 fi
11210 fi
11211
11212 if test -n "$configured_native_system_header_dir"; then
11213 native_system_header_dir=$configured_native_system_header_dir
11214 fi
11215 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11216
11217
11218 case ${host} in
11219 powerpc*-*-darwin*)
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11221 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11222 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 #include <sys/cdefs.h>
11229 #include <sys/signal.h>
11230 #include <ucontext.h>
11231 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11232
11233 _ACEOF
11234 if ac_fn_c_try_compile "$LINENO"; then :
11235 gcc_cv_mcontext_underscores=no
11236 else
11237 gcc_cv_mcontext_underscores=yes
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11242 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11243 if test $gcc_cv_mcontext_underscores = yes; then
11244
11245 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11246
11247 fi
11248 ;;
11249 esac
11250
11251 # ---------
11252 # Threading
11253 # ---------
11254
11255 # Check if a valid thread package
11256 case ${enable_threads} in
11257 "" | no)
11258 # No threads
11259 target_thread_file='single'
11260 ;;
11261 yes)
11262 # default
11263 target_thread_file='single'
11264 ;;
11265 aix | dce | lynx | mipssde | posix | rtems | \
11266 single | tpf | vxworks | win32)
11267 target_thread_file=${enable_threads}
11268 ;;
11269 *)
11270 echo "${enable_threads} is an unknown thread package" 1>&2
11271 exit 1
11272 ;;
11273 esac
11274
11275 if test x${thread_file} = x; then
11276 # No thread file set by target-specific clauses in config.gcc,
11277 # so use file chosen by default logic above
11278 thread_file=${target_thread_file}
11279 fi
11280
11281 # --------
11282 # UNSORTED
11283 # --------
11284
11285 use_cxa_atexit=no
11286 if test x$enable___cxa_atexit = xyes || \
11287 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11288 if test x$host = x$target; then
11289 case $host in
11290 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11291 # keyed to flag_use_cxa_atexit
11292 *-*-mingw32*)
11293 use_cxa_atexit=yes
11294 ;;
11295 powerpc-ibm-aix*)
11296 use_cxa_atexit=yes
11297 ;;
11298 *)
11299 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11300 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11301 use_cxa_atexit=yes
11302 else
11303 echo "__cxa_atexit can't be enabled on this target"
11304 fi
11305
11306 ;;
11307 esac
11308 else
11309 # We can't check for __cxa_atexit when building a cross, so assume
11310 # it is available
11311 use_cxa_atexit=yes
11312 fi
11313 if test x$use_cxa_atexit = xyes; then
11314
11315 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11316
11317 fi
11318 fi
11319
11320 # Look for a file containing extra machine modes.
11321 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11322 extra_modes_file='$(srcdir)'/config/${extra_modes}
11323
11324
11325 cat >>confdefs.h <<_ACEOF
11326 #define EXTRA_MODES_FILE "config/$extra_modes"
11327 _ACEOF
11328
11329 fi
11330
11331 # Convert extra_options into a form suitable for Makefile use.
11332 extra_opt_files=
11333 all_opt_files=
11334 for f in $extra_options; do
11335 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11336 all_opt_files="$all_opt_files $srcdir/config/$f"
11337 done
11338
11339
11340 # auto-host.h is the file containing items generated by autoconf and is
11341 # the first file included by config.h.
11342 # If host=build, it is correct to have bconfig include auto-host.h
11343 # as well. If host!=build, we are in error and need to do more
11344 # work to find out the build config parameters.
11345 if test x$host = x$build
11346 then
11347 build_auto=auto-host.h
11348 else
11349 # We create a subdir, then run autoconf in the subdir.
11350 # To prevent recursion we set host and build for the new
11351 # invocation of configure to the build for this invocation
11352 # of configure.
11353 tempdir=build.$$
11354 rm -rf $tempdir
11355 mkdir $tempdir
11356 cd $tempdir
11357 case ${srcdir} in
11358 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11359 *) realsrcdir=../${srcdir};;
11360 esac
11361 # Clearing GMPINC is necessary to prevent host headers being
11362 # used by the build compiler. Defining GENERATOR_FILE stops
11363 # system.h from including gmp.h.
11364 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11365 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11366 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11367 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11368 ${realsrcdir}/configure \
11369 --enable-languages=${enable_languages-all} \
11370 --target=$target_alias --host=$build_alias --build=$build_alias
11371
11372 # We just finished tests for the build machine, so rename
11373 # the file auto-build.h in the gcc directory.
11374 mv auto-host.h ../auto-build.h
11375 cd ..
11376 rm -rf $tempdir
11377 build_auto=auto-build.h
11378 fi
11379
11380
11381 tm_file="${tm_file} defaults.h"
11382 tm_p_file="${tm_p_file} tm-preds.h"
11383 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11384 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11385 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11386 # put this back in temporarily.
11387 xm_file="auto-host.h ansidecl.h ${xm_file}"
11388
11389 # --------
11390 # UNSORTED
11391 # --------
11392
11393 # Compile in configure arguments.
11394 if test -f configargs.h ; then
11395 # Being re-configured.
11396 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11397 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11398 else
11399 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11400 fi
11401
11402 # Double all backslashes and backslash all quotes to turn
11403 # gcc_config_arguments into a C string.
11404 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11405 $gcc_config_arguments
11406 EOF
11407 gcc_config_arguments_str=`cat conftest.out`
11408 rm -f conftest.out
11409
11410 cat > configargs.h <<EOF
11411 /* Generated automatically. */
11412 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11413 static const char thread_model[] = "$thread_file";
11414
11415 static const struct {
11416 const char *name, *value;
11417 } configure_default_options[] = $configure_default_options;
11418 EOF
11419
11420 gcc_BASEVER=`cat $srcdir/BASE-VER`
11421 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11422 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11423 if test -f $srcdir/REVISION ; then
11424 gcc_REVISION=`cat $srcdir/REVISION`
11425 else
11426 gcc_REVISION=""
11427 fi
11428 cat > plugin-version.h <<EOF
11429 #include "configargs.h"
11430
11431 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11432 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11433 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11434 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11435
11436 static char basever[] = "$gcc_BASEVER";
11437 static char datestamp[] = "$gcc_DATESTAMP";
11438 static char devphase[] = "$gcc_DEVPHASE";
11439 static char revision[] = "$gcc_REVISION";
11440
11441 /* FIXME plugins: We should make the version information more precise.
11442 One way to do is to add a checksum. */
11443
11444 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11445 devphase, revision,
11446 configuration_arguments};
11447 EOF
11448
11449 # Internationalization
11450 # If we haven't got the data from the intl directory,
11451 # assume NLS is disabled.
11452 USE_NLS=no
11453 LIBINTL=
11454 LIBINTL_DEP=
11455 INCINTL=
11456 XGETTEXT=
11457 GMSGFMT=
11458 POSUB=
11459
11460 if test -f ../intl/config.intl; then
11461 . ../intl/config.intl
11462 fi
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11464 $as_echo_n "checking whether NLS is requested... " >&6; }
11465 if test x"$USE_NLS" != xyes; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471
11472 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11473
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11476 $as_echo_n "checking for catalogs to be installed... " >&6; }
11477 # Look for .po and .gmo files in the source directory.
11478 CATALOGS=
11479 XLINGUAS=
11480 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11481 # If there aren't any .gmo files the shell will give us the
11482 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11483 # weeded out.
11484 case "$cat" in *\**)
11485 continue;;
11486 esac
11487 # The quadruple backslash is collapsed to a double backslash
11488 # by the backticks, then collapsed again by the double quotes,
11489 # leaving us with one backslash in the sed expression (right
11490 # before the dot that mustn't act as a wildcard).
11491 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11492 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11493 # The user is allowed to set LINGUAS to a list of languages to
11494 # install catalogs for. If it's empty that means "all of them."
11495 if test "x$LINGUAS" = x; then
11496 CATALOGS="$CATALOGS $cat"
11497 XLINGUAS="$XLINGUAS $lang"
11498 else
11499 case "$LINGUAS" in *$lang*)
11500 CATALOGS="$CATALOGS $cat"
11501 XLINGUAS="$XLINGUAS $lang"
11502 ;;
11503 esac
11504 fi
11505 done
11506 LINGUAS="$XLINGUAS"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11508 $as_echo "$LINGUAS" >&6; }
11509
11510
11511 DATADIRNAME=share
11512
11513 INSTOBJEXT=.mo
11514
11515 GENCAT=gencat
11516
11517 CATOBJEXT=.gmo
11518
11519 fi
11520
11521 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11522 # -liconv on the link line twice.
11523 case "$LIBINTL" in *$LIBICONV*)
11524 LIBICONV= ;;
11525 esac
11526
11527 # Check whether --enable-secureplt was given.
11528 if test "${enable_secureplt+set}" = set; then :
11529 enableval=$enable_secureplt;
11530 fi
11531
11532
11533 # Check whether --enable-leading-mingw64-underscores was given.
11534 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11535 enableval=$enable_leading_mingw64_underscores;
11536 fi
11537
11538 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11539
11540 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11541
11542 fi
11543
11544 # Check whether --enable-cld was given.
11545 if test "${enable_cld+set}" = set; then :
11546 enableval=$enable_cld;
11547 else
11548 enable_cld=no
11549 fi
11550
11551
11552 # Check whether --enable-frame-pointer was given.
11553 if test "${enable_frame_pointer+set}" = set; then :
11554 enableval=$enable_frame_pointer;
11555 else
11556
11557 case $target_os in
11558 linux* | darwin[8912]*)
11559 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11560 # DWARF2.
11561 enable_frame_pointer=no
11562 ;;
11563 *)
11564 enable_frame_pointer=yes
11565 ;;
11566 esac
11567
11568 fi
11569
11570
11571 # Windows32 Registry support for specifying GCC installation paths.
11572 # Check whether --enable-win32-registry was given.
11573 if test "${enable_win32_registry+set}" = set; then :
11574 enableval=$enable_win32_registry;
11575 fi
11576
11577
11578 case $host_os in
11579 win32 | pe | cygwin* | mingw32* | uwin*)
11580 if test "x$enable_win32_registry" != xno; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11582 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11583 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_func_search_save_LIBS=$LIBS
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char RegOpenKeyExA ();
11597 int
11598 main ()
11599 {
11600 return RegOpenKeyExA ();
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 for ac_lib in '' advapi32; do
11606 if test -z "$ac_lib"; then
11607 ac_res="none required"
11608 else
11609 ac_res=-l$ac_lib
11610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11611 fi
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_search_RegOpenKeyExA=$ac_res
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext
11617 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11618 break
11619 fi
11620 done
11621 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11622
11623 else
11624 ac_cv_search_RegOpenKeyExA=no
11625 fi
11626 rm conftest.$ac_ext
11627 LIBS=$ac_func_search_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11630 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11631 ac_res=$ac_cv_search_RegOpenKeyExA
11632 if test "$ac_res" != no; then :
11633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11634
11635 else
11636 enable_win32_registry=no
11637 fi
11638
11639 fi
11640
11641 if test "x$enable_win32_registry" != xno; then
11642
11643 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11644
11645
11646 if test "x$enable_win32_registry" != xyes \
11647 && test "x$enable_win32_registry" != x; then
11648
11649 cat >>confdefs.h <<_ACEOF
11650 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11651 _ACEOF
11652
11653 fi
11654 fi
11655 ;;
11656 esac
11657
11658 # Get an absolute path to the GCC top-level source directory
11659 holddir=`${PWDCMD-pwd}`
11660 cd $srcdir
11661 topdir=`${PWDCMD-pwd}`
11662 cd $holddir
11663
11664 # Conditionalize the makefile for this host machine.
11665 xmake_file=
11666 for f in ${host_xmake_file}
11667 do
11668 if test -f ${srcdir}/config/$f
11669 then
11670 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11671 fi
11672 done
11673
11674 # Conditionalize the makefile for this target machine.
11675 tmake_file_=
11676 for f in ${tmake_file}
11677 do
11678 if test -f ${srcdir}/config/$f
11679 then
11680 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11681 fi
11682 done
11683 tmake_file="${tmake_file_}"
11684
11685 out_object_file=`basename $out_file .c`.o
11686 common_out_object_file=`basename $common_out_file .c`.o
11687
11688 tm_file_list="options.h"
11689 tm_include_list="options.h insn-constants.h"
11690 for f in $tm_file; do
11691 case $f in
11692 ./* )
11693 f=`echo $f | sed 's/^..//'`
11694 tm_file_list="${tm_file_list} $f"
11695 tm_include_list="${tm_include_list} $f"
11696 ;;
11697 defaults.h )
11698 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11699 tm_include_list="${tm_include_list} $f"
11700 ;;
11701 * )
11702 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11703 tm_include_list="${tm_include_list} config/$f"
11704 ;;
11705 esac
11706 done
11707
11708 tm_p_file_list=
11709 tm_p_include_list=
11710 for f in $tm_p_file; do
11711 case $f in
11712 tm-preds.h )
11713 tm_p_file_list="${tm_p_file_list} $f"
11714 tm_p_include_list="${tm_p_include_list} $f"
11715 ;;
11716 * )
11717 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11718 tm_p_include_list="${tm_p_include_list} config/$f"
11719 esac
11720 done
11721
11722 xm_file_list=
11723 xm_include_list=
11724 for f in $xm_file; do
11725 case $f in
11726 ansidecl.h )
11727 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11728 xm_include_list="${xm_include_list} $f"
11729 ;;
11730 auto-host.h )
11731 xm_file_list="${xm_file_list} $f"
11732 xm_include_list="${xm_include_list} $f"
11733 ;;
11734 * )
11735 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11736 xm_include_list="${xm_include_list} config/$f"
11737 ;;
11738 esac
11739 done
11740
11741 host_xm_file_list=
11742 host_xm_include_list=
11743 for f in $host_xm_file; do
11744 case $f in
11745 ansidecl.h )
11746 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11747 host_xm_include_list="${host_xm_include_list} $f"
11748 ;;
11749 auto-host.h )
11750 host_xm_file_list="${host_xm_file_list} $f"
11751 host_xm_include_list="${host_xm_include_list} $f"
11752 ;;
11753 * )
11754 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11755 host_xm_include_list="${host_xm_include_list} config/$f"
11756 ;;
11757 esac
11758 done
11759
11760 build_xm_file_list=
11761 for f in $build_xm_file; do
11762 case $f in
11763 ansidecl.h )
11764 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11765 build_xm_include_list="${build_xm_include_list} $f"
11766 ;;
11767 auto-build.h | auto-host.h )
11768 build_xm_file_list="${build_xm_file_list} $f"
11769 build_xm_include_list="${build_xm_include_list} $f"
11770 ;;
11771 * )
11772 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11773 build_xm_include_list="${build_xm_include_list} config/$f"
11774 ;;
11775 esac
11776 done
11777
11778 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11779 # cross-compiler which does not use the native headers and libraries.
11780 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11781 CROSS=
11782 ALL=all.internal
11783 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11784
11785 if test "x$with_build_sysroot" != x; then
11786 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11787 else
11788 # This value is used, even on a native system, because
11789 # CROSS_SYSTEM_HEADER_DIR is just
11790 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11791 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11792 fi
11793
11794 if test x$host != x$target
11795 then
11796 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11797 ALL=all.cross
11798 SYSTEM_HEADER_DIR=$build_system_header_dir
11799 case "$host","$target" in
11800 # Darwin crosses can use the host system's libraries and headers,
11801 # because of the fat library support. Of course, it must be the
11802 # same version of Darwin on both sides. Allow the user to
11803 # just say --target=foo-darwin without a version number to mean
11804 # "the version on this system".
11805 *-*-darwin*,*-*-darwin*)
11806 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11807 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11808 if test $hostos = $targetos -o $targetos = darwin ; then
11809 CROSS=
11810 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11811 with_headers=yes
11812 fi
11813 ;;
11814
11815 i?86-*-*,x86_64-*-* \
11816 | powerpc*-*-*,powerpc64*-*-*)
11817 CROSS="$CROSS -DNATIVE_CROSS" ;;
11818 esac
11819
11820 case $target in
11821 *-*-mingw*)
11822 if test "x$with_headers" = x; then
11823 with_headers=yes
11824 fi
11825 ;;
11826 *)
11827 ;;
11828 esac
11829 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11830 SYSTEM_HEADER_DIR=$build_system_header_dir
11831 fi
11832
11833 # If this is a cross-compiler that does not
11834 # have its own set of headers then define
11835 # inhibit_libc
11836
11837 # If this is using newlib, without having the headers available now,
11838 # then define inhibit_libc in LIBGCC2_CFLAGS.
11839 # This prevents libgcc2 from containing any code which requires libc
11840 # support.
11841 : ${inhibit_libc=false}
11842 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11843 test x$with_newlib = xyes ; } &&
11844 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11845 inhibit_libc=true
11846 fi
11847
11848
11849 # When building gcc with a cross-compiler, we need to adjust things so
11850 # that the generator programs are still built with the native compiler.
11851 # Also, we cannot run fixincludes.
11852
11853 # These are the normal (build=host) settings:
11854 CC_FOR_BUILD='$(CC)'
11855 CXX_FOR_BUILD='$(CXX)'
11856 BUILD_CFLAGS='$(ALL_CFLAGS)'
11857 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11858 BUILD_LDFLAGS='$(LDFLAGS)'
11859 STMP_FIXINC=stmp-fixinc
11860
11861 # And these apply if build != host, or we are generating coverage data
11862 if test x$build != x$host || test "x$coverage_flags" != x
11863 then
11864 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11865 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11866 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11867 fi
11868
11869 # Expand extra_headers to include complete path.
11870 # This substitutes for lots of t-* files.
11871 extra_headers_list=
11872 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11873 for file in ${extra_headers} ; do
11874 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11875 done
11876
11877 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11878 if test x"$use_gcc_tgmath" = xyes
11879 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11880 fi
11881
11882 # Define collect2 in Makefile.
11883 case $host_can_use_collect2 in
11884 no) collect2= ;;
11885 *) collect2='collect2$(exeext)' ;;
11886 esac
11887
11888
11889 # Add a definition of USE_COLLECT2 if system wants one.
11890 case $use_collect2 in
11891 no) use_collect2= ;;
11892 "") ;;
11893 *)
11894 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11895 xm_defines="${xm_defines} USE_COLLECT2"
11896 case $host_can_use_collect2 in
11897 no)
11898 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11899 ;;
11900 esac
11901 ;;
11902 esac
11903
11904
11905 cat >>confdefs.h <<_ACEOF
11906 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11907 _ACEOF
11908
11909
11910 # ---------------------------
11911 # Assembler & linker features
11912 # ---------------------------
11913
11914 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11915 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11916 # However when ld-new is first executed from the build tree, libtool will
11917 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11918 # to the build tree. While doing this we need to use the previous-stage
11919 # linker, or we have an infinite loop. The presence of a shell script as
11920 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11921 # the gcc/collect-ld script. So we need to know how libtool works, or
11922 # exec-tool will fail.
11923
11924
11925 case `pwd` in
11926 *\ * | *\ *)
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11928 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11929 esac
11930
11931
11932
11933 macro_version='2.2.7a'
11934 macro_revision='1.3134'
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948 ltmain="$ac_aux_dir/ltmain.sh"
11949
11950 # Backslashify metacharacters that are still active within
11951 # double-quoted strings.
11952 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11953
11954 # Same as above, but do not quote variable references.
11955 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11956
11957 # Sed substitution to delay expansion of an escaped shell variable in a
11958 # double_quote_subst'ed string.
11959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11960
11961 # Sed substitution to delay expansion of an escaped single quote.
11962 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11963
11964 # Sed substitution to avoid accidental globbing in evaled expressions
11965 no_glob_subst='s/\*/\\\*/g'
11966
11967 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11972 $as_echo_n "checking how to print strings... " >&6; }
11973 # Test print first, because it will be a builtin if present.
11974 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11975 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11976 ECHO='print -r --'
11977 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11978 ECHO='printf %s\n'
11979 else
11980 # Use this function as a fallback that always works.
11981 func_fallback_echo ()
11982 {
11983 eval 'cat <<_LTECHO_EOF
11984 $1
11985 _LTECHO_EOF'
11986 }
11987 ECHO='func_fallback_echo'
11988 fi
11989
11990 # func_echo_all arg...
11991 # Invoke $ECHO with all args, space-separated.
11992 func_echo_all ()
11993 {
11994 $ECHO ""
11995 }
11996
11997 case "$ECHO" in
11998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11999 $as_echo "printf" >&6; } ;;
12000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12001 $as_echo "print -r" >&6; } ;;
12002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12003 $as_echo "cat" >&6; } ;;
12004 esac
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12020 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12021 if test "${ac_cv_path_SED+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12025 for ac_i in 1 2 3 4 5 6 7; do
12026 ac_script="$ac_script$as_nl$ac_script"
12027 done
12028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12029 { ac_script=; unset ac_script;}
12030 if test -z "$SED"; then
12031 ac_path_SED_found=false
12032 # Loop through the user's path and test for each of PROGNAME-LIST
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_prog in sed gsed; do
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12041 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12042 # Check for GNU ac_path_SED and select it if it is found.
12043 # Check for GNU $ac_path_SED
12044 case `"$ac_path_SED" --version 2>&1` in
12045 *GNU*)
12046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12047 *)
12048 ac_count=0
12049 $as_echo_n 0123456789 >"conftest.in"
12050 while :
12051 do
12052 cat "conftest.in" "conftest.in" >"conftest.tmp"
12053 mv "conftest.tmp" "conftest.in"
12054 cp "conftest.in" "conftest.nl"
12055 $as_echo '' >> "conftest.nl"
12056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12058 as_fn_arith $ac_count + 1 && ac_count=$as_val
12059 if test $ac_count -gt ${ac_path_SED_max-0}; then
12060 # Best one so far, save it but keep looking for a better one
12061 ac_cv_path_SED="$ac_path_SED"
12062 ac_path_SED_max=$ac_count
12063 fi
12064 # 10*(2^10) chars as input seems more than enough
12065 test $ac_count -gt 10 && break
12066 done
12067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12068 esac
12069
12070 $ac_path_SED_found && break 3
12071 done
12072 done
12073 done
12074 IFS=$as_save_IFS
12075 if test -z "$ac_cv_path_SED"; then
12076 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12077 fi
12078 else
12079 ac_cv_path_SED=$SED
12080 fi
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12084 $as_echo "$ac_cv_path_SED" >&6; }
12085 SED="$ac_cv_path_SED"
12086 rm -f conftest.sed
12087
12088 test -z "$SED" && SED=sed
12089 Xsed="$SED -e 1s/^X//"
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12102 $as_echo_n "checking for fgrep... " >&6; }
12103 if test "${ac_cv_path_FGREP+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12107 then ac_cv_path_FGREP="$GREP -F"
12108 else
12109 if test -z "$FGREP"; then
12110 ac_path_FGREP_found=false
12111 # Loop through the user's path and test for each of PROGNAME-LIST
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_prog in fgrep; do
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12120 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12121 # Check for GNU ac_path_FGREP and select it if it is found.
12122 # Check for GNU $ac_path_FGREP
12123 case `"$ac_path_FGREP" --version 2>&1` in
12124 *GNU*)
12125 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12126 *)
12127 ac_count=0
12128 $as_echo_n 0123456789 >"conftest.in"
12129 while :
12130 do
12131 cat "conftest.in" "conftest.in" >"conftest.tmp"
12132 mv "conftest.tmp" "conftest.in"
12133 cp "conftest.in" "conftest.nl"
12134 $as_echo 'FGREP' >> "conftest.nl"
12135 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12137 as_fn_arith $ac_count + 1 && ac_count=$as_val
12138 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12139 # Best one so far, save it but keep looking for a better one
12140 ac_cv_path_FGREP="$ac_path_FGREP"
12141 ac_path_FGREP_max=$ac_count
12142 fi
12143 # 10*(2^10) chars as input seems more than enough
12144 test $ac_count -gt 10 && break
12145 done
12146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12147 esac
12148
12149 $ac_path_FGREP_found && break 3
12150 done
12151 done
12152 done
12153 IFS=$as_save_IFS
12154 if test -z "$ac_cv_path_FGREP"; then
12155 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12156 fi
12157 else
12158 ac_cv_path_FGREP=$FGREP
12159 fi
12160
12161 fi
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12164 $as_echo "$ac_cv_path_FGREP" >&6; }
12165 FGREP="$ac_cv_path_FGREP"
12166
12167
12168 test -z "$GREP" && GREP=grep
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188 # Check whether --with-gnu-ld was given.
12189 if test "${with_gnu_ld+set}" = set; then :
12190 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12191 else
12192 with_gnu_ld=no
12193 fi
12194
12195 ac_prog=ld
12196 if test "$GCC" = yes; then
12197 # Check if gcc -print-prog-name=ld gives a path.
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12199 $as_echo_n "checking for ld used by $CC... " >&6; }
12200 case $host in
12201 *-*-mingw*)
12202 # gcc leaves a trailing carriage return which upsets mingw
12203 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12204 *)
12205 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12206 esac
12207 case $ac_prog in
12208 # Accept absolute paths.
12209 [\\/]* | ?:[\\/]*)
12210 re_direlt='/[^/][^/]*/\.\./'
12211 # Canonicalize the pathname of ld
12212 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12213 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12214 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12215 done
12216 test -z "$LD" && LD="$ac_prog"
12217 ;;
12218 "")
12219 # If it fails, then pretend we aren't using GCC.
12220 ac_prog=ld
12221 ;;
12222 *)
12223 # If it is relative, then search for the first ld in PATH.
12224 with_gnu_ld=unknown
12225 ;;
12226 esac
12227 elif test "$with_gnu_ld" = yes; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12229 $as_echo_n "checking for GNU ld... " >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12232 $as_echo_n "checking for non-GNU ld... " >&6; }
12233 fi
12234 if test "${lt_cv_path_LD+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -z "$LD"; then
12238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12239 for ac_dir in $PATH; do
12240 IFS="$lt_save_ifs"
12241 test -z "$ac_dir" && ac_dir=.
12242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12243 lt_cv_path_LD="$ac_dir/$ac_prog"
12244 # Check to see if the program is GNU ld. I'd rather use --version,
12245 # but apparently some variants of GNU ld only accept -v.
12246 # Break only if it was the GNU/non-GNU ld that we prefer.
12247 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12248 *GNU* | *'with BFD'*)
12249 test "$with_gnu_ld" != no && break
12250 ;;
12251 *)
12252 test "$with_gnu_ld" != yes && break
12253 ;;
12254 esac
12255 fi
12256 done
12257 IFS="$lt_save_ifs"
12258 else
12259 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12260 fi
12261 fi
12262
12263 LD="$lt_cv_path_LD"
12264 if test -n "$LD"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12266 $as_echo "$LD" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12273 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12274 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12278 case `$LD -v 2>&1 </dev/null` in
12279 *GNU* | *'with BFD'*)
12280 lt_cv_prog_gnu_ld=yes
12281 ;;
12282 *)
12283 lt_cv_prog_gnu_ld=no
12284 ;;
12285 esac
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12288 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12289 with_gnu_ld=$lt_cv_prog_gnu_ld
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12300 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12301 if test "${lt_cv_path_NM+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 if test -n "$NM"; then
12305 # Let the user override the test.
12306 lt_cv_path_NM="$NM"
12307 else
12308 lt_nm_to_check="${ac_tool_prefix}nm"
12309 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12310 lt_nm_to_check="$lt_nm_to_check nm"
12311 fi
12312 for lt_tmp_nm in $lt_nm_to_check; do
12313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12314 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12315 IFS="$lt_save_ifs"
12316 test -z "$ac_dir" && ac_dir=.
12317 tmp_nm="$ac_dir/$lt_tmp_nm"
12318 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12319 # Check to see if the nm accepts a BSD-compat flag.
12320 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12321 # nm: unknown option "B" ignored
12322 # Tru64's nm complains that /dev/null is an invalid object file
12323 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12324 */dev/null* | *'Invalid file or object type'*)
12325 lt_cv_path_NM="$tmp_nm -B"
12326 break
12327 ;;
12328 *)
12329 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12330 */dev/null*)
12331 lt_cv_path_NM="$tmp_nm -p"
12332 break
12333 ;;
12334 *)
12335 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12336 continue # so that we can try to find one that supports BSD flags
12337 ;;
12338 esac
12339 ;;
12340 esac
12341 fi
12342 done
12343 IFS="$lt_save_ifs"
12344 done
12345 : ${lt_cv_path_NM=no}
12346 fi
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12349 $as_echo "$lt_cv_path_NM" >&6; }
12350 if test "$lt_cv_path_NM" != "no"; then
12351 NM="$lt_cv_path_NM"
12352 else
12353 # Didn't find any BSD compatible name lister, look for dumpbin.
12354 if test -n "$DUMPBIN"; then :
12355 # Let the user override the test.
12356 else
12357 if test -n "$ac_tool_prefix"; then
12358 for ac_prog in dumpbin "link -dump"
12359 do
12360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363 $as_echo_n "checking for $ac_word... " >&6; }
12364 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 if test -n "$DUMPBIN"; then
12368 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12369 else
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 break 2
12380 fi
12381 done
12382 done
12383 IFS=$as_save_IFS
12384
12385 fi
12386 fi
12387 DUMPBIN=$ac_cv_prog_DUMPBIN
12388 if test -n "$DUMPBIN"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12390 $as_echo "$DUMPBIN" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395
12396
12397 test -n "$DUMPBIN" && break
12398 done
12399 fi
12400 if test -z "$DUMPBIN"; then
12401 ac_ct_DUMPBIN=$DUMPBIN
12402 for ac_prog in dumpbin "link -dump"
12403 do
12404 # Extract the first word of "$ac_prog", so it can be a program name with args.
12405 set dummy $ac_prog; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$ac_ct_DUMPBIN"; then
12412 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12413 else
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425 done
12426 done
12427 IFS=$as_save_IFS
12428
12429 fi
12430 fi
12431 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12432 if test -n "$ac_ct_DUMPBIN"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12434 $as_echo "$ac_ct_DUMPBIN" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439
12440
12441 test -n "$ac_ct_DUMPBIN" && break
12442 done
12443
12444 if test "x$ac_ct_DUMPBIN" = x; then
12445 DUMPBIN=":"
12446 else
12447 case $cross_compiling:$ac_tool_warned in
12448 yes:)
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12451 ac_tool_warned=yes ;;
12452 esac
12453 DUMPBIN=$ac_ct_DUMPBIN
12454 fi
12455 fi
12456
12457 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12458 *COFF*)
12459 DUMPBIN="$DUMPBIN -symbols"
12460 ;;
12461 *)
12462 DUMPBIN=:
12463 ;;
12464 esac
12465 fi
12466
12467 if test "$DUMPBIN" != ":"; then
12468 NM="$DUMPBIN"
12469 fi
12470 fi
12471 test -z "$NM" && NM=nm
12472
12473
12474
12475
12476
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12479 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12480 if test "${lt_cv_nm_interface+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 lt_cv_nm_interface="BSD nm"
12484 echo "int some_variable = 0;" > conftest.$ac_ext
12485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12486 (eval "$ac_compile" 2>conftest.err)
12487 cat conftest.err >&5
12488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12490 cat conftest.err >&5
12491 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12492 cat conftest.out >&5
12493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12494 lt_cv_nm_interface="MS dumpbin"
12495 fi
12496 rm -f conftest*
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12499 $as_echo "$lt_cv_nm_interface" >&6; }
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12502 $as_echo_n "checking whether ln -s works... " >&6; }
12503 LN_S=$as_ln_s
12504 if test "$LN_S" = "ln -s"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12506 $as_echo "yes" >&6; }
12507 else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12509 $as_echo "no, using $LN_S" >&6; }
12510 fi
12511
12512 # find the maximum length of command line arguments
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12514 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12515 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 i=0
12519 teststring="ABCD"
12520
12521 case $build_os in
12522 msdosdjgpp*)
12523 # On DJGPP, this test can blow up pretty badly due to problems in libc
12524 # (any single argument exceeding 2000 bytes causes a buffer overrun
12525 # during glob expansion). Even if it were fixed, the result of this
12526 # check would be larger than it should be.
12527 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12528 ;;
12529
12530 gnu*)
12531 # Under GNU Hurd, this test is not required because there is
12532 # no limit to the length of command line arguments.
12533 # Libtool will interpret -1 as no limit whatsoever
12534 lt_cv_sys_max_cmd_len=-1;
12535 ;;
12536
12537 cygwin* | mingw* | cegcc*)
12538 # On Win9x/ME, this test blows up -- it succeeds, but takes
12539 # about 5 minutes as the teststring grows exponentially.
12540 # Worse, since 9x/ME are not pre-emptively multitasking,
12541 # you end up with a "frozen" computer, even though with patience
12542 # the test eventually succeeds (with a max line length of 256k).
12543 # Instead, let's just punt: use the minimum linelength reported by
12544 # all of the supported platforms: 8192 (on NT/2K/XP).
12545 lt_cv_sys_max_cmd_len=8192;
12546 ;;
12547
12548 mint*)
12549 # On MiNT this can take a long time and run out of memory.
12550 lt_cv_sys_max_cmd_len=8192;
12551 ;;
12552
12553 amigaos*)
12554 # On AmigaOS with pdksh, this test takes hours, literally.
12555 # So we just punt and use a minimum line length of 8192.
12556 lt_cv_sys_max_cmd_len=8192;
12557 ;;
12558
12559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12560 # This has been around since 386BSD, at least. Likely further.
12561 if test -x /sbin/sysctl; then
12562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12563 elif test -x /usr/sbin/sysctl; then
12564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12565 else
12566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12567 fi
12568 # And add a safety zone
12569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12571 ;;
12572
12573 interix*)
12574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12575 lt_cv_sys_max_cmd_len=196608
12576 ;;
12577
12578 osf*)
12579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12581 # nice to cause kernel panics so lets avoid the loop below.
12582 # First set a reasonable default.
12583 lt_cv_sys_max_cmd_len=16384
12584 #
12585 if test -x /sbin/sysconfig; then
12586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12587 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12588 esac
12589 fi
12590 ;;
12591 sco3.2v5*)
12592 lt_cv_sys_max_cmd_len=102400
12593 ;;
12594 sysv5* | sco5v6* | sysv4.2uw2*)
12595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12596 if test -n "$kargmax"; then
12597 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12598 else
12599 lt_cv_sys_max_cmd_len=32768
12600 fi
12601 ;;
12602 *)
12603 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12604 if test -n "$lt_cv_sys_max_cmd_len"; then
12605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12607 else
12608 # Make teststring a little bigger before we do anything with it.
12609 # a 1K string should be a reasonable start.
12610 for i in 1 2 3 4 5 6 7 8 ; do
12611 teststring=$teststring$teststring
12612 done
12613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12614 # If test is not a shell built-in, we'll probably end up computing a
12615 # maximum length that is only half of the actual maximum length, but
12616 # we can't tell.
12617 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12618 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12619 test $i != 17 # 1/2 MB should be enough
12620 do
12621 i=`expr $i + 1`
12622 teststring=$teststring$teststring
12623 done
12624 # Only check the string length outside the loop.
12625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12626 teststring=
12627 # Add a significant safety factor because C++ compilers can tack on
12628 # massive amounts of additional arguments before passing them to the
12629 # linker. It appears as though 1/2 is a usable value.
12630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12631 fi
12632 ;;
12633 esac
12634
12635 fi
12636
12637 if test -n $lt_cv_sys_max_cmd_len ; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12639 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12642 $as_echo "none" >&6; }
12643 fi
12644 max_cmd_len=$lt_cv_sys_max_cmd_len
12645
12646
12647
12648
12649
12650
12651 : ${CP="cp -f"}
12652 : ${MV="mv -f"}
12653 : ${RM="rm -f"}
12654
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12656 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12657 # Try some XSI features
12658 xsi_shell=no
12659 ( _lt_dummy="a/b/c"
12660 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12661 = c,a/b,, \
12662 && eval 'test $(( 1 + 1 )) -eq 2 \
12663 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12664 && xsi_shell=yes
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12666 $as_echo "$xsi_shell" >&6; }
12667
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12670 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12671 lt_shell_append=no
12672 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12673 >/dev/null 2>&1 \
12674 && lt_shell_append=yes
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12676 $as_echo "$lt_shell_append" >&6; }
12677
12678
12679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12680 lt_unset=unset
12681 else
12682 lt_unset=false
12683 fi
12684
12685
12686
12687
12688
12689 # test EBCDIC or ASCII
12690 case `echo X|tr X '\101'` in
12691 A) # ASCII based system
12692 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12693 lt_SP2NL='tr \040 \012'
12694 lt_NL2SP='tr \015\012 \040\040'
12695 ;;
12696 *) # EBCDIC based system
12697 lt_SP2NL='tr \100 \n'
12698 lt_NL2SP='tr \r\n \100\100'
12699 ;;
12700 esac
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12711 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12712 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 lt_cv_ld_reload_flag='-r'
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12718 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12719 reload_flag=$lt_cv_ld_reload_flag
12720 case $reload_flag in
12721 "" | " "*) ;;
12722 *) reload_flag=" $reload_flag" ;;
12723 esac
12724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12725 case $host_os in
12726 darwin*)
12727 if test "$GCC" = yes; then
12728 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12729 else
12730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12731 fi
12732 ;;
12733 esac
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743 if test -n "$ac_tool_prefix"; then
12744 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12745 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$OBJDUMP"; then
12752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 OBJDUMP=$ac_cv_prog_OBJDUMP
12772 if test -n "$OBJDUMP"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12774 $as_echo "$OBJDUMP" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780
12781 fi
12782 if test -z "$ac_cv_prog_OBJDUMP"; then
12783 ac_ct_OBJDUMP=$OBJDUMP
12784 # Extract the first word of "objdump", so it can be a program name with args.
12785 set dummy objdump; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 if test -n "$ac_ct_OBJDUMP"; then
12792 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12793 else
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12796 do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12801 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805 done
12806 done
12807 IFS=$as_save_IFS
12808
12809 fi
12810 fi
12811 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12812 if test -n "$ac_ct_OBJDUMP"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12814 $as_echo "$ac_ct_OBJDUMP" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12818 fi
12819
12820 if test "x$ac_ct_OBJDUMP" = x; then
12821 OBJDUMP="false"
12822 else
12823 case $cross_compiling:$ac_tool_warned in
12824 yes:)
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12827 ac_tool_warned=yes ;;
12828 esac
12829 OBJDUMP=$ac_ct_OBJDUMP
12830 fi
12831 else
12832 OBJDUMP="$ac_cv_prog_OBJDUMP"
12833 fi
12834
12835 test -z "$OBJDUMP" && OBJDUMP=objdump
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12846 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12847 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 lt_cv_file_magic_cmd='$MAGIC_CMD'
12851 lt_cv_file_magic_test_file=
12852 lt_cv_deplibs_check_method='unknown'
12853 # Need to set the preceding variable on all platforms that support
12854 # interlibrary dependencies.
12855 # 'none' -- dependencies not supported.
12856 # `unknown' -- same as none, but documents that we really don't know.
12857 # 'pass_all' -- all dependencies passed with no checks.
12858 # 'test_compile' -- check by making test program.
12859 # 'file_magic [[regex]]' -- check by looking for files in library path
12860 # which responds to the $file_magic_cmd with a given extended regex.
12861 # If you have `file' or equivalent on your system and you're not sure
12862 # whether `pass_all' will *always* work, you probably want this one.
12863
12864 case $host_os in
12865 aix[4-9]*)
12866 lt_cv_deplibs_check_method=pass_all
12867 ;;
12868
12869 beos*)
12870 lt_cv_deplibs_check_method=pass_all
12871 ;;
12872
12873 bsdi[45]*)
12874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12875 lt_cv_file_magic_cmd='/usr/bin/file -L'
12876 lt_cv_file_magic_test_file=/shlib/libc.so
12877 ;;
12878
12879 cygwin*)
12880 # func_win32_libid is a shell function defined in ltmain.sh
12881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12882 lt_cv_file_magic_cmd='func_win32_libid'
12883 ;;
12884
12885 mingw* | pw32*)
12886 # Base MSYS/MinGW do not provide the 'file' command needed by
12887 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12888 # unless we find 'file', for example because we are cross-compiling.
12889 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12890 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12892 lt_cv_file_magic_cmd='func_win32_libid'
12893 else
12894 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12895 lt_cv_file_magic_cmd='$OBJDUMP -f'
12896 fi
12897 ;;
12898
12899 cegcc*)
12900 # use the weaker test based on 'objdump'. See mingw*.
12901 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12902 lt_cv_file_magic_cmd='$OBJDUMP -f'
12903 ;;
12904
12905 darwin* | rhapsody*)
12906 lt_cv_deplibs_check_method=pass_all
12907 ;;
12908
12909 freebsd* | dragonfly*)
12910 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12911 case $host_cpu in
12912 i*86 )
12913 # Not sure whether the presence of OpenBSD here was a mistake.
12914 # Let's accept both of them until this is cleared up.
12915 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12916 lt_cv_file_magic_cmd=/usr/bin/file
12917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12918 ;;
12919 esac
12920 else
12921 lt_cv_deplibs_check_method=pass_all
12922 fi
12923 ;;
12924
12925 gnu*)
12926 lt_cv_deplibs_check_method=pass_all
12927 ;;
12928
12929 haiku*)
12930 lt_cv_deplibs_check_method=pass_all
12931 ;;
12932
12933 hpux10.20* | hpux11*)
12934 lt_cv_file_magic_cmd=/usr/bin/file
12935 case $host_cpu in
12936 ia64*)
12937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12939 ;;
12940 hppa*64*)
12941 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]'
12942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12943 ;;
12944 *)
12945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12947 ;;
12948 esac
12949 ;;
12950
12951 interix[3-9]*)
12952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12954 ;;
12955
12956 irix5* | irix6* | nonstopux*)
12957 case $LD in
12958 *-32|*"-32 ") libmagic=32-bit;;
12959 *-n32|*"-n32 ") libmagic=N32;;
12960 *-64|*"-64 ") libmagic=64-bit;;
12961 *) libmagic=never-match;;
12962 esac
12963 lt_cv_deplibs_check_method=pass_all
12964 ;;
12965
12966 # This must be Linux ELF.
12967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12968 lt_cv_deplibs_check_method=pass_all
12969 ;;
12970
12971 netbsd*)
12972 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12974 else
12975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12976 fi
12977 ;;
12978
12979 newos6*)
12980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12981 lt_cv_file_magic_cmd=/usr/bin/file
12982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12983 ;;
12984
12985 *nto* | *qnx*)
12986 lt_cv_deplibs_check_method=pass_all
12987 ;;
12988
12989 openbsd*)
12990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12992 else
12993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12994 fi
12995 ;;
12996
12997 osf3* | osf4* | osf5*)
12998 lt_cv_deplibs_check_method=pass_all
12999 ;;
13000
13001 rdos*)
13002 lt_cv_deplibs_check_method=pass_all
13003 ;;
13004
13005 solaris*)
13006 lt_cv_deplibs_check_method=pass_all
13007 ;;
13008
13009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13010 lt_cv_deplibs_check_method=pass_all
13011 ;;
13012
13013 sysv4 | sysv4.3*)
13014 case $host_vendor in
13015 motorola)
13016 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]'
13017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13018 ;;
13019 ncr)
13020 lt_cv_deplibs_check_method=pass_all
13021 ;;
13022 sequent)
13023 lt_cv_file_magic_cmd='/bin/file'
13024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13025 ;;
13026 sni)
13027 lt_cv_file_magic_cmd='/bin/file'
13028 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13029 lt_cv_file_magic_test_file=/lib/libc.so
13030 ;;
13031 siemens)
13032 lt_cv_deplibs_check_method=pass_all
13033 ;;
13034 pc)
13035 lt_cv_deplibs_check_method=pass_all
13036 ;;
13037 esac
13038 ;;
13039
13040 tpf*)
13041 lt_cv_deplibs_check_method=pass_all
13042 ;;
13043 esac
13044
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13047 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13048 file_magic_cmd=$lt_cv_file_magic_cmd
13049 deplibs_check_method=$lt_cv_deplibs_check_method
13050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063 if test -n "$ac_tool_prefix"; then
13064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13065 set dummy ${ac_tool_prefix}ar; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if test "${ac_cv_prog_AR+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$AR"; then
13072 ac_cv_prog_AR="$AR" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13081 ac_cv_prog_AR="${ac_tool_prefix}ar"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 AR=$ac_cv_prog_AR
13092 if test -n "$AR"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13094 $as_echo "$AR" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101 fi
13102 if test -z "$ac_cv_prog_AR"; then
13103 ac_ct_AR=$AR
13104 # Extract the first word of "ar", so it can be a program name with args.
13105 set dummy ar; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 if test -n "$ac_ct_AR"; then
13112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13121 ac_cv_prog_ac_ct_AR="ar"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13124 fi
13125 done
13126 done
13127 IFS=$as_save_IFS
13128
13129 fi
13130 fi
13131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13132 if test -n "$ac_ct_AR"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13134 $as_echo "$ac_ct_AR" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140 if test "x$ac_ct_AR" = x; then
13141 AR="false"
13142 else
13143 case $cross_compiling:$ac_tool_warned in
13144 yes:)
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13147 ac_tool_warned=yes ;;
13148 esac
13149 AR=$ac_ct_AR
13150 fi
13151 else
13152 AR="$ac_cv_prog_AR"
13153 fi
13154
13155 test -z "$AR" && AR=ar
13156 test -z "$AR_FLAGS" && AR_FLAGS=cru
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13170 set dummy ${ac_tool_prefix}strip; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_STRIP+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$STRIP"; then
13177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 STRIP=$ac_cv_prog_STRIP
13197 if test -n "$STRIP"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13199 $as_echo "$STRIP" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206 fi
13207 if test -z "$ac_cv_prog_STRIP"; then
13208 ac_ct_STRIP=$STRIP
13209 # Extract the first word of "strip", so it can be a program name with args.
13210 set dummy strip; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$ac_ct_STRIP"; then
13217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_ac_ct_STRIP="strip"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230 done
13231 done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13237 if test -n "$ac_ct_STRIP"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13239 $as_echo "$ac_ct_STRIP" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245 if test "x$ac_ct_STRIP" = x; then
13246 STRIP=":"
13247 else
13248 case $cross_compiling:$ac_tool_warned in
13249 yes:)
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252 ac_tool_warned=yes ;;
13253 esac
13254 STRIP=$ac_ct_STRIP
13255 fi
13256 else
13257 STRIP="$ac_cv_prog_STRIP"
13258 fi
13259
13260 test -z "$STRIP" && STRIP=:
13261
13262
13263
13264
13265
13266
13267 if test -n "$ac_tool_prefix"; then
13268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$RANLIB"; then
13276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289 done
13290 done
13291 IFS=$as_save_IFS
13292
13293 fi
13294 fi
13295 RANLIB=$ac_cv_prog_RANLIB
13296 if test -n "$RANLIB"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13298 $as_echo "$RANLIB" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304
13305 fi
13306 if test -z "$ac_cv_prog_RANLIB"; then
13307 ac_ct_RANLIB=$RANLIB
13308 # Extract the first word of "ranlib", so it can be a program name with args.
13309 set dummy ranlib; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 if test -n "$ac_ct_RANLIB"; then
13316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13317 else
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13320 do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325 ac_cv_prog_ac_ct_RANLIB="ranlib"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329 done
13330 done
13331 IFS=$as_save_IFS
13332
13333 fi
13334 fi
13335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13336 if test -n "$ac_ct_RANLIB"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13338 $as_echo "$ac_ct_RANLIB" >&6; }
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342 fi
13343
13344 if test "x$ac_ct_RANLIB" = x; then
13345 RANLIB=":"
13346 else
13347 case $cross_compiling:$ac_tool_warned in
13348 yes:)
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13351 ac_tool_warned=yes ;;
13352 esac
13353 RANLIB=$ac_ct_RANLIB
13354 fi
13355 else
13356 RANLIB="$ac_cv_prog_RANLIB"
13357 fi
13358
13359 test -z "$RANLIB" && RANLIB=:
13360
13361
13362
13363
13364
13365
13366 # Determine commands to create old-style static archives.
13367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13368 old_postinstall_cmds='chmod 644 $oldlib'
13369 old_postuninstall_cmds=
13370
13371 if test -n "$RANLIB"; then
13372 case $host_os in
13373 openbsd*)
13374 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13375 ;;
13376 *)
13377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13378 ;;
13379 esac
13380 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13381 fi
13382
13383 case $host_os in
13384 darwin*)
13385 lock_old_archive_extraction=yes ;;
13386 *)
13387 lock_old_archive_extraction=no ;;
13388 esac
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 # If no C compiler was specified, use CC.
13429 LTCC=${LTCC-"$CC"}
13430
13431 # If no C compiler flags were specified, use CFLAGS.
13432 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13433
13434 # Allow CC to be a program name with arguments.
13435 compiler=$CC
13436
13437
13438 # Check for command to grab the raw symbol name followed by C symbol from nm.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13440 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444
13445 # These are sane defaults that work on at least a few old systems.
13446 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13447
13448 # Character class describing NM global symbol codes.
13449 symcode='[BCDEGRST]'
13450
13451 # Regexp to match symbols that can be accessed directly from C.
13452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13453
13454 # Define system-specific variables.
13455 case $host_os in
13456 aix*)
13457 symcode='[BCDT]'
13458 ;;
13459 cygwin* | mingw* | pw32* | cegcc*)
13460 symcode='[ABCDGISTW]'
13461 ;;
13462 hpux*)
13463 if test "$host_cpu" = ia64; then
13464 symcode='[ABCDEGRST]'
13465 fi
13466 ;;
13467 irix* | nonstopux*)
13468 symcode='[BCDEGRST]'
13469 ;;
13470 osf*)
13471 symcode='[BCDEGQRST]'
13472 ;;
13473 solaris*)
13474 symcode='[BDRT]'
13475 ;;
13476 sco3.2v5*)
13477 symcode='[DT]'
13478 ;;
13479 sysv4.2uw2*)
13480 symcode='[DT]'
13481 ;;
13482 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13483 symcode='[ABDT]'
13484 ;;
13485 sysv4)
13486 symcode='[DFNSTU]'
13487 ;;
13488 esac
13489
13490 # If we're using GNU nm, then use its standard symbol codes.
13491 case `$NM -V 2>&1` in
13492 *GNU* | *'with BFD'*)
13493 symcode='[ABCDGIRSTW]' ;;
13494 esac
13495
13496 # Transform an extracted symbol line into a proper C declaration.
13497 # Some systems (esp. on ia64) link data and code symbols differently,
13498 # so use this general approach.
13499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13500
13501 # Transform an extracted symbol line into symbol name and symbol address
13502 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13503 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'"
13504
13505 # Handle CRLF in mingw tool chain
13506 opt_cr=
13507 case $build_os in
13508 mingw*)
13509 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13510 ;;
13511 esac
13512
13513 # Try without a prefix underscore, then with it.
13514 for ac_symprfx in "" "_"; do
13515
13516 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13517 symxfrm="\\1 $ac_symprfx\\2 \\2"
13518
13519 # Write the raw and C identifiers.
13520 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13521 # Fake it for dumpbin and say T for any non-static function
13522 # and D for any global variable.
13523 # Also find C++ and __fastcall symbols from MSVC++,
13524 # which start with @ or ?.
13525 lt_cv_sys_global_symbol_pipe="$AWK '"\
13526 " {last_section=section; section=\$ 3};"\
13527 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13528 " \$ 0!~/External *\|/{next};"\
13529 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13530 " {if(hide[section]) next};"\
13531 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13532 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13533 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13534 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13535 " ' prfx=^$ac_symprfx"
13536 else
13537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13538 fi
13539
13540 # Check to see that the pipe works correctly.
13541 pipe_works=no
13542
13543 rm -f conftest*
13544 cat > conftest.$ac_ext <<_LT_EOF
13545 #ifdef __cplusplus
13546 extern "C" {
13547 #endif
13548 char nm_test_var;
13549 void nm_test_func(void);
13550 void nm_test_func(void){}
13551 #ifdef __cplusplus
13552 }
13553 #endif
13554 int main(){nm_test_var='a';nm_test_func();return(0);}
13555 _LT_EOF
13556
13557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13558 (eval $ac_compile) 2>&5
13559 ac_status=$?
13560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13561 test $ac_status = 0; }; then
13562 # Now try to grab the symbols.
13563 nlist=conftest.nm
13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13565 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13566 ac_status=$?
13567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568 test $ac_status = 0; } && test -s "$nlist"; then
13569 # Try sorting and uniquifying the output.
13570 if sort "$nlist" | uniq > "$nlist"T; then
13571 mv -f "$nlist"T "$nlist"
13572 else
13573 rm -f "$nlist"T
13574 fi
13575
13576 # Make sure that we snagged all the symbols we need.
13577 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13578 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13579 cat <<_LT_EOF > conftest.$ac_ext
13580 #ifdef __cplusplus
13581 extern "C" {
13582 #endif
13583
13584 _LT_EOF
13585 # Now generate the symbol file.
13586 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13587
13588 cat <<_LT_EOF >> conftest.$ac_ext
13589
13590 /* The mapping between symbol names and symbols. */
13591 const struct {
13592 const char *name;
13593 void *address;
13594 }
13595 lt__PROGRAM__LTX_preloaded_symbols[] =
13596 {
13597 { "@PROGRAM@", (void *) 0 },
13598 _LT_EOF
13599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13600 cat <<\_LT_EOF >> conftest.$ac_ext
13601 {0, (void *) 0}
13602 };
13603
13604 /* This works around a problem in FreeBSD linker */
13605 #ifdef FREEBSD_WORKAROUND
13606 static const void *lt_preloaded_setup() {
13607 return lt__PROGRAM__LTX_preloaded_symbols;
13608 }
13609 #endif
13610
13611 #ifdef __cplusplus
13612 }
13613 #endif
13614 _LT_EOF
13615 # Now try linking the two files.
13616 mv conftest.$ac_objext conftstm.$ac_objext
13617 lt_save_LIBS="$LIBS"
13618 lt_save_CFLAGS="$CFLAGS"
13619 LIBS="conftstm.$ac_objext"
13620 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13622 (eval $ac_link) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13626 pipe_works=yes
13627 fi
13628 LIBS="$lt_save_LIBS"
13629 CFLAGS="$lt_save_CFLAGS"
13630 else
13631 echo "cannot find nm_test_func in $nlist" >&5
13632 fi
13633 else
13634 echo "cannot find nm_test_var in $nlist" >&5
13635 fi
13636 else
13637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13638 fi
13639 else
13640 echo "$progname: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13642 fi
13643 rm -rf conftest* conftst*
13644
13645 # Do not use the global_symbol_pipe unless it works.
13646 if test "$pipe_works" = yes; then
13647 break
13648 else
13649 lt_cv_sys_global_symbol_pipe=
13650 fi
13651 done
13652
13653 fi
13654
13655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13656 lt_cv_sys_global_symbol_to_cdecl=
13657 fi
13658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13660 $as_echo "failed" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13663 $as_echo "ok" >&6; }
13664 fi
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687 # Check whether --enable-libtool-lock was given.
13688 if test "${enable_libtool_lock+set}" = set; then :
13689 enableval=$enable_libtool_lock;
13690 fi
13691
13692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13693
13694 # Some flags need to be propagated to the compiler or linker for good
13695 # libtool support.
13696 case $host in
13697 ia64-*-hpux*)
13698 # Find out which ABI we are using.
13699 echo 'int i;' > conftest.$ac_ext
13700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13701 (eval $ac_compile) 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 case `/usr/bin/file conftest.$ac_objext` in
13706 *ELF-32*)
13707 HPUX_IA64_MODE="32"
13708 ;;
13709 *ELF-64*)
13710 HPUX_IA64_MODE="64"
13711 ;;
13712 esac
13713 fi
13714 rm -rf conftest*
13715 ;;
13716 *-*-irix6*)
13717 # Find out which ABI we are using.
13718 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13720 (eval $ac_compile) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723 test $ac_status = 0; }; then
13724 if test "$lt_cv_prog_gnu_ld" = yes; then
13725 case `/usr/bin/file conftest.$ac_objext` in
13726 *32-bit*)
13727 LD="${LD-ld} -melf32bsmip"
13728 ;;
13729 *N32*)
13730 LD="${LD-ld} -melf32bmipn32"
13731 ;;
13732 *64-bit*)
13733 LD="${LD-ld} -melf64bmip"
13734 ;;
13735 esac
13736 else
13737 case `/usr/bin/file conftest.$ac_objext` in
13738 *32-bit*)
13739 LD="${LD-ld} -32"
13740 ;;
13741 *N32*)
13742 LD="${LD-ld} -n32"
13743 ;;
13744 *64-bit*)
13745 LD="${LD-ld} -64"
13746 ;;
13747 esac
13748 fi
13749 fi
13750 rm -rf conftest*
13751 ;;
13752
13753 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13754 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13755 # Find out which ABI we are using.
13756 echo 'int i;' > conftest.$ac_ext
13757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13758 (eval $ac_compile) 2>&5
13759 ac_status=$?
13760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761 test $ac_status = 0; }; then
13762 case `/usr/bin/file conftest.o` in
13763 *32-bit*)
13764 case $host in
13765 x86_64-*kfreebsd*-gnu)
13766 LD="${LD-ld} -m elf_i386_fbsd"
13767 ;;
13768 x86_64-*linux*)
13769 case `/usr/bin/file conftest.o` in
13770 *x86-64*)
13771 LD="${LD-ld} -m elf32_x86_64"
13772 ;;
13773 *)
13774 LD="${LD-ld} -m elf_i386"
13775 ;;
13776 esac
13777 ;;
13778 powerpc64le-*linux*)
13779 LD="${LD-ld} -m elf32lppclinux"
13780 ;;
13781 powerpc64-*linux*)
13782 LD="${LD-ld} -m elf32ppclinux"
13783 ;;
13784 s390x-*linux*)
13785 LD="${LD-ld} -m elf_s390"
13786 ;;
13787 sparc64-*linux*)
13788 LD="${LD-ld} -m elf32_sparc"
13789 ;;
13790 esac
13791 ;;
13792 *64-bit*)
13793 case $host in
13794 x86_64-*kfreebsd*-gnu)
13795 LD="${LD-ld} -m elf_x86_64_fbsd"
13796 ;;
13797 x86_64-*linux*)
13798 LD="${LD-ld} -m elf_x86_64"
13799 ;;
13800 powerpcle-*linux*)
13801 LD="${LD-ld} -m elf64lppc"
13802 ;;
13803 powerpc-*linux*)
13804 LD="${LD-ld} -m elf64ppc"
13805 ;;
13806 s390*-*linux*|s390*-*tpf*)
13807 LD="${LD-ld} -m elf64_s390"
13808 ;;
13809 sparc*-*linux*)
13810 LD="${LD-ld} -m elf64_sparc"
13811 ;;
13812 esac
13813 ;;
13814 esac
13815 fi
13816 rm -rf conftest*
13817 ;;
13818
13819 *-*-sco3.2v5*)
13820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13821 SAVE_CFLAGS="$CFLAGS"
13822 CFLAGS="$CFLAGS -belf"
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13824 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13825 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 ac_ext=c
13829 ac_cpp='$CPP $CPPFLAGS'
13830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836
13837 int
13838 main ()
13839 {
13840
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 lt_cv_cc_needs_belf=yes
13847 else
13848 lt_cv_cc_needs_belf=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 ac_ext=c
13853 ac_cpp='$CPP $CPPFLAGS'
13854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858 fi
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13860 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13861 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13862 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13863 CFLAGS="$SAVE_CFLAGS"
13864 fi
13865 ;;
13866 sparc*-*solaris*)
13867 # Find out which ABI we are using.
13868 echo 'int i;' > conftest.$ac_ext
13869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13870 (eval $ac_compile) 2>&5
13871 ac_status=$?
13872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13873 test $ac_status = 0; }; then
13874 case `/usr/bin/file conftest.o` in
13875 *64-bit*)
13876 case $lt_cv_prog_gnu_ld in
13877 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13878 *)
13879 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13880 LD="${LD-ld} -64"
13881 fi
13882 ;;
13883 esac
13884 ;;
13885 esac
13886 fi
13887 rm -rf conftest*
13888 ;;
13889 esac
13890
13891 need_locks="$enable_libtool_lock"
13892
13893
13894 case $host_os in
13895 rhapsody* | darwin*)
13896 if test -n "$ac_tool_prefix"; then
13897 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13898 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 if test -n "$DSYMUTIL"; then
13905 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13906 else
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13909 do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918 done
13919 done
13920 IFS=$as_save_IFS
13921
13922 fi
13923 fi
13924 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13925 if test -n "$DSYMUTIL"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13927 $as_echo "$DSYMUTIL" >&6; }
13928 else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931 fi
13932
13933
13934 fi
13935 if test -z "$ac_cv_prog_DSYMUTIL"; then
13936 ac_ct_DSYMUTIL=$DSYMUTIL
13937 # Extract the first word of "dsymutil", so it can be a program name with args.
13938 set dummy dsymutil; ac_word=$2
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13940 $as_echo_n "checking for $ac_word... " >&6; }
13941 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 if test -n "$ac_ct_DSYMUTIL"; then
13945 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13946 else
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948 for as_dir in $PATH
13949 do
13950 IFS=$as_save_IFS
13951 test -z "$as_dir" && as_dir=.
13952 for ac_exec_ext in '' $ac_executable_extensions; do
13953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 break 2
13957 fi
13958 done
13959 done
13960 IFS=$as_save_IFS
13961
13962 fi
13963 fi
13964 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13965 if test -n "$ac_ct_DSYMUTIL"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13967 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13968 else
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13971 fi
13972
13973 if test "x$ac_ct_DSYMUTIL" = x; then
13974 DSYMUTIL=":"
13975 else
13976 case $cross_compiling:$ac_tool_warned in
13977 yes:)
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13980 ac_tool_warned=yes ;;
13981 esac
13982 DSYMUTIL=$ac_ct_DSYMUTIL
13983 fi
13984 else
13985 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13986 fi
13987
13988 if test -n "$ac_tool_prefix"; then
13989 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13990 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992 $as_echo_n "checking for $ac_word... " >&6; }
13993 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 if test -n "$NMEDIT"; then
13997 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13998 else
13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $PATH
14001 do
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14006 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 break 2
14009 fi
14010 done
14011 done
14012 IFS=$as_save_IFS
14013
14014 fi
14015 fi
14016 NMEDIT=$ac_cv_prog_NMEDIT
14017 if test -n "$NMEDIT"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14019 $as_echo "$NMEDIT" >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024
14025
14026 fi
14027 if test -z "$ac_cv_prog_NMEDIT"; then
14028 ac_ct_NMEDIT=$NMEDIT
14029 # Extract the first word of "nmedit", so it can be a program name with args.
14030 set dummy nmedit; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 if test -n "$ac_ct_NMEDIT"; then
14037 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14038 else
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14041 do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14046 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14049 fi
14050 done
14051 done
14052 IFS=$as_save_IFS
14053
14054 fi
14055 fi
14056 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14057 if test -n "$ac_ct_NMEDIT"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14059 $as_echo "$ac_ct_NMEDIT" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14063 fi
14064
14065 if test "x$ac_ct_NMEDIT" = x; then
14066 NMEDIT=":"
14067 else
14068 case $cross_compiling:$ac_tool_warned in
14069 yes:)
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14072 ac_tool_warned=yes ;;
14073 esac
14074 NMEDIT=$ac_ct_NMEDIT
14075 fi
14076 else
14077 NMEDIT="$ac_cv_prog_NMEDIT"
14078 fi
14079
14080 if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if test "${ac_cv_prog_LIPO+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 if test -n "$LIPO"; then
14089 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14090 else
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14093 do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 break 2
14101 fi
14102 done
14103 done
14104 IFS=$as_save_IFS
14105
14106 fi
14107 fi
14108 LIPO=$ac_cv_prog_LIPO
14109 if test -n "$LIPO"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14111 $as_echo "$LIPO" >&6; }
14112 else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14115 fi
14116
14117
14118 fi
14119 if test -z "$ac_cv_prog_LIPO"; then
14120 ac_ct_LIPO=$LIPO
14121 # Extract the first word of "lipo", so it can be a program name with args.
14122 set dummy lipo; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 if test -n "$ac_ct_LIPO"; then
14129 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14133 do
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_ac_ct_LIPO="lipo"
14139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14141 fi
14142 done
14143 done
14144 IFS=$as_save_IFS
14145
14146 fi
14147 fi
14148 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14149 if test -n "$ac_ct_LIPO"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14151 $as_echo "$ac_ct_LIPO" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155 fi
14156
14157 if test "x$ac_ct_LIPO" = x; then
14158 LIPO=":"
14159 else
14160 case $cross_compiling:$ac_tool_warned in
14161 yes:)
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14164 ac_tool_warned=yes ;;
14165 esac
14166 LIPO=$ac_ct_LIPO
14167 fi
14168 else
14169 LIPO="$ac_cv_prog_LIPO"
14170 fi
14171
14172 if test -n "$ac_tool_prefix"; then
14173 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14174 set dummy ${ac_tool_prefix}otool; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 if test -n "$OTOOL"; then
14181 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14185 do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 OTOOL=$ac_cv_prog_OTOOL
14201 if test -n "$OTOOL"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14203 $as_echo "$OTOOL" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14207 fi
14208
14209
14210 fi
14211 if test -z "$ac_cv_prog_OTOOL"; then
14212 ac_ct_OTOOL=$OTOOL
14213 # Extract the first word of "otool", so it can be a program name with args.
14214 set dummy otool; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 $as_echo_n "checking for $ac_word... " >&6; }
14217 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 if test -n "$ac_ct_OTOOL"; then
14221 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14222 else
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14225 do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14230 ac_cv_prog_ac_ct_OTOOL="otool"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234 done
14235 done
14236 IFS=$as_save_IFS
14237
14238 fi
14239 fi
14240 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14241 if test -n "$ac_ct_OTOOL"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14243 $as_echo "$ac_ct_OTOOL" >&6; }
14244 else
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14247 fi
14248
14249 if test "x$ac_ct_OTOOL" = x; then
14250 OTOOL=":"
14251 else
14252 case $cross_compiling:$ac_tool_warned in
14253 yes:)
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14256 ac_tool_warned=yes ;;
14257 esac
14258 OTOOL=$ac_ct_OTOOL
14259 fi
14260 else
14261 OTOOL="$ac_cv_prog_OTOOL"
14262 fi
14263
14264 if test -n "$ac_tool_prefix"; then
14265 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14266 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268 $as_echo_n "checking for $ac_word... " >&6; }
14269 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 if test -n "$OTOOL64"; then
14273 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14274 else
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14277 do
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14282 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 break 2
14285 fi
14286 done
14287 done
14288 IFS=$as_save_IFS
14289
14290 fi
14291 fi
14292 OTOOL64=$ac_cv_prog_OTOOL64
14293 if test -n "$OTOOL64"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14295 $as_echo "$OTOOL64" >&6; }
14296 else
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301
14302 fi
14303 if test -z "$ac_cv_prog_OTOOL64"; then
14304 ac_ct_OTOOL64=$OTOOL64
14305 # Extract the first word of "otool64", so it can be a program name with args.
14306 set dummy otool64; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 if test -n "$ac_ct_OTOOL64"; then
14313 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14314 else
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14317 do
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_prog_ac_ct_OTOOL64="otool64"
14323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14325 fi
14326 done
14327 done
14328 IFS=$as_save_IFS
14329
14330 fi
14331 fi
14332 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14333 if test -n "$ac_ct_OTOOL64"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14335 $as_echo "$ac_ct_OTOOL64" >&6; }
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340
14341 if test "x$ac_ct_OTOOL64" = x; then
14342 OTOOL64=":"
14343 else
14344 case $cross_compiling:$ac_tool_warned in
14345 yes:)
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14348 ac_tool_warned=yes ;;
14349 esac
14350 OTOOL64=$ac_ct_OTOOL64
14351 fi
14352 else
14353 OTOOL64="$ac_cv_prog_OTOOL64"
14354 fi
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14383 $as_echo_n "checking for -single_module linker flag... " >&6; }
14384 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 lt_cv_apple_cc_single_mod=no
14388 if test -z "${LT_MULTI_MODULE}"; then
14389 # By default we will add the -single_module flag. You can override
14390 # by either setting the environment variable LT_MULTI_MODULE
14391 # non-empty at configure time, or by adding -multi_module to the
14392 # link flags.
14393 rm -rf libconftest.dylib*
14394 echo "int foo(void){return 1;}" > conftest.c
14395 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14396 -dynamiclib -Wl,-single_module conftest.c" >&5
14397 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14398 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14399 _lt_result=$?
14400 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14401 lt_cv_apple_cc_single_mod=yes
14402 else
14403 cat conftest.err >&5
14404 fi
14405 rm -rf libconftest.dylib*
14406 rm -f conftest.*
14407 fi
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14410 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14412 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14413 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 lt_cv_ld_exported_symbols_list=no
14417 save_LDFLAGS=$LDFLAGS
14418 echo "_main" > conftest.sym
14419 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 int
14424 main ()
14425 {
14426
14427 ;
14428 return 0;
14429 }
14430 _ACEOF
14431 if ac_fn_c_try_link "$LINENO"; then :
14432 lt_cv_ld_exported_symbols_list=yes
14433 else
14434 lt_cv_ld_exported_symbols_list=no
14435 fi
14436 rm -f core conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14438 LDFLAGS="$save_LDFLAGS"
14439
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14442 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14444 $as_echo_n "checking for -force_load linker flag... " >&6; }
14445 if test "${lt_cv_ld_force_load+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 lt_cv_ld_force_load=no
14449 cat > conftest.c << _LT_EOF
14450 int forced_loaded() { return 2;}
14451 _LT_EOF
14452 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14453 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14454 echo "$AR cru libconftest.a conftest.o" >&5
14455 $AR cru libconftest.a conftest.o 2>&5
14456 cat > conftest.c << _LT_EOF
14457 int main() { return 0;}
14458 _LT_EOF
14459 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14460 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14461 _lt_result=$?
14462 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14463 lt_cv_ld_force_load=yes
14464 else
14465 cat conftest.err >&5
14466 fi
14467 rm -f conftest.err libconftest.a conftest conftest.c
14468 rm -rf conftest.dSYM
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14472 $as_echo "$lt_cv_ld_force_load" >&6; }
14473 case $host_os in
14474 rhapsody* | darwin1.[012])
14475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14476 darwin1.*)
14477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14478 darwin*) # darwin 5.x on
14479 # if running on 10.5 or later, the deployment target defaults
14480 # to the OS version, if on x86, and 10.4, the deployment
14481 # target defaults to 10.4. Don't you love it?
14482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14483 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14485 10.[012]*)
14486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14487 10.*)
14488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14489 esac
14490 ;;
14491 esac
14492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14493 _lt_dar_single_mod='$single_module'
14494 fi
14495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14497 else
14498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14499 fi
14500 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14501 _lt_dsymutil='~$DSYMUTIL $lib || :'
14502 else
14503 _lt_dsymutil=
14504 fi
14505 ;;
14506 esac
14507
14508 for ac_header in dlfcn.h
14509 do :
14510 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14511 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_DLFCN_H 1
14514 _ACEOF
14515
14516 fi
14517 done
14518
14519
14520
14521
14522
14523 # Set options
14524
14525
14526
14527 enable_dlopen=no
14528
14529
14530 enable_win32_dll=no
14531
14532
14533 # Check whether --enable-shared was given.
14534 if test "${enable_shared+set}" = set; then :
14535 enableval=$enable_shared; p=${PACKAGE-default}
14536 case $enableval in
14537 yes) enable_shared=yes ;;
14538 no) enable_shared=no ;;
14539 *)
14540 enable_shared=no
14541 # Look at the argument we got. We use all the common list separators.
14542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14543 for pkg in $enableval; do
14544 IFS="$lt_save_ifs"
14545 if test "X$pkg" = "X$p"; then
14546 enable_shared=yes
14547 fi
14548 done
14549 IFS="$lt_save_ifs"
14550 ;;
14551 esac
14552 else
14553 enable_shared=yes
14554 fi
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564 # Check whether --enable-static was given.
14565 if test "${enable_static+set}" = set; then :
14566 enableval=$enable_static; p=${PACKAGE-default}
14567 case $enableval in
14568 yes) enable_static=yes ;;
14569 no) enable_static=no ;;
14570 *)
14571 enable_static=no
14572 # Look at the argument we got. We use all the common list separators.
14573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14574 for pkg in $enableval; do
14575 IFS="$lt_save_ifs"
14576 if test "X$pkg" = "X$p"; then
14577 enable_static=yes
14578 fi
14579 done
14580 IFS="$lt_save_ifs"
14581 ;;
14582 esac
14583 else
14584 enable_static=yes
14585 fi
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596 # Check whether --with-pic was given.
14597 if test "${with_pic+set}" = set; then :
14598 withval=$with_pic; pic_mode="$withval"
14599 else
14600 pic_mode=default
14601 fi
14602
14603
14604 test -z "$pic_mode" && pic_mode=default
14605
14606
14607
14608
14609
14610
14611
14612 # Check whether --enable-fast-install was given.
14613 if test "${enable_fast_install+set}" = set; then :
14614 enableval=$enable_fast_install; p=${PACKAGE-default}
14615 case $enableval in
14616 yes) enable_fast_install=yes ;;
14617 no) enable_fast_install=no ;;
14618 *)
14619 enable_fast_install=no
14620 # Look at the argument we got. We use all the common list separators.
14621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14622 for pkg in $enableval; do
14623 IFS="$lt_save_ifs"
14624 if test "X$pkg" = "X$p"; then
14625 enable_fast_install=yes
14626 fi
14627 done
14628 IFS="$lt_save_ifs"
14629 ;;
14630 esac
14631 else
14632 enable_fast_install=yes
14633 fi
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645 # This can be used to rebuild libtool when needed
14646 LIBTOOL_DEPS="$ltmain"
14647
14648 # Always use our own libtool.
14649 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676 test -z "$LN_S" && LN_S="ln -s"
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 if test -n "${ZSH_VERSION+set}" ; then
14692 setopt NO_GLOB_SUBST
14693 fi
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14696 $as_echo_n "checking for objdir... " >&6; }
14697 if test "${lt_cv_objdir+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 rm -f .libs 2>/dev/null
14701 mkdir .libs 2>/dev/null
14702 if test -d .libs; then
14703 lt_cv_objdir=.libs
14704 else
14705 # MS-DOS does not allow filenames that begin with a dot.
14706 lt_cv_objdir=_libs
14707 fi
14708 rmdir .libs 2>/dev/null
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14711 $as_echo "$lt_cv_objdir" >&6; }
14712 objdir=$lt_cv_objdir
14713
14714
14715
14716
14717
14718 cat >>confdefs.h <<_ACEOF
14719 #define LT_OBJDIR "$lt_cv_objdir/"
14720 _ACEOF
14721
14722
14723
14724
14725 case $host_os in
14726 aix3*)
14727 # AIX sometimes has problems with the GCC collect2 program. For some
14728 # reason, if we set the COLLECT_NAMES environment variable, the problems
14729 # vanish in a puff of smoke.
14730 if test "X${COLLECT_NAMES+set}" != Xset; then
14731 COLLECT_NAMES=
14732 export COLLECT_NAMES
14733 fi
14734 ;;
14735 esac
14736
14737 # Global variables:
14738 ofile=libtool
14739 can_build_shared=yes
14740
14741 # All known linkers require a `.a' archive for static linking (except MSVC,
14742 # which needs '.lib').
14743 libext=a
14744
14745 with_gnu_ld="$lt_cv_prog_gnu_ld"
14746
14747 old_CC="$CC"
14748 old_CFLAGS="$CFLAGS"
14749
14750 # Set sane defaults for various variables
14751 test -z "$CC" && CC=cc
14752 test -z "$LTCC" && LTCC=$CC
14753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14754 test -z "$LD" && LD=ld
14755 test -z "$ac_objext" && ac_objext=o
14756
14757 for cc_temp in $compiler""; do
14758 case $cc_temp in
14759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14761 \-*) ;;
14762 *) break;;
14763 esac
14764 done
14765 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14766
14767
14768 # Only perform the check for file, if the check method requires it
14769 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14770 case $deplibs_check_method in
14771 file_magic*)
14772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14774 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14775 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 case $MAGIC_CMD in
14779 [\\/*] | ?:[\\/]*)
14780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14781 ;;
14782 *)
14783 lt_save_MAGIC_CMD="$MAGIC_CMD"
14784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14786 for ac_dir in $ac_dummy; do
14787 IFS="$lt_save_ifs"
14788 test -z "$ac_dir" && ac_dir=.
14789 if test -f $ac_dir/${ac_tool_prefix}file; then
14790 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14791 if test -n "$file_magic_test_file"; then
14792 case $deplibs_check_method in
14793 "file_magic "*)
14794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14797 $EGREP "$file_magic_regex" > /dev/null; then
14798 :
14799 else
14800 cat <<_LT_EOF 1>&2
14801
14802 *** Warning: the command libtool uses to detect shared libraries,
14803 *** $file_magic_cmd, produces output that libtool cannot recognize.
14804 *** The result is that libtool may fail to recognize shared libraries
14805 *** as such. This will affect the creation of libtool libraries that
14806 *** depend on shared libraries, but programs linked with such libtool
14807 *** libraries will work regardless of this problem. Nevertheless, you
14808 *** may want to report the problem to your system manager and/or to
14809 *** bug-libtool@gnu.org
14810
14811 _LT_EOF
14812 fi ;;
14813 esac
14814 fi
14815 break
14816 fi
14817 done
14818 IFS="$lt_save_ifs"
14819 MAGIC_CMD="$lt_save_MAGIC_CMD"
14820 ;;
14821 esac
14822 fi
14823
14824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14825 if test -n "$MAGIC_CMD"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14827 $as_echo "$MAGIC_CMD" >&6; }
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832
14833
14834
14835
14836
14837 if test -z "$lt_cv_path_MAGIC_CMD"; then
14838 if test -n "$ac_tool_prefix"; then
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14840 $as_echo_n "checking for file... " >&6; }
14841 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 case $MAGIC_CMD in
14845 [\\/*] | ?:[\\/]*)
14846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14847 ;;
14848 *)
14849 lt_save_MAGIC_CMD="$MAGIC_CMD"
14850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14852 for ac_dir in $ac_dummy; do
14853 IFS="$lt_save_ifs"
14854 test -z "$ac_dir" && ac_dir=.
14855 if test -f $ac_dir/file; then
14856 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14857 if test -n "$file_magic_test_file"; then
14858 case $deplibs_check_method in
14859 "file_magic "*)
14860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14863 $EGREP "$file_magic_regex" > /dev/null; then
14864 :
14865 else
14866 cat <<_LT_EOF 1>&2
14867
14868 *** Warning: the command libtool uses to detect shared libraries,
14869 *** $file_magic_cmd, produces output that libtool cannot recognize.
14870 *** The result is that libtool may fail to recognize shared libraries
14871 *** as such. This will affect the creation of libtool libraries that
14872 *** depend on shared libraries, but programs linked with such libtool
14873 *** libraries will work regardless of this problem. Nevertheless, you
14874 *** may want to report the problem to your system manager and/or to
14875 *** bug-libtool@gnu.org
14876
14877 _LT_EOF
14878 fi ;;
14879 esac
14880 fi
14881 break
14882 fi
14883 done
14884 IFS="$lt_save_ifs"
14885 MAGIC_CMD="$lt_save_MAGIC_CMD"
14886 ;;
14887 esac
14888 fi
14889
14890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14891 if test -n "$MAGIC_CMD"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14893 $as_echo "$MAGIC_CMD" >&6; }
14894 else
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14897 fi
14898
14899
14900 else
14901 MAGIC_CMD=:
14902 fi
14903 fi
14904
14905 fi
14906 ;;
14907 esac
14908
14909 # Use C for the default configuration in the libtool script
14910
14911 lt_save_CC="$CC"
14912 ac_ext=c
14913 ac_cpp='$CPP $CPPFLAGS'
14914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14917
14918
14919 # Source file extension for C test sources.
14920 ac_ext=c
14921
14922 # Object file extension for compiled C test sources.
14923 objext=o
14924 objext=$objext
14925
14926 # Code to be used in simple compile tests
14927 lt_simple_compile_test_code="int some_variable = 0;"
14928
14929 # Code to be used in simple link tests
14930 lt_simple_link_test_code='int main(){return(0);}'
14931
14932
14933
14934
14935
14936
14937
14938 # If no C compiler was specified, use CC.
14939 LTCC=${LTCC-"$CC"}
14940
14941 # If no C compiler flags were specified, use CFLAGS.
14942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14943
14944 # Allow CC to be a program name with arguments.
14945 compiler=$CC
14946
14947 # Save the default compiler, since it gets overwritten when the other
14948 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14949 compiler_DEFAULT=$CC
14950
14951 # save warnings/boilerplate of simple test code
14952 ac_outfile=conftest.$ac_objext
14953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14955 _lt_compiler_boilerplate=`cat conftest.err`
14956 $RM conftest*
14957
14958 ac_outfile=conftest.$ac_objext
14959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14961 _lt_linker_boilerplate=`cat conftest.err`
14962 $RM -r conftest*
14963
14964
14965 ## CAVEAT EMPTOR:
14966 ## There is no encapsulation within the following macros, do not change
14967 ## the running order or otherwise move them around unless you know exactly
14968 ## what you are doing...
14969 if test -n "$compiler"; then
14970
14971 lt_prog_compiler_no_builtin_flag=
14972
14973 if test "$GCC" = yes; then
14974 case $cc_basename in
14975 nvcc*)
14976 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14977 *)
14978 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14979 esac
14980
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14982 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 lt_cv_prog_compiler_rtti_exceptions=no
14987 ac_outfile=conftest.$ac_objext
14988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14989 lt_compiler_flag="-fno-rtti -fno-exceptions"
14990 # Insert the option either (1) after the last *FLAGS variable, or
14991 # (2) before a word containing "conftest.", or (3) at the end.
14992 # Note that $ac_compile itself does not contain backslashes and begins
14993 # with a dollar sign (not a hyphen), so the echo should work correctly.
14994 # The option is referenced via a variable to avoid confusing sed.
14995 lt_compile=`echo "$ac_compile" | $SED \
14996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14998 -e 's:$: $lt_compiler_flag:'`
14999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15000 (eval "$lt_compile" 2>conftest.err)
15001 ac_status=$?
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 if (exit $ac_status) && test -s "$ac_outfile"; then
15005 # The compiler can only warn and ignore the option if not recognized
15006 # So say no if there are warnings other than the usual output.
15007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15010 lt_cv_prog_compiler_rtti_exceptions=yes
15011 fi
15012 fi
15013 $RM conftest*
15014
15015 fi
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15017 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15018
15019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15020 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15021 else
15022 :
15023 fi
15024
15025 fi
15026
15027
15028
15029
15030
15031
15032 lt_prog_compiler_wl=
15033 lt_prog_compiler_pic=
15034 lt_prog_compiler_static=
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15037 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15038
15039 if test "$GCC" = yes; then
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_static='-static'
15042
15043 case $host_os in
15044 aix*)
15045 # All AIX code is PIC.
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 now supports IA64 processor
15048 lt_prog_compiler_static='-Bstatic'
15049 fi
15050 lt_prog_compiler_pic='-fPIC'
15051 ;;
15052
15053 amigaos*)
15054 case $host_cpu in
15055 powerpc)
15056 # see comment about AmigaOS4 .so support
15057 lt_prog_compiler_pic='-fPIC'
15058 ;;
15059 m68k)
15060 # FIXME: we need at least 68020 code to build shared libraries, but
15061 # adding the `-m68020' flag to GCC prevents building anything better,
15062 # like `-m68040'.
15063 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15064 ;;
15065 esac
15066 ;;
15067
15068 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15069 # PIC is the default for these OSes.
15070 ;;
15071
15072 mingw* | cygwin* | pw32* | os2* | cegcc*)
15073 # This hack is so that the source file can tell whether it is being
15074 # built for inclusion in a dll (and should export symbols for example).
15075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15076 # (--disable-auto-import) libraries
15077 lt_prog_compiler_pic='-DDLL_EXPORT'
15078 ;;
15079
15080 darwin* | rhapsody*)
15081 # PIC is the default on this platform
15082 # Common symbols not allowed in MH_DYLIB files
15083 lt_prog_compiler_pic='-fno-common'
15084 ;;
15085
15086 haiku*)
15087 # PIC is the default for Haiku.
15088 # The "-static" flag exists, but is broken.
15089 lt_prog_compiler_static=
15090 ;;
15091
15092 hpux*)
15093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15095 # sets the default TLS model and affects inlining.
15096 case $host_cpu in
15097 hppa*64*)
15098 # +Z the default
15099 ;;
15100 *)
15101 lt_prog_compiler_pic='-fPIC'
15102 ;;
15103 esac
15104 ;;
15105
15106 interix[3-9]*)
15107 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15108 # Instead, we relocate shared libraries at runtime.
15109 ;;
15110
15111 msdosdjgpp*)
15112 # Just because we use GCC doesn't mean we suddenly get shared libraries
15113 # on systems that don't support them.
15114 lt_prog_compiler_can_build_shared=no
15115 enable_shared=no
15116 ;;
15117
15118 *nto* | *qnx*)
15119 # QNX uses GNU C++, but need to define -shared option too, otherwise
15120 # it will coredump.
15121 lt_prog_compiler_pic='-fPIC -shared'
15122 ;;
15123
15124 sysv4*MP*)
15125 if test -d /usr/nec; then
15126 lt_prog_compiler_pic=-Kconform_pic
15127 fi
15128 ;;
15129
15130 *)
15131 lt_prog_compiler_pic='-fPIC'
15132 ;;
15133 esac
15134
15135 case $cc_basename in
15136 nvcc*) # Cuda Compiler Driver 2.2
15137 lt_prog_compiler_wl='-Xlinker '
15138 lt_prog_compiler_pic='-Xcompiler -fPIC'
15139 ;;
15140 esac
15141 else
15142 # PORTME Check for flag to pass linker flags through the system compiler.
15143 case $host_os in
15144 aix*)
15145 lt_prog_compiler_wl='-Wl,'
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 now supports IA64 processor
15148 lt_prog_compiler_static='-Bstatic'
15149 else
15150 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15151 fi
15152 ;;
15153
15154 mingw* | cygwin* | pw32* | os2* | cegcc*)
15155 # This hack is so that the source file can tell whether it is being
15156 # built for inclusion in a dll (and should export symbols for example).
15157 lt_prog_compiler_pic='-DDLL_EXPORT'
15158 ;;
15159
15160 hpux9* | hpux10* | hpux11*)
15161 lt_prog_compiler_wl='-Wl,'
15162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15163 # not for PA HP-UX.
15164 case $host_cpu in
15165 hppa*64*|ia64*)
15166 # +Z the default
15167 ;;
15168 *)
15169 lt_prog_compiler_pic='+Z'
15170 ;;
15171 esac
15172 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15173 lt_prog_compiler_static='${wl}-a ${wl}archive'
15174 ;;
15175
15176 irix5* | irix6* | nonstopux*)
15177 lt_prog_compiler_wl='-Wl,'
15178 # PIC (with -KPIC) is the default.
15179 lt_prog_compiler_static='-non_shared'
15180 ;;
15181
15182 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15183 case $cc_basename in
15184 # old Intel for x86_64 which still supported -KPIC.
15185 ecc*)
15186 lt_prog_compiler_wl='-Wl,'
15187 lt_prog_compiler_pic='-KPIC'
15188 lt_prog_compiler_static='-static'
15189 ;;
15190 # icc used to be incompatible with GCC.
15191 # ICC 10 doesn't accept -KPIC any more.
15192 icc* | ifort*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-fPIC'
15195 lt_prog_compiler_static='-static'
15196 ;;
15197 # Lahey Fortran 8.1.
15198 lf95*)
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_pic='--shared'
15201 lt_prog_compiler_static='--static'
15202 ;;
15203 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15204 # Portland Group compilers (*not* the Pentium gcc compiler,
15205 # which looks to be a dead project)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-fpic'
15208 lt_prog_compiler_static='-Bstatic'
15209 ;;
15210 ccc*)
15211 lt_prog_compiler_wl='-Wl,'
15212 # All Alpha code is PIC.
15213 lt_prog_compiler_static='-non_shared'
15214 ;;
15215 xl* | bgxl* | bgf* | mpixl*)
15216 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_pic='-qpic'
15219 lt_prog_compiler_static='-qstaticlink'
15220 ;;
15221 *)
15222 case `$CC -V 2>&1 | sed 5q` in
15223 *Sun\ F* | *Sun*Fortran*)
15224 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15225 lt_prog_compiler_pic='-KPIC'
15226 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_wl=''
15228 ;;
15229 *Sun\ C*)
15230 # Sun C 5.9
15231 lt_prog_compiler_pic='-KPIC'
15232 lt_prog_compiler_static='-Bstatic'
15233 lt_prog_compiler_wl='-Wl,'
15234 ;;
15235 esac
15236 ;;
15237 esac
15238 ;;
15239
15240 newsos6)
15241 lt_prog_compiler_pic='-KPIC'
15242 lt_prog_compiler_static='-Bstatic'
15243 ;;
15244
15245 *nto* | *qnx*)
15246 # QNX uses GNU C++, but need to define -shared option too, otherwise
15247 # it will coredump.
15248 lt_prog_compiler_pic='-fPIC -shared'
15249 ;;
15250
15251 osf3* | osf4* | osf5*)
15252 lt_prog_compiler_wl='-Wl,'
15253 # All OSF/1 code is PIC.
15254 lt_prog_compiler_static='-non_shared'
15255 ;;
15256
15257 rdos*)
15258 lt_prog_compiler_static='-non_shared'
15259 ;;
15260
15261 solaris*)
15262 lt_prog_compiler_pic='-KPIC'
15263 lt_prog_compiler_static='-Bstatic'
15264 case $cc_basename in
15265 f77* | f90* | f95*)
15266 lt_prog_compiler_wl='-Qoption ld ';;
15267 *)
15268 lt_prog_compiler_wl='-Wl,';;
15269 esac
15270 ;;
15271
15272 sunos4*)
15273 lt_prog_compiler_wl='-Qoption ld '
15274 lt_prog_compiler_pic='-PIC'
15275 lt_prog_compiler_static='-Bstatic'
15276 ;;
15277
15278 sysv4 | sysv4.2uw2* | sysv4.3*)
15279 lt_prog_compiler_wl='-Wl,'
15280 lt_prog_compiler_pic='-KPIC'
15281 lt_prog_compiler_static='-Bstatic'
15282 ;;
15283
15284 sysv4*MP*)
15285 if test -d /usr/nec ;then
15286 lt_prog_compiler_pic='-Kconform_pic'
15287 lt_prog_compiler_static='-Bstatic'
15288 fi
15289 ;;
15290
15291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-KPIC'
15294 lt_prog_compiler_static='-Bstatic'
15295 ;;
15296
15297 unicos*)
15298 lt_prog_compiler_wl='-Wl,'
15299 lt_prog_compiler_can_build_shared=no
15300 ;;
15301
15302 uts4*)
15303 lt_prog_compiler_pic='-pic'
15304 lt_prog_compiler_static='-Bstatic'
15305 ;;
15306
15307 *)
15308 lt_prog_compiler_can_build_shared=no
15309 ;;
15310 esac
15311 fi
15312
15313 case $host_os in
15314 # For platforms which do not support PIC, -DPIC is meaningless:
15315 *djgpp*)
15316 lt_prog_compiler_pic=
15317 ;;
15318 *)
15319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15320 ;;
15321 esac
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15323 $as_echo "$lt_prog_compiler_pic" >&6; }
15324
15325
15326
15327
15328
15329
15330 #
15331 # Check to make sure the PIC flag actually works.
15332 #
15333 if test -n "$lt_prog_compiler_pic"; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15335 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15336 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15337 $as_echo_n "(cached) " >&6
15338 else
15339 lt_cv_prog_compiler_pic_works=no
15340 ac_outfile=conftest.$ac_objext
15341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15342 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15343 # Insert the option either (1) after the last *FLAGS variable, or
15344 # (2) before a word containing "conftest.", or (3) at the end.
15345 # Note that $ac_compile itself does not contain backslashes and begins
15346 # with a dollar sign (not a hyphen), so the echo should work correctly.
15347 # The option is referenced via a variable to avoid confusing sed.
15348 lt_compile=`echo "$ac_compile" | $SED \
15349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15351 -e 's:$: $lt_compiler_flag:'`
15352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15353 (eval "$lt_compile" 2>conftest.err)
15354 ac_status=$?
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 if (exit $ac_status) && test -s "$ac_outfile"; then
15358 # The compiler can only warn and ignore the option if not recognized
15359 # So say no if there are warnings other than the usual output.
15360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15363 lt_cv_prog_compiler_pic_works=yes
15364 fi
15365 fi
15366 $RM conftest*
15367
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15370 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15371
15372 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15373 case $lt_prog_compiler_pic in
15374 "" | " "*) ;;
15375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15376 esac
15377 else
15378 lt_prog_compiler_pic=
15379 lt_prog_compiler_can_build_shared=no
15380 fi
15381
15382 fi
15383
15384
15385
15386
15387
15388
15389 #
15390 # Check to make sure the static flag actually works.
15391 #
15392 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15394 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15395 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398 lt_cv_prog_compiler_static_works=no
15399 save_LDFLAGS="$LDFLAGS"
15400 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15403 # The linker can only warn and ignore the option if not recognized
15404 # So say no if there are warnings
15405 if test -s conftest.err; then
15406 # Append any errors to the config.log.
15407 cat conftest.err 1>&5
15408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15410 if diff conftest.exp conftest.er2 >/dev/null; then
15411 lt_cv_prog_compiler_static_works=yes
15412 fi
15413 else
15414 lt_cv_prog_compiler_static_works=yes
15415 fi
15416 fi
15417 $RM -r conftest*
15418 LDFLAGS="$save_LDFLAGS"
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15422 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15423
15424 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15425 :
15426 else
15427 lt_prog_compiler_static=
15428 fi
15429
15430
15431
15432
15433
15434
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15437 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15438 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 lt_cv_prog_compiler_c_o=no
15442 $RM -r conftest 2>/dev/null
15443 mkdir conftest
15444 cd conftest
15445 mkdir out
15446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15447
15448 lt_compiler_flag="-o out/conftest2.$ac_objext"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 lt_compile=`echo "$ac_compile" | $SED \
15454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15456 -e 's:$: $lt_compiler_flag:'`
15457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15458 (eval "$lt_compile" 2>out/conftest.err)
15459 ac_status=$?
15460 cat out/conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15463 then
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings
15466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15469 lt_cv_prog_compiler_c_o=yes
15470 fi
15471 fi
15472 chmod u+w . 2>&5
15473 $RM conftest*
15474 # SGI C++ compiler will create directory out/ii_files/ for
15475 # template instantiation
15476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15477 $RM out/* && rmdir out
15478 cd ..
15479 $RM -r conftest
15480 $RM conftest*
15481
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15484 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15485
15486
15487
15488
15489
15490
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 lt_cv_prog_compiler_c_o=no
15497 $RM -r conftest 2>/dev/null
15498 mkdir conftest
15499 cd conftest
15500 mkdir out
15501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15502
15503 lt_compiler_flag="-o out/conftest2.$ac_objext"
15504 # Insert the option either (1) after the last *FLAGS variable, or
15505 # (2) before a word containing "conftest.", or (3) at the end.
15506 # Note that $ac_compile itself does not contain backslashes and begins
15507 # with a dollar sign (not a hyphen), so the echo should work correctly.
15508 lt_compile=`echo "$ac_compile" | $SED \
15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511 -e 's:$: $lt_compiler_flag:'`
15512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15513 (eval "$lt_compile" 2>out/conftest.err)
15514 ac_status=$?
15515 cat out/conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15518 then
15519 # The compiler can only warn and ignore the option if not recognized
15520 # So say no if there are warnings
15521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15524 lt_cv_prog_compiler_c_o=yes
15525 fi
15526 fi
15527 chmod u+w . 2>&5
15528 $RM conftest*
15529 # SGI C++ compiler will create directory out/ii_files/ for
15530 # template instantiation
15531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15532 $RM out/* && rmdir out
15533 cd ..
15534 $RM -r conftest
15535 $RM conftest*
15536
15537 fi
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15539 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15540
15541
15542
15543
15544 hard_links="nottested"
15545 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15546 # do not overwrite the value of need_locks provided by the user
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15548 $as_echo_n "checking if we can lock with hard links... " >&6; }
15549 hard_links=yes
15550 $RM conftest*
15551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15552 touch conftest.a
15553 ln conftest.a conftest.b 2>&5 || hard_links=no
15554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15556 $as_echo "$hard_links" >&6; }
15557 if test "$hard_links" = no; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15559 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15560 need_locks=warn
15561 fi
15562 else
15563 need_locks=no
15564 fi
15565
15566
15567
15568
15569
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15572 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15573
15574 runpath_var=
15575 allow_undefined_flag=
15576 always_export_symbols=no
15577 archive_cmds=
15578 archive_expsym_cmds=
15579 compiler_needs_object=no
15580 enable_shared_with_static_runtimes=no
15581 export_dynamic_flag_spec=
15582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15583 hardcode_automatic=no
15584 hardcode_direct=no
15585 hardcode_direct_absolute=no
15586 hardcode_libdir_flag_spec=
15587 hardcode_libdir_flag_spec_ld=
15588 hardcode_libdir_separator=
15589 hardcode_minus_L=no
15590 hardcode_shlibpath_var=unsupported
15591 inherit_rpath=no
15592 link_all_deplibs=unknown
15593 module_cmds=
15594 module_expsym_cmds=
15595 old_archive_from_new_cmds=
15596 old_archive_from_expsyms_cmds=
15597 thread_safe_flag_spec=
15598 whole_archive_flag_spec=
15599 # include_expsyms should be a list of space-separated symbols to be *always*
15600 # included in the symbol list
15601 include_expsyms=
15602 # exclude_expsyms can be an extended regexp of symbols to exclude
15603 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15605 # as well as any symbol that contains `d'.
15606 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15608 # platforms (ab)use it in PIC code, but their linkers get confused if
15609 # the symbol is explicitly referenced. Since portable code cannot
15610 # rely on this symbol name, it's probably fine to never include it in
15611 # preloaded symbol tables.
15612 # Exclude shared library initialization/finalization symbols.
15613 extract_expsyms_cmds=
15614
15615 case $host_os in
15616 cygwin* | mingw* | pw32* | cegcc*)
15617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15618 # When not using gcc, we currently assume that we are using
15619 # Microsoft Visual C++.
15620 if test "$GCC" != yes; then
15621 with_gnu_ld=no
15622 fi
15623 ;;
15624 interix*)
15625 # we just hope/assume this is gcc and not c89 (= MSVC++)
15626 with_gnu_ld=yes
15627 ;;
15628 openbsd*)
15629 with_gnu_ld=no
15630 ;;
15631 esac
15632
15633 ld_shlibs=yes
15634
15635 # On some targets, GNU ld is compatible enough with the native linker
15636 # that we're better off using the native interface for both.
15637 lt_use_gnu_ld_interface=no
15638 if test "$with_gnu_ld" = yes; then
15639 case $host_os in
15640 aix*)
15641 # The AIX port of GNU ld has always aspired to compatibility
15642 # with the native linker. However, as the warning in the GNU ld
15643 # block says, versions before 2.19.5* couldn't really create working
15644 # shared libraries, regardless of the interface used.
15645 case `$LD -v 2>&1` in
15646 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15647 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15648 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15649 *)
15650 lt_use_gnu_ld_interface=yes
15651 ;;
15652 esac
15653 ;;
15654 *)
15655 lt_use_gnu_ld_interface=yes
15656 ;;
15657 esac
15658 fi
15659
15660 if test "$lt_use_gnu_ld_interface" = yes; then
15661 # If archive_cmds runs LD, not CC, wlarc should be empty
15662 wlarc='${wl}'
15663
15664 # Set some defaults for GNU ld with shared library support. These
15665 # are reset later if shared libraries are not supported. Putting them
15666 # here allows them to be overridden if necessary.
15667 runpath_var=LD_RUN_PATH
15668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15669 export_dynamic_flag_spec='${wl}--export-dynamic'
15670 # ancient GNU ld didn't support --whole-archive et. al.
15671 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15673 else
15674 whole_archive_flag_spec=
15675 fi
15676 supports_anon_versioning=no
15677 case `$LD -v 2>&1` in
15678 *GNU\ gold*) supports_anon_versioning=yes ;;
15679 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15680 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15681 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15682 *\ 2.11.*) ;; # other 2.11 versions
15683 *) supports_anon_versioning=yes ;;
15684 esac
15685
15686 # See if GNU ld supports shared libraries.
15687 case $host_os in
15688 aix[3-9]*)
15689 # On AIX/PPC, the GNU linker is very broken
15690 if test "$host_cpu" != ia64; then
15691 ld_shlibs=no
15692 cat <<_LT_EOF 1>&2
15693
15694 *** Warning: the GNU linker, at least up to release 2.19, is reported
15695 *** to be unable to reliably create shared libraries on AIX.
15696 *** Therefore, libtool is disabling shared libraries support. If you
15697 *** really care for shared libraries, you may want to install binutils
15698 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15699 *** You will then need to restart the configuration process.
15700
15701 _LT_EOF
15702 fi
15703 ;;
15704
15705 amigaos*)
15706 case $host_cpu in
15707 powerpc)
15708 # see comment about AmigaOS4 .so support
15709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15710 archive_expsym_cmds=''
15711 ;;
15712 m68k)
15713 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)'
15714 hardcode_libdir_flag_spec='-L$libdir'
15715 hardcode_minus_L=yes
15716 ;;
15717 esac
15718 ;;
15719
15720 beos*)
15721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15722 allow_undefined_flag=unsupported
15723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15724 # support --undefined. This deserves some investigation. FIXME
15725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15726 else
15727 ld_shlibs=no
15728 fi
15729 ;;
15730
15731 cygwin* | mingw* | pw32* | cegcc*)
15732 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15733 # as there is no search path for DLLs.
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 export_dynamic_flag_spec='${wl}--export-all-symbols'
15736 allow_undefined_flag=unsupported
15737 always_export_symbols=no
15738 enable_shared_with_static_runtimes=yes
15739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15740
15741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15743 # If the export-symbols file already is a .def file (1st line
15744 # is EXPORTS), use it as is; otherwise, prepend...
15745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15746 cp $export_symbols $output_objdir/$soname.def;
15747 else
15748 echo EXPORTS > $output_objdir/$soname.def;
15749 cat $export_symbols >> $output_objdir/$soname.def;
15750 fi~
15751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15752 else
15753 ld_shlibs=no
15754 fi
15755 ;;
15756
15757 haiku*)
15758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 link_all_deplibs=yes
15760 ;;
15761
15762 interix[3-9]*)
15763 hardcode_direct=no
15764 hardcode_shlibpath_var=no
15765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15766 export_dynamic_flag_spec='${wl}-E'
15767 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15768 # Instead, shared libraries are loaded at an image base (0x10000000 by
15769 # default) and relocated if they conflict, which is a slow very memory
15770 # consuming and fragmenting process. To avoid this, we pick a random,
15771 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15772 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15774 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'
15775 ;;
15776
15777 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15778 tmp_diet=no
15779 if test "$host_os" = linux-dietlibc; then
15780 case $cc_basename in
15781 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15782 esac
15783 fi
15784 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15785 && test "$tmp_diet" = no
15786 then
15787 tmp_addflag=
15788 tmp_sharedflag='-shared'
15789 case $cc_basename,$host_cpu in
15790 pgcc*) # Portland Group C compiler
15791 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'
15792 tmp_addflag=' $pic_flag'
15793 ;;
15794 pgf77* | pgf90* | pgf95* | pgfortran*)
15795 # Portland Group f77 and f90 compilers
15796 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'
15797 tmp_addflag=' $pic_flag -Mnomain' ;;
15798 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15799 tmp_addflag=' -i_dynamic' ;;
15800 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15801 tmp_addflag=' -i_dynamic -nofor_main' ;;
15802 ifc* | ifort*) # Intel Fortran compiler
15803 tmp_addflag=' -nofor_main' ;;
15804 lf95*) # Lahey Fortran 8.1
15805 whole_archive_flag_spec=
15806 tmp_sharedflag='--shared' ;;
15807 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15808 tmp_sharedflag='-qmkshrobj'
15809 tmp_addflag= ;;
15810 nvcc*) # Cuda Compiler Driver 2.2
15811 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'
15812 compiler_needs_object=yes
15813 ;;
15814 esac
15815 case `$CC -V 2>&1 | sed 5q` in
15816 *Sun\ C*) # Sun C 5.9
15817 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'
15818 compiler_needs_object=yes
15819 tmp_sharedflag='-G' ;;
15820 *Sun\ F*) # Sun Fortran 8.3
15821 tmp_sharedflag='-G' ;;
15822 esac
15823 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824
15825 if test "x$supports_anon_versioning" = xyes; then
15826 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15828 echo "local: *; };" >> $output_objdir/$libname.ver~
15829 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15830 fi
15831
15832 case $cc_basename in
15833 xlf* | bgf* | bgxlf* | mpixlf*)
15834 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15835 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15836 hardcode_libdir_flag_spec=
15837 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15838 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15839 if test "x$supports_anon_versioning" = xyes; then
15840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15842 echo "local: *; };" >> $output_objdir/$libname.ver~
15843 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15844 fi
15845 ;;
15846 esac
15847 else
15848 ld_shlibs=no
15849 fi
15850 ;;
15851
15852 netbsd*)
15853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15854 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15855 wlarc=
15856 else
15857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15859 fi
15860 ;;
15861
15862 solaris*)
15863 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15864 ld_shlibs=no
15865 cat <<_LT_EOF 1>&2
15866
15867 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15868 *** create shared libraries on Solaris systems. Therefore, libtool
15869 *** is disabling shared libraries support. We urge you to upgrade GNU
15870 *** binutils to release 2.9.1 or newer. Another option is to modify
15871 *** your PATH or compiler configuration so that the native linker is
15872 *** used, and then restart.
15873
15874 _LT_EOF
15875 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15878 else
15879 ld_shlibs=no
15880 fi
15881 ;;
15882
15883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15884 case `$LD -v 2>&1` in
15885 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15886 ld_shlibs=no
15887 cat <<_LT_EOF 1>&2
15888
15889 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15890 *** reliably create shared libraries on SCO systems. Therefore, libtool
15891 *** is disabling shared libraries support. We urge you to upgrade GNU
15892 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15893 *** your PATH or compiler configuration so that the native linker is
15894 *** used, and then restart.
15895
15896 _LT_EOF
15897 ;;
15898 *)
15899 # For security reasons, it is highly recommended that you always
15900 # use absolute paths for naming shared libraries, and exclude the
15901 # DT_RUNPATH tag from executables and libraries. But doing so
15902 # requires that you compile everything twice, which is a pain.
15903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15907 else
15908 ld_shlibs=no
15909 fi
15910 ;;
15911 esac
15912 ;;
15913
15914 sunos4*)
15915 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15916 wlarc=
15917 hardcode_direct=yes
15918 hardcode_shlibpath_var=no
15919 ;;
15920
15921 *)
15922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15925 else
15926 ld_shlibs=no
15927 fi
15928 ;;
15929 esac
15930
15931 if test "$ld_shlibs" = no; then
15932 runpath_var=
15933 hardcode_libdir_flag_spec=
15934 export_dynamic_flag_spec=
15935 whole_archive_flag_spec=
15936 fi
15937 else
15938 # PORTME fill in a description of your system's linker (not GNU ld)
15939 case $host_os in
15940 aix3*)
15941 allow_undefined_flag=unsupported
15942 always_export_symbols=yes
15943 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'
15944 # Note: this linker hardcodes the directories in LIBPATH if there
15945 # are no directories specified by -L.
15946 hardcode_minus_L=yes
15947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15948 # Neither direct hardcoding nor static linking is supported with a
15949 # broken collect2.
15950 hardcode_direct=unsupported
15951 fi
15952 ;;
15953
15954 aix[4-9]*)
15955 if test "$host_cpu" = ia64; then
15956 # On IA64, the linker does run time linking by default, so we don't
15957 # have to do anything special.
15958 aix_use_runtimelinking=no
15959 exp_sym_flag='-Bexport'
15960 no_entry_flag=""
15961 else
15962 # If we're using GNU nm, then we don't want the "-C" option.
15963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15964 # Also, AIX nm treats weak defined symbols like other global
15965 # defined symbols, whereas GNU nm marks them as "W".
15966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15967 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'
15968 else
15969 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15970 fi
15971 aix_use_runtimelinking=no
15972
15973 # Test if we are trying to use run time linking or normal
15974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15975 # need to do runtime linking.
15976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15977 for ld_flag in $LDFLAGS; do
15978 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15979 aix_use_runtimelinking=yes
15980 break
15981 fi
15982 done
15983 ;;
15984 esac
15985
15986 exp_sym_flag='-bexport'
15987 no_entry_flag='-bnoentry'
15988 fi
15989
15990 # When large executables or shared objects are built, AIX ld can
15991 # have problems creating the table of contents. If linking a library
15992 # or program results in "error TOC overflow" add -mminimal-toc to
15993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15995
15996 archive_cmds=''
15997 hardcode_direct=yes
15998 hardcode_direct_absolute=yes
15999 hardcode_libdir_separator=':'
16000 link_all_deplibs=yes
16001 file_list_spec='${wl}-f,'
16002
16003 if test "$GCC" = yes; then
16004 case $host_os in aix4.[012]|aix4.[012].*)
16005 # We only want to do this on AIX 4.2 and lower, the check
16006 # below for broken collect2 doesn't work under 4.3+
16007 collect2name=`${CC} -print-prog-name=collect2`
16008 if test -f "$collect2name" &&
16009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16010 then
16011 # We have reworked collect2
16012 :
16013 else
16014 # We have old collect2
16015 hardcode_direct=unsupported
16016 # It fails to find uninstalled libraries when the uninstalled
16017 # path is not listed in the libpath. Setting hardcode_minus_L
16018 # to unsupported forces relinking
16019 hardcode_minus_L=yes
16020 hardcode_libdir_flag_spec='-L$libdir'
16021 hardcode_libdir_separator=
16022 fi
16023 ;;
16024 esac
16025 shared_flag='-shared'
16026 if test "$aix_use_runtimelinking" = yes; then
16027 shared_flag="$shared_flag "'${wl}-G'
16028 fi
16029 else
16030 # not using gcc
16031 if test "$host_cpu" = ia64; then
16032 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16033 # chokes on -Wl,-G. The following line is correct:
16034 shared_flag='-G'
16035 else
16036 if test "$aix_use_runtimelinking" = yes; then
16037 shared_flag='${wl}-G'
16038 else
16039 shared_flag='${wl}-bM:SRE'
16040 fi
16041 fi
16042 fi
16043
16044 export_dynamic_flag_spec='${wl}-bexpall'
16045 # It seems that -bexpall does not export symbols beginning with
16046 # underscore (_), so it is better to generate a list of symbols to export.
16047 always_export_symbols=yes
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # Warning - without using the other runtime loading flags (-brtl),
16050 # -berok will link without error, but may produce a broken library.
16051 allow_undefined_flag='-berok'
16052 # Determine the default libpath from the value encoded in an
16053 # empty executable.
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056
16057 int
16058 main ()
16059 {
16060
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 if ac_fn_c_try_link "$LINENO"; then :
16066
16067 lt_aix_libpath_sed='
16068 /Import File Strings/,/^$/ {
16069 /^0/ {
16070 s/^0 *\(.*\)$/\1/
16071 p
16072 }
16073 }'
16074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16075 # Check for a 64-bit object if we didn't find anything.
16076 if test -z "$aix_libpath"; then
16077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16078 fi
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext \
16081 conftest$ac_exeext conftest.$ac_ext
16082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16083
16084 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16085 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"
16086 else
16087 if test "$host_cpu" = ia64; then
16088 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16089 allow_undefined_flag="-z nodefs"
16090 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"
16091 else
16092 # Determine the default libpath from the value encoded in an
16093 # empty executable.
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096
16097 int
16098 main ()
16099 {
16100
16101 ;
16102 return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_link "$LINENO"; then :
16106
16107 lt_aix_libpath_sed='
16108 /Import File Strings/,/^$/ {
16109 /^0/ {
16110 s/^0 *\(.*\)$/\1/
16111 p
16112 }
16113 }'
16114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16115 # Check for a 64-bit object if we didn't find anything.
16116 if test -z "$aix_libpath"; then
16117 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16118 fi
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16123
16124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16125 # Warning - without using the other run time loading flags,
16126 # -berok will link without error, but may produce a broken library.
16127 no_undefined_flag=' ${wl}-bernotok'
16128 allow_undefined_flag=' ${wl}-berok'
16129 if test "$with_gnu_ld" = yes; then
16130 # We only use this code for GNU lds that support --whole-archive.
16131 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16132 else
16133 # Exported symbols can be pulled into shared objects from archives
16134 whole_archive_flag_spec='$convenience'
16135 fi
16136 archive_cmds_need_lc=yes
16137 # This is similar to how AIX traditionally builds its shared libraries.
16138 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'
16139 fi
16140 fi
16141 ;;
16142
16143 amigaos*)
16144 case $host_cpu in
16145 powerpc)
16146 # see comment about AmigaOS4 .so support
16147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16148 archive_expsym_cmds=''
16149 ;;
16150 m68k)
16151 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)'
16152 hardcode_libdir_flag_spec='-L$libdir'
16153 hardcode_minus_L=yes
16154 ;;
16155 esac
16156 ;;
16157
16158 bsdi[45]*)
16159 export_dynamic_flag_spec=-rdynamic
16160 ;;
16161
16162 cygwin* | mingw* | pw32* | cegcc*)
16163 # When not using gcc, we currently assume that we are using
16164 # Microsoft Visual C++.
16165 # hardcode_libdir_flag_spec is actually meaningless, as there is
16166 # no search path for DLLs.
16167 hardcode_libdir_flag_spec=' '
16168 allow_undefined_flag=unsupported
16169 # Tell ltmain to make .lib files, not .a files.
16170 libext=lib
16171 # Tell ltmain to make .dll files, not .so files.
16172 shrext_cmds=".dll"
16173 # FIXME: Setting linknames here is a bad hack.
16174 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16175 # The linker will automatically build a .lib file if we build a DLL.
16176 old_archive_from_new_cmds='true'
16177 # FIXME: Should let the user specify the lib program.
16178 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16179 fix_srcfile_path='`cygpath -w "$srcfile"`'
16180 enable_shared_with_static_runtimes=yes
16181 ;;
16182
16183 darwin* | rhapsody*)
16184
16185
16186 archive_cmds_need_lc=no
16187 hardcode_direct=no
16188 hardcode_automatic=yes
16189 hardcode_shlibpath_var=unsupported
16190 if test "$lt_cv_ld_force_load" = "yes"; then
16191 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\"`'
16192 else
16193 whole_archive_flag_spec=''
16194 fi
16195 link_all_deplibs=yes
16196 allow_undefined_flag="$_lt_dar_allow_undefined"
16197 case $cc_basename in
16198 ifort*) _lt_dar_can_shared=yes ;;
16199 *) _lt_dar_can_shared=$GCC ;;
16200 esac
16201 if test "$_lt_dar_can_shared" = "yes"; then
16202 output_verbose_link_cmd=func_echo_all
16203 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16204 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16205 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}"
16206 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}"
16207
16208 else
16209 ld_shlibs=no
16210 fi
16211
16212 ;;
16213
16214 dgux*)
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_libdir_flag_spec='-L$libdir'
16217 hardcode_shlibpath_var=no
16218 ;;
16219
16220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16221 # support. Future versions do this automatically, but an explicit c++rt0.o
16222 # does not break anything, and helps significantly (at the cost of a little
16223 # extra space).
16224 freebsd2.2*)
16225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16226 hardcode_libdir_flag_spec='-R$libdir'
16227 hardcode_direct=yes
16228 hardcode_shlibpath_var=no
16229 ;;
16230
16231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16232 freebsd2.*)
16233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16234 hardcode_direct=yes
16235 hardcode_minus_L=yes
16236 hardcode_shlibpath_var=no
16237 ;;
16238
16239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16240 freebsd* | dragonfly*)
16241 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16242 hardcode_libdir_flag_spec='-R$libdir'
16243 hardcode_direct=yes
16244 hardcode_shlibpath_var=no
16245 ;;
16246
16247 hpux9*)
16248 if test "$GCC" = yes; then
16249 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'
16250 else
16251 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'
16252 fi
16253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16254 hardcode_libdir_separator=:
16255 hardcode_direct=yes
16256
16257 # hardcode_minus_L: Not really in the search PATH,
16258 # but as the default location of the library.
16259 hardcode_minus_L=yes
16260 export_dynamic_flag_spec='${wl}-E'
16261 ;;
16262
16263 hpux10*)
16264 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16266 else
16267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16268 fi
16269 if test "$with_gnu_ld" = no; then
16270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16271 hardcode_libdir_flag_spec_ld='+b $libdir'
16272 hardcode_libdir_separator=:
16273 hardcode_direct=yes
16274 hardcode_direct_absolute=yes
16275 export_dynamic_flag_spec='${wl}-E'
16276 # hardcode_minus_L: Not really in the search PATH,
16277 # but as the default location of the library.
16278 hardcode_minus_L=yes
16279 fi
16280 ;;
16281
16282 hpux11*)
16283 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16284 case $host_cpu in
16285 hppa*64*)
16286 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 ;;
16288 ia64*)
16289 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16290 ;;
16291 *)
16292 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16293 ;;
16294 esac
16295 else
16296 case $host_cpu in
16297 hppa*64*)
16298 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16299 ;;
16300 ia64*)
16301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16302 ;;
16303 *)
16304
16305 # Older versions of the 11.00 compiler do not understand -b yet
16306 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16308 $as_echo_n "checking if $CC understands -b... " >&6; }
16309 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312 lt_cv_prog_compiler__b=no
16313 save_LDFLAGS="$LDFLAGS"
16314 LDFLAGS="$LDFLAGS -b"
16315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16317 # The linker can only warn and ignore the option if not recognized
16318 # So say no if there are warnings
16319 if test -s conftest.err; then
16320 # Append any errors to the config.log.
16321 cat conftest.err 1>&5
16322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16324 if diff conftest.exp conftest.er2 >/dev/null; then
16325 lt_cv_prog_compiler__b=yes
16326 fi
16327 else
16328 lt_cv_prog_compiler__b=yes
16329 fi
16330 fi
16331 $RM -r conftest*
16332 LDFLAGS="$save_LDFLAGS"
16333
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16336 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16337
16338 if test x"$lt_cv_prog_compiler__b" = xyes; then
16339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16340 else
16341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16342 fi
16343
16344 ;;
16345 esac
16346 fi
16347 if test "$with_gnu_ld" = no; then
16348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16349 hardcode_libdir_separator=:
16350
16351 case $host_cpu in
16352 hppa*64*|ia64*)
16353 hardcode_direct=no
16354 hardcode_shlibpath_var=no
16355 ;;
16356 *)
16357 hardcode_direct=yes
16358 hardcode_direct_absolute=yes
16359 export_dynamic_flag_spec='${wl}-E'
16360
16361 # hardcode_minus_L: Not really in the search PATH,
16362 # but as the default location of the library.
16363 hardcode_minus_L=yes
16364 ;;
16365 esac
16366 fi
16367 ;;
16368
16369 irix5* | irix6* | nonstopux*)
16370 if test "$GCC" = yes; then
16371 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'
16372 # Try to use the -exported_symbol ld option, if it does not
16373 # work, assume that -exports_file does not work either and
16374 # implicitly export all symbols.
16375 save_LDFLAGS="$LDFLAGS"
16376 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 int foo(void) {}
16380 _ACEOF
16381 if ac_fn_c_try_link "$LINENO"; then :
16382 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'
16383
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 LDFLAGS="$save_LDFLAGS"
16388 else
16389 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'
16390 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'
16391 fi
16392 archive_cmds_need_lc='no'
16393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16394 hardcode_libdir_separator=:
16395 inherit_rpath=yes
16396 link_all_deplibs=yes
16397 ;;
16398
16399 netbsd*)
16400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16402 else
16403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16404 fi
16405 hardcode_libdir_flag_spec='-R$libdir'
16406 hardcode_direct=yes
16407 hardcode_shlibpath_var=no
16408 ;;
16409
16410 newsos6)
16411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_direct=yes
16413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16414 hardcode_libdir_separator=:
16415 hardcode_shlibpath_var=no
16416 ;;
16417
16418 *nto* | *qnx*)
16419 ;;
16420
16421 openbsd*)
16422 if test -f /usr/libexec/ld.so; then
16423 hardcode_direct=yes
16424 hardcode_shlibpath_var=no
16425 hardcode_direct_absolute=yes
16426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16430 export_dynamic_flag_spec='${wl}-E'
16431 else
16432 case $host_os in
16433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_libdir_flag_spec='-R$libdir'
16436 ;;
16437 *)
16438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16440 ;;
16441 esac
16442 fi
16443 else
16444 ld_shlibs=no
16445 fi
16446 ;;
16447
16448 os2*)
16449 hardcode_libdir_flag_spec='-L$libdir'
16450 hardcode_minus_L=yes
16451 allow_undefined_flag=unsupported
16452 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'
16453 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16454 ;;
16455
16456 osf3*)
16457 if test "$GCC" = yes; then
16458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16459 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'
16460 else
16461 allow_undefined_flag=' -expect_unresolved \*'
16462 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'
16463 fi
16464 archive_cmds_need_lc='no'
16465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16466 hardcode_libdir_separator=:
16467 ;;
16468
16469 osf4* | osf5*) # as osf3* with the addition of -msym flag
16470 if test "$GCC" = yes; then
16471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16472 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'
16473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16474 else
16475 allow_undefined_flag=' -expect_unresolved \*'
16476 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'
16477 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~
16478 $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'
16479
16480 # Both c and cxx compiler support -rpath directly
16481 hardcode_libdir_flag_spec='-rpath $libdir'
16482 fi
16483 archive_cmds_need_lc='no'
16484 hardcode_libdir_separator=:
16485 ;;
16486
16487 solaris*)
16488 no_undefined_flag=' -z defs'
16489 if test "$GCC" = yes; then
16490 wlarc='${wl}'
16491 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16493 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16494 else
16495 case `$CC -V 2>&1` in
16496 *"Compilers 5.0"*)
16497 wlarc=''
16498 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16501 ;;
16502 *)
16503 wlarc='${wl}'
16504 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16506 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16507 ;;
16508 esac
16509 fi
16510 hardcode_libdir_flag_spec='-R$libdir'
16511 hardcode_shlibpath_var=no
16512 case $host_os in
16513 solaris2.[0-5] | solaris2.[0-5].*) ;;
16514 *)
16515 # The compiler driver will combine and reorder linker options,
16516 # but understands `-z linker_flag'. GCC discards it without `$wl',
16517 # but is careful enough not to reorder.
16518 # Supported since Solaris 2.6 (maybe 2.5.1?)
16519 if test "$GCC" = yes; then
16520 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16521 else
16522 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16523 fi
16524 ;;
16525 esac
16526 link_all_deplibs=yes
16527 ;;
16528
16529 sunos4*)
16530 if test "x$host_vendor" = xsequent; then
16531 # Use $CC to link under sequent, because it throws in some extra .o
16532 # files that make .init and .fini sections work.
16533 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16534 else
16535 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16536 fi
16537 hardcode_libdir_flag_spec='-L$libdir'
16538 hardcode_direct=yes
16539 hardcode_minus_L=yes
16540 hardcode_shlibpath_var=no
16541 ;;
16542
16543 sysv4)
16544 case $host_vendor in
16545 sni)
16546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_direct=yes # is this really true???
16548 ;;
16549 siemens)
16550 ## LD is ld it makes a PLAMLIB
16551 ## CC just makes a GrossModule.
16552 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16553 reload_cmds='$CC -r -o $output$reload_objs'
16554 hardcode_direct=no
16555 ;;
16556 motorola)
16557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16558 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16559 ;;
16560 esac
16561 runpath_var='LD_RUN_PATH'
16562 hardcode_shlibpath_var=no
16563 ;;
16564
16565 sysv4.3*)
16566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_shlibpath_var=no
16568 export_dynamic_flag_spec='-Bexport'
16569 ;;
16570
16571 sysv4*MP*)
16572 if test -d /usr/nec; then
16573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_shlibpath_var=no
16575 runpath_var=LD_RUN_PATH
16576 hardcode_runpath_var=yes
16577 ld_shlibs=yes
16578 fi
16579 ;;
16580
16581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16582 no_undefined_flag='${wl}-z,text'
16583 archive_cmds_need_lc=no
16584 hardcode_shlibpath_var=no
16585 runpath_var='LD_RUN_PATH'
16586
16587 if test "$GCC" = yes; then
16588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 else
16591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 fi
16594 ;;
16595
16596 sysv5* | sco3.2v5* | sco5v6*)
16597 # Note: We can NOT use -z defs as we might desire, because we do not
16598 # link with -lc, and that would cause any symbols used from libc to
16599 # always be unresolved, which means just about no library would
16600 # ever link correctly. If we're not using GNU ld we use -z text
16601 # though, which does catch some bad symbols but isn't as heavy-handed
16602 # as -z defs.
16603 no_undefined_flag='${wl}-z,text'
16604 allow_undefined_flag='${wl}-z,nodefs'
16605 archive_cmds_need_lc=no
16606 hardcode_shlibpath_var=no
16607 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16608 hardcode_libdir_separator=':'
16609 link_all_deplibs=yes
16610 export_dynamic_flag_spec='${wl}-Bexport'
16611 runpath_var='LD_RUN_PATH'
16612
16613 if test "$GCC" = yes; then
16614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 else
16617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 fi
16620 ;;
16621
16622 uts4*)
16623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_libdir_flag_spec='-L$libdir'
16625 hardcode_shlibpath_var=no
16626 ;;
16627
16628 *)
16629 ld_shlibs=no
16630 ;;
16631 esac
16632
16633 if test x$host_vendor = xsni; then
16634 case $host in
16635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16636 export_dynamic_flag_spec='${wl}-Blargedynsym'
16637 ;;
16638 esac
16639 fi
16640 fi
16641
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16643 $as_echo "$ld_shlibs" >&6; }
16644 test "$ld_shlibs" = no && can_build_shared=no
16645
16646 with_gnu_ld=$with_gnu_ld
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662 #
16663 # Do we need to explicitly link libc?
16664 #
16665 case "x$archive_cmds_need_lc" in
16666 x|xyes)
16667 # Assume -lc should be added
16668 archive_cmds_need_lc=yes
16669
16670 if test "$enable_shared" = yes && test "$GCC" = yes; then
16671 case $archive_cmds in
16672 *'~'*)
16673 # FIXME: we may have to deal with multi-command sequences.
16674 ;;
16675 '$CC '*)
16676 # Test whether the compiler implicitly links with -lc since on some
16677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16678 # to ld, don't add -lc before -lgcc.
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16680 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16681 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 $RM conftest*
16685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16686
16687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16688 (eval $ac_compile) 2>&5
16689 ac_status=$?
16690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691 test $ac_status = 0; } 2>conftest.err; then
16692 soname=conftest
16693 lib=conftest
16694 libobjs=conftest.$ac_objext
16695 deplibs=
16696 wl=$lt_prog_compiler_wl
16697 pic_flag=$lt_prog_compiler_pic
16698 compiler_flags=-v
16699 linker_flags=-v
16700 verstring=
16701 output_objdir=.
16702 libname=conftest
16703 lt_save_allow_undefined_flag=$allow_undefined_flag
16704 allow_undefined_flag=
16705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16706 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16707 ac_status=$?
16708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16709 test $ac_status = 0; }
16710 then
16711 lt_cv_archive_cmds_need_lc=no
16712 else
16713 lt_cv_archive_cmds_need_lc=yes
16714 fi
16715 allow_undefined_flag=$lt_save_allow_undefined_flag
16716 else
16717 cat conftest.err 1>&5
16718 fi
16719 $RM conftest*
16720
16721 fi
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16723 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16724 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16725 ;;
16726 esac
16727 fi
16728 ;;
16729 esac
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16888 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16889
16890 if test "$GCC" = yes; then
16891 case $host_os in
16892 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16893 *) lt_awk_arg="/^libraries:/" ;;
16894 esac
16895 case $host_os in
16896 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16897 *) lt_sed_strip_eq="s,=/,/,g" ;;
16898 esac
16899 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16900 case $lt_search_path_spec in
16901 *\;*)
16902 # if the path contains ";" then we assume it to be the separator
16903 # otherwise default to the standard path separator (i.e. ":") - it is
16904 # assumed that no part of a normal pathname contains ";" but that should
16905 # okay in the real world where ";" in dirpaths is itself problematic.
16906 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16907 ;;
16908 *)
16909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16910 ;;
16911 esac
16912 # Ok, now we have the path, separated by spaces, we can step through it
16913 # and add multilib dir if necessary.
16914 lt_tmp_lt_search_path_spec=
16915 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16916 for lt_sys_path in $lt_search_path_spec; do
16917 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16919 else
16920 test -d "$lt_sys_path" && \
16921 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16922 fi
16923 done
16924 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16925 BEGIN {RS=" "; FS="/|\n";} {
16926 lt_foo="";
16927 lt_count=0;
16928 for (lt_i = NF; lt_i > 0; lt_i--) {
16929 if ($lt_i != "" && $lt_i != ".") {
16930 if ($lt_i == "..") {
16931 lt_count++;
16932 } else {
16933 if (lt_count == 0) {
16934 lt_foo="/" $lt_i lt_foo;
16935 } else {
16936 lt_count--;
16937 }
16938 }
16939 }
16940 }
16941 if (lt_foo != "") { lt_freq[lt_foo]++; }
16942 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16943 }'`
16944 # AWK program above erroneously prepends '/' to C:/dos/paths
16945 # for these hosts.
16946 case $host_os in
16947 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16948 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16949 esac
16950 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16951 else
16952 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16953 fi
16954 library_names_spec=
16955 libname_spec='lib$name'
16956 soname_spec=
16957 shrext_cmds=".so"
16958 postinstall_cmds=
16959 postuninstall_cmds=
16960 finish_cmds=
16961 finish_eval=
16962 shlibpath_var=
16963 shlibpath_overrides_runpath=unknown
16964 version_type=none
16965 dynamic_linker="$host_os ld.so"
16966 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16967 need_lib_prefix=unknown
16968 hardcode_into_libs=no
16969
16970 # when you set need_version to no, make sure it does not cause -set_version
16971 # flags to be left without arguments
16972 need_version=unknown
16973
16974 case $host_os in
16975 aix3*)
16976 version_type=linux
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16978 shlibpath_var=LIBPATH
16979
16980 # AIX 3 has no versioning support, so we append a major version to the name.
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 ;;
16983
16984 aix[4-9]*)
16985 version_type=linux
16986 need_lib_prefix=no
16987 need_version=no
16988 hardcode_into_libs=yes
16989 if test "$host_cpu" = ia64; then
16990 # AIX 5 supports IA64
16991 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 else
16994 # With GCC up to 2.95.x, collect2 would create an import file
16995 # for dependence libraries. The import file would start with
16996 # the line `#! .'. This would cause the generated library to
16997 # depend on `.', always an invalid library. This was fixed in
16998 # development snapshots of GCC prior to 3.0.
16999 case $host_os in
17000 aix4 | aix4.[01] | aix4.[01].*)
17001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17002 echo ' yes '
17003 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17004 :
17005 else
17006 can_build_shared=no
17007 fi
17008 ;;
17009 esac
17010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17011 # soname into executable. Probably we can add versioning support to
17012 # collect2, so additional links can be useful in future.
17013 if test "$aix_use_runtimelinking" = yes; then
17014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17015 # instead of lib<name>.a to let people know that these are not
17016 # typical AIX shared libraries.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 else
17019 # We preserve .a as extension for shared libraries through AIX4.2
17020 # and later when we are not doing run time linking.
17021 library_names_spec='${libname}${release}.a $libname.a'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 fi
17024 shlibpath_var=LIBPATH
17025 fi
17026 ;;
17027
17028 amigaos*)
17029 case $host_cpu in
17030 powerpc)
17031 # Since July 2007 AmigaOS4 officially supports .so libraries.
17032 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 ;;
17035 m68k)
17036 library_names_spec='$libname.ixlibrary $libname.a'
17037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17038 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'
17039 ;;
17040 esac
17041 ;;
17042
17043 beos*)
17044 library_names_spec='${libname}${shared_ext}'
17045 dynamic_linker="$host_os ld.so"
17046 shlibpath_var=LIBRARY_PATH
17047 ;;
17048
17049 bsdi[45]*)
17050 version_type=linux
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17058 # the default ld.so.conf also contains /usr/contrib/lib and
17059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17060 # libtool to hard-code these into programs
17061 ;;
17062
17063 cygwin* | mingw* | pw32* | cegcc*)
17064 version_type=windows
17065 shrext_cmds=".dll"
17066 need_version=no
17067 need_lib_prefix=no
17068
17069 case $GCC,$host_os in
17070 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17071 library_names_spec='$libname.dll.a'
17072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17073 postinstall_cmds='base_file=`basename \${file}`~
17074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17075 dldir=$destdir/`dirname \$dlpath`~
17076 test -d \$dldir || mkdir -p \$dldir~
17077 $install_prog $dir/$dlname \$dldir/$dlname~
17078 chmod a+x \$dldir/$dlname~
17079 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17080 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17081 fi'
17082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17083 dlpath=$dir/\$dldll~
17084 $RM \$dlpath'
17085 shlibpath_overrides_runpath=yes
17086
17087 case $host_os in
17088 cygwin*)
17089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17091
17092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17093 ;;
17094 mingw* | cegcc*)
17095 # MinGW DLLs use traditional 'lib' prefix
17096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17097 ;;
17098 pw32*)
17099 # pw32 DLLs use 'pw' prefix rather than 'lib'
17100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17101 ;;
17102 esac
17103 ;;
17104
17105 *)
17106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17107 ;;
17108 esac
17109 dynamic_linker='Win32 ld.exe'
17110 # FIXME: first we should search . and the directory the executable is in
17111 shlibpath_var=PATH
17112 ;;
17113
17114 darwin* | rhapsody*)
17115 dynamic_linker="$host_os dyld"
17116 version_type=darwin
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17120 soname_spec='${libname}${release}${major}$shared_ext'
17121 shlibpath_overrides_runpath=yes
17122 shlibpath_var=DYLD_LIBRARY_PATH
17123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17124
17125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17127 ;;
17128
17129 dgux*)
17130 version_type=linux
17131 need_lib_prefix=no
17132 need_version=no
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 ;;
17137
17138 freebsd* | dragonfly*)
17139 # DragonFly does not have aout. When/if they implement a new
17140 # versioning mechanism, adjust this.
17141 if test -x /usr/bin/objformat; then
17142 objformat=`/usr/bin/objformat`
17143 else
17144 case $host_os in
17145 freebsd[23].*) objformat=aout ;;
17146 *) objformat=elf ;;
17147 esac
17148 fi
17149 version_type=freebsd-$objformat
17150 case $version_type in
17151 freebsd-elf*)
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17153 need_version=no
17154 need_lib_prefix=no
17155 ;;
17156 freebsd-*)
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17158 need_version=yes
17159 ;;
17160 esac
17161 shlibpath_var=LD_LIBRARY_PATH
17162 case $host_os in
17163 freebsd2.*)
17164 shlibpath_overrides_runpath=yes
17165 ;;
17166 freebsd3.[01]* | freebsdelf3.[01]*)
17167 shlibpath_overrides_runpath=yes
17168 hardcode_into_libs=yes
17169 ;;
17170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17172 shlibpath_overrides_runpath=no
17173 hardcode_into_libs=yes
17174 ;;
17175 *) # from 4.6 on, and DragonFly
17176 shlibpath_overrides_runpath=yes
17177 hardcode_into_libs=yes
17178 ;;
17179 esac
17180 ;;
17181
17182 gnu*)
17183 version_type=linux
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 shlibpath_var=LD_LIBRARY_PATH
17189 hardcode_into_libs=yes
17190 ;;
17191
17192 haiku*)
17193 version_type=linux
17194 need_lib_prefix=no
17195 need_version=no
17196 dynamic_linker="$host_os runtime_loader"
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LIBRARY_PATH
17200 shlibpath_overrides_runpath=yes
17201 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17202 hardcode_into_libs=yes
17203 ;;
17204
17205 hpux9* | hpux10* | hpux11*)
17206 # Give a soname corresponding to the major version so that dld.sl refuses to
17207 # link against other versions.
17208 version_type=sunos
17209 need_lib_prefix=no
17210 need_version=no
17211 case $host_cpu in
17212 ia64*)
17213 shrext_cmds='.so'
17214 hardcode_into_libs=yes
17215 dynamic_linker="$host_os dld.so"
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 if test "X$HPUX_IA64_MODE" = X32; then
17221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17222 else
17223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17224 fi
17225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17226 ;;
17227 hppa*64*)
17228 shrext_cmds='.sl'
17229 hardcode_into_libs=yes
17230 dynamic_linker="$host_os dld.sl"
17231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17237 ;;
17238 *)
17239 shrext_cmds='.sl'
17240 dynamic_linker="$host_os dld.sl"
17241 shlibpath_var=SHLIB_PATH
17242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 ;;
17246 esac
17247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17248 postinstall_cmds='chmod 555 $lib'
17249 # or fails outright, so override atomically:
17250 install_override_mode=555
17251 ;;
17252
17253 interix[3-9]*)
17254 version_type=linux
17255 need_lib_prefix=no
17256 need_version=no
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=no
17262 hardcode_into_libs=yes
17263 ;;
17264
17265 irix5* | irix6* | nonstopux*)
17266 case $host_os in
17267 nonstopux*) version_type=nonstopux ;;
17268 *)
17269 if test "$lt_cv_prog_gnu_ld" = yes; then
17270 version_type=linux
17271 else
17272 version_type=irix
17273 fi ;;
17274 esac
17275 need_lib_prefix=no
17276 need_version=no
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17279 case $host_os in
17280 irix5* | nonstopux*)
17281 libsuff= shlibsuff=
17282 ;;
17283 *)
17284 case $LD in # libtool.m4 will add one of these switches to LD
17285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17286 libsuff= shlibsuff= libmagic=32-bit;;
17287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17288 libsuff=32 shlibsuff=N32 libmagic=N32;;
17289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17291 *) libsuff= shlibsuff= libmagic=never-match;;
17292 esac
17293 ;;
17294 esac
17295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17296 shlibpath_overrides_runpath=no
17297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17299 hardcode_into_libs=yes
17300 ;;
17301
17302 # No shared lib support for Linux oldld, aout, or coff.
17303 linux*oldld* | linux*aout* | linux*coff*)
17304 dynamic_linker=no
17305 ;;
17306
17307 # This must be Linux ELF.
17308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17309 version_type=linux
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=no
17317
17318 # Some binutils ld are patched to set DT_RUNPATH
17319 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322 lt_cv_shlibpath_overrides_runpath=no
17323 save_LDFLAGS=$LDFLAGS
17324 save_libdir=$libdir
17325 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17326 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329
17330 int
17331 main ()
17332 {
17333
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_c_try_link "$LINENO"; then :
17339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17340 lt_cv_shlibpath_overrides_runpath=yes
17341 fi
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LDFLAGS=$save_LDFLAGS
17346 libdir=$save_libdir
17347
17348 fi
17349
17350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17351
17352 # This implies no fast_install, which is unacceptable.
17353 # Some rework will be needed to allow for fast_install
17354 # before this can be enabled.
17355 hardcode_into_libs=yes
17356
17357 # Append ld.so.conf contents to the search path
17358 if test -f /etc/ld.so.conf; then
17359 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' ' '`
17360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17361 fi
17362
17363 # We used to test for /lib/ld.so.1 and disable shared libraries on
17364 # powerpc, because MkLinux only supported shared libraries with the
17365 # GNU dynamic linker. Since this was broken with cross compilers,
17366 # most powerpc-linux boxes support dynamic linking these days and
17367 # people can always --disable-shared, the test was removed, and we
17368 # assume the GNU/Linux dynamic linker is in use.
17369 dynamic_linker='GNU/Linux ld.so'
17370 ;;
17371
17372 netbsd*)
17373 version_type=sunos
17374 need_lib_prefix=no
17375 need_version=no
17376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17379 dynamic_linker='NetBSD (a.out) ld.so'
17380 else
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17382 soname_spec='${libname}${release}${shared_ext}$major'
17383 dynamic_linker='NetBSD ld.elf_so'
17384 fi
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=yes
17387 hardcode_into_libs=yes
17388 ;;
17389
17390 newsos6)
17391 version_type=linux
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 shlibpath_overrides_runpath=yes
17395 ;;
17396
17397 *nto* | *qnx*)
17398 version_type=qnx
17399 need_lib_prefix=no
17400 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath=no
17405 hardcode_into_libs=yes
17406 dynamic_linker='ldqnx.so'
17407 ;;
17408
17409 openbsd*)
17410 version_type=sunos
17411 sys_lib_dlsearch_path_spec="/usr/lib"
17412 need_lib_prefix=no
17413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17414 case $host_os in
17415 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17416 *) need_version=no ;;
17417 esac
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17422 case $host_os in
17423 openbsd2.[89] | openbsd2.[89].*)
17424 shlibpath_overrides_runpath=no
17425 ;;
17426 *)
17427 shlibpath_overrides_runpath=yes
17428 ;;
17429 esac
17430 else
17431 shlibpath_overrides_runpath=yes
17432 fi
17433 ;;
17434
17435 os2*)
17436 libname_spec='$name'
17437 shrext_cmds=".dll"
17438 need_lib_prefix=no
17439 library_names_spec='$libname${shared_ext} $libname.a'
17440 dynamic_linker='OS/2 ld.exe'
17441 shlibpath_var=LIBPATH
17442 ;;
17443
17444 osf3* | osf4* | osf5*)
17445 version_type=osf
17446 need_lib_prefix=no
17447 need_version=no
17448 soname_spec='${libname}${release}${shared_ext}$major'
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17453 ;;
17454
17455 rdos*)
17456 dynamic_linker=no
17457 ;;
17458
17459 solaris*)
17460 version_type=linux
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17467 hardcode_into_libs=yes
17468 # ldd complains unless libraries are executable
17469 postinstall_cmds='chmod +x $lib'
17470 ;;
17471
17472 sunos4*)
17473 version_type=sunos
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 shlibpath_overrides_runpath=yes
17478 if test "$with_gnu_ld" = yes; then
17479 need_lib_prefix=no
17480 fi
17481 need_version=yes
17482 ;;
17483
17484 sysv4 | sysv4.3*)
17485 version_type=linux
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 case $host_vendor in
17490 sni)
17491 shlibpath_overrides_runpath=no
17492 need_lib_prefix=no
17493 runpath_var=LD_RUN_PATH
17494 ;;
17495 siemens)
17496 need_lib_prefix=no
17497 ;;
17498 motorola)
17499 need_lib_prefix=no
17500 need_version=no
17501 shlibpath_overrides_runpath=no
17502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17503 ;;
17504 esac
17505 ;;
17506
17507 sysv4*MP*)
17508 if test -d /usr/nec ;then
17509 version_type=linux
17510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17511 soname_spec='$libname${shared_ext}.$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 fi
17514 ;;
17515
17516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17517 version_type=freebsd-elf
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 shlibpath_overrides_runpath=yes
17524 hardcode_into_libs=yes
17525 if test "$with_gnu_ld" = yes; then
17526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17527 else
17528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17529 case $host_os in
17530 sco3.2v5*)
17531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17532 ;;
17533 esac
17534 fi
17535 sys_lib_dlsearch_path_spec='/usr/lib'
17536 ;;
17537
17538 tpf*)
17539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17540 version_type=linux
17541 need_lib_prefix=no
17542 need_version=no
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 shlibpath_overrides_runpath=no
17546 hardcode_into_libs=yes
17547 ;;
17548
17549 uts4*)
17550 version_type=linux
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 ;;
17555
17556 *)
17557 dynamic_linker=no
17558 ;;
17559 esac
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17561 $as_echo "$dynamic_linker" >&6; }
17562 test "$dynamic_linker" = no && can_build_shared=no
17563
17564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17565 if test "$GCC" = yes; then
17566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17567 fi
17568
17569 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17570 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17571 fi
17572 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17573 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17574 fi
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17668 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17669 hardcode_action=
17670 if test -n "$hardcode_libdir_flag_spec" ||
17671 test -n "$runpath_var" ||
17672 test "X$hardcode_automatic" = "Xyes" ; then
17673
17674 # We can hardcode non-existent directories.
17675 if test "$hardcode_direct" != no &&
17676 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17677 # have to relink, otherwise we might link with an installed library
17678 # when we should be linking with a yet-to-be-installed one
17679 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17680 test "$hardcode_minus_L" != no; then
17681 # Linking always hardcodes the temporary library directory.
17682 hardcode_action=relink
17683 else
17684 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17685 hardcode_action=immediate
17686 fi
17687 else
17688 # We cannot hardcode anything, or else we can only hardcode existing
17689 # directories.
17690 hardcode_action=unsupported
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17693 $as_echo "$hardcode_action" >&6; }
17694
17695 if test "$hardcode_action" = relink ||
17696 test "$inherit_rpath" = yes; then
17697 # Fast installation is not supported
17698 enable_fast_install=no
17699 elif test "$shlibpath_overrides_runpath" = yes ||
17700 test "$enable_shared" = no; then
17701 # Fast installation is not necessary
17702 enable_fast_install=needless
17703 fi
17704
17705
17706
17707
17708
17709
17710 if test "x$enable_dlopen" != xyes; then
17711 enable_dlopen=unknown
17712 enable_dlopen_self=unknown
17713 enable_dlopen_self_static=unknown
17714 else
17715 lt_cv_dlopen=no
17716 lt_cv_dlopen_libs=
17717
17718 case $host_os in
17719 beos*)
17720 lt_cv_dlopen="load_add_on"
17721 lt_cv_dlopen_libs=
17722 lt_cv_dlopen_self=yes
17723 ;;
17724
17725 mingw* | pw32* | cegcc*)
17726 lt_cv_dlopen="LoadLibrary"
17727 lt_cv_dlopen_libs=
17728 ;;
17729
17730 cygwin*)
17731 lt_cv_dlopen="dlopen"
17732 lt_cv_dlopen_libs=
17733 ;;
17734
17735 darwin*)
17736 # if libdl is installed we need to link against it
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17738 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-ldl $LIBS"
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17746
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17750 #ifdef __cplusplus
17751 extern "C"
17752 #endif
17753 char dlopen ();
17754 int
17755 main ()
17756 {
17757 return dlopen ();
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"; then :
17763 ac_cv_lib_dl_dlopen=yes
17764 else
17765 ac_cv_lib_dl_dlopen=no
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 LIBS=$ac_check_lib_save_LIBS
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17772 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17773 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17775 else
17776
17777 lt_cv_dlopen="dyld"
17778 lt_cv_dlopen_libs=
17779 lt_cv_dlopen_self=yes
17780
17781 fi
17782
17783 ;;
17784
17785 *)
17786 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17787 if test "x$ac_cv_func_shl_load" = x""yes; then :
17788 lt_cv_dlopen="shl_load"
17789 else
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17791 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-ldld $LIBS"
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 char shl_load ();
17807 int
17808 main ()
17809 {
17810 return shl_load ();
17811 ;
17812 return 0;
17813 }
17814 _ACEOF
17815 if ac_fn_c_try_link "$LINENO"; then :
17816 ac_cv_lib_dld_shl_load=yes
17817 else
17818 ac_cv_lib_dld_shl_load=no
17819 fi
17820 rm -f core conftest.err conftest.$ac_objext \
17821 conftest$ac_exeext conftest.$ac_ext
17822 LIBS=$ac_check_lib_save_LIBS
17823 fi
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17825 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17826 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17827 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17828 else
17829 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17830 if test "x$ac_cv_func_dlopen" = x""yes; then :
17831 lt_cv_dlopen="dlopen"
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ldl $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char dlopen ();
17850 int
17851 main ()
17852 {
17853 return dlopen ();
17854 ;
17855 return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859 ac_cv_lib_dl_dlopen=yes
17860 else
17861 ac_cv_lib_dl_dlopen=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17869 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17871 else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17873 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17874 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-lsvld $LIBS"
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881
17882 /* Override any GCC internal prototype to avoid an error.
17883 Use char because int might match the return type of a GCC
17884 builtin and then its argument prototype would still apply. */
17885 #ifdef __cplusplus
17886 extern "C"
17887 #endif
17888 char dlopen ();
17889 int
17890 main ()
17891 {
17892 return dlopen ();
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 ac_cv_lib_svld_dlopen=yes
17899 else
17900 ac_cv_lib_svld_dlopen=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17905 fi
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17907 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17908 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17912 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-ldld $LIBS"
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char dld_link ();
17928 int
17929 main ()
17930 {
17931 return dld_link ();
17932 ;
17933 return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937 ac_cv_lib_dld_dld_link=yes
17938 else
17939 ac_cv_lib_dld_dld_link=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17944 fi
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17946 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17947 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17948 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17949 fi
17950
17951
17952 fi
17953
17954
17955 fi
17956
17957
17958 fi
17959
17960
17961 fi
17962
17963
17964 fi
17965
17966 ;;
17967 esac
17968
17969 if test "x$lt_cv_dlopen" != xno; then
17970 enable_dlopen=yes
17971 else
17972 enable_dlopen=no
17973 fi
17974
17975 case $lt_cv_dlopen in
17976 dlopen)
17977 save_CPPFLAGS="$CPPFLAGS"
17978 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17979
17980 save_LDFLAGS="$LDFLAGS"
17981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17982
17983 save_LIBS="$LIBS"
17984 LIBS="$lt_cv_dlopen_libs $LIBS"
17985
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17987 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17988 if test "${lt_cv_dlopen_self+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17990 else
17991 if test "$cross_compiling" = yes; then :
17992 lt_cv_dlopen_self=cross
17993 else
17994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17995 lt_status=$lt_dlunknown
17996 cat > conftest.$ac_ext <<_LT_EOF
17997 #line 17997 "configure"
17998 #include "confdefs.h"
17999
18000 #if HAVE_DLFCN_H
18001 #include <dlfcn.h>
18002 #endif
18003
18004 #include <stdio.h>
18005
18006 #ifdef RTLD_GLOBAL
18007 # define LT_DLGLOBAL RTLD_GLOBAL
18008 #else
18009 # ifdef DL_GLOBAL
18010 # define LT_DLGLOBAL DL_GLOBAL
18011 # else
18012 # define LT_DLGLOBAL 0
18013 # endif
18014 #endif
18015
18016 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18017 find out it does not work in some platform. */
18018 #ifndef LT_DLLAZY_OR_NOW
18019 # ifdef RTLD_LAZY
18020 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18021 # else
18022 # ifdef DL_LAZY
18023 # define LT_DLLAZY_OR_NOW DL_LAZY
18024 # else
18025 # ifdef RTLD_NOW
18026 # define LT_DLLAZY_OR_NOW RTLD_NOW
18027 # else
18028 # ifdef DL_NOW
18029 # define LT_DLLAZY_OR_NOW DL_NOW
18030 # else
18031 # define LT_DLLAZY_OR_NOW 0
18032 # endif
18033 # endif
18034 # endif
18035 # endif
18036 #endif
18037
18038 /* When -fvisbility=hidden is used, assume the code has been annotated
18039 correspondingly for the symbols needed. */
18040 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18041 void fnord () __attribute__((visibility("default")));
18042 #endif
18043
18044 void fnord () { int i=42; }
18045 int main ()
18046 {
18047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18048 int status = $lt_dlunknown;
18049
18050 if (self)
18051 {
18052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18053 else
18054 {
18055 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18056 else puts (dlerror ());
18057 }
18058 /* dlclose (self); */
18059 }
18060 else
18061 puts (dlerror ());
18062
18063 return status;
18064 }
18065 _LT_EOF
18066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18067 (eval $ac_link) 2>&5
18068 ac_status=$?
18069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18070 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18071 (./conftest; exit; ) >&5 2>/dev/null
18072 lt_status=$?
18073 case x$lt_status in
18074 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18075 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18076 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18077 esac
18078 else :
18079 # compilation failed
18080 lt_cv_dlopen_self=no
18081 fi
18082 fi
18083 rm -fr conftest*
18084
18085
18086 fi
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18088 $as_echo "$lt_cv_dlopen_self" >&6; }
18089
18090 if test "x$lt_cv_dlopen_self" = xyes; then
18091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18093 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18094 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18096 else
18097 if test "$cross_compiling" = yes; then :
18098 lt_cv_dlopen_self_static=cross
18099 else
18100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18101 lt_status=$lt_dlunknown
18102 cat > conftest.$ac_ext <<_LT_EOF
18103 #line 18103 "configure"
18104 #include "confdefs.h"
18105
18106 #if HAVE_DLFCN_H
18107 #include <dlfcn.h>
18108 #endif
18109
18110 #include <stdio.h>
18111
18112 #ifdef RTLD_GLOBAL
18113 # define LT_DLGLOBAL RTLD_GLOBAL
18114 #else
18115 # ifdef DL_GLOBAL
18116 # define LT_DLGLOBAL DL_GLOBAL
18117 # else
18118 # define LT_DLGLOBAL 0
18119 # endif
18120 #endif
18121
18122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18123 find out it does not work in some platform. */
18124 #ifndef LT_DLLAZY_OR_NOW
18125 # ifdef RTLD_LAZY
18126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18127 # else
18128 # ifdef DL_LAZY
18129 # define LT_DLLAZY_OR_NOW DL_LAZY
18130 # else
18131 # ifdef RTLD_NOW
18132 # define LT_DLLAZY_OR_NOW RTLD_NOW
18133 # else
18134 # ifdef DL_NOW
18135 # define LT_DLLAZY_OR_NOW DL_NOW
18136 # else
18137 # define LT_DLLAZY_OR_NOW 0
18138 # endif
18139 # endif
18140 # endif
18141 # endif
18142 #endif
18143
18144 /* When -fvisbility=hidden is used, assume the code has been annotated
18145 correspondingly for the symbols needed. */
18146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18147 void fnord () __attribute__((visibility("default")));
18148 #endif
18149
18150 void fnord () { int i=42; }
18151 int main ()
18152 {
18153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18154 int status = $lt_dlunknown;
18155
18156 if (self)
18157 {
18158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18159 else
18160 {
18161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18162 else puts (dlerror ());
18163 }
18164 /* dlclose (self); */
18165 }
18166 else
18167 puts (dlerror ());
18168
18169 return status;
18170 }
18171 _LT_EOF
18172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18173 (eval $ac_link) 2>&5
18174 ac_status=$?
18175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18177 (./conftest; exit; ) >&5 2>/dev/null
18178 lt_status=$?
18179 case x$lt_status in
18180 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18181 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18182 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18183 esac
18184 else :
18185 # compilation failed
18186 lt_cv_dlopen_self_static=no
18187 fi
18188 fi
18189 rm -fr conftest*
18190
18191
18192 fi
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18194 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18195 fi
18196
18197 CPPFLAGS="$save_CPPFLAGS"
18198 LDFLAGS="$save_LDFLAGS"
18199 LIBS="$save_LIBS"
18200 ;;
18201 esac
18202
18203 case $lt_cv_dlopen_self in
18204 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18205 *) enable_dlopen_self=unknown ;;
18206 esac
18207
18208 case $lt_cv_dlopen_self_static in
18209 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18210 *) enable_dlopen_self_static=unknown ;;
18211 esac
18212 fi
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230 striplib=
18231 old_striplib=
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18233 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18234 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18235 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18236 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18238 $as_echo "yes" >&6; }
18239 else
18240 # FIXME - insert some real tests, host_os isn't really good enough
18241 case $host_os in
18242 darwin*)
18243 if test -n "$STRIP" ; then
18244 striplib="$STRIP -x"
18245 old_striplib="$STRIP -S"
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18247 $as_echo "yes" >&6; }
18248 else
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251 fi
18252 ;;
18253 *)
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18255 $as_echo "no" >&6; }
18256 ;;
18257 esac
18258 fi
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271 # Report which library types will actually be built
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18273 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18275 $as_echo "$can_build_shared" >&6; }
18276
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18278 $as_echo_n "checking whether to build shared libraries... " >&6; }
18279 test "$can_build_shared" = "no" && enable_shared=no
18280
18281 # On AIX, shared libraries and static libraries use the same namespace, and
18282 # are all built from PIC.
18283 case $host_os in
18284 aix3*)
18285 test "$enable_shared" = yes && enable_static=no
18286 if test -n "$RANLIB"; then
18287 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18288 postinstall_cmds='$RANLIB $lib'
18289 fi
18290 ;;
18291
18292 aix[4-9]*)
18293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18294 test "$enable_shared" = yes && enable_static=no
18295 fi
18296 ;;
18297 esac
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18299 $as_echo "$enable_shared" >&6; }
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18302 $as_echo_n "checking whether to build static libraries... " >&6; }
18303 # Make sure either enable_shared or enable_static is yes.
18304 test "$enable_shared" = yes || enable_static=yes
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18306 $as_echo "$enable_static" >&6; }
18307
18308
18309
18310
18311 fi
18312 ac_ext=c
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
18318 CC="$lt_save_CC"
18319
18320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18321 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18322 (test "X$CXX" != "Xg++"))) ; then
18323 ac_ext=cpp
18324 ac_cpp='$CXXCPP $CPPFLAGS'
18325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18329 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18330 if test -z "$CXXCPP"; then
18331 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18332 $as_echo_n "(cached) " >&6
18333 else
18334 # Double quotes because CXXCPP needs to be expanded
18335 for CXXCPP in "$CXX -E" "/lib/cpp"
18336 do
18337 ac_preproc_ok=false
18338 for ac_cxx_preproc_warn_flag in '' yes
18339 do
18340 # Use a header file that comes with gcc, so configuring glibc
18341 # with a fresh cross-compiler works.
18342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343 # <limits.h> exists even on freestanding compilers.
18344 # On the NeXT, cc -E runs the code through the compiler's parser,
18345 # not just through cpp. "Syntax error" is here to catch this case.
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #ifdef __STDC__
18349 # include <limits.h>
18350 #else
18351 # include <assert.h>
18352 #endif
18353 Syntax error
18354 _ACEOF
18355 if ac_fn_cxx_try_cpp "$LINENO"; then :
18356
18357 else
18358 # Broken: fails on valid input.
18359 continue
18360 fi
18361 rm -f conftest.err conftest.$ac_ext
18362
18363 # OK, works on sane cases. Now check whether nonexistent headers
18364 # can be detected and how.
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #include <ac_nonexistent.h>
18368 _ACEOF
18369 if ac_fn_cxx_try_cpp "$LINENO"; then :
18370 # Broken: success on invalid input.
18371 continue
18372 else
18373 # Passes both tests.
18374 ac_preproc_ok=:
18375 break
18376 fi
18377 rm -f conftest.err conftest.$ac_ext
18378
18379 done
18380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18381 rm -f conftest.err conftest.$ac_ext
18382 if $ac_preproc_ok; then :
18383 break
18384 fi
18385
18386 done
18387 ac_cv_prog_CXXCPP=$CXXCPP
18388
18389 fi
18390 CXXCPP=$ac_cv_prog_CXXCPP
18391 else
18392 ac_cv_prog_CXXCPP=$CXXCPP
18393 fi
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18395 $as_echo "$CXXCPP" >&6; }
18396 ac_preproc_ok=false
18397 for ac_cxx_preproc_warn_flag in '' yes
18398 do
18399 # Use a header file that comes with gcc, so configuring glibc
18400 # with a fresh cross-compiler works.
18401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402 # <limits.h> exists even on freestanding compilers.
18403 # On the NeXT, cc -E runs the code through the compiler's parser,
18404 # not just through cpp. "Syntax error" is here to catch this case.
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #ifdef __STDC__
18408 # include <limits.h>
18409 #else
18410 # include <assert.h>
18411 #endif
18412 Syntax error
18413 _ACEOF
18414 if ac_fn_cxx_try_cpp "$LINENO"; then :
18415
18416 else
18417 # Broken: fails on valid input.
18418 continue
18419 fi
18420 rm -f conftest.err conftest.$ac_ext
18421
18422 # OK, works on sane cases. Now check whether nonexistent headers
18423 # can be detected and how.
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426 #include <ac_nonexistent.h>
18427 _ACEOF
18428 if ac_fn_cxx_try_cpp "$LINENO"; then :
18429 # Broken: success on invalid input.
18430 continue
18431 else
18432 # Passes both tests.
18433 ac_preproc_ok=:
18434 break
18435 fi
18436 rm -f conftest.err conftest.$ac_ext
18437
18438 done
18439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18440 rm -f conftest.err conftest.$ac_ext
18441 if $ac_preproc_ok; then :
18442
18443 else
18444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18446 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18447 See \`config.log' for more details." "$LINENO" 5; }
18448 fi
18449
18450 ac_ext=c
18451 ac_cpp='$CPP $CPPFLAGS'
18452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18455
18456 else
18457 _lt_caught_CXX_error=yes
18458 fi
18459
18460 ac_ext=cpp
18461 ac_cpp='$CXXCPP $CPPFLAGS'
18462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18465
18466 archive_cmds_need_lc_CXX=no
18467 allow_undefined_flag_CXX=
18468 always_export_symbols_CXX=no
18469 archive_expsym_cmds_CXX=
18470 compiler_needs_object_CXX=no
18471 export_dynamic_flag_spec_CXX=
18472 hardcode_direct_CXX=no
18473 hardcode_direct_absolute_CXX=no
18474 hardcode_libdir_flag_spec_CXX=
18475 hardcode_libdir_flag_spec_ld_CXX=
18476 hardcode_libdir_separator_CXX=
18477 hardcode_minus_L_CXX=no
18478 hardcode_shlibpath_var_CXX=unsupported
18479 hardcode_automatic_CXX=no
18480 inherit_rpath_CXX=no
18481 module_cmds_CXX=
18482 module_expsym_cmds_CXX=
18483 link_all_deplibs_CXX=unknown
18484 old_archive_cmds_CXX=$old_archive_cmds
18485 reload_flag_CXX=$reload_flag
18486 reload_cmds_CXX=$reload_cmds
18487 no_undefined_flag_CXX=
18488 whole_archive_flag_spec_CXX=
18489 enable_shared_with_static_runtimes_CXX=no
18490
18491 # Source file extension for C++ test sources.
18492 ac_ext=cpp
18493
18494 # Object file extension for compiled C++ test sources.
18495 objext=o
18496 objext_CXX=$objext
18497
18498 # No sense in running all these tests if we already determined that
18499 # the CXX compiler isn't working. Some variables (like enable_shared)
18500 # are currently assumed to apply to all compilers on this platform,
18501 # and will be corrupted by setting them based on a non-working compiler.
18502 if test "$_lt_caught_CXX_error" != yes; then
18503 # Code to be used in simple compile tests
18504 lt_simple_compile_test_code="int some_variable = 0;"
18505
18506 # Code to be used in simple link tests
18507 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18508
18509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18510
18511
18512
18513
18514
18515
18516 # If no C compiler was specified, use CC.
18517 LTCC=${LTCC-"$CC"}
18518
18519 # If no C compiler flags were specified, use CFLAGS.
18520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18521
18522 # Allow CC to be a program name with arguments.
18523 compiler=$CC
18524
18525
18526 # save warnings/boilerplate of simple test code
18527 ac_outfile=conftest.$ac_objext
18528 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18529 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18530 _lt_compiler_boilerplate=`cat conftest.err`
18531 $RM conftest*
18532
18533 ac_outfile=conftest.$ac_objext
18534 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18535 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18536 _lt_linker_boilerplate=`cat conftest.err`
18537 $RM -r conftest*
18538
18539
18540 # Allow CC to be a program name with arguments.
18541 lt_save_CC=$CC
18542 lt_save_LD=$LD
18543 lt_save_GCC=$GCC
18544 GCC=$GXX
18545 lt_save_with_gnu_ld=$with_gnu_ld
18546 lt_save_path_LD=$lt_cv_path_LD
18547 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18548 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18549 else
18550 $as_unset lt_cv_prog_gnu_ld
18551 fi
18552 if test -n "${lt_cv_path_LDCXX+set}"; then
18553 lt_cv_path_LD=$lt_cv_path_LDCXX
18554 else
18555 $as_unset lt_cv_path_LD
18556 fi
18557 test -z "${LDCXX+set}" || LD=$LDCXX
18558 CC=${CXX-"c++"}
18559 compiler=$CC
18560 compiler_CXX=$CC
18561 for cc_temp in $compiler""; do
18562 case $cc_temp in
18563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18565 \-*) ;;
18566 *) break;;
18567 esac
18568 done
18569 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18570
18571
18572 if test -n "$compiler"; then
18573 # We don't want -fno-exception when compiling C++ code, so set the
18574 # no_builtin_flag separately
18575 if test "$GXX" = yes; then
18576 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18577 else
18578 lt_prog_compiler_no_builtin_flag_CXX=
18579 fi
18580
18581 if test "$GXX" = yes; then
18582 # Set up default GNU C++ configuration
18583
18584
18585
18586 # Check whether --with-gnu-ld was given.
18587 if test "${with_gnu_ld+set}" = set; then :
18588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18589 else
18590 with_gnu_ld=no
18591 fi
18592
18593 ac_prog=ld
18594 if test "$GCC" = yes; then
18595 # Check if gcc -print-prog-name=ld gives a path.
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18597 $as_echo_n "checking for ld used by $CC... " >&6; }
18598 case $host in
18599 *-*-mingw*)
18600 # gcc leaves a trailing carriage return which upsets mingw
18601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18602 *)
18603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18604 esac
18605 case $ac_prog in
18606 # Accept absolute paths.
18607 [\\/]* | ?:[\\/]*)
18608 re_direlt='/[^/][^/]*/\.\./'
18609 # Canonicalize the pathname of ld
18610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18613 done
18614 test -z "$LD" && LD="$ac_prog"
18615 ;;
18616 "")
18617 # If it fails, then pretend we aren't using GCC.
18618 ac_prog=ld
18619 ;;
18620 *)
18621 # If it is relative, then search for the first ld in PATH.
18622 with_gnu_ld=unknown
18623 ;;
18624 esac
18625 elif test "$with_gnu_ld" = yes; then
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18627 $as_echo_n "checking for GNU ld... " >&6; }
18628 else
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18630 $as_echo_n "checking for non-GNU ld... " >&6; }
18631 fi
18632 if test "${lt_cv_path_LD+set}" = set; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 if test -z "$LD"; then
18636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18637 for ac_dir in $PATH; do
18638 IFS="$lt_save_ifs"
18639 test -z "$ac_dir" && ac_dir=.
18640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18641 lt_cv_path_LD="$ac_dir/$ac_prog"
18642 # Check to see if the program is GNU ld. I'd rather use --version,
18643 # but apparently some variants of GNU ld only accept -v.
18644 # Break only if it was the GNU/non-GNU ld that we prefer.
18645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18646 *GNU* | *'with BFD'*)
18647 test "$with_gnu_ld" != no && break
18648 ;;
18649 *)
18650 test "$with_gnu_ld" != yes && break
18651 ;;
18652 esac
18653 fi
18654 done
18655 IFS="$lt_save_ifs"
18656 else
18657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18658 fi
18659 fi
18660
18661 LD="$lt_cv_path_LD"
18662 if test -n "$LD"; then
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18664 $as_echo "$LD" >&6; }
18665 else
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18668 fi
18669 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18671 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18672 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18673 $as_echo_n "(cached) " >&6
18674 else
18675 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18676 case `$LD -v 2>&1 </dev/null` in
18677 *GNU* | *'with BFD'*)
18678 lt_cv_prog_gnu_ld=yes
18679 ;;
18680 *)
18681 lt_cv_prog_gnu_ld=no
18682 ;;
18683 esac
18684 fi
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18686 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18687 with_gnu_ld=$lt_cv_prog_gnu_ld
18688
18689
18690
18691
18692
18693
18694
18695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18696 # archiving commands below assume that GNU ld is being used.
18697 if test "$with_gnu_ld" = yes; then
18698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18699 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18700
18701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18703
18704 # If archive_cmds runs LD, not CC, wlarc should be empty
18705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18706 # investigate it a little bit more. (MM)
18707 wlarc='${wl}'
18708
18709 # ancient GNU ld didn't support --whole-archive et. al.
18710 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18711 $GREP 'no-whole-archive' > /dev/null; then
18712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18713 else
18714 whole_archive_flag_spec_CXX=
18715 fi
18716 else
18717 with_gnu_ld=no
18718 wlarc=
18719
18720 # A generic and very simple default shared library creation
18721 # command for GNU C++ for the case where it uses the native
18722 # linker, instead of GNU ld. If possible, this setting should
18723 # overridden to take advantage of the native linker features on
18724 # the platform it is being used on.
18725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18726 fi
18727
18728 # Commands to make compiler produce verbose output that lists
18729 # what "hidden" libraries, object files and flags are used when
18730 # linking a shared library.
18731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18732
18733 else
18734 GXX=no
18735 with_gnu_ld=no
18736 wlarc=
18737 fi
18738
18739 # PORTME: fill in a description of your system's C++ link characteristics
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18741 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18742 ld_shlibs_CXX=yes
18743 case $host_os in
18744 aix3*)
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 ;;
18748 aix[4-9]*)
18749 if test "$host_cpu" = ia64; then
18750 # On IA64, the linker does run time linking by default, so we don't
18751 # have to do anything special.
18752 aix_use_runtimelinking=no
18753 exp_sym_flag='-Bexport'
18754 no_entry_flag=""
18755 else
18756 aix_use_runtimelinking=no
18757
18758 # Test if we are trying to use run time linking or normal
18759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18760 # need to do runtime linking.
18761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18762 for ld_flag in $LDFLAGS; do
18763 case $ld_flag in
18764 *-brtl*)
18765 aix_use_runtimelinking=yes
18766 break
18767 ;;
18768 esac
18769 done
18770 ;;
18771 esac
18772
18773 exp_sym_flag='-bexport'
18774 no_entry_flag='-bnoentry'
18775 fi
18776
18777 # When large executables or shared objects are built, AIX ld can
18778 # have problems creating the table of contents. If linking a library
18779 # or program results in "error TOC overflow" add -mminimal-toc to
18780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18782
18783 archive_cmds_CXX=''
18784 hardcode_direct_CXX=yes
18785 hardcode_direct_absolute_CXX=yes
18786 hardcode_libdir_separator_CXX=':'
18787 link_all_deplibs_CXX=yes
18788 file_list_spec_CXX='${wl}-f,'
18789
18790 if test "$GXX" = yes; then
18791 case $host_os in aix4.[012]|aix4.[012].*)
18792 # We only want to do this on AIX 4.2 and lower, the check
18793 # below for broken collect2 doesn't work under 4.3+
18794 collect2name=`${CC} -print-prog-name=collect2`
18795 if test -f "$collect2name" &&
18796 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18797 then
18798 # We have reworked collect2
18799 :
18800 else
18801 # We have old collect2
18802 hardcode_direct_CXX=unsupported
18803 # It fails to find uninstalled libraries when the uninstalled
18804 # path is not listed in the libpath. Setting hardcode_minus_L
18805 # to unsupported forces relinking
18806 hardcode_minus_L_CXX=yes
18807 hardcode_libdir_flag_spec_CXX='-L$libdir'
18808 hardcode_libdir_separator_CXX=
18809 fi
18810 esac
18811 shared_flag='-shared'
18812 if test "$aix_use_runtimelinking" = yes; then
18813 shared_flag="$shared_flag "'${wl}-G'
18814 fi
18815 else
18816 # not using gcc
18817 if test "$host_cpu" = ia64; then
18818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18819 # chokes on -Wl,-G. The following line is correct:
18820 shared_flag='-G'
18821 else
18822 if test "$aix_use_runtimelinking" = yes; then
18823 shared_flag='${wl}-G'
18824 else
18825 shared_flag='${wl}-bM:SRE'
18826 fi
18827 fi
18828 fi
18829
18830 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18831 # It seems that -bexpall does not export symbols beginning with
18832 # underscore (_), so it is better to generate a list of symbols to
18833 # export.
18834 always_export_symbols_CXX=yes
18835 if test "$aix_use_runtimelinking" = yes; then
18836 # Warning - without using the other runtime loading flags (-brtl),
18837 # -berok will link without error, but may produce a broken library.
18838 allow_undefined_flag_CXX='-berok'
18839 # Determine the default libpath from the value encoded in an empty
18840 # executable.
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18843
18844 int
18845 main ()
18846 {
18847
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_cxx_try_link "$LINENO"; then :
18853
18854 lt_aix_libpath_sed='
18855 /Import File Strings/,/^$/ {
18856 /^0/ {
18857 s/^0 *\(.*\)$/\1/
18858 p
18859 }
18860 }'
18861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18862 # Check for a 64-bit object if we didn't find anything.
18863 if test -z "$aix_libpath"; then
18864 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18865 fi
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext \
18868 conftest$ac_exeext conftest.$ac_ext
18869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18870
18871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18872
18873 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"
18874 else
18875 if test "$host_cpu" = ia64; then
18876 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18877 allow_undefined_flag_CXX="-z nodefs"
18878 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"
18879 else
18880 # Determine the default libpath from the value encoded in an
18881 # empty executable.
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884
18885 int
18886 main ()
18887 {
18888
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 if ac_fn_cxx_try_link "$LINENO"; then :
18894
18895 lt_aix_libpath_sed='
18896 /Import File Strings/,/^$/ {
18897 /^0/ {
18898 s/^0 *\(.*\)$/\1/
18899 p
18900 }
18901 }'
18902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18903 # Check for a 64-bit object if we didn't find anything.
18904 if test -z "$aix_libpath"; then
18905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18906 fi
18907 fi
18908 rm -f core conftest.err conftest.$ac_objext \
18909 conftest$ac_exeext conftest.$ac_ext
18910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18911
18912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18913 # Warning - without using the other run time loading flags,
18914 # -berok will link without error, but may produce a broken library.
18915 no_undefined_flag_CXX=' ${wl}-bernotok'
18916 allow_undefined_flag_CXX=' ${wl}-berok'
18917 if test "$with_gnu_ld" = yes; then
18918 # We only use this code for GNU lds that support --whole-archive.
18919 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18920 else
18921 # Exported symbols can be pulled into shared objects from archives
18922 whole_archive_flag_spec_CXX='$convenience'
18923 fi
18924 archive_cmds_need_lc_CXX=yes
18925 # This is similar to how AIX traditionally builds its shared
18926 # libraries.
18927 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'
18928 fi
18929 fi
18930 ;;
18931
18932 beos*)
18933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18934 allow_undefined_flag_CXX=unsupported
18935 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18936 # support --undefined. This deserves some investigation. FIXME
18937 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938 else
18939 ld_shlibs_CXX=no
18940 fi
18941 ;;
18942
18943 chorus*)
18944 case $cc_basename in
18945 *)
18946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18948 ;;
18949 esac
18950 ;;
18951
18952 cygwin* | mingw* | pw32* | cegcc*)
18953 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18954 # as there is no search path for DLLs.
18955 hardcode_libdir_flag_spec_CXX='-L$libdir'
18956 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18957 allow_undefined_flag_CXX=unsupported
18958 always_export_symbols_CXX=no
18959 enable_shared_with_static_runtimes_CXX=yes
18960
18961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18962 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'
18963 # If the export-symbols file already is a .def file (1st line
18964 # is EXPORTS), use it as is; otherwise, prepend...
18965 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18966 cp $export_symbols $output_objdir/$soname.def;
18967 else
18968 echo EXPORTS > $output_objdir/$soname.def;
18969 cat $export_symbols >> $output_objdir/$soname.def;
18970 fi~
18971 $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'
18972 else
18973 ld_shlibs_CXX=no
18974 fi
18975 ;;
18976 darwin* | rhapsody*)
18977
18978
18979 archive_cmds_need_lc_CXX=no
18980 hardcode_direct_CXX=no
18981 hardcode_automatic_CXX=yes
18982 hardcode_shlibpath_var_CXX=unsupported
18983 if test "$lt_cv_ld_force_load" = "yes"; then
18984 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\"`'
18985 else
18986 whole_archive_flag_spec_CXX=''
18987 fi
18988 link_all_deplibs_CXX=yes
18989 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18990 case $cc_basename in
18991 ifort*) _lt_dar_can_shared=yes ;;
18992 *) _lt_dar_can_shared=$GCC ;;
18993 esac
18994 if test "$_lt_dar_can_shared" = "yes"; then
18995 output_verbose_link_cmd=func_echo_all
18996 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}"
18997 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18998 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}"
18999 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}"
19000 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19001 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}"
19002 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}"
19003 fi
19004
19005 else
19006 ld_shlibs_CXX=no
19007 fi
19008
19009 ;;
19010
19011 dgux*)
19012 case $cc_basename in
19013 ec++*)
19014 # FIXME: insert proper C++ library support
19015 ld_shlibs_CXX=no
19016 ;;
19017 ghcx*)
19018 # Green Hills C++ Compiler
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 *)
19023 # FIXME: insert proper C++ library support
19024 ld_shlibs_CXX=no
19025 ;;
19026 esac
19027 ;;
19028
19029 freebsd2.*)
19030 # C++ shared libraries reported to be fairly broken before
19031 # switch to ELF
19032 ld_shlibs_CXX=no
19033 ;;
19034
19035 freebsd-elf*)
19036 archive_cmds_need_lc_CXX=no
19037 ;;
19038
19039 freebsd* | dragonfly*)
19040 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19041 # conventions
19042 ld_shlibs_CXX=yes
19043 ;;
19044
19045 gnu*)
19046 ;;
19047
19048 haiku*)
19049 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19050 link_all_deplibs_CXX=yes
19051 ;;
19052
19053 hpux9*)
19054 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19055 hardcode_libdir_separator_CXX=:
19056 export_dynamic_flag_spec_CXX='${wl}-E'
19057 hardcode_direct_CXX=yes
19058 hardcode_minus_L_CXX=yes # Not in the search PATH,
19059 # but as the default
19060 # location of the library.
19061
19062 case $cc_basename in
19063 CC*)
19064 # FIXME: insert proper C++ library support
19065 ld_shlibs_CXX=no
19066 ;;
19067 aCC*)
19068 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'
19069 # Commands to make compiler produce verbose output that lists
19070 # what "hidden" libraries, object files and flags are used when
19071 # linking a shared library.
19072 #
19073 # There doesn't appear to be a way to prevent this compiler from
19074 # explicitly linking system object files so we need to strip them
19075 # from the output so that they don't get included in the library
19076 # dependencies.
19077 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"'
19078 ;;
19079 *)
19080 if test "$GXX" = yes; then
19081 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'
19082 else
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19085 fi
19086 ;;
19087 esac
19088 ;;
19089
19090 hpux10*|hpux11*)
19091 if test $with_gnu_ld = no; then
19092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19093 hardcode_libdir_separator_CXX=:
19094
19095 case $host_cpu in
19096 hppa*64*|ia64*)
19097 ;;
19098 *)
19099 export_dynamic_flag_spec_CXX='${wl}-E'
19100 ;;
19101 esac
19102 fi
19103 case $host_cpu in
19104 hppa*64*|ia64*)
19105 hardcode_direct_CXX=no
19106 hardcode_shlibpath_var_CXX=no
19107 ;;
19108 *)
19109 hardcode_direct_CXX=yes
19110 hardcode_direct_absolute_CXX=yes
19111 hardcode_minus_L_CXX=yes # Not in the search PATH,
19112 # but as the default
19113 # location of the library.
19114 ;;
19115 esac
19116
19117 case $cc_basename in
19118 CC*)
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
19122 aCC*)
19123 case $host_cpu in
19124 hppa*64*)
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 ;;
19127 ia64*)
19128 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 ;;
19130 *)
19131 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 ;;
19133 esac
19134 # Commands to make compiler produce verbose output that lists
19135 # what "hidden" libraries, object files and flags are used when
19136 # linking a shared library.
19137 #
19138 # There doesn't appear to be a way to prevent this compiler from
19139 # explicitly linking system object files so we need to strip them
19140 # from the output so that they don't get included in the library
19141 # dependencies.
19142 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"'
19143 ;;
19144 *)
19145 if test "$GXX" = yes; then
19146 if test $with_gnu_ld = no; then
19147 case $host_cpu in
19148 hppa*64*)
19149 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 ;;
19151 ia64*)
19152 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19153 ;;
19154 *)
19155 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'
19156 ;;
19157 esac
19158 fi
19159 else
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 fi
19163 ;;
19164 esac
19165 ;;
19166
19167 interix[3-9]*)
19168 hardcode_direct_CXX=no
19169 hardcode_shlibpath_var_CXX=no
19170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19171 export_dynamic_flag_spec_CXX='${wl}-E'
19172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19173 # Instead, shared libraries are loaded at an image base (0x10000000 by
19174 # default) and relocated if they conflict, which is a slow very memory
19175 # consuming and fragmenting process. To avoid this, we pick a random,
19176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19178 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'
19179 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'
19180 ;;
19181 irix5* | irix6*)
19182 case $cc_basename in
19183 CC*)
19184 # SGI C++
19185 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'
19186
19187 # Archives containing C++ object files must be created using
19188 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19189 # necessary to make sure instantiated templates are included
19190 # in the archive.
19191 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19192 ;;
19193 *)
19194 if test "$GXX" = yes; then
19195 if test "$with_gnu_ld" = no; then
19196 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'
19197 else
19198 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'
19199 fi
19200 fi
19201 link_all_deplibs_CXX=yes
19202 ;;
19203 esac
19204 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19205 hardcode_libdir_separator_CXX=:
19206 inherit_rpath_CXX=yes
19207 ;;
19208
19209 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19210 case $cc_basename in
19211 KCC*)
19212 # Kuck and Associates, Inc. (KAI) C++ Compiler
19213
19214 # KCC will only create a shared library if the output file
19215 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19216 # to its proper name (with version) after linking.
19217 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'
19218 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'
19219 # Commands to make compiler produce verbose output that lists
19220 # what "hidden" libraries, object files and flags are used when
19221 # linking a shared library.
19222 #
19223 # There doesn't appear to be a way to prevent this compiler from
19224 # explicitly linking system object files so we need to strip them
19225 # from the output so that they don't get included in the library
19226 # dependencies.
19227 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"'
19228
19229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19231
19232 # Archives containing C++ object files must be created using
19233 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19234 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19235 ;;
19236 icpc* | ecpc* )
19237 # Intel C++
19238 with_gnu_ld=yes
19239 # version 8.0 and above of icpc choke on multiply defined symbols
19240 # if we add $predep_objects and $postdep_objects, however 7.1 and
19241 # earlier do not add the objects themselves.
19242 case `$CC -V 2>&1` in
19243 *"Version 7."*)
19244 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245 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'
19246 ;;
19247 *) # Version 8.0 or newer
19248 tmp_idyn=
19249 case $host_cpu in
19250 ia64*) tmp_idyn=' -i_dynamic';;
19251 esac
19252 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19253 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'
19254 ;;
19255 esac
19256 archive_cmds_need_lc_CXX=no
19257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19259 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19260 ;;
19261 pgCC* | pgcpp*)
19262 # Portland Group C++ compiler
19263 case `$CC -V` in
19264 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19265 prelink_cmds_CXX='tpldir=Template.dir~
19266 rm -rf $tpldir~
19267 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19268 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19269 old_archive_cmds_CXX='tpldir=Template.dir~
19270 rm -rf $tpldir~
19271 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19272 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19273 $RANLIB $oldlib'
19274 archive_cmds_CXX='tpldir=Template.dir~
19275 rm -rf $tpldir~
19276 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19277 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19278 archive_expsym_cmds_CXX='tpldir=Template.dir~
19279 rm -rf $tpldir~
19280 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19281 $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'
19282 ;;
19283 *) # Version 6 and above use weak symbols
19284 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19285 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'
19286 ;;
19287 esac
19288
19289 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19291 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'
19292 ;;
19293 cxx*)
19294 # Compaq C++
19295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296 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'
19297
19298 runpath_var=LD_RUN_PATH
19299 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19300 hardcode_libdir_separator_CXX=:
19301
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 -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'
19311 ;;
19312 xl* | mpixl* | bgxl*)
19313 # IBM XL 8.0 on PPC, with GNU ld
19314 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19316 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 if test "x$supports_anon_versioning" = xyes; then
19318 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19320 echo "local: *; };" >> $output_objdir/$libname.ver~
19321 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19322 fi
19323 ;;
19324 *)
19325 case `$CC -V 2>&1 | sed 5q` in
19326 *Sun\ C*)
19327 # Sun C++ 5.9
19328 no_undefined_flag_CXX=' -zdefs'
19329 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19330 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'
19331 hardcode_libdir_flag_spec_CXX='-R$libdir'
19332 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'
19333 compiler_needs_object_CXX=yes
19334
19335 # Not sure whether something based on
19336 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19337 # would be better.
19338 output_verbose_link_cmd='func_echo_all'
19339
19340 # Archives containing C++ object files must be created using
19341 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19342 # necessary to make sure instantiated templates are included
19343 # in the archive.
19344 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19345 ;;
19346 esac
19347 ;;
19348 esac
19349 ;;
19350
19351 lynxos*)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355
19356 m88k*)
19357 # FIXME: insert proper C++ library support
19358 ld_shlibs_CXX=no
19359 ;;
19360
19361 mvs*)
19362 case $cc_basename in
19363 cxx*)
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19366 ;;
19367 *)
19368 # FIXME: insert proper C++ library support
19369 ld_shlibs_CXX=no
19370 ;;
19371 esac
19372 ;;
19373
19374 netbsd*)
19375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19377 wlarc=
19378 hardcode_libdir_flag_spec_CXX='-R$libdir'
19379 hardcode_direct_CXX=yes
19380 hardcode_shlibpath_var_CXX=no
19381 fi
19382 # Workaround some broken pre-1.5 toolchains
19383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19384 ;;
19385
19386 *nto* | *qnx*)
19387 ld_shlibs_CXX=yes
19388 ;;
19389
19390 openbsd2*)
19391 # C++ shared libraries are fairly broken
19392 ld_shlibs_CXX=no
19393 ;;
19394
19395 openbsd*)
19396 if test -f /usr/libexec/ld.so; then
19397 hardcode_direct_CXX=yes
19398 hardcode_shlibpath_var_CXX=no
19399 hardcode_direct_absolute_CXX=yes
19400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19403 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19404 export_dynamic_flag_spec_CXX='${wl}-E'
19405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19406 fi
19407 output_verbose_link_cmd=func_echo_all
19408 else
19409 ld_shlibs_CXX=no
19410 fi
19411 ;;
19412
19413 osf3* | osf4* | osf5*)
19414 case $cc_basename in
19415 KCC*)
19416 # Kuck and Associates, Inc. (KAI) C++ Compiler
19417
19418 # KCC will only create a shared library if the output file
19419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19420 # to its proper name (with version) after linking.
19421 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'
19422
19423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19424 hardcode_libdir_separator_CXX=:
19425
19426 # Archives containing C++ object files must be created using
19427 # the KAI C++ compiler.
19428 case $host in
19429 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19430 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19431 esac
19432 ;;
19433 RCC*)
19434 # Rational C++ 2.4.1
19435 # FIXME: insert proper C++ library support
19436 ld_shlibs_CXX=no
19437 ;;
19438 cxx*)
19439 case $host in
19440 osf3*)
19441 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19442 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'
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 ;;
19445 *)
19446 allow_undefined_flag_CXX=' -expect_unresolved \*'
19447 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'
19448 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19449 echo "-hidden">> $lib.exp~
19450 $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~
19451 $RM $lib.exp'
19452 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19453 ;;
19454 esac
19455
19456 hardcode_libdir_separator_CXX=:
19457
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 #
19462 # There doesn't appear to be a way to prevent this compiler from
19463 # explicitly linking system object files so we need to strip them
19464 # from the output so that they don't get included in the library
19465 # dependencies.
19466 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"'
19467 ;;
19468 *)
19469 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19471 case $host in
19472 osf3*)
19473 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'
19474 ;;
19475 *)
19476 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'
19477 ;;
19478 esac
19479
19480 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19481 hardcode_libdir_separator_CXX=:
19482
19483 # Commands to make compiler produce verbose output that lists
19484 # what "hidden" libraries, object files and flags are used when
19485 # linking a shared library.
19486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19487
19488 else
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19491 fi
19492 ;;
19493 esac
19494 ;;
19495
19496 psos*)
19497 # FIXME: insert proper C++ library support
19498 ld_shlibs_CXX=no
19499 ;;
19500
19501 sunos4*)
19502 case $cc_basename in
19503 CC*)
19504 # Sun C++ 4.x
19505 # FIXME: insert proper C++ library support
19506 ld_shlibs_CXX=no
19507 ;;
19508 lcc*)
19509 # Lucid
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19512 ;;
19513 *)
19514 # FIXME: insert proper C++ library support
19515 ld_shlibs_CXX=no
19516 ;;
19517 esac
19518 ;;
19519
19520 solaris*)
19521 case $cc_basename in
19522 CC*)
19523 # Sun C++ 4.2, 5.x and Centerline C++
19524 archive_cmds_need_lc_CXX=yes
19525 no_undefined_flag_CXX=' -zdefs'
19526 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19527 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19528 $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'
19529
19530 hardcode_libdir_flag_spec_CXX='-R$libdir'
19531 hardcode_shlibpath_var_CXX=no
19532 case $host_os in
19533 solaris2.[0-5] | solaris2.[0-5].*) ;;
19534 *)
19535 # The compiler driver will combine and reorder linker options,
19536 # but understands `-z linker_flag'.
19537 # Supported since Solaris 2.6 (maybe 2.5.1?)
19538 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19539 ;;
19540 esac
19541 link_all_deplibs_CXX=yes
19542
19543 output_verbose_link_cmd='func_echo_all'
19544
19545 # Archives containing C++ object files must be created using
19546 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19547 # necessary to make sure instantiated templates are included
19548 # in the archive.
19549 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19550 ;;
19551 gcx*)
19552 # Green Hills C++ Compiler
19553 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19554
19555 # The C++ compiler must be used to create the archive.
19556 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19557 ;;
19558 *)
19559 # GNU C++ compiler with Solaris linker
19560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19561 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19562 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19563 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19564 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19565 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19566
19567 # Commands to make compiler produce verbose output that lists
19568 # what "hidden" libraries, object files and flags are used when
19569 # linking a shared library.
19570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19571 else
19572 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19573 # platform.
19574 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19575 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19576 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19577
19578 # Commands to make compiler produce verbose output that lists
19579 # what "hidden" libraries, object files and flags are used when
19580 # linking a shared library.
19581 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19582 fi
19583
19584 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19585 case $host_os in
19586 solaris2.[0-5] | solaris2.[0-5].*) ;;
19587 *)
19588 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19589 ;;
19590 esac
19591 fi
19592 ;;
19593 esac
19594 ;;
19595
19596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19597 no_undefined_flag_CXX='${wl}-z,text'
19598 archive_cmds_need_lc_CXX=no
19599 hardcode_shlibpath_var_CXX=no
19600 runpath_var='LD_RUN_PATH'
19601
19602 case $cc_basename in
19603 CC*)
19604 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19605 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19606 ;;
19607 *)
19608 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19609 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19610 ;;
19611 esac
19612 ;;
19613
19614 sysv5* | sco3.2v5* | sco5v6*)
19615 # Note: We can NOT use -z defs as we might desire, because we do not
19616 # link with -lc, and that would cause any symbols used from libc to
19617 # always be unresolved, which means just about no library would
19618 # ever link correctly. If we're not using GNU ld we use -z text
19619 # though, which does catch some bad symbols but isn't as heavy-handed
19620 # as -z defs.
19621 no_undefined_flag_CXX='${wl}-z,text'
19622 allow_undefined_flag_CXX='${wl}-z,nodefs'
19623 archive_cmds_need_lc_CXX=no
19624 hardcode_shlibpath_var_CXX=no
19625 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19626 hardcode_libdir_separator_CXX=':'
19627 link_all_deplibs_CXX=yes
19628 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19629 runpath_var='LD_RUN_PATH'
19630
19631 case $cc_basename in
19632 CC*)
19633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19635 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19636 '"$old_archive_cmds_CXX"
19637 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19638 '"$reload_cmds_CXX"
19639 ;;
19640 *)
19641 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19642 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19643 ;;
19644 esac
19645 ;;
19646
19647 tandem*)
19648 case $cc_basename in
19649 NCC*)
19650 # NonStop-UX NCC 3.20
19651 # FIXME: insert proper C++ library support
19652 ld_shlibs_CXX=no
19653 ;;
19654 *)
19655 # FIXME: insert proper C++ library support
19656 ld_shlibs_CXX=no
19657 ;;
19658 esac
19659 ;;
19660
19661 vxworks*)
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19664 ;;
19665
19666 *)
19667 # FIXME: insert proper C++ library support
19668 ld_shlibs_CXX=no
19669 ;;
19670 esac
19671
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19673 $as_echo "$ld_shlibs_CXX" >&6; }
19674 test "$ld_shlibs_CXX" = no && can_build_shared=no
19675
19676 GCC_CXX="$GXX"
19677 LD_CXX="$LD"
19678
19679 ## CAVEAT EMPTOR:
19680 ## There is no encapsulation within the following macros, do not change
19681 ## the running order or otherwise move them around unless you know exactly
19682 ## what you are doing...
19683 # Dependencies to place before and after the object being linked:
19684 predep_objects_CXX=
19685 postdep_objects_CXX=
19686 predeps_CXX=
19687 postdeps_CXX=
19688 compiler_lib_search_path_CXX=
19689
19690 cat > conftest.$ac_ext <<_LT_EOF
19691 class Foo
19692 {
19693 public:
19694 Foo (void) { a = 0; }
19695 private:
19696 int a;
19697 };
19698 _LT_EOF
19699
19700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19701 (eval $ac_compile) 2>&5
19702 ac_status=$?
19703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19704 test $ac_status = 0; }; then
19705 # Parse the compiler output and extract the necessary
19706 # objects, libraries and library flags.
19707
19708 # Sentinel used to keep track of whether or not we are before
19709 # the conftest object file.
19710 pre_test_object_deps_done=no
19711
19712 for p in `eval "$output_verbose_link_cmd"`; do
19713 case $p in
19714
19715 -L* | -R* | -l*)
19716 # Some compilers place space between "-{L,R}" and the path.
19717 # Remove the space.
19718 if test $p = "-L" ||
19719 test $p = "-R"; then
19720 prev=$p
19721 continue
19722 else
19723 prev=
19724 fi
19725
19726 if test "$pre_test_object_deps_done" = no; then
19727 case $p in
19728 -L* | -R*)
19729 # Internal compiler library paths should come after those
19730 # provided the user. The postdeps already come after the
19731 # user supplied libs so there is no need to process them.
19732 if test -z "$compiler_lib_search_path_CXX"; then
19733 compiler_lib_search_path_CXX="${prev}${p}"
19734 else
19735 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19736 fi
19737 ;;
19738 # The "-l" case would never come before the object being
19739 # linked, so don't bother handling this case.
19740 esac
19741 else
19742 if test -z "$postdeps_CXX"; then
19743 postdeps_CXX="${prev}${p}"
19744 else
19745 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19746 fi
19747 fi
19748 ;;
19749
19750 *.$objext)
19751 # This assumes that the test object file only shows up
19752 # once in the compiler output.
19753 if test "$p" = "conftest.$objext"; then
19754 pre_test_object_deps_done=yes
19755 continue
19756 fi
19757
19758 if test "$pre_test_object_deps_done" = no; then
19759 if test -z "$predep_objects_CXX"; then
19760 predep_objects_CXX="$p"
19761 else
19762 predep_objects_CXX="$predep_objects_CXX $p"
19763 fi
19764 else
19765 if test -z "$postdep_objects_CXX"; then
19766 postdep_objects_CXX="$p"
19767 else
19768 postdep_objects_CXX="$postdep_objects_CXX $p"
19769 fi
19770 fi
19771 ;;
19772
19773 *) ;; # Ignore the rest.
19774
19775 esac
19776 done
19777
19778 # Clean up.
19779 rm -f a.out a.exe
19780 else
19781 echo "libtool.m4: error: problem compiling CXX test program"
19782 fi
19783
19784 $RM -f confest.$objext
19785
19786 # PORTME: override above test on systems where it is broken
19787 case $host_os in
19788 interix[3-9]*)
19789 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19790 # hack all around it, let's just trust "g++" to DTRT.
19791 predep_objects_CXX=
19792 postdep_objects_CXX=
19793 postdeps_CXX=
19794 ;;
19795
19796 linux*)
19797 case `$CC -V 2>&1 | sed 5q` in
19798 *Sun\ C*)
19799 # Sun C++ 5.9
19800
19801 # The more standards-conforming stlport4 library is
19802 # incompatible with the Cstd library. Avoid specifying
19803 # it if it's in CXXFLAGS. Ignore libCrun as
19804 # -library=stlport4 depends on it.
19805 case " $CXX $CXXFLAGS " in
19806 *" -library=stlport4 "*)
19807 solaris_use_stlport4=yes
19808 ;;
19809 esac
19810
19811 if test "$solaris_use_stlport4" != yes; then
19812 postdeps_CXX='-library=Cstd -library=Crun'
19813 fi
19814 ;;
19815 esac
19816 ;;
19817
19818 solaris*)
19819 case $cc_basename in
19820 CC*)
19821 # The more standards-conforming stlport4 library is
19822 # incompatible with the Cstd library. Avoid specifying
19823 # it if it's in CXXFLAGS. Ignore libCrun as
19824 # -library=stlport4 depends on it.
19825 case " $CXX $CXXFLAGS " in
19826 *" -library=stlport4 "*)
19827 solaris_use_stlport4=yes
19828 ;;
19829 esac
19830
19831 # Adding this requires a known-good setup of shared libraries for
19832 # Sun compiler versions before 5.6, else PIC objects from an old
19833 # archive will be linked into the output, leading to subtle bugs.
19834 if test "$solaris_use_stlport4" != yes; then
19835 postdeps_CXX='-library=Cstd -library=Crun'
19836 fi
19837 ;;
19838 esac
19839 ;;
19840 esac
19841
19842
19843 case " $postdeps_CXX " in
19844 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19845 esac
19846 compiler_lib_search_dirs_CXX=
19847 if test -n "${compiler_lib_search_path_CXX}"; then
19848 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19849 fi
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881 lt_prog_compiler_wl_CXX=
19882 lt_prog_compiler_pic_CXX=
19883 lt_prog_compiler_static_CXX=
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19886 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19887
19888 # C++ specific cases for pic, static, wl, etc.
19889 if test "$GXX" = yes; then
19890 lt_prog_compiler_wl_CXX='-Wl,'
19891 lt_prog_compiler_static_CXX='-static'
19892
19893 case $host_os in
19894 aix*)
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX='-Bstatic'
19899 fi
19900 lt_prog_compiler_pic_CXX='-fPIC'
19901 ;;
19902
19903 amigaos*)
19904 case $host_cpu in
19905 powerpc)
19906 # see comment about AmigaOS4 .so support
19907 lt_prog_compiler_pic_CXX='-fPIC'
19908 ;;
19909 m68k)
19910 # FIXME: we need at least 68020 code to build shared libraries, but
19911 # adding the `-m68020' flag to GCC prevents building anything better,
19912 # like `-m68040'.
19913 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19914 ;;
19915 esac
19916 ;;
19917
19918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19919 # PIC is the default for these OSes.
19920 ;;
19921 mingw* | cygwin* | os2* | pw32* | cegcc*)
19922 # This hack is so that the source file can tell whether it is being
19923 # built for inclusion in a dll (and should export symbols for example).
19924 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19925 # (--disable-auto-import) libraries
19926 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19927 ;;
19928 darwin* | rhapsody*)
19929 # PIC is the default on this platform
19930 # Common symbols not allowed in MH_DYLIB files
19931 lt_prog_compiler_pic_CXX='-fno-common'
19932 ;;
19933 *djgpp*)
19934 # DJGPP does not support shared libraries at all
19935 lt_prog_compiler_pic_CXX=
19936 ;;
19937 haiku*)
19938 # PIC is the default for Haiku.
19939 # The "-static" flag exists, but is broken.
19940 lt_prog_compiler_static_CXX=
19941 ;;
19942 interix[3-9]*)
19943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19944 # Instead, we relocate shared libraries at runtime.
19945 ;;
19946 sysv4*MP*)
19947 if test -d /usr/nec; then
19948 lt_prog_compiler_pic_CXX=-Kconform_pic
19949 fi
19950 ;;
19951 hpux*)
19952 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19953 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19954 # sets the default TLS model and affects inlining.
19955 case $host_cpu in
19956 hppa*64*)
19957 ;;
19958 *)
19959 lt_prog_compiler_pic_CXX='-fPIC'
19960 ;;
19961 esac
19962 ;;
19963 *qnx* | *nto*)
19964 # QNX uses GNU C++, but need to define -shared option too, otherwise
19965 # it will coredump.
19966 lt_prog_compiler_pic_CXX='-fPIC -shared'
19967 ;;
19968 *)
19969 lt_prog_compiler_pic_CXX='-fPIC'
19970 ;;
19971 esac
19972 else
19973 case $host_os in
19974 aix[4-9]*)
19975 # All AIX code is PIC.
19976 if test "$host_cpu" = ia64; then
19977 # AIX 5 now supports IA64 processor
19978 lt_prog_compiler_static_CXX='-Bstatic'
19979 else
19980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19981 fi
19982 ;;
19983 chorus*)
19984 case $cc_basename in
19985 cxch68*)
19986 # Green Hills C++ Compiler
19987 # _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"
19988 ;;
19989 esac
19990 ;;
19991 dgux*)
19992 case $cc_basename in
19993 ec++*)
19994 lt_prog_compiler_pic_CXX='-KPIC'
19995 ;;
19996 ghcx*)
19997 # Green Hills C++ Compiler
19998 lt_prog_compiler_pic_CXX='-pic'
19999 ;;
20000 *)
20001 ;;
20002 esac
20003 ;;
20004 freebsd* | dragonfly*)
20005 # FreeBSD uses GNU C++
20006 ;;
20007 hpux9* | hpux10* | hpux11*)
20008 case $cc_basename in
20009 CC*)
20010 lt_prog_compiler_wl_CXX='-Wl,'
20011 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20012 if test "$host_cpu" != ia64; then
20013 lt_prog_compiler_pic_CXX='+Z'
20014 fi
20015 ;;
20016 aCC*)
20017 lt_prog_compiler_wl_CXX='-Wl,'
20018 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20019 case $host_cpu in
20020 hppa*64*|ia64*)
20021 # +Z the default
20022 ;;
20023 *)
20024 lt_prog_compiler_pic_CXX='+Z'
20025 ;;
20026 esac
20027 ;;
20028 *)
20029 ;;
20030 esac
20031 ;;
20032 interix*)
20033 # This is c89, which is MS Visual C++ (no shared libs)
20034 # Anyone wants to do a port?
20035 ;;
20036 irix5* | irix6* | nonstopux*)
20037 case $cc_basename in
20038 CC*)
20039 lt_prog_compiler_wl_CXX='-Wl,'
20040 lt_prog_compiler_static_CXX='-non_shared'
20041 # CC pic flag -KPIC is the default.
20042 ;;
20043 *)
20044 ;;
20045 esac
20046 ;;
20047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20048 case $cc_basename in
20049 KCC*)
20050 # KAI C++ Compiler
20051 lt_prog_compiler_wl_CXX='--backend -Wl,'
20052 lt_prog_compiler_pic_CXX='-fPIC'
20053 ;;
20054 ecpc* )
20055 # old Intel C++ for x86_64 which still supported -KPIC.
20056 lt_prog_compiler_wl_CXX='-Wl,'
20057 lt_prog_compiler_pic_CXX='-KPIC'
20058 lt_prog_compiler_static_CXX='-static'
20059 ;;
20060 icpc* )
20061 # Intel C++, used to be incompatible with GCC.
20062 # ICC 10 doesn't accept -KPIC any more.
20063 lt_prog_compiler_wl_CXX='-Wl,'
20064 lt_prog_compiler_pic_CXX='-fPIC'
20065 lt_prog_compiler_static_CXX='-static'
20066 ;;
20067 pgCC* | pgcpp*)
20068 # Portland Group C++ compiler
20069 lt_prog_compiler_wl_CXX='-Wl,'
20070 lt_prog_compiler_pic_CXX='-fpic'
20071 lt_prog_compiler_static_CXX='-Bstatic'
20072 ;;
20073 cxx*)
20074 # Compaq C++
20075 # Make sure the PIC flag is empty. It appears that all Alpha
20076 # Linux and Compaq Tru64 Unix objects are PIC.
20077 lt_prog_compiler_pic_CXX=
20078 lt_prog_compiler_static_CXX='-non_shared'
20079 ;;
20080 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20081 # IBM XL 8.0, 9.0 on PPC and BlueGene
20082 lt_prog_compiler_wl_CXX='-Wl,'
20083 lt_prog_compiler_pic_CXX='-qpic'
20084 lt_prog_compiler_static_CXX='-qstaticlink'
20085 ;;
20086 *)
20087 case `$CC -V 2>&1 | sed 5q` in
20088 *Sun\ C*)
20089 # Sun C++ 5.9
20090 lt_prog_compiler_pic_CXX='-KPIC'
20091 lt_prog_compiler_static_CXX='-Bstatic'
20092 lt_prog_compiler_wl_CXX='-Qoption ld '
20093 ;;
20094 esac
20095 ;;
20096 esac
20097 ;;
20098 lynxos*)
20099 ;;
20100 m88k*)
20101 ;;
20102 mvs*)
20103 case $cc_basename in
20104 cxx*)
20105 lt_prog_compiler_pic_CXX='-W c,exportall'
20106 ;;
20107 *)
20108 ;;
20109 esac
20110 ;;
20111 netbsd*)
20112 ;;
20113 *qnx* | *nto*)
20114 # QNX uses GNU C++, but need to define -shared option too, otherwise
20115 # it will coredump.
20116 lt_prog_compiler_pic_CXX='-fPIC -shared'
20117 ;;
20118 osf3* | osf4* | osf5*)
20119 case $cc_basename in
20120 KCC*)
20121 lt_prog_compiler_wl_CXX='--backend -Wl,'
20122 ;;
20123 RCC*)
20124 # Rational C++ 2.4.1
20125 lt_prog_compiler_pic_CXX='-pic'
20126 ;;
20127 cxx*)
20128 # Digital/Compaq C++
20129 lt_prog_compiler_wl_CXX='-Wl,'
20130 # Make sure the PIC flag is empty. It appears that all Alpha
20131 # Linux and Compaq Tru64 Unix objects are PIC.
20132 lt_prog_compiler_pic_CXX=
20133 lt_prog_compiler_static_CXX='-non_shared'
20134 ;;
20135 *)
20136 ;;
20137 esac
20138 ;;
20139 psos*)
20140 ;;
20141 solaris*)
20142 case $cc_basename in
20143 CC*)
20144 # Sun C++ 4.2, 5.x and Centerline C++
20145 lt_prog_compiler_pic_CXX='-KPIC'
20146 lt_prog_compiler_static_CXX='-Bstatic'
20147 lt_prog_compiler_wl_CXX='-Qoption ld '
20148 ;;
20149 gcx*)
20150 # Green Hills C++ Compiler
20151 lt_prog_compiler_pic_CXX='-PIC'
20152 ;;
20153 *)
20154 ;;
20155 esac
20156 ;;
20157 sunos4*)
20158 case $cc_basename in
20159 CC*)
20160 # Sun C++ 4.x
20161 lt_prog_compiler_pic_CXX='-pic'
20162 lt_prog_compiler_static_CXX='-Bstatic'
20163 ;;
20164 lcc*)
20165 # Lucid
20166 lt_prog_compiler_pic_CXX='-pic'
20167 ;;
20168 *)
20169 ;;
20170 esac
20171 ;;
20172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20173 case $cc_basename in
20174 CC*)
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 lt_prog_compiler_pic_CXX='-KPIC'
20177 lt_prog_compiler_static_CXX='-Bstatic'
20178 ;;
20179 esac
20180 ;;
20181 tandem*)
20182 case $cc_basename in
20183 NCC*)
20184 # NonStop-UX NCC 3.20
20185 lt_prog_compiler_pic_CXX='-KPIC'
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
20191 vxworks*)
20192 ;;
20193 *)
20194 lt_prog_compiler_can_build_shared_CXX=no
20195 ;;
20196 esac
20197 fi
20198
20199 case $host_os in
20200 # For platforms which do not support PIC, -DPIC is meaningless:
20201 *djgpp*)
20202 lt_prog_compiler_pic_CXX=
20203 ;;
20204 *)
20205 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20206 ;;
20207 esac
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20209 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20210
20211
20212
20213 #
20214 # Check to make sure the PIC flag actually works.
20215 #
20216 if test -n "$lt_prog_compiler_pic_CXX"; then
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20218 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20219 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20220 $as_echo_n "(cached) " >&6
20221 else
20222 lt_cv_prog_compiler_pic_works_CXX=no
20223 ac_outfile=conftest.$ac_objext
20224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20225 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20226 # Insert the option either (1) after the last *FLAGS variable, or
20227 # (2) before a word containing "conftest.", or (3) at the end.
20228 # Note that $ac_compile itself does not contain backslashes and begins
20229 # with a dollar sign (not a hyphen), so the echo should work correctly.
20230 # The option is referenced via a variable to avoid confusing sed.
20231 lt_compile=`echo "$ac_compile" | $SED \
20232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20234 -e 's:$: $lt_compiler_flag:'`
20235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20236 (eval "$lt_compile" 2>conftest.err)
20237 ac_status=$?
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 if (exit $ac_status) && test -s "$ac_outfile"; then
20241 # The compiler can only warn and ignore the option if not recognized
20242 # So say no if there are warnings other than the usual output.
20243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20246 lt_cv_prog_compiler_pic_works_CXX=yes
20247 fi
20248 fi
20249 $RM conftest*
20250
20251 fi
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20253 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20254
20255 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20256 case $lt_prog_compiler_pic_CXX in
20257 "" | " "*) ;;
20258 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20259 esac
20260 else
20261 lt_prog_compiler_pic_CXX=
20262 lt_prog_compiler_can_build_shared_CXX=no
20263 fi
20264
20265 fi
20266
20267
20268
20269 #
20270 # Check to make sure the static flag actually works.
20271 #
20272 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20274 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20275 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20276 $as_echo_n "(cached) " >&6
20277 else
20278 lt_cv_prog_compiler_static_works_CXX=no
20279 save_LDFLAGS="$LDFLAGS"
20280 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20283 # The linker can only warn and ignore the option if not recognized
20284 # So say no if there are warnings
20285 if test -s conftest.err; then
20286 # Append any errors to the config.log.
20287 cat conftest.err 1>&5
20288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20290 if diff conftest.exp conftest.er2 >/dev/null; then
20291 lt_cv_prog_compiler_static_works_CXX=yes
20292 fi
20293 else
20294 lt_cv_prog_compiler_static_works_CXX=yes
20295 fi
20296 fi
20297 $RM -r conftest*
20298 LDFLAGS="$save_LDFLAGS"
20299
20300 fi
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20302 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20303
20304 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20305 :
20306 else
20307 lt_prog_compiler_static_CXX=
20308 fi
20309
20310
20311
20312
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20315 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20316 $as_echo_n "(cached) " >&6
20317 else
20318 lt_cv_prog_compiler_c_o_CXX=no
20319 $RM -r conftest 2>/dev/null
20320 mkdir conftest
20321 cd conftest
20322 mkdir out
20323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20324
20325 lt_compiler_flag="-o out/conftest2.$ac_objext"
20326 # Insert the option either (1) after the last *FLAGS variable, or
20327 # (2) before a word containing "conftest.", or (3) at the end.
20328 # Note that $ac_compile itself does not contain backslashes and begins
20329 # with a dollar sign (not a hyphen), so the echo should work correctly.
20330 lt_compile=`echo "$ac_compile" | $SED \
20331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20333 -e 's:$: $lt_compiler_flag:'`
20334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20335 (eval "$lt_compile" 2>out/conftest.err)
20336 ac_status=$?
20337 cat out/conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20340 then
20341 # The compiler can only warn and ignore the option if not recognized
20342 # So say no if there are warnings
20343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20346 lt_cv_prog_compiler_c_o_CXX=yes
20347 fi
20348 fi
20349 chmod u+w . 2>&5
20350 $RM conftest*
20351 # SGI C++ compiler will create directory out/ii_files/ for
20352 # template instantiation
20353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20354 $RM out/* && rmdir out
20355 cd ..
20356 $RM -r conftest
20357 $RM conftest*
20358
20359 fi
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20361 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20362
20363
20364
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20367 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20368 $as_echo_n "(cached) " >&6
20369 else
20370 lt_cv_prog_compiler_c_o_CXX=no
20371 $RM -r conftest 2>/dev/null
20372 mkdir conftest
20373 cd conftest
20374 mkdir out
20375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20376
20377 lt_compiler_flag="-o out/conftest2.$ac_objext"
20378 # Insert the option either (1) after the last *FLAGS variable, or
20379 # (2) before a word containing "conftest.", or (3) at the end.
20380 # Note that $ac_compile itself does not contain backslashes and begins
20381 # with a dollar sign (not a hyphen), so the echo should work correctly.
20382 lt_compile=`echo "$ac_compile" | $SED \
20383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20385 -e 's:$: $lt_compiler_flag:'`
20386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20387 (eval "$lt_compile" 2>out/conftest.err)
20388 ac_status=$?
20389 cat out/conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20392 then
20393 # The compiler can only warn and ignore the option if not recognized
20394 # So say no if there are warnings
20395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20398 lt_cv_prog_compiler_c_o_CXX=yes
20399 fi
20400 fi
20401 chmod u+w . 2>&5
20402 $RM conftest*
20403 # SGI C++ compiler will create directory out/ii_files/ for
20404 # template instantiation
20405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20406 $RM out/* && rmdir out
20407 cd ..
20408 $RM -r conftest
20409 $RM conftest*
20410
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20413 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20414
20415
20416
20417
20418 hard_links="nottested"
20419 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20420 # do not overwrite the value of need_locks provided by the user
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20422 $as_echo_n "checking if we can lock with hard links... " >&6; }
20423 hard_links=yes
20424 $RM conftest*
20425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20426 touch conftest.a
20427 ln conftest.a conftest.b 2>&5 || hard_links=no
20428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20430 $as_echo "$hard_links" >&6; }
20431 if test "$hard_links" = no; then
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20433 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20434 need_locks=warn
20435 fi
20436 else
20437 need_locks=no
20438 fi
20439
20440
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20443 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20444
20445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20446 case $host_os in
20447 aix[4-9]*)
20448 # If we're using GNU nm, then we don't want the "-C" option.
20449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20450 # Also, AIX nm treats weak defined symbols like other global defined
20451 # symbols, whereas GNU nm marks them as "W".
20452 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20453 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'
20454 else
20455 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20456 fi
20457 ;;
20458 pw32*)
20459 export_symbols_cmds_CXX="$ltdll_cmds"
20460 ;;
20461 cygwin* | mingw* | cegcc*)
20462 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'
20463 ;;
20464 *)
20465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20466 ;;
20467 esac
20468 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20469
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20471 $as_echo "$ld_shlibs_CXX" >&6; }
20472 test "$ld_shlibs_CXX" = no && can_build_shared=no
20473
20474 with_gnu_ld_CXX=$with_gnu_ld
20475
20476
20477
20478
20479
20480
20481 #
20482 # Do we need to explicitly link libc?
20483 #
20484 case "x$archive_cmds_need_lc_CXX" in
20485 x|xyes)
20486 # Assume -lc should be added
20487 archive_cmds_need_lc_CXX=yes
20488
20489 if test "$enable_shared" = yes && test "$GCC" = yes; then
20490 case $archive_cmds_CXX in
20491 *'~'*)
20492 # FIXME: we may have to deal with multi-command sequences.
20493 ;;
20494 '$CC '*)
20495 # Test whether the compiler implicitly links with -lc since on some
20496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20497 # to ld, don't add -lc before -lgcc.
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20500 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20501 $as_echo_n "(cached) " >&6
20502 else
20503 $RM conftest*
20504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20505
20506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20507 (eval $ac_compile) 2>&5
20508 ac_status=$?
20509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20510 test $ac_status = 0; } 2>conftest.err; then
20511 soname=conftest
20512 lib=conftest
20513 libobjs=conftest.$ac_objext
20514 deplibs=
20515 wl=$lt_prog_compiler_wl_CXX
20516 pic_flag=$lt_prog_compiler_pic_CXX
20517 compiler_flags=-v
20518 linker_flags=-v
20519 verstring=
20520 output_objdir=.
20521 libname=conftest
20522 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20523 allow_undefined_flag_CXX=
20524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20525 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20526 ac_status=$?
20527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20528 test $ac_status = 0; }
20529 then
20530 lt_cv_archive_cmds_need_lc_CXX=no
20531 else
20532 lt_cv_archive_cmds_need_lc_CXX=yes
20533 fi
20534 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20535 else
20536 cat conftest.err 1>&5
20537 fi
20538 $RM conftest*
20539
20540 fi
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20542 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20543 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20544 ;;
20545 esac
20546 fi
20547 ;;
20548 esac
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20615
20616 library_names_spec=
20617 libname_spec='lib$name'
20618 soname_spec=
20619 shrext_cmds=".so"
20620 postinstall_cmds=
20621 postuninstall_cmds=
20622 finish_cmds=
20623 finish_eval=
20624 shlibpath_var=
20625 shlibpath_overrides_runpath=unknown
20626 version_type=none
20627 dynamic_linker="$host_os ld.so"
20628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20629 need_lib_prefix=unknown
20630 hardcode_into_libs=no
20631
20632 # when you set need_version to no, make sure it does not cause -set_version
20633 # flags to be left without arguments
20634 need_version=unknown
20635
20636 case $host_os in
20637 aix3*)
20638 version_type=linux
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20640 shlibpath_var=LIBPATH
20641
20642 # AIX 3 has no versioning support, so we append a major version to the name.
20643 soname_spec='${libname}${release}${shared_ext}$major'
20644 ;;
20645
20646 aix[4-9]*)
20647 version_type=linux
20648 need_lib_prefix=no
20649 need_version=no
20650 hardcode_into_libs=yes
20651 if test "$host_cpu" = ia64; then
20652 # AIX 5 supports IA64
20653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 else
20656 # With GCC up to 2.95.x, collect2 would create an import file
20657 # for dependence libraries. The import file would start with
20658 # the line `#! .'. This would cause the generated library to
20659 # depend on `.', always an invalid library. This was fixed in
20660 # development snapshots of GCC prior to 3.0.
20661 case $host_os in
20662 aix4 | aix4.[01] | aix4.[01].*)
20663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20664 echo ' yes '
20665 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20666 :
20667 else
20668 can_build_shared=no
20669 fi
20670 ;;
20671 esac
20672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20673 # soname into executable. Probably we can add versioning support to
20674 # collect2, so additional links can be useful in future.
20675 if test "$aix_use_runtimelinking" = yes; then
20676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20677 # instead of lib<name>.a to let people know that these are not
20678 # typical AIX shared libraries.
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 else
20681 # We preserve .a as extension for shared libraries through AIX4.2
20682 # and later when we are not doing run time linking.
20683 library_names_spec='${libname}${release}.a $libname.a'
20684 soname_spec='${libname}${release}${shared_ext}$major'
20685 fi
20686 shlibpath_var=LIBPATH
20687 fi
20688 ;;
20689
20690 amigaos*)
20691 case $host_cpu in
20692 powerpc)
20693 # Since July 2007 AmigaOS4 officially supports .so libraries.
20694 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20696 ;;
20697 m68k)
20698 library_names_spec='$libname.ixlibrary $libname.a'
20699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20700 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'
20701 ;;
20702 esac
20703 ;;
20704
20705 beos*)
20706 library_names_spec='${libname}${shared_ext}'
20707 dynamic_linker="$host_os ld.so"
20708 shlibpath_var=LIBRARY_PATH
20709 ;;
20710
20711 bsdi[45]*)
20712 version_type=linux
20713 need_version=no
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20717 shlibpath_var=LD_LIBRARY_PATH
20718 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20719 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20720 # the default ld.so.conf also contains /usr/contrib/lib and
20721 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20722 # libtool to hard-code these into programs
20723 ;;
20724
20725 cygwin* | mingw* | pw32* | cegcc*)
20726 version_type=windows
20727 shrext_cmds=".dll"
20728 need_version=no
20729 need_lib_prefix=no
20730
20731 case $GCC,$host_os in
20732 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20733 library_names_spec='$libname.dll.a'
20734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20735 postinstall_cmds='base_file=`basename \${file}`~
20736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20737 dldir=$destdir/`dirname \$dlpath`~
20738 test -d \$dldir || mkdir -p \$dldir~
20739 $install_prog $dir/$dlname \$dldir/$dlname~
20740 chmod a+x \$dldir/$dlname~
20741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20743 fi'
20744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20745 dlpath=$dir/\$dldll~
20746 $RM \$dlpath'
20747 shlibpath_overrides_runpath=yes
20748
20749 case $host_os in
20750 cygwin*)
20751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20752 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20753
20754 ;;
20755 mingw* | cegcc*)
20756 # MinGW DLLs use traditional 'lib' prefix
20757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20758 ;;
20759 pw32*)
20760 # pw32 DLLs use 'pw' prefix rather than 'lib'
20761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20762 ;;
20763 esac
20764 ;;
20765
20766 *)
20767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20768 ;;
20769 esac
20770 dynamic_linker='Win32 ld.exe'
20771 # FIXME: first we should search . and the directory the executable is in
20772 shlibpath_var=PATH
20773 ;;
20774
20775 darwin* | rhapsody*)
20776 dynamic_linker="$host_os dyld"
20777 version_type=darwin
20778 need_lib_prefix=no
20779 need_version=no
20780 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20781 soname_spec='${libname}${release}${major}$shared_ext'
20782 shlibpath_overrides_runpath=yes
20783 shlibpath_var=DYLD_LIBRARY_PATH
20784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20785
20786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20787 ;;
20788
20789 dgux*)
20790 version_type=linux
20791 need_lib_prefix=no
20792 need_version=no
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 ;;
20797
20798 freebsd* | dragonfly*)
20799 # DragonFly does not have aout. When/if they implement a new
20800 # versioning mechanism, adjust this.
20801 if test -x /usr/bin/objformat; then
20802 objformat=`/usr/bin/objformat`
20803 else
20804 case $host_os in
20805 freebsd[23].*) objformat=aout ;;
20806 *) objformat=elf ;;
20807 esac
20808 fi
20809 version_type=freebsd-$objformat
20810 case $version_type in
20811 freebsd-elf*)
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20813 need_version=no
20814 need_lib_prefix=no
20815 ;;
20816 freebsd-*)
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20818 need_version=yes
20819 ;;
20820 esac
20821 shlibpath_var=LD_LIBRARY_PATH
20822 case $host_os in
20823 freebsd2.*)
20824 shlibpath_overrides_runpath=yes
20825 ;;
20826 freebsd3.[01]* | freebsdelf3.[01]*)
20827 shlibpath_overrides_runpath=yes
20828 hardcode_into_libs=yes
20829 ;;
20830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20832 shlibpath_overrides_runpath=no
20833 hardcode_into_libs=yes
20834 ;;
20835 *) # from 4.6 on, and DragonFly
20836 shlibpath_overrides_runpath=yes
20837 hardcode_into_libs=yes
20838 ;;
20839 esac
20840 ;;
20841
20842 gnu*)
20843 version_type=linux
20844 need_lib_prefix=no
20845 need_version=no
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 shlibpath_var=LD_LIBRARY_PATH
20849 hardcode_into_libs=yes
20850 ;;
20851
20852 haiku*)
20853 version_type=linux
20854 need_lib_prefix=no
20855 need_version=no
20856 dynamic_linker="$host_os runtime_loader"
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LIBRARY_PATH
20860 shlibpath_overrides_runpath=yes
20861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20862 hardcode_into_libs=yes
20863 ;;
20864
20865 hpux9* | hpux10* | hpux11*)
20866 # Give a soname corresponding to the major version so that dld.sl refuses to
20867 # link against other versions.
20868 version_type=sunos
20869 need_lib_prefix=no
20870 need_version=no
20871 case $host_cpu in
20872 ia64*)
20873 shrext_cmds='.so'
20874 hardcode_into_libs=yes
20875 dynamic_linker="$host_os dld.so"
20876 shlibpath_var=LD_LIBRARY_PATH
20877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20879 soname_spec='${libname}${release}${shared_ext}$major'
20880 if test "X$HPUX_IA64_MODE" = X32; then
20881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20882 else
20883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20884 fi
20885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20886 ;;
20887 hppa*64*)
20888 shrext_cmds='.sl'
20889 hardcode_into_libs=yes
20890 dynamic_linker="$host_os dld.sl"
20891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20897 ;;
20898 *)
20899 shrext_cmds='.sl'
20900 dynamic_linker="$host_os dld.sl"
20901 shlibpath_var=SHLIB_PATH
20902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 ;;
20906 esac
20907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20908 postinstall_cmds='chmod 555 $lib'
20909 # or fails outright, so override atomically:
20910 install_override_mode=555
20911 ;;
20912
20913 interix[3-9]*)
20914 version_type=linux
20915 need_lib_prefix=no
20916 need_version=no
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20918 soname_spec='${libname}${release}${shared_ext}$major'
20919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 shlibpath_overrides_runpath=no
20922 hardcode_into_libs=yes
20923 ;;
20924
20925 irix5* | irix6* | nonstopux*)
20926 case $host_os in
20927 nonstopux*) version_type=nonstopux ;;
20928 *)
20929 if test "$lt_cv_prog_gnu_ld" = yes; then
20930 version_type=linux
20931 else
20932 version_type=irix
20933 fi ;;
20934 esac
20935 need_lib_prefix=no
20936 need_version=no
20937 soname_spec='${libname}${release}${shared_ext}$major'
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20939 case $host_os in
20940 irix5* | nonstopux*)
20941 libsuff= shlibsuff=
20942 ;;
20943 *)
20944 case $LD in # libtool.m4 will add one of these switches to LD
20945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20946 libsuff= shlibsuff= libmagic=32-bit;;
20947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20948 libsuff=32 shlibsuff=N32 libmagic=N32;;
20949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20951 *) libsuff= shlibsuff= libmagic=never-match;;
20952 esac
20953 ;;
20954 esac
20955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20956 shlibpath_overrides_runpath=no
20957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20959 hardcode_into_libs=yes
20960 ;;
20961
20962 # No shared lib support for Linux oldld, aout, or coff.
20963 linux*oldld* | linux*aout* | linux*coff*)
20964 dynamic_linker=no
20965 ;;
20966
20967 # This must be Linux ELF.
20968 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20969 version_type=linux
20970 need_lib_prefix=no
20971 need_version=no
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20975 shlibpath_var=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath=no
20977
20978 # Some binutils ld are patched to set DT_RUNPATH
20979 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20980 $as_echo_n "(cached) " >&6
20981 else
20982 lt_cv_shlibpath_overrides_runpath=no
20983 save_LDFLAGS=$LDFLAGS
20984 save_libdir=$libdir
20985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989
20990 int
20991 main ()
20992 {
20993
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 if ac_fn_cxx_try_link "$LINENO"; then :
20999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21000 lt_cv_shlibpath_overrides_runpath=yes
21001 fi
21002 fi
21003 rm -f core conftest.err conftest.$ac_objext \
21004 conftest$ac_exeext conftest.$ac_ext
21005 LDFLAGS=$save_LDFLAGS
21006 libdir=$save_libdir
21007
21008 fi
21009
21010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21011
21012 # This implies no fast_install, which is unacceptable.
21013 # Some rework will be needed to allow for fast_install
21014 # before this can be enabled.
21015 hardcode_into_libs=yes
21016
21017 # Append ld.so.conf contents to the search path
21018 if test -f /etc/ld.so.conf; then
21019 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' ' '`
21020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21021 fi
21022
21023 # We used to test for /lib/ld.so.1 and disable shared libraries on
21024 # powerpc, because MkLinux only supported shared libraries with the
21025 # GNU dynamic linker. Since this was broken with cross compilers,
21026 # most powerpc-linux boxes support dynamic linking these days and
21027 # people can always --disable-shared, the test was removed, and we
21028 # assume the GNU/Linux dynamic linker is in use.
21029 dynamic_linker='GNU/Linux ld.so'
21030 ;;
21031
21032 netbsd*)
21033 version_type=sunos
21034 need_lib_prefix=no
21035 need_version=no
21036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21039 dynamic_linker='NetBSD (a.out) ld.so'
21040 else
21041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21042 soname_spec='${libname}${release}${shared_ext}$major'
21043 dynamic_linker='NetBSD ld.elf_so'
21044 fi
21045 shlibpath_var=LD_LIBRARY_PATH
21046 shlibpath_overrides_runpath=yes
21047 hardcode_into_libs=yes
21048 ;;
21049
21050 newsos6)
21051 version_type=linux
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 shlibpath_var=LD_LIBRARY_PATH
21054 shlibpath_overrides_runpath=yes
21055 ;;
21056
21057 *nto* | *qnx*)
21058 version_type=qnx
21059 need_lib_prefix=no
21060 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
21064 shlibpath_overrides_runpath=no
21065 hardcode_into_libs=yes
21066 dynamic_linker='ldqnx.so'
21067 ;;
21068
21069 openbsd*)
21070 version_type=sunos
21071 sys_lib_dlsearch_path_spec="/usr/lib"
21072 need_lib_prefix=no
21073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21074 case $host_os in
21075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21076 *) need_version=no ;;
21077 esac
21078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21080 shlibpath_var=LD_LIBRARY_PATH
21081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21082 case $host_os in
21083 openbsd2.[89] | openbsd2.[89].*)
21084 shlibpath_overrides_runpath=no
21085 ;;
21086 *)
21087 shlibpath_overrides_runpath=yes
21088 ;;
21089 esac
21090 else
21091 shlibpath_overrides_runpath=yes
21092 fi
21093 ;;
21094
21095 os2*)
21096 libname_spec='$name'
21097 shrext_cmds=".dll"
21098 need_lib_prefix=no
21099 library_names_spec='$libname${shared_ext} $libname.a'
21100 dynamic_linker='OS/2 ld.exe'
21101 shlibpath_var=LIBPATH
21102 ;;
21103
21104 osf3* | osf4* | osf5*)
21105 version_type=osf
21106 need_lib_prefix=no
21107 need_version=no
21108 soname_spec='${libname}${release}${shared_ext}$major'
21109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21110 shlibpath_var=LD_LIBRARY_PATH
21111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21113 ;;
21114
21115 rdos*)
21116 dynamic_linker=no
21117 ;;
21118
21119 solaris*)
21120 version_type=linux
21121 need_lib_prefix=no
21122 need_version=no
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 shlibpath_overrides_runpath=yes
21127 hardcode_into_libs=yes
21128 # ldd complains unless libraries are executable
21129 postinstall_cmds='chmod +x $lib'
21130 ;;
21131
21132 sunos4*)
21133 version_type=sunos
21134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21136 shlibpath_var=LD_LIBRARY_PATH
21137 shlibpath_overrides_runpath=yes
21138 if test "$with_gnu_ld" = yes; then
21139 need_lib_prefix=no
21140 fi
21141 need_version=yes
21142 ;;
21143
21144 sysv4 | sysv4.3*)
21145 version_type=linux
21146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21147 soname_spec='${libname}${release}${shared_ext}$major'
21148 shlibpath_var=LD_LIBRARY_PATH
21149 case $host_vendor in
21150 sni)
21151 shlibpath_overrides_runpath=no
21152 need_lib_prefix=no
21153 runpath_var=LD_RUN_PATH
21154 ;;
21155 siemens)
21156 need_lib_prefix=no
21157 ;;
21158 motorola)
21159 need_lib_prefix=no
21160 need_version=no
21161 shlibpath_overrides_runpath=no
21162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21163 ;;
21164 esac
21165 ;;
21166
21167 sysv4*MP*)
21168 if test -d /usr/nec ;then
21169 version_type=linux
21170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21171 soname_spec='$libname${shared_ext}.$major'
21172 shlibpath_var=LD_LIBRARY_PATH
21173 fi
21174 ;;
21175
21176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21177 version_type=freebsd-elf
21178 need_lib_prefix=no
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21181 soname_spec='${libname}${release}${shared_ext}$major'
21182 shlibpath_var=LD_LIBRARY_PATH
21183 shlibpath_overrides_runpath=yes
21184 hardcode_into_libs=yes
21185 if test "$with_gnu_ld" = yes; then
21186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21187 else
21188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21189 case $host_os in
21190 sco3.2v5*)
21191 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21192 ;;
21193 esac
21194 fi
21195 sys_lib_dlsearch_path_spec='/usr/lib'
21196 ;;
21197
21198 tpf*)
21199 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21200 version_type=linux
21201 need_lib_prefix=no
21202 need_version=no
21203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21204 shlibpath_var=LD_LIBRARY_PATH
21205 shlibpath_overrides_runpath=no
21206 hardcode_into_libs=yes
21207 ;;
21208
21209 uts4*)
21210 version_type=linux
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 soname_spec='${libname}${release}${shared_ext}$major'
21213 shlibpath_var=LD_LIBRARY_PATH
21214 ;;
21215
21216 *)
21217 dynamic_linker=no
21218 ;;
21219 esac
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21221 $as_echo "$dynamic_linker" >&6; }
21222 test "$dynamic_linker" = no && can_build_shared=no
21223
21224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21225 if test "$GCC" = yes; then
21226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21227 fi
21228
21229 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21231 fi
21232 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21233 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21234 fi
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21274 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21275 hardcode_action_CXX=
21276 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21277 test -n "$runpath_var_CXX" ||
21278 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21279
21280 # We can hardcode non-existent directories.
21281 if test "$hardcode_direct_CXX" != no &&
21282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21283 # have to relink, otherwise we might link with an installed library
21284 # when we should be linking with a yet-to-be-installed one
21285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21286 test "$hardcode_minus_L_CXX" != no; then
21287 # Linking always hardcodes the temporary library directory.
21288 hardcode_action_CXX=relink
21289 else
21290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21291 hardcode_action_CXX=immediate
21292 fi
21293 else
21294 # We cannot hardcode anything, or else we can only hardcode existing
21295 # directories.
21296 hardcode_action_CXX=unsupported
21297 fi
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21299 $as_echo "$hardcode_action_CXX" >&6; }
21300
21301 if test "$hardcode_action_CXX" = relink ||
21302 test "$inherit_rpath_CXX" = yes; then
21303 # Fast installation is not supported
21304 enable_fast_install=no
21305 elif test "$shlibpath_overrides_runpath" = yes ||
21306 test "$enable_shared" = no; then
21307 # Fast installation is not necessary
21308 enable_fast_install=needless
21309 fi
21310
21311
21312
21313
21314
21315
21316
21317 fi # test -n "$compiler"
21318
21319 CC=$lt_save_CC
21320 LDCXX=$LD
21321 LD=$lt_save_LD
21322 GCC=$lt_save_GCC
21323 with_gnu_ld=$lt_save_with_gnu_ld
21324 lt_cv_path_LDCXX=$lt_cv_path_LD
21325 lt_cv_path_LD=$lt_save_path_LD
21326 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21327 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21328 fi # test "$_lt_caught_CXX_error" != yes
21329
21330 ac_ext=c
21331 ac_cpp='$CPP $CPPFLAGS'
21332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351 # Only expand once:
21352
21353
21354
21355
21356
21357 # Identify the assembler which will work hand-in-glove with the newly
21358 # built GCC, so that we can examine its features. This is the assembler
21359 # which will be driven by the driver program.
21360 #
21361 # If build != host, and we aren't building gas in-tree, we identify a
21362 # build->target assembler and hope that it will have the same features
21363 # as the host->target assembler we'll be using.
21364 gcc_cv_gas_major_version=
21365 gcc_cv_gas_minor_version=
21366 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21367
21368 if test "${gcc_cv_as+set}" = set; then :
21369
21370 else
21371
21372 if test -x "$DEFAULT_ASSEMBLER"; then
21373 gcc_cv_as="$DEFAULT_ASSEMBLER"
21374 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21375 && test -f ../gas/Makefile \
21376 && test x$build = x$host; then
21377 gcc_cv_as=../gas/as-new$build_exeext
21378 elif test -x as$build_exeext; then
21379 # Build using assembler in the current directory.
21380 gcc_cv_as=./as$build_exeext
21381 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21382 gcc_cv_as="$AS_FOR_TARGET"
21383 else
21384 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21385 set dummy $AS_FOR_TARGET; ac_word=$2
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21387 $as_echo_n "checking for $ac_word... " >&6; }
21388 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21389 $as_echo_n "(cached) " >&6
21390 else
21391 case $gcc_cv_as in
21392 [\\/]* | ?:[\\/]*)
21393 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21394 ;;
21395 *)
21396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21397 for as_dir in $PATH
21398 do
21399 IFS=$as_save_IFS
21400 test -z "$as_dir" && as_dir=.
21401 for ac_exec_ext in '' $ac_executable_extensions; do
21402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21403 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21405 break 2
21406 fi
21407 done
21408 done
21409 IFS=$as_save_IFS
21410
21411 ;;
21412 esac
21413 fi
21414 gcc_cv_as=$ac_cv_path_gcc_cv_as
21415 if test -n "$gcc_cv_as"; then
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21417 $as_echo "$gcc_cv_as" >&6; }
21418 else
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21420 $as_echo "no" >&6; }
21421 fi
21422
21423
21424 fi
21425 fi
21426
21427 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21428
21429 case "$ORIGINAL_AS_FOR_TARGET" in
21430 ./as | ./as$build_exeext) ;;
21431 *) ac_config_files="$ac_config_files as:exec-tool.in"
21432 ;;
21433 esac
21434
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21436 $as_echo_n "checking what assembler to use... " >&6; }
21437 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21438 # Single tree build which includes gas. We want to prefer it
21439 # over whatever linker top-level may have detected, since
21440 # we'll use what we're building after installation anyway.
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21442 $as_echo "newly built gas" >&6; }
21443 in_tree_gas=yes
21444 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21445 for f in $gcc_cv_as_bfd_srcdir/configure \
21446 $gcc_cv_as_gas_srcdir/configure \
21447 $gcc_cv_as_gas_srcdir/configure.in \
21448 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21449 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21450 if test x$gcc_cv_gas_version != x; then
21451 break
21452 fi
21453 done
21454 case $gcc_cv_gas_version in
21455 VERSION=[0-9]*) ;;
21456 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21457 esac
21458 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21459 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21460 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21461 case $gcc_cv_gas_patch_version in
21462 "") gcc_cv_gas_patch_version="0" ;;
21463 esac
21464 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21465 + $gcc_cv_gas_minor_version \) \* 1000 \
21466 + $gcc_cv_gas_patch_version`
21467
21468 in_tree_gas_is_elf=no
21469 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21470 || (grep 'obj_format = multi' ../gas/Makefile \
21471 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21472 then
21473 in_tree_gas_is_elf=yes
21474 fi
21475 else
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21477 $as_echo "$gcc_cv_as" >&6; }
21478 in_tree_gas=no
21479 fi
21480
21481 default_ld=
21482 # Check whether --enable-ld was given.
21483 if test "${enable_ld+set}" = set; then :
21484 enableval=$enable_ld; case "${enableval}" in
21485 no)
21486 default_ld=ld.gold
21487 ;;
21488 esac
21489 fi
21490
21491
21492 # Check whether --enable-gold was given.
21493 if test "${enable_gold+set}" = set; then :
21494 enableval=$enable_gold; case "${enableval}" in
21495 default)
21496 install_gold_as_default=yes
21497 ;;
21498 yes)
21499 if test x${default_ld} != x; then
21500 install_gold_as_default=yes
21501 fi
21502 ;;
21503 no)
21504 ;;
21505 *)
21506 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21507 ;;
21508 esac
21509 else
21510 install_gold_as_default=no
21511 fi
21512
21513
21514 # Identify the linker which will work hand-in-glove with the newly
21515 # built GCC, so that we can examine its features. This is the linker
21516 # which will be driven by the driver program.
21517 #
21518 # If build != host, and we aren't building gas in-tree, we identify a
21519 # build->target linker and hope that it will have the same features
21520 # as the host->target linker we'll be using.
21521 gcc_cv_gld_major_version=
21522 gcc_cv_gld_minor_version=
21523 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21524 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21525 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21526
21527 if test "${gcc_cv_ld+set}" = set; then :
21528
21529 else
21530
21531 if test -x "$DEFAULT_LINKER"; then
21532 gcc_cv_ld="$DEFAULT_LINKER"
21533 elif test $install_gold_as_default = yes \
21534 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21535 && test -f ../gold/Makefile \
21536 && test x$build = x$host; then
21537 gcc_cv_ld=../gold/ld-new$build_exeext
21538 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21539 && test -f ../ld/Makefile \
21540 && test x$build = x$host; then
21541 gcc_cv_ld=../ld/ld-new$build_exeext
21542 elif test -x collect-ld$build_exeext; then
21543 # Build using linker in the current directory.
21544 gcc_cv_ld=./collect-ld$build_exeext
21545 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21546 gcc_cv_ld="$LD_FOR_TARGET"
21547 else
21548 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21549 set dummy $LD_FOR_TARGET; ac_word=$2
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21551 $as_echo_n "checking for $ac_word... " >&6; }
21552 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21553 $as_echo_n "(cached) " >&6
21554 else
21555 case $gcc_cv_ld in
21556 [\\/]* | ?:[\\/]*)
21557 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21558 ;;
21559 *)
21560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561 for as_dir in $PATH
21562 do
21563 IFS=$as_save_IFS
21564 test -z "$as_dir" && as_dir=.
21565 for ac_exec_ext in '' $ac_executable_extensions; do
21566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21567 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569 break 2
21570 fi
21571 done
21572 done
21573 IFS=$as_save_IFS
21574
21575 ;;
21576 esac
21577 fi
21578 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21579 if test -n "$gcc_cv_ld"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21581 $as_echo "$gcc_cv_ld" >&6; }
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21585 fi
21586
21587
21588 fi
21589 fi
21590
21591 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21592 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21593 # if the PLUGIN_LD is set ld-new, just have it as ld
21594 # as that is the installed named.
21595 if test x$PLUGIN_LD_SUFFIX = xld-new \
21596 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21597 PLUGIN_LD_SUFFIX=ld
21598 fi
21599
21600 # Check whether --with-plugin-ld was given.
21601 if test "${with_plugin_ld+set}" = set; then :
21602 withval=$with_plugin_ld; if test x"$withval" != x; then
21603 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21604 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21605 fi
21606 fi
21607
21608
21609
21610 cat >>confdefs.h <<_ACEOF
21611 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21612 _ACEOF
21613
21614
21615 # Check to see if we are using gold instead of ld
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21617 $as_echo_n "checking whether we are using gold... " >&6; }
21618 ld_is_gold=no
21619 if test x$gcc_cv_ld != x; then
21620 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21621 | grep "GNU gold" > /dev/null; then
21622 ld_is_gold=yes
21623 fi
21624 fi
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21626 $as_echo "$ld_is_gold" >&6; }
21627
21628 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21629
21630 case "$ORIGINAL_LD_FOR_TARGET" in
21631 ./collect-ld | ./collect-ld$build_exeext) ;;
21632 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21633 ;;
21634 esac
21635
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21637 $as_echo_n "checking what linker to use... " >&6; }
21638 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21639 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21640 # Single tree build which includes ld. We want to prefer it
21641 # over whatever linker top-level may have detected, since
21642 # we'll use what we're building after installation anyway.
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21644 $as_echo "newly built ld" >&6; }
21645 in_tree_ld=yes
21646 in_tree_ld_is_elf=no
21647 if (grep 'EMUL = .*elf' ../ld/Makefile \
21648 || grep 'EMUL = .*linux' ../ld/Makefile \
21649 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21650 in_tree_ld_is_elf=yes
21651 elif test "$ld_is_gold" = yes; then
21652 in_tree_ld_is_elf=yes
21653 fi
21654 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
21655 do
21656 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21657 if test x$gcc_cv_gld_version != x; then
21658 break
21659 fi
21660 done
21661 case $gcc_cv_gld_version in
21662 VERSION=[0-9]*) ;;
21663 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21664 esac
21665 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21666 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21667 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21668 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21669 else
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21671 $as_echo "$gcc_cv_ld" >&6; }
21672 in_tree_ld=no
21673 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21674 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21675 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21676 fi
21677
21678
21679
21680
21681 # Figure out what nm we will be using.
21682 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21683 if test "${gcc_cv_nm+set}" = set; then :
21684
21685 else
21686
21687 if test -f $gcc_cv_binutils_srcdir/configure.in \
21688 && test -f ../binutils/Makefile \
21689 && test x$build = x$host; then
21690 gcc_cv_nm=../binutils/nm-new$build_exeext
21691 elif test -x nm$build_exeext; then
21692 gcc_cv_nm=./nm$build_exeext
21693 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21694 gcc_cv_nm="$NM_FOR_TARGET"
21695 else
21696 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21697 set dummy $NM_FOR_TARGET; ac_word=$2
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21699 $as_echo_n "checking for $ac_word... " >&6; }
21700 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21702 else
21703 case $gcc_cv_nm in
21704 [\\/]* | ?:[\\/]*)
21705 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21706 ;;
21707 *)
21708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21709 for as_dir in $PATH
21710 do
21711 IFS=$as_save_IFS
21712 test -z "$as_dir" && as_dir=.
21713 for ac_exec_ext in '' $ac_executable_extensions; do
21714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21715 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21717 break 2
21718 fi
21719 done
21720 done
21721 IFS=$as_save_IFS
21722
21723 ;;
21724 esac
21725 fi
21726 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21727 if test -n "$gcc_cv_nm"; then
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21729 $as_echo "$gcc_cv_nm" >&6; }
21730 else
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732 $as_echo "no" >&6; }
21733 fi
21734
21735
21736 fi
21737 fi
21738
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21740 $as_echo_n "checking what nm to use... " >&6; }
21741 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21742 # Single tree build which includes binutils.
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21744 $as_echo "newly built nm" >&6; }
21745 in_tree_nm=yes
21746 else
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21748 $as_echo "$gcc_cv_nm" >&6; }
21749 in_tree_nm=no
21750 fi
21751
21752 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21753
21754 case "$ORIGINAL_NM_FOR_TARGET" in
21755 ./nm | ./nm$build_exeext) ;;
21756 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21757 ;;
21758 esac
21759
21760
21761 # Figure out what objdump we will be using.
21762 if test "${gcc_cv_objdump+set}" = set; then :
21763
21764 else
21765
21766 if test -f $gcc_cv_binutils_srcdir/configure.in \
21767 && test -f ../binutils/Makefile \
21768 && test x$build = x$host; then
21769 # Single tree build which includes binutils.
21770 gcc_cv_objdump=../binutils/objdump$build_exeext
21771 elif test -x objdump$build_exeext; then
21772 gcc_cv_objdump=./objdump$build_exeext
21773 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21774 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21775 else
21776 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21777 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21779 $as_echo_n "checking for $ac_word... " >&6; }
21780 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21781 $as_echo_n "(cached) " >&6
21782 else
21783 case $gcc_cv_objdump in
21784 [\\/]* | ?:[\\/]*)
21785 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21786 ;;
21787 *)
21788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21789 for as_dir in $PATH
21790 do
21791 IFS=$as_save_IFS
21792 test -z "$as_dir" && as_dir=.
21793 for ac_exec_ext in '' $ac_executable_extensions; do
21794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21795 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21797 break 2
21798 fi
21799 done
21800 done
21801 IFS=$as_save_IFS
21802
21803 ;;
21804 esac
21805 fi
21806 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21807 if test -n "$gcc_cv_objdump"; then
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21809 $as_echo "$gcc_cv_objdump" >&6; }
21810 else
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21812 $as_echo "no" >&6; }
21813 fi
21814
21815
21816 fi
21817 fi
21818
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21820 $as_echo_n "checking what objdump to use... " >&6; }
21821 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21822 # Single tree build which includes binutils.
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21824 $as_echo "newly built objdump" >&6; }
21825 elif test x$gcc_cv_objdump = x; then
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21827 $as_echo "not found" >&6; }
21828 else
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21830 $as_echo "$gcc_cv_objdump" >&6; }
21831 fi
21832
21833 # Figure out what readelf we will be using.
21834 if test "${gcc_cv_readelf+set}" = set; then :
21835
21836 else
21837
21838 if test -f $gcc_cv_binutils_srcdir/configure.in \
21839 && test -f ../binutils/Makefile \
21840 && test x$build = x$host; then
21841 # Single tree build which includes binutils.
21842 gcc_cv_readelf=../binutils/readelf$build_exeext
21843 elif test -x readelf$build_exeext; then
21844 gcc_cv_readelf=./readelf$build_exeext
21845 else
21846 # Extract the first word of "readelf", so it can be a program name with args.
21847 set dummy readelf; ac_word=$2
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21849 $as_echo_n "checking for $ac_word... " >&6; }
21850 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853 case $gcc_cv_readelf in
21854 [\\/]* | ?:[\\/]*)
21855 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21856 ;;
21857 *)
21858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859 for as_dir in $PATH
21860 do
21861 IFS=$as_save_IFS
21862 test -z "$as_dir" && as_dir=.
21863 for ac_exec_ext in '' $ac_executable_extensions; do
21864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21865 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21867 break 2
21868 fi
21869 done
21870 done
21871 IFS=$as_save_IFS
21872
21873 ;;
21874 esac
21875 fi
21876 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21877 if test -n "$gcc_cv_readelf"; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21879 $as_echo "$gcc_cv_readelf" >&6; }
21880 else
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21882 $as_echo "no" >&6; }
21883 fi
21884
21885
21886 fi
21887 fi
21888
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21890 $as_echo_n "checking what readelf to use... " >&6; }
21891 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21892 # Single tree build which includes binutils.
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21894 $as_echo "newly built readelf" >&6; }
21895 elif test x$gcc_cv_readelf = x; then
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21897 $as_echo "not found" >&6; }
21898 else
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21900 $as_echo "$gcc_cv_readelf" >&6; }
21901 fi
21902
21903 # Figure out what assembler alignment features are present.
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21905 $as_echo_n "checking assembler flags... " >&6; }
21906 if test "${gcc_cv_as_flags+set}" = set; then :
21907 $as_echo_n "(cached) " >&6
21908 else
21909 case "$target" in
21910 i[34567]86-*-linux*)
21911 gcc_cv_as_flags=--32
21912 ;;
21913 x86_64-*-linux-gnux32)
21914 gcc_cv_as_flags=--x32
21915 ;;
21916 x86_64-*-linux*)
21917 gcc_cv_as_flags=--64
21918 ;;
21919 powerpc*-*-darwin*)
21920 gcc_cv_as_flags="-arch ppc"
21921 ;;
21922 *)
21923 gcc_cv_as_flags=" "
21924 ;;
21925 esac
21926 fi
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21928 $as_echo "$gcc_cv_as_flags" >&6; }
21929
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21931 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21932 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 gcc_cv_as_balign_and_p2align=no
21936 if test $in_tree_gas = yes; then
21937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21938 then gcc_cv_as_balign_and_p2align=yes
21939 fi
21940 elif test x$gcc_cv_as != x; then
21941 $as_echo '.balign 4
21942 .p2align 2' > conftest.s
21943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21948 test $ac_status = 0; }; }
21949 then
21950 gcc_cv_as_balign_and_p2align=yes
21951 else
21952 echo "configure: failed program was" >&5
21953 cat conftest.s >&5
21954 fi
21955 rm -f conftest.o conftest.s
21956 fi
21957 fi
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21959 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21960 if test $gcc_cv_as_balign_and_p2align = yes; then
21961
21962 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21963
21964 fi
21965
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21967 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21968 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21969 $as_echo_n "(cached) " >&6
21970 else
21971 gcc_cv_as_max_skip_p2align=no
21972 if test $in_tree_gas = yes; then
21973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21974 then gcc_cv_as_max_skip_p2align=yes
21975 fi
21976 elif test x$gcc_cv_as != x; then
21977 $as_echo '.p2align 4,,7' > conftest.s
21978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21983 test $ac_status = 0; }; }
21984 then
21985 gcc_cv_as_max_skip_p2align=yes
21986 else
21987 echo "configure: failed program was" >&5
21988 cat conftest.s >&5
21989 fi
21990 rm -f conftest.o conftest.s
21991 fi
21992 fi
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21994 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21995 if test $gcc_cv_as_max_skip_p2align = yes; then
21996
21997 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21998
21999 fi
22000
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22002 $as_echo_n "checking assembler for .literal16... " >&6; }
22003 if test "${gcc_cv_as_literal16+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 gcc_cv_as_literal16=no
22007 if test $in_tree_gas = yes; then
22008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22009 then gcc_cv_as_literal16=yes
22010 fi
22011 elif test x$gcc_cv_as != x; then
22012 $as_echo '.literal16' > conftest.s
22013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22018 test $ac_status = 0; }; }
22019 then
22020 gcc_cv_as_literal16=yes
22021 else
22022 echo "configure: failed program was" >&5
22023 cat conftest.s >&5
22024 fi
22025 rm -f conftest.o conftest.s
22026 fi
22027 fi
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22029 $as_echo "$gcc_cv_as_literal16" >&6; }
22030 if test $gcc_cv_as_literal16 = yes; then
22031
22032 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22033
22034 fi
22035
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22037 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22038 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22039 $as_echo_n "(cached) " >&6
22040 else
22041 gcc_cv_as_subsection_m1=no
22042 if test $in_tree_gas = yes; then
22043 if test $in_tree_gas_is_elf = yes \
22044 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22045 then gcc_cv_as_subsection_m1=yes
22046 fi
22047 elif test x$gcc_cv_as != x; then
22048 $as_echo 'conftest_label1: .word 0
22049 .subsection -1
22050 conftest_label2: .word 0
22051 .previous' > conftest.s
22052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22057 test $ac_status = 0; }; }
22058 then
22059 if test x$gcc_cv_nm != x; then
22060 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22061 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22062 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22063 then :
22064 else gcc_cv_as_subsection_m1=yes
22065 fi
22066 rm -f conftest.nm1 conftest.nm2
22067 fi
22068 else
22069 echo "configure: failed program was" >&5
22070 cat conftest.s >&5
22071 fi
22072 rm -f conftest.o conftest.s
22073 fi
22074 fi
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22076 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22077 if test $gcc_cv_as_subsection_m1 = yes; then
22078
22079 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22080
22081 fi
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22084 $as_echo_n "checking assembler for .weak... " >&6; }
22085 if test "${gcc_cv_as_weak+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 gcc_cv_as_weak=no
22089 if test $in_tree_gas = yes; then
22090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22091 then gcc_cv_as_weak=yes
22092 fi
22093 elif test x$gcc_cv_as != x; then
22094 $as_echo ' .weak foobar' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22102 gcc_cv_as_weak=yes
22103 else
22104 echo "configure: failed program was" >&5
22105 cat conftest.s >&5
22106 fi
22107 rm -f conftest.o conftest.s
22108 fi
22109 fi
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22111 $as_echo "$gcc_cv_as_weak" >&6; }
22112 if test $gcc_cv_as_weak = yes; then
22113
22114 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22115
22116 fi
22117
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22119 $as_echo_n "checking assembler for .weakref... " >&6; }
22120 if test "${gcc_cv_as_weakref+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22122 else
22123 gcc_cv_as_weakref=no
22124 if test $in_tree_gas = yes; then
22125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22126 then gcc_cv_as_weakref=yes
22127 fi
22128 elif test x$gcc_cv_as != x; then
22129 $as_echo ' .weakref foobar, barfnot' > conftest.s
22130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22135 test $ac_status = 0; }; }
22136 then
22137 gcc_cv_as_weakref=yes
22138 else
22139 echo "configure: failed program was" >&5
22140 cat conftest.s >&5
22141 fi
22142 rm -f conftest.o conftest.s
22143 fi
22144 fi
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22146 $as_echo "$gcc_cv_as_weakref" >&6; }
22147 if test $gcc_cv_as_weakref = yes; then
22148
22149 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22150
22151 fi
22152
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22154 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22155 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 gcc_cv_as_nsubspa_comdat=no
22159 if test $in_tree_gas = yes; then
22160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22161 then gcc_cv_as_nsubspa_comdat=yes
22162 fi
22163 elif test x$gcc_cv_as != x; then
22164 $as_echo ' .SPACE $TEXT$
22165 .NSUBSPA $CODE$,COMDAT' > conftest.s
22166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22171 test $ac_status = 0; }; }
22172 then
22173 gcc_cv_as_nsubspa_comdat=yes
22174 else
22175 echo "configure: failed program was" >&5
22176 cat conftest.s >&5
22177 fi
22178 rm -f conftest.o conftest.s
22179 fi
22180 fi
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22182 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22183 if test $gcc_cv_as_nsubspa_comdat = yes; then
22184
22185 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22186
22187 fi
22188
22189 # .hidden needs to be supported in both the assembler and the linker,
22190 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22191 # This is irritatingly difficult to feature test for; we have to check the
22192 # date string after the version number. If we've got an in-tree
22193 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22194 # to be safe.
22195 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22197 $as_echo_n "checking assembler for .hidden... " >&6; }
22198 if test "${gcc_cv_as_hidden+set}" = set; then :
22199 $as_echo_n "(cached) " >&6
22200 else
22201 gcc_cv_as_hidden=no
22202 if test $in_tree_gas = yes; then
22203 if test $in_tree_gas_is_elf = yes \
22204 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22205 then gcc_cv_as_hidden=yes
22206 fi
22207 elif test x$gcc_cv_as != x; then
22208 $as_echo ' .hidden foobar
22209 foobar:' > conftest.s
22210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22215 test $ac_status = 0; }; }
22216 then
22217 gcc_cv_as_hidden=yes
22218 else
22219 echo "configure: failed program was" >&5
22220 cat conftest.s >&5
22221 fi
22222 rm -f conftest.o conftest.s
22223 fi
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22226 $as_echo "$gcc_cv_as_hidden" >&6; }
22227
22228 case "${target}" in
22229 *-*-darwin*)
22230 # Darwin as has some visibility support, though with a different syntax.
22231 gcc_cv_as_hidden=yes
22232 ;;
22233 esac
22234
22235 # gnu_indirect_function type is an extension proposed at
22236 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22237 # selection of function implementation
22238 # Check whether --enable-gnu-indirect-function was given.
22239 if test "${enable_gnu_indirect_function+set}" = set; then :
22240 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22241 yes | no) ;;
22242 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22243 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22244 esac
22245 else
22246 enable_gnu_indirect_function="$default_gnu_indirect_function"
22247 fi
22248
22249
22250 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22251
22252 cat >>confdefs.h <<_ACEOF
22253 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22254 _ACEOF
22255
22256
22257
22258 if test $in_tree_ld != yes ; then
22259 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22260 if echo "$ld_ver" | grep GNU > /dev/null; then
22261 if test x"$ld_is_gold" = xyes; then
22262 # GNU gold --version looks like this:
22263 #
22264 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22265 #
22266 # We extract the binutils version which is more familiar and specific
22267 # than the gold version.
22268 ld_vers=`echo $ld_ver | sed -n \
22269 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22270 else
22271 # GNU ld --version looks like this:
22272 #
22273 # GNU ld (GNU Binutils) 2.21.51.20110225
22274 ld_vers=`echo $ld_ver | sed -n \
22275 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22276 fi
22277 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'`
22278 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22279 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22280 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22281 else
22282 case "${target}" in
22283 *-*-solaris2*)
22284 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22285 # format.
22286 #
22287 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22288 # /usr/ccs/bin/ld has been configured.
22289 ld_ver=`$gcc_cv_ld -V 2>&1`
22290 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22291 ld_vers=`echo $ld_ver | sed -n \
22292 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22293 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22294 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22295 fi
22296 ;;
22297 esac
22298 fi
22299 fi
22300
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22302 $as_echo_n "checking linker for .hidden support... " >&6; }
22303 if test "${gcc_cv_ld_hidden+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22305 else
22306 if test $in_tree_ld = yes ; then
22307 gcc_cv_ld_hidden=no
22308 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 \
22309 && test $in_tree_ld_is_elf = yes; then
22310 gcc_cv_ld_hidden=yes
22311 fi
22312 else
22313 gcc_cv_ld_hidden=yes
22314 if test x"$ld_is_gold" = xyes; then
22315 :
22316 elif echo "$ld_ver" | grep GNU > /dev/null; then
22317 case "${target}" in
22318 mmix-knuth-mmixware)
22319 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22320 gcc_cv_ld_hidden=no
22321 ;;
22322 esac
22323 if test 0"$ld_date" -lt 20020404; then
22324 if test -n "$ld_date"; then
22325 # If there was date string, but was earlier than 2002-04-04, fail
22326 gcc_cv_ld_hidden=no
22327 elif test -z "$ld_vers"; then
22328 # If there was no date string nor ld version number, something is wrong
22329 gcc_cv_ld_hidden=no
22330 else
22331 test -z "$ld_vers_patch" && ld_vers_patch=0
22332 if test "$ld_vers_major" -lt 2; then
22333 gcc_cv_ld_hidden=no
22334 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22335 gcc_cv_ld_hidden="no"
22336 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22337 gcc_cv_ld_hidden=no
22338 fi
22339 fi
22340 fi
22341 else
22342 case "${target}" in
22343 *-*-darwin*)
22344 # Darwin ld has some visibility support.
22345 gcc_cv_ld_hidden=yes
22346 ;;
22347 hppa64*-*-hpux* | ia64*-*-hpux*)
22348 gcc_cv_ld_hidden=yes
22349 ;;
22350 *-*-solaris2.1[0-9]*)
22351 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22352 # .symbolic was only added in Solaris 9 12/02.
22353 gcc_cv_ld_hidden=yes
22354 ;;
22355 *)
22356 gcc_cv_ld_hidden=no
22357 ;;
22358 esac
22359 fi
22360 fi
22361 fi
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22363 $as_echo "$gcc_cv_ld_hidden" >&6; }
22364 libgcc_visibility=no
22365
22366
22367 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22368 libgcc_visibility=yes
22369
22370 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22371
22372 fi
22373
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22375 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22376 gcc_cv_ld_ro_rw_mix=unknown
22377 if test $in_tree_ld = yes ; then
22378 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 \
22379 && test $in_tree_ld_is_elf = yes; then
22380 gcc_cv_ld_ro_rw_mix=read-write
22381 fi
22382 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22383 echo '.section myfoosect, "a"' > conftest1.s
22384 echo '.section myfoosect, "aw"' > conftest2.s
22385 echo '.byte 1' >> conftest2.s
22386 echo '.section myfoosect, "a"' > conftest3.s
22387 echo '.byte 0' >> conftest3.s
22388 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22389 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22390 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22391 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22392 conftest2.o conftest3.o > /dev/null 2>&1; then
22393 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22394 | sed -e '/myfoosect/!d' -e N`
22395 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22396 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22397 gcc_cv_ld_ro_rw_mix=read-only
22398 else
22399 gcc_cv_ld_ro_rw_mix=read-write
22400 fi
22401 fi
22402 fi
22403 rm -f conftest.* conftest[123].*
22404 fi
22405 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22406
22407 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22408
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22411 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22412
22413 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22414 case "${target}" in
22415 *-*-solaris2*)
22416 #
22417 # Solaris 2 ld -V output looks like this for a regular version:
22418 #
22419 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22420 #
22421 # but test versions add stuff at the end:
22422 #
22423 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22424 #
22425 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22426 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22427 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22428 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22429 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22430 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22431 fi
22432 ;;
22433 esac
22434 fi
22435
22436 # Check whether --enable-initfini-array was given.
22437 if test "${enable_initfini_array+set}" = set; then :
22438 enableval=$enable_initfini_array;
22439 else
22440
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22442 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22443 if test "${gcc_cv_initfini_array+set}" = set; then :
22444 $as_echo_n "(cached) " >&6
22445 else
22446 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22447 case "${target}" in
22448 ia64-*)
22449 if test "$cross_compiling" = yes; then :
22450 gcc_cv_initfini_array=no
22451 else
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22454
22455 #ifndef __ELF__
22456 #error Not an ELF OS
22457 #endif
22458 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22459 if it can be used. */
22460 static int x = -1;
22461 int main (void) { return x; }
22462 int foo (void) { x = 0; }
22463 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22464
22465 _ACEOF
22466 if ac_fn_c_try_run "$LINENO"; then :
22467 gcc_cv_initfini_array=yes
22468 else
22469 gcc_cv_initfini_array=no
22470 fi
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22472 conftest.$ac_objext conftest.beam conftest.$ac_ext
22473 fi
22474 ;;
22475 *)
22476 gcc_cv_initfini_array=no
22477 if test $in_tree_ld = yes ; then
22478 if test "$gcc_cv_gld_major_version" -eq 2 \
22479 -a "$gcc_cv_gld_minor_version" -ge 22 \
22480 -o "$gcc_cv_gld_major_version" -gt 2 \
22481 && test $in_tree_ld_is_elf = yes; then
22482 gcc_cv_initfini_array=yes
22483 fi
22484 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22485 cat > conftest.s <<\EOF
22486 .section .dtors,"a",%progbits
22487 .balign 4
22488 .byte 'A', 'A', 'A', 'A'
22489 .section .ctors,"a",%progbits
22490 .balign 4
22491 .byte 'B', 'B', 'B', 'B'
22492 .section .fini_array.65530,"a",%progbits
22493 .balign 4
22494 .byte 'C', 'C', 'C', 'C'
22495 .section .init_array.65530,"a",%progbits
22496 .balign 4
22497 .byte 'D', 'D', 'D', 'D'
22498 .section .dtors.64528,"a",%progbits
22499 .balign 4
22500 .byte 'E', 'E', 'E', 'E'
22501 .section .ctors.64528,"a",%progbits
22502 .balign 4
22503 .byte 'F', 'F', 'F', 'F'
22504 .section .fini_array.01005,"a",%progbits
22505 .balign 4
22506 .byte 'G', 'G', 'G', 'G'
22507 .section .init_array.01005,"a",%progbits
22508 .balign 4
22509 .byte 'H', 'H', 'H', 'H'
22510 .text
22511 .globl _start
22512 _start:
22513 EOF
22514 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22515 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22516 && $gcc_cv_objdump -s -j .init_array conftest \
22517 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22518 && $gcc_cv_objdump -s -j .fini_array conftest \
22519 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22520 gcc_cv_initfini_array=yes
22521 fi
22522 rm -f conftest conftest.*
22523 fi
22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h. */
22526
22527 #ifndef __ELF__
22528 # error Not an ELF OS
22529 #endif
22530 #include <stdlib.h>
22531 #if defined __GLIBC_PREREQ
22532 # if __GLIBC_PREREQ (2, 4)
22533 # else
22534 # error GLIBC 2.4 required
22535 # endif
22536 #else
22537 # if defined __sun__ && defined __svr4__
22538 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22539 # else
22540 # error The C library not known to support .init_array/.fini_array
22541 # endif
22542 #endif
22543
22544 _ACEOF
22545 if ac_fn_c_try_cpp "$LINENO"; then :
22546
22547 else
22548 gcc_cv_initfini_array=no
22549 fi
22550 rm -f conftest.err conftest.$ac_ext;;
22551 esac
22552 else
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22554 $as_echo_n "checking cross compile... guessing... " >&6; }
22555 gcc_cv_initfini_array=no
22556 fi
22557 fi
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22559 $as_echo "$gcc_cv_initfini_array" >&6; }
22560 enable_initfini_array=$gcc_cv_initfini_array
22561
22562 fi
22563
22564 if test $enable_initfini_array = yes; then
22565
22566 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22567
22568 fi
22569
22570 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22572 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22573 if test "${gcc_cv_as_leb128+set}" = set; then :
22574 $as_echo_n "(cached) " >&6
22575 else
22576 gcc_cv_as_leb128=no
22577 if test $in_tree_gas = yes; then
22578 if test $in_tree_gas_is_elf = yes \
22579 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22580 then gcc_cv_as_leb128=yes
22581 fi
22582 elif test x$gcc_cv_as != x; then
22583 $as_echo ' .data
22584 .uleb128 L2 - L1
22585 L1:
22586 .uleb128 1280
22587 .sleb128 -1010
22588 L2:' > conftest.s
22589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22594 test $ac_status = 0; }; }
22595 then
22596 # GAS versions before 2.11 do not support uleb128,
22597 # despite appearing to.
22598 # ??? There exists an elf-specific test that will crash
22599 # the assembler. Perhaps it's better to figure out whether
22600 # arbitrary sections are supported and try the test.
22601 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22602 if echo "$as_ver" | grep GNU > /dev/null; then
22603 as_vers=`echo $as_ver | sed -n \
22604 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22605 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22606 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22607 if test $as_major -eq 2 && test $as_minor -lt 11
22608 then :
22609 else gcc_cv_as_leb128=yes
22610 fi
22611 fi
22612 else
22613 echo "configure: failed program was" >&5
22614 cat conftest.s >&5
22615 fi
22616 rm -f conftest.o conftest.s
22617 fi
22618 fi
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22620 $as_echo "$gcc_cv_as_leb128" >&6; }
22621 if test $gcc_cv_as_leb128 = yes; then
22622
22623 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22624
22625 fi
22626
22627 # Check if we have assembler support for unwind directives.
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22629 $as_echo_n "checking assembler for cfi directives... " >&6; }
22630 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22632 else
22633 gcc_cv_as_cfi_directive=no
22634 if test x$gcc_cv_as != x; then
22635 $as_echo ' .text
22636 .cfi_startproc
22637 .cfi_offset 0, 0
22638 .cfi_same_value 1
22639 .cfi_def_cfa 1, 2
22640 .cfi_escape 1, 2, 3, 4, 5
22641 .cfi_endproc' > conftest.s
22642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; }
22648 then
22649 case "$target" in
22650 *-*-solaris*)
22651 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22652 # read-only and read-write sections, we need to make sure that the
22653 # assembler used emits read-write .eh_frame sections.
22654 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22655 if test "x$gcc_cv_objdump" != x; then
22656 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22657 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22658 gcc_cv_as_cfi_directive=no
22659 else
22660 case "$target" in
22661 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22662 # On Solaris/x86, make sure that GCC and assembler agree on using
22663 # read-only .eh_frame sections for 64-bit.
22664 if test x$gas = xyes; then
22665 as_ix86_64_opt="--64"
22666 else
22667 as_ix86_64_opt="-xarch=amd64"
22668 fi
22669 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22670 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22671 sed -e /.eh_frame/!d -e N | \
22672 grep READONLY > /dev/null; then
22673 gcc_cv_as_cfi_directive=yes
22674 else
22675 gcc_cv_as_cfi_directive=no
22676 fi
22677 ;;
22678 *)
22679 gcc_cv_as_cfi_directive=yes
22680 ;;
22681 esac
22682 fi
22683 else
22684 # no objdump, err on the side of caution
22685 gcc_cv_as_cfi_directive=no
22686 fi
22687 else
22688 gcc_cv_as_cfi_directive=yes
22689 fi
22690 ;;
22691 *-*-*)
22692 gcc_cv_as_cfi_directive=yes
22693 ;;
22694 esac
22695 else
22696 echo "configure: failed program was" >&5
22697 cat conftest.s >&5
22698 fi
22699 rm -f conftest.o conftest.s
22700 fi
22701 fi
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22703 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22704
22705 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22707 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22708 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22710 else
22711 gcc_cv_as_cfi_advance_working=no
22712 if test x$gcc_cv_as != x; then
22713 $as_echo ' .text
22714 .cfi_startproc
22715 .cfi_adjust_cfa_offset 64
22716 .skip 75040, 0
22717 .cfi_adjust_cfa_offset 128
22718 .cfi_endproc' > conftest.s
22719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22721 (eval $ac_try) 2>&5
22722 ac_status=$?
22723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22724 test $ac_status = 0; }; }
22725 then
22726
22727 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22728 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22729 gcc_cv_as_cfi_advance_working=yes
22730 fi
22731
22732 else
22733 echo "configure: failed program was" >&5
22734 cat conftest.s >&5
22735 fi
22736 rm -f conftest.o conftest.s
22737 fi
22738 fi
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22740 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22741
22742 else
22743 # no objdump, err on the side of caution
22744 gcc_cv_as_cfi_advance_working=no
22745 fi
22746
22747
22748 cat >>confdefs.h <<_ACEOF
22749 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22750 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22751 _ACEOF
22752
22753
22754
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22756 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22757 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22758 $as_echo_n "(cached) " >&6
22759 else
22760 gcc_cv_as_cfi_personality_directive=no
22761 if test x$gcc_cv_as != x; then
22762 $as_echo ' .text
22763 .cfi_startproc
22764 .cfi_personality 0, symbol
22765 .cfi_endproc' > conftest.s
22766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22771 test $ac_status = 0; }; }
22772 then
22773 gcc_cv_as_cfi_personality_directive=yes
22774 else
22775 echo "configure: failed program was" >&5
22776 cat conftest.s >&5
22777 fi
22778 rm -f conftest.o conftest.s
22779 fi
22780 fi
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22782 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22783
22784
22785 cat >>confdefs.h <<_ACEOF
22786 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22787 then echo 1; else echo 0; fi`
22788 _ACEOF
22789
22790
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22792 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22793 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 gcc_cv_as_cfi_sections_directive=no
22797 if test x$gcc_cv_as != x; then
22798 $as_echo ' .text
22799 .cfi_sections .debug_frame, .eh_frame
22800 .cfi_startproc
22801 .cfi_endproc' > conftest.s
22802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22807 test $ac_status = 0; }; }
22808 then
22809 case $target_os in
22810 win32 | pe | cygwin* | mingw32* | uwin*)
22811 # Need to check that we generated the correct relocation for the
22812 # .debug_frame section. This was fixed for binutils 2.21.
22813 gcc_cv_as_cfi_sections_directive=no
22814 if test "x$gcc_cv_objdump" != x; then
22815 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22816 grep secrel > /dev/null; then
22817 gcc_cv_as_cfi_sections_directive=yes
22818 fi
22819 fi
22820 ;;
22821 *)
22822 gcc_cv_as_cfi_sections_directive=yes
22823 ;;
22824 esac
22825 else
22826 echo "configure: failed program was" >&5
22827 cat conftest.s >&5
22828 fi
22829 rm -f conftest.o conftest.s
22830 fi
22831 fi
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22833 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22834
22835
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22839 then echo 1; else echo 0; fi`
22840 _ACEOF
22841
22842
22843 # GAS versions up to and including 2.11.0 may mis-optimize
22844 # .eh_frame data.
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22846 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22847 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22848 $as_echo_n "(cached) " >&6
22849 else
22850 gcc_cv_as_eh_frame=no
22851 if test $in_tree_gas = yes; then
22852 if test $in_tree_gas_is_elf = yes \
22853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22854 then gcc_cv_as_eh_frame=yes
22855 fi
22856 elif test x$gcc_cv_as != x; then
22857 $as_echo ' .text
22858 .LFB1:
22859 .4byte 0
22860 .L1:
22861 .4byte 0
22862 .LFE1:
22863 .section .eh_frame,"aw",@progbits
22864 __FRAME_BEGIN__:
22865 .4byte .LECIE1-.LSCIE1
22866 .LSCIE1:
22867 .4byte 0x0
22868 .byte 0x1
22869 .ascii "z\0"
22870 .byte 0x1
22871 .byte 0x78
22872 .byte 0x1a
22873 .byte 0x0
22874 .byte 0x4
22875 .4byte 1
22876 .p2align 1
22877 .LECIE1:
22878 .LSFDE1:
22879 .4byte .LEFDE1-.LASFDE1
22880 .LASFDE1:
22881 .4byte .LASFDE1-__FRAME_BEGIN__
22882 .4byte .LFB1
22883 .4byte .LFE1-.LFB1
22884 .byte 0x4
22885 .4byte .LFE1-.LFB1
22886 .byte 0x4
22887 .4byte .L1-.LFB1
22888 .LEFDE1:' > conftest.s
22889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; }
22895 then
22896 cat > conftest.lit <<EOF
22897 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22898 0010 01000000 12000000 18000000 00000000 ................
22899 0020 08000000 04080000 0044 .........D
22900 EOF
22901 cat > conftest.big <<EOF
22902 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22903 0010 00000001 00000012 00000018 00000000 ................
22904 0020 00000008 04000000 0844 .........D
22905 EOF
22906 # If the assembler didn't choke, and we can objdump,
22907 # and we got the correct data, then succeed.
22908 # The text in the here-document typically retains its unix-style line
22909 # endings, while the output of objdump will use host line endings.
22910 # Therefore, use diff -b for the comparisons.
22911 if test x$gcc_cv_objdump != x \
22912 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22913 | tail -3 > conftest.got \
22914 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22915 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22916 then
22917 gcc_cv_as_eh_frame=yes
22918 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }; then
22924 gcc_cv_as_eh_frame=buggy
22925 else
22926 # Uh oh, what do we do now?
22927 gcc_cv_as_eh_frame=no
22928 fi
22929 else
22930 echo "configure: failed program was" >&5
22931 cat conftest.s >&5
22932 fi
22933 rm -f conftest.o conftest.s
22934 fi
22935 fi
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22937 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22938
22939
22940 if test $gcc_cv_as_eh_frame = buggy; then
22941
22942 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22943
22944 fi
22945
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22947 $as_echo_n "checking assembler for section merging support... " >&6; }
22948 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 gcc_cv_as_shf_merge=no
22952 if test $in_tree_gas = yes; then
22953 if test $in_tree_gas_is_elf = yes \
22954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22955 then gcc_cv_as_shf_merge=yes
22956 fi
22957 elif test x$gcc_cv_as != x; then
22958 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22965 then
22966 gcc_cv_as_shf_merge=yes
22967 else
22968 echo "configure: failed program was" >&5
22969 cat conftest.s >&5
22970 fi
22971 rm -f conftest.o conftest.s
22972 fi
22973 fi
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22975 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22976
22977 if test $gcc_cv_as_shf_merge = no; then
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22979 $as_echo_n "checking assembler for section merging support... " >&6; }
22980 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22981 $as_echo_n "(cached) " >&6
22982 else
22983 gcc_cv_as_shf_merge=no
22984 if test $in_tree_gas = yes; then
22985 if test $in_tree_gas_is_elf = yes \
22986 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22987 then gcc_cv_as_shf_merge=yes
22988 fi
22989 elif test x$gcc_cv_as != x; then
22990 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22994 ac_status=$?
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }
22997 then
22998 gcc_cv_as_shf_merge=yes
22999 else
23000 echo "configure: failed program was" >&5
23001 cat conftest.s >&5
23002 fi
23003 rm -f conftest.o conftest.s
23004 fi
23005 fi
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23007 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23008
23009 fi
23010
23011 cat >>confdefs.h <<_ACEOF
23012 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23013 _ACEOF
23014
23015
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23017 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23018 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23019 $as_echo_n "(cached) " >&6
23020 else
23021 gcc_cv_as_comdat_group=no
23022 if test $in_tree_gas = yes; then
23023 if test $in_tree_gas_is_elf = yes \
23024 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23025 then gcc_cv_as_comdat_group=yes
23026 fi
23027 elif test x$gcc_cv_as != x; then
23028 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23034 test $ac_status = 0; }; }
23035 then
23036 gcc_cv_as_comdat_group=yes
23037 else
23038 echo "configure: failed program was" >&5
23039 cat conftest.s >&5
23040 fi
23041 rm -f conftest.o conftest.s
23042 fi
23043 fi
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23045 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23046
23047 if test $gcc_cv_as_comdat_group = yes; then
23048 gcc_cv_as_comdat_group_percent=no
23049 gcc_cv_as_comdat_group_group=no
23050 else
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23052 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23053 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23055 else
23056 gcc_cv_as_comdat_group_percent=no
23057 if test $in_tree_gas = yes; then
23058 if test $in_tree_gas_is_elf = yes \
23059 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23060 then gcc_cv_as_comdat_group_percent=yes
23061 fi
23062 elif test x$gcc_cv_as != x; then
23063 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069 test $ac_status = 0; }; }
23070 then
23071 gcc_cv_as_comdat_group_percent=yes
23072 else
23073 echo "configure: failed program was" >&5
23074 cat conftest.s >&5
23075 fi
23076 rm -f conftest.o conftest.s
23077 fi
23078 fi
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23080 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23081
23082 if test $gcc_cv_as_comdat_group_percent = yes; then
23083 gcc_cv_as_comdat_group_group=no
23084 else
23085 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23086 gcc_cv_as_comdat_group_group=no
23087 fi
23088 case "${target}" in
23089 # Sun as uses a completely different syntax.
23090 *-*-solaris2*)
23091 case "${target}" in
23092 sparc*-*-solaris2*)
23093 conftest_s='
23094 .group foo,".text%foo",#comdat
23095 .section ".text%foo", #alloc,#execinstr,#progbits
23096 .globl foo
23097 foo:
23098 '
23099 ;;
23100 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23101 conftest_s='
23102 .group foo,.text%foo,#comdat
23103 .section .text%foo, "ax", @progbits
23104 .globl foo
23105 foo:
23106 '
23107 ;;
23108 esac
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23110 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23111 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23112 $as_echo_n "(cached) " >&6
23113 else
23114 gcc_cv_as_comdat_group_group=no
23115 if test x$gcc_cv_as != x; then
23116 $as_echo "$conftest_s" > conftest.s
23117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23123 then
23124 gcc_cv_as_comdat_group_group=yes
23125 else
23126 echo "configure: failed program was" >&5
23127 cat conftest.s >&5
23128 fi
23129 rm -f conftest.o conftest.s
23130 fi
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23133 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23134
23135 ;;
23136 esac
23137 fi
23138 fi
23139 if test x"$ld_is_gold" = xyes; then
23140 comdat_group=yes
23141 elif test $in_tree_ld = yes ; then
23142 comdat_group=no
23143 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 \
23144 && test $in_tree_ld_is_elf = yes; then
23145 comdat_group=yes
23146 fi
23147 elif echo "$ld_ver" | grep GNU > /dev/null; then
23148 comdat_group=yes
23149 if test 0"$ld_date" -lt 20050308; then
23150 if test -n "$ld_date"; then
23151 # If there was date string, but was earlier than 2005-03-08, fail
23152 comdat_group=no
23153 elif test "$ld_vers_major" -lt 2; then
23154 comdat_group=no
23155 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23156 comdat_group=no
23157 fi
23158 fi
23159 else
23160 case "${target}" in
23161 *-*-solaris2.1[1-9]*)
23162 comdat_group=no
23163 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23164 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23165 # version 1.688.
23166 #
23167 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23168 # least ld version 1.2267.
23169 if test "$ld_vers_major" -gt 1; then
23170 comdat_group=yes
23171 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23172 comdat_group=yes
23173 elif test "$ld_vers_minor" -ge 2267; then
23174 comdat_group=yes
23175 fi
23176 ;;
23177 *)
23178 # Assume linkers other than GNU ld don't support COMDAT group.
23179 comdat_group=no
23180 ;;
23181 esac
23182 fi
23183 # Allow overriding the automatic COMDAT group tests above.
23184 # Check whether --enable-comdat was given.
23185 if test "${enable_comdat+set}" = set; then :
23186 enableval=$enable_comdat; comdat_group="$enable_comdat"
23187 fi
23188
23189 if test $comdat_group = no; then
23190 gcc_cv_as_comdat_group=no
23191 gcc_cv_as_comdat_group_percent=no
23192 gcc_cv_as_comdat_group_group=no
23193 fi
23194
23195 cat >>confdefs.h <<_ACEOF
23196 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23197 || test $gcc_cv_as_comdat_group_percent = yes \
23198 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23199 _ACEOF
23200
23201
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23203 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23204 if test "${gcc_cv_as_discriminator+set}" = set; then :
23205 $as_echo_n "(cached) " >&6
23206 else
23207 gcc_cv_as_discriminator=no
23208 if test $in_tree_gas = yes; then
23209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23210 then gcc_cv_as_discriminator=yes
23211 fi
23212 elif test x$gcc_cv_as != x; then
23213 $as_echo ' .text
23214 .file 1 "conf.c"
23215 .loc 1 1 0 discriminator 1' > conftest.s
23216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23222 then
23223 gcc_cv_as_discriminator=yes
23224 else
23225 echo "configure: failed program was" >&5
23226 cat conftest.s >&5
23227 fi
23228 rm -f conftest.o conftest.s
23229 fi
23230 fi
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23232 $as_echo "$gcc_cv_as_discriminator" >&6; }
23233 if test $gcc_cv_as_discriminator = yes; then
23234
23235 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23236
23237 fi
23238
23239 # Thread-local storage - the check is heavily parameterized.
23240 conftest_s=
23241 tls_first_major=
23242 tls_first_minor=
23243 tls_as_opt=
23244 case "$target" in
23245 alpha*-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 foo: .long 25
23249 .text
23250 ldq $27,__tls_get_addr($29) !literal!1
23251 lda $16,foo($29) !tlsgd!1
23252 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23253 ldq $27,__tls_get_addr($29) !literal!2
23254 lda $16,foo($29) !tlsldm!2
23255 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23256 ldq $1,foo($29) !gotdtprel
23257 ldah $2,foo($29) !dtprelhi
23258 lda $3,foo($2) !dtprello
23259 lda $4,foo($29) !dtprel
23260 ldq $1,foo($29) !gottprel
23261 ldah $2,foo($29) !tprelhi
23262 lda $3,foo($2) !tprello
23263 lda $4,foo($29) !tprel'
23264 tls_first_major=2
23265 tls_first_minor=13
23266 tls_as_opt=--fatal-warnings
23267 ;;
23268 cris-*-*|crisv32-*-*)
23269 conftest_s='
23270 .section ".tdata","awT",@progbits
23271 x: .long 25
23272 .text
23273 move.d x:IE,$r10
23274 nop'
23275 tls_first_major=2
23276 tls_first_minor=20
23277 tls_as_opt=--fatal-warnings
23278 ;;
23279 frv*-*-*)
23280 conftest_s='
23281 .section ".tdata","awT",@progbits
23282 x: .long 25
23283 .text
23284 call #gettlsoff(x)'
23285 tls_first_major=2
23286 tls_first_minor=14
23287 ;;
23288 hppa*-*-linux*)
23289 conftest_s='
23290 t1: .reg %r20
23291 t2: .reg %r21
23292 gp: .reg %r19
23293 .section ".tdata","awT",@progbits
23294 foo: .long 25
23295 .text
23296 .align 4
23297 addil LT%foo-$tls_gdidx$,gp
23298 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23299 b __tls_get_addr
23300 nop
23301 addil LT%foo-$tls_ldidx$,gp
23302 b __tls_get_addr
23303 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23304 addil LR%foo-$tls_dtpoff$,%ret0
23305 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23306 mfctl %cr27,%t1
23307 addil LT%foo-$tls_ieoff$,gp
23308 ldw RT%foo-$tls_ieoff$(%r1),%t2
23309 add %t1,%t2,%t3
23310 mfctl %cr27,%t1
23311 addil LR%foo-$tls_leoff$,%t1
23312 ldo RR%foo-$tls_leoff$(%r1),%t2'
23313 tls_first_major=2
23314 tls_first_minor=15
23315 tls_as_opt=--fatal-warnings
23316 ;;
23317 arm*-*-*)
23318 conftest_s='
23319 .section ".tdata","awT",%progbits
23320 foo: .long 25
23321 .text
23322 .word foo(gottpoff)
23323 .word foo(tpoff)
23324 .word foo(tlsgd)
23325 .word foo(tlsldm)
23326 .word foo(tlsldo)'
23327 tls_first_major=2
23328 tls_first_minor=17
23329 ;;
23330 i[34567]86-*-* | x86_64-*-*)
23331 case "$target" in
23332 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23333 on_solaris=yes
23334 ;;
23335 *)
23336 on_solaris=no
23337 ;;
23338 esac
23339 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23340 conftest_s='
23341 .section .tdata,"awt",@progbits'
23342 tls_first_major=0
23343 tls_first_minor=0
23344 tls_section_flag=t
23345
23346 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23347
23348 else
23349 conftest_s='
23350 .section ".tdata","awT",@progbits'
23351 tls_first_major=2
23352 tls_first_minor=14
23353 tls_section_flag=T
23354 tls_as_opt="--fatal-warnings"
23355 fi
23356 case "$target" in
23357 i[34567]86-*-*)
23358 conftest_s="$conftest_s
23359 foo: .long 25
23360 .text
23361 movl %gs:0, %eax
23362 leal foo@tlsgd(,%ebx,1), %eax
23363 leal foo@tlsldm(%ebx), %eax
23364 leal foo@dtpoff(%eax), %edx
23365 movl foo@gottpoff(%ebx), %eax
23366 subl foo@gottpoff(%ebx), %eax
23367 addl foo@gotntpoff(%ebx), %eax
23368 movl foo@indntpoff, %eax
23369 movl \$foo@tpoff, %eax
23370 subl \$foo@tpoff, %eax
23371 leal foo@ntpoff(%ecx), %eax"
23372 ;;
23373 x86_64-*-*)
23374 if test x$on_solaris = xyes; then
23375 case $gas_flag in
23376 yes) tls_as_opt="$tls_as_opt --64" ;;
23377 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23378 esac
23379 fi
23380 conftest_s="$conftest_s
23381 foo: .long 25
23382 .text
23383 movq %fs:0, %rax
23384 leaq foo@tlsgd(%rip), %rdi
23385 leaq foo@tlsld(%rip), %rdi
23386 leaq foo@dtpoff(%rax), %rdx
23387 movq foo@gottpoff(%rip), %rax
23388 movq \$foo@tpoff, %rax"
23389 ;;
23390 esac
23391 ;;
23392 ia64-*-*)
23393 conftest_s='
23394 .section ".tdata","awT",@progbits
23395 foo: data8 25
23396 .text
23397 addl r16 = @ltoff(@dtpmod(foo#)), gp
23398 addl r17 = @ltoff(@dtprel(foo#)), gp
23399 addl r18 = @ltoff(@tprel(foo#)), gp
23400 addl r19 = @dtprel(foo#), gp
23401 adds r21 = @dtprel(foo#), r13
23402 movl r23 = @dtprel(foo#)
23403 addl r20 = @tprel(foo#), gp
23404 adds r22 = @tprel(foo#), r13
23405 movl r24 = @tprel(foo#)'
23406 tls_first_major=2
23407 tls_first_minor=13
23408 tls_as_opt=--fatal-warnings
23409 ;;
23410 microblaze*-*-*)
23411 conftest_s='
23412 .section .tdata,"awT",@progbits
23413 x:
23414 .word 2
23415 .text
23416 addik r5,r20,x@TLSGD
23417 addik r5,r20,x@TLSLDM'
23418 tls_first_major=2
23419 tls_first_minor=20
23420 tls_as_opt='--fatal-warnings'
23421 ;;
23422 mips*-*-*)
23423 conftest_s='
23424 .section .tdata,"awT",@progbits
23425 x:
23426 .word 2
23427 .text
23428 addiu $4, $28, %tlsgd(x)
23429 addiu $4, $28, %tlsldm(x)
23430 lui $4, %dtprel_hi(x)
23431 addiu $4, $4, %dtprel_lo(x)
23432 lw $4, %gottprel(x)($28)
23433 lui $4, %tprel_hi(x)
23434 addiu $4, $4, %tprel_lo(x)'
23435 tls_first_major=2
23436 tls_first_minor=16
23437 tls_as_opt='-32 --fatal-warnings'
23438 ;;
23439 m68k-*-*)
23440 conftest_s='
23441 .section .tdata,"awT",@progbits
23442 x:
23443 .word 2
23444 .text
23445 foo:
23446 move.l x@TLSGD(%a5),%a0
23447 move.l x@TLSLDM(%a5),%a0
23448 move.l x@TLSLDO(%a5),%a0
23449 move.l x@TLSIE(%a5),%a0
23450 move.l x@TLSLE(%a5),%a0'
23451 tls_first_major=2
23452 tls_first_minor=19
23453 tls_as_opt='--fatal-warnings'
23454 ;;
23455 nios2-*-*)
23456 conftest_s='
23457 .section ".tdata","awT",@progbits'
23458 tls_first_major=2
23459 tls_first_minor=23
23460 tls_as_opt="--fatal-warnings"
23461 ;;
23462 aarch64*-*-*)
23463 conftest_s='
23464 .section ".tdata","awT",%progbits
23465 foo: .long 25
23466 .text
23467 adrp x0, :tlsgd:x
23468 add x0, x0, #:tlsgd_lo12:x
23469 bl __tls_get_addr
23470 nop'
23471 tls_first_major=2
23472 tls_first_minor=20
23473 tls_as_opt='--fatal-warnings'
23474 ;;
23475 powerpc-ibm-aix*)
23476 conftest_s='
23477 .extern __get_tpointer
23478 .toc
23479 LC..1:
23480 .tc a[TC],a[TL]@le
23481 .csect .text[PR]
23482 .tlstest:
23483 lwz 9,LC..1(2)
23484 bla __get_tpointer
23485 lwzx 3,9,3
23486 .globl a
23487 .csect a[TL],4
23488 a:
23489 .space 4'
23490 tls_first_major=0
23491 tls_first_minor=0
23492 ;;
23493 powerpc64*-*-*)
23494 conftest_s='
23495 .section ".tdata","awT",@progbits
23496 .align 3
23497 ld0: .space 8
23498 ld1: .space 8
23499 x1: .space 8
23500 x2: .space 8
23501 x3: .space 8
23502 .text
23503 addi 3,2,ld0@got@tlsgd
23504 bl .__tls_get_addr
23505 nop
23506 addi 3,2,ld1@toc
23507 bl .__tls_get_addr
23508 nop
23509 addi 3,2,x1@got@tlsld
23510 bl .__tls_get_addr
23511 nop
23512 addi 9,3,x1@dtprel
23513 bl .__tls_get_addr
23514 nop
23515 addis 9,3,x2@dtprel@ha
23516 addi 9,9,x2@dtprel@l
23517 bl .__tls_get_addr
23518 nop
23519 ld 9,x3@got@dtprel(2)
23520 add 9,9,3
23521 bl .__tls_get_addr
23522 nop'
23523 tls_first_major=2
23524 tls_first_minor=14
23525 tls_as_opt="-a64 --fatal-warnings"
23526 ;;
23527 powerpc*-*-*)
23528 conftest_s='
23529 .section ".tdata","awT",@progbits
23530 .align 2
23531 ld0: .space 4
23532 ld1: .space 4
23533 x1: .space 4
23534 x2: .space 4
23535 x3: .space 4
23536 .text
23537 addi 3,31,ld0@got@tlsgd
23538 bl __tls_get_addr
23539 addi 3,31,x1@got@tlsld
23540 bl __tls_get_addr
23541 addi 9,3,x1@dtprel
23542 addis 9,3,x2@dtprel@ha
23543 addi 9,9,x2@dtprel@l
23544 lwz 9,x3@got@tprel(31)
23545 add 9,9,x@tls
23546 addi 9,2,x1@tprel
23547 addis 9,2,x2@tprel@ha
23548 addi 9,9,x2@tprel@l'
23549 tls_first_major=2
23550 tls_first_minor=14
23551 tls_as_opt="-a32 --fatal-warnings"
23552 ;;
23553 s390-*-*)
23554 conftest_s='
23555 .section ".tdata","awT",@progbits
23556 foo: .long 25
23557 .text
23558 .long foo@TLSGD
23559 .long foo@TLSLDM
23560 .long foo@DTPOFF
23561 .long foo@NTPOFF
23562 .long foo@GOTNTPOFF
23563 .long foo@INDNTPOFF
23564 l %r1,foo@GOTNTPOFF(%r12)
23565 l %r1,0(%r1):tls_load:foo
23566 bas %r14,0(%r1,%r13):tls_gdcall:foo
23567 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23568 tls_first_major=2
23569 tls_first_minor=14
23570 tls_as_opt="-m31 --fatal-warnings"
23571 ;;
23572 s390x-*-*)
23573 conftest_s='
23574 .section ".tdata","awT",@progbits
23575 foo: .long 25
23576 .text
23577 .quad foo@TLSGD
23578 .quad foo@TLSLDM
23579 .quad foo@DTPOFF
23580 .quad foo@NTPOFF
23581 .quad foo@GOTNTPOFF
23582 lg %r1,foo@GOTNTPOFF(%r12)
23583 larl %r1,foo@INDNTPOFF
23584 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23585 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23586 tls_first_major=2
23587 tls_first_minor=14
23588 tls_as_opt="-m64 -Aesame --fatal-warnings"
23589 ;;
23590 sh-*-* | sh[34]-*-*)
23591 conftest_s='
23592 .section ".tdata","awT",@progbits
23593 foo: .long 25
23594 .text
23595 .long foo@TLSGD
23596 .long foo@TLSLDM
23597 .long foo@DTPOFF
23598 .long foo@GOTTPOFF
23599 .long foo@TPOFF'
23600 tls_first_major=2
23601 tls_first_minor=13
23602 tls_as_opt=--fatal-warnings
23603 ;;
23604 sparc*-*-*)
23605 case "$target" in
23606 sparc*-sun-solaris2.*)
23607 on_solaris=yes
23608 ;;
23609 *)
23610 on_solaris=no
23611 ;;
23612 esac
23613 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23614 conftest_s='
23615 .section ".tdata",#alloc,#write,#tls'
23616 tls_first_major=0
23617 tls_first_minor=0
23618 else
23619 conftest_s='
23620 .section ".tdata","awT",@progbits'
23621 tls_first_major=2
23622 tls_first_minor=14
23623 tls_as_opt="-32 --fatal-warnings"
23624 fi
23625 conftest_s="$conftest_s
23626 foo: .long 25
23627 .text
23628 sethi %tgd_hi22(foo), %o0
23629 add %o0, %tgd_lo10(foo), %o1
23630 add %l7, %o1, %o0, %tgd_add(foo)
23631 call __tls_get_addr, %tgd_call(foo)
23632 sethi %tldm_hi22(foo), %l1
23633 add %l1, %tldm_lo10(foo), %l2
23634 add %l7, %l2, %o0, %tldm_add(foo)
23635 call __tls_get_addr, %tldm_call(foo)
23636 sethi %tldo_hix22(foo), %l3
23637 xor %l3, %tldo_lox10(foo), %l4
23638 add %o0, %l4, %l5, %tldo_add(foo)
23639 sethi %tie_hi22(foo), %o3
23640 add %o3, %tie_lo10(foo), %o3
23641 ld [%l7 + %o3], %o2, %tie_ld(foo)
23642 add %g7, %o2, %o4, %tie_add(foo)
23643 sethi %tle_hix22(foo), %l1
23644 xor %l1, %tle_lox10(foo), %o5
23645 ld [%g7 + %o5], %o1"
23646 ;;
23647 tilepro*-*-*)
23648 conftest_s='
23649 .section ".tdata","awT",@progbits
23650 foo: .long 25
23651 .text
23652 addli r0, zero, tls_gd(foo)
23653 auli r0, zero, tls_gd_ha16(foo)
23654 addli r0, r0, tls_gd_lo16(foo)
23655 jal __tls_get_addr
23656 addli r0, zero, tls_ie(foo)
23657 auli r0, r0, tls_ie_ha16(foo)
23658 addli r0, r0, tls_ie_lo16(foo)'
23659 tls_first_major=2
23660 tls_first_minor=22
23661 tls_as_opt="--fatal-warnings"
23662 ;;
23663 tilegx*-*-*)
23664 conftest_s='
23665 .section ".tdata","awT",@progbits
23666 foo: .long 25
23667 .text
23668 shl16insli r0, zero, hw0_last_tls_gd(foo)
23669 shl16insli r0, zero, hw1_last_tls_gd(foo)
23670 shl16insli r0, r0, hw0_tls_gd(foo)
23671 jal __tls_get_addr
23672 shl16insli r0, zero, hw1_last_tls_ie(foo)
23673 shl16insli r0, r0, hw0_tls_ie(foo)'
23674 tls_first_major=2
23675 tls_first_minor=22
23676 tls_as_opt="--fatal-warnings"
23677 ;;
23678 xtensa*-*-*)
23679 conftest_s='
23680 .section ".tdata","awT",@progbits
23681 foo: .long 25
23682 .text
23683 movi a8, foo@TLSFUNC
23684 movi a10, foo@TLSARG
23685 callx8.tls a8, foo@TLSCALL'
23686 tls_first_major=2
23687 tls_first_minor=19
23688 ;;
23689 esac
23690 set_have_as_tls=no
23691 if test "x$enable_tls" = xno ; then
23692 : # TLS explicitly disabled.
23693 elif test "x$enable_tls" = xyes ; then
23694 set_have_as_tls=yes # TLS explicitly enabled.
23695 elif test -z "$tls_first_major"; then
23696 : # If we don't have a check, assume no support.
23697 else
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23699 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23700 if test "${gcc_cv_as_tls+set}" = set; then :
23701 $as_echo_n "(cached) " >&6
23702 else
23703 gcc_cv_as_tls=no
23704 if test $in_tree_gas = yes; then
23705 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23706 then gcc_cv_as_tls=yes
23707 fi
23708 elif test x$gcc_cv_as != x; then
23709 $as_echo "$conftest_s" > conftest.s
23710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23715 test $ac_status = 0; }; }
23716 then
23717 gcc_cv_as_tls=yes
23718 else
23719 echo "configure: failed program was" >&5
23720 cat conftest.s >&5
23721 fi
23722 rm -f conftest.o conftest.s
23723 fi
23724 fi
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23726 $as_echo "$gcc_cv_as_tls" >&6; }
23727 if test $gcc_cv_as_tls = yes; then
23728 set_have_as_tls=yes
23729 fi
23730 fi
23731 if test $set_have_as_tls = yes ; then
23732
23733 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23734
23735 fi
23736
23737 # Target-specific assembler checks.
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23740 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23741 gcc_cv_ld_static_dynamic=no
23742 gcc_cv_ld_static_option='-Bstatic'
23743 gcc_cv_ld_dynamic_option='-Bdynamic'
23744 if test $in_tree_ld = yes ; then
23745 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
23746 gcc_cv_ld_static_dynamic=yes
23747 fi
23748 elif test x$gcc_cv_ld != x; then
23749 # Check if linker supports -Bstatic/-Bdynamic option
23750 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23751 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23752 gcc_cv_ld_static_dynamic=yes
23753 else
23754 case "$target" in
23755 # AIX ld uses -b flags
23756 *-*-aix4.[23]* | *-*-aix[5-9]*)
23757 gcc_cv_ld_static_dynamic=yes
23758 gcc_cv_ld_static_option="-bstatic"
23759 gcc_cv_ld_dynamic_option="-bdynamic"
23760 ;;
23761 # HP-UX ld uses -a flags to select between shared and archive.
23762 *-*-hpux*)
23763 if test x"$gnu_ld" = xno; then
23764 gcc_cv_ld_static_dynamic=yes
23765 gcc_cv_ld_static_option="-aarchive_shared"
23766 gcc_cv_ld_dynamic_option="-adefault"
23767 fi
23768 ;;
23769 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23770 *-*-solaris2*)
23771 gcc_cv_ld_static_dynamic=yes
23772 ;;
23773 esac
23774 fi
23775 fi
23776 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23777
23778 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23779
23780
23781 cat >>confdefs.h <<_ACEOF
23782 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23783 _ACEOF
23784
23785
23786 cat >>confdefs.h <<_ACEOF
23787 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23788 _ACEOF
23789
23790 fi
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23792 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23793
23794 if test x"$demangler_in_ld" = xyes; then
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23796 $as_echo_n "checking linker --demangle support... " >&6; }
23797 gcc_cv_ld_demangle=no
23798 if test $in_tree_ld = yes; then
23799 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 \
23800 gcc_cv_ld_demangle=yes
23801 fi
23802 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23803 # Check if the GNU linker supports --demangle option
23804 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23805 gcc_cv_ld_demangle=yes
23806 fi
23807 fi
23808 if test x"$gcc_cv_ld_demangle" = xyes; then
23809
23810 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23811
23812 fi
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23814 $as_echo "$gcc_cv_ld_demangle" >&6; }
23815 fi
23816
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23818 $as_echo_n "checking linker plugin support... " >&6; }
23819 gcc_cv_lto_plugin=0
23820 if test -f liblto_plugin.la; then
23821 save_ld_ver="$ld_ver"
23822 save_ld_vers_major="$ld_vers_major"
23823 save_ld_vers_minor="$ld_vers_minor"
23824 save_ld_is_gold="$ld_is_gold"
23825
23826 ld_is_gold=no
23827
23828 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23829 ld_ver="GNU ld"
23830 # FIXME: ld_is_gold?
23831 ld_vers_major="$gcc_cv_gld_major_version"
23832 ld_vers_minor="$gcc_cv_gld_minor_version"
23833 else
23834 # Determine plugin linker version.
23835 # FIXME: Partial duplicate from above, generalize.
23836 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23837 if echo "$ld_ver" | grep GNU > /dev/null; then
23838 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23839 ld_is_gold=yes
23840 ld_vers=`echo $ld_ver | sed -n \
23841 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23842 else
23843 ld_vers=`echo $ld_ver | sed -n \
23844 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23845 fi
23846 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23847 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23848 fi
23849 fi
23850
23851 # Determine plugin support.
23852 if echo "$ld_ver" | grep GNU > /dev/null; then
23853 # Require GNU ld or gold 2.21+ for plugin support by default.
23854 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23855 gcc_cv_lto_plugin=2
23856 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23857 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23858 gcc_cv_lto_plugin=1
23859 fi
23860 fi
23861
23862 ld_ver="$save_ld_ver"
23863 ld_vers_major="$save_ld_vers_major"
23864 ld_vers_minor="$save_ld_vers_minor"
23865 ld_is_gold="$save_ld_is_gold"
23866 fi
23867
23868 cat >>confdefs.h <<_ACEOF
23869 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23870 _ACEOF
23871
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23873 $as_echo "$gcc_cv_lto_plugin" >&6; }
23874
23875 case "$target" in
23876 aarch64*-*-*)
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23878 $as_echo_n "checking assembler for -mabi option... " >&6; }
23879 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23880 $as_echo_n "(cached) " >&6
23881 else
23882 gcc_cv_as_aarch64_mabi=no
23883 if test x$gcc_cv_as != x; then
23884 $as_echo '.text' > conftest.s
23885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23890 test $ac_status = 0; }; }
23891 then
23892 gcc_cv_as_aarch64_mabi=yes
23893 else
23894 echo "configure: failed program was" >&5
23895 cat conftest.s >&5
23896 fi
23897 rm -f conftest.o conftest.s
23898 fi
23899 fi
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23901 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23902
23903 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23904
23905 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23906
23907 else
23908 if test x$with_abi = xilp32; then
23909 as_fn_error "Assembler does not support -mabi=ilp32.\
23910 Upgrade the Assembler." "$LINENO" 5
23911 fi
23912 if test x"$with_multilib_list" = xdefault; then
23913 TM_MULTILIB_CONFIG=lp64
23914 else
23915 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23916 for aarch64_multilib in ${aarch64_multilibs}; do
23917 case ${aarch64_multilib} in
23918 ilp32)
23919 as_fn_error "Assembler does not support -mabi=ilp32.\
23920 Upgrade the Assembler." "$LINENO" 5
23921 ;;
23922 *)
23923 ;;
23924 esac
23925 done
23926 fi
23927 fi
23928 ;;
23929
23930 # All TARGET_ABI_OSF targets.
23931 alpha*-*-linux* | alpha*-*-*bsd*)
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23933 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23934 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23936 else
23937 gcc_cv_as_alpha_explicit_relocs=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23940 then gcc_cv_as_alpha_explicit_relocs=yes
23941 fi
23942 elif test x$gcc_cv_as != x; then
23943 $as_echo ' .set nomacro
23944 .text
23945 extbl $3, $2, $3 !lituse_bytoff!1
23946 ldq $2, a($29) !literal!1
23947 ldq $4, b($29) !literal!2
23948 ldq_u $3, 0($2) !lituse_base!1
23949 ldq $27, f($29) !literal!5
23950 jsr $26, ($27), f !lituse_jsr!5
23951 ldah $29, 0($26) !gpdisp!3
23952 lda $0, c($29) !gprel
23953 ldah $1, d($29) !gprelhigh
23954 lda $1, d($1) !gprellow
23955 lda $29, 0($29) !gpdisp!3' > conftest.s
23956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961 test $ac_status = 0; }; }
23962 then
23963 gcc_cv_as_alpha_explicit_relocs=yes
23964 else
23965 echo "configure: failed program was" >&5
23966 cat conftest.s >&5
23967 fi
23968 rm -f conftest.o conftest.s
23969 fi
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23972 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23973 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23974
23975 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23976
23977 fi
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23979 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23980 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23983 gcc_cv_as_alpha_jsrdirect_relocs=no
23984 if test $in_tree_gas = yes; then
23985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23986 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23987 fi
23988 elif test x$gcc_cv_as != x; then
23989 $as_echo ' .set nomacro
23990 .text
23991 ldq $27, a($29) !literal!1
23992 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23998 test $ac_status = 0; }; }
23999 then
24000 gcc_cv_as_alpha_jsrdirect_relocs=yes
24001 else
24002 echo "configure: failed program was" >&5
24003 cat conftest.s >&5
24004 fi
24005 rm -f conftest.o conftest.s
24006 fi
24007 fi
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24009 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24010 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24011
24012 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24013
24014 fi
24015 ;;
24016
24017 cris-*-*)
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24019 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24020 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24022 else
24023 gcc_cv_as_cris_no_mul_bug=no
24024 if test $in_tree_gas = yes; then
24025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24026 then gcc_cv_as_cris_no_mul_bug=yes
24027 fi
24028 elif test x$gcc_cv_as != x; then
24029 $as_echo '.text' > conftest.s
24030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24036 then
24037 gcc_cv_as_cris_no_mul_bug=yes
24038 else
24039 echo "configure: failed program was" >&5
24040 cat conftest.s >&5
24041 fi
24042 rm -f conftest.o conftest.s
24043 fi
24044 fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24046 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24047 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24048
24049 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24050
24051 fi
24052 ;;
24053
24054 sparc*-*-*)
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24056 $as_echo_n "checking assembler for .register... " >&6; }
24057 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 gcc_cv_as_sparc_register_op=no
24061 if test x$gcc_cv_as != x; then
24062 $as_echo '.register %g2, #scratch' > conftest.s
24063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; }
24069 then
24070 gcc_cv_as_sparc_register_op=yes
24071 else
24072 echo "configure: failed program was" >&5
24073 cat conftest.s >&5
24074 fi
24075 rm -f conftest.o conftest.s
24076 fi
24077 fi
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24079 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24080 if test $gcc_cv_as_sparc_register_op = yes; then
24081
24082 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24083
24084 fi
24085
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24087 $as_echo_n "checking assembler for #nobits... " >&6; }
24088 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24089 $as_echo_n "(cached) " >&6
24090 else
24091 gcc_cv_as_sparc_nobits=no
24092 if test x$gcc_cv_as != x; then
24093 $as_echo '.section "nobits",#alloc,#write,#nobits
24094 .section "progbits",#alloc,#write,#progbits' > conftest.s
24095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097 (eval $ac_try) 2>&5
24098 ac_status=$?
24099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100 test $ac_status = 0; }; }
24101 then
24102 gcc_cv_as_sparc_nobits=yes
24103 else
24104 echo "configure: failed program was" >&5
24105 cat conftest.s >&5
24106 fi
24107 rm -f conftest.o conftest.s
24108 fi
24109 fi
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24111 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24112
24113
24114 cat >>confdefs.h <<_ACEOF
24115 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24116 _ACEOF
24117
24118
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24120 $as_echo_n "checking assembler for -relax option... " >&6; }
24121 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24122 $as_echo_n "(cached) " >&6
24123 else
24124 gcc_cv_as_sparc_relax=no
24125 if test x$gcc_cv_as != x; then
24126 $as_echo '.text' > conftest.s
24127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24133 then
24134 gcc_cv_as_sparc_relax=yes
24135 else
24136 echo "configure: failed program was" >&5
24137 cat conftest.s >&5
24138 fi
24139 rm -f conftest.o conftest.s
24140 fi
24141 fi
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24143 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24144 if test $gcc_cv_as_sparc_relax = yes; then
24145
24146 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24147
24148 fi
24149
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24151 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24152 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 gcc_cv_as_sparc_gotdata_op=no
24156 if test x$gcc_cv_as != x; then
24157 $as_echo '.text
24158 .align 4
24159 foo:
24160 nop
24161 bar:
24162 sethi %gdop_hix22(foo), %g1
24163 xor %g1, %gdop_lox10(foo), %g1
24164 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 if test x$gcc_cv_ld != x \
24173 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24174 if test x$gcc_cv_objdump != x; then
24175 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24176 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24177 gcc_cv_as_sparc_gotdata_op=no
24178 else
24179 gcc_cv_as_sparc_gotdata_op=yes
24180 fi
24181 fi
24182 fi
24183 rm -f conftest
24184 else
24185 echo "configure: failed program was" >&5
24186 cat conftest.s >&5
24187 fi
24188 rm -f conftest.o conftest.s
24189 fi
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24192 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24193 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24194
24195 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24196
24197 fi
24198
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24200 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24201 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24202 $as_echo_n "(cached) " >&6
24203 else
24204 gcc_cv_as_sparc_ua_pcrel=no
24205 if test x$gcc_cv_as != x; then
24206 $as_echo '.text
24207 foo:
24208 nop
24209 .data
24210 .align 4
24211 .byte 0
24212 .uaword %r_disp32(foo)' > conftest.s
24213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218 test $ac_status = 0; }; }
24219 then
24220 if test x$gcc_cv_ld != x \
24221 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24222 gcc_cv_as_sparc_ua_pcrel=yes
24223 fi
24224 rm -f conftest
24225 else
24226 echo "configure: failed program was" >&5
24227 cat conftest.s >&5
24228 fi
24229 rm -f conftest.o conftest.s
24230 fi
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24233 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24234 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24235
24236 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24237
24238
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24240 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24241 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24243 else
24244 gcc_cv_as_sparc_ua_pcrel_hidden=no
24245 if test x$gcc_cv_as != x; then
24246 $as_echo '.data
24247 .align 4
24248 .byte 0x31
24249 .uaword %r_disp32(foo)
24250 .byte 0x32, 0x33, 0x34
24251 .global foo
24252 .hidden foo
24253 foo:
24254 .skip 4' > conftest.s
24255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }
24261 then
24262 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24263 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24264 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24265 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24266 if $gcc_cv_objdump -R conftest 2> /dev/null \
24267 | grep 'DISP32' > /dev/null 2>&1; then
24268 :
24269 else
24270 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24271 fi
24272 fi
24273 rm -f conftest
24274 else
24275 echo "configure: failed program was" >&5
24276 cat conftest.s >&5
24277 fi
24278 rm -f conftest.o conftest.s
24279 fi
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24282 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24283 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24284
24285 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24286
24287 fi
24288
24289 fi # unaligned pcrel relocs
24290
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24292 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24293 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 gcc_cv_as_sparc_offsetable_lo10=no
24297 if test x$gcc_cv_as != x; then
24298 $as_echo '.text
24299 or %g1, %lo(ab) + 12, %g1
24300 or %g1, %lo(ab + 12), %g1' > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24307 then
24308 if test x$gcc_cv_objdump != x \
24309 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24310 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24311 gcc_cv_as_sparc_offsetable_lo10=yes
24312 fi
24313 else
24314 echo "configure: failed program was" >&5
24315 cat conftest.s >&5
24316 fi
24317 rm -f conftest.o conftest.s
24318 fi
24319 fi
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24321 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24322 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24323
24324 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24325
24326 fi
24327
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24329 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24330 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 gcc_cv_as_sparc_fmaf=no
24334 if test x$gcc_cv_as != x; then
24335 $as_echo '.text
24336 .register %g2, #scratch
24337 .register %g3, #scratch
24338 .align 4
24339 fmaddd %f0, %f2, %f4, %f6
24340 addxccc %g1, %g2, %g3
24341 fsrl32 %f2, %f4, %f8
24342 fnaddd %f10, %f12, %f14' > conftest.s
24343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24349 then
24350 gcc_cv_as_sparc_fmaf=yes
24351 else
24352 echo "configure: failed program was" >&5
24353 cat conftest.s >&5
24354 fi
24355 rm -f conftest.o conftest.s
24356 fi
24357 fi
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24359 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24360 if test $gcc_cv_as_sparc_fmaf = yes; then
24361
24362 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24363
24364 fi
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24367 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24368 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24369 $as_echo_n "(cached) " >&6
24370 else
24371 gcc_cv_as_sparc_sparc4=no
24372 if test x$gcc_cv_as != x; then
24373 $as_echo '.text
24374 .register %g2, #scratch
24375 .register %g3, #scratch
24376 .align 4
24377 cxbe %g2, %g3, 1f
24378 1: cwbneg %g2, %g3, 1f
24379 1: sha1
24380 md5
24381 aes_kexpand0 %f4, %f6, %f8
24382 des_round %f38, %f40, %f42, %f44
24383 camellia_f %f54, %f56, %f58, %f60
24384 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390 test $ac_status = 0; }; }
24391 then
24392 gcc_cv_as_sparc_sparc4=yes
24393 else
24394 echo "configure: failed program was" >&5
24395 cat conftest.s >&5
24396 fi
24397 rm -f conftest.o conftest.s
24398 fi
24399 fi
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24401 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24402 if test $gcc_cv_as_sparc_sparc4 = yes; then
24403
24404 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24405
24406 fi
24407
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24409 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24410 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24411 $as_echo_n "(cached) " >&6
24412 else
24413 gcc_cv_as_sparc_leon=no
24414 if test x$gcc_cv_as != x; then
24415 $as_echo '.text
24416 .register %g2, #scratch
24417 .register %g3, #scratch
24418 .align 4
24419 smac %g2, %g3, %g1
24420 umac %g2, %g3, %g1
24421 casa [%g2] 0xb, %g3, %g1' > conftest.s
24422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24424 (eval $ac_try) 2>&5
24425 ac_status=$?
24426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24427 test $ac_status = 0; }; }
24428 then
24429 gcc_cv_as_sparc_leon=yes
24430 else
24431 echo "configure: failed program was" >&5
24432 cat conftest.s >&5
24433 fi
24434 rm -f conftest.o conftest.s
24435 fi
24436 fi
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24438 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24439 if test $gcc_cv_as_sparc_leon = yes; then
24440
24441 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24442
24443 fi
24444 ;;
24445
24446 i[34567]86-*-* | x86_64-*-*)
24447 case $target_os in
24448 cygwin*)
24449 # Full C++ conformance when using a shared libstdc++-v3 requires some
24450 # support from the Cygwin DLL, which in more recent versions exports
24451 # wrappers to aid in interposing and redirecting operators new, delete,
24452 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24453 # are configuring for a version of Cygwin that exports the wrappers.
24454 if test x$host = x$target && test x$host_cpu = xi686; then
24455 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24456 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24457 gcc_ac_cygwin_dll_wrappers=yes
24458 else
24459 gcc_ac_cygwin_dll_wrappers=no
24460 fi
24461
24462 else
24463 # Can't check presence of libc functions during cross-compile, so
24464 # we just have to assume we're building for an up-to-date target.
24465 gcc_ac_cygwin_dll_wrappers=yes
24466 fi
24467
24468 cat >>confdefs.h <<_ACEOF
24469 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24470 _ACEOF
24471
24472 esac
24473 case $target_os in
24474 cygwin* | pe | mingw32* | interix*)
24475 # Recent binutils allows the three-operand form of ".comm" on PE. This
24476 # definition is used unconditionally to initialise the default state of
24477 # the target option variable that governs usage of the feature.
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24479 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24480 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24482 else
24483 gcc_cv_as_comm_has_align=no
24484 if test $in_tree_gas = yes; then
24485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24486 then gcc_cv_as_comm_has_align=yes
24487 fi
24488 elif test x$gcc_cv_as != x; then
24489 $as_echo '.comm foo,1,32' > conftest.s
24490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; }
24496 then
24497 gcc_cv_as_comm_has_align=yes
24498 else
24499 echo "configure: failed program was" >&5
24500 cat conftest.s >&5
24501 fi
24502 rm -f conftest.o conftest.s
24503 fi
24504 fi
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24506 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24507
24508
24509 cat >>confdefs.h <<_ACEOF
24510 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24511 _ACEOF
24512
24513 # Used for DWARF 2 in PE
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24515 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24516 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24517 $as_echo_n "(cached) " >&6
24518 else
24519 gcc_cv_as_ix86_pe_secrel32=no
24520 if test $in_tree_gas = yes; then
24521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24522 then gcc_cv_as_ix86_pe_secrel32=yes
24523 fi
24524 elif test x$gcc_cv_as != x; then
24525 $as_echo '.text
24526 foo: nop
24527 .data
24528 .secrel32 foo' > conftest.s
24529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24535 then
24536 if test x$gcc_cv_ld != x \
24537 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24538 gcc_cv_as_ix86_pe_secrel32=yes
24539 fi
24540 rm -f conftest
24541 else
24542 echo "configure: failed program was" >&5
24543 cat conftest.s >&5
24544 fi
24545 rm -f conftest.o conftest.s
24546 fi
24547 fi
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24549 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24550 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24551
24552 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24553
24554 fi
24555 # Test if the assembler supports the extended form of the .section
24556 # directive that specifies section alignment. LTO support uses this,
24557 # but normally only after installation, so we warn but don't fail the
24558 # configure if LTO is enabled but the assembler does not support it.
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24560 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24561 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24563 else
24564 gcc_cv_as_section_has_align=no
24565 if test $in_tree_gas = yes; then
24566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24567 then gcc_cv_as_section_has_align=yes
24568 fi
24569 elif test x$gcc_cv_as != x; then
24570 $as_echo '.section lto_test,"dr0"' > conftest.s
24571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24574 ac_status=$?
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; }
24577 then
24578 gcc_cv_as_section_has_align=yes
24579 else
24580 echo "configure: failed program was" >&5
24581 cat conftest.s >&5
24582 fi
24583 rm -f conftest.o conftest.s
24584 fi
24585 fi
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24587 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24588
24589 if test x$gcc_cv_as_section_has_align != xyes; then
24590 case ",$enable_languages," in
24591 *,lto,*)
24592 { $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
24593 $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;}
24594 ;;
24595 esac
24596 fi
24597 # Test if the assembler supports the section flag 'e' for specifying
24598 # an excluded section.
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24600 $as_echo_n "checking assembler for .section with e... " >&6; }
24601 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 gcc_cv_as_section_has_e=no
24605 if test $in_tree_gas = yes; then
24606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24607 then gcc_cv_as_section_has_e=yes
24608 fi
24609 elif test x$gcc_cv_as != x; then
24610 $as_echo '.section foo1,"e"
24611 .byte 0,0,0,0' > conftest.s
24612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24618 then
24619 gcc_cv_as_section_has_e=yes
24620 else
24621 echo "configure: failed program was" >&5
24622 cat conftest.s >&5
24623 fi
24624 rm -f conftest.o conftest.s
24625 fi
24626 fi
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24628 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24629
24630
24631 cat >>confdefs.h <<_ACEOF
24632 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24633 _ACEOF
24634
24635 ;;
24636 esac
24637
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24639 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24640 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24641 $as_echo_n "(cached) " >&6
24642 else
24643 gcc_cv_as_ix86_filds=no
24644 if test x$gcc_cv_as != x; then
24645 $as_echo 'filds mem; fists mem' > conftest.s
24646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24651 test $ac_status = 0; }; }
24652 then
24653 gcc_cv_as_ix86_filds=yes
24654 else
24655 echo "configure: failed program was" >&5
24656 cat conftest.s >&5
24657 fi
24658 rm -f conftest.o conftest.s
24659 fi
24660 fi
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24662 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24663 if test $gcc_cv_as_ix86_filds = yes; then
24664
24665 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24666
24667 fi
24668
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24670 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24671 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24672 $as_echo_n "(cached) " >&6
24673 else
24674 gcc_cv_as_ix86_fildq=no
24675 if test x$gcc_cv_as != x; then
24676 $as_echo 'fildq mem; fistpq mem' > conftest.s
24677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24683 then
24684 gcc_cv_as_ix86_fildq=yes
24685 else
24686 echo "configure: failed program was" >&5
24687 cat conftest.s >&5
24688 fi
24689 rm -f conftest.o conftest.s
24690 fi
24691 fi
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24693 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24694 if test $gcc_cv_as_ix86_fildq = yes; then
24695
24696 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24697
24698 fi
24699
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24701 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24702 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 gcc_cv_as_ix86_cmov_sun_syntax=no
24706 if test x$gcc_cv_as != x; then
24707 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713 test $ac_status = 0; }; }
24714 then
24715 gcc_cv_as_ix86_cmov_sun_syntax=yes
24716 else
24717 echo "configure: failed program was" >&5
24718 cat conftest.s >&5
24719 fi
24720 rm -f conftest.o conftest.s
24721 fi
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24724 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24725 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24726
24727 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24728
24729 fi
24730
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24732 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24733 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24734 $as_echo_n "(cached) " >&6
24735 else
24736 gcc_cv_as_ix86_ffreep=no
24737 if test x$gcc_cv_as != x; then
24738 $as_echo 'ffreep %st(1)' > conftest.s
24739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24745 then
24746 gcc_cv_as_ix86_ffreep=yes
24747 else
24748 echo "configure: failed program was" >&5
24749 cat conftest.s >&5
24750 fi
24751 rm -f conftest.o conftest.s
24752 fi
24753 fi
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24755 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24756 if test $gcc_cv_as_ix86_ffreep = yes; then
24757
24758 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24759
24760 fi
24761
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24763 $as_echo_n "checking assembler for .quad directive... " >&6; }
24764 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24766 else
24767 gcc_cv_as_ix86_quad=no
24768 if test x$gcc_cv_as != x; then
24769 $as_echo '.quad 0' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 gcc_cv_as_ix86_quad=yes
24778 else
24779 echo "configure: failed program was" >&5
24780 cat conftest.s >&5
24781 fi
24782 rm -f conftest.o conftest.s
24783 fi
24784 fi
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24786 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24787 if test $gcc_cv_as_ix86_quad = yes; then
24788
24789 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24790
24791 fi
24792
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24794 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24795 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24796 $as_echo_n "(cached) " >&6
24797 else
24798 gcc_cv_as_ix86_sahf=no
24799 if test x$gcc_cv_as != x; then
24800 $as_echo '.code64
24801 sahf' > conftest.s
24802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24808 then
24809 gcc_cv_as_ix86_sahf=yes
24810 else
24811 echo "configure: failed program was" >&5
24812 cat conftest.s >&5
24813 fi
24814 rm -f conftest.o conftest.s
24815 fi
24816 fi
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24818 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24819 if test $gcc_cv_as_ix86_sahf = yes; then
24820
24821 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24822
24823 fi
24824
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24826 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24827 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 gcc_cv_as_ix86_interunit_movq=no
24831 if test x$gcc_cv_as != x; then
24832 $as_echo '.code64
24833 movq %mm0, %rax
24834 movq %rax, %xmm0' > conftest.s
24835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24841 then
24842 gcc_cv_as_ix86_interunit_movq=yes
24843 else
24844 echo "configure: failed program was" >&5
24845 cat conftest.s >&5
24846 fi
24847 rm -f conftest.o conftest.s
24848 fi
24849 fi
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24851 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24852
24853
24854 cat >>confdefs.h <<_ACEOF
24855 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24856 _ACEOF
24857
24858
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24860 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24861 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24862 $as_echo_n "(cached) " >&6
24863 else
24864 gcc_cv_as_ix86_hle=no
24865 if test x$gcc_cv_as != x; then
24866 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 gcc_cv_as_ix86_hle=yes
24875 else
24876 echo "configure: failed program was" >&5
24877 cat conftest.s >&5
24878 fi
24879 rm -f conftest.o conftest.s
24880 fi
24881 fi
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24883 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24884 if test $gcc_cv_as_ix86_hle = yes; then
24885
24886 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24887
24888 fi
24889
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24891 $as_echo_n "checking assembler for swap suffix... " >&6; }
24892 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24894 else
24895 gcc_cv_as_ix86_swap=no
24896 if test x$gcc_cv_as != x; then
24897 $as_echo 'movl.s %esp, %ebp' > conftest.s
24898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24904 then
24905 gcc_cv_as_ix86_swap=yes
24906 else
24907 echo "configure: failed program was" >&5
24908 cat conftest.s >&5
24909 fi
24910 rm -f conftest.o conftest.s
24911 fi
24912 fi
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24914 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24915 if test $gcc_cv_as_ix86_swap = yes; then
24916
24917 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24918
24919 fi
24920
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24922 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24923 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_ix86_diff_sect_delta=no
24927 if test x$gcc_cv_as != x; then
24928 $as_echo '.section .rodata
24929 .L1:
24930 .long .L2-.L1
24931 .long .L3-.L1
24932 .text
24933 .L3: nop
24934 .L2: nop' > conftest.s
24935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24941 then
24942 gcc_cv_as_ix86_diff_sect_delta=yes
24943 else
24944 echo "configure: failed program was" >&5
24945 cat conftest.s >&5
24946 fi
24947 rm -f conftest.o conftest.s
24948 fi
24949 fi
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24951 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24952 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24953
24954 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24955
24956 fi
24957
24958 # These two are used unconditionally by i386.[ch]; it is to be defined
24959 # to 1 if the feature is present, 0 otherwise.
24960 as_ix86_gotoff_in_data_opt=
24961 if test x$gas = xyes; then
24962 as_ix86_gotoff_in_data_opt="--32"
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24965 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24966 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24967 $as_echo_n "(cached) " >&6
24968 else
24969 gcc_cv_as_ix86_gotoff_in_data=no
24970 if test $in_tree_gas = yes; then
24971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24972 then gcc_cv_as_ix86_gotoff_in_data=yes
24973 fi
24974 elif test x$gcc_cv_as != x; then
24975 $as_echo ' .text
24976 .L0:
24977 nop
24978 .data
24979 .long .L0@GOTOFF' > conftest.s
24980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24982 (eval $ac_try) 2>&5
24983 ac_status=$?
24984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24985 test $ac_status = 0; }; }
24986 then
24987 gcc_cv_as_ix86_gotoff_in_data=yes
24988 else
24989 echo "configure: failed program was" >&5
24990 cat conftest.s >&5
24991 fi
24992 rm -f conftest.o conftest.s
24993 fi
24994 fi
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24996 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24997
24998
24999 cat >>confdefs.h <<_ACEOF
25000 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25001 _ACEOF
25002
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25005 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25006 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_ix86_rep_lock_prefix=no
25010 if test x$gcc_cv_as != x; then
25011 $as_echo 'rep movsl
25012 rep ret
25013 rep nop
25014 rep bsf %ecx, %eax
25015 rep bsr %ecx, %eax
25016 lock addl %edi, (%eax,%esi)
25017 lock orl $0, (%esp)' > conftest.s
25018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; }
25024 then
25025 gcc_cv_as_ix86_rep_lock_prefix=yes
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25029 fi
25030 rm -f conftest.o conftest.s
25031 fi
25032 fi
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25034 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25035 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25036
25037 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25038
25039 fi
25040
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25042 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25043 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25044 $as_echo_n "(cached) " >&6
25045 else
25046 gcc_cv_as_ix86_ud2=no
25047 if test x$gcc_cv_as != x; then
25048 $as_echo 'ud2' > conftest.s
25049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054 test $ac_status = 0; }; }
25055 then
25056 gcc_cv_as_ix86_ud2=yes
25057 else
25058 echo "configure: failed program was" >&5
25059 cat conftest.s >&5
25060 fi
25061 rm -f conftest.o conftest.s
25062 fi
25063 fi
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25065 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25066 if test $gcc_cv_as_ix86_ud2 = yes; then
25067
25068 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25069
25070 fi
25071
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25073 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25074 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_ix86_tlsgdplt=no
25078 if test x$gcc_cv_as != x; then
25079 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25086 then
25087 if test x$gcc_cv_ld != x \
25088 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25089 gcc_cv_as_ix86_tlsgdplt=yes
25090 fi
25091 rm -f conftest
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25095 fi
25096 rm -f conftest.o conftest.s
25097 fi
25098 fi
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25100 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25101 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25102
25103 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25104
25105 fi
25106
25107 conftest_s='
25108 .section .tdata,"aw'$tls_section_flag'",@progbits
25109 tls_ld:
25110 .section .text,"ax",@progbits
25111 call tls_ld@tlsldmplt'
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25113 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25114 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25116 else
25117 gcc_cv_as_ix86_tlsldmplt=no
25118 if test x$gcc_cv_as != x; then
25119 $as_echo "$conftest_s" > conftest.s
25120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; }
25126 then
25127 if test x$gcc_cv_ld != x \
25128 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25129 gcc_cv_as_ix86_tlsldmplt=yes
25130 fi
25131 rm -f conftest
25132 else
25133 echo "configure: failed program was" >&5
25134 cat conftest.s >&5
25135 fi
25136 rm -f conftest.o conftest.s
25137 fi
25138 fi
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25140 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25141
25142
25143 cat >>confdefs.h <<_ACEOF
25144 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25145 _ACEOF
25146
25147
25148 # Enforce 32-bit output with gas and gld.
25149 if test x$gas = xyes; then
25150 as_ix86_tls_ldm_opt="--32"
25151 fi
25152 if echo "$ld_ver" | grep GNU > /dev/null; then
25153 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25154 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25155 else
25156 ld_ix86_tls_ldm_opt="-melf_i386"
25157 fi
25158 fi
25159 conftest_s='
25160 .section .text,"ax",@progbits
25161 .globl _start
25162 .type _start, @function
25163 _start:
25164 leal value@tlsldm(%ebx), %eax
25165 call ___tls_get_addr@plt
25166
25167 .section .tdata,"aw'$tls_section_flag'",@progbits
25168 .type value, @object
25169 value:'
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25171 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25172 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25173 $as_echo_n "(cached) " >&6
25174 else
25175 gcc_cv_as_ix86_tlsldm=no
25176 if test x$gcc_cv_as != x; then
25177 $as_echo "$conftest_s" > conftest.s
25178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }; }
25184 then
25185 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25186 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25187 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25188 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25189 gcc_cv_as_ix86_tlsldm=yes
25190 fi
25191 fi
25192 rm -f conftest
25193 else
25194 echo "configure: failed program was" >&5
25195 cat conftest.s >&5
25196 fi
25197 rm -f conftest.o conftest.s
25198 fi
25199 fi
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25201 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25202
25203
25204 cat >>confdefs.h <<_ACEOF
25205 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25206 _ACEOF
25207
25208
25209 ;;
25210
25211 ia64*-*-*)
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25213 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25214 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25216 else
25217 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25218 if test $in_tree_gas = yes; then
25219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25220 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25221 fi
25222 elif test x$gcc_cv_as != x; then
25223 $as_echo ' .text
25224 addl r15 = @ltoffx(x#), gp
25225 ;;
25226 ld8.mov r16 = [r15], x#' > conftest.s
25227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25233 then
25234 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25235 else
25236 echo "configure: failed program was" >&5
25237 cat conftest.s >&5
25238 fi
25239 rm -f conftest.o conftest.s
25240 fi
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25243 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25244 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25245
25246 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25247
25248 fi
25249
25250 ;;
25251
25252 powerpc*-*-*)
25253 case $target in
25254 *-*-aix*) conftest_s=' .machine "pwr5"
25255 .csect .text[PR]
25256 mfcr 3,128';;
25257 *-*-darwin*)
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25259 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25260 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25262 else
25263 gcc_cv_as_machine_directive=no
25264 if test x$gcc_cv_as != x; then
25265 $as_echo ' .machine ppc7400' > conftest.s
25266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271 test $ac_status = 0; }; }
25272 then
25273 gcc_cv_as_machine_directive=yes
25274 else
25275 echo "configure: failed program was" >&5
25276 cat conftest.s >&5
25277 fi
25278 rm -f conftest.o conftest.s
25279 fi
25280 fi
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25282 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25283
25284 if test x$gcc_cv_as_machine_directive != xyes; then
25285 echo "*** This target requires an assembler supporting \".machine\"" >&2
25286 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25287 test x$build = x$target && exit 1
25288 fi
25289 conftest_s=' .text
25290 mfcr r3,128';;
25291 *) conftest_s=' .machine power4
25292 .text
25293 mfcr 3,128';;
25294 esac
25295
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25297 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25298 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25299 $as_echo_n "(cached) " >&6
25300 else
25301 gcc_cv_as_powerpc_mfcrf=no
25302 if test $in_tree_gas = yes; then
25303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25304 then gcc_cv_as_powerpc_mfcrf=yes
25305 fi
25306 elif test x$gcc_cv_as != x; then
25307 $as_echo "$conftest_s" > conftest.s
25308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25313 test $ac_status = 0; }; }
25314 then
25315 gcc_cv_as_powerpc_mfcrf=yes
25316 else
25317 echo "configure: failed program was" >&5
25318 cat conftest.s >&5
25319 fi
25320 rm -f conftest.o conftest.s
25321 fi
25322 fi
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25324 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25325 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25326
25327 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25328
25329 fi
25330
25331 case $target in
25332 *-*-aix*) conftest_s=' .machine "pwr5"
25333 .csect .text[PR]
25334 popcntb 3,3';;
25335 *) conftest_s=' .machine power5
25336 .text
25337 popcntb 3,3';;
25338 esac
25339
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25341 $as_echo_n "checking assembler for popcntb support... " >&6; }
25342 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25345 gcc_cv_as_powerpc_popcntb=no
25346 if test $in_tree_gas = yes; then
25347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25348 then gcc_cv_as_powerpc_popcntb=yes
25349 fi
25350 elif test x$gcc_cv_as != x; then
25351 $as_echo "$conftest_s" > conftest.s
25352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25357 test $ac_status = 0; }; }
25358 then
25359 gcc_cv_as_powerpc_popcntb=yes
25360 else
25361 echo "configure: failed program was" >&5
25362 cat conftest.s >&5
25363 fi
25364 rm -f conftest.o conftest.s
25365 fi
25366 fi
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25368 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25369 if test $gcc_cv_as_powerpc_popcntb = yes; then
25370
25371 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25372
25373 fi
25374
25375 case $target in
25376 *-*-aix*) conftest_s=' .machine "pwr5x"
25377 .csect .text[PR]
25378 frin 1,1';;
25379 *) conftest_s=' .machine power5
25380 .text
25381 frin 1,1';;
25382 esac
25383
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25385 $as_echo_n "checking assembler for fp round support... " >&6; }
25386 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_powerpc_fprnd=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25392 then gcc_cv_as_powerpc_fprnd=yes
25393 fi
25394 elif test x$gcc_cv_as != x; then
25395 $as_echo "$conftest_s" > conftest.s
25396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 then
25403 gcc_cv_as_powerpc_fprnd=yes
25404 else
25405 echo "configure: failed program was" >&5
25406 cat conftest.s >&5
25407 fi
25408 rm -f conftest.o conftest.s
25409 fi
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25412 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25413 if test $gcc_cv_as_powerpc_fprnd = yes; then
25414
25415 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25416
25417 fi
25418
25419 case $target in
25420 *-*-aix*) conftest_s=' .machine "pwr6"
25421 .csect .text[PR]
25422 mffgpr 1,3';;
25423 *) conftest_s=' .machine power6
25424 .text
25425 mffgpr 1,3';;
25426 esac
25427
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25429 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25430 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25431 $as_echo_n "(cached) " >&6
25432 else
25433 gcc_cv_as_powerpc_mfpgpr=no
25434 if test $in_tree_gas = yes; then
25435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25436 then gcc_cv_as_powerpc_mfpgpr=yes
25437 fi
25438 elif 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 gcc_cv_as_powerpc_mfpgpr=yes
25448 else
25449 echo "configure: failed program was" >&5
25450 cat conftest.s >&5
25451 fi
25452 rm -f conftest.o conftest.s
25453 fi
25454 fi
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25456 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25457 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25458
25459 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25460
25461 fi
25462
25463 case $target in
25464 *-*-aix*) conftest_s=' .csect .text[PR]
25465 LCF..0:
25466 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25467 *-*-darwin*)
25468 conftest_s=' .text
25469 LCF0:
25470 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25471 *) conftest_s=' .text
25472 .LCF0:
25473 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25474 esac
25475
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25477 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25478 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25479 $as_echo_n "(cached) " >&6
25480 else
25481 gcc_cv_as_powerpc_rel16=no
25482 if test $in_tree_gas = yes; then
25483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25484 then gcc_cv_as_powerpc_rel16=yes
25485 fi
25486 elif test x$gcc_cv_as != x; then
25487 $as_echo "$conftest_s" > conftest.s
25488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; }
25494 then
25495 gcc_cv_as_powerpc_rel16=yes
25496 else
25497 echo "configure: failed program was" >&5
25498 cat conftest.s >&5
25499 fi
25500 rm -f conftest.o conftest.s
25501 fi
25502 fi
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25504 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25505 if test $gcc_cv_as_powerpc_rel16 = yes; then
25506
25507 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25508
25509 fi
25510
25511 case $target in
25512 *-*-aix*) conftest_s=' .machine "pwr6"
25513 .csect .text[PR]
25514 cmpb 3,4,5';;
25515 *) conftest_s=' .machine power6
25516 .text
25517 cmpb 3,4,5';;
25518 esac
25519
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25521 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25522 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25523 $as_echo_n "(cached) " >&6
25524 else
25525 gcc_cv_as_powerpc_cmpb=no
25526 if test $in_tree_gas = yes; then
25527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25528 then gcc_cv_as_powerpc_cmpb=yes
25529 fi
25530 elif test x$gcc_cv_as != x; then
25531 $as_echo "$conftest_s" > conftest.s
25532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25537 test $ac_status = 0; }; }
25538 then
25539 gcc_cv_as_powerpc_cmpb=yes
25540 else
25541 echo "configure: failed program was" >&5
25542 cat conftest.s >&5
25543 fi
25544 rm -f conftest.o conftest.s
25545 fi
25546 fi
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25548 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25549 if test $gcc_cv_as_powerpc_cmpb = yes; then
25550
25551 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25552
25553 fi
25554
25555 case $target in
25556 *-*-aix*) conftest_s=' .machine "pwr6"
25557 .csect .text[PR]
25558 dadd 1,2,3';;
25559 *) conftest_s=' .machine power6
25560 .text
25561 dadd 1,2,3';;
25562 esac
25563
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25565 $as_echo_n "checking assembler for decimal float support... " >&6; }
25566 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25567 $as_echo_n "(cached) " >&6
25568 else
25569 gcc_cv_as_powerpc_dfp=no
25570 if test $in_tree_gas = yes; then
25571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25572 then gcc_cv_as_powerpc_dfp=yes
25573 fi
25574 elif test x$gcc_cv_as != x; then
25575 $as_echo "$conftest_s" > conftest.s
25576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25578 (eval $ac_try) 2>&5
25579 ac_status=$?
25580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; }
25582 then
25583 gcc_cv_as_powerpc_dfp=yes
25584 else
25585 echo "configure: failed program was" >&5
25586 cat conftest.s >&5
25587 fi
25588 rm -f conftest.o conftest.s
25589 fi
25590 fi
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25592 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25593 if test $gcc_cv_as_powerpc_dfp = yes; then
25594
25595 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25596
25597 fi
25598
25599 case $target in
25600 *-*-aix*) conftest_s=' .machine "pwr7"
25601 .csect .text[PR]
25602 lxvd2x 1,2,3';;
25603 *) conftest_s=' .machine power7
25604 .text
25605 lxvd2x 1,2,3';;
25606 esac
25607
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25609 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25610 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25611 $as_echo_n "(cached) " >&6
25612 else
25613 gcc_cv_as_powerpc_vsx=no
25614 if test $in_tree_gas = yes; then
25615 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25616 then gcc_cv_as_powerpc_vsx=yes
25617 fi
25618 elif test x$gcc_cv_as != x; then
25619 $as_echo "$conftest_s" > conftest.s
25620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25626 then
25627 gcc_cv_as_powerpc_vsx=yes
25628 else
25629 echo "configure: failed program was" >&5
25630 cat conftest.s >&5
25631 fi
25632 rm -f conftest.o conftest.s
25633 fi
25634 fi
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25636 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25637 if test $gcc_cv_as_powerpc_vsx = yes; then
25638
25639 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25640
25641 fi
25642
25643 case $target in
25644 *-*-aix*) conftest_s=' .machine "pwr7"
25645 .csect .text[PR]
25646 popcntd 3,3';;
25647 *) conftest_s=' .machine power7
25648 .text
25649 popcntd 3,3';;
25650 esac
25651
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25653 $as_echo_n "checking assembler for popcntd support... " >&6; }
25654 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25655 $as_echo_n "(cached) " >&6
25656 else
25657 gcc_cv_as_powerpc_popcntd=no
25658 if test $in_tree_gas = yes; then
25659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25660 then gcc_cv_as_powerpc_popcntd=yes
25661 fi
25662 elif test x$gcc_cv_as != x; then
25663 $as_echo "$conftest_s" > conftest.s
25664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25670 then
25671 gcc_cv_as_powerpc_popcntd=yes
25672 else
25673 echo "configure: failed program was" >&5
25674 cat conftest.s >&5
25675 fi
25676 rm -f conftest.o conftest.s
25677 fi
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25680 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25681 if test $gcc_cv_as_powerpc_popcntd = yes; then
25682
25683 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25684
25685 fi
25686
25687 case $target in
25688 *-*-aix*) conftest_s=' .machine "pwr8"
25689 .csect .text[PR]';;
25690 *) conftest_s=' .machine power8
25691 .text';;
25692 esac
25693
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25695 $as_echo_n "checking assembler for power8 support... " >&6; }
25696 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25697 $as_echo_n "(cached) " >&6
25698 else
25699 gcc_cv_as_powerpc_power8=no
25700 if test $in_tree_gas = yes; then
25701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25702 then gcc_cv_as_powerpc_power8=yes
25703 fi
25704 elif test x$gcc_cv_as != x; then
25705 $as_echo "$conftest_s" > conftest.s
25706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711 test $ac_status = 0; }; }
25712 then
25713 gcc_cv_as_powerpc_power8=yes
25714 else
25715 echo "configure: failed program was" >&5
25716 cat conftest.s >&5
25717 fi
25718 rm -f conftest.o conftest.s
25719 fi
25720 fi
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25722 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25723 if test $gcc_cv_as_powerpc_power8 = yes; then
25724
25725 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25726
25727 fi
25728
25729 case $target in
25730 *-*-aix*) conftest_s=' .csect .text[PR]
25731 lwsync';;
25732 *) conftest_s=' .text
25733 lwsync';;
25734 esac
25735
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25737 $as_echo_n "checking assembler for lwsync support... " >&6; }
25738 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25740 else
25741 gcc_cv_as_powerpc_lwsync=no
25742 if test $in_tree_gas = yes; then
25743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25744 then gcc_cv_as_powerpc_lwsync=yes
25745 fi
25746 elif test x$gcc_cv_as != x; then
25747 $as_echo "$conftest_s" > conftest.s
25748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }
25754 then
25755 gcc_cv_as_powerpc_lwsync=yes
25756 else
25757 echo "configure: failed program was" >&5
25758 cat conftest.s >&5
25759 fi
25760 rm -f conftest.o conftest.s
25761 fi
25762 fi
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25764 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25765 if test $gcc_cv_as_powerpc_lwsync = yes; then
25766
25767 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25768
25769 fi
25770
25771 case $target in
25772 *-*-aix*) conftest_s=' .machine "476"
25773 .csect .text[PR]
25774 dci 0';;
25775 *) conftest_s=' .machine "476"
25776 .text
25777 dci 0';;
25778 esac
25779
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25781 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25782 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_powerpc_dci=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25788 then gcc_cv_as_powerpc_dci=yes
25789 fi
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo "$conftest_s" > conftest.s
25792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25798 then
25799 gcc_cv_as_powerpc_dci=yes
25800 else
25801 echo "configure: failed program was" >&5
25802 cat conftest.s >&5
25803 fi
25804 rm -f conftest.o conftest.s
25805 fi
25806 fi
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25808 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25809 if test $gcc_cv_as_powerpc_dci = yes; then
25810
25811 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25812
25813 fi
25814
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25816 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25817 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25819 else
25820 gcc_cv_as_powerpc_gnu_attribute=no
25821 if test $in_tree_gas = yes; then
25822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25823 then gcc_cv_as_powerpc_gnu_attribute=yes
25824 fi
25825 elif test x$gcc_cv_as != x; then
25826 $as_echo '.gnu_attribute 4,1' > conftest.s
25827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25832 test $ac_status = 0; }; }
25833 then
25834 gcc_cv_as_powerpc_gnu_attribute=yes
25835 else
25836 echo "configure: failed program was" >&5
25837 cat conftest.s >&5
25838 fi
25839 rm -f conftest.o conftest.s
25840 fi
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25843 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25844 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25845
25846 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25847
25848 fi
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25851 $as_echo_n "checking assembler for tls marker support... " >&6; }
25852 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_powerpc_tls_markers=no
25856 if test $in_tree_gas = yes; then
25857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25858 then gcc_cv_as_powerpc_tls_markers=yes
25859 fi
25860 elif test x$gcc_cv_as != x; then
25861 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864 (eval $ac_try) 2>&5
25865 ac_status=$?
25866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867 test $ac_status = 0; }; }
25868 then
25869 gcc_cv_as_powerpc_tls_markers=yes
25870 else
25871 echo "configure: failed program was" >&5
25872 cat conftest.s >&5
25873 fi
25874 rm -f conftest.o conftest.s
25875 fi
25876 fi
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25878 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25879 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25880
25881 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25882
25883 fi
25884
25885 case $target in
25886 *-*-aix*)
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25888 $as_echo_n "checking assembler for .ref support... " >&6; }
25889 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_aix_ref=no
25893 if test $in_tree_gas = yes; then
25894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25895 then gcc_cv_as_aix_ref=yes
25896 fi
25897 elif test x$gcc_cv_as != x; then
25898 $as_echo ' .csect stuff[rw]
25899 stuff:
25900 .long 1
25901 .extern sym
25902 .ref sym
25903 ' > conftest.s
25904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25906 (eval $ac_try) 2>&5
25907 ac_status=$?
25908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25909 test $ac_status = 0; }; }
25910 then
25911 gcc_cv_as_aix_ref=yes
25912 else
25913 echo "configure: failed program was" >&5
25914 cat conftest.s >&5
25915 fi
25916 rm -f conftest.o conftest.s
25917 fi
25918 fi
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25920 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25921 if test $gcc_cv_as_aix_ref = yes; then
25922
25923 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25924
25925 fi
25926 ;;
25927 esac
25928 ;;
25929
25930 mips*-*-*)
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25932 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25933 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25934 $as_echo_n "(cached) " >&6
25935 else
25936 gcc_cv_as_mips_explicit_relocs=no
25937 if test $in_tree_gas = yes; then
25938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25939 then gcc_cv_as_mips_explicit_relocs=yes
25940 fi
25941 elif test x$gcc_cv_as != x; then
25942 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25948 test $ac_status = 0; }; }
25949 then
25950 gcc_cv_as_mips_explicit_relocs=yes
25951 else
25952 echo "configure: failed program was" >&5
25953 cat conftest.s >&5
25954 fi
25955 rm -f conftest.o conftest.s
25956 fi
25957 fi
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25959 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25960 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25961 if test x$target_cpu_default = x
25962 then target_cpu_default=MASK_EXPLICIT_RELOCS
25963 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25964 fi
25965 fi
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25967 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25968 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_as_mips_no_shared=no
25972 if test $in_tree_gas = yes; then
25973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25974 then gcc_cv_as_mips_no_shared=yes
25975 fi
25976 elif test x$gcc_cv_as != x; then
25977 $as_echo 'nop' > conftest.s
25978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25984 then
25985 gcc_cv_as_mips_no_shared=yes
25986 else
25987 echo "configure: failed program was" >&5
25988 cat conftest.s >&5
25989 fi
25990 rm -f conftest.o conftest.s
25991 fi
25992 fi
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25994 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25995 if test $gcc_cv_as_mips_no_shared = yes; then
25996
25997 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25998
25999 fi
26000
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26002 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26003 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26004 $as_echo_n "(cached) " >&6
26005 else
26006 gcc_cv_as_mips_gnu_attribute=no
26007 if test $in_tree_gas = yes; then
26008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26009 then gcc_cv_as_mips_gnu_attribute=yes
26010 fi
26011 elif test x$gcc_cv_as != x; then
26012 $as_echo '.gnu_attribute 4,1' > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then
26020 gcc_cv_as_mips_gnu_attribute=yes
26021 else
26022 echo "configure: failed program was" >&5
26023 cat conftest.s >&5
26024 fi
26025 rm -f conftest.o conftest.s
26026 fi
26027 fi
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26029 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26030 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26031
26032 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26033
26034 fi
26035
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26037 $as_echo_n "checking assembler for .micromips support... " >&6; }
26038 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26040 else
26041 gcc_cv_as_micromips_support=no
26042 if test x$gcc_cv_as != x; then
26043 $as_echo '.set micromips' > conftest.s
26044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26046 (eval $ac_try) 2>&5
26047 ac_status=$?
26048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26049 test $ac_status = 0; }; }
26050 then
26051 gcc_cv_as_micromips_support=yes
26052 else
26053 echo "configure: failed program was" >&5
26054 cat conftest.s >&5
26055 fi
26056 rm -f conftest.o conftest.s
26057 fi
26058 fi
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26060 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26061 if test $gcc_cv_as_micromips_support = yes; then
26062
26063 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26064
26065 fi
26066
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26068 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26069 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26070 $as_echo_n "(cached) " >&6
26071 else
26072 gcc_cv_as_mips_dtprelword=no
26073 if test $in_tree_gas = yes; then
26074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26075 then gcc_cv_as_mips_dtprelword=yes
26076 fi
26077 elif test x$gcc_cv_as != x; then
26078 $as_echo '.section .tdata,"awT",@progbits
26079 x:
26080 .word 2
26081 .text
26082 .dtprelword x+0x8000' > conftest.s
26083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26085 (eval $ac_try) 2>&5
26086 ac_status=$?
26087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26088 test $ac_status = 0; }; }
26089 then
26090 gcc_cv_as_mips_dtprelword=yes
26091 else
26092 echo "configure: failed program was" >&5
26093 cat conftest.s >&5
26094 fi
26095 rm -f conftest.o conftest.s
26096 fi
26097 fi
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26099 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26100 if test $gcc_cv_as_mips_dtprelword = yes; then
26101
26102 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26103
26104 fi
26105
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26107 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26108 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26109 $as_echo_n "(cached) " >&6
26110 else
26111 gcc_cv_as_mips_dspr1_mult=no
26112 if test x$gcc_cv_as != x; then
26113 $as_echo ' .set mips32r2
26114 .set nodspr2
26115 .set dsp
26116 madd $ac3,$4,$5
26117 maddu $ac3,$4,$5
26118 msub $ac3,$4,$5
26119 msubu $ac3,$4,$5
26120 mult $ac3,$4,$5
26121 multu $ac3,$4,$5' > conftest.s
26122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; }; }
26128 then
26129 gcc_cv_as_mips_dspr1_mult=yes
26130 else
26131 echo "configure: failed program was" >&5
26132 cat conftest.s >&5
26133 fi
26134 rm -f conftest.o conftest.s
26135 fi
26136 fi
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26138 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26139 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26140
26141 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26142
26143 fi
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26146 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26147 gcc_cv_as_ld_jalr_reloc=no
26148 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26149 if test $in_tree_ld = yes ; then
26150 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 \
26151 && test $in_tree_ld_is_elf = yes; then
26152 gcc_cv_as_ld_jalr_reloc=yes
26153 fi
26154 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26155 echo ' .ent x' > conftest.s
26156 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26157 echo ' lw $25,%call16(y)($28)' >> conftest.s
26158 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26159 echo '1: jalr $25' >> conftest.s
26160 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26161 echo '1: jalr $25' >> conftest.s
26162 echo ' .end x' >> conftest.s
26163 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26164 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26165 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26166 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26167 gcc_cv_as_ld_jalr_reloc=yes
26168 fi
26169 fi
26170 rm -f conftest.*
26171 fi
26172 fi
26173 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26174 if test x$target_cpu_default = x; then
26175 target_cpu_default=MASK_RELAX_PIC_CALLS
26176 else
26177 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26178 fi
26179 fi
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26181 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26182
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26184 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26185 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
26187 else
26188 gcc_cv_ld_mips_personality_relaxation=no
26189 if test $in_tree_ld = yes ; then
26190 if test "$gcc_cv_gld_major_version" -eq 2 \
26191 -a "$gcc_cv_gld_minor_version" -ge 21 \
26192 -o "$gcc_cv_gld_major_version" -gt 2; then
26193 gcc_cv_ld_mips_personality_relaxation=yes
26194 fi
26195 elif test x$gcc_cv_as != x \
26196 -a x$gcc_cv_ld != x \
26197 -a x$gcc_cv_readelf != x ; then
26198 cat > conftest.s <<EOF
26199 .cfi_startproc
26200 .cfi_personality 0x80,indirect_ptr
26201 .ent test
26202 test:
26203 nop
26204 .end test
26205 .cfi_endproc
26206
26207 .section .data,"aw",@progbits
26208 indirect_ptr:
26209 .dc.a personality
26210 EOF
26211 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26212 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26213 if $gcc_cv_readelf -d conftest 2>&1 \
26214 | grep TEXTREL > /dev/null 2>&1; then
26215 :
26216 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26217 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26218 :
26219 else
26220 gcc_cv_ld_mips_personality_relaxation=yes
26221 fi
26222 fi
26223 fi
26224 rm -f conftest.s conftest.o conftest
26225 fi
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26227 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26228 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26229
26230 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26231
26232 fi
26233
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26235 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26236 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 gcc_cv_as_mips_nan=no
26240 if test x$gcc_cv_as != x; then
26241 $as_echo '' > conftest.s
26242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26248 then
26249 gcc_cv_as_mips_nan=yes
26250 else
26251 echo "configure: failed program was" >&5
26252 cat conftest.s >&5
26253 fi
26254 rm -f conftest.o conftest.s
26255 fi
26256 fi
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26258 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26259 if test $gcc_cv_as_mips_nan = yes; then
26260
26261 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26262
26263 fi
26264 if test x$gcc_cv_as_mips_nan = xno \
26265 && test x$with_nan != x; then
26266 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26267 fi
26268 ;;
26269 esac
26270
26271 # Mips and HP-UX need the GNU assembler.
26272 # Linux on IA64 might be able to use the Intel assembler.
26273
26274 case "$target" in
26275 mips*-*-* | *-*-hpux* )
26276 if test x$gas_flag = xyes \
26277 || test x"$host" != x"$build" \
26278 || test ! -x "$gcc_cv_as" \
26279 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26280 :
26281 else
26282 echo "*** This configuration requires the GNU assembler" >&2
26283 exit 1
26284 fi
26285 ;;
26286 esac
26287
26288 # ??? Not all targets support dwarf2 debug_line, even within a version
26289 # of gas. Moreover, we need to emit a valid instruction to trigger any
26290 # info to the output file. So, as supported targets are added to gas 2.11,
26291 # add some instruction here to (also) show we expect this might work.
26292 # ??? Once 2.11 is released, probably need to add first known working
26293 # version to the per-target configury.
26294 case "$cpu_type" in
26295 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26296 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26297 | xstormy16 | xtensa)
26298 insn="nop"
26299 ;;
26300 ia64 | s390)
26301 insn="nop 0"
26302 ;;
26303 mmix)
26304 insn="swym 0"
26305 ;;
26306 esac
26307 if test x"$insn" != x; then
26308 conftest_s="\
26309 .file 1 \"conftest.s\"
26310 .loc 1 3 0
26311 $insn"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26313 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26314 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26315 $as_echo_n "(cached) " >&6
26316 else
26317 gcc_cv_as_dwarf2_debug_line=no
26318 if test $in_tree_gas = yes; then
26319 if test $in_tree_gas_is_elf = yes \
26320 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26321 then gcc_cv_as_dwarf2_debug_line=yes
26322 fi
26323 elif test x$gcc_cv_as != x; then
26324 $as_echo "$conftest_s" > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 if test x$gcc_cv_objdump != x \
26333 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26334 | grep debug_line > /dev/null 2>&1; then
26335 gcc_cv_as_dwarf2_debug_line=yes
26336 fi
26337 else
26338 echo "configure: failed program was" >&5
26339 cat conftest.s >&5
26340 fi
26341 rm -f conftest.o conftest.s
26342 fi
26343 fi
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26345 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26346
26347
26348 # The .debug_line file table must be in the exact order that
26349 # we specified the files, since these indices are also used
26350 # by DW_AT_decl_file. Approximate this test by testing if
26351 # the assembler bitches if the same index is assigned twice.
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26353 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26354 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26355 $as_echo_n "(cached) " >&6
26356 else
26357 gcc_cv_as_dwarf2_file_buggy=no
26358 if test x$gcc_cv_as != x; then
26359 $as_echo ' .file 1 "foo.s"
26360 .file 1 "bar.s"' > conftest.s
26361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26367 then
26368 gcc_cv_as_dwarf2_file_buggy=yes
26369 else
26370 echo "configure: failed program was" >&5
26371 cat conftest.s >&5
26372 fi
26373 rm -f conftest.o conftest.s
26374 fi
26375 fi
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26377 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26378
26379
26380 if test $gcc_cv_as_dwarf2_debug_line = yes \
26381 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26382
26383 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26384
26385 fi
26386
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26388 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26389 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26390 $as_echo_n "(cached) " >&6
26391 else
26392 gcc_cv_as_gdwarf2_flag=no
26393 if test $in_tree_gas = yes; then
26394 if test $in_tree_gas_is_elf = yes \
26395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26396 then gcc_cv_as_gdwarf2_flag=yes
26397 fi
26398 elif test x$gcc_cv_as != x; then
26399 $as_echo "$insn" > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
26416 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26417 if test $gcc_cv_as_gdwarf2_flag = yes; then
26418
26419 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26420
26421 fi
26422
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26424 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26425 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_as_gstabs_flag=no
26429 if test $in_tree_gas = yes; then
26430 if test $in_tree_gas_is_elf = yes \
26431 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26432 then gcc_cv_as_gstabs_flag=yes
26433 fi
26434 elif test x$gcc_cv_as != x; then
26435 $as_echo "$insn" > conftest.s
26436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26438 (eval $ac_try) 2>&5
26439 ac_status=$?
26440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26441 test $ac_status = 0; }; }
26442 then
26443 gcc_cv_as_gstabs_flag=yes
26444 else
26445 echo "configure: failed program was" >&5
26446 cat conftest.s >&5
26447 fi
26448 rm -f conftest.o conftest.s
26449 fi
26450 fi
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26452 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26453 if test $gcc_cv_as_gstabs_flag = yes; then
26454
26455 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26456
26457 fi
26458
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26460 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26461 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26462 $as_echo_n "(cached) " >&6
26463 else
26464 gcc_cv_as_debug_prefix_map_flag=no
26465 if test $in_tree_gas = yes; then
26466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26467 then gcc_cv_as_debug_prefix_map_flag=yes
26468 fi
26469 elif test x$gcc_cv_as != x; then
26470 $as_echo "$insn" > conftest.s
26471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 then
26478 gcc_cv_as_debug_prefix_map_flag=yes
26479 else
26480 echo "configure: failed program was" >&5
26481 cat conftest.s >&5
26482 fi
26483 rm -f conftest.o conftest.s
26484 fi
26485 fi
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26487 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26488 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26489
26490 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26491
26492 fi
26493 fi
26494
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26496 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26497 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26499 else
26500 gcc_cv_as_lcomm_with_alignment=no
26501 if test x$gcc_cv_as != x; then
26502 $as_echo '.lcomm bar,4,16' > conftest.s
26503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26508 test $ac_status = 0; }; }
26509 then
26510 gcc_cv_as_lcomm_with_alignment=yes
26511 else
26512 echo "configure: failed program was" >&5
26513 cat conftest.s >&5
26514 fi
26515 rm -f conftest.o conftest.s
26516 fi
26517 fi
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26519 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26520 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26521
26522 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26523
26524 fi
26525
26526 if test x$with_sysroot = x && test x$host = x$target \
26527 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26528 && test "$prefix" != "NONE"; then
26529
26530 cat >>confdefs.h <<_ACEOF
26531 #define PREFIX_INCLUDE_DIR "$prefix/include"
26532 _ACEOF
26533
26534 fi
26535
26536 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26537 if test "x$with_headers" != x; then
26538 target_header_dir=$with_headers
26539 elif test "x$with_sysroot" = x; then
26540 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26541 elif test "x$with_build_sysroot" != "x"; then
26542 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26543 elif test "x$with_sysroot" = xyes; then
26544 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26545 else
26546 target_header_dir="${with_sysroot}${native_system_header_dir}"
26547 fi
26548 else
26549 target_header_dir=${native_system_header_dir}
26550 fi
26551
26552 # Determine the version of glibc, if any, used on the target.
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26554 $as_echo_n "checking for target glibc version... " >&6; }
26555
26556 # Check whether --with-glibc-version was given.
26557 if test "${with_glibc_version+set}" = set; then :
26558 withval=$with_glibc_version;
26559 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26560 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26561 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26562 else
26563 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26564 fi
26565 else
26566
26567 glibc_version_major=0
26568 glibc_version_minor=0
26569 if test -f $target_header_dir/features.h \
26570 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26571 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26572 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26573 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26574 fi
26575 fi
26576
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26578 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26579
26580 # Check whether --enable-gnu-unique-object was given.
26581 if test "${enable_gnu_unique_object+set}" = set; then :
26582 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26583 yes | no) ;;
26584 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26585 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26586 esac
26587 else
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26589 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26590 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26591 $as_echo_n "(cached) " >&6
26592 else
26593 gcc_cv_as_gnu_unique_object=no
26594 if test $in_tree_gas = yes; then
26595 if test $in_tree_gas_is_elf = yes \
26596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26597 then gcc_cv_as_gnu_unique_object=yes
26598 fi
26599 elif test x$gcc_cv_as != x; then
26600 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26606 test $ac_status = 0; }; }
26607 then
26608 gcc_cv_as_gnu_unique_object=yes
26609 else
26610 echo "configure: failed program was" >&5
26611 cat conftest.s >&5
26612 fi
26613 rm -f conftest.o conftest.s
26614 fi
26615 fi
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26617 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26618 if test $gcc_cv_as_gnu_unique_object = yes; then
26619 # We need to unquote above to to use the definition from config.gcc.
26620 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26621
26622 if test $glibc_version_major -gt 2 \
26623 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26624 enable_gnu_unique_object=yes
26625 fi
26626
26627 fi
26628 fi
26629
26630 if test x$enable_gnu_unique_object = xyes; then
26631
26632 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26633
26634 fi
26635
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26637 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26638 if test "${gcc_cv_as_line_zero+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26640 else
26641 gcc_cv_as_line_zero=no
26642 if test $in_tree_gas = yes; then
26643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26644 then gcc_cv_as_line_zero=yes
26645 fi
26646 elif test "x$gcc_cv_as" != x; then
26647 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26648 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26653 test $ac_status = 0; }; } &&
26654 test "x`cat conftest.out`" = x
26655 then
26656 gcc_cv_as_line_zero=yes
26657 else
26658 echo "configure: failed program was" >&5
26659 cat conftest.s >&5
26660 echo "configure: error output was" >&5
26661 cat conftest.out >&5
26662 fi
26663 rm -f conftest.o conftest.s conftest.out
26664 fi
26665 fi
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26667 $as_echo "$gcc_cv_as_line_zero" >&6; }
26668 if test "x$gcc_cv_as_line_zero" = xyes; then
26669
26670 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26671
26672 fi
26673
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26675 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26676 gcc_cv_ld_eh_frame_hdr=no
26677 if test $in_tree_ld = yes ; then
26678 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 \
26679 && test $in_tree_ld_is_elf = yes; then
26680 gcc_cv_ld_eh_frame_hdr=yes
26681 fi
26682 elif test x$gcc_cv_ld != x; then
26683 if echo "$ld_ver" | grep GNU > /dev/null; then
26684 # Check if linker supports --eh-frame-hdr option
26685 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26686 gcc_cv_ld_eh_frame_hdr=yes
26687 fi
26688 else
26689 case "$target" in
26690 *-*-solaris2*)
26691 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26692 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26693 gcc_cv_ld_eh_frame_hdr=yes
26694 fi
26695 ;;
26696 esac
26697 fi
26698 fi
26699
26700 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26701
26702 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26703
26704 fi
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26706 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26707
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26709 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26710 gcc_cv_ld_eh_frame_ciev3=no
26711 if test $in_tree_ld = yes ; then
26712 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 \
26713 && test $in_tree_ld_is_elf = yes; then
26714 gcc_cv_ld_eh_frame_ciev3=yes
26715 fi
26716 elif test x$gcc_cv_ld != x; then
26717 if echo "$ld_ver" | grep GNU > /dev/null; then
26718 gcc_cv_ld_eh_frame_ciev3=yes
26719 if test 0"$ld_date" -lt 20040513; then
26720 if test -n "$ld_date"; then
26721 # If there was date string, but was earlier than 2004-05-13, fail
26722 gcc_cv_ld_eh_frame_ciev3=no
26723 elif test "$ld_vers_major" -lt 2; then
26724 gcc_cv_ld_eh_frame_ciev3=no
26725 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26726 gcc_cv_ld_eh_frame_ciev3=no
26727 fi
26728 fi
26729 else
26730 case "$target" in
26731 *-*-solaris2*)
26732 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26733 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26734 gcc_cv_ld_eh_frame_ciev3=yes
26735 fi
26736 ;;
26737 esac
26738 fi
26739 fi
26740
26741 cat >>confdefs.h <<_ACEOF
26742 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26743 _ACEOF
26744
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26746 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26747
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26749 $as_echo_n "checking linker position independent executable support... " >&6; }
26750 gcc_cv_ld_pie=no
26751 if test $in_tree_ld = yes ; then
26752 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26753 && test $in_tree_ld_is_elf = yes; then
26754 gcc_cv_ld_pie=yes
26755 fi
26756 elif test x$gcc_cv_ld != x; then
26757 # Check if linker supports -pie option
26758 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26759 gcc_cv_ld_pie=yes
26760 fi
26761 fi
26762 if test x"$gcc_cv_ld_pie" = xyes; then
26763
26764 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26765
26766 fi
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26768 $as_echo "$gcc_cv_ld_pie" >&6; }
26769
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26771 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26772 gcc_cv_ld_eh_gc_sections=no
26773 if test $in_tree_ld = yes ; then
26774 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 \
26775 && test $in_tree_ld_is_elf = yes; then
26776 gcc_cv_ld_eh_gc_sections=yes
26777 fi
26778 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26779 cat > conftest.s <<EOF
26780 .section .text
26781 .globl _start
26782 .type _start, @function
26783 _start:
26784 .long foo
26785 .size _start, .-_start
26786 .section .text.foo,"ax",@progbits
26787 .type foo, @function
26788 foo:
26789 .long 0
26790 .size foo, .-foo
26791 .section .gcc_except_table.foo,"a",@progbits
26792 .L0:
26793 .long 0
26794 .section .eh_frame,"a",@progbits
26795 .long .L0
26796 EOF
26797 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26798 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26799 | grep "gc-sections option ignored" > /dev/null; then
26800 gcc_cv_ld_eh_gc_sections=no
26801 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26802 | grep gcc_except_table > /dev/null; then
26803 gcc_cv_ld_eh_gc_sections=yes
26804 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26805 if test x$gcc_cv_as_comdat_group != xyes; then
26806 gcc_cv_ld_eh_gc_sections=no
26807 cat > conftest.s <<EOF
26808 .section .text
26809 .globl _start
26810 .type _start, @function
26811 _start:
26812 .long foo
26813 .size _start, .-_start
26814 .section .gnu.linkonce.t.foo,"ax",@progbits
26815 .type foo, @function
26816 foo:
26817 .long 0
26818 .size foo, .-foo
26819 .section .gcc_except_table.foo,"a",@progbits
26820 .L0:
26821 .long 0
26822 .section .eh_frame,"a",@progbits
26823 .long .L0
26824 EOF
26825 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26826 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26827 | grep "gc-sections option ignored" > /dev/null; then
26828 gcc_cv_ld_eh_gc_sections=no
26829 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26830 | grep gcc_except_table > /dev/null; then
26831 gcc_cv_ld_eh_gc_sections=yes
26832 fi
26833 fi
26834 fi
26835 fi
26836 fi
26837 rm -f conftest.s conftest.o conftest
26838 fi
26839 case "$target" in
26840 hppa*-*-linux*)
26841 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26842 gcc_cv_ld_eh_gc_sections=no
26843 ;;
26844 esac
26845 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26846
26847 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26848
26849 fi
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26851 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26852
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26854 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26855 gcc_cv_ld_eh_gc_sections_bug=no
26856 if test $in_tree_ld = yes ; then
26857 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 \
26858 && test $in_tree_ld_is_elf = yes; then
26859 gcc_cv_ld_eh_gc_sections_bug=yes
26860 fi
26861 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
26862 gcc_cv_ld_eh_gc_sections_bug=yes
26863 cat > conftest.s <<EOF
26864 .section .text
26865 .globl _start
26866 .type _start, @function
26867 _start:
26868 .long foo
26869 .size _start, .-_start
26870 .section .text.startup.foo,"ax",@progbits
26871 .type foo, @function
26872 foo:
26873 .long 0
26874 .size foo, .-foo
26875 .section .gcc_except_table.foo,"a",@progbits
26876 .L0:
26877 .long 0
26878 .section .eh_frame,"a",@progbits
26879 .long .L0
26880 EOF
26881 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26882 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26883 | grep "gc-sections option ignored" > /dev/null; then
26884 :
26885 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26886 | grep gcc_except_table > /dev/null; then
26887 gcc_cv_ld_eh_gc_sections_bug=no
26888 fi
26889 fi
26890 rm -f conftest.s conftest.o conftest
26891 fi
26892 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26893
26894 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26895
26896 fi
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26898 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26899
26900 # --------
26901 # UNSORTED
26902 # --------
26903
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26905 $as_echo_n "checking linker --as-needed support... " >&6; }
26906 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26907 $as_echo_n "(cached) " >&6
26908 else
26909 gcc_cv_ld_as_needed=no
26910 gcc_cv_ld_as_needed_option='--as-needed'
26911 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26912 if test $in_tree_ld = yes ; then
26913 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 \
26914 && test $in_tree_ld_is_elf = yes; then
26915 gcc_cv_ld_as_needed=yes
26916 fi
26917 elif test x$gcc_cv_ld != x; then
26918 # Check if linker supports --as-needed and --no-as-needed options
26919 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26920 gcc_cv_ld_as_needed=yes
26921 else
26922 case "$target" in
26923 # Solaris 2 ld always supports -z ignore/-z record.
26924 *-*-solaris2*)
26925 gcc_cv_ld_as_needed=yes
26926 gcc_cv_ld_as_needed_option="-z ignore"
26927 gcc_cv_ld_no_as_needed_option="-z record"
26928 ;;
26929 esac
26930 fi
26931 fi
26932 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26933 # dl_iterate_phdr, i.e. since Solaris 11.
26934 case "$target" in
26935 *-*-solaris2.1[1-9]*)
26936 case "$target" in
26937 i?86-*-* | x86_64-*-*)
26938 if echo "$ld_ver" | grep GNU > /dev/null; then
26939 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26940 gcc_cv_ld_as_needed=no
26941 fi
26942 ;;
26943 esac
26944 ;;
26945 *-*-solaris2*)
26946 gcc_cv_ld_as_needed=no
26947 ;;
26948 esac
26949
26950 fi
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26952 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26953 if test x"$gcc_cv_ld_as_needed" = xyes; then
26954
26955 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26956
26957
26958 cat >>confdefs.h <<_ACEOF
26959 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26960 _ACEOF
26961
26962
26963 cat >>confdefs.h <<_ACEOF
26964 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26965 _ACEOF
26966
26967 fi
26968
26969 case "$target:$tm_file" in
26970 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26971 case "$target" in
26972 *le-*-linux*)
26973 emul_name="-melf64lppc"
26974 ;;
26975 *-*-linux*)
26976 emul_name="-melf64ppc"
26977 ;;
26978 *-*-freebsd*)
26979 emul_name="-melf64ppc_fbsd"
26980 ;;
26981 esac
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26983 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26984 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26985 $as_echo_n "(cached) " >&6
26986 else
26987 gcc_cv_ld_no_dot_syms=no
26988 if test x"$ld_is_gold" = xyes; then
26989 gcc_cv_ld_no_dot_syms=yes
26990 elif test $in_tree_ld = yes ; then
26991 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
26992 gcc_cv_ld_no_dot_syms=yes
26993 fi
26994 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26995 cat > conftest1.s <<EOF
26996 .text
26997 bl .foo
26998 EOF
26999 cat > conftest2.s <<EOF
27000 .section ".opd","aw"
27001 .align 3
27002 .globl foo
27003 .type foo,@function
27004 foo:
27005 .quad .LEfoo,.TOC.@tocbase,0
27006 .text
27007 .LEfoo:
27008 blr
27009 .size foo,.-.LEfoo
27010 EOF
27011 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27012 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27013 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27014 gcc_cv_ld_no_dot_syms=yes
27015 fi
27016 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27017 fi
27018
27019 fi
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27021 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27022 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27023
27024 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27025
27026 fi
27027
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27029 $as_echo_n "checking linker large toc support... " >&6; }
27030 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27031 $as_echo_n "(cached) " >&6
27032 else
27033 gcc_cv_ld_large_toc=no
27034 if test x"$ld_is_gold" = xyes; then
27035 gcc_cv_ld_large_toc=yes
27036 elif test $in_tree_ld = yes ; then
27037 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
27038 gcc_cv_ld_large_toc=yes
27039 fi
27040 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27041 cat > conftest.s <<EOF
27042 .section ".tbss","awT",@nobits
27043 .align 3
27044 ie0: .space 8
27045 .global _start
27046 .text
27047 _start:
27048 addis 9,13,ie0@got@tprel@ha
27049 ld 9,ie0@got@tprel@l(9)
27050 EOF
27051 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27052 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27053 gcc_cv_ld_large_toc=yes
27054 fi
27055 rm -f conftest conftest.o conftest.s
27056 fi
27057
27058 fi
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27060 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27061 if test x"$gcc_cv_ld_large_toc" = xyes; then
27062
27063 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27064
27065 fi
27066 ;;
27067 esac
27068
27069 case "$target" in
27070 *-*-aix*)
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27072 $as_echo_n "checking linker large toc support... " >&6; }
27073 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27074 $as_echo_n "(cached) " >&6
27075 else
27076 gcc_cv_ld_large_toc=no
27077 if test x$gcc_cv_as != x ; then
27078 cat > conftest.s <<EOF
27079 .toc
27080 LC..1:
27081 .tc a[TC],a[RW]
27082 .extern a[RW]
27083 .csect .text[PR]
27084 .largetoctest:
27085 addis 9,LC..1@u(2)
27086 ld 3,LC..1@l(9)
27087 EOF
27088 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27089 gcc_cv_ld_large_toc=yes
27090 fi
27091 rm -f conftest conftest.o conftest.s
27092 fi
27093
27094 fi
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27096 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27097 if test x"$gcc_cv_ld_large_toc" = xyes; then
27098
27099 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27100
27101 fi
27102 ;;
27103 esac
27104
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27106 $as_echo_n "checking linker --build-id support... " >&6; }
27107 if test "${gcc_cv_ld_buildid+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27109 else
27110 gcc_cv_ld_buildid=no
27111 if test $in_tree_ld = yes ; then
27112 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27113 "$gcc_cv_gld_minor_version" -ge 18 -o \
27114 "$gcc_cv_gld_major_version" -gt 2 \
27115 && test $in_tree_ld_is_elf = yes; then
27116 gcc_cv_ld_buildid=yes
27117 fi
27118 elif test x$gcc_cv_ld != x; then
27119 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27120 gcc_cv_ld_buildid=yes
27121 fi
27122 fi
27123 fi
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27125 $as_echo "$gcc_cv_ld_buildid" >&6; }
27126 if test x"$gcc_cv_ld_buildid" = xyes; then
27127
27128 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27129
27130 fi
27131
27132 # Check whether --enable-linker-build-id was given.
27133 if test "${enable_linker_build_id+set}" = set; then :
27134 enableval=$enable_linker_build_id;
27135 else
27136 enable_linker_build_id=no
27137 fi
27138
27139
27140 if test x"$enable_linker_build_id" = xyes; then
27141 if test x"$gcc_cv_ld_buildid" = xyes; then
27142
27143 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27144
27145 else
27146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27147 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27148 fi
27149 fi
27150
27151 # In binutils 2.21, GNU ld gained support for new emulations fully
27152 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27154 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27155 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27156 $as_echo_n "(cached) " >&6
27157 else
27158 gcc_cv_ld_sol2_emulation=no
27159 if test $in_tree_ld = yes ; then
27160 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27161 "$gcc_cv_gld_minor_version" -ge 21 -o \
27162 "$gcc_cv_gld_major_version" -gt 2 \
27163 && test $in_tree_ld_is_elf = yes; then
27164 gcc_cv_ld_sol2_emulation=yes
27165 fi
27166 elif test x$gcc_cv_ld != x; then
27167 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27168 grep _sol2 > /dev/null; then
27169 gcc_cv_ld_sol2_emulation=yes
27170 fi
27171 fi
27172 fi
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27174 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27175 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27176
27177 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27178
27179 fi
27180
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27182 $as_echo_n "checking linker --sysroot support... " >&6; }
27183 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27184 $as_echo_n "(cached) " >&6
27185 else
27186 gcc_cv_ld_sysroot=no
27187 if test $in_tree_ld = yes ; then
27188 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
27189 gcc_cv_ld_sysroot=yes
27190 fi
27191 elif test x$gcc_cv_ld != x; then
27192 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27193 gcc_cv_ld_sysroot=yes
27194 fi
27195 fi
27196 fi
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27198 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27199 if test x"$gcc_cv_ld_sysroot" = xyes; then
27200
27201 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27202
27203 fi
27204
27205 # Test for stack protector support in target C library.
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27207 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27208 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27209 $as_echo_n "(cached) " >&6
27210 else
27211 gcc_cv_libc_provides_ssp=no
27212 case "$target" in
27213 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27214 # glibc 2.4 and later provides __stack_chk_fail and
27215 # either __stack_chk_guard, or TLS access to stack guard canary.
27216
27217 if test $glibc_version_major -gt 2 \
27218 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27219 gcc_cv_libc_provides_ssp=yes
27220 else
27221
27222 if test -f $target_header_dir/features.h \
27223 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27224 $target_header_dir/features.h > /dev/null; then
27225 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27226 $target_header_dir/features.h > /dev/null && \
27227 test -f $target_header_dir/bits/uClibc_config.h && \
27228 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27229 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27230 gcc_cv_libc_provides_ssp=yes
27231 fi
27232 # all versions of Bionic support stack protector
27233 elif test -f $target_header_dir/sys/cdefs.h \
27234 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27235 $target_header_dir/sys/cdefs.h > /dev/null; then
27236 gcc_cv_libc_provides_ssp=yes
27237 fi
27238 fi
27239 ;;
27240 *-*-gnu*)
27241 # Avoid complicated tests (see
27242 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27243 # simply assert that glibc does provide this, which is true for all
27244 # realistically usable GNU/Hurd configurations.
27245 gcc_cv_libc_provides_ssp=yes;;
27246 *-*-darwin* | *-*-freebsd*)
27247 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27248 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27249 gcc_cv_libc_provides_ssp=yes
27250 else
27251 echo "no __stack_chk_fail on this target"
27252 fi
27253
27254 ;;
27255 *) gcc_cv_libc_provides_ssp=no ;;
27256 esac
27257 fi
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27259 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27260
27261 if test x$gcc_cv_libc_provides_ssp = xyes; then
27262
27263 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27264
27265 fi
27266
27267 # Test for <sys/sdt.h> on the target.
27268
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27270 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27271 have_sys_sdt_h=no
27272 if test -f $target_header_dir/sys/sdt.h; then
27273 have_sys_sdt_h=yes
27274
27275 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27276
27277 fi
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27279 $as_echo "$have_sys_sdt_h" >&6; }
27280
27281 # Check if TFmode long double should be used by default or not.
27282 # Some glibc targets used DFmode long double, but with glibc 2.4
27283 # and later they can use TFmode.
27284 case "$target" in
27285 powerpc*-*-linux* | \
27286 sparc*-*-linux* | \
27287 s390*-*-linux* | \
27288 alpha*-*-linux*)
27289
27290 # Check whether --with-long-double-128 was given.
27291 if test "${with_long_double_128+set}" = set; then :
27292 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27293 else
27294
27295 if test $glibc_version_major -gt 2 \
27296 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27297 gcc_cv_target_ldbl128=yes
27298 else
27299
27300 gcc_cv_target_ldbl128=no
27301 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27302 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27303 && gcc_cv_target_ldbl128=yes
27304
27305 fi
27306 fi
27307
27308 ;;
27309 esac
27310 if test x$gcc_cv_target_ldbl128 = xyes; then
27311
27312 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27313
27314 fi
27315
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27317 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27318 gcc_cv_target_dl_iterate_phdr=unknown
27319 case "$target" in
27320 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27321 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27322 # libdl there, both complicating its use and breaking compatibility
27323 # between Solaris 10 updates.
27324 *-*-solaris2.1[1-9]*)
27325 # <link.h> needs both a dl_iterate_phdr declaration and support for
27326 # compilation with largefile support.
27327 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27328 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27329 gcc_cv_target_dl_iterate_phdr=yes
27330 else
27331 gcc_cv_target_dl_iterate_phdr=no
27332 fi
27333 ;;
27334 esac
27335
27336 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27337
27338 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27339
27340 fi
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27342 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27343
27344 # We no longer support different GC mechanisms. Emit an error if
27345 # the user configures with --with-gc.
27346
27347 # Check whether --with-gc was given.
27348 if test "${with_gc+set}" = set; then :
27349 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27350 fi
27351
27352
27353 # Libraries to use on the host. This will normally be set by the top
27354 # level Makefile. Here we simply capture the value for our Makefile.
27355 if test -z "${HOST_LIBS+set}"; then
27356 HOST_LIBS=
27357 fi
27358
27359
27360 # Use the system's zlib library.
27361 zlibdir=-L../zlib
27362 zlibinc="-I\$(srcdir)/../zlib"
27363
27364 # Check whether --with-system-zlib was given.
27365 if test "${with_system_zlib+set}" = set; then :
27366 withval=$with_system_zlib; zlibdir=
27367 zlibinc=
27368
27369 fi
27370
27371
27372
27373
27374
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27376 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27377 # Check whether --enable-maintainer-mode was given.
27378 if test "${enable_maintainer_mode+set}" = set; then :
27379 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27380 else
27381 maintainer_mode=no
27382 fi
27383
27384
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27386 $as_echo "$maintainer_mode" >&6; }
27387
27388 if test "$maintainer_mode" = "yes"; then
27389 MAINT=''
27390 else
27391 MAINT='#'
27392 fi
27393
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27396 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27397 # Check whether --enable-link-mutex was given.
27398 if test "${enable_link_mutex+set}" = set; then :
27399 enableval=$enable_link_mutex; do_link_mutex=$enableval
27400 else
27401 do_link_mutex=no
27402 fi
27403
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27405 $as_echo "$do_link_mutex" >&6; }
27406
27407 if test "$do_link_mutex" = "yes"; then
27408 DO_LINK_MUTEX=true
27409 else
27410 DO_LINK_MUTEX=false
27411 fi
27412
27413
27414 # --------------
27415 # Language hooks
27416 # --------------
27417
27418 # Make empty files to contain the specs and options for each language.
27419 # Then add #include lines to for a compiler that has specs and/or options.
27420
27421 subdirs=
27422 lang_opt_files=
27423 lang_specs_files=
27424 lang_tree_files=
27425 # These (without "all_") are set in each config-lang.in.
27426 # `language' must be a single word so is spelled singularly.
27427 all_languages=
27428 all_compilers=
27429 all_outputs='Makefile'
27430 # List of language makefile fragments.
27431 all_lang_makefrags=
27432 # Additional files for gengtype
27433 all_gtfiles="$target_gtfiles"
27434
27435 # These are the languages that are set in --enable-languages,
27436 # and are available in the GCC tree.
27437 all_selected_languages=
27438
27439 # Add the language fragments.
27440 # Languages are added via two mechanisms. Some information must be
27441 # recorded in makefile variables, these are defined in config-lang.in.
27442 # We accumulate them and plug them into the main Makefile.
27443 # The other mechanism is a set of hooks for each of the main targets
27444 # like `clean', `install', etc.
27445
27446 language_hooks="Make-hooks"
27447
27448 for lang in ${srcdir}/*/config-lang.in
27449 do
27450 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27451
27452 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27453 if test "x$lang_alias" = x
27454 then
27455 echo "$lang doesn't set \$language." 1>&2
27456 exit 1
27457 fi
27458 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27459 subdirs="$subdirs $subdir"
27460
27461 # $gcc_subdir is where the gcc integration files are to be found
27462 # for a language, both for internal compiler purposes (compiler
27463 # sources implementing front-end to GCC tree converters), and for
27464 # build infrastructure purposes (Make-lang.in, etc.)
27465 #
27466 # This will be <subdir> (relative to $srcdir) if a line like
27467 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27468 # is found in <langdir>/config-lang.in, and will remain <langdir>
27469 # otherwise.
27470 #
27471 # Except for the language alias (fetched above), the regular
27472 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27473 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27474 # only this and the language alias.
27475
27476 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27477 if [ "$gcc_subdir" = "" ]; then
27478 gcc_subdir="$subdir"
27479 fi
27480
27481 case ",$enable_languages," in
27482 *,$lang_alias,*)
27483 all_selected_languages="$all_selected_languages $lang_alias"
27484 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27485 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27486 fi
27487 ;;
27488 esac
27489
27490 language=
27491 boot_language=
27492 compilers=
27493 outputs=
27494 gtfiles=
27495 subdir_requires=
27496 . ${srcdir}/$gcc_subdir/config-lang.in
27497 if test "x$language" = x
27498 then
27499 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27500 exit 1
27501 fi
27502
27503 ok=:
27504 case ",$enable_languages," in
27505 *,$lang_alias,*) ;;
27506 *)
27507 for i in $subdir_requires; do
27508 test -f "${srcdir}/$i/config-lang.in" && continue
27509 ok=false
27510 break
27511 done
27512 ;;
27513 esac
27514 $ok || continue
27515
27516 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27517 if test -f $srcdir/$gcc_subdir/lang.opt; then
27518 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27519 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27520 fi
27521 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27522 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27523 fi
27524 all_languages="$all_languages $language"
27525 all_compilers="$all_compilers $compilers"
27526 all_outputs="$all_outputs $outputs"
27527 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27528 case ",$enable_languages," in
27529 *,lto,*)
27530
27531 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27532
27533 enable_lto=yes
27534
27535 ;;
27536 *) ;;
27537 esac
27538 done
27539
27540 check_languages=
27541 for language in $all_selected_languages
27542 do
27543 check_languages="$check_languages check-$language"
27544 done
27545
27546 # We link each language in with a set of hooks, reached indirectly via
27547 # lang.${target}. Only do so for selected languages.
27548
27549 rm -f Make-hooks
27550 touch Make-hooks
27551 target_list="all.cross start.encap rest.encap tags \
27552 install-common install-man install-info install-pdf install-html dvi \
27553 pdf html uninstall info man srcextra srcman srcinfo \
27554 mostlyclean clean distclean maintainer-clean install-plugin"
27555
27556 for t in $target_list
27557 do
27558 x=
27559 for lang in $all_selected_languages
27560 do
27561 x="$x $lang.$t"
27562 done
27563 echo "lang.$t: $x" >> Make-hooks
27564 done
27565
27566 # --------
27567 # Option include files
27568 # --------
27569
27570 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27571 option_includes="option-includes.mk"
27572
27573
27574 # --------
27575 # UNSORTED
27576 # --------
27577
27578 # Create .gdbinit.
27579
27580 echo "dir ." > .gdbinit
27581 echo "dir ${srcdir}" >> .gdbinit
27582 if test x$gdb_needs_out_file_path = xyes
27583 then
27584 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27585 fi
27586 if test "x$subdirs" != x; then
27587 for s in $subdirs
27588 do
27589 echo "dir ${srcdir}/$s" >> .gdbinit
27590 done
27591 fi
27592 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27593 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27594
27595 # Put a breakpoint on __asan_report_error to help with debugging buffer
27596 # overflow.
27597 case "$CFLAGS" in
27598 *-fsanitize=address*)
27599 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27600 ;;
27601 esac
27602
27603 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27604
27605
27606
27607 # Find a directory in which to install a shared libgcc.
27608
27609 # Check whether --enable-version-specific-runtime-libs was given.
27610 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27611 enableval=$enable_version_specific_runtime_libs;
27612 fi
27613
27614
27615 # Substitute configuration variables
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678 # Echo link setup.
27679 if test x${build} = x${host} ; then
27680 if test x${host} = x${target} ; then
27681 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27682 else
27683 echo "Links are now set up to build a cross-compiler" 1>&2
27684 echo " from ${host} to ${target}." 1>&2
27685 fi
27686 else
27687 if test x${host} = x${target} ; then
27688 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27689 echo " for ${target}." 1>&2
27690 else
27691 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27692 echo " from ${host} to ${target}." 1>&2
27693 fi
27694 fi
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704 if test "x${CLOOGLIBS}" != "x" ; then
27705
27706 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27707
27708 fi
27709
27710 # Check for plugin support
27711 # Check whether --enable-plugin was given.
27712 if test "${enable_plugin+set}" = set; then :
27713 enableval=$enable_plugin; enable_plugin=$enableval
27714 else
27715 enable_plugin=yes; default_plugin=yes
27716 fi
27717
27718
27719 pluginlibs=
27720
27721 case "${host}" in
27722 *-*-darwin*)
27723 if test x$build = x$host; then
27724 export_sym_check="nm${exeext} -g"
27725 elif test x$host = x$target; then
27726 export_sym_check="$gcc_cv_nm -g"
27727 else
27728 export_sym_check=
27729 fi
27730 ;;
27731 *)
27732 if test x$build = x$host; then
27733 export_sym_check="objdump${exeext} -T"
27734 elif test x$host = x$target; then
27735 export_sym_check="$gcc_cv_objdump -T"
27736 else
27737 export_sym_check=
27738 fi
27739 ;;
27740 esac
27741
27742 if test x"$enable_plugin" = x"yes"; then
27743
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27745 $as_echo_n "checking for exported symbols... " >&6; }
27746 if test "x$export_sym_check" != x; then
27747 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27748 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27749 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27750 : # No need to use a flag
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27752 $as_echo "yes" >&6; }
27753 else
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27755 $as_echo "yes" >&6; }
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27757 $as_echo_n "checking for -rdynamic... " >&6; }
27758 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27759 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27760 plugin_rdynamic=yes
27761 pluginlibs="-rdynamic"
27762 else
27763 plugin_rdynamic=no
27764 enable_plugin=no
27765 fi
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27767 $as_echo "$plugin_rdynamic" >&6; }
27768 fi
27769 else
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27771 $as_echo "unable to check" >&6; }
27772 fi
27773
27774 # Check -ldl
27775 saved_LIBS="$LIBS"
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27777 $as_echo_n "checking for library containing dlopen... " >&6; }
27778 if test "${ac_cv_search_dlopen+set}" = set; then :
27779 $as_echo_n "(cached) " >&6
27780 else
27781 ac_func_search_save_LIBS=$LIBS
27782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27783 /* end confdefs.h. */
27784
27785 /* Override any GCC internal prototype to avoid an error.
27786 Use char because int might match the return type of a GCC
27787 builtin and then its argument prototype would still apply. */
27788 #ifdef __cplusplus
27789 extern "C"
27790 #endif
27791 char dlopen ();
27792 int
27793 main ()
27794 {
27795 return dlopen ();
27796 ;
27797 return 0;
27798 }
27799 _ACEOF
27800 for ac_lib in '' dl; do
27801 if test -z "$ac_lib"; then
27802 ac_res="none required"
27803 else
27804 ac_res=-l$ac_lib
27805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27806 fi
27807 if ac_fn_c_try_link "$LINENO"; then :
27808 ac_cv_search_dlopen=$ac_res
27809 fi
27810 rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext
27812 if test "${ac_cv_search_dlopen+set}" = set; then :
27813 break
27814 fi
27815 done
27816 if test "${ac_cv_search_dlopen+set}" = set; then :
27817
27818 else
27819 ac_cv_search_dlopen=no
27820 fi
27821 rm conftest.$ac_ext
27822 LIBS=$ac_func_search_save_LIBS
27823 fi
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27825 $as_echo "$ac_cv_search_dlopen" >&6; }
27826 ac_res=$ac_cv_search_dlopen
27827 if test "$ac_res" != no; then :
27828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27829
27830 fi
27831
27832 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27833 pluginlibs="$pluginlibs -ldl"
27834 fi
27835 LIBS="$saved_LIBS"
27836
27837 # Check that we can build shared objects with -fPIC -shared
27838 saved_LDFLAGS="$LDFLAGS"
27839 saved_CFLAGS="$CFLAGS"
27840 case "${host}" in
27841 *-*-darwin*)
27842 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27843 CFLAGS="$CFLAGS -fPIC"
27844 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27845 ;;
27846 *)
27847 CFLAGS="$CFLAGS -fPIC"
27848 LDFLAGS="$LDFLAGS -fPIC -shared"
27849 ;;
27850 esac
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27852 $as_echo_n "checking for -fPIC -shared... " >&6; }
27853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27854 /* end confdefs.h. */
27855 extern int X;
27856 int
27857 main ()
27858 {
27859 return X == 0;
27860 ;
27861 return 0;
27862 }
27863 _ACEOF
27864 if ac_fn_c_try_link "$LINENO"; then :
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27866 $as_echo "yes" >&6; }; have_pic_shared=yes
27867 else
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27869 $as_echo "no" >&6; }; have_pic_shared=no
27870 fi
27871 rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27874 pluginlibs=
27875 enable_plugin=no
27876 fi
27877 LDFLAGS="$saved_LDFLAGS"
27878 CFLAGS="$saved_CFLAGS"
27879
27880 # If plugin support had been requested but not available, fail.
27881 if test x"$enable_plugin" = x"no" ; then
27882 if test x"$default_plugin" != x"yes"; then
27883 as_fn_error "
27884 Building GCC with plugin support requires a host that supports
27885 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27886 fi
27887 fi
27888 fi
27889
27890
27891
27892 if test x"$enable_plugin" = x"yes"; then
27893
27894 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27895
27896 fi
27897
27898
27899 # Enable --enable-host-shared
27900 # Check whether --enable-host-shared was given.
27901 if test "${enable_host_shared+set}" = set; then :
27902 enableval=$enable_host_shared; PICFLAG=-fPIC
27903 else
27904 PICFLAG=
27905 fi
27906
27907
27908
27909
27910
27911 # Check whether --enable-libquadmath-support was given.
27912 if test "${enable_libquadmath_support+set}" = set; then :
27913 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27914 else
27915 ENABLE_LIBQUADMATH_SUPPORT=yes
27916 fi
27917
27918 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27919
27920 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27921
27922 fi
27923
27924
27925 # Specify what hash style to use by default.
27926
27927 # Check whether --with-linker-hash-style was given.
27928 if test "${with_linker_hash_style+set}" = set; then :
27929 withval=$with_linker_hash_style; case x"$withval" in
27930 xsysv)
27931 LINKER_HASH_STYLE=sysv
27932 ;;
27933 xgnu)
27934 LINKER_HASH_STYLE=gnu
27935 ;;
27936 xboth)
27937 LINKER_HASH_STYLE=both
27938 ;;
27939 *)
27940 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27941 ;;
27942 esac
27943 else
27944 LINKER_HASH_STYLE=''
27945 fi
27946
27947 if test x"${LINKER_HASH_STYLE}" != x; then
27948
27949 cat >>confdefs.h <<_ACEOF
27950 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27951 _ACEOF
27952
27953 fi
27954
27955 # Configure the subdirectories
27956 # AC_CONFIG_SUBDIRS($subdirs)
27957
27958 # Create the Makefile
27959 # and configure language subdirectories
27960 ac_config_files="$ac_config_files $all_outputs"
27961
27962
27963 ac_config_commands="$ac_config_commands default"
27964
27965 cat >confcache <<\_ACEOF
27966 # This file is a shell script that caches the results of configure
27967 # tests run on this system so they can be shared between configure
27968 # scripts and configure runs, see configure's option --config-cache.
27969 # It is not useful on other systems. If it contains results you don't
27970 # want to keep, you may remove or edit it.
27971 #
27972 # config.status only pays attention to the cache file if you give it
27973 # the --recheck option to rerun configure.
27974 #
27975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27977 # following values.
27978
27979 _ACEOF
27980
27981 # The following way of writing the cache mishandles newlines in values,
27982 # but we know of no workaround that is simple, portable, and efficient.
27983 # So, we kill variables containing newlines.
27984 # Ultrix sh set writes to stderr and can't be redirected directly,
27985 # and sets the high bit in the cache file unless we assign to the vars.
27986 (
27987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27988 eval ac_val=\$$ac_var
27989 case $ac_val in #(
27990 *${as_nl}*)
27991 case $ac_var in #(
27992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27994 esac
27995 case $ac_var in #(
27996 _ | IFS | as_nl) ;; #(
27997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27998 *) { eval $ac_var=; unset $ac_var;} ;;
27999 esac ;;
28000 esac
28001 done
28002
28003 (set) 2>&1 |
28004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28005 *${as_nl}ac_space=\ *)
28006 # `set' does not quote correctly, so add quotes: double-quote
28007 # substitution turns \\\\ into \\, and sed turns \\ into \.
28008 sed -n \
28009 "s/'/'\\\\''/g;
28010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28011 ;; #(
28012 *)
28013 # `set' quotes correctly as required by POSIX, so do not add quotes.
28014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28015 ;;
28016 esac |
28017 sort
28018 ) |
28019 sed '
28020 /^ac_cv_env_/b end
28021 t clear
28022 :clear
28023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28024 t end
28025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28026 :end' >>confcache
28027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28028 if test -w "$cache_file"; then
28029 test "x$cache_file" != "x/dev/null" &&
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28031 $as_echo "$as_me: updating cache $cache_file" >&6;}
28032 cat confcache >$cache_file
28033 else
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28036 fi
28037 fi
28038 rm -f confcache
28039
28040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28041 # Let make expand exec_prefix.
28042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28043
28044 DEFS=-DHAVE_CONFIG_H
28045
28046 ac_libobjs=
28047 ac_ltlibobjs=
28048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28049 # 1. Remove the extension, and $U if already installed.
28050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28053 # will be set to the directory where LIBOBJS objects are built.
28054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28056 done
28057 LIBOBJS=$ac_libobjs
28058
28059 LTLIBOBJS=$ac_ltlibobjs
28060
28061
28062
28063
28064 : ${CONFIG_STATUS=./config.status}
28065 ac_write_fail=0
28066 ac_clean_files_save=$ac_clean_files
28067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28070 as_write_fail=0
28071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28072 #! $SHELL
28073 # Generated by $as_me.
28074 # Run this file to recreate the current configuration.
28075 # Compiler output produced by configure, useful for debugging
28076 # configure, is in config.log if it exists.
28077
28078 debug=false
28079 ac_cs_recheck=false
28080 ac_cs_silent=false
28081
28082 SHELL=\${CONFIG_SHELL-$SHELL}
28083 export SHELL
28084 _ASEOF
28085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28086 ## -------------------- ##
28087 ## M4sh Initialization. ##
28088 ## -------------------- ##
28089
28090 # Be more Bourne compatible
28091 DUALCASE=1; export DUALCASE # for MKS sh
28092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28093 emulate sh
28094 NULLCMD=:
28095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28096 # is contrary to our usage. Disable this feature.
28097 alias -g '${1+"$@"}'='"$@"'
28098 setopt NO_GLOB_SUBST
28099 else
28100 case `(set -o) 2>/dev/null` in #(
28101 *posix*) :
28102 set -o posix ;; #(
28103 *) :
28104 ;;
28105 esac
28106 fi
28107
28108
28109 as_nl='
28110 '
28111 export as_nl
28112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28116 # Prefer a ksh shell builtin over an external printf program on Solaris,
28117 # but without wasting forks for bash or zsh.
28118 if test -z "$BASH_VERSION$ZSH_VERSION" \
28119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28120 as_echo='print -r --'
28121 as_echo_n='print -rn --'
28122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28123 as_echo='printf %s\n'
28124 as_echo_n='printf %s'
28125 else
28126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28128 as_echo_n='/usr/ucb/echo -n'
28129 else
28130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28131 as_echo_n_body='eval
28132 arg=$1;
28133 case $arg in #(
28134 *"$as_nl"*)
28135 expr "X$arg" : "X\\(.*\\)$as_nl";
28136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28137 esac;
28138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28139 '
28140 export as_echo_n_body
28141 as_echo_n='sh -c $as_echo_n_body as_echo'
28142 fi
28143 export as_echo_body
28144 as_echo='sh -c $as_echo_body as_echo'
28145 fi
28146
28147 # The user is always right.
28148 if test "${PATH_SEPARATOR+set}" != set; then
28149 PATH_SEPARATOR=:
28150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28152 PATH_SEPARATOR=';'
28153 }
28154 fi
28155
28156
28157 # IFS
28158 # We need space, tab and new line, in precisely that order. Quoting is
28159 # there to prevent editors from complaining about space-tab.
28160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28161 # splitting by setting IFS to empty value.)
28162 IFS=" "" $as_nl"
28163
28164 # Find who we are. Look in the path if we contain no directory separator.
28165 case $0 in #((
28166 *[\\/]* ) as_myself=$0 ;;
28167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28168 for as_dir in $PATH
28169 do
28170 IFS=$as_save_IFS
28171 test -z "$as_dir" && as_dir=.
28172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28173 done
28174 IFS=$as_save_IFS
28175
28176 ;;
28177 esac
28178 # We did not find ourselves, most probably we were run as `sh COMMAND'
28179 # in which case we are not to be found in the path.
28180 if test "x$as_myself" = x; then
28181 as_myself=$0
28182 fi
28183 if test ! -f "$as_myself"; then
28184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28185 exit 1
28186 fi
28187
28188 # Unset variables that we do not need and which cause bugs (e.g. in
28189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28190 # suppresses any "Segmentation fault" message there. '((' could
28191 # trigger a bug in pdksh 5.2.14.
28192 for as_var in BASH_ENV ENV MAIL MAILPATH
28193 do eval test x\${$as_var+set} = xset \
28194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28195 done
28196 PS1='$ '
28197 PS2='> '
28198 PS4='+ '
28199
28200 # NLS nuisances.
28201 LC_ALL=C
28202 export LC_ALL
28203 LANGUAGE=C
28204 export LANGUAGE
28205
28206 # CDPATH.
28207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28208
28209
28210 # as_fn_error ERROR [LINENO LOG_FD]
28211 # ---------------------------------
28212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28214 # script with status $?, using 1 if that was 0.
28215 as_fn_error ()
28216 {
28217 as_status=$?; test $as_status -eq 0 && as_status=1
28218 if test "$3"; then
28219 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28221 fi
28222 $as_echo "$as_me: error: $1" >&2
28223 as_fn_exit $as_status
28224 } # as_fn_error
28225
28226
28227 # as_fn_set_status STATUS
28228 # -----------------------
28229 # Set $? to STATUS, without forking.
28230 as_fn_set_status ()
28231 {
28232 return $1
28233 } # as_fn_set_status
28234
28235 # as_fn_exit STATUS
28236 # -----------------
28237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28238 as_fn_exit ()
28239 {
28240 set +e
28241 as_fn_set_status $1
28242 exit $1
28243 } # as_fn_exit
28244
28245 # as_fn_unset VAR
28246 # ---------------
28247 # Portably unset VAR.
28248 as_fn_unset ()
28249 {
28250 { eval $1=; unset $1;}
28251 }
28252 as_unset=as_fn_unset
28253 # as_fn_append VAR VALUE
28254 # ----------------------
28255 # Append the text in VALUE to the end of the definition contained in VAR. Take
28256 # advantage of any shell optimizations that allow amortized linear growth over
28257 # repeated appends, instead of the typical quadratic growth present in naive
28258 # implementations.
28259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28260 eval 'as_fn_append ()
28261 {
28262 eval $1+=\$2
28263 }'
28264 else
28265 as_fn_append ()
28266 {
28267 eval $1=\$$1\$2
28268 }
28269 fi # as_fn_append
28270
28271 # as_fn_arith ARG...
28272 # ------------------
28273 # Perform arithmetic evaluation on the ARGs, and store the result in the
28274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28275 # must be portable across $(()) and expr.
28276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28277 eval 'as_fn_arith ()
28278 {
28279 as_val=$(( $* ))
28280 }'
28281 else
28282 as_fn_arith ()
28283 {
28284 as_val=`expr "$@" || test $? -eq 1`
28285 }
28286 fi # as_fn_arith
28287
28288
28289 if expr a : '\(a\)' >/dev/null 2>&1 &&
28290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28291 as_expr=expr
28292 else
28293 as_expr=false
28294 fi
28295
28296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28297 as_basename=basename
28298 else
28299 as_basename=false
28300 fi
28301
28302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28303 as_dirname=dirname
28304 else
28305 as_dirname=false
28306 fi
28307
28308 as_me=`$as_basename -- "$0" ||
28309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28310 X"$0" : 'X\(//\)$' \| \
28311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28312 $as_echo X/"$0" |
28313 sed '/^.*\/\([^/][^/]*\)\/*$/{
28314 s//\1/
28315 q
28316 }
28317 /^X\/\(\/\/\)$/{
28318 s//\1/
28319 q
28320 }
28321 /^X\/\(\/\).*/{
28322 s//\1/
28323 q
28324 }
28325 s/.*/./; q'`
28326
28327 # Avoid depending upon Character Ranges.
28328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28331 as_cr_digits='0123456789'
28332 as_cr_alnum=$as_cr_Letters$as_cr_digits
28333
28334 ECHO_C= ECHO_N= ECHO_T=
28335 case `echo -n x` in #(((((
28336 -n*)
28337 case `echo 'xy\c'` in
28338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28339 xy) ECHO_C='\c';;
28340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28341 ECHO_T=' ';;
28342 esac;;
28343 *)
28344 ECHO_N='-n';;
28345 esac
28346
28347 rm -f conf$$ conf$$.exe conf$$.file
28348 if test -d conf$$.dir; then
28349 rm -f conf$$.dir/conf$$.file
28350 else
28351 rm -f conf$$.dir
28352 mkdir conf$$.dir 2>/dev/null
28353 fi
28354 if (echo >conf$$.file) 2>/dev/null; then
28355 if ln -s conf$$.file conf$$ 2>/dev/null; then
28356 as_ln_s='ln -s'
28357 # ... but there are two gotchas:
28358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28360 # In both cases, we have to default to `cp -p'.
28361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28362 as_ln_s='cp -p'
28363 elif ln conf$$.file conf$$ 2>/dev/null; then
28364 as_ln_s=ln
28365 else
28366 as_ln_s='cp -p'
28367 fi
28368 else
28369 as_ln_s='cp -p'
28370 fi
28371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28372 rmdir conf$$.dir 2>/dev/null
28373
28374
28375 # as_fn_mkdir_p
28376 # -------------
28377 # Create "$as_dir" as a directory, including parents if necessary.
28378 as_fn_mkdir_p ()
28379 {
28380
28381 case $as_dir in #(
28382 -*) as_dir=./$as_dir;;
28383 esac
28384 test -d "$as_dir" || eval $as_mkdir_p || {
28385 as_dirs=
28386 while :; do
28387 case $as_dir in #(
28388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28389 *) as_qdir=$as_dir;;
28390 esac
28391 as_dirs="'$as_qdir' $as_dirs"
28392 as_dir=`$as_dirname -- "$as_dir" ||
28393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28394 X"$as_dir" : 'X\(//\)[^/]' \| \
28395 X"$as_dir" : 'X\(//\)$' \| \
28396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28397 $as_echo X"$as_dir" |
28398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28399 s//\1/
28400 q
28401 }
28402 /^X\(\/\/\)[^/].*/{
28403 s//\1/
28404 q
28405 }
28406 /^X\(\/\/\)$/{
28407 s//\1/
28408 q
28409 }
28410 /^X\(\/\).*/{
28411 s//\1/
28412 q
28413 }
28414 s/.*/./; q'`
28415 test -d "$as_dir" && break
28416 done
28417 test -z "$as_dirs" || eval "mkdir $as_dirs"
28418 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28419
28420
28421 } # as_fn_mkdir_p
28422 if mkdir -p . 2>/dev/null; then
28423 as_mkdir_p='mkdir -p "$as_dir"'
28424 else
28425 test -d ./-p && rmdir ./-p
28426 as_mkdir_p=false
28427 fi
28428
28429 if test -x / >/dev/null 2>&1; then
28430 as_test_x='test -x'
28431 else
28432 if ls -dL / >/dev/null 2>&1; then
28433 as_ls_L_option=L
28434 else
28435 as_ls_L_option=
28436 fi
28437 as_test_x='
28438 eval sh -c '\''
28439 if test -d "$1"; then
28440 test -d "$1/.";
28441 else
28442 case $1 in #(
28443 -*)set "./$1";;
28444 esac;
28445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28446 ???[sx]*):;;*)false;;esac;fi
28447 '\'' sh
28448 '
28449 fi
28450 as_executable_p=$as_test_x
28451
28452 # Sed expression to map a string onto a valid CPP name.
28453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28454
28455 # Sed expression to map a string onto a valid variable name.
28456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28457
28458
28459 exec 6>&1
28460 ## ----------------------------------- ##
28461 ## Main body of $CONFIG_STATUS script. ##
28462 ## ----------------------------------- ##
28463 _ASEOF
28464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28465
28466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28467 # Save the log message, to keep $0 and so on meaningful, and to
28468 # report actual input values of CONFIG_FILES etc. instead of their
28469 # values after options handling.
28470 ac_log="
28471 This file was extended by $as_me, which was
28472 generated by GNU Autoconf 2.64. Invocation command line was
28473
28474 CONFIG_FILES = $CONFIG_FILES
28475 CONFIG_HEADERS = $CONFIG_HEADERS
28476 CONFIG_LINKS = $CONFIG_LINKS
28477 CONFIG_COMMANDS = $CONFIG_COMMANDS
28478 $ $0 $@
28479
28480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28481 "
28482
28483 _ACEOF
28484
28485 case $ac_config_files in *"
28486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28487 esac
28488
28489 case $ac_config_headers in *"
28490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28491 esac
28492
28493
28494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28495 # Files that config.status was made for.
28496 config_files="$ac_config_files"
28497 config_headers="$ac_config_headers"
28498 config_commands="$ac_config_commands"
28499
28500 _ACEOF
28501
28502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28503 ac_cs_usage="\
28504 \`$as_me' instantiates files and other configuration actions
28505 from templates according to the current configuration. Unless the files
28506 and actions are specified as TAGs, all are instantiated by default.
28507
28508 Usage: $0 [OPTION]... [TAG]...
28509
28510 -h, --help print this help, then exit
28511 -V, --version print version number and configuration settings, then exit
28512 -q, --quiet, --silent
28513 do not print progress messages
28514 -d, --debug don't remove temporary files
28515 --recheck update $as_me by reconfiguring in the same conditions
28516 --file=FILE[:TEMPLATE]
28517 instantiate the configuration file FILE
28518 --header=FILE[:TEMPLATE]
28519 instantiate the configuration header FILE
28520
28521 Configuration files:
28522 $config_files
28523
28524 Configuration headers:
28525 $config_headers
28526
28527 Configuration commands:
28528 $config_commands
28529
28530 Report bugs to the package provider."
28531
28532 _ACEOF
28533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28534 ac_cs_version="\\
28535 config.status
28536 configured by $0, generated by GNU Autoconf 2.64,
28537 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28538
28539 Copyright (C) 2009 Free Software Foundation, Inc.
28540 This config.status script is free software; the Free Software Foundation
28541 gives unlimited permission to copy, distribute and modify it."
28542
28543 ac_pwd='$ac_pwd'
28544 srcdir='$srcdir'
28545 AWK='$AWK'
28546 test -n "\$AWK" || AWK=awk
28547 _ACEOF
28548
28549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28550 # The default lists apply if the user does not specify any file.
28551 ac_need_defaults=:
28552 while test $# != 0
28553 do
28554 case $1 in
28555 --*=*)
28556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28558 ac_shift=:
28559 ;;
28560 *)
28561 ac_option=$1
28562 ac_optarg=$2
28563 ac_shift=shift
28564 ;;
28565 esac
28566
28567 case $ac_option in
28568 # Handling of the options.
28569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28570 ac_cs_recheck=: ;;
28571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28572 $as_echo "$ac_cs_version"; exit ;;
28573 --debug | --debu | --deb | --de | --d | -d )
28574 debug=: ;;
28575 --file | --fil | --fi | --f )
28576 $ac_shift
28577 case $ac_optarg in
28578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28579 esac
28580 as_fn_append CONFIG_FILES " '$ac_optarg'"
28581 ac_need_defaults=false;;
28582 --header | --heade | --head | --hea )
28583 $ac_shift
28584 case $ac_optarg in
28585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28586 esac
28587 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28588 ac_need_defaults=false;;
28589 --he | --h)
28590 # Conflict between --help and --header
28591 as_fn_error "ambiguous option: \`$1'
28592 Try \`$0 --help' for more information.";;
28593 --help | --hel | -h )
28594 $as_echo "$ac_cs_usage"; exit ;;
28595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28597 ac_cs_silent=: ;;
28598
28599 # This is an error.
28600 -*) as_fn_error "unrecognized option: \`$1'
28601 Try \`$0 --help' for more information." ;;
28602
28603 *) as_fn_append ac_config_targets " $1"
28604 ac_need_defaults=false ;;
28605
28606 esac
28607 shift
28608 done
28609
28610 ac_configure_extra_args=
28611
28612 if $ac_cs_silent; then
28613 exec 6>/dev/null
28614 ac_configure_extra_args="$ac_configure_extra_args --silent"
28615 fi
28616
28617 _ACEOF
28618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28619 if \$ac_cs_recheck; then
28620 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28621 shift
28622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28623 CONFIG_SHELL='$SHELL'
28624 export CONFIG_SHELL
28625 exec "\$@"
28626 fi
28627
28628 _ACEOF
28629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28630 exec 5>>config.log
28631 {
28632 echo
28633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28634 ## Running $as_me. ##
28635 _ASBOX
28636 $as_echo "$ac_log"
28637 } >&5
28638
28639 _ACEOF
28640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28641 #
28642 # INIT-COMMANDS
28643 #
28644 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28645 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28646 subdirs='$subdirs'
28647
28648 _ACEOF
28649
28650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28651
28652 # Handling of arguments.
28653 for ac_config_target in $ac_config_targets
28654 do
28655 case $ac_config_target in
28656 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28657 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28658 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28659 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28660 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28661 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28662 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28663 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28664
28665 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28666 esac
28667 done
28668
28669
28670 # If the user did not use the arguments to specify the items to instantiate,
28671 # then the envvar interface is used. Set only those that are not.
28672 # We use the long form for the default assignment because of an extremely
28673 # bizarre bug on SunOS 4.1.3.
28674 if $ac_need_defaults; then
28675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28678 fi
28679
28680 # Have a temporary directory for convenience. Make it in the build tree
28681 # simply because there is no reason against having it here, and in addition,
28682 # creating and moving files from /tmp can sometimes cause problems.
28683 # Hook for its removal unless debugging.
28684 # Note that there is a small window in which the directory will not be cleaned:
28685 # after its creation but before its name has been assigned to `$tmp'.
28686 $debug ||
28687 {
28688 tmp=
28689 trap 'exit_status=$?
28690 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28691 ' 0
28692 trap 'as_fn_exit 1' 1 2 13 15
28693 }
28694 # Create a (secure) tmp directory for tmp files.
28695
28696 {
28697 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28698 test -n "$tmp" && test -d "$tmp"
28699 } ||
28700 {
28701 tmp=./conf$$-$RANDOM
28702 (umask 077 && mkdir "$tmp")
28703 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28704
28705 # Set up the scripts for CONFIG_FILES section.
28706 # No need to generate them if there are no CONFIG_FILES.
28707 # This happens for instance with `./config.status config.h'.
28708 if test -n "$CONFIG_FILES"; then
28709
28710 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28711 ac_cs_awk_getline=:
28712 ac_cs_awk_pipe_init=
28713 ac_cs_awk_read_file='
28714 while ((getline aline < (F[key])) > 0)
28715 print(aline)
28716 close(F[key])'
28717 ac_cs_awk_pipe_fini=
28718 else
28719 ac_cs_awk_getline=false
28720 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28721 ac_cs_awk_read_file='
28722 print "|#_!!_#|"
28723 print "cat " F[key] " &&"
28724 '$ac_cs_awk_pipe_init
28725 # The final `:' finishes the AND list.
28726 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28727 fi
28728 ac_cr=`echo X | tr X '\015'`
28729 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28730 # But we know of no other shell where ac_cr would be empty at this
28731 # point, so we can use a bashism as a fallback.
28732 if test "x$ac_cr" = x; then
28733 eval ac_cr=\$\'\\r\'
28734 fi
28735 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28736 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28737 ac_cs_awk_cr='\r'
28738 else
28739 ac_cs_awk_cr=$ac_cr
28740 fi
28741
28742 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28743 _ACEOF
28744
28745 # Create commands to substitute file output variables.
28746 {
28747 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28748 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28749 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28750 echo "_ACAWK" &&
28751 echo "_ACEOF"
28752 } >conf$$files.sh &&
28753 . ./conf$$files.sh ||
28754 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28755 rm -f conf$$files.sh
28756
28757 {
28758 echo "cat >conf$$subs.awk <<_ACEOF" &&
28759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28760 echo "_ACEOF"
28761 } >conf$$subs.sh ||
28762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28764 ac_delim='%!_!# '
28765 for ac_last_try in false false false false false :; do
28766 . ./conf$$subs.sh ||
28767 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28768
28769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28770 if test $ac_delim_n = $ac_delim_num; then
28771 break
28772 elif $ac_last_try; then
28773 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28774 else
28775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28776 fi
28777 done
28778 rm -f conf$$subs.sh
28779
28780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28781 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28782 _ACEOF
28783 sed -n '
28784 h
28785 s/^/S["/; s/!.*/"]=/
28786 p
28787 g
28788 s/^[^!]*!//
28789 :repl
28790 t repl
28791 s/'"$ac_delim"'$//
28792 t delim
28793 :nl
28794 h
28795 s/\(.\{148\}\).*/\1/
28796 t more1
28797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28798 p
28799 n
28800 b repl
28801 :more1
28802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28803 p
28804 g
28805 s/.\{148\}//
28806 t nl
28807 :delim
28808 h
28809 s/\(.\{148\}\).*/\1/
28810 t more2
28811 s/["\\]/\\&/g; s/^/"/; s/$/"/
28812 p
28813 b
28814 :more2
28815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28816 p
28817 g
28818 s/.\{148\}//
28819 t delim
28820 ' <conf$$subs.awk | sed '
28821 /^[^""]/{
28822 N
28823 s/\n//
28824 }
28825 ' >>$CONFIG_STATUS || ac_write_fail=1
28826 rm -f conf$$subs.awk
28827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28828 _ACAWK
28829 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28830 for (key in S) S_is_set[key] = 1
28831 FS = "\a"
28832 \$ac_cs_awk_pipe_init
28833 }
28834 {
28835 line = $ 0
28836 nfields = split(line, field, "@")
28837 substed = 0
28838 len = length(field[1])
28839 for (i = 2; i < nfields; i++) {
28840 key = field[i]
28841 keylen = length(key)
28842 if (S_is_set[key]) {
28843 value = S[key]
28844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28845 len += length(value) + length(field[++i])
28846 substed = 1
28847 } else
28848 len += 1 + keylen
28849 }
28850 if (nfields == 3 && !substed) {
28851 key = field[2]
28852 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28853 \$ac_cs_awk_read_file
28854 next
28855 }
28856 }
28857 print line
28858 }
28859 \$ac_cs_awk_pipe_fini
28860 _ACAWK
28861 _ACEOF
28862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28863 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28864 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28865 else
28866 cat
28867 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28868 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28869 _ACEOF
28870
28871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28873 # trailing colons and then remove the whole line if VPATH becomes empty
28874 # (actually we leave an empty line to preserve line numbers).
28875 if test "x$srcdir" = x.; then
28876 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28877 s/:*\$(srcdir):*/:/
28878 s/:*\${srcdir}:*/:/
28879 s/:*@srcdir@:*/:/
28880 s/^\([^=]*=[ ]*\):*/\1/
28881 s/:*$//
28882 s/^[^=]*=[ ]*$//
28883 }'
28884 fi
28885
28886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28887 fi # test -n "$CONFIG_FILES"
28888
28889 # Set up the scripts for CONFIG_HEADERS section.
28890 # No need to generate them if there are no CONFIG_HEADERS.
28891 # This happens for instance with `./config.status Makefile'.
28892 if test -n "$CONFIG_HEADERS"; then
28893 cat >"$tmp/defines.awk" <<\_ACAWK ||
28894 BEGIN {
28895 _ACEOF
28896
28897 # Transform confdefs.h into an awk script `defines.awk', embedded as
28898 # here-document in config.status, that substitutes the proper values into
28899 # config.h.in to produce config.h.
28900
28901 # Create a delimiter string that does not exist in confdefs.h, to ease
28902 # handling of long lines.
28903 ac_delim='%!_!# '
28904 for ac_last_try in false false :; do
28905 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28906 if test -z "$ac_t"; then
28907 break
28908 elif $ac_last_try; then
28909 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28910 else
28911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28912 fi
28913 done
28914
28915 # For the awk script, D is an array of macro values keyed by name,
28916 # likewise P contains macro parameters if any. Preserve backslash
28917 # newline sequences.
28918
28919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28920 sed -n '
28921 s/.\{148\}/&'"$ac_delim"'/g
28922 t rset
28923 :rset
28924 s/^[ ]*#[ ]*define[ ][ ]*/ /
28925 t def
28926 d
28927 :def
28928 s/\\$//
28929 t bsnl
28930 s/["\\]/\\&/g
28931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28932 D["\1"]=" \3"/p
28933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28934 d
28935 :bsnl
28936 s/["\\]/\\&/g
28937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28938 D["\1"]=" \3\\\\\\n"\\/p
28939 t cont
28940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28941 t cont
28942 d
28943 :cont
28944 n
28945 s/.\{148\}/&'"$ac_delim"'/g
28946 t clear
28947 :clear
28948 s/\\$//
28949 t bsnlc
28950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28951 d
28952 :bsnlc
28953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28954 b cont
28955 ' <confdefs.h | sed '
28956 s/'"$ac_delim"'/"\\\
28957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28958
28959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28960 for (key in D) D_is_set[key] = 1
28961 FS = "\a"
28962 }
28963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28964 line = \$ 0
28965 split(line, arg, " ")
28966 if (arg[1] == "#") {
28967 defundef = arg[2]
28968 mac1 = arg[3]
28969 } else {
28970 defundef = substr(arg[1], 2)
28971 mac1 = arg[2]
28972 }
28973 split(mac1, mac2, "(") #)
28974 macro = mac2[1]
28975 prefix = substr(line, 1, index(line, defundef) - 1)
28976 if (D_is_set[macro]) {
28977 # Preserve the white space surrounding the "#".
28978 print prefix "define", macro P[macro] D[macro]
28979 next
28980 } else {
28981 # Replace #undef with comments. This is necessary, for example,
28982 # in the case of _POSIX_SOURCE, which is predefined and required
28983 # on some systems where configure will not decide to define it.
28984 if (defundef == "undef") {
28985 print "/*", prefix defundef, macro, "*/"
28986 next
28987 }
28988 }
28989 }
28990 { print }
28991 _ACAWK
28992 _ACEOF
28993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28994 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28995 fi # test -n "$CONFIG_HEADERS"
28996
28997
28998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28999 shift
29000 for ac_tag
29001 do
29002 case $ac_tag in
29003 :[FHLC]) ac_mode=$ac_tag; continue;;
29004 esac
29005 case $ac_mode$ac_tag in
29006 :[FHL]*:*);;
29007 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29008 :[FH]-) ac_tag=-:-;;
29009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29010 esac
29011 ac_save_IFS=$IFS
29012 IFS=:
29013 set x $ac_tag
29014 IFS=$ac_save_IFS
29015 shift
29016 ac_file=$1
29017 shift
29018
29019 case $ac_mode in
29020 :L) ac_source=$1;;
29021 :[FH])
29022 ac_file_inputs=
29023 for ac_f
29024 do
29025 case $ac_f in
29026 -) ac_f="$tmp/stdin";;
29027 *) # Look for the file first in the build tree, then in the source tree
29028 # (if the path is not absolute). The absolute path cannot be DOS-style,
29029 # because $ac_f cannot contain `:'.
29030 test -f "$ac_f" ||
29031 case $ac_f in
29032 [\\/$]*) false;;
29033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29034 esac ||
29035 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29036 esac
29037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29038 as_fn_append ac_file_inputs " '$ac_f'"
29039 done
29040
29041 # Let's still pretend it is `configure' which instantiates (i.e., don't
29042 # use $as_me), people would be surprised to read:
29043 # /* config.h. Generated by config.status. */
29044 configure_input='Generated from '`
29045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29046 `' by configure.'
29047 if test x"$ac_file" != x-; then
29048 configure_input="$ac_file. $configure_input"
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29050 $as_echo "$as_me: creating $ac_file" >&6;}
29051 fi
29052 # Neutralize special characters interpreted by sed in replacement strings.
29053 case $configure_input in #(
29054 *\&* | *\|* | *\\* )
29055 ac_sed_conf_input=`$as_echo "$configure_input" |
29056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29057 *) ac_sed_conf_input=$configure_input;;
29058 esac
29059
29060 case $ac_tag in
29061 *:-:* | *:-) cat >"$tmp/stdin" \
29062 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29063 esac
29064 ;;
29065 esac
29066
29067 ac_dir=`$as_dirname -- "$ac_file" ||
29068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29069 X"$ac_file" : 'X\(//\)[^/]' \| \
29070 X"$ac_file" : 'X\(//\)$' \| \
29071 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29072 $as_echo X"$ac_file" |
29073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29074 s//\1/
29075 q
29076 }
29077 /^X\(\/\/\)[^/].*/{
29078 s//\1/
29079 q
29080 }
29081 /^X\(\/\/\)$/{
29082 s//\1/
29083 q
29084 }
29085 /^X\(\/\).*/{
29086 s//\1/
29087 q
29088 }
29089 s/.*/./; q'`
29090 as_dir="$ac_dir"; as_fn_mkdir_p
29091 ac_builddir=.
29092
29093 case "$ac_dir" in
29094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29095 *)
29096 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29097 # A ".." for each directory in $ac_dir_suffix.
29098 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29099 case $ac_top_builddir_sub in
29100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29102 esac ;;
29103 esac
29104 ac_abs_top_builddir=$ac_pwd
29105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29106 # for backward compatibility:
29107 ac_top_builddir=$ac_top_build_prefix
29108
29109 case $srcdir in
29110 .) # We are building in place.
29111 ac_srcdir=.
29112 ac_top_srcdir=$ac_top_builddir_sub
29113 ac_abs_top_srcdir=$ac_pwd ;;
29114 [\\/]* | ?:[\\/]* ) # Absolute name.
29115 ac_srcdir=$srcdir$ac_dir_suffix;
29116 ac_top_srcdir=$srcdir
29117 ac_abs_top_srcdir=$srcdir ;;
29118 *) # Relative name.
29119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29120 ac_top_srcdir=$ac_top_build_prefix$srcdir
29121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29122 esac
29123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29124
29125
29126 case $ac_mode in
29127 :F)
29128 #
29129 # CONFIG_FILE
29130 #
29131
29132 _ACEOF
29133
29134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29135 # If the template does not know about datarootdir, expand it.
29136 # FIXME: This hack should be removed a few years after 2.60.
29137 ac_datarootdir_hack=; ac_datarootdir_seen=
29138 ac_sed_dataroot='
29139 /datarootdir/ {
29140 p
29141 q
29142 }
29143 /@datadir@/p
29144 /@docdir@/p
29145 /@infodir@/p
29146 /@localedir@/p
29147 /@mandir@/p'
29148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29149 *datarootdir*) ac_datarootdir_seen=yes;;
29150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29153 _ACEOF
29154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29155 ac_datarootdir_hack='
29156 s&@datadir@&$datadir&g
29157 s&@docdir@&$docdir&g
29158 s&@infodir@&$infodir&g
29159 s&@localedir@&$localedir&g
29160 s&@mandir@&$mandir&g
29161 s&\\\${datarootdir}&$datarootdir&g' ;;
29162 esac
29163 _ACEOF
29164
29165 # Neutralize VPATH when `$srcdir' = `.'.
29166 # Shell code in configure.ac might set extrasub.
29167 # FIXME: do we really want to maintain this feature?
29168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29169 ac_sed_extra="$ac_vpsub
29170 $extrasub
29171 _ACEOF
29172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29173 :t
29174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29175 s|@configure_input@|$ac_sed_conf_input|;t t
29176 s&@top_builddir@&$ac_top_builddir_sub&;t t
29177 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29178 s&@srcdir@&$ac_srcdir&;t t
29179 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29180 s&@top_srcdir@&$ac_top_srcdir&;t t
29181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29182 s&@builddir@&$ac_builddir&;t t
29183 s&@abs_builddir@&$ac_abs_builddir&;t t
29184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29185 $ac_datarootdir_hack
29186 "
29187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29188 if $ac_cs_awk_getline; then
29189 $AWK -f "$tmp/subs.awk"
29190 else
29191 $AWK -f "$tmp/subs.awk" | $SHELL
29192 fi >$tmp/out \
29193 || as_fn_error "could not create $ac_file" "$LINENO" 5
29194
29195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29196 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29199 which seems to be undefined. Please make sure it is defined." >&5
29200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29201 which seems to be undefined. Please make sure it is defined." >&2;}
29202
29203 rm -f "$tmp/stdin"
29204 case $ac_file in
29205 -) cat "$tmp/out" && rm -f "$tmp/out";;
29206 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29207 esac \
29208 || as_fn_error "could not create $ac_file" "$LINENO" 5
29209 ;;
29210 :H)
29211 #
29212 # CONFIG_HEADER
29213 #
29214 if test x"$ac_file" != x-; then
29215 {
29216 $as_echo "/* $configure_input */" \
29217 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29218 } >"$tmp/config.h" \
29219 || as_fn_error "could not create $ac_file" "$LINENO" 5
29220 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29223 else
29224 rm -f "$ac_file"
29225 mv "$tmp/config.h" "$ac_file" \
29226 || as_fn_error "could not create $ac_file" "$LINENO" 5
29227 fi
29228 else
29229 $as_echo "/* $configure_input */" \
29230 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29231 || as_fn_error "could not create -" "$LINENO" 5
29232 fi
29233 ;;
29234
29235 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29236 $as_echo "$as_me: executing $ac_file commands" >&6;}
29237 ;;
29238 esac
29239
29240
29241 case $ac_file$ac_mode in
29242 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29243 "gccdepdir":C)
29244 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29245 for lang in $subdirs c-family common
29246 do
29247 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29248 done ;;
29249 "as":F) chmod +x as ;;
29250 "collect-ld":F) chmod +x collect-ld ;;
29251 "nm":F) chmod +x nm ;;
29252 "default":C)
29253 case ${CONFIG_HEADERS} in
29254 *auto-host.h:config.in*)
29255 echo > cstamp-h ;;
29256 esac
29257 # Make sure all the subdirs exist.
29258 for d in $subdirs doc build common c-family
29259 do
29260 test -d $d || mkdir $d
29261 done
29262 ;;
29263
29264 esac
29265 done # for ac_tag
29266
29267
29268 as_fn_exit 0
29269 _ACEOF
29270 ac_clean_files=$ac_clean_files_save
29271
29272 test $ac_write_fail = 0 ||
29273 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29274
29275
29276 # configure is writing to config.log, and then calls config.status.
29277 # config.status does its own redirection, appending to config.log.
29278 # Unfortunately, on DOS this fails, as config.log is still kept open
29279 # by configure, so config.status won't be able to write to it; its
29280 # output is simply discarded. So we exec the FD to /dev/null,
29281 # effectively closing config.log, so it can be properly (re)opened and
29282 # appended to by config.status. When coming back to configure, we
29283 # need to make the FD available again.
29284 if test "$no_create" != yes; then
29285 ac_cs_success=:
29286 ac_config_status_args=
29287 test "$silent" = yes &&
29288 ac_config_status_args="$ac_config_status_args --quiet"
29289 exec 5>/dev/null
29290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29291 exec 5>>config.log
29292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29293 # would make configure fail if this is the last instruction.
29294 $ac_cs_success || as_fn_exit $?
29295 fi
29296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29298 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29299 fi
29300
29301