Remove obsolete Solaris 9 support
[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 with_stabs
886 enable_multilib
887 enable_multiarch
888 enable___cxa_atexit
889 enable_decimal_float
890 enable_fixed_point
891 enable_threads
892 enable_tls
893 enable_objc_gc
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 enable_ld
917 enable_gold
918 with_plugin_ld
919 enable_gnu_indirect_function
920 enable_initfini_array
921 enable_comdat
922 with_glibc_version
923 enable_gnu_unique_object
924 enable_linker_build_id
925 with_long_double_128
926 with_gc
927 with_system_zlib
928 enable_maintainer_mode
929 enable_link_mutex
930 enable_version_specific_runtime_libs
931 enable_plugin
932 enable_host_shared
933 enable_libquadmath_support
934 with_linker_hash_style
935 '
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 CXX
945 CXXFLAGS
946 CCC
947 CPP
948 CXXCPP
949 GMPLIBS
950 GMPINC
951 ISLLIBS
952 ISLINC
953 CLOOGLIBS
954 CLOOGINC'
955
956
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1004
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1014 fi
1015
1016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
1020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
1026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1051
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1382 do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1413 fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\/\)$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\).*/{
1453 s//\1/
1454 q
1455 }
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1460 fi
1461 else
1462 ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1550
1551 cat <<\_ACEOF
1552
1553 Program names:
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1557
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-generated-files-in-srcdir
1574 put copies of generated files in source dir intended
1575 for creating source tarballs for users without
1576 texinfo bison or flex
1577 --disable-largefile omit support for large files
1578 --disable-build-format-warnings
1579 don't use -Wformat while building GCC
1580 --enable-werror-always enable -Werror despite compiler version
1581 --enable-checking[=LIST]
1582 enable expensive run-time checks. With LIST, enable
1583 only specific categories of checks. Categories are:
1584 yes,no,all,none,release. Flags are:
1585 assert,df,fold,gc,gcac,gimple,misc,
1586 rtlflag,rtl,runtime,tree,valgrind,types
1587 --enable-coverage[=LEVEL]
1588 enable compiler's code coverage collection. Use to
1589 measure compiler performance and locate unused parts
1590 of the compiler. With LEVEL, specify optimization.
1591 Values are opt, noopt, default is noopt
1592 --enable-gather-detailed-mem-stats
1593 enable detailed memory allocation stats gathering
1594 --enable-multilib enable library support for multiple ABIs
1595 --enable-multiarch enable support for multiarch paths
1596 --enable-__cxa_atexit enable __cxa_atexit for C++
1597 --enable-decimal-float={no,yes,bid,dpd}
1598 enable decimal float extension to C. Selecting 'bid'
1599 or 'dpd' choses which decimal floating point format
1600 to use
1601 --enable-fixed-point enable fixed-point arithmetic extension to C
1602 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1603 package
1604 --enable-tls enable or disable generation of tls code overriding
1605 the assembler check for tls support
1606 --enable-objc-gc enable the use of Boehm's garbage collector with the
1607 GNU Objective-C runtime
1608 --disable-shared don't provide a shared libgcc
1609 --enable-languages=LIST specify which front-ends to build
1610 --disable-rpath do not hardcode runtime library paths
1611 --enable-sjlj-exceptions
1612 arrange to use setjmp/longjmp exception handling
1613 --enable-secureplt enable -msecure-plt by default for PowerPC
1614 --enable-leading-mingw64-underscores
1615 enable leading underscores on 64 bit mingw targets
1616 --enable-cld enable -mcld by default for 32bit x86
1617 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1618 x86
1619 --disable-win32-registry
1620 disable lookup of installation paths in the Registry
1621 on Windows hosts
1622 --enable-win32-registry enable registry lookup (default)
1623 --enable-win32-registry=KEY
1624 use KEY instead of GCC version as the last portion
1625 of the registry key
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1632 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1633 --enable-gnu-indirect-function
1634 enable the use of the @gnu_indirect_function to
1635 glibc systems
1636 --enable-initfini-array use .init_array/.fini_array sections
1637 --enable-comdat enable COMDAT group support
1638 --enable-gnu-unique-object
1639 enable the use of the @gnu_unique_object ELF
1640 extension on glibc systems
1641 --enable-linker-build-id
1642 compiler will always pass --build-id to linker
1643 --enable-maintainer-mode
1644 enable make rules and dependencies not useful (and
1645 sometimes confusing) to the casual installer
1646 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1647 thrashing on the build machine
1648 --enable-version-specific-runtime-libs
1649 specify that runtime libraries should be installed
1650 in a compiler-specific directory
1651 --enable-plugin enable plugin support
1652 --enable-host-shared build host code as shared libraries
1653 --disable-libquadmath-support
1654 disable libquadmath support for Fortran
1655
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-build-libsubdir=DIR Directory where to find libraries for build system
1660 --with-local-prefix=DIR specifies directory to put local include
1661 --with-gxx-include-dir=DIR
1662 specifies directory to put g++ header files
1663 --with-cpp-install-dir=DIR
1664 install the user visible C preprocessor in DIR
1665 (relative to PREFIX) as well as PREFIX/bin
1666 --with-gnu-ld arrange to work with GNU ld
1667 --with-ld arrange to use the specified ld (full pathname)
1668 --with-demangler-in-ld try to use demangler in GNU ld
1669 --with-gnu-as arrange to work with GNU as
1670 --with-as arrange to use the specified as (full pathname)
1671 --with-stabs arrange to use stabs instead of host debug format
1672 --with-dwarf2 force the default debug format to be DWARF 2
1673 --with-native-system-header-dir=dir
1674 use dir as the directory to look for standard
1675 system header files in. Defaults to /usr/include.
1676 --with-build-sysroot=sysroot
1677 use sysroot as the system root during the build
1678 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1679 --with-specs=SPECS add SPECS to driver command-line processing
1680 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1681 --with-bugurl=URL Direct users to URL to report a bug
1682 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-pic try to use only PIC/non-PIC objects [default=use
1687 both]
1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1689 --with-plugin-ld=[ARG] specify the plugin linker
1690 --with-glibc-version=M.N
1691 assume GCC used with glibc version M.N or later
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} this option is not supported anymore. It used to
1694 choose the garbage collection mechanism to use with
1695 the compiler
1696 --with-system-zlib use installed libz
1697 --with-linker-hash-style={sysv,gnu,both}
1698 specify the linker hash style
1699
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CPP C preprocessor
1711 CXXCPP C++ preprocessor
1712 GMPLIBS How to link GMP
1713 GMPINC How to find GMP include files
1714 ISLLIBS How to link ISL
1715 ISLINC How to find ISL include files
1716 CLOOGLIBS How to link CLOOG
1717 CLOOGINC How to find CLOOG include files
1718
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1721
1722 Report bugs to the package provider.
1723 _ACEOF
1724 ac_status=$?
1725 fi
1726
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1733 ac_builddir=.
1734
1735 case "$ac_dir" in
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *)
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745 esac
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1750
1751 case $srcdir in
1752 .) # We are building in place.
1753 ac_srcdir=.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 esac
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1780 fi
1781
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.64
1787
1788 Copyright (C) 2009 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1793 fi
1794
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1798
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1834
1835 } # ac_fn_c_try_compile
1836
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873 } # ac_fn_cxx_try_compile
1874
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1940 else
1941 ac_header_compiler=no
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1946
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1956 else
1957 ac_header_preproc=no
1958 fi
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1962
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 yes:no: )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 ;;
1971 no:yes:* )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ;;
1983 esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=\$ac_header_compiler"
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 fi
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997 } # ac_fn_c_check_header_mongrel
1998
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 ac_retval=$ac_status
2034 fi
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 return $ac_retval
2038
2039 } # ac_fn_c_try_run
2040
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_c_check_header_compile
2071
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2078 {
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=0 ac_mid=0
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2118 fi
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0
2132
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=-1 ac_mid=-1
2139 while :; do
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 int
2144 main ()
2145 {
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 test_array [0] = 0
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2155 else
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2158 ac_lo= ac_hi=
2159 break
2160 fi
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 else
2166 ac_lo= ac_hi=
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0
2182
2183 ;
2184 return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189 else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 case $ac_lo in #((
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196 '') ac_retval=1 ;;
2197 esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2204 #include <stdio.h>
2205 #include <stdlib.h>
2206 int
2207 main ()
2208 {
2209
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2214 {
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2219 }
2220 else
2221 {
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2226 }
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237 else
2238 ac_retval=1
2239 fi
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f conftest.val
2243
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2247
2248 } # ac_fn_c_compute_int
2249
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main ()
2268 {
2269 if (sizeof ($2))
2270 return 0;
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 int
2280 main ()
2281 {
2282 if (sizeof (($2)))
2283 return 0;
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289
2290 else
2291 eval "$3=yes"
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301
2302 } # ac_fn_c_check_type
2303
2304 # ac_fn_c_find_intX_t LINENO BITS VAR
2305 # -----------------------------------
2306 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 # accordingly.
2308 ac_fn_c_find_intX_t ()
2309 {
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2312 $as_echo_n "checking for int$2_t... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 eval "$3=no"
2317 for ac_type in int$2_t 'int' 'long int' \
2318 'long long int' 'short int' 'signed char'; do
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2322 int
2323 main ()
2324 {
2325 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2326 test_array [0] = 0
2327
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $ac_includes_default
2336 int
2337 main ()
2338 {
2339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2340 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2341 test_array [0] = 0
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348
2349 else
2350 case $ac_type in #(
2351 int$2_t) :
2352 eval "$3=yes" ;; #(
2353 *) :
2354 eval "$3=\$ac_type" ;;
2355 esac
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval as_val=\$$3
2361 if test "x$as_val" = x""no; then :
2362
2363 else
2364 break
2365 fi
2366 done
2367 fi
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372
2373 } # ac_fn_c_find_intX_t
2374
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_link ()
2379 {
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2395 fi
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest$ac_exeext
2403 }; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410 fi
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 return $ac_retval
2418
2419 } # ac_fn_c_try_link
2420
2421 # ac_fn_c_find_uintX_t LINENO BITS VAR
2422 # ------------------------------------
2423 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 # accordingly.
2425 ac_fn_c_find_uintX_t ()
2426 {
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2429 $as_echo_n "checking for uint$2_t... " >&6; }
2430 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 eval "$3=no"
2434 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $ac_includes_default
2439 int
2440 main ()
2441 {
2442 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2443 test_array [0] = 0
2444
2445 ;
2446 return 0;
2447 }
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 case $ac_type in #(
2451 uint$2_t) :
2452 eval "$3=yes" ;; #(
2453 *) :
2454 eval "$3=\$ac_type" ;;
2455 esac
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval as_val=\$$3
2459 if test "x$as_val" = x""no; then :
2460
2461 else
2462 break
2463 fi
2464 done
2465 fi
2466 eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470
2471 } # ac_fn_c_find_uintX_t
2472
2473 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2474 # ----------------------------------------------
2475 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2476 ac_fn_c_check_header_preproc ()
2477 {
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_cpp "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2492 fi
2493 rm -f conftest.err conftest.$ac_ext
2494 fi
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499
2500 } # ac_fn_c_check_header_preproc
2501
2502 # ac_fn_cxx_try_cpp LINENO
2503 # ------------------------
2504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2505 ac_fn_cxx_try_cpp ()
2506 {
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_cpp conftest.$ac_ext"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2521 fi
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } >/dev/null && {
2524 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_retval=1
2533 fi
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 return $ac_retval
2536
2537 } # ac_fn_cxx_try_cpp
2538
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2543 {
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552 #include <$2>
2553 _ACEOF
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2558 fi
2559 rm -f conftest.err conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566 } # ac_fn_cxx_check_header_preproc
2567
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2572 {
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2584
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2589
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2595
2596 #undef $2
2597
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2611
2612 int
2613 main ()
2614 {
2615 return $2 ();
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2627 fi
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632
2633 } # ac_fn_c_check_func
2634
2635 # ac_fn_cxx_try_link LINENO
2636 # -------------------------
2637 # Try to link conftest.$ac_ext, and return whether this succeeded.
2638 ac_fn_cxx_try_link ()
2639 {
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 rm -f conftest.$ac_objext conftest$ac_exeext
2642 if { { ac_try="$ac_link"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>conftest.err
2650 ac_status=$?
2651 if test -s conftest.err; then
2652 grep -v '^ *+' conftest.err >conftest.er1
2653 cat conftest.er1 >&5
2654 mv -f conftest.er1 conftest.err
2655 fi
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && {
2658 test -z "$ac_cxx_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest$ac_exeext && {
2661 test "$cross_compiling" = yes ||
2662 $as_test_x conftest$ac_exeext
2663 }; then :
2664 ac_retval=0
2665 else
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 ac_retval=1
2670 fi
2671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2673 # interfere with the next link command; also delete a directory that is
2674 # left behind by Apple's compiler. We do this before executing the actions.
2675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 return $ac_retval
2678
2679 } # ac_fn_cxx_try_link
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2683
2684 It was created by $as_me, which was
2685 generated by GNU Autoconf 2.64. Invocation command line was
2686
2687 $ $0 $@
2688
2689 _ACEOF
2690 exec 5>>config.log
2691 {
2692 cat <<_ASUNAME
2693 ## --------- ##
2694 ## Platform. ##
2695 ## --------- ##
2696
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2713
2714 _ASUNAME
2715
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 $as_echo "PATH: $as_dir"
2722 done
2723 IFS=$as_save_IFS
2724
2725 } >&5
2726
2727 cat >&5 <<_ACEOF
2728
2729
2730 ## ----------- ##
2731 ## Core tests. ##
2732 ## ----------- ##
2733
2734 _ACEOF
2735
2736
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_configure_args=
2743 ac_configure_args0=
2744 ac_configure_args1=
2745 ac_must_keep_next=false
2746 for ac_pass in 1 2
2747 do
2748 for ac_arg
2749 do
2750 case $ac_arg in
2751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753 | -silent | --silent | --silen | --sile | --sil)
2754 continue ;;
2755 *\'*)
2756 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 esac
2758 case $ac_pass in
2759 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2760 2)
2761 as_fn_append ac_configure_args1 " '$ac_arg'"
2762 if test $ac_must_keep_next = true; then
2763 ac_must_keep_next=false # Got value, back to normal.
2764 else
2765 case $ac_arg in
2766 *=* | --config-cache | -C | -disable-* | --disable-* \
2767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769 | -with-* | --with-* | -without-* | --without-* | --x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772 esac
2773 ;;
2774 -* ) ac_must_keep_next=true ;;
2775 esac
2776 fi
2777 as_fn_append ac_configure_args " '$ac_arg'"
2778 ;;
2779 esac
2780 done
2781 done
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2784
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2792 {
2793 echo
2794
2795 cat <<\_ASBOX
2796 ## ---------------- ##
2797 ## Cache variables. ##
2798 ## ---------------- ##
2799 _ASBOX
2800 echo
2801 # The following way of writing the cache mishandles newlines in values,
2802 (
2803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2804 eval ac_val=\$$ac_var
2805 case $ac_val in #(
2806 *${as_nl}*)
2807 case $ac_var in #(
2808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2810 esac
2811 case $ac_var in #(
2812 _ | IFS | as_nl) ;; #(
2813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2814 *) { eval $ac_var=; unset $ac_var;} ;;
2815 esac ;;
2816 esac
2817 done
2818 (set) 2>&1 |
2819 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2820 *${as_nl}ac_space=\ *)
2821 sed -n \
2822 "s/'\''/'\''\\\\'\'''\''/g;
2823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2824 ;; #(
2825 *)
2826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2827 ;;
2828 esac |
2829 sort
2830 )
2831 echo
2832
2833 cat <<\_ASBOX
2834 ## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_vars
2840 do
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2848
2849 if test -n "$ac_subst_files"; then
2850 cat <<\_ASBOX
2851 ## ------------------- ##
2852 ## File substitutions. ##
2853 ## ------------------- ##
2854 _ASBOX
2855 echo
2856 for ac_var in $ac_subst_files
2857 do
2858 eval ac_val=\$$ac_var
2859 case $ac_val in
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 esac
2862 $as_echo "$ac_var='\''$ac_val'\''"
2863 done | sort
2864 echo
2865 fi
2866
2867 if test -s confdefs.h; then
2868 cat <<\_ASBOX
2869 ## ----------- ##
2870 ## confdefs.h. ##
2871 ## ----------- ##
2872 _ASBOX
2873 echo
2874 cat confdefs.h
2875 echo
2876 fi
2877 test "$ac_signal" != 0 &&
2878 $as_echo "$as_me: caught signal $ac_signal"
2879 $as_echo "$as_me: exit $exit_status"
2880 } >&5
2881 rm -f core *.core core.conftest.* &&
2882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2883 exit $exit_status
2884 ' 0
2885 for ac_signal in 1 2 13 15; do
2886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2887 done
2888 ac_signal=0
2889
2890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2891 rm -f -r conftest* confdefs.h
2892
2893 $as_echo "/* confdefs.h */" > confdefs.h
2894
2895 # Predefined preprocessor variables.
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_NAME "$PACKAGE_NAME"
2899 _ACEOF
2900
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2903 _ACEOF
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2907 _ACEOF
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_STRING "$PACKAGE_STRING"
2911 _ACEOF
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2915 _ACEOF
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_URL "$PACKAGE_URL"
2919 _ACEOF
2920
2921
2922 # Let the site file select an alternate cache file if it wants to.
2923 # Prefer an explicitly selected file to automatically selected ones.
2924 ac_site_file1=NONE
2925 ac_site_file2=NONE
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_file1=$CONFIG_SITE
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_file1=$prefix/share/config.site
2930 ac_site_file2=$prefix/etc/config.site
2931 else
2932 ac_site_file1=$ac_default_prefix/share/config.site
2933 ac_site_file2=$ac_default_prefix/etc/config.site
2934 fi
2935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2936 do
2937 test "x$ac_site_file" = xNONE && continue
2938 if test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2942 . "$ac_site_file"
2943 fi
2944 done
2945
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special
2948 # files actually), so we avoid doing that.
2949 if test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 case $cache_file in
2953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954 *) . "./$cache_file";;
2955 esac
2956 fi
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2960 >$cache_file
2961 fi
2962
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2972 set,)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,set)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,);;
2981 *)
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2999 fi;;
3000 esac
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3003 case $ac_new_val in
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3006 esac
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010 esac
3011 fi
3012 done
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 fi
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031
3032
3033
3034
3035 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3036
3037
3038 gcc_version=`cat $srcdir/BASE-VER`
3039
3040 # Determine the host, build, and target systems
3041 ac_aux_dir=
3042 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3043 for ac_t in install-sh install.sh shtool; do
3044 if test -f "$ac_dir/$ac_t"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/$ac_t -c"
3047 break 2
3048 fi
3049 done
3050 done
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3053 fi
3054
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3062
3063
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if test "${ac_cv_build+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3087 esac
3088 build=$ac_cv_build
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_build
3091 shift
3092 build_cpu=$1
3093 build_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 build_os=$*
3098 IFS=$ac_save_IFS
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test "x$host_alias" = x; then
3108 ac_cv_host=$ac_cv_build
3109 else
3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test "x$target_alias" = x; then
3141 ac_cv_target=$ac_cv_host
3142 else
3143 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3145 fi
3146
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3151 *-*-*) ;;
3152 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3153 esac
3154 target=$ac_cv_target
3155 ac_save_IFS=$IFS; IFS='-'
3156 set x $ac_cv_target
3157 shift
3158 target_cpu=$1
3159 target_vendor=$2
3160 shift; shift
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3163 target_os=$*
3164 IFS=$ac_save_IFS
3165 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3166
3167
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171 test "$program_prefix$program_suffix$program_transform_name" = \
3172 NONENONEs,x,x, &&
3173 program_prefix=${target_alias}-
3174
3175 # Determine the noncanonical target name, for directory use.
3176 case ${build_alias} in
3177 "") build_noncanonical=${build} ;;
3178 *) build_noncanonical=${build_alias} ;;
3179 esac
3180
3181 case ${host_alias} in
3182 "") host_noncanonical=${build_noncanonical} ;;
3183 *) host_noncanonical=${host_alias} ;;
3184 esac
3185
3186 case ${target_alias} in
3187 "") target_noncanonical=${host_noncanonical} ;;
3188 *) target_noncanonical=${target_alias} ;;
3189 esac
3190
3191
3192
3193
3194 # Determine the target- and build-specific subdirectories
3195
3196 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3197 # have matching libraries, they should use host libraries: Makefile.tpl
3198 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3199 # However, they still use the build modules, because the corresponding
3200 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # finishes. So:
3202 # - build_subdir is where we find build modules, and never changes.
3203 # - build_libsubdir is where we find build libraries, and can be overridden.
3204
3205 # Prefix 'build-' so this never conflicts with target_subdir.
3206 build_subdir="build-${build_noncanonical}"
3207
3208 # Check whether --with-build-libsubdir was given.
3209 if test "${with_build_libsubdir+set}" = set; then :
3210 withval=$with_build_libsubdir; build_libsubdir="$withval"
3211 else
3212 build_libsubdir="$build_subdir"
3213 fi
3214
3215 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3216 if ( test $srcdir = . && test -d gcc ) \
3217 || test -d $srcdir/../host-${host_noncanonical}; then
3218 host_subdir="host-${host_noncanonical}"
3219 else
3220 host_subdir=.
3221 fi
3222 # No prefix.
3223 target_subdir=${target_noncanonical}
3224
3225
3226 # Set program_transform_name
3227 test "$program_prefix" != NONE &&
3228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3229 # Use a double $ so make ignores it.
3230 test "$program_suffix" != NONE &&
3231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3232 # Double any \ or $.
3233 # By default was `s,x,x', remove it if useless.
3234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3236
3237
3238 # Check for bogus environment variables.
3239 # Test if LIBRARY_PATH contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # LIBRARY_PATH contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3247 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3248 case ${LIBRARY_PATH} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 library_path_setting="contains current directory"
3251 ;;
3252 *)
3253 library_path_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3257 $as_echo "$library_path_setting" >&6; }
3258 if test "$library_path_setting" != "ok"; then
3259 as_fn_error "
3260 *** LIBRARY_PATH shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3266 # since this would lead to problems installing/building glibc.
3267 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # is true:
3269 # - one of the terminals (":" and ";") is the first or last sign
3270 # - two terminals occur directly after each other
3271 # - the path contains an element with a dot in it
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3273 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3274 case ${GCC_EXEC_PREFIX} in
3275 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3276 gcc_exec_prefix_setting="contains current directory"
3277 ;;
3278 *)
3279 gcc_exec_prefix_setting="ok"
3280 ;;
3281 esac
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3283 $as_echo "$gcc_exec_prefix_setting" >&6; }
3284 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 as_fn_error "
3286 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3287 *** building gcc. Please change the environment variable
3288 *** and run configure again." "$LINENO" 5
3289 fi
3290
3291 # -----------
3292 # Directories
3293 # -----------
3294
3295 # Specify the local prefix
3296 local_prefix=
3297
3298 # Check whether --with-local-prefix was given.
3299 if test "${with_local_prefix+set}" = set; then :
3300 withval=$with_local_prefix; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 no) ;;
3303 *) local_prefix=$with_local_prefix ;;
3304 esac
3305 fi
3306
3307
3308 # Default local prefix if it is empty
3309 if test x$local_prefix = x; then
3310 local_prefix=/usr/local
3311 fi
3312
3313 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3314 # passed in by the toplevel make and thus we'd get different behavior
3315 # depending on where we built the sources.
3316 gcc_gxx_include_dir=
3317 # Specify the g++ header file directory
3318
3319 # Check whether --with-gxx-include-dir was given.
3320 if test "${with_gxx_include_dir+set}" = set; then :
3321 withval=$with_gxx_include_dir; case "${withval}" in
3322 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 no) ;;
3324 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3325 esac
3326 fi
3327
3328
3329 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3330 if test x${gcc_gxx_include_dir} = x; then
3331 if test x${enable_version_specific_runtime_libs} = xyes; then
3332 gcc_gxx_include_dir='${libsubdir}/include/c++'
3333 else
3334 libstdcxx_incdir='include/c++/$(version)'
3335 if test x$host != x$target; then
3336 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3337 fi
3338 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3339 fi
3340 fi
3341
3342 gcc_gxx_include_dir_add_sysroot=0
3343 if test "${with_sysroot+set}" = set; then
3344 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3345 if test "${gcc_gxx_without_sysroot}"; then
3346 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3347 gcc_gxx_include_dir_add_sysroot=1
3348 fi
3349 fi
3350
3351
3352 # Check whether --with-cpp_install_dir was given.
3353 if test "${with_cpp_install_dir+set}" = set; then :
3354 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3355 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3356 elif test x$withval != xno; then
3357 cpp_install_dir=$withval
3358 fi
3359 fi
3360
3361
3362 # We would like to our source tree to be readonly. However when releases or
3363 # pre-releases are generated, the flex/bison generated files as well as the
3364 # various formats of manuals need to be included along with the rest of the
3365 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3366 # just that.
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3369 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3370 # Check whether --enable-generated-files-in-srcdir was given.
3371 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3372 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3373 else
3374 generated_files_in_srcdir=no
3375 fi
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3379 $as_echo "$generated_files_in_srcdir" >&6; }
3380
3381 if test "$generated_files_in_srcdir" = "yes"; then
3382 GENINSRC=''
3383 else
3384 GENINSRC='#'
3385 fi
3386
3387
3388 # -------------------
3389 # Find default linker
3390 # -------------------
3391
3392 # With GNU ld
3393
3394 # Check whether --with-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then :
3396 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3397 else
3398 gnu_ld_flag=no
3399 fi
3400
3401
3402 # With pre-defined ld
3403
3404 # Check whether --with-ld was given.
3405 if test "${with_ld+set}" = set; then :
3406 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3407 fi
3408
3409 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3410 if test ! -x "$DEFAULT_LINKER"; then
3411 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3412 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3413 gnu_ld_flag=yes
3414 fi
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3418 _ACEOF
3419
3420 fi
3421
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3423 $as_echo_n "checking whether a default linker was specified... " >&6; }
3424 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3425 if test x"$gnu_ld_flag" = x"no"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3427 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3431 fi
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437 # With demangler in GNU ld
3438
3439 # Check whether --with-demangler-in-ld was given.
3440 if test "${with_demangler_in_ld+set}" = set; then :
3441 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3442 else
3443 demangler_in_ld=yes
3444 fi
3445
3446
3447 # ----------------------
3448 # Find default assembler
3449 # ----------------------
3450
3451 # With GNU as
3452
3453 # Check whether --with-gnu-as was given.
3454 if test "${with_gnu_as+set}" = set; then :
3455 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3456 else
3457 gas_flag=no
3458 fi
3459
3460
3461
3462 # Check whether --with-as was given.
3463 if test "${with_as+set}" = set; then :
3464 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3465 fi
3466
3467 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3468 if test ! -x "$DEFAULT_ASSEMBLER"; then
3469 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3470 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3471 gas_flag=yes
3472 fi
3473
3474 cat >>confdefs.h <<_ACEOF
3475 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3476 _ACEOF
3477
3478 fi
3479
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3481 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3482 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3483 if test x"$gas_flag" = x"no"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3485 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3489 fi
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495 # ---------------
3496 # Find C compiler
3497 # ---------------
3498
3499 # If a non-executable a.out is present (e.g. created by GNU as above even if
3500 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3501 # file, even when creating an executable, so an execution test fails.
3502 # Remove possible default executable files to avoid this.
3503 #
3504 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3505 # Autoconf includes it.
3506 rm -f a.out a.exe b.out
3507
3508 # Find the native compiler
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3601 fi
3602 else
3603 CC="$ac_cv_prog_CC"
3604 fi
3605
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 fi
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3669 fi
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3688 fi
3689 fi
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 fi
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3706 do
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 test -n "$CC" && break
3745 done
3746 fi
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772 done
3773 done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 test -n "$ac_ct_CC" && break
3789 done
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3801 fi
3802 fi
3803
3804 fi
3805
3806
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details." "$LINENO" 5; }
3811
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3832 fi
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3836
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 $as_echo_n "checking for C compiler default output file name... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3856
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3862 do
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3869
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3887 do
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 ;;
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 fi
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3907 * )
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912
3913 else
3914 ac_file=''
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 if test -z "$ac_file"; then :
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 { as_fn_set_status 77
3925 as_fn_error "C compiler cannot create executables
3926 See \`config.log' for more details." "$LINENO" 5; }; }
3927 fi
3928 ac_exeext=$ac_cv_exeext
3929
3930 # Check that the compiler produces executables we can run. If not, either
3931 # the compiler is broken, or we cross compile.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 $as_echo_n "checking whether the C compiler works... " >&6; }
3934 # If not cross compiling, check that we can run a simple program.
3935 if test "$cross_compiling" != yes; then
3936 if { ac_try='./$ac_file'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3947 cross_compiling=no
3948 else
3949 if test "$cross_compiling" = maybe; then
3950 cross_compiling=yes
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details." "$LINENO" 5; }
3957 fi
3958 fi
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3964 ac_clean_files=$ac_clean_files_save
3965 # Check that the compiler produces executables we can run. If not, either
3966 # the compiler is broken, or we cross compile.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 $as_echo_n "checking whether we are cross compiling... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 # `rm'.
3989 for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997 done
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error "cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details." "$LINENO" 5; }
4003 fi
4004 rm -f conftest$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4007
4008 rm -f conftest.$ac_ext
4009 EXEEXT=$ac_cv_exeext
4010 ac_exeext=$EXEEXT
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4012 $as_echo_n "checking for suffix of object files... " >&6; }
4013 if test "${ac_cv_objext+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main ()
4021 {
4022
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.o conftest.obj
4028 if { { ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compile") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4041 case $ac_file in
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 break;;
4045 esac
4046 done
4047 else
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "cannot compute suffix of object files: cannot compile
4054 See \`config.log' for more details." "$LINENO" 5; }
4055 fi
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 $as_echo "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4061 ac_objext=$OBJEXT
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073 #ifndef __GNUC__
4074 choke me
4075 #endif
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_compiler_gnu=yes
4083 else
4084 ac_compiler_gnu=no
4085 fi
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4088
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4093 GCC=yes
4094 else
4095 GCC=
4096 fi
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if test "${ac_cv_prog_cc_g+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4106 ac_cv_prog_cc_g=no
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main ()
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 else
4122 CFLAGS=""
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125
4126 int
4127 main ()
4128 {
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135
4136 else
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4169 fi
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4187 #include <stdio.h>
4188 #include <sys/types.h>
4189 #include <sys/stat.h>
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4196 {
4197 return p[i];
4198 }
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4200 {
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4207 }
4208
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4229 int
4230 main ()
4231 {
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239 do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249
4250 fi
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4253 x)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4259 *)
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4265
4266 fi
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274 ac_ext=cpp
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279 if test -z "$CXX"; then
4280 if test -n "$CCC"; then
4281 CXX=$CCC
4282 else
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_CXX+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CXX"; then
4294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CXX=$ac_cv_prog_CXX
4314 if test -n "$CXX"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4316 $as_echo "$CXX" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323 test -n "$CXX" && break
4324 done
4325 fi
4326 if test -z "$CXX"; then
4327 ac_ct_CXX=$CXX
4328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4329 do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CXX"; then
4338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CXX="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4358 if test -n "$ac_ct_CXX"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4360 $as_echo "$ac_ct_CXX" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$ac_ct_CXX" && break
4368 done
4369
4370 if test "x$ac_ct_CXX" = x; then
4371 CXX="g++"
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CXX=$ac_ct_CXX
4380 fi
4381 fi
4382
4383 fi
4384 fi
4385 # Provide some information about the compiler.
4386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4387 set X $ac_compile
4388 ac_compiler=$2
4389 for ac_option in --version -v -V -qversion; do
4390 { { ac_try="$ac_compiler $ac_option >&5"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4398 ac_status=$?
4399 if test -s conftest.err; then
4400 sed '10a\
4401 ... rest of stderr output deleted ...
4402 10q' conftest.err >conftest.er1
4403 cat conftest.er1 >&5
4404 rm -f conftest.er1 conftest.err
4405 fi
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 done
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4411 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417
4418 int
4419 main ()
4420 {
4421 #ifndef __GNUC__
4422 choke me
4423 #endif
4424
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 if ac_fn_cxx_try_compile "$LINENO"; then :
4430 ac_compiler_gnu=yes
4431 else
4432 ac_compiler_gnu=no
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4436
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4439 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4440 if test $ac_compiler_gnu = yes; then
4441 GXX=yes
4442 else
4443 GXX=
4444 fi
4445 ac_test_CXXFLAGS=${CXXFLAGS+set}
4446 ac_save_CXXFLAGS=$CXXFLAGS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4448 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4449 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4453 ac_cxx_werror_flag=yes
4454 ac_cv_prog_cxx_g=no
4455 CXXFLAGS="-g"
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 int
4460 main ()
4461 {
4462
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 ac_cv_prog_cxx_g=yes
4469 else
4470 CXXFLAGS=""
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473
4474 int
4475 main ()
4476 {
4477
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4483
4484 else
4485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4486 CXXFLAGS="-g"
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489
4490 int
4491 main ()
4492 {
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4499 ac_cv_prog_cxx_g=yes
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4510 if test "$ac_test_CXXFLAGS" = set; then
4511 CXXFLAGS=$ac_save_CXXFLAGS
4512 elif test $ac_cv_prog_cxx_g = yes; then
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-g -O2"
4515 else
4516 CXXFLAGS="-g"
4517 fi
4518 else
4519 if test "$GXX" = yes; then
4520 CXXFLAGS="-O2"
4521 else
4522 CXXFLAGS=
4523 fi
4524 fi
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531
4532
4533
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$GNATBIND"; then
4543 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 GNATBIND=$ac_cv_prog_GNATBIND
4563 if test -n "$GNATBIND"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4565 $as_echo "$GNATBIND" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572 fi
4573 if test -z "$ac_cv_prog_GNATBIND"; then
4574 ac_ct_GNATBIND=$GNATBIND
4575 # Extract the first word of "gnatbind", so it can be a program name with args.
4576 set dummy gnatbind; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_GNATBIND"; then
4583 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4603 if test -n "$ac_ct_GNATBIND"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4605 $as_echo "$ac_ct_GNATBIND" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4609 fi
4610
4611 if test "x$ac_ct_GNATBIND" = x; then
4612 GNATBIND="no"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 GNATBIND=$ac_ct_GNATBIND
4621 fi
4622 else
4623 GNATBIND="$ac_cv_prog_GNATBIND"
4624 fi
4625
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$GNATMAKE"; then
4635 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 GNATMAKE=$ac_cv_prog_GNATMAKE
4655 if test -n "$GNATMAKE"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4657 $as_echo "$GNATMAKE" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 fi
4665 if test -z "$ac_cv_prog_GNATMAKE"; then
4666 ac_ct_GNATMAKE=$GNATMAKE
4667 # Extract the first word of "gnatmake", so it can be a program name with args.
4668 set dummy gnatmake; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_GNATMAKE"; then
4675 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692 fi
4693 fi
4694 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4695 if test -n "$ac_ct_GNATMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4697 $as_echo "$ac_ct_GNATMAKE" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4701 fi
4702
4703 if test "x$ac_ct_GNATMAKE" = x; then
4704 GNATMAKE="no"
4705 else
4706 case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712 GNATMAKE=$ac_ct_GNATMAKE
4713 fi
4714 else
4715 GNATMAKE="$ac_cv_prog_GNATMAKE"
4716 fi
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4719 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4720 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat >conftest.adb <<EOF
4724 procedure conftest is begin null; end conftest;
4725 EOF
4726 acx_cv_cc_gcc_supports_ada=no
4727 # There is a bug in old released versions of GCC which causes the
4728 # driver to exit successfully when the appropriate language module
4729 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4730 # Therefore we must check for the error message as well as an
4731 # unsuccessful exit.
4732 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4733 # given a .adb file, but produce no object file. So we must check
4734 # if an object file was really produced to guard against this.
4735 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4736 if test x"$errors" = x && test -f conftest.$ac_objext; then
4737 acx_cv_cc_gcc_supports_ada=yes
4738 fi
4739 rm -f conftest.*
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4742 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4743
4744 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4745 have_gnat=yes
4746 else
4747 have_gnat=no
4748 fi
4749
4750
4751 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4752 # optimizations to be activated explicitly by the toplevel.
4753 case "$CC" in
4754 */prev-gcc/xgcc*) ;;
4755 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4756 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4757 esac
4758
4759
4760
4761 # Determine PICFLAG for target gnatlib.
4762
4763
4764
4765
4766 case "${target}" in
4767 # PIC is the default on some targets or must not be used.
4768 *-*-darwin*)
4769 # PIC is the default on this platform
4770 # Common symbols not allowed in MH_DYLIB files
4771 PICFLAG_FOR_TARGET=-fno-common
4772 ;;
4773 alpha*-dec-osf5*)
4774 # PIC is the default.
4775 ;;
4776 hppa*64*-*-hpux*)
4777 # PIC is the default for 64-bit PA HP-UX.
4778 ;;
4779 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4780 ;;
4781 i[34567]86-*-mingw* | x86_64-*-mingw*)
4782 ;;
4783 i[34567]86-*-interix[3-9]*)
4784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4785 # Instead, we relocate shared libraries at runtime.
4786 ;;
4787 i[34567]86-*-nto-qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 # it will coredump.
4790 PICFLAG_FOR_TARGET='-fPIC -shared'
4791 ;;
4792 i[34567]86-pc-msdosdjgpp*)
4793 # DJGPP does not support shared libraries at all.
4794 ;;
4795 ia64*-*-hpux*)
4796 # On IA64 HP-UX, PIC is the default but the pic flag
4797 # sets the default TLS model and affects inlining.
4798 PICFLAG_FOR_TARGET=-fPIC
4799 ;;
4800 mips-sgi-irix6*)
4801 # PIC is the default.
4802 ;;
4803 rs6000-ibm-aix* | powerpc-ibm-aix*)
4804 # All AIX code is PIC.
4805 ;;
4806
4807 # Some targets support both -fPIC and -fpic, but prefer the latter.
4808 # FIXME: Why?
4809 i[34567]86-*-* | x86_64-*-*)
4810 PICFLAG_FOR_TARGET=-fpic
4811 ;;
4812 # FIXME: Override -fPIC default in libgcc only?
4813 sh-*-linux* | sh[2346lbe]*-*-linux*)
4814 PICFLAG_FOR_TARGET=-fpic
4815 ;;
4816 # FIXME: Simplify to sh*-*-netbsd*?
4817 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4818 sh64-*-netbsd* | sh64l*-*-netbsd*)
4819 PICFLAG_FOR_TARGET=-fpic
4820 ;;
4821 # Default to -fPIC unless specified otherwise.
4822 *)
4823 PICFLAG_FOR_TARGET=-fPIC
4824 ;;
4825 esac
4826
4827 # If the user explicitly uses -fpic/-fPIC, keep that.
4828 case "${CFLAGS_FOR_TARGET}" in
4829 *-fpic*)
4830 PICFLAG_FOR_TARGET=-fpic
4831 ;;
4832 *-fPIC*)
4833 PICFLAG_FOR_TARGET=-fPIC
4834 ;;
4835 esac
4836
4837
4838
4839 # -------------------------
4840 # Check C compiler features
4841 # -------------------------
4842
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853 CPP=
4854 fi
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 do
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4864 do
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878 Syntax error
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4881
4882 else
4883 # Broken: fails on valid input.
4884 continue
4885 fi
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4901 fi
4902 rm -f conftest.err conftest.$ac_ext
4903
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4908 break
4909 fi
4910
4911 done
4912 ac_cv_prog_CPP=$CPP
4913
4914 fi
4915 CPP=$ac_cv_prog_CPP
4916 else
4917 ac_cv_prog_CPP=$CPP
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4921 ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4923 do
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940
4941 else
4942 # Broken: fails on valid input.
4943 continue
4944 fi
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4960 fi
4961 rm -f conftest.err conftest.$ac_ext
4962
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4967
4968 else
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." "$LINENO" 5; }
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984 if test "${ac_cv_path_GREP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -z "$GREP"; then
4988 ac_path_GREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in grep ggrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4999 # Check for GNU ac_path_GREP and select it if it is found.
5000 # Check for GNU $ac_path_GREP
5001 case `"$ac_path_GREP" --version 2>&1` in
5002 *GNU*)
5003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5004 *)
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5008 do
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'GREP' >> "conftest.nl"
5013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_GREP="$ac_path_GREP"
5019 ac_path_GREP_max=$ac_count
5020 fi
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 esac
5026
5027 $ac_path_GREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_GREP"; then
5033 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 fi
5035 else
5036 ac_cv_path_GREP=$GREP
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041 $as_echo "$ac_cv_path_GREP" >&6; }
5042 GREP="$ac_cv_path_GREP"
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046 $as_echo_n "checking for egrep... " >&6; }
5047 if test "${ac_cv_path_EGREP+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5051 then ac_cv_path_EGREP="$GREP -E"
5052 else
5053 if test -z "$EGREP"; then
5054 ac_path_EGREP_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in egrep; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5065 # Check for GNU ac_path_EGREP and select it if it is found.
5066 # Check for GNU $ac_path_EGREP
5067 case `"$ac_path_EGREP" --version 2>&1` in
5068 *GNU*)
5069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070 *)
5071 ac_count=0
5072 $as_echo_n 0123456789 >"conftest.in"
5073 while :
5074 do
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'EGREP' >> "conftest.nl"
5079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_EGREP="$ac_path_EGREP"
5085 ac_path_EGREP_max=$ac_count
5086 fi
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5089 done
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5092
5093 $ac_path_EGREP_found && break 3
5094 done
5095 done
5096 done
5097 IFS=$as_save_IFS
5098 if test -z "$ac_cv_path_EGREP"; then
5099 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 fi
5101 else
5102 ac_cv_path_EGREP=$EGREP
5103 fi
5104
5105 fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108 $as_echo "$ac_cv_path_EGREP" >&6; }
5109 EGREP="$ac_cv_path_EGREP"
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5113 $as_echo_n "checking for ANSI C header files... " >&6; }
5114 if test "${ac_cv_header_stdc+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5123
5124 int
5125 main ()
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_header_stdc=yes
5134 else
5135 ac_cv_header_stdc=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <string.h>
5144
5145 _ACEOF
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "memchr" >/dev/null 2>&1; then :
5148
5149 else
5150 ac_cv_header_stdc=no
5151 fi
5152 rm -f conftest*
5153
5154 fi
5155
5156 if test $ac_cv_header_stdc = yes; then
5157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <stdlib.h>
5161
5162 _ACEOF
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "free" >/dev/null 2>&1; then :
5165
5166 else
5167 ac_cv_header_stdc=no
5168 fi
5169 rm -f conftest*
5170
5171 fi
5172
5173 if test $ac_cv_header_stdc = yes; then
5174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5175 if test "$cross_compiling" = yes; then :
5176 :
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <ctype.h>
5181 #include <stdlib.h>
5182 #if ((' ' & 0x0FF) == 0x020)
5183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5185 #else
5186 # define ISLOWER(c) \
5187 (('a' <= (c) && (c) <= 'i') \
5188 || ('j' <= (c) && (c) <= 'r') \
5189 || ('s' <= (c) && (c) <= 'z'))
5190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5191 #endif
5192
5193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5194 int
5195 main ()
5196 {
5197 int i;
5198 for (i = 0; i < 256; i++)
5199 if (XOR (islower (i), ISLOWER (i))
5200 || toupper (i) != TOUPPER (i))
5201 return 2;
5202 return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_run "$LINENO"; then :
5206
5207 else
5208 ac_cv_header_stdc=no
5209 fi
5210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5211 conftest.$ac_objext conftest.beam conftest.$ac_ext
5212 fi
5213
5214 fi
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5217 $as_echo "$ac_cv_header_stdc" >&6; }
5218 if test $ac_cv_header_stdc = yes; then
5219
5220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221
5222 fi
5223
5224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5226 inttypes.h stdint.h unistd.h
5227 do :
5228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5230 "
5231 eval as_val=\$$as_ac_Header
5232 if test "x$as_val" = x""yes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 _ACEOF
5236
5237 fi
5238
5239 done
5240
5241
5242
5243 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5245 MINIX=yes
5246 else
5247 MINIX=
5248 fi
5249
5250
5251 if test "$MINIX" = yes; then
5252
5253 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5254
5255
5256 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5257
5258
5259 $as_echo "#define _MINIX 1" >>confdefs.h
5260
5261 fi
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5265 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5266 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 # define __EXTENSIONS__ 1
5273 $ac_includes_default
5274 int
5275 main ()
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_safe_to_define___extensions__=yes
5284 else
5285 ac_cv_safe_to_define___extensions__=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5291 test $ac_cv_safe_to_define___extensions__ = yes &&
5292 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5293
5294 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5295
5296 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5297
5298 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5299
5300 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5301
5302
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5312 CPP=
5313 fi
5314 if test -z "$CPP"; then
5315 if test "${ac_cv_prog_CPP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 # Double quotes because CPP needs to be expanded
5319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320 do
5321 ac_preproc_ok=false
5322 for ac_c_preproc_warn_flag in '' yes
5323 do
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #ifdef __STDC__
5333 # include <limits.h>
5334 #else
5335 # include <assert.h>
5336 #endif
5337 Syntax error
5338 _ACEOF
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5340
5341 else
5342 # Broken: fails on valid input.
5343 continue
5344 fi
5345 rm -f conftest.err conftest.$ac_ext
5346
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5352 _ACEOF
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5355 continue
5356 else
5357 # Passes both tests.
5358 ac_preproc_ok=:
5359 break
5360 fi
5361 rm -f conftest.err conftest.$ac_ext
5362
5363 done
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then :
5367 break
5368 fi
5369
5370 done
5371 ac_cv_prog_CPP=$CPP
5372
5373 fi
5374 CPP=$ac_cv_prog_CPP
5375 else
5376 ac_cv_prog_CPP=$CPP
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5379 $as_echo "$CPP" >&6; }
5380 ac_preproc_ok=false
5381 for ac_c_preproc_warn_flag in '' yes
5382 do
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396 Syntax error
5397 _ACEOF
5398 if ac_fn_c_try_cpp "$LINENO"; then :
5399
5400 else
5401 # Broken: fails on valid input.
5402 continue
5403 fi
5404 rm -f conftest.err conftest.$ac_ext
5405
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <ac_nonexistent.h>
5411 _ACEOF
5412 if ac_fn_c_try_cpp "$LINENO"; then :
5413 # Broken: success on invalid input.
5414 continue
5415 else
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5419 fi
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then :
5426
5427 else
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." "$LINENO" 5; }
5432 fi
5433
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5441 $as_echo_n "checking for inline... " >&6; }
5442 if test "${ac_cv_c_inline+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 ac_cv_c_inline=no
5446 for ac_kw in inline __inline__ __inline; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #ifndef __cplusplus
5450 typedef int foo_t;
5451 static $ac_kw foo_t static_foo () {return 0; }
5452 $ac_kw foo_t foo () {return 0; }
5453 #endif
5454
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_c_inline=$ac_kw
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 test "$ac_cv_c_inline" != no && break
5461 done
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5465 $as_echo "$ac_cv_c_inline" >&6; }
5466
5467 case $ac_cv_c_inline in
5468 inline | yes) ;;
5469 *)
5470 case $ac_cv_c_inline in
5471 no) ac_val=;;
5472 *) ac_val=$ac_cv_c_inline;;
5473 esac
5474 cat >>confdefs.h <<_ACEOF
5475 #ifndef __cplusplus
5476 #define inline $ac_val
5477 #endif
5478 _ACEOF
5479 ;;
5480 esac
5481
5482
5483 # Check whether --enable-largefile was given.
5484 if test "${enable_largefile+set}" = set; then :
5485 enableval=$enable_largefile;
5486 fi
5487
5488 if test "$enable_largefile" != no; then
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5492 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_cv_sys_largefile_CC=no
5496 if test "$GCC" != yes; then
5497 ac_save_CC=$CC
5498 while :; do
5499 # IRIX 6.2 and later do not support large files by default,
5500 # so use the C compiler's -n32 option if that helps.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5511 ? 1 : -1];
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 break
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext
5524 CC="$CC -n32"
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_sys_largefile_CC=' -n32'; break
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext
5529 break
5530 done
5531 CC=$ac_save_CC
5532 rm -f conftest.$ac_ext
5533 fi
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5537 if test "$ac_cv_sys_largefile_CC" != no; then
5538 CC=$CC$ac_cv_sys_largefile_CC
5539 fi
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5543 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 while :; do
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_sys_file_offset_bits=no; break
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #define _FILE_OFFSET_BITS 64
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5581 ? 1 : -1];
5582 int
5583 main ()
5584 {
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 ac_cv_sys_file_offset_bits=64; break
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cv_sys_file_offset_bits=unknown
5595 break
5596 done
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5600 case $ac_cv_sys_file_offset_bits in #(
5601 no | unknown) ;;
5602 *)
5603 cat >>confdefs.h <<_ACEOF
5604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5605 _ACEOF
5606 ;;
5607 esac
5608 rm -rf conftest*
5609 if test $ac_cv_sys_file_offset_bits = unknown; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5612 if test "${ac_cv_sys_large_files+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 while :; do
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_large_files=no; break
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #define _LARGE_FILES 1
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5650 ? 1 : -1];
5651 int
5652 main ()
5653 {
5654
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_sys_large_files=1; break
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sys_large_files=unknown
5664 break
5665 done
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5668 $as_echo "$ac_cv_sys_large_files" >&6; }
5669 case $ac_cv_sys_large_files in #(
5670 no | unknown) ;;
5671 *)
5672 cat >>confdefs.h <<_ACEOF
5673 #define _LARGE_FILES $ac_cv_sys_large_files
5674 _ACEOF
5675 ;;
5676 esac
5677 rm -rf conftest*
5678 fi
5679 fi
5680
5681
5682 # sizeof(char) is 1 by definition.
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5688 $as_echo_n "checking size of void *... " >&6; }
5689 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5693
5694 else
5695 if test "$ac_cv_type_void_p" = yes; then
5696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5698 { as_fn_set_status 77
5699 as_fn_error "cannot compute sizeof (void *)
5700 See \`config.log' for more details." "$LINENO" 5; }; }
5701 else
5702 ac_cv_sizeof_void_p=0
5703 fi
5704 fi
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5708 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5709
5710
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 _ACEOF
5715
5716
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5722 $as_echo_n "checking size of short... " >&6; }
5723 if test "${ac_cv_sizeof_short+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5727
5728 else
5729 if test "$ac_cv_type_short" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status 77
5733 as_fn_error "cannot compute sizeof (short)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5735 else
5736 ac_cv_sizeof_short=0
5737 fi
5738 fi
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5742 $as_echo "$ac_cv_sizeof_short" >&6; }
5743
5744
5745
5746 cat >>confdefs.h <<_ACEOF
5747 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 _ACEOF
5749
5750
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5761
5762 else
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status 77
5767 as_fn_error "cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5769 else
5770 ac_cv_sizeof_int=0
5771 fi
5772 fi
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5777
5778
5779
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5782 _ACEOF
5783
5784
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5795
5796 else
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status 77
5801 as_fn_error "cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5803 else
5804 ac_cv_sizeof_long=0
5805 fi
5806 fi
5807
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5811
5812
5813
5814 cat >>confdefs.h <<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 _ACEOF
5817
5818
5819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5820 if test "x$ac_cv_type_long_long" = x""yes; then :
5821
5822 cat >>confdefs.h <<_ACEOF
5823 #define HAVE_LONG_LONG 1
5824 _ACEOF
5825
5826 # The cast to long int works around a bug in the HP C Compiler
5827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5829 # This bug is HP SR number 8606223364.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5831 $as_echo_n "checking size of long long... " >&6; }
5832 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5836
5837 else
5838 if test "$ac_cv_type_long_long" = yes; then
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 { as_fn_set_status 77
5842 as_fn_error "cannot compute sizeof (long long)
5843 See \`config.log' for more details." "$LINENO" 5; }; }
5844 else
5845 ac_cv_sizeof_long_long=0
5846 fi
5847 fi
5848
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5852
5853
5854
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5857 _ACEOF
5858
5859
5860 fi
5861
5862 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5863 if test "x$ac_cv_type___int64" = x""yes; then :
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE___INT64 1
5867 _ACEOF
5868
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5874 $as_echo_n "checking size of __int64... " >&6; }
5875 if test "${ac_cv_sizeof___int64+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5879
5880 else
5881 if test "$ac_cv_type___int64" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (__int64)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof___int64=0
5889 fi
5890 fi
5891
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5894 $as_echo "$ac_cv_sizeof___int64" >&6; }
5895
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5900 _ACEOF
5901
5902
5903 fi
5904
5905 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5906 case $ac_cv_c_int8_t in #(
5907 no|yes) ;; #(
5908 *)
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define int8_t $ac_cv_c_int8_t
5912 _ACEOF
5913 ;;
5914 esac
5915
5916 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5917 case $ac_cv_c_int16_t in #(
5918 no|yes) ;; #(
5919 *)
5920
5921 cat >>confdefs.h <<_ACEOF
5922 #define int16_t $ac_cv_c_int16_t
5923 _ACEOF
5924 ;;
5925 esac
5926
5927 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5928 case $ac_cv_c_int32_t in #(
5929 no|yes) ;; #(
5930 *)
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define int32_t $ac_cv_c_int32_t
5934 _ACEOF
5935 ;;
5936 esac
5937
5938 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5939 case $ac_cv_c_int64_t in #(
5940 no|yes) ;; #(
5941 *)
5942
5943 cat >>confdefs.h <<_ACEOF
5944 #define int64_t $ac_cv_c_int64_t
5945 _ACEOF
5946 ;;
5947 esac
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5951 $as_echo_n "checking for long long int... " >&6; }
5952 if test "${ac_cv_type_long_long_int+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 /* For now, do not test the preprocessor; as of 2007 there are too many
5959 implementations with broken preprocessors. Perhaps this can
5960 be revisited in 2012. In the meantime, code should not expect
5961 #if to work with literals wider than 32 bits. */
5962 /* Test literals. */
5963 long long int ll = 9223372036854775807ll;
5964 long long int nll = -9223372036854775807LL;
5965 unsigned long long int ull = 18446744073709551615ULL;
5966 /* Test constant expressions. */
5967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5968 ? 1 : -1)];
5969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5970 ? 1 : -1)];
5971 int i = 63;
5972 int
5973 main ()
5974 {
5975 /* Test availability of runtime routines for shift and division. */
5976 long long int llmax = 9223372036854775807ll;
5977 unsigned long long int ullmax = 18446744073709551615ull;
5978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5979 | (llmax / ll) | (llmax % ll)
5980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5981 | (ullmax / ull) | (ullmax % ull));
5982 ;
5983 return 0;
5984 }
5985
5986 _ACEOF
5987 if ac_fn_c_try_link "$LINENO"; then :
5988 if test "$cross_compiling" = yes; then :
5989 ac_cv_type_long_long_int=yes
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <limits.h>
5994 #ifndef LLONG_MAX
5995 # define HALF \
5996 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5997 # define LLONG_MAX (HALF - 1 + HALF)
5998 #endif
5999 int
6000 main ()
6001 {
6002 long long int n = 1;
6003 int i;
6004 for (i = 0; ; i++)
6005 {
6006 long long int m = n << i;
6007 if (m >> i != n)
6008 return 1;
6009 if (LLONG_MAX / 2 < m)
6010 break;
6011 }
6012 return 0;
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_run "$LINENO"; then :
6018 ac_cv_type_long_long_int=yes
6019 else
6020 ac_cv_type_long_long_int=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6024 fi
6025
6026 else
6027 ac_cv_type_long_long_int=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6033 $as_echo "$ac_cv_type_long_long_int" >&6; }
6034 if test $ac_cv_type_long_long_int = yes; then
6035
6036 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6037
6038 fi
6039
6040
6041
6042 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6044
6045 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6046
6047 else
6048 test $ac_cv_type_long_long_int = yes \
6049 && ac_type='long long int' \
6050 || ac_type='long int'
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define intmax_t $ac_type
6054 _ACEOF
6055
6056 fi
6057
6058
6059
6060 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6062
6063 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6064
6065 else
6066 for ac_type in 'int' 'long int' 'long long int'; do
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 $ac_includes_default
6070 int
6071 main ()
6072 {
6073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6074 test_array [0] = 0
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081
6082 cat >>confdefs.h <<_ACEOF
6083 #define intptr_t $ac_type
6084 _ACEOF
6085
6086 ac_type=
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 test -z "$ac_type" && break
6090 done
6091 fi
6092
6093
6094 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6095 case $ac_cv_c_uint8_t in #(
6096 no|yes) ;; #(
6097 *)
6098
6099 $as_echo "#define _UINT8_T 1" >>confdefs.h
6100
6101
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint8_t $ac_cv_c_uint8_t
6104 _ACEOF
6105 ;;
6106 esac
6107
6108 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6109 case $ac_cv_c_uint16_t in #(
6110 no|yes) ;; #(
6111 *)
6112
6113
6114 cat >>confdefs.h <<_ACEOF
6115 #define uint16_t $ac_cv_c_uint16_t
6116 _ACEOF
6117 ;;
6118 esac
6119
6120 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6121 case $ac_cv_c_uint32_t in #(
6122 no|yes) ;; #(
6123 *)
6124
6125 $as_echo "#define _UINT32_T 1" >>confdefs.h
6126
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint32_t $ac_cv_c_uint32_t
6130 _ACEOF
6131 ;;
6132 esac
6133
6134 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6135 case $ac_cv_c_uint64_t in #(
6136 no|yes) ;; #(
6137 *)
6138
6139 $as_echo "#define _UINT64_T 1" >>confdefs.h
6140
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define uint64_t $ac_cv_c_uint64_t
6144 _ACEOF
6145 ;;
6146 esac
6147
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6150 $as_echo_n "checking for unsigned long long int... " >&6; }
6151 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6171 int
6172 main ()
6173 {
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6181 ;
6182 return 0;
6183 }
6184
6185 _ACEOF
6186 if ac_fn_c_try_link "$LINENO"; then :
6187 ac_cv_type_unsigned_long_long_int=yes
6188 else
6189 ac_cv_type_unsigned_long_long_int=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6196 if test $ac_cv_type_unsigned_long_long_int = yes; then
6197
6198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6199
6200 fi
6201
6202
6203
6204 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6206
6207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6208
6209 else
6210 test $ac_cv_type_unsigned_long_long_int = yes \
6211 && ac_type='unsigned long long int' \
6212 || ac_type='unsigned long int'
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintmax_t $ac_type
6216 _ACEOF
6217
6218 fi
6219
6220
6221
6222 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6224
6225 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6226
6227 else
6228 for ac_type in 'unsigned int' 'unsigned long int' \
6229 'unsigned long long int'; do
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 int
6234 main ()
6235 {
6236 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6237 test_array [0] = 0
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define uintptr_t $ac_type
6247 _ACEOF
6248
6249 ac_type=
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 test -z "$ac_type" && break
6253 done
6254 fi
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 # ---------------------
6271 # Warnings and checking
6272 # ---------------------
6273
6274 # Check $CC warning features (if it's GCC).
6275 # We want to use -pedantic, but we don't want warnings about
6276 # * 'long long'
6277 # * variadic macros
6278 # * overlong strings
6279 # * C++11 narrowing conversions in { }
6280 # So, we only use -pedantic if we can disable those warnings.
6281
6282 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6283 # Check whether --enable-build-format-warnings was given.
6284 if test "${enable_build_format_warnings+set}" = set; then :
6285 enableval=$enable_build_format_warnings;
6286 else
6287 enable_build_format_warnings=yes
6288 fi
6289
6290 if test $enable_build_format_warnings = no; then :
6291 wf_opt=-Wno-format
6292 else
6293 wf_opt=
6294 fi
6295 loose_warn=
6296 save_CFLAGS="$CFLAGS"
6297 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6298 # Do the check with the no- prefix removed since gcc silently
6299 # accepts any -Wno-* option on purpose
6300 case $real_option in
6301 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6302 *) option=$real_option ;;
6303 esac
6304 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6307 $as_echo_n "checking whether $CC supports $option... " >&6; }
6308 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 CFLAGS="$option"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314
6315 int
6316 main ()
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 eval "$as_acx_Woption=yes"
6325 else
6326 eval "$as_acx_Woption=no"
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 eval ac_res=\$$as_acx_Woption
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6335 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6336 fi
6337 done
6338 CFLAGS="$save_CFLAGS"
6339
6340 c_loose_warn=
6341 save_CFLAGS="$CFLAGS"
6342 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6343 # Do the check with the no- prefix removed since gcc silently
6344 # accepts any -Wno-* option on purpose
6345 case $real_option in
6346 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6347 *) option=$real_option ;;
6348 esac
6349 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 CFLAGS="$option"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359
6360 int
6361 main ()
6362 {
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6370 else
6371 eval "$as_acx_Woption=no"
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374
6375 fi
6376 eval ac_res=\$$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6381 fi
6382 done
6383 CFLAGS="$save_CFLAGS"
6384
6385 strict_warn=
6386 save_CFLAGS="$CFLAGS"
6387 for real_option in -Wmissing-format-attribute; do
6388 # Do the check with the no- prefix removed since gcc silently
6389 # accepts any -Wno-* option on purpose
6390 case $real_option in
6391 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6392 *) option=$real_option ;;
6393 esac
6394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 CFLAGS="$option"
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6415 else
6416 eval "$as_acx_Woption=no"
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419
6420 fi
6421 eval ac_res=\$$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6426 fi
6427 done
6428 CFLAGS="$save_CFLAGS"
6429
6430 save_CFLAGS="$CFLAGS"
6431 for real_option in -Woverloaded-virtual; do
6432 # Do the check with the no- prefix removed since gcc silently
6433 # accepts any -Wno-* option on purpose
6434 case $real_option in
6435 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6436 *) option=$real_option ;;
6437 esac
6438 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 CFLAGS="$option"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448
6449 int
6450 main ()
6451 {
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6459 else
6460 eval "$as_acx_Woption=no"
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463
6464 fi
6465 eval ac_res=\$$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6470 fi
6471 done
6472 CFLAGS="$save_CFLAGS"
6473
6474 c_strict_warn=
6475 save_CFLAGS="$CFLAGS"
6476 for real_option in -Wold-style-definition -Wc++-compat; do
6477 # Do the check with the no- prefix removed since gcc silently
6478 # accepts any -Wno-* option on purpose
6479 case $real_option in
6480 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6481 *) option=$real_option ;;
6482 esac
6483 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 CFLAGS="$option"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493
6494 int
6495 main ()
6496 {
6497
6498 ;
6499 return 0;
6500 }
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6504 else
6505 eval "$as_acx_Woption=no"
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508
6509 fi
6510 eval ac_res=\$$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6515 fi
6516 done
6517 CFLAGS="$save_CFLAGS"
6518
6519 # Do the check with the no- prefix removed from the warning options
6520 # since gcc silently accepts any -Wno-* option on purpose
6521 if test "$GCC" = yes; then :
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6523 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6524 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 save_CFLAGS="$CFLAGS"
6528 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6542 else
6543 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 CFLAGS="$save_CFLAGS"
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6549 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6550 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6551 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6552 fi
6553
6554 fi
6555
6556 # Check whether --enable-werror-always was given.
6557 if test "${enable_werror_always+set}" = set; then :
6558 enableval=$enable_werror_always;
6559 else
6560 enable_werror_always=no
6561 fi
6562
6563 if test $enable_werror_always = yes; then :
6564 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6565 fi
6566
6567
6568
6569 # The above macros do nothing if the compiler is not GCC. However, the
6570 # Makefile has more goo to add other flags, so these variables are used
6571 # to enable warnings only for GCC.
6572 warn_cflags=
6573 warn_cxxflags=
6574 if test "x$GCC" = "xyes"; then
6575 warn_cflags='$(GCC_WARN_CFLAGS)'
6576 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6577 fi
6578
6579
6580
6581 # Disable exceptions and RTTI if building with g++
6582 noexception_flags=
6583 save_CFLAGS="$CFLAGS"
6584 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6585 # Do the check with the no- prefix removed since gcc silently
6586 # accepts any -Wno-* option on purpose
6587 case $real_option in
6588 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6589 *) option=$real_option ;;
6590 esac
6591 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6594 $as_echo_n "checking whether $CC supports $option... " >&6; }
6595 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 CFLAGS="$option"
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601
6602 int
6603 main ()
6604 {
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 eval "$as_acx_Woption=yes"
6612 else
6613 eval "$as_acx_Woption=no"
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616
6617 fi
6618 eval ac_res=\$$as_acx_Woption
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6620 $as_echo "$ac_res" >&6; }
6621 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6622 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6623 fi
6624 done
6625 CFLAGS="$save_CFLAGS"
6626
6627
6628 # Enable expensive internal checks
6629 is_release=
6630 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6631 is_release=yes
6632 fi
6633
6634 # Check whether --enable-checking was given.
6635 if test "${enable_checking+set}" = set; then :
6636 enableval=$enable_checking; ac_checking_flags="${enableval}"
6637 else
6638
6639 # Determine the default checks.
6640 if test x$is_release = x ; then
6641 ac_checking_flags=yes
6642 else
6643 ac_checking_flags=release
6644 fi
6645 fi
6646
6647 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6648 for check in release $ac_checking_flags
6649 do
6650 case $check in
6651 # these set all the flags to specific states
6652 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6653 ac_fold_checking= ; ac_gc_checking=1 ;
6654 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6655 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6656 ac_tree_checking=1 ; ac_valgrind_checking= ;
6657 ac_types_checking=1 ;;
6658 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6659 ac_fold_checking= ; ac_gc_checking= ;
6660 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6661 ac_rtlflag_checking= ; ac_runtime_checking= ;
6662 ac_tree_checking= ; ac_valgrind_checking= ;
6663 ac_types_checking= ;;
6664 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6665 ac_fold_checking=1 ; ac_gc_checking=1 ;
6666 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6667 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6668 ac_tree_checking=1 ; ac_valgrind_checking= ;
6669 ac_types_checking=1 ;;
6670 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6671 ac_fold_checking= ; ac_gc_checking= ;
6672 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6673 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6674 ac_tree_checking= ; ac_valgrind_checking= ;
6675 ac_types_checking= ;;
6676 # these enable particular checks
6677 assert) ac_assert_checking=1 ;;
6678 df) ac_df_checking=1 ;;
6679 fold) ac_fold_checking=1 ;;
6680 gc) ac_gc_checking=1 ;;
6681 gcac) ac_gc_always_collect=1 ;;
6682 gimple) ac_gimple_checking=1 ;;
6683 misc) ac_checking=1 ;;
6684 rtl) ac_rtl_checking=1 ;;
6685 rtlflag) ac_rtlflag_checking=1 ;;
6686 runtime) ac_runtime_checking=1 ;;
6687 tree) ac_tree_checking=1 ;;
6688 types) ac_types_checking=1 ;;
6689 valgrind) ac_valgrind_checking=1 ;;
6690 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6691 esac
6692 done
6693 IFS="$ac_save_IFS"
6694
6695 nocommon_flag=""
6696 if test x$ac_checking != x ; then
6697
6698 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6699
6700 nocommon_flag=-fno-common
6701 fi
6702
6703 if test x$ac_df_checking != x ; then
6704
6705 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6706
6707 fi
6708 if test x$ac_assert_checking != x ; then
6709
6710 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6711
6712 fi
6713 if test x$ac_gimple_checking != x ; then
6714
6715 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6716
6717 fi
6718
6719 if test x$ac_runtime_checking != x ; then
6720
6721 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6722
6723 fi
6724 if test x$ac_tree_checking != x ; then
6725
6726 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6727
6728 TREEBROWSER=tree-browser.o
6729 TREECHECKING=yes
6730 fi
6731 if test x$ac_types_checking != x ; then
6732
6733 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6734
6735 fi
6736
6737
6738 if test x$ac_rtl_checking != x ; then
6739
6740 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6741
6742 fi
6743 if test x$ac_rtlflag_checking != x ; then
6744
6745 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6746
6747 fi
6748 if test x$ac_gc_checking != x ; then
6749
6750 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6751
6752 fi
6753 if test x$ac_gc_always_collect != x ; then
6754
6755 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6756
6757 fi
6758 if test x$ac_fold_checking != x ; then
6759
6760 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6761
6762 fi
6763 valgrind_path_defines=
6764 valgrind_command=
6765
6766 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6767 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6768 have_valgrind_h=yes
6769 else
6770 have_valgrind_h=no
6771 fi
6772
6773
6774
6775 if test x$ac_valgrind_checking != x ; then
6776 # It is certainly possible that there's valgrind but no valgrind.h.
6777 # GCC relies on making annotations so we must have both.
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6779 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <valgrind/memcheck.h>
6783 #ifndef VALGRIND_DISCARD
6784 #error VALGRIND_DISCARD not defined
6785 #endif
6786 _ACEOF
6787 if ac_fn_c_try_cpp "$LINENO"; then :
6788 gcc_cv_header_valgrind_memcheck_h=yes
6789 else
6790 gcc_cv_header_valgrind_memcheck_h=no
6791 fi
6792 rm -f conftest.err conftest.$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6794 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6796 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <memcheck.h>
6800 #ifndef VALGRIND_DISCARD
6801 #error VALGRIND_DISCARD not defined
6802 #endif
6803 _ACEOF
6804 if ac_fn_c_try_cpp "$LINENO"; then :
6805 gcc_cv_header_memcheck_h=yes
6806 else
6807 gcc_cv_header_memcheck_h=no
6808 fi
6809 rm -f conftest.err conftest.$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6811 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6812
6813 # Prepare PATH_SEPARATOR.
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6818 chmod +x conf$$.sh
6819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 PATH_SEPARATOR=';'
6821 else
6822 PATH_SEPARATOR=:
6823 fi
6824 rm -f conf$$.sh
6825 fi
6826
6827 # Find out how to test for executable files. Don't use a zero-byte file,
6828 # as systems may use methods other than mode bits to determine executability.
6829 cat >conf$$.file <<_ASEOF
6830 #! /bin/sh
6831 exit 0
6832 _ASEOF
6833 chmod +x conf$$.file
6834 if test -x conf$$.file >/dev/null 2>&1; then
6835 ac_executable_p="test -x"
6836 else
6837 ac_executable_p="test -f"
6838 fi
6839 rm -f conf$$.file
6840
6841 # Extract the first word of "valgrind", so it can be a program name with args.
6842 set dummy valgrind; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 case "$valgrind_path" in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6854 for ac_dir in $PATH; do
6855 IFS="$ac_save_IFS"
6856 test -z "$ac_dir" && ac_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6859 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6860 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6861 break 2
6862 fi
6863 fi
6864 done
6865 done
6866 IFS="$ac_save_IFS"
6867 ;;
6868 esac
6869 fi
6870 valgrind_path="$ac_cv_path_valgrind_path"
6871 if test -n "$valgrind_path"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6873 $as_echo "$valgrind_path" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879 if test "x$valgrind_path" = "x" \
6880 || (test $have_valgrind_h = no \
6881 && test $gcc_cv_header_memcheck_h = no \
6882 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6883 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6884 fi
6885 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6886 valgrind_command="$valgrind_path -q"
6887
6888 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6889
6890 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6891
6892 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6893
6894 fi
6895 if test $gcc_cv_header_memcheck_h = yes; then
6896
6897 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6898
6899 fi
6900 fi
6901
6902
6903
6904 # Enable code coverage collection
6905 # Check whether --enable-coverage was given.
6906 if test "${enable_coverage+set}" = set; then :
6907 enableval=$enable_coverage; case "${enableval}" in
6908 yes|noopt)
6909 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6910 ;;
6911 opt)
6912 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6913 ;;
6914 no)
6915 # a.k.a. --disable-coverage
6916 coverage_flags=""
6917 ;;
6918 *)
6919 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6920 ;;
6921 esac
6922 else
6923 coverage_flags=""
6924 fi
6925
6926
6927
6928 # Check whether --enable-gather-detailed-mem-stats was given.
6929 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6930 enableval=$enable_gather_detailed_mem_stats;
6931 else
6932 enable_gather_detailed_mem_stats=no
6933 fi
6934
6935 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6936
6937 cat >>confdefs.h <<_ACEOF
6938 #define GATHER_STATISTICS $gather_stats
6939 _ACEOF
6940
6941
6942 # -------------------------------
6943 # Miscenalleous configure options
6944 # -------------------------------
6945
6946 # With stabs
6947
6948 # Check whether --with-stabs was given.
6949 if test "${with_stabs+set}" = set; then :
6950 withval=$with_stabs; stabs="$with_stabs"
6951 else
6952 stabs=no
6953 fi
6954
6955
6956 # Determine whether or not multilibs are enabled.
6957 # Check whether --enable-multilib was given.
6958 if test "${enable_multilib+set}" = set; then :
6959 enableval=$enable_multilib;
6960 else
6961 enable_multilib=yes
6962 fi
6963
6964
6965
6966 # Determine whether or not multiarch is enabled.
6967 # Check whether --enable-multiarch was given.
6968 if test "${enable_multiarch+set}" = set; then :
6969 enableval=$enable_multiarch; case "${enableval}" in
6970 yes|no|auto) enable_multiarch=$enableval;;
6971 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6972 esac
6973 else
6974 enable_multiarch=auto
6975 fi
6976
6977 if test x${enable_multiarch} = xauto; then
6978 if test x${with_native_system_header_dir} != x; then
6979 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6980 enable_multiarch=no
6981 fi
6982 if test x$host != x$target && test "x$with_sysroot" = x; then
6983 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6984 enable_multiarch=no
6985 fi
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6988 $as_echo_n "checking for multiarch configuration... " >&6; }
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6991 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6992
6993 # needed for setting the multiarch name for soft-float/hard-float ABIs
6994
6995
6996
6997 # Enable __cxa_atexit for C++.
6998 # Check whether --enable-__cxa_atexit was given.
6999 if test "${enable___cxa_atexit+set}" = set; then :
7000 enableval=$enable___cxa_atexit;
7001 fi
7002
7003
7004 # Enable C extension for decimal float if target supports it.
7005
7006 # Check whether --enable-decimal-float was given.
7007 if test "${enable_decimal_float+set}" = set; then :
7008 enableval=$enable_decimal_float;
7009 case $enable_decimal_float in
7010 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7011 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7012 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7013 esac
7014
7015 else
7016
7017 case $target in
7018 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7019 i?86*-*-gnu* | \
7020 i?86*-*-mingw* | x86_64*-*-mingw* | \
7021 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7022 enable_decimal_float=yes
7023 ;;
7024 *)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7026 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7027 enable_decimal_float=no
7028 ;;
7029 esac
7030
7031 fi
7032
7033
7034 # x86's use BID format instead of DPD
7035 case x$enable_decimal_float in
7036 xyes)
7037 case $target in
7038 i?86*-*-* | x86_64*-*-*)
7039 enable_decimal_float=bid
7040 ;;
7041 *)
7042 enable_decimal_float=dpd
7043 ;;
7044 esac
7045 default_decimal_float=$enable_decimal_float
7046 ;;
7047 xno)
7048 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7049 # dependency on libdecnumber.
7050 default_decimal_float=dpd
7051 ;;
7052 esac
7053
7054
7055
7056
7057 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7058
7059 cat >>confdefs.h <<_ACEOF
7060 #define ENABLE_DECIMAL_FLOAT $dfp
7061 _ACEOF
7062
7063
7064 # Use default_decimal_float for dependency.
7065 enable_decimal_float=$default_decimal_float
7066
7067 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define ENABLE_DECIMAL_BID_FORMAT $bid
7071 _ACEOF
7072
7073
7074 # Enable C extension for fixed-point arithmetic.
7075 # Check whether --enable-fixed-point was given.
7076 if test "${enable_fixed_point+set}" = set; then :
7077 enableval=$enable_fixed_point;
7078 else
7079
7080 case $target in
7081 arm*)
7082 enable_fixed_point=yes
7083 ;;
7084
7085 mips*-*-*)
7086 enable_fixed_point=yes
7087 ;;
7088 *)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7090 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7091 enable_fixed_point=no
7092 ;;
7093 esac
7094
7095 fi
7096
7097
7098
7099 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7100
7101 cat >>confdefs.h <<_ACEOF
7102 #define ENABLE_FIXED_POINT $fixedpoint
7103 _ACEOF
7104
7105
7106 # Enable threads
7107 # Pass with no value to take the default
7108 # Pass with a value to specify a thread package
7109 # Check whether --enable-threads was given.
7110 if test "${enable_threads+set}" = set; then :
7111 enableval=$enable_threads;
7112 else
7113 enable_threads=''
7114 fi
7115
7116
7117 # Check whether --enable-tls was given.
7118 if test "${enable_tls+set}" = set; then :
7119 enableval=$enable_tls;
7120 case $enable_tls in
7121 yes | no) ;;
7122 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7123 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7124 esac
7125
7126 else
7127 enable_tls=''
7128 fi
7129
7130
7131 # Check whether --enable-objc-gc was given.
7132 if test "${enable_objc_gc+set}" = set; then :
7133 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7134 objc_boehm_gc=''
7135 else
7136 objc_boehm_gc=1
7137 fi
7138 else
7139 objc_boehm_gc=''
7140 fi
7141
7142
7143
7144 # Check whether --with-dwarf2 was given.
7145 if test "${with_dwarf2+set}" = set; then :
7146 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7147 else
7148 dwarf2=no
7149 fi
7150
7151
7152 # Check whether --enable-shared was given.
7153 if test "${enable_shared+set}" = set; then :
7154 enableval=$enable_shared;
7155 case $enable_shared in
7156 yes | no) ;;
7157 *)
7158 enable_shared=no
7159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7160 for pkg in $enableval; do
7161 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7162 enable_shared=yes
7163 fi
7164 done
7165 IFS="$ac_save_ifs"
7166 ;;
7167 esac
7168
7169 else
7170 enable_shared=yes
7171 fi
7172
7173
7174
7175
7176 # Check whether --with-native-system-header-dir was given.
7177 if test "${with_native_system_header_dir+set}" = set; then :
7178 withval=$with_native_system_header_dir;
7179 case ${with_native_system_header_dir} in
7180 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7181 /* | [A-Za-z]:[\\/]*) ;;
7182 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7183 esac
7184 configured_native_system_header_dir="${withval}"
7185
7186 else
7187 configured_native_system_header_dir=
7188 fi
7189
7190
7191
7192 # Check whether --with-build-sysroot was given.
7193 if test "${with_build_sysroot+set}" = set; then :
7194 withval=$with_build_sysroot; if test x"$withval" != x ; then
7195 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7196 fi
7197 else
7198 SYSROOT_CFLAGS_FOR_TARGET=
7199 fi
7200
7201
7202
7203 if test "x$prefix" = xNONE; then
7204 test_prefix=/usr/local
7205 else
7206 test_prefix=$prefix
7207 fi
7208 if test "x$exec_prefix" = xNONE; then
7209 test_exec_prefix=$test_prefix
7210 else
7211 test_exec_prefix=$exec_prefix
7212 fi
7213
7214
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval=$with_sysroot;
7218 case ${with_sysroot} in
7219 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7220 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7221 esac
7222
7223 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7224 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7225
7226 case ${TARGET_SYSTEM_ROOT} in
7227 "${test_prefix}"|"${test_prefix}/"*|\
7228 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7229 '${prefix}'|'${prefix}/'*|\
7230 '${exec_prefix}'|'${exec_prefix}/'*)
7231 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7232 TARGET_SYSTEM_ROOT_DEFINE="$t"
7233 ;;
7234 esac
7235
7236 else
7237
7238 TARGET_SYSTEM_ROOT=
7239 TARGET_SYSTEM_ROOT_DEFINE=
7240 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7241
7242 fi
7243
7244
7245
7246
7247
7248
7249 # Check whether --with-specs was given.
7250 if test "${with_specs+set}" = set; then :
7251 withval=$with_specs; CONFIGURE_SPECS=$withval
7252 else
7253 CONFIGURE_SPECS=
7254
7255 fi
7256
7257
7258
7259
7260
7261 # Check whether --with-pkgversion was given.
7262 if test "${with_pkgversion+set}" = set; then :
7263 withval=$with_pkgversion; case "$withval" in
7264 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7265 no) PKGVERSION= ;;
7266 *) PKGVERSION="($withval) " ;;
7267 esac
7268 else
7269 PKGVERSION="(GCC) "
7270
7271 fi
7272
7273
7274
7275
7276
7277 # Check whether --with-bugurl was given.
7278 if test "${with_bugurl+set}" = set; then :
7279 withval=$with_bugurl; case "$withval" in
7280 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7281 no) BUGURL=
7282 ;;
7283 *) BUGURL="$withval"
7284 ;;
7285 esac
7286 else
7287 BUGURL="http://gcc.gnu.org/bugs.html"
7288
7289 fi
7290
7291 case ${BUGURL} in
7292 "")
7293 REPORT_BUGS_TO=
7294 REPORT_BUGS_TEXI=
7295 ;;
7296 *)
7297 REPORT_BUGS_TO="<$BUGURL>"
7298 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7299 ;;
7300 esac;
7301
7302
7303
7304
7305 # Sanity check enable_languages in case someone does not run the toplevel
7306 # configure # script.
7307 # Check whether --enable-languages was given.
7308 if test "${enable_languages+set}" = set; then :
7309 enableval=$enable_languages; case ,${enable_languages}, in
7310 ,,|,yes,)
7311 # go safe -- we cannot be much sure without the toplevel
7312 # configure's
7313 # analysis of which target libs are present and usable
7314 enable_languages=c
7315 ;;
7316 *,all,*)
7317 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7318 ;;
7319 *,c,*)
7320 ;;
7321 *)
7322 enable_languages=c,${enable_languages}
7323 ;;
7324 esac
7325 else
7326 enable_languages=c
7327 fi
7328
7329
7330
7331 # Check whether --with-multilib-list was given.
7332 if test "${with_multilib_list+set}" = set; then :
7333 withval=$with_multilib_list; :
7334 else
7335 with_multilib_list=default
7336 fi
7337
7338
7339 # -------------------------
7340 # Checks for other programs
7341 # -------------------------
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7345 set x ${MAKE-make}
7346 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat >conftest.make <<\_ACEOF
7351 SHELL = /bin/sh
7352 all:
7353 @echo '@@@%%%=$(MAKE)=@@@%%%'
7354 _ACEOF
7355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7357 *@@@%%%=?*=@@@%%%*)
7358 eval ac_cv_prog_make_${ac_make}_set=yes;;
7359 *)
7360 eval ac_cv_prog_make_${ac_make}_set=no;;
7361 esac
7362 rm -f conftest.make
7363 fi
7364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }
7367 SET_MAKE=
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 SET_MAKE="MAKE=${MAKE-make}"
7372 fi
7373
7374
7375 # Find some useful tools
7376 for ac_prog in gawk mawk nawk awk
7377 do
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy $ac_prog; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_AWK+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$AWK"; then
7386 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_AWK="$ac_prog"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 AWK=$ac_cv_prog_AWK
7406 if test -n "$AWK"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7408 $as_echo "$AWK" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 test -n "$AWK" && break
7416 done
7417
7418 # We need awk to create options.c and options.h.
7419 # Bail out if it's missing.
7420 case ${AWK} in
7421 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7422 esac
7423
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7425 $as_echo_n "checking whether ln -s works... " >&6; }
7426 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 rm -f conftestdata_t
7430 echo >conftestdata_f
7431 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7432 then
7433 gcc_cv_prog_LN_S="ln -s"
7434 else
7435 if ln conftestdata_f conftestdata_t 2>/dev/null
7436 then
7437 gcc_cv_prog_LN_S=ln
7438 else
7439 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7440 then
7441 gcc_cv_prog_LN_S="cp -p"
7442 else
7443 gcc_cv_prog_LN_S=cp
7444 fi
7445 fi
7446 fi
7447 rm -f conftestdata_f conftestdata_t
7448
7449 fi
7450 LN_S="$gcc_cv_prog_LN_S"
7451 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7453 $as_echo "yes" >&6; }
7454 else
7455 if test "$gcc_cv_prog_LN_S" = "ln"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7457 $as_echo "no, using ln" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7460 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7461 fi
7462 fi
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7465 $as_echo_n "checking whether ln works... " >&6; }
7466 if test "${acx_cv_prog_LN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 rm -f conftestdata_t
7470 echo >conftestdata_f
7471 if ln conftestdata_f conftestdata_t 2>/dev/null
7472 then
7473 acx_cv_prog_LN=ln
7474 else
7475 acx_cv_prog_LN=no
7476 fi
7477 rm -f conftestdata_f conftestdata_t
7478
7479 fi
7480 if test $acx_cv_prog_LN = no; then
7481 LN="$LN_S"
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7483 $as_echo "no, using $LN" >&6; }
7484 else
7485 LN="$acx_cv_prog_LN"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7488 fi
7489
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$RANLIB"; then
7499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 RANLIB=$ac_cv_prog_RANLIB
7519 if test -n "$RANLIB"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7521 $as_echo "$RANLIB" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528 fi
7529 if test -z "$ac_cv_prog_RANLIB"; then
7530 ac_ct_RANLIB=$RANLIB
7531 # Extract the first word of "ranlib", so it can be a program name with args.
7532 set dummy ranlib; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$ac_ct_RANLIB"; then
7539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_RANLIB="ranlib"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7559 if test -n "$ac_ct_RANLIB"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7561 $as_echo "$ac_ct_RANLIB" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567 if test "x$ac_ct_RANLIB" = x; then
7568 RANLIB=":"
7569 else
7570 case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576 RANLIB=$ac_ct_RANLIB
7577 fi
7578 else
7579 RANLIB="$ac_cv_prog_RANLIB"
7580 fi
7581
7582 ranlib_flags=""
7583
7584
7585 # Find a good install program. We prefer a C program (faster),
7586 # so one script is as good as another. But avoid the broken or
7587 # incompatible versions:
7588 # SysV /etc/install, /usr/sbin/install
7589 # SunOS /usr/etc/install
7590 # IRIX /sbin/install
7591 # AIX /bin/install
7592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7594 # ./install, which can be erroneously created by make from ./install.sh.
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7596 $as_echo_n "checking for a BSD compatible install... " >&6; }
7597 if test -z "$INSTALL"; then
7598 if test "${ac_cv_path_install+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7602 for ac_dir in $PATH; do
7603 # Account for people who put trailing slashes in PATH elements.
7604 case "$ac_dir/" in
7605 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7606 *)
7607 # OSF1 and SCO ODT 3.0 have their own names for install.
7608 for ac_prog in ginstall scoinst install; do
7609 if test -f $ac_dir/$ac_prog; then
7610 if test $ac_prog = install &&
7611 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7612 # AIX install. It has an incompatible calling convention.
7613 # OSF/1 installbsd also uses dspmsg, but is usable.
7614 :
7615 else
7616 ac_cv_path_install="$ac_dir/$ac_prog -c"
7617 break 2
7618 fi
7619 fi
7620 done
7621 ;;
7622 esac
7623 done
7624 IFS="$ac_save_IFS"
7625
7626 fi
7627 if test "${ac_cv_path_install+set}" = set; then
7628 INSTALL="$ac_cv_path_install"
7629 else
7630 # As a last resort, use the slow shell script. We don't cache a
7631 # path for INSTALL within a source directory, because that will
7632 # break other packages using the cache if that directory is
7633 # removed, or if the path is relative.
7634 INSTALL="$ac_install_sh"
7635 fi
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7638 $as_echo "$INSTALL" >&6; }
7639
7640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7641 # It thinks the first close brace ends the variable substitution.
7642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7643
7644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7645
7646
7647 # See if cmp has --ignore-initial.
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7649 $as_echo_n "checking for cmp's capabilities... " >&6; }
7650 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 echo abfoo >t1
7654 echo cdfoo >t2
7655 gcc_cv_prog_cmp_skip=slowcompare
7656 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7657 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7658 :
7659 else
7660 gcc_cv_prog_cmp_skip=gnucompare
7661 fi
7662 fi
7663 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7664 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7665 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7666 :
7667 else
7668 gcc_cv_prog_cmp_skip=fastcompare
7669 fi
7670 fi
7671 fi
7672 rm t1 t2
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7676 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7677 make_compare_target=$gcc_cv_prog_cmp_skip
7678
7679
7680
7681 # See if we have the mktemp command.
7682 # Extract the first word of "mktemp", so it can be a program name with args.
7683 set dummy mktemp; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 if test -n "$have_mktemp_command"; then
7690 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_have_mktemp_command="yes"
7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 break 2
7702 fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7708 fi
7709 fi
7710 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7711 if test -n "$have_mktemp_command"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7713 $as_echo "$have_mktemp_command" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720
7721 # See if makeinfo has been installed and is modern enough
7722 # that we can use it.
7723
7724 # Extract the first word of "makeinfo", so it can be a program name with args.
7725 set dummy makeinfo; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$MAKEINFO"; then
7732 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_MAKEINFO="makeinfo"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 MAKEINFO=$ac_cv_prog_MAKEINFO
7752 if test -n "$MAKEINFO"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7754 $as_echo "$MAKEINFO" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 if test -n "$MAKEINFO"; then
7762 # Found it, now check the version.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7764 $as_echo_n "checking for modern makeinfo... " >&6; }
7765 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7769 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7770
7771 case $ac_prog_version in
7772 '') gcc_cv_prog_makeinfo_modern=no;;
7773 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7774 *) gcc_cv_prog_makeinfo_modern=no;;
7775 esac
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7779 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7780 else
7781 gcc_cv_prog_makeinfo_modern=no
7782 fi
7783 if test $gcc_cv_prog_makeinfo_modern = no; then
7784 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7785 fi
7786
7787 if test $gcc_cv_prog_makeinfo_modern = no; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7789 *** Makeinfo is missing or too old.
7790 *** Info documentation will not be built." >&5
7791 $as_echo "$as_me: WARNING:
7792 *** Makeinfo is missing or too old.
7793 *** Info documentation will not be built." >&2;}
7794 BUILD_INFO=
7795 else
7796 BUILD_INFO=info
7797 fi
7798
7799
7800 # Is pod2man recent enough to regenerate manpages?
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7802 $as_echo_n "checking for recent Pod::Man... " >&6; }
7803 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7805 $as_echo "yes" >&6; }
7806 GENERATED_MANPAGES=generated-manpages
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 GENERATED_MANPAGES=
7811 fi
7812
7813
7814 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7815
7816 # How about lex?
7817 for ac_prog in flex
7818 do
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_FLEX+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$FLEX"; then
7827 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_FLEX="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 FLEX=$ac_cv_prog_FLEX
7847 if test -n "$FLEX"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7849 $as_echo "$FLEX" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855
7856 test -n "$FLEX" && break
7857 done
7858 test -n "$FLEX" || FLEX="$MISSING flex"
7859
7860
7861 # Bison?
7862 for ac_prog in bison
7863 do
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_BISON+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$BISON"; then
7872 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7876 do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_BISON="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885 done
7886 done
7887 IFS=$as_save_IFS
7888
7889 fi
7890 fi
7891 BISON=$ac_cv_prog_BISON
7892 if test -n "$BISON"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7894 $as_echo "$BISON" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900
7901 test -n "$BISON" && break
7902 done
7903 test -n "$BISON" || BISON="$MISSING bison"
7904
7905
7906 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7907 # check for build == host before using them.
7908
7909 # NM
7910 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7911 && test -d ../binutils ; then
7912 NM='${objdir}/../binutils/nm-new'
7913 else
7914 # Extract the first word of "nm", so it can be a program name with args.
7915 set dummy nm; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_NM+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$NM"; then
7922 ac_cv_prog_NM="$NM" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_NM="nm"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7940 fi
7941 fi
7942 NM=$ac_cv_prog_NM
7943 if test -n "$NM"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7945 $as_echo "$NM" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951
7952 fi
7953
7954 # AR
7955 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7956 && test -d ../binutils ; then
7957 AR='${objdir}/../binutils/ar'
7958 else
7959 # Extract the first word of "ar", so it can be a program name with args.
7960 set dummy ar; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$AR"; then
7967 ac_cv_prog_AR="$AR" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_AR="ar"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7985 fi
7986 fi
7987 AR=$ac_cv_prog_AR
7988 if test -n "$AR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7990 $as_echo "$AR" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997 fi
7998
7999
8000 # --------------------
8001 # Checks for C headers
8002 # --------------------
8003
8004 # Need to reject headers which give warnings, so that the -Werror bootstrap
8005 # works later. *sigh* This needs to come before all header checks.
8006
8007 ac_c_preproc_warn_flag=yes
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8010 $as_echo_n "checking for ANSI C header files... " >&6; }
8011 if test "${ac_cv_header_stdc+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #include <stdlib.h>
8017 #include <stdarg.h>
8018 #include <string.h>
8019 #include <float.h>
8020
8021 int
8022 main ()
8023 {
8024
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_header_stdc=yes
8031 else
8032 ac_cv_header_stdc=no
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035
8036 if test $ac_cv_header_stdc = yes; then
8037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <string.h>
8041
8042 _ACEOF
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "memchr" >/dev/null 2>&1; then :
8045
8046 else
8047 ac_cv_header_stdc=no
8048 fi
8049 rm -f conftest*
8050
8051 fi
8052
8053 if test $ac_cv_header_stdc = yes; then
8054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <stdlib.h>
8058
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "free" >/dev/null 2>&1; then :
8062
8063 else
8064 ac_cv_header_stdc=no
8065 fi
8066 rm -f conftest*
8067
8068 fi
8069
8070 if test $ac_cv_header_stdc = yes; then
8071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8072 if test "$cross_compiling" = yes; then :
8073 :
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <ctype.h>
8078 #include <stdlib.h>
8079 #if ((' ' & 0x0FF) == 0x020)
8080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082 #else
8083 # define ISLOWER(c) \
8084 (('a' <= (c) && (c) <= 'i') \
8085 || ('j' <= (c) && (c) <= 'r') \
8086 || ('s' <= (c) && (c) <= 'z'))
8087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8088 #endif
8089
8090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8091 int
8092 main ()
8093 {
8094 int i;
8095 for (i = 0; i < 256; i++)
8096 if (XOR (islower (i), ISLOWER (i))
8097 || toupper (i) != TOUPPER (i))
8098 return 2;
8099 return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_run "$LINENO"; then :
8103
8104 else
8105 ac_cv_header_stdc=no
8106 fi
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108 conftest.$ac_objext conftest.beam conftest.$ac_ext
8109 fi
8110
8111 fi
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8114 $as_echo "$ac_cv_header_stdc" >&6; }
8115 if test $ac_cv_header_stdc = yes; then
8116
8117 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8118
8119 fi
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8122 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8123 if test "${ac_cv_header_time+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #include <sys/types.h>
8129 #include <sys/time.h>
8130 #include <time.h>
8131
8132 int
8133 main ()
8134 {
8135 if ((struct tm *) 0)
8136 return 0;
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 ac_cv_header_time=yes
8143 else
8144 ac_cv_header_time=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8149 $as_echo "$ac_cv_header_time" >&6; }
8150 if test $ac_cv_header_time = yes; then
8151
8152 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8153
8154 fi
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8157 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8158 if test "${gcc_cv_header_string+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <string.h>
8164 #include <strings.h>
8165 int
8166 main ()
8167 {
8168
8169 ;
8170 return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 gcc_cv_header_string=yes
8175 else
8176 gcc_cv_header_string=no
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8181 $as_echo "$gcc_cv_header_string" >&6; }
8182 if test $gcc_cv_header_string = yes; then
8183
8184 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8185
8186 fi
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8189 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8190 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/wait.h>
8197 #ifndef WEXITSTATUS
8198 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8199 #endif
8200 #ifndef WIFEXITED
8201 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8202 #endif
8203
8204 int
8205 main ()
8206 {
8207 int s;
8208 wait (&s);
8209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_header_sys_wait_h=yes
8216 else
8217 ac_cv_header_sys_wait_h=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8222 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8223 if test $ac_cv_header_sys_wait_h = yes; then
8224
8225 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8226
8227 fi
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8230 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8231 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <sys/types.h>
8237 #include <termios.h>
8238 #ifdef TIOCGWINSZ
8239 yes
8240 #endif
8241
8242 _ACEOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "yes" >/dev/null 2>&1; then :
8245 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8246 else
8247 ac_cv_sys_tiocgwinsz_in_termios_h=no
8248 fi
8249 rm -f conftest*
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8253 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8254
8255 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8257 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8258 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #include <sys/types.h>
8264 #include <sys/ioctl.h>
8265 #ifdef TIOCGWINSZ
8266 yes
8267 #endif
8268
8269 _ACEOF
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271 $EGREP "yes" >/dev/null 2>&1; then :
8272 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8273 else
8274 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8275 fi
8276 rm -f conftest*
8277
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8280 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8281
8282 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8283
8284 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8285
8286 fi
8287 fi
8288
8289 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8290 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8291 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8292 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8293 do :
8294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8296 eval as_val=\$$as_ac_Header
8297 if test "x$as_val" = x""yes; then :
8298 cat >>confdefs.h <<_ACEOF
8299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8300 _ACEOF
8301
8302 fi
8303 done
8304
8305
8306 # Check for thread headers.
8307 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8308 if test "x$ac_cv_header_thread_h" = x""yes; then :
8309 have_thread_h=yes
8310 else
8311 have_thread_h=
8312 fi
8313
8314 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8315 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8316 have_pthread_h=yes
8317 else
8318 have_pthread_h=
8319 fi
8320
8321
8322 # These tests can't be done till we know if we have limits.h.
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8324 $as_echo_n "checking for CHAR_BIT... " >&6; }
8325 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #ifdef HAVE_LIMITS_H
8331 #include <limits.h>
8332 #endif
8333 #ifdef CHAR_BIT
8334 found
8335 #endif
8336 _ACEOF
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "found" >/dev/null 2>&1; then :
8339 gcc_cv_decl_char_bit=yes
8340 else
8341 gcc_cv_decl_char_bit=no
8342 fi
8343 rm -f conftest*
8344
8345
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8348 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8349 if test $gcc_cv_decl_char_bit = no; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8351 $as_echo_n "checking number of bits in a byte... " >&6; }
8352 if test "${gcc_cv_c_nbby+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 i=8
8356 gcc_cv_c_nbby=
8357 while test $i -lt 65; do
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360
8361 int
8362 main ()
8363 {
8364 switch(0) {
8365 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8366 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8367 ; }
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 gcc_cv_c_nbby=$i; break
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 i=`expr $i + 1`
8377 done
8378 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8379
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8382 $as_echo "$gcc_cv_c_nbby" >&6; }
8383 if test $gcc_cv_c_nbby = failed; then
8384 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8385 else
8386
8387 cat >>confdefs.h <<_ACEOF
8388 #define CHAR_BIT $gcc_cv_c_nbby
8389 _ACEOF
8390
8391 fi
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8394 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8395 if test "${ac_cv_c_bigendian+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 ac_cv_c_bigendian=unknown
8399 # See if we're dealing with a universal compiler.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #ifndef __APPLE_CC__
8403 not a universal capable compiler
8404 #endif
8405 typedef int dummy;
8406
8407 _ACEOF
8408 if ac_fn_c_try_compile "$LINENO"; then :
8409
8410 # Check for potential -arch flags. It is not universal unless
8411 # there are at least two -arch flags with different values.
8412 ac_arch=
8413 ac_prev=
8414 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8415 if test -n "$ac_prev"; then
8416 case $ac_word in
8417 i?86 | x86_64 | ppc | ppc64)
8418 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8419 ac_arch=$ac_word
8420 else
8421 ac_cv_c_bigendian=universal
8422 break
8423 fi
8424 ;;
8425 esac
8426 ac_prev=
8427 elif test "x$ac_word" = "x-arch"; then
8428 ac_prev=arch
8429 fi
8430 done
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # See if sys/param.h defines the BYTE_ORDER macro.
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/types.h>
8438 #include <sys/param.h>
8439
8440 int
8441 main ()
8442 {
8443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8444 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8445 && LITTLE_ENDIAN)
8446 bogus endian macros
8447 #endif
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 # It does; now see whether it defined to BIG_ENDIAN or not.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <sys/types.h>
8458 #include <sys/param.h>
8459
8460 int
8461 main ()
8462 {
8463 #if BYTE_ORDER != BIG_ENDIAN
8464 not big endian
8465 #endif
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472 ac_cv_c_bigendian=yes
8473 else
8474 ac_cv_c_bigendian=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 fi
8480 if test $ac_cv_c_bigendian = unknown; then
8481 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <limits.h>
8485
8486 int
8487 main ()
8488 {
8489 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8490 bogus endian macros
8491 #endif
8492
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 # It does; now see whether it defined to _BIG_ENDIAN or not.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <limits.h>
8502
8503 int
8504 main ()
8505 {
8506 #ifndef _BIG_ENDIAN
8507 not big endian
8508 #endif
8509
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 ac_cv_c_bigendian=yes
8516 else
8517 ac_cv_c_bigendian=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 if test $ac_cv_c_bigendian = unknown; then
8524 # Compile a test program.
8525 if test "$cross_compiling" = yes; then :
8526 # Try to guess by grepping values from an object file.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 short int ascii_mm[] =
8530 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8531 short int ascii_ii[] =
8532 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8533 int use_ascii (int i) {
8534 return ascii_mm[i] + ascii_ii[i];
8535 }
8536 short int ebcdic_ii[] =
8537 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8538 short int ebcdic_mm[] =
8539 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8540 int use_ebcdic (int i) {
8541 return ebcdic_mm[i] + ebcdic_ii[i];
8542 }
8543 extern int foo;
8544
8545 int
8546 main ()
8547 {
8548 return use_ascii (foo) == use_ebcdic (foo);
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8555 ac_cv_c_bigendian=yes
8556 fi
8557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8558 if test "$ac_cv_c_bigendian" = unknown; then
8559 ac_cv_c_bigendian=no
8560 else
8561 # finding both strings is unlikely to happen, but who knows?
8562 ac_cv_c_bigendian=unknown
8563 fi
8564 fi
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 else
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 int
8572 main ()
8573 {
8574
8575 /* Are we little or big endian? From Harbison&Steele. */
8576 union
8577 {
8578 long int l;
8579 char c[sizeof (long int)];
8580 } u;
8581 u.l = 1;
8582 return u.c[sizeof (long int) - 1] == 1;
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 if ac_fn_c_try_run "$LINENO"; then :
8589 ac_cv_c_bigendian=no
8590 else
8591 ac_cv_c_bigendian=yes
8592 fi
8593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8594 conftest.$ac_objext conftest.beam conftest.$ac_ext
8595 fi
8596
8597 fi
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8600 $as_echo "$ac_cv_c_bigendian" >&6; }
8601 case $ac_cv_c_bigendian in #(
8602 yes)
8603 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8604 ;; #(
8605 no)
8606 ;; #(
8607 universal)
8608
8609 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8610
8611 ;; #(
8612 *)
8613 as_fn_error "unknown endianness
8614 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8615 esac
8616
8617
8618 # ----------------------
8619 # Checks for C++ headers
8620 # ----------------------
8621
8622 ac_ext=cpp
8623 ac_cpp='$CXXCPP $CPPFLAGS'
8624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8629 if test -z "$CXXCPP"; then
8630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 # Double quotes because CXXCPP needs to be expanded
8634 for CXXCPP in "$CXX -E" "/lib/cpp"
8635 do
8636 ac_preproc_ok=false
8637 for ac_cxx_preproc_warn_flag in '' yes
8638 do
8639 # Use a header file that comes with gcc, so configuring glibc
8640 # with a fresh cross-compiler works.
8641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 # <limits.h> exists even on freestanding compilers.
8643 # On the NeXT, cc -E runs the code through the compiler's parser,
8644 # not just through cpp. "Syntax error" is here to catch this case.
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 #ifdef __STDC__
8648 # include <limits.h>
8649 #else
8650 # include <assert.h>
8651 #endif
8652 Syntax error
8653 _ACEOF
8654 if ac_fn_cxx_try_cpp "$LINENO"; then :
8655
8656 else
8657 # Broken: fails on valid input.
8658 continue
8659 fi
8660 rm -f conftest.err conftest.$ac_ext
8661
8662 # OK, works on sane cases. Now check whether nonexistent headers
8663 # can be detected and how.
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <ac_nonexistent.h>
8667 _ACEOF
8668 if ac_fn_cxx_try_cpp "$LINENO"; then :
8669 # Broken: success on invalid input.
8670 continue
8671 else
8672 # Passes both tests.
8673 ac_preproc_ok=:
8674 break
8675 fi
8676 rm -f conftest.err conftest.$ac_ext
8677
8678 done
8679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8680 rm -f conftest.err conftest.$ac_ext
8681 if $ac_preproc_ok; then :
8682 break
8683 fi
8684
8685 done
8686 ac_cv_prog_CXXCPP=$CXXCPP
8687
8688 fi
8689 CXXCPP=$ac_cv_prog_CXXCPP
8690 else
8691 ac_cv_prog_CXXCPP=$CXXCPP
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8694 $as_echo "$CXXCPP" >&6; }
8695 ac_preproc_ok=false
8696 for ac_cxx_preproc_warn_flag in '' yes
8697 do
8698 # Use a header file that comes with gcc, so configuring glibc
8699 # with a fresh cross-compiler works.
8700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 # <limits.h> exists even on freestanding compilers.
8702 # On the NeXT, cc -E runs the code through the compiler's parser,
8703 # not just through cpp. "Syntax error" is here to catch this case.
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 #ifdef __STDC__
8707 # include <limits.h>
8708 #else
8709 # include <assert.h>
8710 #endif
8711 Syntax error
8712 _ACEOF
8713 if ac_fn_cxx_try_cpp "$LINENO"; then :
8714
8715 else
8716 # Broken: fails on valid input.
8717 continue
8718 fi
8719 rm -f conftest.err conftest.$ac_ext
8720
8721 # OK, works on sane cases. Now check whether nonexistent headers
8722 # can be detected and how.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #include <ac_nonexistent.h>
8726 _ACEOF
8727 if ac_fn_cxx_try_cpp "$LINENO"; then :
8728 # Broken: success on invalid input.
8729 continue
8730 else
8731 # Passes both tests.
8732 ac_preproc_ok=:
8733 break
8734 fi
8735 rm -f conftest.err conftest.$ac_ext
8736
8737 done
8738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8739 rm -f conftest.err conftest.$ac_ext
8740 if $ac_preproc_ok; then :
8741
8742 else
8743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8746 See \`config.log' for more details." >&5
8747 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8748 See \`config.log' for more details." >&2;}; }
8749 fi
8750
8751 ac_ext=c
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757
8758 ac_ext=cpp
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8763
8764
8765
8766
8767 for ac_header in unordered_map
8768 do :
8769 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8770 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_UNORDERED_MAP 1
8773 _ACEOF
8774
8775 fi
8776 done
8777
8778 for ac_header in tr1/unordered_map
8779 do :
8780 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8781 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_TR1_UNORDERED_MAP 1
8784 _ACEOF
8785
8786 fi
8787 done
8788
8789 for ac_header in ext/hash_map
8790 do :
8791 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8792 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8793 cat >>confdefs.h <<_ACEOF
8794 #define HAVE_EXT_HASH_MAP 1
8795 _ACEOF
8796
8797 fi
8798 done
8799
8800
8801 ac_ext=c
8802 ac_cpp='$CPP $CPPFLAGS'
8803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8806
8807
8808 # --------
8809 # Dependency checking.
8810 # --------
8811
8812 ac_ext=cpp
8813 ac_cpp='$CXXCPP $CPPFLAGS'
8814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8817
8818 rm -rf .tst 2>/dev/null
8819 mkdir .tst 2>/dev/null
8820 if test -d .tst; then
8821 am__leading_dot=.
8822 else
8823 am__leading_dot=_
8824 fi
8825 rmdir .tst 2>/dev/null
8826
8827 DEPDIR="${am__leading_dot}deps"
8828
8829 ac_config_commands="$ac_config_commands depdir"
8830
8831
8832 ac_config_commands="$ac_config_commands gccdepdir"
8833
8834
8835 depcc="$CXX" am_compiler_list=
8836
8837 am_depcomp=$ac_aux_dir/depcomp
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8839 $as_echo_n "checking dependency style of $depcc... " >&6; }
8840 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -f "$am_depcomp"; then
8844 # We make a subdir and do the tests there. Otherwise we can end up
8845 # making bogus files that we don't know about and never remove. For
8846 # instance it was reported that on HP-UX the gcc test will end up
8847 # making a dummy file named `D' -- because `-MD' means `put the output
8848 # in D'.
8849 mkdir conftest.dir
8850 # Copy depcomp to subdir because otherwise we won't find it if we're
8851 # using a relative directory.
8852 cp "$am_depcomp" conftest.dir
8853 cd conftest.dir
8854 # We will build objects and dependencies in a subdirectory because
8855 # it helps to detect inapplicable dependency modes. For instance
8856 # both Tru64's cc and ICC support -MD to output dependencies as a
8857 # side effect of compilation, but ICC will put the dependencies in
8858 # the current directory while Tru64 will put them in the object
8859 # directory.
8860 mkdir sub
8861
8862 am_cv_CXX_dependencies_compiler_type=none
8863 if test "$am_compiler_list" = ""; then
8864 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8865 fi
8866 for depmode in $am_compiler_list; do
8867 if test $depmode = none; then break; fi
8868
8869 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8870 # Setup a source with many dependencies, because some compilers
8871 # like to wrap large dependency lists on column 80 (with \), and
8872 # we should not choose a depcomp mode which is confused by this.
8873 #
8874 # We need to recreate these files for each test, as the compiler may
8875 # overwrite some of them when testing with obscure command lines.
8876 # This happens at least with the AIX C compiler.
8877 : > sub/conftest.c
8878 for i in 1 2 3 4 5 6; do
8879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8881 # Solaris 8's {/usr,}/bin/sh.
8882 touch sub/conftst$i.h
8883 done
8884 echo "include sub/conftest.Po" > confmf
8885
8886 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8887 # mode. It turns out that the SunPro C++ compiler does not properly
8888 # handle `-M -o', and we need to detect this.
8889 depcmd="depmode=$depmode \
8890 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8892 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8893 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8894 if env $depcmd > conftest.err 2>&1 &&
8895 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8896 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8897 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8898 # icc doesn't choke on unknown options, it will just issue warnings
8899 # or remarks (even with -Werror). So we grep stderr for any message
8900 # that says an option was ignored or not supported.
8901 # When given -MP, icc 7.0 and 7.1 complain thusly:
8902 # icc: Command line warning: ignoring option '-M'; no argument required
8903 # The diagnosis changed in icc 8.0:
8904 # icc: Command line remark: option '-MP' not supported
8905 if (grep 'ignoring option' conftest.err ||
8906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8907 am_cv_CXX_dependencies_compiler_type=$depmode
8908 $as_echo "$as_me:$LINENO: success" >&5
8909 break
8910 fi
8911 fi
8912 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8913 sed -e 's/^/| /' < conftest.err >&5
8914 done
8915
8916 cd ..
8917 rm -rf conftest.dir
8918 else
8919 am_cv_CXX_dependencies_compiler_type=none
8920 fi
8921
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8924 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8925 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8926 then as_fn_error "no usable dependency style found" "$LINENO" 5
8927 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8928
8929 fi
8930
8931 ac_ext=c
8932 ac_cpp='$CPP $CPPFLAGS'
8933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937
8938 # --------
8939 # UNSORTED
8940 # --------
8941
8942
8943 # These libraries may be used by collect2.
8944 # We may need a special search path to get them linked.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8946 $as_echo_n "checking for collect2 libraries... " >&6; }
8947 if test "${gcc_cv_collect2_libs+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 save_LIBS="$LIBS"
8951 for libs in '' -lld -lmld \
8952 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8953 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8954 do
8955 LIBS="$libs"
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char ldopen ();
8966 int
8967 main ()
8968 {
8969 return ldopen ();
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975 gcc_cv_collect2_libs="$libs"; break
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 done
8980 LIBS="$save_LIBS"
8981 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8984 $as_echo "$gcc_cv_collect2_libs" >&6; }
8985 case $gcc_cv_collect2_libs in
8986 "none required") ;;
8987 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8988 esac
8989
8990
8991 # When building Ada code on Alpha, we need exc_resume which is usually in
8992 # -lexc. So test for it.
8993 save_LIBS="$LIBS"
8994 LIBS=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8996 $as_echo_n "checking for library containing exc_resume... " >&6; }
8997 if test "${ac_cv_search_exc_resume+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 ac_func_search_save_LIBS=$LIBS
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char exc_resume ();
9011 int
9012 main ()
9013 {
9014 return exc_resume ();
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 for ac_lib in '' exc; do
9020 if test -z "$ac_lib"; then
9021 ac_res="none required"
9022 else
9023 ac_res=-l$ac_lib
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9025 fi
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 ac_cv_search_exc_resume=$ac_res
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext
9031 if test "${ac_cv_search_exc_resume+set}" = set; then :
9032 break
9033 fi
9034 done
9035 if test "${ac_cv_search_exc_resume+set}" = set; then :
9036
9037 else
9038 ac_cv_search_exc_resume=no
9039 fi
9040 rm conftest.$ac_ext
9041 LIBS=$ac_func_search_save_LIBS
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9044 $as_echo "$ac_cv_search_exc_resume" >&6; }
9045 ac_res=$ac_cv_search_exc_resume
9046 if test "$ac_res" != no; then :
9047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9048
9049 fi
9050
9051 GNAT_LIBEXC="$LIBS"
9052 LIBS="$save_LIBS"
9053
9054
9055 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9056 save_LIBS="$LIBS"
9057 LIBS=
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9059 $as_echo_n "checking for library containing kstat_open... " >&6; }
9060 if test "${ac_cv_search_kstat_open+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char kstat_open ();
9074 int
9075 main ()
9076 {
9077 return kstat_open ();
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 for ac_lib in '' kstat; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9085 else
9086 ac_res=-l$ac_lib
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9088 fi
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_kstat_open=$ac_res
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext
9094 if test "${ac_cv_search_kstat_open+set}" = set; then :
9095 break
9096 fi
9097 done
9098 if test "${ac_cv_search_kstat_open+set}" = set; then :
9099
9100 else
9101 ac_cv_search_kstat_open=no
9102 fi
9103 rm conftest.$ac_ext
9104 LIBS=$ac_func_search_save_LIBS
9105 fi
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9107 $as_echo "$ac_cv_search_kstat_open" >&6; }
9108 ac_res=$ac_cv_search_kstat_open
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9111
9112 fi
9113
9114 EXTRA_GCC_LIBS="$LIBS"
9115 LIBS="$save_LIBS"
9116
9117
9118 # Some systems put ldexp and frexp in libm instead of libc; assume
9119 # they're both in the same place. jcf-dump needs them.
9120 save_LIBS="$LIBS"
9121 LIBS=
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9123 $as_echo_n "checking for library containing ldexp... " >&6; }
9124 if test "${ac_cv_search_ldexp+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 ac_func_search_save_LIBS=$LIBS
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130
9131 /* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 char ldexp ();
9138 int
9139 main ()
9140 {
9141 return ldexp ();
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 for ac_lib in '' m; do
9147 if test -z "$ac_lib"; then
9148 ac_res="none required"
9149 else
9150 ac_res=-l$ac_lib
9151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 fi
9153 if ac_fn_c_try_link "$LINENO"; then :
9154 ac_cv_search_ldexp=$ac_res
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext
9158 if test "${ac_cv_search_ldexp+set}" = set; then :
9159 break
9160 fi
9161 done
9162 if test "${ac_cv_search_ldexp+set}" = set; then :
9163
9164 else
9165 ac_cv_search_ldexp=no
9166 fi
9167 rm conftest.$ac_ext
9168 LIBS=$ac_func_search_save_LIBS
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9171 $as_echo "$ac_cv_search_ldexp" >&6; }
9172 ac_res=$ac_cv_search_ldexp
9173 if test "$ac_res" != no; then :
9174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9175
9176 fi
9177
9178 LDEXP_LIB="$LIBS"
9179 LIBS="$save_LIBS"
9180
9181
9182 # Use <inttypes.h> only if it exists,
9183 # doesn't clash with <sys/types.h>, and declares intmax_t.
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9185 $as_echo_n "checking for inttypes.h... " >&6; }
9186 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 #include <inttypes.h>
9193 int
9194 main ()
9195 {
9196 intmax_t i = -1;
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 gcc_cv_header_inttypes_h=yes
9203 else
9204 gcc_cv_header_inttypes_h=no
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 fi
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9210 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9211 if test $gcc_cv_header_inttypes_h = yes; then
9212
9213 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9214
9215 fi
9216
9217
9218
9219 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9220 sysconf strsignal getrusage nl_langinfo \
9221 gettimeofday mbstowcs wcswidth mmap setlocale \
9222 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
9223 do :
9224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9226 eval as_val=\$$as_ac_var
9227 if test "x$as_val" = x""yes; then :
9228 cat >>confdefs.h <<_ACEOF
9229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9230 _ACEOF
9231
9232 fi
9233 done
9234
9235
9236 if test x$ac_cv_func_mbstowcs = xyes; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9238 $as_echo_n "checking whether mbstowcs works... " >&6; }
9239 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test "$cross_compiling" = yes; then :
9243 gcc_cv_func_mbstowcs_works=yes
9244 else
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 #include <stdlib.h>
9248 int main()
9249 {
9250 mbstowcs(0, "", 0);
9251 return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_run "$LINENO"; then :
9255 gcc_cv_func_mbstowcs_works=yes
9256 else
9257 gcc_cv_func_mbstowcs_works=no
9258 fi
9259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9260 conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 fi
9262
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9265 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9266 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9267
9268 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9269
9270 fi
9271 fi
9272
9273 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9274 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9275
9276 else
9277
9278 cat >>confdefs.h <<_ACEOF
9279 #define ssize_t int
9280 _ACEOF
9281
9282 fi
9283
9284 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9285 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9286
9287 else
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define caddr_t char *
9291 _ACEOF
9292
9293 fi
9294
9295
9296
9297 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9298 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9299 gcc_header_sys_mman_h=yes
9300 else
9301 gcc_header_sys_mman_h=no
9302 fi
9303
9304 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9305 if test "x$ac_cv_func_mmap" = x""yes; then :
9306 gcc_func_mmap=yes
9307 else
9308 gcc_func_mmap=no
9309 fi
9310
9311 if test "$gcc_header_sys_mman_h" != yes \
9312 || test "$gcc_func_mmap" != yes; then
9313 gcc_cv_func_mmap_file=no
9314 gcc_cv_func_mmap_dev_zero=no
9315 gcc_cv_func_mmap_anon=no
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9318 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9319 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 # Add a system to this blacklist if
9323 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9324 # memory area containing the same data that you'd get if you applied
9325 # read() to the same fd. The only system known to have a problem here
9326 # is VMS, where text files have record structure.
9327 case "$host_os" in
9328 *vms* | ultrix*)
9329 gcc_cv_func_mmap_file=no ;;
9330 *)
9331 gcc_cv_func_mmap_file=yes;;
9332 esac
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9335 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9337 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9338 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 # Add a system to this blacklist if it has mmap() but /dev/zero
9342 # does not exist, or if mmapping /dev/zero does not give anonymous
9343 # zeroed pages with both the following properties:
9344 # 1. If you map N consecutive pages in with one call, and then
9345 # unmap any subset of those pages, the pages that were not
9346 # explicitly unmapped remain accessible.
9347 # 2. If you map two adjacent blocks of memory and then unmap them
9348 # both at once, they must both go away.
9349 # Systems known to be in this category are Windows (all variants),
9350 # VMS, and Darwin.
9351 case "$host_os" in
9352 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9353 gcc_cv_func_mmap_dev_zero=no ;;
9354 *)
9355 gcc_cv_func_mmap_dev_zero=yes;;
9356 esac
9357 fi
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9359 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9360
9361 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9363 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9364 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/mman.h>
9371 #include <unistd.h>
9372
9373 #ifndef MAP_ANONYMOUS
9374 #define MAP_ANONYMOUS MAP_ANON
9375 #endif
9376
9377 int
9378 main ()
9379 {
9380 int n = MAP_ANONYMOUS;
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_compile "$LINENO"; then :
9386 gcc_cv_decl_map_anon=yes
9387 else
9388 gcc_cv_decl_map_anon=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9393 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9394
9395 if test $gcc_cv_decl_map_anon = no; then
9396 gcc_cv_func_mmap_anon=no
9397 else
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9399 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9400 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9404 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9405 # doesn't give anonymous zeroed pages with the same properties listed
9406 # above for use of /dev/zero.
9407 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9408 case "$host_os" in
9409 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9410 gcc_cv_func_mmap_anon=no ;;
9411 *)
9412 gcc_cv_func_mmap_anon=yes;;
9413 esac
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9416 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9417 fi
9418 fi
9419
9420 if test $gcc_cv_func_mmap_file = yes; then
9421
9422 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9423
9424 fi
9425 if test $gcc_cv_func_mmap_dev_zero = yes; then
9426
9427 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9428
9429 fi
9430 if test $gcc_cv_func_mmap_anon = yes; then
9431
9432 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9433
9434 fi
9435
9436
9437 case "${host}" in
9438 *-*-*vms*)
9439 # Under VMS, vfork works very differently than on Unix. The standard test
9440 # won't work, and it isn't easily adaptable. It makes more sense to
9441 # just force it.
9442 ac_cv_func_vfork_works=yes
9443 ;;
9444 esac
9445 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9446 if test "x$ac_cv_type_pid_t" = x""yes; then :
9447
9448 else
9449
9450 cat >>confdefs.h <<_ACEOF
9451 #define pid_t int
9452 _ACEOF
9453
9454 fi
9455
9456 for ac_header in vfork.h
9457 do :
9458 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9459 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_VFORK_H 1
9462 _ACEOF
9463
9464 fi
9465 done
9466
9467 for ac_func in fork vfork
9468 do :
9469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9471 eval as_val=\$$as_ac_var
9472 if test "x$as_val" = x""yes; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9475 _ACEOF
9476
9477 fi
9478 done
9479
9480 if test "x$ac_cv_func_fork" = xyes; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9482 $as_echo_n "checking for working fork... " >&6; }
9483 if test "${ac_cv_func_fork_works+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 if test "$cross_compiling" = yes; then :
9487 ac_cv_func_fork_works=cross
9488 else
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 $ac_includes_default
9492 int
9493 main ()
9494 {
9495
9496 /* By Ruediger Kuhlmann. */
9497 return fork () < 0;
9498
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 if ac_fn_c_try_run "$LINENO"; then :
9504 ac_cv_func_fork_works=yes
9505 else
9506 ac_cv_func_fork_works=no
9507 fi
9508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9509 conftest.$ac_objext conftest.beam conftest.$ac_ext
9510 fi
9511
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9514 $as_echo "$ac_cv_func_fork_works" >&6; }
9515
9516 else
9517 ac_cv_func_fork_works=$ac_cv_func_fork
9518 fi
9519 if test "x$ac_cv_func_fork_works" = xcross; then
9520 case $host in
9521 *-*-amigaos* | *-*-msdosdjgpp*)
9522 # Override, as these systems have only a dummy fork() stub
9523 ac_cv_func_fork_works=no
9524 ;;
9525 *)
9526 ac_cv_func_fork_works=yes
9527 ;;
9528 esac
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9530 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9531 fi
9532 ac_cv_func_vfork_works=$ac_cv_func_vfork
9533 if test "x$ac_cv_func_vfork" = xyes; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9535 $as_echo_n "checking for working vfork... " >&6; }
9536 if test "${ac_cv_func_vfork_works+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test "$cross_compiling" = yes; then :
9540 ac_cv_func_vfork_works=cross
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 /* Thanks to Paul Eggert for this test. */
9545 $ac_includes_default
9546 #include <sys/wait.h>
9547 #ifdef HAVE_VFORK_H
9548 # include <vfork.h>
9549 #endif
9550 /* On some sparc systems, changes by the child to local and incoming
9551 argument registers are propagated back to the parent. The compiler
9552 is told about this with #include <vfork.h>, but some compilers
9553 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9554 static variable whose address is put into a register that is
9555 clobbered by the vfork. */
9556 static void
9557 #ifdef __cplusplus
9558 sparc_address_test (int arg)
9559 # else
9560 sparc_address_test (arg) int arg;
9561 #endif
9562 {
9563 static pid_t child;
9564 if (!child) {
9565 child = vfork ();
9566 if (child < 0) {
9567 perror ("vfork");
9568 _exit(2);
9569 }
9570 if (!child) {
9571 arg = getpid();
9572 write(-1, "", 0);
9573 _exit (arg);
9574 }
9575 }
9576 }
9577
9578 int
9579 main ()
9580 {
9581 pid_t parent = getpid ();
9582 pid_t child;
9583
9584 sparc_address_test (0);
9585
9586 child = vfork ();
9587
9588 if (child == 0) {
9589 /* Here is another test for sparc vfork register problems. This
9590 test uses lots of local variables, at least as many local
9591 variables as main has allocated so far including compiler
9592 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9593 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9594 reuse the register of parent for one of the local variables,
9595 since it will think that parent can't possibly be used any more
9596 in this routine. Assigning to the local variable will thus
9597 munge parent in the parent process. */
9598 pid_t
9599 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9600 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9601 /* Convince the compiler that p..p7 are live; otherwise, it might
9602 use the same hardware register for all 8 local variables. */
9603 if (p != p1 || p != p2 || p != p3 || p != p4
9604 || p != p5 || p != p6 || p != p7)
9605 _exit(1);
9606
9607 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9608 from child file descriptors. If the child closes a descriptor
9609 before it execs or exits, this munges the parent's descriptor
9610 as well. Test for this by closing stdout in the child. */
9611 _exit(close(fileno(stdout)) != 0);
9612 } else {
9613 int status;
9614 struct stat st;
9615
9616 while (wait(&status) != child)
9617 ;
9618 return (
9619 /* Was there some problem with vforking? */
9620 child < 0
9621
9622 /* Did the child fail? (This shouldn't happen.) */
9623 || status
9624
9625 /* Did the vfork/compiler bug occur? */
9626 || parent != getpid()
9627
9628 /* Did the file descriptor bug occur? */
9629 || fstat(fileno(stdout), &st) != 0
9630 );
9631 }
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_run "$LINENO"; then :
9635 ac_cv_func_vfork_works=yes
9636 else
9637 ac_cv_func_vfork_works=no
9638 fi
9639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9640 conftest.$ac_objext conftest.beam conftest.$ac_ext
9641 fi
9642
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9645 $as_echo "$ac_cv_func_vfork_works" >&6; }
9646
9647 fi;
9648 if test "x$ac_cv_func_fork_works" = xcross; then
9649 ac_cv_func_vfork_works=$ac_cv_func_vfork
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9651 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9652 fi
9653
9654 if test "x$ac_cv_func_vfork_works" = xyes; then
9655
9656 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9657
9658 else
9659
9660 $as_echo "#define vfork fork" >>confdefs.h
9661
9662 fi
9663 if test "x$ac_cv_func_fork_works" = xyes; then
9664
9665 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9666
9667 fi
9668
9669
9670 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9671 # iconv() prototype.
9672 ac_ext=cpp
9673 ac_cpp='$CXXCPP $CPPFLAGS'
9674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9677
9678
9679 if test "X$prefix" = "XNONE"; then
9680 acl_final_prefix="$ac_default_prefix"
9681 else
9682 acl_final_prefix="$prefix"
9683 fi
9684 if test "X$exec_prefix" = "XNONE"; then
9685 acl_final_exec_prefix='${prefix}'
9686 else
9687 acl_final_exec_prefix="$exec_prefix"
9688 fi
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9692 prefix="$acl_save_prefix"
9693
9694
9695 # Check whether --with-gnu-ld was given.
9696 if test "${with_gnu_ld+set}" = set; then :
9697 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9698 else
9699 with_gnu_ld=no
9700 fi
9701
9702 # Prepare PATH_SEPARATOR.
9703 # The user is always right.
9704 if test "${PATH_SEPARATOR+set}" != set; then
9705 echo "#! /bin/sh" >conf$$.sh
9706 echo "exit 0" >>conf$$.sh
9707 chmod +x conf$$.sh
9708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9709 PATH_SEPARATOR=';'
9710 else
9711 PATH_SEPARATOR=:
9712 fi
9713 rm -f conf$$.sh
9714 fi
9715 ac_prog=ld
9716 if test "$GCC" = yes; then
9717 # Check if gcc -print-prog-name=ld gives a path.
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9719 $as_echo_n "checking for ld used by GCC... " >&6; }
9720 case $host in
9721 *-*-mingw*)
9722 # gcc leaves a trailing carriage return which upsets mingw
9723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9724 *)
9725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9726 esac
9727 case $ac_prog in
9728 # Accept absolute paths.
9729 [\\/]* | [A-Za-z]:[\\/]*)
9730 re_direlt='/[^/][^/]*/\.\./'
9731 # Canonicalize the path of ld
9732 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9733 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9734 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9735 done
9736 test -z "$LD" && LD="$ac_prog"
9737 ;;
9738 "")
9739 # If it fails, then pretend we aren't using GCC.
9740 ac_prog=ld
9741 ;;
9742 *)
9743 # If it is relative, then search for the first ld in PATH.
9744 with_gnu_ld=unknown
9745 ;;
9746 esac
9747 elif test "$with_gnu_ld" = yes; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9749 $as_echo_n "checking for GNU ld... " >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9752 $as_echo_n "checking for non-GNU ld... " >&6; }
9753 fi
9754 if test "${acl_cv_path_LD+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -z "$LD"; then
9758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9759 for ac_dir in $PATH; do
9760 test -z "$ac_dir" && ac_dir=.
9761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9762 acl_cv_path_LD="$ac_dir/$ac_prog"
9763 # Check to see if the program is GNU ld. I'd rather use --version,
9764 # but apparently some GNU ld's only accept -v.
9765 # Break only if it was the GNU/non-GNU ld that we prefer.
9766 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9767 test "$with_gnu_ld" != no && break
9768 else
9769 test "$with_gnu_ld" != yes && break
9770 fi
9771 fi
9772 done
9773 IFS="$ac_save_ifs"
9774 else
9775 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9776 fi
9777 fi
9778
9779 LD="$acl_cv_path_LD"
9780 if test -n "$LD"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9782 $as_echo "$LD" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9786 fi
9787 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9790 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9794 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9795 acl_cv_prog_gnu_ld=yes
9796 else
9797 acl_cv_prog_gnu_ld=no
9798 fi
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9801 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9802 with_gnu_ld=$acl_cv_prog_gnu_ld
9803
9804
9805
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9807 $as_echo_n "checking for shared library run path origin... " >&6; }
9808 if test "${acl_cv_rpath+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811
9812 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9813 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9814 . ./conftest.sh
9815 rm -f ./conftest.sh
9816 acl_cv_rpath=done
9817
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9820 $as_echo "$acl_cv_rpath" >&6; }
9821 wl="$acl_cv_wl"
9822 libext="$acl_cv_libext"
9823 shlibext="$acl_cv_shlibext"
9824 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9825 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9826 hardcode_direct="$acl_cv_hardcode_direct"
9827 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9828 # Check whether --enable-rpath was given.
9829 if test "${enable_rpath+set}" = set; then :
9830 enableval=$enable_rpath; :
9831 else
9832 enable_rpath=yes
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841
9842 use_additional=yes
9843
9844 acl_save_prefix="$prefix"
9845 prefix="$acl_final_prefix"
9846 acl_save_exec_prefix="$exec_prefix"
9847 exec_prefix="$acl_final_exec_prefix"
9848
9849 eval additional_includedir=\"$includedir\"
9850 eval additional_libdir=\"$libdir\"
9851
9852 exec_prefix="$acl_save_exec_prefix"
9853 prefix="$acl_save_prefix"
9854
9855
9856 # Check whether --with-libiconv-prefix was given.
9857 if test "${with_libiconv_prefix+set}" = set; then :
9858 withval=$with_libiconv_prefix;
9859 if test "X$withval" = "Xno"; then
9860 use_additional=no
9861 else
9862 if test "X$withval" = "X"; then
9863
9864 acl_save_prefix="$prefix"
9865 prefix="$acl_final_prefix"
9866 acl_save_exec_prefix="$exec_prefix"
9867 exec_prefix="$acl_final_exec_prefix"
9868
9869 eval additional_includedir=\"$includedir\"
9870 eval additional_libdir=\"$libdir\"
9871
9872 exec_prefix="$acl_save_exec_prefix"
9873 prefix="$acl_save_prefix"
9874
9875 else
9876 additional_includedir="$withval/include"
9877 additional_libdir="$withval/lib"
9878 fi
9879 fi
9880
9881 fi
9882
9883 LIBICONV=
9884 LTLIBICONV=
9885 INCICONV=
9886 rpathdirs=
9887 ltrpathdirs=
9888 names_already_handled=
9889 names_next_round='iconv '
9890 while test -n "$names_next_round"; do
9891 names_this_round="$names_next_round"
9892 names_next_round=
9893 for name in $names_this_round; do
9894 already_handled=
9895 for n in $names_already_handled; do
9896 if test "$n" = "$name"; then
9897 already_handled=yes
9898 break
9899 fi
9900 done
9901 if test -z "$already_handled"; then
9902 names_already_handled="$names_already_handled $name"
9903 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9904 eval value=\"\$HAVE_LIB$uppername\"
9905 if test -n "$value"; then
9906 if test "$value" = yes; then
9907 eval value=\"\$LIB$uppername\"
9908 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9909 eval value=\"\$LTLIB$uppername\"
9910 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9911 else
9912 :
9913 fi
9914 else
9915 found_dir=
9916 found_la=
9917 found_so=
9918 found_a=
9919 if test $use_additional = yes; then
9920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9921 found_dir="$additional_libdir"
9922 found_so="$additional_libdir/lib$name.$shlibext"
9923 if test -f "$additional_libdir/lib$name.la"; then
9924 found_la="$additional_libdir/lib$name.la"
9925 fi
9926 else
9927 if test -f "$additional_libdir/lib$name.$libext"; then
9928 found_dir="$additional_libdir"
9929 found_a="$additional_libdir/lib$name.$libext"
9930 if test -f "$additional_libdir/lib$name.la"; then
9931 found_la="$additional_libdir/lib$name.la"
9932 fi
9933 fi
9934 fi
9935 fi
9936 if test "X$found_dir" = "X"; then
9937 for x in $LDFLAGS $LTLIBICONV; do
9938
9939 acl_save_prefix="$prefix"
9940 prefix="$acl_final_prefix"
9941 acl_save_exec_prefix="$exec_prefix"
9942 exec_prefix="$acl_final_exec_prefix"
9943 eval x=\"$x\"
9944 exec_prefix="$acl_save_exec_prefix"
9945 prefix="$acl_save_prefix"
9946
9947 case "$x" in
9948 -L*)
9949 dir=`echo "X$x" | sed -e 's/^X-L//'`
9950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9951 found_dir="$dir"
9952 found_so="$dir/lib$name.$shlibext"
9953 if test -f "$dir/lib$name.la"; then
9954 found_la="$dir/lib$name.la"
9955 fi
9956 else
9957 if test -f "$dir/lib$name.$libext"; then
9958 found_dir="$dir"
9959 found_a="$dir/lib$name.$libext"
9960 if test -f "$dir/lib$name.la"; then
9961 found_la="$dir/lib$name.la"
9962 fi
9963 fi
9964 fi
9965 ;;
9966 esac
9967 if test "X$found_dir" != "X"; then
9968 break
9969 fi
9970 done
9971 fi
9972 if test "X$found_dir" != "X"; then
9973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9974 if test "X$found_so" != "X"; then
9975 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9977 else
9978 haveit=
9979 for x in $ltrpathdirs; do
9980 if test "X$x" = "X$found_dir"; then
9981 haveit=yes
9982 break
9983 fi
9984 done
9985 if test -z "$haveit"; then
9986 ltrpathdirs="$ltrpathdirs $found_dir"
9987 fi
9988 if test "$hardcode_direct" = yes; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9990 else
9991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9992 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9993 haveit=
9994 for x in $rpathdirs; do
9995 if test "X$x" = "X$found_dir"; then
9996 haveit=yes
9997 break
9998 fi
9999 done
10000 if test -z "$haveit"; then
10001 rpathdirs="$rpathdirs $found_dir"
10002 fi
10003 else
10004 haveit=
10005 for x in $LDFLAGS $LIBICONV; do
10006
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10014
10015 if test "X$x" = "X-L$found_dir"; then
10016 haveit=yes
10017 break
10018 fi
10019 done
10020 if test -z "$haveit"; then
10021 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10022 fi
10023 if test "$hardcode_minus_L" != no; then
10024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10025 else
10026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10027 fi
10028 fi
10029 fi
10030 fi
10031 else
10032 if test "X$found_a" != "X"; then
10033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10034 else
10035 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10036 fi
10037 fi
10038 additional_includedir=
10039 case "$found_dir" in
10040 */lib | */lib/)
10041 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10042 additional_includedir="$basedir/include"
10043 ;;
10044 esac
10045 if test "X$additional_includedir" != "X"; then
10046 if test "X$additional_includedir" != "X/usr/include"; then
10047 haveit=
10048 if test "X$additional_includedir" = "X/usr/local/include"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10053 fi
10054 fi
10055 if test -z "$haveit"; then
10056 for x in $CPPFLAGS $INCICONV; do
10057
10058 acl_save_prefix="$prefix"
10059 prefix="$acl_final_prefix"
10060 acl_save_exec_prefix="$exec_prefix"
10061 exec_prefix="$acl_final_exec_prefix"
10062 eval x=\"$x\"
10063 exec_prefix="$acl_save_exec_prefix"
10064 prefix="$acl_save_prefix"
10065
10066 if test "X$x" = "X-I$additional_includedir"; then
10067 haveit=yes
10068 break
10069 fi
10070 done
10071 if test -z "$haveit"; then
10072 if test -d "$additional_includedir"; then
10073 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10074 fi
10075 fi
10076 fi
10077 fi
10078 fi
10079 if test -n "$found_la"; then
10080 save_libdir="$libdir"
10081 case "$found_la" in
10082 */* | *\\*) . "$found_la" ;;
10083 *) . "./$found_la" ;;
10084 esac
10085 libdir="$save_libdir"
10086 for dep in $dependency_libs; do
10087 case "$dep" in
10088 -L*)
10089 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10090 if test "X$additional_libdir" != "X/usr/lib"; then
10091 haveit=
10092 if test "X$additional_libdir" = "X/usr/local/lib"; then
10093 if test -n "$GCC"; then
10094 case $host_os in
10095 linux*) haveit=yes;;
10096 esac
10097 fi
10098 fi
10099 if test -z "$haveit"; then
10100 haveit=
10101 for x in $LDFLAGS $LIBICONV; do
10102
10103 acl_save_prefix="$prefix"
10104 prefix="$acl_final_prefix"
10105 acl_save_exec_prefix="$exec_prefix"
10106 exec_prefix="$acl_final_exec_prefix"
10107 eval x=\"$x\"
10108 exec_prefix="$acl_save_exec_prefix"
10109 prefix="$acl_save_prefix"
10110
10111 if test "X$x" = "X-L$additional_libdir"; then
10112 haveit=yes
10113 break
10114 fi
10115 done
10116 if test -z "$haveit"; then
10117 if test -d "$additional_libdir"; then
10118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10119 fi
10120 fi
10121 haveit=
10122 for x in $LDFLAGS $LTLIBICONV; do
10123
10124 acl_save_prefix="$prefix"
10125 prefix="$acl_final_prefix"
10126 acl_save_exec_prefix="$exec_prefix"
10127 exec_prefix="$acl_final_exec_prefix"
10128 eval x=\"$x\"
10129 exec_prefix="$acl_save_exec_prefix"
10130 prefix="$acl_save_prefix"
10131
10132 if test "X$x" = "X-L$additional_libdir"; then
10133 haveit=yes
10134 break
10135 fi
10136 done
10137 if test -z "$haveit"; then
10138 if test -d "$additional_libdir"; then
10139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10140 fi
10141 fi
10142 fi
10143 fi
10144 ;;
10145 -R*)
10146 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10147 if test "$enable_rpath" != no; then
10148 haveit=
10149 for x in $rpathdirs; do
10150 if test "X$x" = "X$dir"; then
10151 haveit=yes
10152 break
10153 fi
10154 done
10155 if test -z "$haveit"; then
10156 rpathdirs="$rpathdirs $dir"
10157 fi
10158 haveit=
10159 for x in $ltrpathdirs; do
10160 if test "X$x" = "X$dir"; then
10161 haveit=yes
10162 break
10163 fi
10164 done
10165 if test -z "$haveit"; then
10166 ltrpathdirs="$ltrpathdirs $dir"
10167 fi
10168 fi
10169 ;;
10170 -l*)
10171 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10172 ;;
10173 *.la)
10174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10175 ;;
10176 *)
10177 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10179 ;;
10180 esac
10181 done
10182 fi
10183 else
10184 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10186 fi
10187 fi
10188 fi
10189 done
10190 done
10191 if test "X$rpathdirs" != "X"; then
10192 if test -n "$hardcode_libdir_separator"; then
10193 alldirs=
10194 for found_dir in $rpathdirs; do
10195 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10196 done
10197 acl_save_libdir="$libdir"
10198 libdir="$alldirs"
10199 eval flag=\"$hardcode_libdir_flag_spec\"
10200 libdir="$acl_save_libdir"
10201 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10202 else
10203 for found_dir in $rpathdirs; do
10204 acl_save_libdir="$libdir"
10205 libdir="$found_dir"
10206 eval flag=\"$hardcode_libdir_flag_spec\"
10207 libdir="$acl_save_libdir"
10208 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10209 done
10210 fi
10211 fi
10212 if test "X$ltrpathdirs" != "X"; then
10213 for found_dir in $ltrpathdirs; do
10214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10215 done
10216 fi
10217
10218
10219
10220
10221
10222
10223
10224 am_save_CPPFLAGS="$CPPFLAGS"
10225
10226 for element in $INCICONV; do
10227 haveit=
10228 for x in $CPPFLAGS; do
10229
10230 acl_save_prefix="$prefix"
10231 prefix="$acl_final_prefix"
10232 acl_save_exec_prefix="$exec_prefix"
10233 exec_prefix="$acl_final_exec_prefix"
10234 eval x=\"$x\"
10235 exec_prefix="$acl_save_exec_prefix"
10236 prefix="$acl_save_prefix"
10237
10238 if test "X$x" = "X$element"; then
10239 haveit=yes
10240 break
10241 fi
10242 done
10243 if test -z "$haveit"; then
10244 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10245 fi
10246 done
10247
10248
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10250 $as_echo_n "checking for iconv... " >&6; }
10251 if test "${am_cv_func_iconv+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254
10255 am_cv_func_iconv="no, consider installing GNU libiconv"
10256 am_cv_lib_iconv=no
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 #include <stdlib.h>
10260 #include <iconv.h>
10261 int
10262 main ()
10263 {
10264 iconv_t cd = iconv_open("","");
10265 iconv(cd,NULL,NULL,NULL,NULL);
10266 iconv_close(cd);
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_cxx_try_link "$LINENO"; then :
10272 am_cv_func_iconv=yes
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 if test "$am_cv_func_iconv" != yes; then
10277 am_save_LIBS="$LIBS"
10278 LIBS="$LIBS $LIBICONV"
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 #include <stdlib.h>
10282 #include <iconv.h>
10283 int
10284 main ()
10285 {
10286 iconv_t cd = iconv_open("","");
10287 iconv(cd,NULL,NULL,NULL,NULL);
10288 iconv_close(cd);
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_cxx_try_link "$LINENO"; then :
10294 am_cv_lib_iconv=yes
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 LIBS="$am_save_LIBS"
10300 fi
10301
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10304 $as_echo "$am_cv_func_iconv" >&6; }
10305 if test "$am_cv_func_iconv" = yes; then
10306
10307 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10308
10309 fi
10310 if test "$am_cv_lib_iconv" = yes; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10312 $as_echo_n "checking how to link with libiconv... " >&6; }
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10314 $as_echo "$LIBICONV" >&6; }
10315 else
10316 CPPFLAGS="$am_save_CPPFLAGS"
10317 LIBICONV=
10318 LTLIBICONV=
10319 fi
10320
10321
10322
10323 if test "$am_cv_func_iconv" = yes; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10325 $as_echo_n "checking for iconv declaration... " >&6; }
10326 if test "${am_cv_proto_iconv+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332
10333 #include <stdlib.h>
10334 #include <iconv.h>
10335 extern
10336 #ifdef __cplusplus
10337 "C"
10338 #endif
10339 #if defined(__STDC__) || defined(__cplusplus)
10340 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10341 #else
10342 size_t iconv();
10343 #endif
10344
10345 int
10346 main ()
10347 {
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_cxx_try_compile "$LINENO"; then :
10354 am_cv_proto_iconv_arg1=""
10355 else
10356 am_cv_proto_iconv_arg1="const"
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 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);"
10360 fi
10361
10362 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10364 }$am_cv_proto_iconv" >&5
10365 $as_echo "${ac_t:-
10366 }$am_cv_proto_iconv" >&6; }
10367
10368 cat >>confdefs.h <<_ACEOF
10369 #define ICONV_CONST $am_cv_proto_iconv_arg1
10370 _ACEOF
10371
10372 fi
10373
10374 ac_ext=c
10375 ac_cpp='$CPP $CPPFLAGS'
10376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10379
10380
10381 # Until we have in-tree GNU iconv:
10382 LIBICONV_DEP=
10383
10384
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10387 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10388 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <locale.h>
10394 int
10395 main ()
10396 {
10397 return LC_MESSAGES
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 am_cv_val_LC_MESSAGES=yes
10404 else
10405 am_cv_val_LC_MESSAGES=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 fi
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10411 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10412 if test $am_cv_val_LC_MESSAGES = yes; then
10413
10414 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10415
10416 fi
10417
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10421 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10422 if test "${am_cv_langinfo_codeset+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #include <langinfo.h>
10428 int
10429 main ()
10430 {
10431 char* cs = nl_langinfo(CODESET);
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 if ac_fn_c_try_link "$LINENO"; then :
10437 am_cv_langinfo_codeset=yes
10438 else
10439 am_cv_langinfo_codeset=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443
10444 fi
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10446 $as_echo "$am_cv_langinfo_codeset" >&6; }
10447 if test $am_cv_langinfo_codeset = yes; then
10448
10449 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10450
10451 fi
10452
10453
10454 # We will need to find libiberty.h and ansidecl.h
10455 saved_CFLAGS="$CFLAGS"
10456 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10457 saved_CXXFLAGS="$CXXFLAGS"
10458 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10459 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10460 strsignal strstr stpcpy strverscmp \
10461 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10462 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
10463 do
10464 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10466 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10467 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 #undef $ac_tr_decl
10473 #define $ac_tr_decl 1
10474
10475 #include "ansidecl.h"
10476 #include "system.h"
10477
10478 int
10479 main ()
10480 {
10481 #ifndef $ac_func
10482 char *(*pfn) = (char *(*)) $ac_func ;
10483 #endif
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489 eval "gcc_cv_have_decl_$ac_func=yes"
10490 else
10491 eval "gcc_cv_have_decl_$ac_func=no"
10492 fi
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 fi
10495
10496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10499 #define $ac_tr_decl 1
10500 _ACEOF
10501
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10505 #define $ac_tr_decl 0
10506 _ACEOF
10507
10508 fi
10509
10510 done
10511
10512
10513 for ac_func in getrlimit setrlimit getrusage
10514 do
10515 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10518 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #undef $ac_tr_decl
10524 #define $ac_tr_decl 1
10525
10526 #include "ansidecl.h"
10527 #include "system.h"
10528 #ifdef HAVE_SYS_RESOURCE_H
10529 #include <sys/resource.h>
10530 #endif
10531
10532
10533 int
10534 main ()
10535 {
10536 #ifndef $ac_func
10537 char *(*pfn) = (char *(*)) $ac_func ;
10538 #endif
10539 ;
10540 return 0;
10541 }
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"; then :
10544 eval "gcc_cv_have_decl_$ac_func=yes"
10545 else
10546 eval "gcc_cv_have_decl_$ac_func=no"
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 fi
10550
10551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10554 #define $ac_tr_decl 1
10555 _ACEOF
10556
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10560 #define $ac_tr_decl 0
10561 _ACEOF
10562
10563 fi
10564
10565 done
10566
10567
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570
10571 #include "ansidecl.h"
10572 #include "system.h"
10573 #ifdef HAVE_SYS_RESOURCE_H
10574 #include <sys/resource.h>
10575 #endif
10576
10577 int
10578 main ()
10579 {
10580 rlim_t l = 0;
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586
10587 else
10588
10589 $as_echo "#define rlim_t long" >>confdefs.h
10590
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593
10594 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10595 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10596 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10597 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10598 for ac_func in ldgetname
10599 do
10600 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10603 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #undef $ac_tr_decl
10609 #define $ac_tr_decl 1
10610
10611 #include "ansidecl.h"
10612 #include "system.h"
10613 #ifdef HAVE_LDFCN_H
10614 #undef FREAD
10615 #undef FWRITE
10616 #include <ldfcn.h>
10617 #endif
10618
10619
10620 int
10621 main ()
10622 {
10623 #ifndef $ac_func
10624 char *(*pfn) = (char *(*)) $ac_func ;
10625 #endif
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_compile "$LINENO"; then :
10631 eval "gcc_cv_have_decl_$ac_func=yes"
10632 else
10633 eval "gcc_cv_have_decl_$ac_func=no"
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 fi
10637
10638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10641 #define $ac_tr_decl 1
10642 _ACEOF
10643
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10647 #define $ac_tr_decl 0
10648 _ACEOF
10649
10650 fi
10651
10652 done
10653
10654
10655 for ac_func in times
10656 do
10657 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10659 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10660 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #undef $ac_tr_decl
10666 #define $ac_tr_decl 1
10667
10668 #include "ansidecl.h"
10669 #include "system.h"
10670 #ifdef HAVE_SYS_TIMES_H
10671 #include <sys/times.h>
10672 #endif
10673
10674
10675 int
10676 main ()
10677 {
10678 #ifndef $ac_func
10679 char *(*pfn) = (char *(*)) $ac_func ;
10680 #endif
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686 eval "gcc_cv_have_decl_$ac_func=yes"
10687 else
10688 eval "gcc_cv_have_decl_$ac_func=no"
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692
10693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10696 #define $ac_tr_decl 1
10697 _ACEOF
10698
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10702 #define $ac_tr_decl 0
10703 _ACEOF
10704
10705 fi
10706
10707 done
10708
10709
10710 for ac_func in sigaltstack
10711 do
10712 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10714 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10715 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #undef $ac_tr_decl
10721 #define $ac_tr_decl 1
10722
10723 #include "ansidecl.h"
10724 #include "system.h"
10725 #include <signal.h>
10726
10727
10728 int
10729 main ()
10730 {
10731 #ifndef $ac_func
10732 char *(*pfn) = (char *(*)) $ac_func ;
10733 #endif
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_compile "$LINENO"; then :
10739 eval "gcc_cv_have_decl_$ac_func=yes"
10740 else
10741 eval "gcc_cv_have_decl_$ac_func=no"
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 fi
10745
10746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10749 #define $ac_tr_decl 1
10750 _ACEOF
10751
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10755 #define $ac_tr_decl 0
10756 _ACEOF
10757
10758 fi
10759
10760 done
10761
10762
10763 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10764 # prototype.
10765 ac_ext=cpp
10766 ac_cpp='$CXXCPP $CPPFLAGS'
10767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10770
10771 for ac_func in madvise
10772 do
10773 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10775 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10776 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #undef $ac_tr_decl
10782 #define $ac_tr_decl 1
10783
10784 #include "ansidecl.h"
10785 #include "system.h"
10786
10787
10788 int
10789 main ()
10790 {
10791 #ifndef $ac_func
10792 char *(*pfn) = (char *(*)) $ac_func ;
10793 #endif
10794 ;
10795 return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_cxx_try_compile "$LINENO"; then :
10799 eval "gcc_cv_have_decl_$ac_func=yes"
10800 else
10801 eval "gcc_cv_have_decl_$ac_func=no"
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 fi
10805
10806 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10809 #define $ac_tr_decl 1
10810 _ACEOF
10811
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10815 #define $ac_tr_decl 0
10816 _ACEOF
10817
10818 fi
10819
10820 done
10821
10822 ac_ext=c
10823 ac_cpp='$CPP $CPPFLAGS'
10824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10827
10828
10829 # More time-related stuff.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10831 $as_echo_n "checking for struct tms... " >&6; }
10832 if test "${ac_cv_struct_tms+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838
10839 #include "ansidecl.h"
10840 #include "system.h"
10841 #ifdef HAVE_SYS_TIMES_H
10842 #include <sys/times.h>
10843 #endif
10844
10845 int
10846 main ()
10847 {
10848 struct tms tms;
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 ac_cv_struct_tms=yes
10855 else
10856 ac_cv_struct_tms=no
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10861 $as_echo "$ac_cv_struct_tms" >&6; }
10862 if test $ac_cv_struct_tms = yes; then
10863
10864 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10865
10866 fi
10867
10868 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10869 # revisit after autoconf 2.50.
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10871 $as_echo_n "checking for clock_t... " >&6; }
10872 if test "${gcc_cv_type_clock_t+set}" = set; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878
10879 #include "ansidecl.h"
10880 #include "system.h"
10881
10882 int
10883 main ()
10884 {
10885 clock_t x;
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"; then :
10891 gcc_cv_type_clock_t=yes
10892 else
10893 gcc_cv_type_clock_t=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10898 $as_echo "$gcc_cv_type_clock_t" >&6; }
10899 if test $gcc_cv_type_clock_t = yes; then
10900
10901 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10902
10903 fi
10904
10905 # Check if F_SETLKW is supported by fcntl.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10907 $as_echo_n "checking for F_SETLKW... " >&6; }
10908 if test "${ac_cv_f_setlkw+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 #include <fcntl.h>
10916 int
10917 main ()
10918 {
10919
10920 struct flock fl;
10921 fl.l_whence = 0;
10922 fl.l_start = 0;
10923 fl.l_len = 0;
10924 fl.l_pid = 0;
10925 return fcntl (1, F_SETLKW, &fl);
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_compile "$LINENO"; then :
10931 ac_cv_f_setlkw=yes
10932 else
10933 ac_cv_f_setlkw=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10938 $as_echo "$ac_cv_f_setlkw" >&6; }
10939 if test $ac_cv_f_setlkw = yes; then
10940
10941 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10942
10943 fi
10944
10945 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10946 CFLAGS="$saved_CFLAGS"
10947 CXXFLAGS="$saved_CXXFLAGS"
10948
10949 # mkdir takes a single argument on some systems.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10951 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10952 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 #include <sys/types.h>
10959 #ifdef HAVE_SYS_STAT_H
10960 # include <sys/stat.h>
10961 #endif
10962 #ifdef HAVE_UNISTD_H
10963 # include <unistd.h>
10964 #endif
10965 #ifdef HAVE_DIRECT_H
10966 # include <direct.h>
10967 #endif
10968 int
10969 main ()
10970 {
10971 mkdir ("foo", 0);
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_compile "$LINENO"; then :
10977 gcc_cv_mkdir_takes_one_arg=no
10978 else
10979 gcc_cv_mkdir_takes_one_arg=yes
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10984 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10985 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10986
10987 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10988
10989 fi
10990
10991
10992 # File extensions
10993 manext='.1'
10994 objext='.o'
10995
10996
10997
10998 # With Setjmp/Longjmp based exception handling.
10999 # Check whether --enable-sjlj-exceptions was given.
11000 if test "${enable_sjlj_exceptions+set}" = set; then :
11001 enableval=$enable_sjlj_exceptions; case $target in
11002 *-*-hpux10*)
11003 if test $enableval != yes; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11005 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11006 enableval=yes
11007 fi
11008 ;;
11009 esac
11010 force_sjlj_exceptions=yes
11011 else
11012 case $target in
11013 *-*-hpux10*)
11014 force_sjlj_exceptions=yes
11015 enableval=yes
11016 ;;
11017 lm32*-*-*)
11018 force_sjlj_exceptions=yes
11019 enableval=yes
11020 ;;
11021 *)
11022 force_sjlj_exceptions=no
11023 ;;
11024 esac
11025 fi
11026
11027 if test $force_sjlj_exceptions = yes; then
11028 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11029
11030 cat >>confdefs.h <<_ACEOF
11031 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11032 _ACEOF
11033
11034 fi
11035
11036 # --------------------------------------------------------
11037 # Build, host, and target specific configuration fragments
11038 # --------------------------------------------------------
11039
11040 # Collect build-machine-specific information.
11041 . ${srcdir}/config.build
11042
11043 # Collect host-machine-specific information.
11044 . ${srcdir}/config.host
11045
11046 target_gtfiles=
11047
11048 # Collect target-machine-specific information.
11049 . ${srcdir}/config.gcc
11050
11051 extra_objs="${host_extra_objs} ${extra_objs}"
11052 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11053
11054 # Default the target-machine variables that were not explicitly set.
11055 if test x"$tm_file" = x
11056 then tm_file=$cpu_type/$cpu_type.h; fi
11057
11058 if test x"$extra_headers" = x
11059 then extra_headers=; fi
11060
11061 if test x$md_file = x
11062 then md_file=$cpu_type/$cpu_type.md; fi
11063
11064 if test x$out_file = x
11065 then out_file=$cpu_type/$cpu_type.c; fi
11066
11067 if test x"$tmake_file" = x
11068 then tmake_file=$cpu_type/t-$cpu_type
11069 fi
11070
11071 # Support --enable-initfini-array.
11072 if test x$enable_initfini_array != xno; then
11073 tm_file="${tm_file} initfini-array.h"
11074 fi
11075
11076 if test x"$dwarf2" = xyes
11077 then tm_file="$tm_file tm-dwarf2.h"
11078 fi
11079
11080 # Say what files are being used for the output code and MD file.
11081 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11082 echo "Using \`$srcdir/config/$md_file' as machine description file."
11083
11084 # If any of the xm_file variables contain nonexistent files, warn
11085 # about them and drop them.
11086
11087 bx=
11088 for x in $build_xm_file; do
11089 if test -f $srcdir/config/$x
11090 then bx="$bx $x"
11091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11093 fi
11094 done
11095 build_xm_file="$bx"
11096
11097 hx=
11098 for x in $host_xm_file; do
11099 if test -f $srcdir/config/$x
11100 then hx="$hx $x"
11101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11103 fi
11104 done
11105 host_xm_file="$hx"
11106
11107 tx=
11108 for x in $xm_file; do
11109 if test -f $srcdir/config/$x
11110 then tx="$tx $x"
11111 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11112 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11113 fi
11114 done
11115 xm_file="$tx"
11116
11117 count=a
11118 for f in $tm_file; do
11119 count=${count}x
11120 done
11121 if test $count = ax; then
11122 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11123 else
11124 echo "Using the following target machine macro files:"
11125 for f in $tm_file; do
11126 echo " $srcdir/config/$f"
11127 done
11128 fi
11129
11130 if test x$need_64bit_hwint = xyes; then
11131
11132 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11133
11134 fi
11135
11136 if test x$use_long_long_for_widest_fast_int = xyes; then
11137
11138 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11139
11140 fi
11141
11142 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11143
11144 cat >>confdefs.h <<_ACEOF
11145 #define HAVE_GNU_LD $gnu_ld_bool
11146 _ACEOF
11147
11148
11149 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11150
11151 cat >>confdefs.h <<_ACEOF
11152 #define HAVE_GNU_AS $gnu_as_bool
11153 _ACEOF
11154
11155
11156 count=a
11157 for f in $host_xm_file; do
11158 count=${count}x
11159 done
11160 if test $count = a; then
11161 :
11162 elif test $count = ax; then
11163 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11164 else
11165 echo "Using the following host machine macro files:"
11166 for f in $host_xm_file; do
11167 echo " $srcdir/config/$f"
11168 done
11169 fi
11170 echo "Using ${out_host_hook_obj} for host machine hooks."
11171
11172 if test "$host_xm_file" != "$build_xm_file"; then
11173 count=a
11174 for f in $build_xm_file; do
11175 count=${count}x
11176 done
11177 if test $count = a; then
11178 :
11179 elif test $count = ax; then
11180 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11181 else
11182 echo "Using the following build machine macro files:"
11183 for f in $build_xm_file; do
11184 echo " $srcdir/config/$f"
11185 done
11186 fi
11187 fi
11188
11189 if test -n "$configured_native_system_header_dir"; then
11190 native_system_header_dir=$configured_native_system_header_dir
11191 fi
11192 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11193
11194
11195 case ${host} in
11196 powerpc*-*-darwin*)
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11198 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11199 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204
11205 #include <sys/cdefs.h>
11206 #include <sys/signal.h>
11207 #include <ucontext.h>
11208 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11209
11210 _ACEOF
11211 if ac_fn_c_try_compile "$LINENO"; then :
11212 gcc_cv_mcontext_underscores=no
11213 else
11214 gcc_cv_mcontext_underscores=yes
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11219 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11220 if test $gcc_cv_mcontext_underscores = yes; then
11221
11222 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11223
11224 fi
11225 ;;
11226 esac
11227
11228 # ---------
11229 # Threading
11230 # ---------
11231
11232 # Check if a valid thread package
11233 case ${enable_threads} in
11234 "" | no)
11235 # No threads
11236 target_thread_file='single'
11237 ;;
11238 yes)
11239 # default
11240 target_thread_file='single'
11241 ;;
11242 aix | dce | lynx | mipssde | posix | rtems | \
11243 single | tpf | vxworks | win32)
11244 target_thread_file=${enable_threads}
11245 ;;
11246 *)
11247 echo "${enable_threads} is an unknown thread package" 1>&2
11248 exit 1
11249 ;;
11250 esac
11251
11252 if test x${thread_file} = x; then
11253 # No thread file set by target-specific clauses in config.gcc,
11254 # so use file chosen by default logic above
11255 thread_file=${target_thread_file}
11256 fi
11257
11258 # --------
11259 # UNSORTED
11260 # --------
11261
11262 use_cxa_atexit=no
11263 if test x$enable___cxa_atexit = xyes || \
11264 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11265 if test x$host = x$target; then
11266 case $host in
11267 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11268 # keyed to flag_use_cxa_atexit
11269 *-*-mingw32*)
11270 use_cxa_atexit=yes
11271 ;;
11272 powerpc-ibm-aix*)
11273 use_cxa_atexit=yes
11274 ;;
11275 *)
11276 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11277 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11278 use_cxa_atexit=yes
11279 else
11280 echo "__cxa_atexit can't be enabled on this target"
11281 fi
11282
11283 ;;
11284 esac
11285 else
11286 # We can't check for __cxa_atexit when building a cross, so assume
11287 # it is available
11288 use_cxa_atexit=yes
11289 fi
11290 if test x$use_cxa_atexit = xyes; then
11291
11292 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11293
11294 fi
11295 fi
11296
11297 # Look for a file containing extra machine modes.
11298 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11299 extra_modes_file='$(srcdir)'/config/${extra_modes}
11300
11301
11302 cat >>confdefs.h <<_ACEOF
11303 #define EXTRA_MODES_FILE "config/$extra_modes"
11304 _ACEOF
11305
11306 fi
11307
11308 # Convert extra_options into a form suitable for Makefile use.
11309 extra_opt_files=
11310 all_opt_files=
11311 for f in $extra_options; do
11312 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11313 all_opt_files="$all_opt_files $srcdir/config/$f"
11314 done
11315
11316
11317 # auto-host.h is the file containing items generated by autoconf and is
11318 # the first file included by config.h.
11319 # If host=build, it is correct to have bconfig include auto-host.h
11320 # as well. If host!=build, we are in error and need to do more
11321 # work to find out the build config parameters.
11322 if test x$host = x$build
11323 then
11324 build_auto=auto-host.h
11325 else
11326 # We create a subdir, then run autoconf in the subdir.
11327 # To prevent recursion we set host and build for the new
11328 # invocation of configure to the build for this invocation
11329 # of configure.
11330 tempdir=build.$$
11331 rm -rf $tempdir
11332 mkdir $tempdir
11333 cd $tempdir
11334 case ${srcdir} in
11335 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11336 *) realsrcdir=../${srcdir};;
11337 esac
11338 # Clearing GMPINC is necessary to prevent host headers being
11339 # used by the build compiler. Defining GENERATOR_FILE stops
11340 # system.h from including gmp.h.
11341 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11342 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11343 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11344 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11345 ${realsrcdir}/configure \
11346 --enable-languages=${enable_languages-all} \
11347 --target=$target_alias --host=$build_alias --build=$build_alias
11348
11349 # We just finished tests for the build machine, so rename
11350 # the file auto-build.h in the gcc directory.
11351 mv auto-host.h ../auto-build.h
11352 cd ..
11353 rm -rf $tempdir
11354 build_auto=auto-build.h
11355 fi
11356
11357
11358 tm_file="${tm_file} defaults.h"
11359 tm_p_file="${tm_p_file} tm-preds.h"
11360 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11361 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11362 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11363 # put this back in temporarily.
11364 xm_file="auto-host.h ansidecl.h ${xm_file}"
11365
11366 # --------
11367 # UNSORTED
11368 # --------
11369
11370 # Compile in configure arguments.
11371 if test -f configargs.h ; then
11372 # Being re-configured.
11373 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11374 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11375 else
11376 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11377 fi
11378
11379 # Double all backslashes and backslash all quotes to turn
11380 # gcc_config_arguments into a C string.
11381 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11382 $gcc_config_arguments
11383 EOF
11384 gcc_config_arguments_str=`cat conftest.out`
11385 rm -f conftest.out
11386
11387 cat > configargs.h <<EOF
11388 /* Generated automatically. */
11389 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11390 static const char thread_model[] = "$thread_file";
11391
11392 static const struct {
11393 const char *name, *value;
11394 } configure_default_options[] = $configure_default_options;
11395 EOF
11396
11397 gcc_BASEVER=`cat $srcdir/BASE-VER`
11398 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11399 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11400 if test -f $srcdir/REVISION ; then
11401 gcc_REVISION=`cat $srcdir/REVISION`
11402 else
11403 gcc_REVISION=""
11404 fi
11405 cat > plugin-version.h <<EOF
11406 #include "configargs.h"
11407
11408 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11409 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11410 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11411 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11412
11413 static char basever[] = "$gcc_BASEVER";
11414 static char datestamp[] = "$gcc_DATESTAMP";
11415 static char devphase[] = "$gcc_DEVPHASE";
11416 static char revision[] = "$gcc_REVISION";
11417
11418 /* FIXME plugins: We should make the version information more precise.
11419 One way to do is to add a checksum. */
11420
11421 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11422 devphase, revision,
11423 configuration_arguments};
11424 EOF
11425
11426 # Internationalization
11427 # If we haven't got the data from the intl directory,
11428 # assume NLS is disabled.
11429 USE_NLS=no
11430 LIBINTL=
11431 LIBINTL_DEP=
11432 INCINTL=
11433 XGETTEXT=
11434 GMSGFMT=
11435 POSUB=
11436
11437 if test -f ../intl/config.intl; then
11438 . ../intl/config.intl
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11441 $as_echo_n "checking whether NLS is requested... " >&6; }
11442 if test x"$USE_NLS" != xyes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447 $as_echo "yes" >&6; }
11448
11449 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11450
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11453 $as_echo_n "checking for catalogs to be installed... " >&6; }
11454 # Look for .po and .gmo files in the source directory.
11455 CATALOGS=
11456 XLINGUAS=
11457 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11458 # If there aren't any .gmo files the shell will give us the
11459 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11460 # weeded out.
11461 case "$cat" in *\**)
11462 continue;;
11463 esac
11464 # The quadruple backslash is collapsed to a double backslash
11465 # by the backticks, then collapsed again by the double quotes,
11466 # leaving us with one backslash in the sed expression (right
11467 # before the dot that mustn't act as a wildcard).
11468 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11469 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11470 # The user is allowed to set LINGUAS to a list of languages to
11471 # install catalogs for. If it's empty that means "all of them."
11472 if test "x$LINGUAS" = x; then
11473 CATALOGS="$CATALOGS $cat"
11474 XLINGUAS="$XLINGUAS $lang"
11475 else
11476 case "$LINGUAS" in *$lang*)
11477 CATALOGS="$CATALOGS $cat"
11478 XLINGUAS="$XLINGUAS $lang"
11479 ;;
11480 esac
11481 fi
11482 done
11483 LINGUAS="$XLINGUAS"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11485 $as_echo "$LINGUAS" >&6; }
11486
11487
11488 DATADIRNAME=share
11489
11490 INSTOBJEXT=.mo
11491
11492 GENCAT=gencat
11493
11494 CATOBJEXT=.gmo
11495
11496 fi
11497
11498 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11499 # -liconv on the link line twice.
11500 case "$LIBINTL" in *$LIBICONV*)
11501 LIBICONV= ;;
11502 esac
11503
11504 # Check whether --enable-secureplt was given.
11505 if test "${enable_secureplt+set}" = set; then :
11506 enableval=$enable_secureplt;
11507 fi
11508
11509
11510 # Check whether --enable-leading-mingw64-underscores was given.
11511 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11512 enableval=$enable_leading_mingw64_underscores;
11513 fi
11514
11515 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11516
11517 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11518
11519 fi
11520
11521 # Check whether --enable-cld was given.
11522 if test "${enable_cld+set}" = set; then :
11523 enableval=$enable_cld;
11524 else
11525 enable_cld=no
11526 fi
11527
11528
11529 # Check whether --enable-frame-pointer was given.
11530 if test "${enable_frame_pointer+set}" = set; then :
11531 enableval=$enable_frame_pointer;
11532 else
11533
11534 case $target_os in
11535 linux* | darwin[8912]*)
11536 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11537 # DWARF2.
11538 enable_frame_pointer=no
11539 ;;
11540 *)
11541 enable_frame_pointer=yes
11542 ;;
11543 esac
11544
11545 fi
11546
11547
11548 # Windows32 Registry support for specifying GCC installation paths.
11549 # Check whether --enable-win32-registry was given.
11550 if test "${enable_win32_registry+set}" = set; then :
11551 enableval=$enable_win32_registry;
11552 fi
11553
11554
11555 case $host_os in
11556 win32 | pe | cygwin* | mingw32* | uwin*)
11557 if test "x$enable_win32_registry" != xno; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11559 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11560 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_func_search_save_LIBS=$LIBS
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char RegOpenKeyExA ();
11574 int
11575 main ()
11576 {
11577 return RegOpenKeyExA ();
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 for ac_lib in '' advapi32; do
11583 if test -z "$ac_lib"; then
11584 ac_res="none required"
11585 else
11586 ac_res=-l$ac_lib
11587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11588 fi
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_search_RegOpenKeyExA=$ac_res
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext
11594 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11595 break
11596 fi
11597 done
11598 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11599
11600 else
11601 ac_cv_search_RegOpenKeyExA=no
11602 fi
11603 rm conftest.$ac_ext
11604 LIBS=$ac_func_search_save_LIBS
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11607 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11608 ac_res=$ac_cv_search_RegOpenKeyExA
11609 if test "$ac_res" != no; then :
11610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11611
11612 else
11613 enable_win32_registry=no
11614 fi
11615
11616 fi
11617
11618 if test "x$enable_win32_registry" != xno; then
11619
11620 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11621
11622
11623 if test "x$enable_win32_registry" != xyes \
11624 && test "x$enable_win32_registry" != x; then
11625
11626 cat >>confdefs.h <<_ACEOF
11627 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11628 _ACEOF
11629
11630 fi
11631 fi
11632 ;;
11633 esac
11634
11635 # Get an absolute path to the GCC top-level source directory
11636 holddir=`${PWDCMD-pwd}`
11637 cd $srcdir
11638 topdir=`${PWDCMD-pwd}`
11639 cd $holddir
11640
11641 # Conditionalize the makefile for this host machine.
11642 xmake_file=
11643 for f in ${host_xmake_file}
11644 do
11645 if test -f ${srcdir}/config/$f
11646 then
11647 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11648 fi
11649 done
11650
11651 # Conditionalize the makefile for this target machine.
11652 tmake_file_=
11653 for f in ${tmake_file}
11654 do
11655 if test -f ${srcdir}/config/$f
11656 then
11657 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11658 fi
11659 done
11660 tmake_file="${tmake_file_}"
11661
11662 out_object_file=`basename $out_file .c`.o
11663 common_out_object_file=`basename $common_out_file .c`.o
11664
11665 tm_file_list="options.h"
11666 tm_include_list="options.h insn-constants.h"
11667 for f in $tm_file; do
11668 case $f in
11669 ./* )
11670 f=`echo $f | sed 's/^..//'`
11671 tm_file_list="${tm_file_list} $f"
11672 tm_include_list="${tm_include_list} $f"
11673 ;;
11674 defaults.h )
11675 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11676 tm_include_list="${tm_include_list} $f"
11677 ;;
11678 * )
11679 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11680 tm_include_list="${tm_include_list} config/$f"
11681 ;;
11682 esac
11683 done
11684
11685 tm_p_file_list=
11686 tm_p_include_list=
11687 for f in $tm_p_file; do
11688 case $f in
11689 tm-preds.h )
11690 tm_p_file_list="${tm_p_file_list} $f"
11691 tm_p_include_list="${tm_p_include_list} $f"
11692 ;;
11693 * )
11694 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11695 tm_p_include_list="${tm_p_include_list} config/$f"
11696 esac
11697 done
11698
11699 xm_file_list=
11700 xm_include_list=
11701 for f in $xm_file; do
11702 case $f in
11703 ansidecl.h )
11704 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11705 xm_include_list="${xm_include_list} $f"
11706 ;;
11707 auto-host.h )
11708 xm_file_list="${xm_file_list} $f"
11709 xm_include_list="${xm_include_list} $f"
11710 ;;
11711 * )
11712 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11713 xm_include_list="${xm_include_list} config/$f"
11714 ;;
11715 esac
11716 done
11717
11718 host_xm_file_list=
11719 host_xm_include_list=
11720 for f in $host_xm_file; do
11721 case $f in
11722 ansidecl.h )
11723 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11724 host_xm_include_list="${host_xm_include_list} $f"
11725 ;;
11726 auto-host.h )
11727 host_xm_file_list="${host_xm_file_list} $f"
11728 host_xm_include_list="${host_xm_include_list} $f"
11729 ;;
11730 * )
11731 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11732 host_xm_include_list="${host_xm_include_list} config/$f"
11733 ;;
11734 esac
11735 done
11736
11737 build_xm_file_list=
11738 for f in $build_xm_file; do
11739 case $f in
11740 ansidecl.h )
11741 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11742 build_xm_include_list="${build_xm_include_list} $f"
11743 ;;
11744 auto-build.h | auto-host.h )
11745 build_xm_file_list="${build_xm_file_list} $f"
11746 build_xm_include_list="${build_xm_include_list} $f"
11747 ;;
11748 * )
11749 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11750 build_xm_include_list="${build_xm_include_list} config/$f"
11751 ;;
11752 esac
11753 done
11754
11755 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11756 # cross-compiler which does not use the native headers and libraries.
11757 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11758 CROSS=
11759 ALL=all.internal
11760 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11761
11762 if test "x$with_build_sysroot" != x; then
11763 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11764 else
11765 # This value is used, even on a native system, because
11766 # CROSS_SYSTEM_HEADER_DIR is just
11767 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11768 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11769 fi
11770
11771 if test x$host != x$target
11772 then
11773 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11774 ALL=all.cross
11775 SYSTEM_HEADER_DIR=$build_system_header_dir
11776 case "$host","$target" in
11777 # Darwin crosses can use the host system's libraries and headers,
11778 # because of the fat library support. Of course, it must be the
11779 # same version of Darwin on both sides. Allow the user to
11780 # just say --target=foo-darwin without a version number to mean
11781 # "the version on this system".
11782 *-*-darwin*,*-*-darwin*)
11783 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11784 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11785 if test $hostos = $targetos -o $targetos = darwin ; then
11786 CROSS=
11787 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11788 with_headers=yes
11789 fi
11790 ;;
11791
11792 i?86-*-*,x86_64-*-* \
11793 | powerpc*-*-*,powerpc64*-*-*)
11794 CROSS="$CROSS -DNATIVE_CROSS" ;;
11795 esac
11796
11797 case $target in
11798 *-*-mingw*)
11799 if test "x$with_headers" = x; then
11800 with_headers=yes
11801 fi
11802 ;;
11803 *)
11804 ;;
11805 esac
11806 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11807 SYSTEM_HEADER_DIR=$build_system_header_dir
11808 fi
11809
11810 # If this is a cross-compiler that does not
11811 # have its own set of headers then define
11812 # inhibit_libc
11813
11814 # If this is using newlib, without having the headers available now,
11815 # then define inhibit_libc in LIBGCC2_CFLAGS.
11816 # This prevents libgcc2 from containing any code which requires libc
11817 # support.
11818 : ${inhibit_libc=false}
11819 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11820 test x$with_newlib = xyes ; } &&
11821 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11822 inhibit_libc=true
11823 fi
11824
11825
11826 # When building gcc with a cross-compiler, we need to adjust things so
11827 # that the generator programs are still built with the native compiler.
11828 # Also, we cannot run fixincludes.
11829
11830 # These are the normal (build=host) settings:
11831 CC_FOR_BUILD='$(CC)'
11832 CXX_FOR_BUILD='$(CXX)'
11833 BUILD_CFLAGS='$(ALL_CFLAGS)'
11834 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11835 BUILD_LDFLAGS='$(LDFLAGS)'
11836 STMP_FIXINC=stmp-fixinc
11837
11838 # And these apply if build != host, or we are generating coverage data
11839 if test x$build != x$host || test "x$coverage_flags" != x
11840 then
11841 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11842 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11843 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11844 fi
11845
11846 # Expand extra_headers to include complete path.
11847 # This substitutes for lots of t-* files.
11848 extra_headers_list=
11849 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11850 for file in ${extra_headers} ; do
11851 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11852 done
11853
11854 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11855 if test x"$use_gcc_tgmath" = xyes
11856 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11857 fi
11858
11859 # Define collect2 in Makefile.
11860 case $host_can_use_collect2 in
11861 no) collect2= ;;
11862 *) collect2='collect2$(exeext)' ;;
11863 esac
11864
11865
11866 # Add a definition of USE_COLLECT2 if system wants one.
11867 case $use_collect2 in
11868 no) use_collect2= ;;
11869 "") ;;
11870 *)
11871 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11872 xm_defines="${xm_defines} USE_COLLECT2"
11873 case $host_can_use_collect2 in
11874 no)
11875 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11876 ;;
11877 esac
11878 ;;
11879 esac
11880
11881
11882 cat >>confdefs.h <<_ACEOF
11883 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11884 _ACEOF
11885
11886
11887 # ---------------------------
11888 # Assembler & linker features
11889 # ---------------------------
11890
11891 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11892 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11893 # However when ld-new is first executed from the build tree, libtool will
11894 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11895 # to the build tree. While doing this we need to use the previous-stage
11896 # linker, or we have an infinite loop. The presence of a shell script as
11897 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11898 # the gcc/collect-ld script. So we need to know how libtool works, or
11899 # exec-tool will fail.
11900
11901
11902 case `pwd` in
11903 *\ * | *\ *)
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11905 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11906 esac
11907
11908
11909
11910 macro_version='2.2.7a'
11911 macro_revision='1.3134'
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 ltmain="$ac_aux_dir/ltmain.sh"
11926
11927 # Backslashify metacharacters that are still active within
11928 # double-quoted strings.
11929 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11930
11931 # Same as above, but do not quote variable references.
11932 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11933
11934 # Sed substitution to delay expansion of an escaped shell variable in a
11935 # double_quote_subst'ed string.
11936 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11937
11938 # Sed substitution to delay expansion of an escaped single quote.
11939 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11940
11941 # Sed substitution to avoid accidental globbing in evaled expressions
11942 no_glob_subst='s/\*/\\\*/g'
11943
11944 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11949 $as_echo_n "checking how to print strings... " >&6; }
11950 # Test print first, because it will be a builtin if present.
11951 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11952 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11953 ECHO='print -r --'
11954 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11955 ECHO='printf %s\n'
11956 else
11957 # Use this function as a fallback that always works.
11958 func_fallback_echo ()
11959 {
11960 eval 'cat <<_LTECHO_EOF
11961 $1
11962 _LTECHO_EOF'
11963 }
11964 ECHO='func_fallback_echo'
11965 fi
11966
11967 # func_echo_all arg...
11968 # Invoke $ECHO with all args, space-separated.
11969 func_echo_all ()
11970 {
11971 $ECHO ""
11972 }
11973
11974 case "$ECHO" in
11975 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11976 $as_echo "printf" >&6; } ;;
11977 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11978 $as_echo "print -r" >&6; } ;;
11979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11980 $as_echo "cat" >&6; } ;;
11981 esac
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11997 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11998 if test "${ac_cv_path_SED+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12002 for ac_i in 1 2 3 4 5 6 7; do
12003 ac_script="$ac_script$as_nl$ac_script"
12004 done
12005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12006 { ac_script=; unset ac_script;}
12007 if test -z "$SED"; then
12008 ac_path_SED_found=false
12009 # Loop through the user's path and test for each of PROGNAME-LIST
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12012 do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_prog in sed gsed; do
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12018 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12019 # Check for GNU ac_path_SED and select it if it is found.
12020 # Check for GNU $ac_path_SED
12021 case `"$ac_path_SED" --version 2>&1` in
12022 *GNU*)
12023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12024 *)
12025 ac_count=0
12026 $as_echo_n 0123456789 >"conftest.in"
12027 while :
12028 do
12029 cat "conftest.in" "conftest.in" >"conftest.tmp"
12030 mv "conftest.tmp" "conftest.in"
12031 cp "conftest.in" "conftest.nl"
12032 $as_echo '' >> "conftest.nl"
12033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12035 as_fn_arith $ac_count + 1 && ac_count=$as_val
12036 if test $ac_count -gt ${ac_path_SED_max-0}; then
12037 # Best one so far, save it but keep looking for a better one
12038 ac_cv_path_SED="$ac_path_SED"
12039 ac_path_SED_max=$ac_count
12040 fi
12041 # 10*(2^10) chars as input seems more than enough
12042 test $ac_count -gt 10 && break
12043 done
12044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12045 esac
12046
12047 $ac_path_SED_found && break 3
12048 done
12049 done
12050 done
12051 IFS=$as_save_IFS
12052 if test -z "$ac_cv_path_SED"; then
12053 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12054 fi
12055 else
12056 ac_cv_path_SED=$SED
12057 fi
12058
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12061 $as_echo "$ac_cv_path_SED" >&6; }
12062 SED="$ac_cv_path_SED"
12063 rm -f conftest.sed
12064
12065 test -z "$SED" && SED=sed
12066 Xsed="$SED -e 1s/^X//"
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12079 $as_echo_n "checking for fgrep... " >&6; }
12080 if test "${ac_cv_path_FGREP+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12084 then ac_cv_path_FGREP="$GREP -F"
12085 else
12086 if test -z "$FGREP"; then
12087 ac_path_FGREP_found=false
12088 # Loop through the user's path and test for each of PROGNAME-LIST
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12091 do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_prog in fgrep; do
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12097 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12098 # Check for GNU ac_path_FGREP and select it if it is found.
12099 # Check for GNU $ac_path_FGREP
12100 case `"$ac_path_FGREP" --version 2>&1` in
12101 *GNU*)
12102 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12103 *)
12104 ac_count=0
12105 $as_echo_n 0123456789 >"conftest.in"
12106 while :
12107 do
12108 cat "conftest.in" "conftest.in" >"conftest.tmp"
12109 mv "conftest.tmp" "conftest.in"
12110 cp "conftest.in" "conftest.nl"
12111 $as_echo 'FGREP' >> "conftest.nl"
12112 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12114 as_fn_arith $ac_count + 1 && ac_count=$as_val
12115 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12116 # Best one so far, save it but keep looking for a better one
12117 ac_cv_path_FGREP="$ac_path_FGREP"
12118 ac_path_FGREP_max=$ac_count
12119 fi
12120 # 10*(2^10) chars as input seems more than enough
12121 test $ac_count -gt 10 && break
12122 done
12123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12124 esac
12125
12126 $ac_path_FGREP_found && break 3
12127 done
12128 done
12129 done
12130 IFS=$as_save_IFS
12131 if test -z "$ac_cv_path_FGREP"; then
12132 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12133 fi
12134 else
12135 ac_cv_path_FGREP=$FGREP
12136 fi
12137
12138 fi
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12141 $as_echo "$ac_cv_path_FGREP" >&6; }
12142 FGREP="$ac_cv_path_FGREP"
12143
12144
12145 test -z "$GREP" && GREP=grep
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165 # Check whether --with-gnu-ld was given.
12166 if test "${with_gnu_ld+set}" = set; then :
12167 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12168 else
12169 with_gnu_ld=no
12170 fi
12171
12172 ac_prog=ld
12173 if test "$GCC" = yes; then
12174 # Check if gcc -print-prog-name=ld gives a path.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12176 $as_echo_n "checking for ld used by $CC... " >&6; }
12177 case $host in
12178 *-*-mingw*)
12179 # gcc leaves a trailing carriage return which upsets mingw
12180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12181 *)
12182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12183 esac
12184 case $ac_prog in
12185 # Accept absolute paths.
12186 [\\/]* | ?:[\\/]*)
12187 re_direlt='/[^/][^/]*/\.\./'
12188 # Canonicalize the pathname of ld
12189 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12190 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12191 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12192 done
12193 test -z "$LD" && LD="$ac_prog"
12194 ;;
12195 "")
12196 # If it fails, then pretend we aren't using GCC.
12197 ac_prog=ld
12198 ;;
12199 *)
12200 # If it is relative, then search for the first ld in PATH.
12201 with_gnu_ld=unknown
12202 ;;
12203 esac
12204 elif test "$with_gnu_ld" = yes; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12206 $as_echo_n "checking for GNU ld... " >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12209 $as_echo_n "checking for non-GNU ld... " >&6; }
12210 fi
12211 if test "${lt_cv_path_LD+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test -z "$LD"; then
12215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12216 for ac_dir in $PATH; do
12217 IFS="$lt_save_ifs"
12218 test -z "$ac_dir" && ac_dir=.
12219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12220 lt_cv_path_LD="$ac_dir/$ac_prog"
12221 # Check to see if the program is GNU ld. I'd rather use --version,
12222 # but apparently some variants of GNU ld only accept -v.
12223 # Break only if it was the GNU/non-GNU ld that we prefer.
12224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226 test "$with_gnu_ld" != no && break
12227 ;;
12228 *)
12229 test "$with_gnu_ld" != yes && break
12230 ;;
12231 esac
12232 fi
12233 done
12234 IFS="$lt_save_ifs"
12235 else
12236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12237 fi
12238 fi
12239
12240 LD="$lt_cv_path_LD"
12241 if test -n "$LD"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12243 $as_echo "$LD" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12247 fi
12248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12251 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12255 case `$LD -v 2>&1 </dev/null` in
12256 *GNU* | *'with BFD'*)
12257 lt_cv_prog_gnu_ld=yes
12258 ;;
12259 *)
12260 lt_cv_prog_gnu_ld=no
12261 ;;
12262 esac
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12265 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12266 with_gnu_ld=$lt_cv_prog_gnu_ld
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12277 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12278 if test "${lt_cv_path_NM+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -n "$NM"; then
12282 # Let the user override the test.
12283 lt_cv_path_NM="$NM"
12284 else
12285 lt_nm_to_check="${ac_tool_prefix}nm"
12286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12287 lt_nm_to_check="$lt_nm_to_check nm"
12288 fi
12289 for lt_tmp_nm in $lt_nm_to_check; do
12290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12291 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12292 IFS="$lt_save_ifs"
12293 test -z "$ac_dir" && ac_dir=.
12294 tmp_nm="$ac_dir/$lt_tmp_nm"
12295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12296 # Check to see if the nm accepts a BSD-compat flag.
12297 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12298 # nm: unknown option "B" ignored
12299 # Tru64's nm complains that /dev/null is an invalid object file
12300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12301 */dev/null* | *'Invalid file or object type'*)
12302 lt_cv_path_NM="$tmp_nm -B"
12303 break
12304 ;;
12305 *)
12306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12307 */dev/null*)
12308 lt_cv_path_NM="$tmp_nm -p"
12309 break
12310 ;;
12311 *)
12312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12313 continue # so that we can try to find one that supports BSD flags
12314 ;;
12315 esac
12316 ;;
12317 esac
12318 fi
12319 done
12320 IFS="$lt_save_ifs"
12321 done
12322 : ${lt_cv_path_NM=no}
12323 fi
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12326 $as_echo "$lt_cv_path_NM" >&6; }
12327 if test "$lt_cv_path_NM" != "no"; then
12328 NM="$lt_cv_path_NM"
12329 else
12330 # Didn't find any BSD compatible name lister, look for dumpbin.
12331 if test -n "$DUMPBIN"; then :
12332 # Let the user override the test.
12333 else
12334 if test -n "$ac_tool_prefix"; then
12335 for ac_prog in dumpbin "link -dump"
12336 do
12337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$DUMPBIN"; then
12345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 DUMPBIN=$ac_cv_prog_DUMPBIN
12365 if test -n "$DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12367 $as_echo "$DUMPBIN" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 test -n "$DUMPBIN" && break
12375 done
12376 fi
12377 if test -z "$DUMPBIN"; then
12378 ac_ct_DUMPBIN=$DUMPBIN
12379 for ac_prog in dumpbin "link -dump"
12380 do
12381 # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy $ac_prog; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 if test -n "$ac_ct_DUMPBIN"; then
12389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12393 do
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12401 fi
12402 done
12403 done
12404 IFS=$as_save_IFS
12405
12406 fi
12407 fi
12408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12409 if test -n "$ac_ct_DUMPBIN"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12411 $as_echo "$ac_ct_DUMPBIN" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416
12417
12418 test -n "$ac_ct_DUMPBIN" && break
12419 done
12420
12421 if test "x$ac_ct_DUMPBIN" = x; then
12422 DUMPBIN=":"
12423 else
12424 case $cross_compiling:$ac_tool_warned in
12425 yes:)
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12428 ac_tool_warned=yes ;;
12429 esac
12430 DUMPBIN=$ac_ct_DUMPBIN
12431 fi
12432 fi
12433
12434 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12435 *COFF*)
12436 DUMPBIN="$DUMPBIN -symbols"
12437 ;;
12438 *)
12439 DUMPBIN=:
12440 ;;
12441 esac
12442 fi
12443
12444 if test "$DUMPBIN" != ":"; then
12445 NM="$DUMPBIN"
12446 fi
12447 fi
12448 test -z "$NM" && NM=nm
12449
12450
12451
12452
12453
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12457 if test "${lt_cv_nm_interface+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 lt_cv_nm_interface="BSD nm"
12461 echo "int some_variable = 0;" > conftest.$ac_ext
12462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12463 (eval "$ac_compile" 2>conftest.err)
12464 cat conftest.err >&5
12465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12467 cat conftest.err >&5
12468 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12469 cat conftest.out >&5
12470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12471 lt_cv_nm_interface="MS dumpbin"
12472 fi
12473 rm -f conftest*
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12476 $as_echo "$lt_cv_nm_interface" >&6; }
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12479 $as_echo_n "checking whether ln -s works... " >&6; }
12480 LN_S=$as_ln_s
12481 if test "$LN_S" = "ln -s"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12486 $as_echo "no, using $LN_S" >&6; }
12487 fi
12488
12489 # find the maximum length of command line arguments
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 i=0
12496 teststring="ABCD"
12497
12498 case $build_os in
12499 msdosdjgpp*)
12500 # On DJGPP, this test can blow up pretty badly due to problems in libc
12501 # (any single argument exceeding 2000 bytes causes a buffer overrun
12502 # during glob expansion). Even if it were fixed, the result of this
12503 # check would be larger than it should be.
12504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12505 ;;
12506
12507 gnu*)
12508 # Under GNU Hurd, this test is not required because there is
12509 # no limit to the length of command line arguments.
12510 # Libtool will interpret -1 as no limit whatsoever
12511 lt_cv_sys_max_cmd_len=-1;
12512 ;;
12513
12514 cygwin* | mingw* | cegcc*)
12515 # On Win9x/ME, this test blows up -- it succeeds, but takes
12516 # about 5 minutes as the teststring grows exponentially.
12517 # Worse, since 9x/ME are not pre-emptively multitasking,
12518 # you end up with a "frozen" computer, even though with patience
12519 # the test eventually succeeds (with a max line length of 256k).
12520 # Instead, let's just punt: use the minimum linelength reported by
12521 # all of the supported platforms: 8192 (on NT/2K/XP).
12522 lt_cv_sys_max_cmd_len=8192;
12523 ;;
12524
12525 mint*)
12526 # On MiNT this can take a long time and run out of memory.
12527 lt_cv_sys_max_cmd_len=8192;
12528 ;;
12529
12530 amigaos*)
12531 # On AmigaOS with pdksh, this test takes hours, literally.
12532 # So we just punt and use a minimum line length of 8192.
12533 lt_cv_sys_max_cmd_len=8192;
12534 ;;
12535
12536 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12537 # This has been around since 386BSD, at least. Likely further.
12538 if test -x /sbin/sysctl; then
12539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12540 elif test -x /usr/sbin/sysctl; then
12541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12542 else
12543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12544 fi
12545 # And add a safety zone
12546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12548 ;;
12549
12550 interix*)
12551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12552 lt_cv_sys_max_cmd_len=196608
12553 ;;
12554
12555 osf*)
12556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12558 # nice to cause kernel panics so lets avoid the loop below.
12559 # First set a reasonable default.
12560 lt_cv_sys_max_cmd_len=16384
12561 #
12562 if test -x /sbin/sysconfig; then
12563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12564 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12565 esac
12566 fi
12567 ;;
12568 sco3.2v5*)
12569 lt_cv_sys_max_cmd_len=102400
12570 ;;
12571 sysv5* | sco5v6* | sysv4.2uw2*)
12572 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12573 if test -n "$kargmax"; then
12574 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12575 else
12576 lt_cv_sys_max_cmd_len=32768
12577 fi
12578 ;;
12579 *)
12580 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12581 if test -n "$lt_cv_sys_max_cmd_len"; then
12582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12584 else
12585 # Make teststring a little bigger before we do anything with it.
12586 # a 1K string should be a reasonable start.
12587 for i in 1 2 3 4 5 6 7 8 ; do
12588 teststring=$teststring$teststring
12589 done
12590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12591 # If test is not a shell built-in, we'll probably end up computing a
12592 # maximum length that is only half of the actual maximum length, but
12593 # we can't tell.
12594 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12595 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12596 test $i != 17 # 1/2 MB should be enough
12597 do
12598 i=`expr $i + 1`
12599 teststring=$teststring$teststring
12600 done
12601 # Only check the string length outside the loop.
12602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12603 teststring=
12604 # Add a significant safety factor because C++ compilers can tack on
12605 # massive amounts of additional arguments before passing them to the
12606 # linker. It appears as though 1/2 is a usable value.
12607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12608 fi
12609 ;;
12610 esac
12611
12612 fi
12613
12614 if test -n $lt_cv_sys_max_cmd_len ; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12616 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12619 $as_echo "none" >&6; }
12620 fi
12621 max_cmd_len=$lt_cv_sys_max_cmd_len
12622
12623
12624
12625
12626
12627
12628 : ${CP="cp -f"}
12629 : ${MV="mv -f"}
12630 : ${RM="rm -f"}
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12633 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12634 # Try some XSI features
12635 xsi_shell=no
12636 ( _lt_dummy="a/b/c"
12637 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12638 = c,a/b,, \
12639 && eval 'test $(( 1 + 1 )) -eq 2 \
12640 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12641 && xsi_shell=yes
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12643 $as_echo "$xsi_shell" >&6; }
12644
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12647 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12648 lt_shell_append=no
12649 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12650 >/dev/null 2>&1 \
12651 && lt_shell_append=yes
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12653 $as_echo "$lt_shell_append" >&6; }
12654
12655
12656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12657 lt_unset=unset
12658 else
12659 lt_unset=false
12660 fi
12661
12662
12663
12664
12665
12666 # test EBCDIC or ASCII
12667 case `echo X|tr X '\101'` in
12668 A) # ASCII based system
12669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12670 lt_SP2NL='tr \040 \012'
12671 lt_NL2SP='tr \015\012 \040\040'
12672 ;;
12673 *) # EBCDIC based system
12674 lt_SP2NL='tr \100 \n'
12675 lt_NL2SP='tr \r\n \100\100'
12676 ;;
12677 esac
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12688 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12689 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 lt_cv_ld_reload_flag='-r'
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12696 reload_flag=$lt_cv_ld_reload_flag
12697 case $reload_flag in
12698 "" | " "*) ;;
12699 *) reload_flag=" $reload_flag" ;;
12700 esac
12701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12702 case $host_os in
12703 darwin*)
12704 if test "$GCC" = yes; then
12705 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12706 else
12707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12708 fi
12709 ;;
12710 esac
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720 if test -n "$ac_tool_prefix"; then
12721 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12722 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test -n "$OBJDUMP"; then
12729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12730 else
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12733 do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742 done
12743 done
12744 IFS=$as_save_IFS
12745
12746 fi
12747 fi
12748 OBJDUMP=$ac_cv_prog_OBJDUMP
12749 if test -n "$OBJDUMP"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12751 $as_echo "$OBJDUMP" >&6; }
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12755 fi
12756
12757
12758 fi
12759 if test -z "$ac_cv_prog_OBJDUMP"; then
12760 ac_ct_OBJDUMP=$OBJDUMP
12761 # Extract the first word of "objdump", so it can be a program name with args.
12762 set dummy objdump; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -n "$ac_ct_OBJDUMP"; then
12769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12781 fi
12782 done
12783 done
12784 IFS=$as_save_IFS
12785
12786 fi
12787 fi
12788 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12789 if test -n "$ac_ct_OBJDUMP"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12791 $as_echo "$ac_ct_OBJDUMP" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797 if test "x$ac_ct_OBJDUMP" = x; then
12798 OBJDUMP="false"
12799 else
12800 case $cross_compiling:$ac_tool_warned in
12801 yes:)
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12804 ac_tool_warned=yes ;;
12805 esac
12806 OBJDUMP=$ac_ct_OBJDUMP
12807 fi
12808 else
12809 OBJDUMP="$ac_cv_prog_OBJDUMP"
12810 fi
12811
12812 test -z "$OBJDUMP" && OBJDUMP=objdump
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12823 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12824 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 lt_cv_file_magic_cmd='$MAGIC_CMD'
12828 lt_cv_file_magic_test_file=
12829 lt_cv_deplibs_check_method='unknown'
12830 # Need to set the preceding variable on all platforms that support
12831 # interlibrary dependencies.
12832 # 'none' -- dependencies not supported.
12833 # `unknown' -- same as none, but documents that we really don't know.
12834 # 'pass_all' -- all dependencies passed with no checks.
12835 # 'test_compile' -- check by making test program.
12836 # 'file_magic [[regex]]' -- check by looking for files in library path
12837 # which responds to the $file_magic_cmd with a given extended regex.
12838 # If you have `file' or equivalent on your system and you're not sure
12839 # whether `pass_all' will *always* work, you probably want this one.
12840
12841 case $host_os in
12842 aix[4-9]*)
12843 lt_cv_deplibs_check_method=pass_all
12844 ;;
12845
12846 beos*)
12847 lt_cv_deplibs_check_method=pass_all
12848 ;;
12849
12850 bsdi[45]*)
12851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12852 lt_cv_file_magic_cmd='/usr/bin/file -L'
12853 lt_cv_file_magic_test_file=/shlib/libc.so
12854 ;;
12855
12856 cygwin*)
12857 # func_win32_libid is a shell function defined in ltmain.sh
12858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12859 lt_cv_file_magic_cmd='func_win32_libid'
12860 ;;
12861
12862 mingw* | pw32*)
12863 # Base MSYS/MinGW do not provide the 'file' command needed by
12864 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12865 # unless we find 'file', for example because we are cross-compiling.
12866 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12867 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12869 lt_cv_file_magic_cmd='func_win32_libid'
12870 else
12871 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12872 lt_cv_file_magic_cmd='$OBJDUMP -f'
12873 fi
12874 ;;
12875
12876 cegcc*)
12877 # use the weaker test based on 'objdump'. See mingw*.
12878 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12879 lt_cv_file_magic_cmd='$OBJDUMP -f'
12880 ;;
12881
12882 darwin* | rhapsody*)
12883 lt_cv_deplibs_check_method=pass_all
12884 ;;
12885
12886 freebsd* | dragonfly*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12888 case $host_cpu in
12889 i*86 )
12890 # Not sure whether the presence of OpenBSD here was a mistake.
12891 # Let's accept both of them until this is cleared up.
12892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12893 lt_cv_file_magic_cmd=/usr/bin/file
12894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12895 ;;
12896 esac
12897 else
12898 lt_cv_deplibs_check_method=pass_all
12899 fi
12900 ;;
12901
12902 gnu*)
12903 lt_cv_deplibs_check_method=pass_all
12904 ;;
12905
12906 haiku*)
12907 lt_cv_deplibs_check_method=pass_all
12908 ;;
12909
12910 hpux10.20* | hpux11*)
12911 lt_cv_file_magic_cmd=/usr/bin/file
12912 case $host_cpu in
12913 ia64*)
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12916 ;;
12917 hppa*64*)
12918 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]'
12919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12920 ;;
12921 *)
12922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12924 ;;
12925 esac
12926 ;;
12927
12928 interix[3-9]*)
12929 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12931 ;;
12932
12933 irix5* | irix6* | nonstopux*)
12934 case $LD in
12935 *-32|*"-32 ") libmagic=32-bit;;
12936 *-n32|*"-n32 ") libmagic=N32;;
12937 *-64|*"-64 ") libmagic=64-bit;;
12938 *) libmagic=never-match;;
12939 esac
12940 lt_cv_deplibs_check_method=pass_all
12941 ;;
12942
12943 # This must be Linux ELF.
12944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12945 lt_cv_deplibs_check_method=pass_all
12946 ;;
12947
12948 netbsd*)
12949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12951 else
12952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12953 fi
12954 ;;
12955
12956 newos6*)
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12958 lt_cv_file_magic_cmd=/usr/bin/file
12959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12960 ;;
12961
12962 *nto* | *qnx*)
12963 lt_cv_deplibs_check_method=pass_all
12964 ;;
12965
12966 openbsd*)
12967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12969 else
12970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12971 fi
12972 ;;
12973
12974 osf3* | osf4* | osf5*)
12975 lt_cv_deplibs_check_method=pass_all
12976 ;;
12977
12978 rdos*)
12979 lt_cv_deplibs_check_method=pass_all
12980 ;;
12981
12982 solaris*)
12983 lt_cv_deplibs_check_method=pass_all
12984 ;;
12985
12986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
12989
12990 sysv4 | sysv4.3*)
12991 case $host_vendor in
12992 motorola)
12993 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]'
12994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12995 ;;
12996 ncr)
12997 lt_cv_deplibs_check_method=pass_all
12998 ;;
12999 sequent)
13000 lt_cv_file_magic_cmd='/bin/file'
13001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13002 ;;
13003 sni)
13004 lt_cv_file_magic_cmd='/bin/file'
13005 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13006 lt_cv_file_magic_test_file=/lib/libc.so
13007 ;;
13008 siemens)
13009 lt_cv_deplibs_check_method=pass_all
13010 ;;
13011 pc)
13012 lt_cv_deplibs_check_method=pass_all
13013 ;;
13014 esac
13015 ;;
13016
13017 tpf*)
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020 esac
13021
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13024 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13025 file_magic_cmd=$lt_cv_file_magic_cmd
13026 deplibs_check_method=$lt_cv_deplibs_check_method
13027 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040 if test -n "$ac_tool_prefix"; then
13041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13042 set dummy ${ac_tool_prefix}ar; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_AR+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test -n "$AR"; then
13049 ac_cv_prog_AR="$AR" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_prog_AR="${ac_tool_prefix}ar"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13061 fi
13062 done
13063 done
13064 IFS=$as_save_IFS
13065
13066 fi
13067 fi
13068 AR=$ac_cv_prog_AR
13069 if test -n "$AR"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13071 $as_echo "$AR" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077
13078 fi
13079 if test -z "$ac_cv_prog_AR"; then
13080 ac_ct_AR=$AR
13081 # Extract the first word of "ar", so it can be a program name with args.
13082 set dummy ar; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 if test -n "$ac_ct_AR"; then
13089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_ac_ct_AR="ar"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102 done
13103 done
13104 IFS=$as_save_IFS
13105
13106 fi
13107 fi
13108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13109 if test -n "$ac_ct_AR"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13111 $as_echo "$ac_ct_AR" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117 if test "x$ac_ct_AR" = x; then
13118 AR="false"
13119 else
13120 case $cross_compiling:$ac_tool_warned in
13121 yes:)
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13124 ac_tool_warned=yes ;;
13125 esac
13126 AR=$ac_ct_AR
13127 fi
13128 else
13129 AR="$ac_cv_prog_AR"
13130 fi
13131
13132 test -z "$AR" && AR=ar
13133 test -z "$AR_FLAGS" && AR_FLAGS=cru
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145 if test -n "$ac_tool_prefix"; then
13146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13147 set dummy ${ac_tool_prefix}strip; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if test "${ac_cv_prog_STRIP+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test -n "$STRIP"; then
13154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13155 else
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167 done
13168 done
13169 IFS=$as_save_IFS
13170
13171 fi
13172 fi
13173 STRIP=$ac_cv_prog_STRIP
13174 if test -n "$STRIP"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13176 $as_echo "$STRIP" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 fi
13181
13182
13183 fi
13184 if test -z "$ac_cv_prog_STRIP"; then
13185 ac_ct_STRIP=$STRIP
13186 # Extract the first word of "strip", so it can be a program name with args.
13187 set dummy strip; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$ac_ct_STRIP"; then
13194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13198 do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_ac_ct_STRIP="strip"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13206 fi
13207 done
13208 done
13209 IFS=$as_save_IFS
13210
13211 fi
13212 fi
13213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13214 if test -n "$ac_ct_STRIP"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13216 $as_echo "$ac_ct_STRIP" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222 if test "x$ac_ct_STRIP" = x; then
13223 STRIP=":"
13224 else
13225 case $cross_compiling:$ac_tool_warned in
13226 yes:)
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13229 ac_tool_warned=yes ;;
13230 esac
13231 STRIP=$ac_ct_STRIP
13232 fi
13233 else
13234 STRIP="$ac_cv_prog_STRIP"
13235 fi
13236
13237 test -z "$STRIP" && STRIP=:
13238
13239
13240
13241
13242
13243
13244 if test -n "$ac_tool_prefix"; then
13245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$RANLIB"; then
13253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268 IFS=$as_save_IFS
13269
13270 fi
13271 fi
13272 RANLIB=$ac_cv_prog_RANLIB
13273 if test -n "$RANLIB"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13275 $as_echo "$RANLIB" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 fi
13280
13281
13282 fi
13283 if test -z "$ac_cv_prog_RANLIB"; then
13284 ac_ct_RANLIB=$RANLIB
13285 # Extract the first word of "ranlib", so it can be a program name with args.
13286 set dummy ranlib; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$ac_ct_RANLIB"; then
13293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_ac_ct_RANLIB="ranlib"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13313 if test -n "$ac_ct_RANLIB"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13315 $as_echo "$ac_ct_RANLIB" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320
13321 if test "x$ac_ct_RANLIB" = x; then
13322 RANLIB=":"
13323 else
13324 case $cross_compiling:$ac_tool_warned in
13325 yes:)
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328 ac_tool_warned=yes ;;
13329 esac
13330 RANLIB=$ac_ct_RANLIB
13331 fi
13332 else
13333 RANLIB="$ac_cv_prog_RANLIB"
13334 fi
13335
13336 test -z "$RANLIB" && RANLIB=:
13337
13338
13339
13340
13341
13342
13343 # Determine commands to create old-style static archives.
13344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13345 old_postinstall_cmds='chmod 644 $oldlib'
13346 old_postuninstall_cmds=
13347
13348 if test -n "$RANLIB"; then
13349 case $host_os in
13350 openbsd*)
13351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13352 ;;
13353 *)
13354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13355 ;;
13356 esac
13357 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13358 fi
13359
13360 case $host_os in
13361 darwin*)
13362 lock_old_archive_extraction=yes ;;
13363 *)
13364 lock_old_archive_extraction=no ;;
13365 esac
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405 # If no C compiler was specified, use CC.
13406 LTCC=${LTCC-"$CC"}
13407
13408 # If no C compiler flags were specified, use CFLAGS.
13409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13410
13411 # Allow CC to be a program name with arguments.
13412 compiler=$CC
13413
13414
13415 # Check for command to grab the raw symbol name followed by C symbol from nm.
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421
13422 # These are sane defaults that work on at least a few old systems.
13423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13424
13425 # Character class describing NM global symbol codes.
13426 symcode='[BCDEGRST]'
13427
13428 # Regexp to match symbols that can be accessed directly from C.
13429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13430
13431 # Define system-specific variables.
13432 case $host_os in
13433 aix*)
13434 symcode='[BCDT]'
13435 ;;
13436 cygwin* | mingw* | pw32* | cegcc*)
13437 symcode='[ABCDGISTW]'
13438 ;;
13439 hpux*)
13440 if test "$host_cpu" = ia64; then
13441 symcode='[ABCDEGRST]'
13442 fi
13443 ;;
13444 irix* | nonstopux*)
13445 symcode='[BCDEGRST]'
13446 ;;
13447 osf*)
13448 symcode='[BCDEGQRST]'
13449 ;;
13450 solaris*)
13451 symcode='[BDRT]'
13452 ;;
13453 sco3.2v5*)
13454 symcode='[DT]'
13455 ;;
13456 sysv4.2uw2*)
13457 symcode='[DT]'
13458 ;;
13459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13460 symcode='[ABDT]'
13461 ;;
13462 sysv4)
13463 symcode='[DFNSTU]'
13464 ;;
13465 esac
13466
13467 # If we're using GNU nm, then use its standard symbol codes.
13468 case `$NM -V 2>&1` in
13469 *GNU* | *'with BFD'*)
13470 symcode='[ABCDGIRSTW]' ;;
13471 esac
13472
13473 # Transform an extracted symbol line into a proper C declaration.
13474 # Some systems (esp. on ia64) link data and code symbols differently,
13475 # so use this general approach.
13476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13477
13478 # Transform an extracted symbol line into symbol name and symbol address
13479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13480 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'"
13481
13482 # Handle CRLF in mingw tool chain
13483 opt_cr=
13484 case $build_os in
13485 mingw*)
13486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13487 ;;
13488 esac
13489
13490 # Try without a prefix underscore, then with it.
13491 for ac_symprfx in "" "_"; do
13492
13493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13494 symxfrm="\\1 $ac_symprfx\\2 \\2"
13495
13496 # Write the raw and C identifiers.
13497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13498 # Fake it for dumpbin and say T for any non-static function
13499 # and D for any global variable.
13500 # Also find C++ and __fastcall symbols from MSVC++,
13501 # which start with @ or ?.
13502 lt_cv_sys_global_symbol_pipe="$AWK '"\
13503 " {last_section=section; section=\$ 3};"\
13504 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13505 " \$ 0!~/External *\|/{next};"\
13506 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13507 " {if(hide[section]) next};"\
13508 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13509 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13510 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13511 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13512 " ' prfx=^$ac_symprfx"
13513 else
13514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13515 fi
13516
13517 # Check to see that the pipe works correctly.
13518 pipe_works=no
13519
13520 rm -f conftest*
13521 cat > conftest.$ac_ext <<_LT_EOF
13522 #ifdef __cplusplus
13523 extern "C" {
13524 #endif
13525 char nm_test_var;
13526 void nm_test_func(void);
13527 void nm_test_func(void){}
13528 #ifdef __cplusplus
13529 }
13530 #endif
13531 int main(){nm_test_var='a';nm_test_func();return(0);}
13532 _LT_EOF
13533
13534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13535 (eval $ac_compile) 2>&5
13536 ac_status=$?
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 # Now try to grab the symbols.
13540 nlist=conftest.nm
13541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13543 ac_status=$?
13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545 test $ac_status = 0; } && test -s "$nlist"; then
13546 # Try sorting and uniquifying the output.
13547 if sort "$nlist" | uniq > "$nlist"T; then
13548 mv -f "$nlist"T "$nlist"
13549 else
13550 rm -f "$nlist"T
13551 fi
13552
13553 # Make sure that we snagged all the symbols we need.
13554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13556 cat <<_LT_EOF > conftest.$ac_ext
13557 #ifdef __cplusplus
13558 extern "C" {
13559 #endif
13560
13561 _LT_EOF
13562 # Now generate the symbol file.
13563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13564
13565 cat <<_LT_EOF >> conftest.$ac_ext
13566
13567 /* The mapping between symbol names and symbols. */
13568 const struct {
13569 const char *name;
13570 void *address;
13571 }
13572 lt__PROGRAM__LTX_preloaded_symbols[] =
13573 {
13574 { "@PROGRAM@", (void *) 0 },
13575 _LT_EOF
13576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13577 cat <<\_LT_EOF >> conftest.$ac_ext
13578 {0, (void *) 0}
13579 };
13580
13581 /* This works around a problem in FreeBSD linker */
13582 #ifdef FREEBSD_WORKAROUND
13583 static const void *lt_preloaded_setup() {
13584 return lt__PROGRAM__LTX_preloaded_symbols;
13585 }
13586 #endif
13587
13588 #ifdef __cplusplus
13589 }
13590 #endif
13591 _LT_EOF
13592 # Now try linking the two files.
13593 mv conftest.$ac_objext conftstm.$ac_objext
13594 lt_save_LIBS="$LIBS"
13595 lt_save_CFLAGS="$CFLAGS"
13596 LIBS="conftstm.$ac_objext"
13597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13599 (eval $ac_link) 2>&5
13600 ac_status=$?
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13603 pipe_works=yes
13604 fi
13605 LIBS="$lt_save_LIBS"
13606 CFLAGS="$lt_save_CFLAGS"
13607 else
13608 echo "cannot find nm_test_func in $nlist" >&5
13609 fi
13610 else
13611 echo "cannot find nm_test_var in $nlist" >&5
13612 fi
13613 else
13614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13615 fi
13616 else
13617 echo "$progname: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 fi
13620 rm -rf conftest* conftst*
13621
13622 # Do not use the global_symbol_pipe unless it works.
13623 if test "$pipe_works" = yes; then
13624 break
13625 else
13626 lt_cv_sys_global_symbol_pipe=
13627 fi
13628 done
13629
13630 fi
13631
13632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13633 lt_cv_sys_global_symbol_to_cdecl=
13634 fi
13635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13637 $as_echo "failed" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13640 $as_echo "ok" >&6; }
13641 fi
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664 # Check whether --enable-libtool-lock was given.
13665 if test "${enable_libtool_lock+set}" = set; then :
13666 enableval=$enable_libtool_lock;
13667 fi
13668
13669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13670
13671 # Some flags need to be propagated to the compiler or linker for good
13672 # libtool support.
13673 case $host in
13674 ia64-*-hpux*)
13675 # Find out which ABI we are using.
13676 echo 'int i;' > conftest.$ac_ext
13677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13678 (eval $ac_compile) 2>&5
13679 ac_status=$?
13680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13681 test $ac_status = 0; }; then
13682 case `/usr/bin/file conftest.$ac_objext` in
13683 *ELF-32*)
13684 HPUX_IA64_MODE="32"
13685 ;;
13686 *ELF-64*)
13687 HPUX_IA64_MODE="64"
13688 ;;
13689 esac
13690 fi
13691 rm -rf conftest*
13692 ;;
13693 *-*-irix6*)
13694 # Find out which ABI we are using.
13695 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13697 (eval $ac_compile) 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; }; then
13701 if test "$lt_cv_prog_gnu_ld" = yes; then
13702 case `/usr/bin/file conftest.$ac_objext` in
13703 *32-bit*)
13704 LD="${LD-ld} -melf32bsmip"
13705 ;;
13706 *N32*)
13707 LD="${LD-ld} -melf32bmipn32"
13708 ;;
13709 *64-bit*)
13710 LD="${LD-ld} -melf64bmip"
13711 ;;
13712 esac
13713 else
13714 case `/usr/bin/file conftest.$ac_objext` in
13715 *32-bit*)
13716 LD="${LD-ld} -32"
13717 ;;
13718 *N32*)
13719 LD="${LD-ld} -n32"
13720 ;;
13721 *64-bit*)
13722 LD="${LD-ld} -64"
13723 ;;
13724 esac
13725 fi
13726 fi
13727 rm -rf conftest*
13728 ;;
13729
13730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13732 # Find out which ABI we are using.
13733 echo 'int i;' > conftest.$ac_ext
13734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735 (eval $ac_compile) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; then
13739 case `/usr/bin/file conftest.o` in
13740 *32-bit*)
13741 case $host in
13742 x86_64-*kfreebsd*-gnu)
13743 LD="${LD-ld} -m elf_i386_fbsd"
13744 ;;
13745 x86_64-*linux*)
13746 case `/usr/bin/file conftest.o` in
13747 *x86-64*)
13748 LD="${LD-ld} -m elf32_x86_64"
13749 ;;
13750 *)
13751 LD="${LD-ld} -m elf_i386"
13752 ;;
13753 esac
13754 ;;
13755 powerpc64le-*linux*)
13756 LD="${LD-ld} -m elf32lppclinux"
13757 ;;
13758 powerpc64-*linux*)
13759 LD="${LD-ld} -m elf32ppclinux"
13760 ;;
13761 s390x-*linux*)
13762 LD="${LD-ld} -m elf_s390"
13763 ;;
13764 sparc64-*linux*)
13765 LD="${LD-ld} -m elf32_sparc"
13766 ;;
13767 esac
13768 ;;
13769 *64-bit*)
13770 case $host in
13771 x86_64-*kfreebsd*-gnu)
13772 LD="${LD-ld} -m elf_x86_64_fbsd"
13773 ;;
13774 x86_64-*linux*)
13775 LD="${LD-ld} -m elf_x86_64"
13776 ;;
13777 powerpcle-*linux*)
13778 LD="${LD-ld} -m elf64lppc"
13779 ;;
13780 powerpc-*linux*)
13781 LD="${LD-ld} -m elf64ppc"
13782 ;;
13783 s390*-*linux*|s390*-*tpf*)
13784 LD="${LD-ld} -m elf64_s390"
13785 ;;
13786 sparc*-*linux*)
13787 LD="${LD-ld} -m elf64_sparc"
13788 ;;
13789 esac
13790 ;;
13791 esac
13792 fi
13793 rm -rf conftest*
13794 ;;
13795
13796 *-*-sco3.2v5*)
13797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13798 SAVE_CFLAGS="$CFLAGS"
13799 CFLAGS="$CFLAGS -belf"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13801 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813
13814 int
13815 main ()
13816 {
13817
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 lt_cv_cc_needs_belf=yes
13824 else
13825 lt_cv_cc_needs_belf=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 ac_ext=c
13830 ac_cpp='$CPP $CPPFLAGS'
13831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13834
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13837 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13838 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13840 CFLAGS="$SAVE_CFLAGS"
13841 fi
13842 ;;
13843 sparc*-*solaris*)
13844 # Find out which ABI we are using.
13845 echo 'int i;' > conftest.$ac_ext
13846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13847 (eval $ac_compile) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13850 test $ac_status = 0; }; then
13851 case `/usr/bin/file conftest.o` in
13852 *64-bit*)
13853 case $lt_cv_prog_gnu_ld in
13854 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13855 *)
13856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13857 LD="${LD-ld} -64"
13858 fi
13859 ;;
13860 esac
13861 ;;
13862 esac
13863 fi
13864 rm -rf conftest*
13865 ;;
13866 esac
13867
13868 need_locks="$enable_libtool_lock"
13869
13870
13871 case $host_os in
13872 rhapsody* | darwin*)
13873 if test -n "$ac_tool_prefix"; then
13874 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13875 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877 $as_echo_n "checking for $ac_word... " >&6; }
13878 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 if test -n "$DSYMUTIL"; then
13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13883 else
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13886 do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13894 fi
13895 done
13896 done
13897 IFS=$as_save_IFS
13898
13899 fi
13900 fi
13901 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13902 if test -n "$DSYMUTIL"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13904 $as_echo "$DSYMUTIL" >&6; }
13905 else
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907 $as_echo "no" >&6; }
13908 fi
13909
13910
13911 fi
13912 if test -z "$ac_cv_prog_DSYMUTIL"; then
13913 ac_ct_DSYMUTIL=$DSYMUTIL
13914 # Extract the first word of "dsymutil", so it can be a program name with args.
13915 set dummy dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$ac_ct_DSYMUTIL"; then
13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13934 fi
13935 done
13936 done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13942 if test -n "$ac_ct_DSYMUTIL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13944 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949
13950 if test "x$ac_ct_DSYMUTIL" = x; then
13951 DSYMUTIL=":"
13952 else
13953 case $cross_compiling:$ac_tool_warned in
13954 yes:)
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13957 ac_tool_warned=yes ;;
13958 esac
13959 DSYMUTIL=$ac_ct_DSYMUTIL
13960 fi
13961 else
13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13963 fi
13964
13965 if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13969 $as_echo_n "checking for $ac_word... " >&6; }
13970 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 if test -n "$NMEDIT"; then
13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13975 else
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13978 do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13986 fi
13987 done
13988 done
13989 IFS=$as_save_IFS
13990
13991 fi
13992 fi
13993 NMEDIT=$ac_cv_prog_NMEDIT
13994 if test -n "$NMEDIT"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13996 $as_echo "$NMEDIT" >&6; }
13997 else
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14000 fi
14001
14002
14003 fi
14004 if test -z "$ac_cv_prog_NMEDIT"; then
14005 ac_ct_NMEDIT=$NMEDIT
14006 # Extract the first word of "nmedit", so it can be a program name with args.
14007 set dummy nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 if test -n "$ac_ct_NMEDIT"; then
14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14034 if test -n "$ac_ct_NMEDIT"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14036 $as_echo "$ac_ct_NMEDIT" >&6; }
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040 fi
14041
14042 if test "x$ac_ct_NMEDIT" = x; then
14043 NMEDIT=":"
14044 else
14045 case $cross_compiling:$ac_tool_warned in
14046 yes:)
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14049 ac_tool_warned=yes ;;
14050 esac
14051 NMEDIT=$ac_ct_NMEDIT
14052 fi
14053 else
14054 NMEDIT="$ac_cv_prog_NMEDIT"
14055 fi
14056
14057 if test -n "$ac_tool_prefix"; then
14058 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14059 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14061 $as_echo_n "checking for $ac_word... " >&6; }
14062 if test "${ac_cv_prog_LIPO+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 if test -n "$LIPO"; then
14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14067 else
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14070 do
14071 IFS=$as_save_IFS
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14075 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 break 2
14078 fi
14079 done
14080 done
14081 IFS=$as_save_IFS
14082
14083 fi
14084 fi
14085 LIPO=$ac_cv_prog_LIPO
14086 if test -n "$LIPO"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14088 $as_echo "$LIPO" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092 fi
14093
14094
14095 fi
14096 if test -z "$ac_cv_prog_LIPO"; then
14097 ac_ct_LIPO=$LIPO
14098 # Extract the first word of "lipo", so it can be a program name with args.
14099 set dummy lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 if test -n "$ac_ct_LIPO"; then
14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14107 else
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14110 do
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115 ac_cv_prog_ac_ct_LIPO="lipo"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 break 2
14118 fi
14119 done
14120 done
14121 IFS=$as_save_IFS
14122
14123 fi
14124 fi
14125 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14126 if test -n "$ac_ct_LIPO"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14128 $as_echo "$ac_ct_LIPO" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132 fi
14133
14134 if test "x$ac_ct_LIPO" = x; then
14135 LIPO=":"
14136 else
14137 case $cross_compiling:$ac_tool_warned in
14138 yes:)
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14141 ac_tool_warned=yes ;;
14142 esac
14143 LIPO=$ac_ct_LIPO
14144 fi
14145 else
14146 LIPO="$ac_cv_prog_LIPO"
14147 fi
14148
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}otool; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 if test -n "$OTOOL"; then
14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14159 else
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14162 do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14167 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 break 2
14170 fi
14171 done
14172 done
14173 IFS=$as_save_IFS
14174
14175 fi
14176 fi
14177 OTOOL=$ac_cv_prog_OTOOL
14178 if test -n "$OTOOL"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14180 $as_echo "$OTOOL" >&6; }
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184 fi
14185
14186
14187 fi
14188 if test -z "$ac_cv_prog_OTOOL"; then
14189 ac_ct_OTOOL=$OTOOL
14190 # Extract the first word of "otool", so it can be a program name with args.
14191 set dummy otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 if test -n "$ac_ct_OTOOL"; then
14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14199 else
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14202 do
14203 IFS=$as_save_IFS
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207 ac_cv_prog_ac_ct_OTOOL="otool"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14209 break 2
14210 fi
14211 done
14212 done
14213 IFS=$as_save_IFS
14214
14215 fi
14216 fi
14217 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14218 if test -n "$ac_ct_OTOOL"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14220 $as_echo "$ac_ct_OTOOL" >&6; }
14221 else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224 fi
14225
14226 if test "x$ac_ct_OTOOL" = x; then
14227 OTOOL=":"
14228 else
14229 case $cross_compiling:$ac_tool_warned in
14230 yes:)
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14233 ac_tool_warned=yes ;;
14234 esac
14235 OTOOL=$ac_ct_OTOOL
14236 fi
14237 else
14238 OTOOL="$ac_cv_prog_OTOOL"
14239 fi
14240
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 $as_echo_n "checking for $ac_word... " >&6; }
14246 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -n "$OTOOL64"; then
14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 OTOOL64=$ac_cv_prog_OTOOL64
14270 if test -n "$OTOOL64"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14272 $as_echo "$OTOOL64" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14276 fi
14277
14278
14279 fi
14280 if test -z "$ac_cv_prog_OTOOL64"; then
14281 ac_ct_OTOOL64=$OTOOL64
14282 # Extract the first word of "otool64", so it can be a program name with args.
14283 set dummy otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$ac_ct_OTOOL64"; then
14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_prog_ac_ct_OTOOL64="otool64"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14302 fi
14303 done
14304 done
14305 IFS=$as_save_IFS
14306
14307 fi
14308 fi
14309 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14310 if test -n "$ac_ct_OTOOL64"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14312 $as_echo "$ac_ct_OTOOL64" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317
14318 if test "x$ac_ct_OTOOL64" = x; then
14319 OTOOL64=":"
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327 OTOOL64=$ac_ct_OTOOL64
14328 fi
14329 else
14330 OTOOL64="$ac_cv_prog_OTOOL64"
14331 fi
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14360 $as_echo_n "checking for -single_module linker flag... " >&6; }
14361 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 lt_cv_apple_cc_single_mod=no
14365 if test -z "${LT_MULTI_MODULE}"; then
14366 # By default we will add the -single_module flag. You can override
14367 # by either setting the environment variable LT_MULTI_MODULE
14368 # non-empty at configure time, or by adding -multi_module to the
14369 # link flags.
14370 rm -rf libconftest.dylib*
14371 echo "int foo(void){return 1;}" > conftest.c
14372 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14373 -dynamiclib -Wl,-single_module conftest.c" >&5
14374 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14375 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14376 _lt_result=$?
14377 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14378 lt_cv_apple_cc_single_mod=yes
14379 else
14380 cat conftest.err >&5
14381 fi
14382 rm -rf libconftest.dylib*
14383 rm -f conftest.*
14384 fi
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14387 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14389 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14390 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_ld_exported_symbols_list=no
14394 save_LDFLAGS=$LDFLAGS
14395 echo "_main" > conftest.sym
14396 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399
14400 int
14401 main ()
14402 {
14403
14404 ;
14405 return 0;
14406 }
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 lt_cv_ld_exported_symbols_list=yes
14410 else
14411 lt_cv_ld_exported_symbols_list=no
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS="$save_LDFLAGS"
14416
14417 fi
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14421 $as_echo_n "checking for -force_load linker flag... " >&6; }
14422 if test "${lt_cv_ld_force_load+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 lt_cv_ld_force_load=no
14426 cat > conftest.c << _LT_EOF
14427 int forced_loaded() { return 2;}
14428 _LT_EOF
14429 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14430 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14431 echo "$AR cru libconftest.a conftest.o" >&5
14432 $AR cru libconftest.a conftest.o 2>&5
14433 cat > conftest.c << _LT_EOF
14434 int main() { return 0;}
14435 _LT_EOF
14436 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14437 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14438 _lt_result=$?
14439 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14440 lt_cv_ld_force_load=yes
14441 else
14442 cat conftest.err >&5
14443 fi
14444 rm -f conftest.err libconftest.a conftest conftest.c
14445 rm -rf conftest.dSYM
14446
14447 fi
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14449 $as_echo "$lt_cv_ld_force_load" >&6; }
14450 case $host_os in
14451 rhapsody* | darwin1.[012])
14452 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14453 darwin1.*)
14454 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14455 darwin*) # darwin 5.x on
14456 # if running on 10.5 or later, the deployment target defaults
14457 # to the OS version, if on x86, and 10.4, the deployment
14458 # target defaults to 10.4. Don't you love it?
14459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14462 10.[012]*)
14463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14464 10.*)
14465 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14466 esac
14467 ;;
14468 esac
14469 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14470 _lt_dar_single_mod='$single_module'
14471 fi
14472 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14473 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14474 else
14475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14476 fi
14477 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14478 _lt_dsymutil='~$DSYMUTIL $lib || :'
14479 else
14480 _lt_dsymutil=
14481 fi
14482 ;;
14483 esac
14484
14485 for ac_header in dlfcn.h
14486 do :
14487 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14488 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_DLFCN_H 1
14491 _ACEOF
14492
14493 fi
14494 done
14495
14496
14497
14498
14499
14500 # Set options
14501
14502
14503
14504 enable_dlopen=no
14505
14506
14507 enable_win32_dll=no
14508
14509
14510 # Check whether --enable-shared was given.
14511 if test "${enable_shared+set}" = set; then :
14512 enableval=$enable_shared; p=${PACKAGE-default}
14513 case $enableval in
14514 yes) enable_shared=yes ;;
14515 no) enable_shared=no ;;
14516 *)
14517 enable_shared=no
14518 # Look at the argument we got. We use all the common list separators.
14519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14520 for pkg in $enableval; do
14521 IFS="$lt_save_ifs"
14522 if test "X$pkg" = "X$p"; then
14523 enable_shared=yes
14524 fi
14525 done
14526 IFS="$lt_save_ifs"
14527 ;;
14528 esac
14529 else
14530 enable_shared=yes
14531 fi
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541 # Check whether --enable-static was given.
14542 if test "${enable_static+set}" = set; then :
14543 enableval=$enable_static; p=${PACKAGE-default}
14544 case $enableval in
14545 yes) enable_static=yes ;;
14546 no) enable_static=no ;;
14547 *)
14548 enable_static=no
14549 # Look at the argument we got. We use all the common list separators.
14550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14551 for pkg in $enableval; do
14552 IFS="$lt_save_ifs"
14553 if test "X$pkg" = "X$p"; then
14554 enable_static=yes
14555 fi
14556 done
14557 IFS="$lt_save_ifs"
14558 ;;
14559 esac
14560 else
14561 enable_static=yes
14562 fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 # Check whether --with-pic was given.
14574 if test "${with_pic+set}" = set; then :
14575 withval=$with_pic; pic_mode="$withval"
14576 else
14577 pic_mode=default
14578 fi
14579
14580
14581 test -z "$pic_mode" && pic_mode=default
14582
14583
14584
14585
14586
14587
14588
14589 # Check whether --enable-fast-install was given.
14590 if test "${enable_fast_install+set}" = set; then :
14591 enableval=$enable_fast_install; p=${PACKAGE-default}
14592 case $enableval in
14593 yes) enable_fast_install=yes ;;
14594 no) enable_fast_install=no ;;
14595 *)
14596 enable_fast_install=no
14597 # Look at the argument we got. We use all the common list separators.
14598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14599 for pkg in $enableval; do
14600 IFS="$lt_save_ifs"
14601 if test "X$pkg" = "X$p"; then
14602 enable_fast_install=yes
14603 fi
14604 done
14605 IFS="$lt_save_ifs"
14606 ;;
14607 esac
14608 else
14609 enable_fast_install=yes
14610 fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622 # This can be used to rebuild libtool when needed
14623 LIBTOOL_DEPS="$ltmain"
14624
14625 # Always use our own libtool.
14626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653 test -z "$LN_S" && LN_S="ln -s"
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668 if test -n "${ZSH_VERSION+set}" ; then
14669 setopt NO_GLOB_SUBST
14670 fi
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14673 $as_echo_n "checking for objdir... " >&6; }
14674 if test "${lt_cv_objdir+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 rm -f .libs 2>/dev/null
14678 mkdir .libs 2>/dev/null
14679 if test -d .libs; then
14680 lt_cv_objdir=.libs
14681 else
14682 # MS-DOS does not allow filenames that begin with a dot.
14683 lt_cv_objdir=_libs
14684 fi
14685 rmdir .libs 2>/dev/null
14686 fi
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14688 $as_echo "$lt_cv_objdir" >&6; }
14689 objdir=$lt_cv_objdir
14690
14691
14692
14693
14694
14695 cat >>confdefs.h <<_ACEOF
14696 #define LT_OBJDIR "$lt_cv_objdir/"
14697 _ACEOF
14698
14699
14700
14701
14702 case $host_os in
14703 aix3*)
14704 # AIX sometimes has problems with the GCC collect2 program. For some
14705 # reason, if we set the COLLECT_NAMES environment variable, the problems
14706 # vanish in a puff of smoke.
14707 if test "X${COLLECT_NAMES+set}" != Xset; then
14708 COLLECT_NAMES=
14709 export COLLECT_NAMES
14710 fi
14711 ;;
14712 esac
14713
14714 # Global variables:
14715 ofile=libtool
14716 can_build_shared=yes
14717
14718 # All known linkers require a `.a' archive for static linking (except MSVC,
14719 # which needs '.lib').
14720 libext=a
14721
14722 with_gnu_ld="$lt_cv_prog_gnu_ld"
14723
14724 old_CC="$CC"
14725 old_CFLAGS="$CFLAGS"
14726
14727 # Set sane defaults for various variables
14728 test -z "$CC" && CC=cc
14729 test -z "$LTCC" && LTCC=$CC
14730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14731 test -z "$LD" && LD=ld
14732 test -z "$ac_objext" && ac_objext=o
14733
14734 for cc_temp in $compiler""; do
14735 case $cc_temp in
14736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14738 \-*) ;;
14739 *) break;;
14740 esac
14741 done
14742 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14743
14744
14745 # Only perform the check for file, if the check method requires it
14746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14747 case $deplibs_check_method in
14748 file_magic*)
14749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14751 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 case $MAGIC_CMD in
14756 [\\/*] | ?:[\\/]*)
14757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14758 ;;
14759 *)
14760 lt_save_MAGIC_CMD="$MAGIC_CMD"
14761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14763 for ac_dir in $ac_dummy; do
14764 IFS="$lt_save_ifs"
14765 test -z "$ac_dir" && ac_dir=.
14766 if test -f $ac_dir/${ac_tool_prefix}file; then
14767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14768 if test -n "$file_magic_test_file"; then
14769 case $deplibs_check_method in
14770 "file_magic "*)
14771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14774 $EGREP "$file_magic_regex" > /dev/null; then
14775 :
14776 else
14777 cat <<_LT_EOF 1>&2
14778
14779 *** Warning: the command libtool uses to detect shared libraries,
14780 *** $file_magic_cmd, produces output that libtool cannot recognize.
14781 *** The result is that libtool may fail to recognize shared libraries
14782 *** as such. This will affect the creation of libtool libraries that
14783 *** depend on shared libraries, but programs linked with such libtool
14784 *** libraries will work regardless of this problem. Nevertheless, you
14785 *** may want to report the problem to your system manager and/or to
14786 *** bug-libtool@gnu.org
14787
14788 _LT_EOF
14789 fi ;;
14790 esac
14791 fi
14792 break
14793 fi
14794 done
14795 IFS="$lt_save_ifs"
14796 MAGIC_CMD="$lt_save_MAGIC_CMD"
14797 ;;
14798 esac
14799 fi
14800
14801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14802 if test -n "$MAGIC_CMD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14804 $as_echo "$MAGIC_CMD" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808 fi
14809
14810
14811
14812
14813
14814 if test -z "$lt_cv_path_MAGIC_CMD"; then
14815 if test -n "$ac_tool_prefix"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14817 $as_echo_n "checking for file... " >&6; }
14818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 case $MAGIC_CMD in
14822 [\\/*] | ?:[\\/]*)
14823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14824 ;;
14825 *)
14826 lt_save_MAGIC_CMD="$MAGIC_CMD"
14827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14829 for ac_dir in $ac_dummy; do
14830 IFS="$lt_save_ifs"
14831 test -z "$ac_dir" && ac_dir=.
14832 if test -f $ac_dir/file; then
14833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14834 if test -n "$file_magic_test_file"; then
14835 case $deplibs_check_method in
14836 "file_magic "*)
14837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14840 $EGREP "$file_magic_regex" > /dev/null; then
14841 :
14842 else
14843 cat <<_LT_EOF 1>&2
14844
14845 *** Warning: the command libtool uses to detect shared libraries,
14846 *** $file_magic_cmd, produces output that libtool cannot recognize.
14847 *** The result is that libtool may fail to recognize shared libraries
14848 *** as such. This will affect the creation of libtool libraries that
14849 *** depend on shared libraries, but programs linked with such libtool
14850 *** libraries will work regardless of this problem. Nevertheless, you
14851 *** may want to report the problem to your system manager and/or to
14852 *** bug-libtool@gnu.org
14853
14854 _LT_EOF
14855 fi ;;
14856 esac
14857 fi
14858 break
14859 fi
14860 done
14861 IFS="$lt_save_ifs"
14862 MAGIC_CMD="$lt_save_MAGIC_CMD"
14863 ;;
14864 esac
14865 fi
14866
14867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14868 if test -n "$MAGIC_CMD"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14870 $as_echo "$MAGIC_CMD" >&6; }
14871 else
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14874 fi
14875
14876
14877 else
14878 MAGIC_CMD=:
14879 fi
14880 fi
14881
14882 fi
14883 ;;
14884 esac
14885
14886 # Use C for the default configuration in the libtool script
14887
14888 lt_save_CC="$CC"
14889 ac_ext=c
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14894
14895
14896 # Source file extension for C test sources.
14897 ac_ext=c
14898
14899 # Object file extension for compiled C test sources.
14900 objext=o
14901 objext=$objext
14902
14903 # Code to be used in simple compile tests
14904 lt_simple_compile_test_code="int some_variable = 0;"
14905
14906 # Code to be used in simple link tests
14907 lt_simple_link_test_code='int main(){return(0);}'
14908
14909
14910
14911
14912
14913
14914
14915 # If no C compiler was specified, use CC.
14916 LTCC=${LTCC-"$CC"}
14917
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14920
14921 # Allow CC to be a program name with arguments.
14922 compiler=$CC
14923
14924 # Save the default compiler, since it gets overwritten when the other
14925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14926 compiler_DEFAULT=$CC
14927
14928 # save warnings/boilerplate of simple test code
14929 ac_outfile=conftest.$ac_objext
14930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14932 _lt_compiler_boilerplate=`cat conftest.err`
14933 $RM conftest*
14934
14935 ac_outfile=conftest.$ac_objext
14936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14938 _lt_linker_boilerplate=`cat conftest.err`
14939 $RM -r conftest*
14940
14941
14942 ## CAVEAT EMPTOR:
14943 ## There is no encapsulation within the following macros, do not change
14944 ## the running order or otherwise move them around unless you know exactly
14945 ## what you are doing...
14946 if test -n "$compiler"; then
14947
14948 lt_prog_compiler_no_builtin_flag=
14949
14950 if test "$GCC" = yes; then
14951 case $cc_basename in
14952 nvcc*)
14953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14954 *)
14955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14956 esac
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14959 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 lt_cv_prog_compiler_rtti_exceptions=no
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14966 lt_compiler_flag="-fno-rtti -fno-exceptions"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 # The option is referenced via a variable to avoid confusing sed.
14972 lt_compile=`echo "$ac_compile" | $SED \
14973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14975 -e 's:$: $lt_compiler_flag:'`
14976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14977 (eval "$lt_compile" 2>conftest.err)
14978 ac_status=$?
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 if (exit $ac_status) && test -s "$ac_outfile"; then
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings other than the usual output.
14984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14987 lt_cv_prog_compiler_rtti_exceptions=yes
14988 fi
14989 fi
14990 $RM conftest*
14991
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14995
14996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14998 else
14999 :
15000 fi
15001
15002 fi
15003
15004
15005
15006
15007
15008
15009 lt_prog_compiler_wl=
15010 lt_prog_compiler_pic=
15011 lt_prog_compiler_static=
15012
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15014 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15015
15016 if test "$GCC" = yes; then
15017 lt_prog_compiler_wl='-Wl,'
15018 lt_prog_compiler_static='-static'
15019
15020 case $host_os in
15021 aix*)
15022 # All AIX code is PIC.
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15026 fi
15027 lt_prog_compiler_pic='-fPIC'
15028 ;;
15029
15030 amigaos*)
15031 case $host_cpu in
15032 powerpc)
15033 # see comment about AmigaOS4 .so support
15034 lt_prog_compiler_pic='-fPIC'
15035 ;;
15036 m68k)
15037 # FIXME: we need at least 68020 code to build shared libraries, but
15038 # adding the `-m68020' flag to GCC prevents building anything better,
15039 # like `-m68040'.
15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15041 ;;
15042 esac
15043 ;;
15044
15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15046 # PIC is the default for these OSes.
15047 ;;
15048
15049 mingw* | cygwin* | pw32* | os2* | cegcc*)
15050 # This hack is so that the source file can tell whether it is being
15051 # built for inclusion in a dll (and should export symbols for example).
15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15053 # (--disable-auto-import) libraries
15054 lt_prog_compiler_pic='-DDLL_EXPORT'
15055 ;;
15056
15057 darwin* | rhapsody*)
15058 # PIC is the default on this platform
15059 # Common symbols not allowed in MH_DYLIB files
15060 lt_prog_compiler_pic='-fno-common'
15061 ;;
15062
15063 haiku*)
15064 # PIC is the default for Haiku.
15065 # The "-static" flag exists, but is broken.
15066 lt_prog_compiler_static=
15067 ;;
15068
15069 hpux*)
15070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15072 # sets the default TLS model and affects inlining.
15073 case $host_cpu in
15074 hppa*64*)
15075 # +Z the default
15076 ;;
15077 *)
15078 lt_prog_compiler_pic='-fPIC'
15079 ;;
15080 esac
15081 ;;
15082
15083 interix[3-9]*)
15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15085 # Instead, we relocate shared libraries at runtime.
15086 ;;
15087
15088 msdosdjgpp*)
15089 # Just because we use GCC doesn't mean we suddenly get shared libraries
15090 # on systems that don't support them.
15091 lt_prog_compiler_can_build_shared=no
15092 enable_shared=no
15093 ;;
15094
15095 *nto* | *qnx*)
15096 # QNX uses GNU C++, but need to define -shared option too, otherwise
15097 # it will coredump.
15098 lt_prog_compiler_pic='-fPIC -shared'
15099 ;;
15100
15101 sysv4*MP*)
15102 if test -d /usr/nec; then
15103 lt_prog_compiler_pic=-Kconform_pic
15104 fi
15105 ;;
15106
15107 *)
15108 lt_prog_compiler_pic='-fPIC'
15109 ;;
15110 esac
15111
15112 case $cc_basename in
15113 nvcc*) # Cuda Compiler Driver 2.2
15114 lt_prog_compiler_wl='-Xlinker '
15115 lt_prog_compiler_pic='-Xcompiler -fPIC'
15116 ;;
15117 esac
15118 else
15119 # PORTME Check for flag to pass linker flags through the system compiler.
15120 case $host_os in
15121 aix*)
15122 lt_prog_compiler_wl='-Wl,'
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static='-Bstatic'
15126 else
15127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15128 fi
15129 ;;
15130
15131 mingw* | cygwin* | pw32* | os2* | cegcc*)
15132 # This hack is so that the source file can tell whether it is being
15133 # built for inclusion in a dll (and should export symbols for example).
15134 lt_prog_compiler_pic='-DDLL_EXPORT'
15135 ;;
15136
15137 hpux9* | hpux10* | hpux11*)
15138 lt_prog_compiler_wl='-Wl,'
15139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15140 # not for PA HP-UX.
15141 case $host_cpu in
15142 hppa*64*|ia64*)
15143 # +Z the default
15144 ;;
15145 *)
15146 lt_prog_compiler_pic='+Z'
15147 ;;
15148 esac
15149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15150 lt_prog_compiler_static='${wl}-a ${wl}archive'
15151 ;;
15152
15153 irix5* | irix6* | nonstopux*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # PIC (with -KPIC) is the default.
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15160 case $cc_basename in
15161 # old Intel for x86_64 which still supported -KPIC.
15162 ecc*)
15163 lt_prog_compiler_wl='-Wl,'
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-static'
15166 ;;
15167 # icc used to be incompatible with GCC.
15168 # ICC 10 doesn't accept -KPIC any more.
15169 icc* | ifort*)
15170 lt_prog_compiler_wl='-Wl,'
15171 lt_prog_compiler_pic='-fPIC'
15172 lt_prog_compiler_static='-static'
15173 ;;
15174 # Lahey Fortran 8.1.
15175 lf95*)
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_pic='--shared'
15178 lt_prog_compiler_static='--static'
15179 ;;
15180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15181 # Portland Group compilers (*not* the Pentium gcc compiler,
15182 # which looks to be a dead project)
15183 lt_prog_compiler_wl='-Wl,'
15184 lt_prog_compiler_pic='-fpic'
15185 lt_prog_compiler_static='-Bstatic'
15186 ;;
15187 ccc*)
15188 lt_prog_compiler_wl='-Wl,'
15189 # All Alpha code is PIC.
15190 lt_prog_compiler_static='-non_shared'
15191 ;;
15192 xl* | bgxl* | bgf* | mpixl*)
15193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-qpic'
15196 lt_prog_compiler_static='-qstaticlink'
15197 ;;
15198 *)
15199 case `$CC -V 2>&1 | sed 5q` in
15200 *Sun\ F* | *Sun*Fortran*)
15201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15202 lt_prog_compiler_pic='-KPIC'
15203 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_wl=''
15205 ;;
15206 *Sun\ C*)
15207 # Sun C 5.9
15208 lt_prog_compiler_pic='-KPIC'
15209 lt_prog_compiler_static='-Bstatic'
15210 lt_prog_compiler_wl='-Wl,'
15211 ;;
15212 esac
15213 ;;
15214 esac
15215 ;;
15216
15217 newsos6)
15218 lt_prog_compiler_pic='-KPIC'
15219 lt_prog_compiler_static='-Bstatic'
15220 ;;
15221
15222 *nto* | *qnx*)
15223 # QNX uses GNU C++, but need to define -shared option too, otherwise
15224 # it will coredump.
15225 lt_prog_compiler_pic='-fPIC -shared'
15226 ;;
15227
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static='-non_shared'
15232 ;;
15233
15234 rdos*)
15235 lt_prog_compiler_static='-non_shared'
15236 ;;
15237
15238 solaris*)
15239 lt_prog_compiler_pic='-KPIC'
15240 lt_prog_compiler_static='-Bstatic'
15241 case $cc_basename in
15242 f77* | f90* | f95*)
15243 lt_prog_compiler_wl='-Qoption ld ';;
15244 *)
15245 lt_prog_compiler_wl='-Wl,';;
15246 esac
15247 ;;
15248
15249 sunos4*)
15250 lt_prog_compiler_wl='-Qoption ld '
15251 lt_prog_compiler_pic='-PIC'
15252 lt_prog_compiler_static='-Bstatic'
15253 ;;
15254
15255 sysv4 | sysv4.2uw2* | sysv4.3*)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-KPIC'
15258 lt_prog_compiler_static='-Bstatic'
15259 ;;
15260
15261 sysv4*MP*)
15262 if test -d /usr/nec ;then
15263 lt_prog_compiler_pic='-Kconform_pic'
15264 lt_prog_compiler_static='-Bstatic'
15265 fi
15266 ;;
15267
15268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-Bstatic'
15272 ;;
15273
15274 unicos*)
15275 lt_prog_compiler_wl='-Wl,'
15276 lt_prog_compiler_can_build_shared=no
15277 ;;
15278
15279 uts4*)
15280 lt_prog_compiler_pic='-pic'
15281 lt_prog_compiler_static='-Bstatic'
15282 ;;
15283
15284 *)
15285 lt_prog_compiler_can_build_shared=no
15286 ;;
15287 esac
15288 fi
15289
15290 case $host_os in
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15292 *djgpp*)
15293 lt_prog_compiler_pic=
15294 ;;
15295 *)
15296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15297 ;;
15298 esac
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15300 $as_echo "$lt_prog_compiler_pic" >&6; }
15301
15302
15303
15304
15305
15306
15307 #
15308 # Check to make sure the PIC flag actually works.
15309 #
15310 if test -n "$lt_prog_compiler_pic"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 lt_cv_prog_compiler_pic_works=no
15317 ac_outfile=conftest.$ac_objext
15318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 # The option is referenced via a variable to avoid confusing sed.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
15329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15330 (eval "$lt_compile" 2>conftest.err)
15331 ac_status=$?
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 if (exit $ac_status) && test -s "$ac_outfile"; then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings other than the usual output.
15337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_pic_works=yes
15341 fi
15342 fi
15343 $RM conftest*
15344
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15348
15349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15350 case $lt_prog_compiler_pic in
15351 "" | " "*) ;;
15352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15353 esac
15354 else
15355 lt_prog_compiler_pic=
15356 lt_prog_compiler_can_build_shared=no
15357 fi
15358
15359 fi
15360
15361
15362
15363
15364
15365
15366 #
15367 # Check to make sure the static flag actually works.
15368 #
15369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 lt_cv_prog_compiler_static_works=no
15376 save_LDFLAGS="$LDFLAGS"
15377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15380 # The linker can only warn and ignore the option if not recognized
15381 # So say no if there are warnings
15382 if test -s conftest.err; then
15383 # Append any errors to the config.log.
15384 cat conftest.err 1>&5
15385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15387 if diff conftest.exp conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_static_works=yes
15389 fi
15390 else
15391 lt_cv_prog_compiler_static_works=yes
15392 fi
15393 fi
15394 $RM -r conftest*
15395 LDFLAGS="$save_LDFLAGS"
15396
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15400
15401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15402 :
15403 else
15404 lt_prog_compiler_static=
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 lt_cv_prog_compiler_c_o=no
15419 $RM -r conftest 2>/dev/null
15420 mkdir conftest
15421 cd conftest
15422 mkdir out
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424
15425 lt_compiler_flag="-o out/conftest2.$ac_objext"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>out/conftest.err)
15436 ac_status=$?
15437 cat out/conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_c_o=yes
15447 fi
15448 fi
15449 chmod u+w . 2>&5
15450 $RM conftest*
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15454 $RM out/* && rmdir out
15455 cd ..
15456 $RM -r conftest
15457 $RM conftest*
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15462
15463
15464
15465
15466
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 lt_cv_prog_compiler_c_o=no
15474 $RM -r conftest 2>/dev/null
15475 mkdir conftest
15476 cd conftest
15477 mkdir out
15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15479
15480 lt_compiler_flag="-o out/conftest2.$ac_objext"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 lt_compile=`echo "$ac_compile" | $SED \
15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15488 -e 's:$: $lt_compiler_flag:'`
15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15490 (eval "$lt_compile" 2>out/conftest.err)
15491 ac_status=$?
15492 cat out/conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15495 then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_c_o=yes
15502 fi
15503 fi
15504 chmod u+w . 2>&5
15505 $RM conftest*
15506 # SGI C++ compiler will create directory out/ii_files/ for
15507 # template instantiation
15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15509 $RM out/* && rmdir out
15510 cd ..
15511 $RM -r conftest
15512 $RM conftest*
15513
15514 fi
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15517
15518
15519
15520
15521 hard_links="nottested"
15522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15523 # do not overwrite the value of need_locks provided by the user
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15525 $as_echo_n "checking if we can lock with hard links... " >&6; }
15526 hard_links=yes
15527 $RM conftest*
15528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15529 touch conftest.a
15530 ln conftest.a conftest.b 2>&5 || hard_links=no
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15533 $as_echo "$hard_links" >&6; }
15534 if test "$hard_links" = no; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15536 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15537 need_locks=warn
15538 fi
15539 else
15540 need_locks=no
15541 fi
15542
15543
15544
15545
15546
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15550
15551 runpath_var=
15552 allow_undefined_flag=
15553 always_export_symbols=no
15554 archive_cmds=
15555 archive_expsym_cmds=
15556 compiler_needs_object=no
15557 enable_shared_with_static_runtimes=no
15558 export_dynamic_flag_spec=
15559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15560 hardcode_automatic=no
15561 hardcode_direct=no
15562 hardcode_direct_absolute=no
15563 hardcode_libdir_flag_spec=
15564 hardcode_libdir_flag_spec_ld=
15565 hardcode_libdir_separator=
15566 hardcode_minus_L=no
15567 hardcode_shlibpath_var=unsupported
15568 inherit_rpath=no
15569 link_all_deplibs=unknown
15570 module_cmds=
15571 module_expsym_cmds=
15572 old_archive_from_new_cmds=
15573 old_archive_from_expsyms_cmds=
15574 thread_safe_flag_spec=
15575 whole_archive_flag_spec=
15576 # include_expsyms should be a list of space-separated symbols to be *always*
15577 # included in the symbol list
15578 include_expsyms=
15579 # exclude_expsyms can be an extended regexp of symbols to exclude
15580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15582 # as well as any symbol that contains `d'.
15583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15585 # platforms (ab)use it in PIC code, but their linkers get confused if
15586 # the symbol is explicitly referenced. Since portable code cannot
15587 # rely on this symbol name, it's probably fine to never include it in
15588 # preloaded symbol tables.
15589 # Exclude shared library initialization/finalization symbols.
15590 extract_expsyms_cmds=
15591
15592 case $host_os in
15593 cygwin* | mingw* | pw32* | cegcc*)
15594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15595 # When not using gcc, we currently assume that we are using
15596 # Microsoft Visual C++.
15597 if test "$GCC" != yes; then
15598 with_gnu_ld=no
15599 fi
15600 ;;
15601 interix*)
15602 # we just hope/assume this is gcc and not c89 (= MSVC++)
15603 with_gnu_ld=yes
15604 ;;
15605 openbsd*)
15606 with_gnu_ld=no
15607 ;;
15608 esac
15609
15610 ld_shlibs=yes
15611
15612 # On some targets, GNU ld is compatible enough with the native linker
15613 # that we're better off using the native interface for both.
15614 lt_use_gnu_ld_interface=no
15615 if test "$with_gnu_ld" = yes; then
15616 case $host_os in
15617 aix*)
15618 # The AIX port of GNU ld has always aspired to compatibility
15619 # with the native linker. However, as the warning in the GNU ld
15620 # block says, versions before 2.19.5* couldn't really create working
15621 # shared libraries, regardless of the interface used.
15622 case `$LD -v 2>&1` in
15623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15626 *)
15627 lt_use_gnu_ld_interface=yes
15628 ;;
15629 esac
15630 ;;
15631 *)
15632 lt_use_gnu_ld_interface=yes
15633 ;;
15634 esac
15635 fi
15636
15637 if test "$lt_use_gnu_ld_interface" = yes; then
15638 # If archive_cmds runs LD, not CC, wlarc should be empty
15639 wlarc='${wl}'
15640
15641 # Set some defaults for GNU ld with shared library support. These
15642 # are reset later if shared libraries are not supported. Putting them
15643 # here allows them to be overridden if necessary.
15644 runpath_var=LD_RUN_PATH
15645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15646 export_dynamic_flag_spec='${wl}--export-dynamic'
15647 # ancient GNU ld didn't support --whole-archive et. al.
15648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15650 else
15651 whole_archive_flag_spec=
15652 fi
15653 supports_anon_versioning=no
15654 case `$LD -v 2>&1` in
15655 *GNU\ gold*) supports_anon_versioning=yes ;;
15656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15659 *\ 2.11.*) ;; # other 2.11 versions
15660 *) supports_anon_versioning=yes ;;
15661 esac
15662
15663 # See if GNU ld supports shared libraries.
15664 case $host_os in
15665 aix[3-9]*)
15666 # On AIX/PPC, the GNU linker is very broken
15667 if test "$host_cpu" != ia64; then
15668 ld_shlibs=no
15669 cat <<_LT_EOF 1>&2
15670
15671 *** Warning: the GNU linker, at least up to release 2.19, is reported
15672 *** to be unable to reliably create shared libraries on AIX.
15673 *** Therefore, libtool is disabling shared libraries support. If you
15674 *** really care for shared libraries, you may want to install binutils
15675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15676 *** You will then need to restart the configuration process.
15677
15678 _LT_EOF
15679 fi
15680 ;;
15681
15682 amigaos*)
15683 case $host_cpu in
15684 powerpc)
15685 # see comment about AmigaOS4 .so support
15686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15687 archive_expsym_cmds=''
15688 ;;
15689 m68k)
15690 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)'
15691 hardcode_libdir_flag_spec='-L$libdir'
15692 hardcode_minus_L=yes
15693 ;;
15694 esac
15695 ;;
15696
15697 beos*)
15698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15699 allow_undefined_flag=unsupported
15700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15701 # support --undefined. This deserves some investigation. FIXME
15702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15703 else
15704 ld_shlibs=no
15705 fi
15706 ;;
15707
15708 cygwin* | mingw* | pw32* | cegcc*)
15709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15710 # as there is no search path for DLLs.
15711 hardcode_libdir_flag_spec='-L$libdir'
15712 export_dynamic_flag_spec='${wl}--export-all-symbols'
15713 allow_undefined_flag=unsupported
15714 always_export_symbols=no
15715 enable_shared_with_static_runtimes=yes
15716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15717
15718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15720 # If the export-symbols file already is a .def file (1st line
15721 # is EXPORTS), use it as is; otherwise, prepend...
15722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15723 cp $export_symbols $output_objdir/$soname.def;
15724 else
15725 echo EXPORTS > $output_objdir/$soname.def;
15726 cat $export_symbols >> $output_objdir/$soname.def;
15727 fi~
15728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15729 else
15730 ld_shlibs=no
15731 fi
15732 ;;
15733
15734 haiku*)
15735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15736 link_all_deplibs=yes
15737 ;;
15738
15739 interix[3-9]*)
15740 hardcode_direct=no
15741 hardcode_shlibpath_var=no
15742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15743 export_dynamic_flag_spec='${wl}-E'
15744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15745 # Instead, shared libraries are loaded at an image base (0x10000000 by
15746 # default) and relocated if they conflict, which is a slow very memory
15747 # consuming and fragmenting process. To avoid this, we pick a random,
15748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15751 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'
15752 ;;
15753
15754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15755 tmp_diet=no
15756 if test "$host_os" = linux-dietlibc; then
15757 case $cc_basename in
15758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15759 esac
15760 fi
15761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15762 && test "$tmp_diet" = no
15763 then
15764 tmp_addflag=
15765 tmp_sharedflag='-shared'
15766 case $cc_basename,$host_cpu in
15767 pgcc*) # Portland Group C compiler
15768 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'
15769 tmp_addflag=' $pic_flag'
15770 ;;
15771 pgf77* | pgf90* | pgf95* | pgfortran*)
15772 # Portland Group f77 and f90 compilers
15773 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'
15774 tmp_addflag=' $pic_flag -Mnomain' ;;
15775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15776 tmp_addflag=' -i_dynamic' ;;
15777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15778 tmp_addflag=' -i_dynamic -nofor_main' ;;
15779 ifc* | ifort*) # Intel Fortran compiler
15780 tmp_addflag=' -nofor_main' ;;
15781 lf95*) # Lahey Fortran 8.1
15782 whole_archive_flag_spec=
15783 tmp_sharedflag='--shared' ;;
15784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15785 tmp_sharedflag='-qmkshrobj'
15786 tmp_addflag= ;;
15787 nvcc*) # Cuda Compiler Driver 2.2
15788 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'
15789 compiler_needs_object=yes
15790 ;;
15791 esac
15792 case `$CC -V 2>&1 | sed 5q` in
15793 *Sun\ C*) # Sun C 5.9
15794 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'
15795 compiler_needs_object=yes
15796 tmp_sharedflag='-G' ;;
15797 *Sun\ F*) # Sun Fortran 8.3
15798 tmp_sharedflag='-G' ;;
15799 esac
15800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801
15802 if test "x$supports_anon_versioning" = xyes; then
15803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15805 echo "local: *; };" >> $output_objdir/$libname.ver~
15806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15807 fi
15808
15809 case $cc_basename in
15810 xlf* | bgf* | bgxlf* | mpixlf*)
15811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15813 hardcode_libdir_flag_spec=
15814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15815 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15816 if test "x$supports_anon_versioning" = xyes; then
15817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15819 echo "local: *; };" >> $output_objdir/$libname.ver~
15820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15821 fi
15822 ;;
15823 esac
15824 else
15825 ld_shlibs=no
15826 fi
15827 ;;
15828
15829 netbsd*)
15830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15832 wlarc=
15833 else
15834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15836 fi
15837 ;;
15838
15839 solaris*)
15840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15841 ld_shlibs=no
15842 cat <<_LT_EOF 1>&2
15843
15844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15845 *** create shared libraries on Solaris systems. Therefore, libtool
15846 *** is disabling shared libraries support. We urge you to upgrade GNU
15847 *** binutils to release 2.9.1 or newer. Another option is to modify
15848 *** your PATH or compiler configuration so that the native linker is
15849 *** used, and then restart.
15850
15851 _LT_EOF
15852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15855 else
15856 ld_shlibs=no
15857 fi
15858 ;;
15859
15860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15861 case `$LD -v 2>&1` in
15862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15863 ld_shlibs=no
15864 cat <<_LT_EOF 1>&2
15865
15866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15867 *** reliably create shared libraries on SCO systems. Therefore, libtool
15868 *** is disabling shared libraries support. We urge you to upgrade GNU
15869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15870 *** your PATH or compiler configuration so that the native linker is
15871 *** used, and then restart.
15872
15873 _LT_EOF
15874 ;;
15875 *)
15876 # For security reasons, it is highly recommended that you always
15877 # use absolute paths for naming shared libraries, and exclude the
15878 # DT_RUNPATH tag from executables and libraries. But doing so
15879 # requires that you compile everything twice, which is a pain.
15880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884 else
15885 ld_shlibs=no
15886 fi
15887 ;;
15888 esac
15889 ;;
15890
15891 sunos4*)
15892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15893 wlarc=
15894 hardcode_direct=yes
15895 hardcode_shlibpath_var=no
15896 ;;
15897
15898 *)
15899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15902 else
15903 ld_shlibs=no
15904 fi
15905 ;;
15906 esac
15907
15908 if test "$ld_shlibs" = no; then
15909 runpath_var=
15910 hardcode_libdir_flag_spec=
15911 export_dynamic_flag_spec=
15912 whole_archive_flag_spec=
15913 fi
15914 else
15915 # PORTME fill in a description of your system's linker (not GNU ld)
15916 case $host_os in
15917 aix3*)
15918 allow_undefined_flag=unsupported
15919 always_export_symbols=yes
15920 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'
15921 # Note: this linker hardcodes the directories in LIBPATH if there
15922 # are no directories specified by -L.
15923 hardcode_minus_L=yes
15924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15925 # Neither direct hardcoding nor static linking is supported with a
15926 # broken collect2.
15927 hardcode_direct=unsupported
15928 fi
15929 ;;
15930
15931 aix[4-9]*)
15932 if test "$host_cpu" = ia64; then
15933 # On IA64, the linker does run time linking by default, so we don't
15934 # have to do anything special.
15935 aix_use_runtimelinking=no
15936 exp_sym_flag='-Bexport'
15937 no_entry_flag=""
15938 else
15939 # If we're using GNU nm, then we don't want the "-C" option.
15940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15941 # Also, AIX nm treats weak defined symbols like other global
15942 # defined symbols, whereas GNU nm marks them as "W".
15943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15944 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'
15945 else
15946 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'
15947 fi
15948 aix_use_runtimelinking=no
15949
15950 # Test if we are trying to use run time linking or normal
15951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15952 # need to do runtime linking.
15953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15954 for ld_flag in $LDFLAGS; do
15955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15956 aix_use_runtimelinking=yes
15957 break
15958 fi
15959 done
15960 ;;
15961 esac
15962
15963 exp_sym_flag='-bexport'
15964 no_entry_flag='-bnoentry'
15965 fi
15966
15967 # When large executables or shared objects are built, AIX ld can
15968 # have problems creating the table of contents. If linking a library
15969 # or program results in "error TOC overflow" add -mminimal-toc to
15970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15972
15973 archive_cmds=''
15974 hardcode_direct=yes
15975 hardcode_direct_absolute=yes
15976 hardcode_libdir_separator=':'
15977 link_all_deplibs=yes
15978 file_list_spec='${wl}-f,'
15979
15980 if test "$GCC" = yes; then
15981 case $host_os in aix4.[012]|aix4.[012].*)
15982 # We only want to do this on AIX 4.2 and lower, the check
15983 # below for broken collect2 doesn't work under 4.3+
15984 collect2name=`${CC} -print-prog-name=collect2`
15985 if test -f "$collect2name" &&
15986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15987 then
15988 # We have reworked collect2
15989 :
15990 else
15991 # We have old collect2
15992 hardcode_direct=unsupported
15993 # It fails to find uninstalled libraries when the uninstalled
15994 # path is not listed in the libpath. Setting hardcode_minus_L
15995 # to unsupported forces relinking
15996 hardcode_minus_L=yes
15997 hardcode_libdir_flag_spec='-L$libdir'
15998 hardcode_libdir_separator=
15999 fi
16000 ;;
16001 esac
16002 shared_flag='-shared'
16003 if test "$aix_use_runtimelinking" = yes; then
16004 shared_flag="$shared_flag "'${wl}-G'
16005 fi
16006 else
16007 # not using gcc
16008 if test "$host_cpu" = ia64; then
16009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16010 # chokes on -Wl,-G. The following line is correct:
16011 shared_flag='-G'
16012 else
16013 if test "$aix_use_runtimelinking" = yes; then
16014 shared_flag='${wl}-G'
16015 else
16016 shared_flag='${wl}-bM:SRE'
16017 fi
16018 fi
16019 fi
16020
16021 export_dynamic_flag_spec='${wl}-bexpall'
16022 # It seems that -bexpall does not export symbols beginning with
16023 # underscore (_), so it is better to generate a list of symbols to export.
16024 always_export_symbols=yes
16025 if test "$aix_use_runtimelinking" = yes; then
16026 # Warning - without using the other runtime loading flags (-brtl),
16027 # -berok will link without error, but may produce a broken library.
16028 allow_undefined_flag='-berok'
16029 # Determine the default libpath from the value encoded in an
16030 # empty executable.
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033
16034 int
16035 main ()
16036 {
16037
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16043
16044 lt_aix_libpath_sed='
16045 /Import File Strings/,/^$/ {
16046 /^0/ {
16047 s/^0 *\(.*\)$/\1/
16048 p
16049 }
16050 }'
16051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052 # Check for a 64-bit object if we didn't find anything.
16053 if test -z "$aix_libpath"; then
16054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16055 fi
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16060
16061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16062 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"
16063 else
16064 if test "$host_cpu" = ia64; then
16065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16066 allow_undefined_flag="-z nodefs"
16067 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"
16068 else
16069 # Determine the default libpath from the value encoded in an
16070 # empty executable.
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073
16074 int
16075 main ()
16076 {
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083
16084 lt_aix_libpath_sed='
16085 /Import File Strings/,/^$/ {
16086 /^0/ {
16087 s/^0 *\(.*\)$/\1/
16088 p
16089 }
16090 }'
16091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16092 # Check for a 64-bit object if we didn't find anything.
16093 if test -z "$aix_libpath"; then
16094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16095 fi
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16100
16101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16102 # Warning - without using the other run time loading flags,
16103 # -berok will link without error, but may produce a broken library.
16104 no_undefined_flag=' ${wl}-bernotok'
16105 allow_undefined_flag=' ${wl}-berok'
16106 if test "$with_gnu_ld" = yes; then
16107 # We only use this code for GNU lds that support --whole-archive.
16108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16109 else
16110 # Exported symbols can be pulled into shared objects from archives
16111 whole_archive_flag_spec='$convenience'
16112 fi
16113 archive_cmds_need_lc=yes
16114 # This is similar to how AIX traditionally builds its shared libraries.
16115 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'
16116 fi
16117 fi
16118 ;;
16119
16120 amigaos*)
16121 case $host_cpu in
16122 powerpc)
16123 # see comment about AmigaOS4 .so support
16124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 archive_expsym_cmds=''
16126 ;;
16127 m68k)
16128 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)'
16129 hardcode_libdir_flag_spec='-L$libdir'
16130 hardcode_minus_L=yes
16131 ;;
16132 esac
16133 ;;
16134
16135 bsdi[45]*)
16136 export_dynamic_flag_spec=-rdynamic
16137 ;;
16138
16139 cygwin* | mingw* | pw32* | cegcc*)
16140 # When not using gcc, we currently assume that we are using
16141 # Microsoft Visual C++.
16142 # hardcode_libdir_flag_spec is actually meaningless, as there is
16143 # no search path for DLLs.
16144 hardcode_libdir_flag_spec=' '
16145 allow_undefined_flag=unsupported
16146 # Tell ltmain to make .lib files, not .a files.
16147 libext=lib
16148 # Tell ltmain to make .dll files, not .so files.
16149 shrext_cmds=".dll"
16150 # FIXME: Setting linknames here is a bad hack.
16151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16152 # The linker will automatically build a .lib file if we build a DLL.
16153 old_archive_from_new_cmds='true'
16154 # FIXME: Should let the user specify the lib program.
16155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16156 fix_srcfile_path='`cygpath -w "$srcfile"`'
16157 enable_shared_with_static_runtimes=yes
16158 ;;
16159
16160 darwin* | rhapsody*)
16161
16162
16163 archive_cmds_need_lc=no
16164 hardcode_direct=no
16165 hardcode_automatic=yes
16166 hardcode_shlibpath_var=unsupported
16167 if test "$lt_cv_ld_force_load" = "yes"; then
16168 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\"`'
16169 else
16170 whole_archive_flag_spec=''
16171 fi
16172 link_all_deplibs=yes
16173 allow_undefined_flag="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort*) _lt_dar_can_shared=yes ;;
16176 *) _lt_dar_can_shared=$GCC ;;
16177 esac
16178 if test "$_lt_dar_can_shared" = "yes"; then
16179 output_verbose_link_cmd=func_echo_all
16180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 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}"
16183 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}"
16184
16185 else
16186 ld_shlibs=no
16187 fi
16188
16189 ;;
16190
16191 dgux*)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 hardcode_shlibpath_var=no
16195 ;;
16196
16197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16200 # extra space).
16201 freebsd2.2*)
16202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec='-R$libdir'
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16206 ;;
16207
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16209 freebsd2.*)
16210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct=yes
16212 hardcode_minus_L=yes
16213 hardcode_shlibpath_var=no
16214 ;;
16215
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd* | dragonfly*)
16218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16222 ;;
16223
16224 hpux9*)
16225 if test "$GCC" = yes; then
16226 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'
16227 else
16228 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'
16229 fi
16230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16233
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L=yes
16237 export_dynamic_flag_spec='${wl}-E'
16238 ;;
16239
16240 hpux10*)
16241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 fi
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_flag_spec_ld='+b $libdir'
16249 hardcode_libdir_separator=:
16250 hardcode_direct=yes
16251 hardcode_direct_absolute=yes
16252 export_dynamic_flag_spec='${wl}-E'
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L=yes
16256 fi
16257 ;;
16258
16259 hpux11*)
16260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16261 case $host_cpu in
16262 hppa*64*)
16263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 ;;
16265 ia64*)
16266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16267 ;;
16268 *)
16269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16270 ;;
16271 esac
16272 else
16273 case $host_cpu in
16274 hppa*64*)
16275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16276 ;;
16277 ia64*)
16278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16279 ;;
16280 *)
16281
16282 # Older versions of the 11.00 compiler do not understand -b yet
16283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16285 $as_echo_n "checking if $CC understands -b... " >&6; }
16286 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289 lt_cv_prog_compiler__b=no
16290 save_LDFLAGS="$LDFLAGS"
16291 LDFLAGS="$LDFLAGS -b"
16292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16294 # The linker can only warn and ignore the option if not recognized
16295 # So say no if there are warnings
16296 if test -s conftest.err; then
16297 # Append any errors to the config.log.
16298 cat conftest.err 1>&5
16299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16301 if diff conftest.exp conftest.er2 >/dev/null; then
16302 lt_cv_prog_compiler__b=yes
16303 fi
16304 else
16305 lt_cv_prog_compiler__b=yes
16306 fi
16307 fi
16308 $RM -r conftest*
16309 LDFLAGS="$save_LDFLAGS"
16310
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16314
16315 if test x"$lt_cv_prog_compiler__b" = xyes; then
16316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 else
16318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16319 fi
16320
16321 ;;
16322 esac
16323 fi
16324 if test "$with_gnu_ld" = no; then
16325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator=:
16327
16328 case $host_cpu in
16329 hppa*64*|ia64*)
16330 hardcode_direct=no
16331 hardcode_shlibpath_var=no
16332 ;;
16333 *)
16334 hardcode_direct=yes
16335 hardcode_direct_absolute=yes
16336 export_dynamic_flag_spec='${wl}-E'
16337
16338 # hardcode_minus_L: Not really in the search PATH,
16339 # but as the default location of the library.
16340 hardcode_minus_L=yes
16341 ;;
16342 esac
16343 fi
16344 ;;
16345
16346 irix5* | irix6* | nonstopux*)
16347 if test "$GCC" = yes; then
16348 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'
16349 # Try to use the -exported_symbol ld option, if it does not
16350 # work, assume that -exports_file does not work either and
16351 # implicitly export all symbols.
16352 save_LDFLAGS="$LDFLAGS"
16353 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 int foo(void) {}
16357 _ACEOF
16358 if ac_fn_c_try_link "$LINENO"; then :
16359 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'
16360
16361 fi
16362 rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364 LDFLAGS="$save_LDFLAGS"
16365 else
16366 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'
16367 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'
16368 fi
16369 archive_cmds_need_lc='no'
16370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16371 hardcode_libdir_separator=:
16372 inherit_rpath=yes
16373 link_all_deplibs=yes
16374 ;;
16375
16376 netbsd*)
16377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16379 else
16380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16381 fi
16382 hardcode_libdir_flag_spec='-R$libdir'
16383 hardcode_direct=yes
16384 hardcode_shlibpath_var=no
16385 ;;
16386
16387 newsos6)
16388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct=yes
16390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16391 hardcode_libdir_separator=:
16392 hardcode_shlibpath_var=no
16393 ;;
16394
16395 *nto* | *qnx*)
16396 ;;
16397
16398 openbsd*)
16399 if test -f /usr/libexec/ld.so; then
16400 hardcode_direct=yes
16401 hardcode_shlibpath_var=no
16402 hardcode_direct_absolute=yes
16403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16407 export_dynamic_flag_spec='${wl}-E'
16408 else
16409 case $host_os in
16410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec='-R$libdir'
16413 ;;
16414 *)
16415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16417 ;;
16418 esac
16419 fi
16420 else
16421 ld_shlibs=no
16422 fi
16423 ;;
16424
16425 os2*)
16426 hardcode_libdir_flag_spec='-L$libdir'
16427 hardcode_minus_L=yes
16428 allow_undefined_flag=unsupported
16429 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'
16430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16431 ;;
16432
16433 osf3*)
16434 if test "$GCC" = yes; then
16435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16436 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'
16437 else
16438 allow_undefined_flag=' -expect_unresolved \*'
16439 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'
16440 fi
16441 archive_cmds_need_lc='no'
16442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16443 hardcode_libdir_separator=:
16444 ;;
16445
16446 osf4* | osf5*) # as osf3* with the addition of -msym flag
16447 if test "$GCC" = yes; then
16448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16449 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'
16450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16451 else
16452 allow_undefined_flag=' -expect_unresolved \*'
16453 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'
16454 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~
16455 $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'
16456
16457 # Both c and cxx compiler support -rpath directly
16458 hardcode_libdir_flag_spec='-rpath $libdir'
16459 fi
16460 archive_cmds_need_lc='no'
16461 hardcode_libdir_separator=:
16462 ;;
16463
16464 solaris*)
16465 no_undefined_flag=' -z defs'
16466 if test "$GCC" = yes; then
16467 wlarc='${wl}'
16468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16471 else
16472 case `$CC -V 2>&1` in
16473 *"Compilers 5.0"*)
16474 wlarc=''
16475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16478 ;;
16479 *)
16480 wlarc='${wl}'
16481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16484 ;;
16485 esac
16486 fi
16487 hardcode_libdir_flag_spec='-R$libdir'
16488 hardcode_shlibpath_var=no
16489 case $host_os in
16490 solaris2.[0-5] | solaris2.[0-5].*) ;;
16491 *)
16492 # The compiler driver will combine and reorder linker options,
16493 # but understands `-z linker_flag'. GCC discards it without `$wl',
16494 # but is careful enough not to reorder.
16495 # Supported since Solaris 2.6 (maybe 2.5.1?)
16496 if test "$GCC" = yes; then
16497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16498 else
16499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16500 fi
16501 ;;
16502 esac
16503 link_all_deplibs=yes
16504 ;;
16505
16506 sunos4*)
16507 if test "x$host_vendor" = xsequent; then
16508 # Use $CC to link under sequent, because it throws in some extra .o
16509 # files that make .init and .fini sections work.
16510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16511 else
16512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16513 fi
16514 hardcode_libdir_flag_spec='-L$libdir'
16515 hardcode_direct=yes
16516 hardcode_minus_L=yes
16517 hardcode_shlibpath_var=no
16518 ;;
16519
16520 sysv4)
16521 case $host_vendor in
16522 sni)
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct=yes # is this really true???
16525 ;;
16526 siemens)
16527 ## LD is ld it makes a PLAMLIB
16528 ## CC just makes a GrossModule.
16529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16530 reload_cmds='$CC -r -o $output$reload_objs'
16531 hardcode_direct=no
16532 ;;
16533 motorola)
16534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16536 ;;
16537 esac
16538 runpath_var='LD_RUN_PATH'
16539 hardcode_shlibpath_var=no
16540 ;;
16541
16542 sysv4.3*)
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var=no
16545 export_dynamic_flag_spec='-Bexport'
16546 ;;
16547
16548 sysv4*MP*)
16549 if test -d /usr/nec; then
16550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_shlibpath_var=no
16552 runpath_var=LD_RUN_PATH
16553 hardcode_runpath_var=yes
16554 ld_shlibs=yes
16555 fi
16556 ;;
16557
16558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16559 no_undefined_flag='${wl}-z,text'
16560 archive_cmds_need_lc=no
16561 hardcode_shlibpath_var=no
16562 runpath_var='LD_RUN_PATH'
16563
16564 if test "$GCC" = yes; then
16565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 else
16568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 fi
16571 ;;
16572
16573 sysv5* | sco3.2v5* | sco5v6*)
16574 # Note: We can NOT use -z defs as we might desire, because we do not
16575 # link with -lc, and that would cause any symbols used from libc to
16576 # always be unresolved, which means just about no library would
16577 # ever link correctly. If we're not using GNU ld we use -z text
16578 # though, which does catch some bad symbols but isn't as heavy-handed
16579 # as -z defs.
16580 no_undefined_flag='${wl}-z,text'
16581 allow_undefined_flag='${wl}-z,nodefs'
16582 archive_cmds_need_lc=no
16583 hardcode_shlibpath_var=no
16584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16585 hardcode_libdir_separator=':'
16586 link_all_deplibs=yes
16587 export_dynamic_flag_spec='${wl}-Bexport'
16588 runpath_var='LD_RUN_PATH'
16589
16590 if test "$GCC" = yes; then
16591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 else
16594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 fi
16597 ;;
16598
16599 uts4*)
16600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_shlibpath_var=no
16603 ;;
16604
16605 *)
16606 ld_shlibs=no
16607 ;;
16608 esac
16609
16610 if test x$host_vendor = xsni; then
16611 case $host in
16612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16613 export_dynamic_flag_spec='${wl}-Blargedynsym'
16614 ;;
16615 esac
16616 fi
16617 fi
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16620 $as_echo "$ld_shlibs" >&6; }
16621 test "$ld_shlibs" = no && can_build_shared=no
16622
16623 with_gnu_ld=$with_gnu_ld
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639 #
16640 # Do we need to explicitly link libc?
16641 #
16642 case "x$archive_cmds_need_lc" in
16643 x|xyes)
16644 # Assume -lc should be added
16645 archive_cmds_need_lc=yes
16646
16647 if test "$enable_shared" = yes && test "$GCC" = yes; then
16648 case $archive_cmds in
16649 *'~'*)
16650 # FIXME: we may have to deal with multi-command sequences.
16651 ;;
16652 '$CC '*)
16653 # Test whether the compiler implicitly links with -lc since on some
16654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16655 # to ld, don't add -lc before -lgcc.
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16658 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 $RM conftest*
16662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16663
16664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16665 (eval $ac_compile) 2>&5
16666 ac_status=$?
16667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668 test $ac_status = 0; } 2>conftest.err; then
16669 soname=conftest
16670 lib=conftest
16671 libobjs=conftest.$ac_objext
16672 deplibs=
16673 wl=$lt_prog_compiler_wl
16674 pic_flag=$lt_prog_compiler_pic
16675 compiler_flags=-v
16676 linker_flags=-v
16677 verstring=
16678 output_objdir=.
16679 libname=conftest
16680 lt_save_allow_undefined_flag=$allow_undefined_flag
16681 allow_undefined_flag=
16682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16684 ac_status=$?
16685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686 test $ac_status = 0; }
16687 then
16688 lt_cv_archive_cmds_need_lc=no
16689 else
16690 lt_cv_archive_cmds_need_lc=yes
16691 fi
16692 allow_undefined_flag=$lt_save_allow_undefined_flag
16693 else
16694 cat conftest.err 1>&5
16695 fi
16696 $RM conftest*
16697
16698 fi
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16702 ;;
16703 esac
16704 fi
16705 ;;
16706 esac
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16866
16867 if test "$GCC" = yes; then
16868 case $host_os in
16869 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16870 *) lt_awk_arg="/^libraries:/" ;;
16871 esac
16872 case $host_os in
16873 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16874 *) lt_sed_strip_eq="s,=/,/,g" ;;
16875 esac
16876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16877 case $lt_search_path_spec in
16878 *\;*)
16879 # if the path contains ";" then we assume it to be the separator
16880 # otherwise default to the standard path separator (i.e. ":") - it is
16881 # assumed that no part of a normal pathname contains ";" but that should
16882 # okay in the real world where ";" in dirpaths is itself problematic.
16883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16884 ;;
16885 *)
16886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16887 ;;
16888 esac
16889 # Ok, now we have the path, separated by spaces, we can step through it
16890 # and add multilib dir if necessary.
16891 lt_tmp_lt_search_path_spec=
16892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16893 for lt_sys_path in $lt_search_path_spec; do
16894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16896 else
16897 test -d "$lt_sys_path" && \
16898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16899 fi
16900 done
16901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16902 BEGIN {RS=" "; FS="/|\n";} {
16903 lt_foo="";
16904 lt_count=0;
16905 for (lt_i = NF; lt_i > 0; lt_i--) {
16906 if ($lt_i != "" && $lt_i != ".") {
16907 if ($lt_i == "..") {
16908 lt_count++;
16909 } else {
16910 if (lt_count == 0) {
16911 lt_foo="/" $lt_i lt_foo;
16912 } else {
16913 lt_count--;
16914 }
16915 }
16916 }
16917 }
16918 if (lt_foo != "") { lt_freq[lt_foo]++; }
16919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16920 }'`
16921 # AWK program above erroneously prepends '/' to C:/dos/paths
16922 # for these hosts.
16923 case $host_os in
16924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16926 esac
16927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16928 else
16929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16930 fi
16931 library_names_spec=
16932 libname_spec='lib$name'
16933 soname_spec=
16934 shrext_cmds=".so"
16935 postinstall_cmds=
16936 postuninstall_cmds=
16937 finish_cmds=
16938 finish_eval=
16939 shlibpath_var=
16940 shlibpath_overrides_runpath=unknown
16941 version_type=none
16942 dynamic_linker="$host_os ld.so"
16943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16944 need_lib_prefix=unknown
16945 hardcode_into_libs=no
16946
16947 # when you set need_version to no, make sure it does not cause -set_version
16948 # flags to be left without arguments
16949 need_version=unknown
16950
16951 case $host_os in
16952 aix3*)
16953 version_type=linux
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16955 shlibpath_var=LIBPATH
16956
16957 # AIX 3 has no versioning support, so we append a major version to the name.
16958 soname_spec='${libname}${release}${shared_ext}$major'
16959 ;;
16960
16961 aix[4-9]*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 hardcode_into_libs=yes
16966 if test "$host_cpu" = ia64; then
16967 # AIX 5 supports IA64
16968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 else
16971 # With GCC up to 2.95.x, collect2 would create an import file
16972 # for dependence libraries. The import file would start with
16973 # the line `#! .'. This would cause the generated library to
16974 # depend on `.', always an invalid library. This was fixed in
16975 # development snapshots of GCC prior to 3.0.
16976 case $host_os in
16977 aix4 | aix4.[01] | aix4.[01].*)
16978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16979 echo ' yes '
16980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16981 :
16982 else
16983 can_build_shared=no
16984 fi
16985 ;;
16986 esac
16987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16988 # soname into executable. Probably we can add versioning support to
16989 # collect2, so additional links can be useful in future.
16990 if test "$aix_use_runtimelinking" = yes; then
16991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16992 # instead of lib<name>.a to let people know that these are not
16993 # typical AIX shared libraries.
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 else
16996 # We preserve .a as extension for shared libraries through AIX4.2
16997 # and later when we are not doing run time linking.
16998 library_names_spec='${libname}${release}.a $libname.a'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 fi
17001 shlibpath_var=LIBPATH
17002 fi
17003 ;;
17004
17005 amigaos*)
17006 case $host_cpu in
17007 powerpc)
17008 # Since July 2007 AmigaOS4 officially supports .so libraries.
17009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 ;;
17012 m68k)
17013 library_names_spec='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 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'
17016 ;;
17017 esac
17018 ;;
17019
17020 beos*)
17021 library_names_spec='${libname}${shared_ext}'
17022 dynamic_linker="$host_os ld.so"
17023 shlibpath_var=LIBRARY_PATH
17024 ;;
17025
17026 bsdi[45]*)
17027 version_type=linux
17028 need_version=no
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17038 ;;
17039
17040 cygwin* | mingw* | pw32* | cegcc*)
17041 version_type=windows
17042 shrext_cmds=".dll"
17043 need_version=no
17044 need_lib_prefix=no
17045
17046 case $GCC,$host_os in
17047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17048 library_names_spec='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname~
17055 chmod a+x \$dldir/$dlname~
17056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17058 fi'
17059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17061 $RM \$dlpath'
17062 shlibpath_overrides_runpath=yes
17063
17064 case $host_os in
17065 cygwin*)
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17068
17069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17070 ;;
17071 mingw* | cegcc*)
17072 # MinGW DLLs use traditional 'lib' prefix
17073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17074 ;;
17075 pw32*)
17076 # pw32 DLLs use 'pw' prefix rather than 'lib'
17077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17078 ;;
17079 esac
17080 ;;
17081
17082 *)
17083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17084 ;;
17085 esac
17086 dynamic_linker='Win32 ld.exe'
17087 # FIXME: first we should search . and the directory the executable is in
17088 shlibpath_var=PATH
17089 ;;
17090
17091 darwin* | rhapsody*)
17092 dynamic_linker="$host_os dyld"
17093 version_type=darwin
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17097 soname_spec='${libname}${release}${major}$shared_ext'
17098 shlibpath_overrides_runpath=yes
17099 shlibpath_var=DYLD_LIBRARY_PATH
17100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17101
17102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17104 ;;
17105
17106 dgux*)
17107 version_type=linux
17108 need_lib_prefix=no
17109 need_version=no
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 ;;
17114
17115 freebsd* | dragonfly*)
17116 # DragonFly does not have aout. When/if they implement a new
17117 # versioning mechanism, adjust this.
17118 if test -x /usr/bin/objformat; then
17119 objformat=`/usr/bin/objformat`
17120 else
17121 case $host_os in
17122 freebsd[23].*) objformat=aout ;;
17123 *) objformat=elf ;;
17124 esac
17125 fi
17126 version_type=freebsd-$objformat
17127 case $version_type in
17128 freebsd-elf*)
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17130 need_version=no
17131 need_lib_prefix=no
17132 ;;
17133 freebsd-*)
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17135 need_version=yes
17136 ;;
17137 esac
17138 shlibpath_var=LD_LIBRARY_PATH
17139 case $host_os in
17140 freebsd2.*)
17141 shlibpath_overrides_runpath=yes
17142 ;;
17143 freebsd3.[01]* | freebsdelf3.[01]*)
17144 shlibpath_overrides_runpath=yes
17145 hardcode_into_libs=yes
17146 ;;
17147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17149 shlibpath_overrides_runpath=no
17150 hardcode_into_libs=yes
17151 ;;
17152 *) # from 4.6 on, and DragonFly
17153 shlibpath_overrides_runpath=yes
17154 hardcode_into_libs=yes
17155 ;;
17156 esac
17157 ;;
17158
17159 gnu*)
17160 version_type=linux
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 hardcode_into_libs=yes
17167 ;;
17168
17169 haiku*)
17170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
17173 dynamic_linker="$host_os runtime_loader"
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 shlibpath_var=LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17179 hardcode_into_libs=yes
17180 ;;
17181
17182 hpux9* | hpux10* | hpux11*)
17183 # Give a soname corresponding to the major version so that dld.sl refuses to
17184 # link against other versions.
17185 version_type=sunos
17186 need_lib_prefix=no
17187 need_version=no
17188 case $host_cpu in
17189 ia64*)
17190 shrext_cmds='.so'
17191 hardcode_into_libs=yes
17192 dynamic_linker="$host_os dld.so"
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 if test "X$HPUX_IA64_MODE" = X32; then
17198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17199 else
17200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17201 fi
17202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17203 ;;
17204 hppa*64*)
17205 shrext_cmds='.sl'
17206 hardcode_into_libs=yes
17207 dynamic_linker="$host_os dld.sl"
17208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17214 ;;
17215 *)
17216 shrext_cmds='.sl'
17217 dynamic_linker="$host_os dld.sl"
17218 shlibpath_var=SHLIB_PATH
17219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 ;;
17223 esac
17224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17225 postinstall_cmds='chmod 555 $lib'
17226 # or fails outright, so override atomically:
17227 install_override_mode=555
17228 ;;
17229
17230 interix[3-9]*)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239 hardcode_into_libs=yes
17240 ;;
17241
17242 irix5* | irix6* | nonstopux*)
17243 case $host_os in
17244 nonstopux*) version_type=nonstopux ;;
17245 *)
17246 if test "$lt_cv_prog_gnu_ld" = yes; then
17247 version_type=linux
17248 else
17249 version_type=irix
17250 fi ;;
17251 esac
17252 need_lib_prefix=no
17253 need_version=no
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17256 case $host_os in
17257 irix5* | nonstopux*)
17258 libsuff= shlibsuff=
17259 ;;
17260 *)
17261 case $LD in # libtool.m4 will add one of these switches to LD
17262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17263 libsuff= shlibsuff= libmagic=32-bit;;
17264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17265 libsuff=32 shlibsuff=N32 libmagic=N32;;
17266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17268 *) libsuff= shlibsuff= libmagic=never-match;;
17269 esac
17270 ;;
17271 esac
17272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17273 shlibpath_overrides_runpath=no
17274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17276 hardcode_into_libs=yes
17277 ;;
17278
17279 # No shared lib support for Linux oldld, aout, or coff.
17280 linux*oldld* | linux*aout* | linux*coff*)
17281 dynamic_linker=no
17282 ;;
17283
17284 # This must be Linux ELF.
17285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=no
17294
17295 # Some binutils ld are patched to set DT_RUNPATH
17296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17298 else
17299 lt_cv_shlibpath_overrides_runpath=no
17300 save_LDFLAGS=$LDFLAGS
17301 save_libdir=$libdir
17302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17306
17307 int
17308 main ()
17309 {
17310
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 if ac_fn_c_try_link "$LINENO"; then :
17316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17317 lt_cv_shlibpath_overrides_runpath=yes
17318 fi
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17322 LDFLAGS=$save_LDFLAGS
17323 libdir=$save_libdir
17324
17325 fi
17326
17327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17328
17329 # This implies no fast_install, which is unacceptable.
17330 # Some rework will be needed to allow for fast_install
17331 # before this can be enabled.
17332 hardcode_into_libs=yes
17333
17334 # Append ld.so.conf contents to the search path
17335 if test -f /etc/ld.so.conf; then
17336 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' ' '`
17337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17338 fi
17339
17340 # We used to test for /lib/ld.so.1 and disable shared libraries on
17341 # powerpc, because MkLinux only supported shared libraries with the
17342 # GNU dynamic linker. Since this was broken with cross compilers,
17343 # most powerpc-linux boxes support dynamic linking these days and
17344 # people can always --disable-shared, the test was removed, and we
17345 # assume the GNU/Linux dynamic linker is in use.
17346 dynamic_linker='GNU/Linux ld.so'
17347 ;;
17348
17349 netbsd*)
17350 version_type=sunos
17351 need_lib_prefix=no
17352 need_version=no
17353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17356 dynamic_linker='NetBSD (a.out) ld.so'
17357 else
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 dynamic_linker='NetBSD ld.elf_so'
17361 fi
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 hardcode_into_libs=yes
17365 ;;
17366
17367 newsos6)
17368 version_type=linux
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 ;;
17373
17374 *nto* | *qnx*)
17375 version_type=qnx
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=no
17382 hardcode_into_libs=yes
17383 dynamic_linker='ldqnx.so'
17384 ;;
17385
17386 openbsd*)
17387 version_type=sunos
17388 sys_lib_dlsearch_path_spec="/usr/lib"
17389 need_lib_prefix=no
17390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17391 case $host_os in
17392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17393 *) need_version=no ;;
17394 esac
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17399 case $host_os in
17400 openbsd2.[89] | openbsd2.[89].*)
17401 shlibpath_overrides_runpath=no
17402 ;;
17403 *)
17404 shlibpath_overrides_runpath=yes
17405 ;;
17406 esac
17407 else
17408 shlibpath_overrides_runpath=yes
17409 fi
17410 ;;
17411
17412 os2*)
17413 libname_spec='$name'
17414 shrext_cmds=".dll"
17415 need_lib_prefix=no
17416 library_names_spec='$libname${shared_ext} $libname.a'
17417 dynamic_linker='OS/2 ld.exe'
17418 shlibpath_var=LIBPATH
17419 ;;
17420
17421 osf3* | osf4* | osf5*)
17422 version_type=osf
17423 need_lib_prefix=no
17424 need_version=no
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17430 ;;
17431
17432 rdos*)
17433 dynamic_linker=no
17434 ;;
17435
17436 solaris*)
17437 version_type=linux
17438 need_lib_prefix=no
17439 need_version=no
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17444 hardcode_into_libs=yes
17445 # ldd complains unless libraries are executable
17446 postinstall_cmds='chmod +x $lib'
17447 ;;
17448
17449 sunos4*)
17450 version_type=sunos
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=yes
17455 if test "$with_gnu_ld" = yes; then
17456 need_lib_prefix=no
17457 fi
17458 need_version=yes
17459 ;;
17460
17461 sysv4 | sysv4.3*)
17462 version_type=linux
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 case $host_vendor in
17467 sni)
17468 shlibpath_overrides_runpath=no
17469 need_lib_prefix=no
17470 runpath_var=LD_RUN_PATH
17471 ;;
17472 siemens)
17473 need_lib_prefix=no
17474 ;;
17475 motorola)
17476 need_lib_prefix=no
17477 need_version=no
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17480 ;;
17481 esac
17482 ;;
17483
17484 sysv4*MP*)
17485 if test -d /usr/nec ;then
17486 version_type=linux
17487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17488 soname_spec='$libname${shared_ext}.$major'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 fi
17491 ;;
17492
17493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17494 version_type=freebsd-elf
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 hardcode_into_libs=yes
17502 if test "$with_gnu_ld" = yes; then
17503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17504 else
17505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17506 case $host_os in
17507 sco3.2v5*)
17508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17509 ;;
17510 esac
17511 fi
17512 sys_lib_dlsearch_path_spec='/usr/lib'
17513 ;;
17514
17515 tpf*)
17516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=no
17523 hardcode_into_libs=yes
17524 ;;
17525
17526 uts4*)
17527 version_type=linux
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 ;;
17532
17533 *)
17534 dynamic_linker=no
17535 ;;
17536 esac
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17538 $as_echo "$dynamic_linker" >&6; }
17539 test "$dynamic_linker" = no && can_build_shared=no
17540
17541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17542 if test "$GCC" = yes; then
17543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17544 fi
17545
17546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17548 fi
17549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17551 fi
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646 hardcode_action=
17647 if test -n "$hardcode_libdir_flag_spec" ||
17648 test -n "$runpath_var" ||
17649 test "X$hardcode_automatic" = "Xyes" ; then
17650
17651 # We can hardcode non-existent directories.
17652 if test "$hardcode_direct" != no &&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17657 test "$hardcode_minus_L" != no; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action=relink
17660 else
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action=immediate
17663 fi
17664 else
17665 # We cannot hardcode anything, or else we can only hardcode existing
17666 # directories.
17667 hardcode_action=unsupported
17668 fi
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17670 $as_echo "$hardcode_action" >&6; }
17671
17672 if test "$hardcode_action" = relink ||
17673 test "$inherit_rpath" = yes; then
17674 # Fast installation is not supported
17675 enable_fast_install=no
17676 elif test "$shlibpath_overrides_runpath" = yes ||
17677 test "$enable_shared" = no; then
17678 # Fast installation is not necessary
17679 enable_fast_install=needless
17680 fi
17681
17682
17683
17684
17685
17686
17687 if test "x$enable_dlopen" != xyes; then
17688 enable_dlopen=unknown
17689 enable_dlopen_self=unknown
17690 enable_dlopen_self_static=unknown
17691 else
17692 lt_cv_dlopen=no
17693 lt_cv_dlopen_libs=
17694
17695 case $host_os in
17696 beos*)
17697 lt_cv_dlopen="load_add_on"
17698 lt_cv_dlopen_libs=
17699 lt_cv_dlopen_self=yes
17700 ;;
17701
17702 mingw* | pw32* | cegcc*)
17703 lt_cv_dlopen="LoadLibrary"
17704 lt_cv_dlopen_libs=
17705 ;;
17706
17707 cygwin*)
17708 lt_cv_dlopen="dlopen"
17709 lt_cv_dlopen_libs=
17710 ;;
17711
17712 darwin*)
17713 # if libdl is installed we need to link against it
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-ldl $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char dlopen ();
17731 int
17732 main ()
17733 {
17734 return dlopen ();
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_dl_dlopen=yes
17741 else
17742 ac_cv_lib_dl_dlopen=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17752 else
17753
17754 lt_cv_dlopen="dyld"
17755 lt_cv_dlopen_libs=
17756 lt_cv_dlopen_self=yes
17757
17758 fi
17759
17760 ;;
17761
17762 *)
17763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17764 if test "x$ac_cv_func_shl_load" = x""yes; then :
17765 lt_cv_dlopen="shl_load"
17766 else
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-ldld $LIBS"
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char shl_load ();
17784 int
17785 main ()
17786 {
17787 return shl_load ();
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 if ac_fn_c_try_link "$LINENO"; then :
17793 ac_cv_lib_dld_shl_load=yes
17794 else
17795 ac_cv_lib_dld_shl_load=no
17796 fi
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17800 fi
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17803 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17805 else
17806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17807 if test "x$ac_cv_func_dlopen" = x""yes; then :
17808 lt_cv_dlopen="dlopen"
17809 else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17814 else
17815 ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldl $LIBS"
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char dlopen ();
17827 int
17828 main ()
17829 {
17830 return dlopen ();
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 ac_cv_lib_dl_dlopen=yes
17837 else
17838 ac_cv_lib_dl_dlopen=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 LIBS=$ac_check_lib_save_LIBS
17843 fi
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17846 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-lsvld $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17866 int
17867 main ()
17868 {
17869 return dlopen ();
17870 ;
17871 return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_svld_dlopen=yes
17876 else
17877 ac_cv_lib_svld_dlopen=no
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17885 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-ldld $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17897
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dld_link ();
17905 int
17906 main ()
17907 {
17908 return dld_link ();
17909 ;
17910 return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_dld_dld_link=yes
17915 else
17916 ac_cv_lib_dld_dld_link=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17924 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934
17935 fi
17936
17937
17938 fi
17939
17940
17941 fi
17942
17943 ;;
17944 esac
17945
17946 if test "x$lt_cv_dlopen" != xno; then
17947 enable_dlopen=yes
17948 else
17949 enable_dlopen=no
17950 fi
17951
17952 case $lt_cv_dlopen in
17953 dlopen)
17954 save_CPPFLAGS="$CPPFLAGS"
17955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17956
17957 save_LDFLAGS="$LDFLAGS"
17958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17959
17960 save_LIBS="$LIBS"
17961 LIBS="$lt_cv_dlopen_libs $LIBS"
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17965 if test "${lt_cv_dlopen_self+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 if test "$cross_compiling" = yes; then :
17969 lt_cv_dlopen_self=cross
17970 else
17971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17972 lt_status=$lt_dlunknown
17973 cat > conftest.$ac_ext <<_LT_EOF
17974 #line 17974 "configure"
17975 #include "confdefs.h"
17976
17977 #if HAVE_DLFCN_H
17978 #include <dlfcn.h>
17979 #endif
17980
17981 #include <stdio.h>
17982
17983 #ifdef RTLD_GLOBAL
17984 # define LT_DLGLOBAL RTLD_GLOBAL
17985 #else
17986 # ifdef DL_GLOBAL
17987 # define LT_DLGLOBAL DL_GLOBAL
17988 # else
17989 # define LT_DLGLOBAL 0
17990 # endif
17991 #endif
17992
17993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17994 find out it does not work in some platform. */
17995 #ifndef LT_DLLAZY_OR_NOW
17996 # ifdef RTLD_LAZY
17997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17998 # else
17999 # ifdef DL_LAZY
18000 # define LT_DLLAZY_OR_NOW DL_LAZY
18001 # else
18002 # ifdef RTLD_NOW
18003 # define LT_DLLAZY_OR_NOW RTLD_NOW
18004 # else
18005 # ifdef DL_NOW
18006 # define LT_DLLAZY_OR_NOW DL_NOW
18007 # else
18008 # define LT_DLLAZY_OR_NOW 0
18009 # endif
18010 # endif
18011 # endif
18012 # endif
18013 #endif
18014
18015 /* When -fvisbility=hidden is used, assume the code has been annotated
18016 correspondingly for the symbols needed. */
18017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18018 void fnord () __attribute__((visibility("default")));
18019 #endif
18020
18021 void fnord () { int i=42; }
18022 int main ()
18023 {
18024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18025 int status = $lt_dlunknown;
18026
18027 if (self)
18028 {
18029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18030 else
18031 {
18032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 else puts (dlerror ());
18034 }
18035 /* dlclose (self); */
18036 }
18037 else
18038 puts (dlerror ());
18039
18040 return status;
18041 }
18042 _LT_EOF
18043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18044 (eval $ac_link) 2>&5
18045 ac_status=$?
18046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18048 (./conftest; exit; ) >&5 2>/dev/null
18049 lt_status=$?
18050 case x$lt_status in
18051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18054 esac
18055 else :
18056 # compilation failed
18057 lt_cv_dlopen_self=no
18058 fi
18059 fi
18060 rm -fr conftest*
18061
18062
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18065 $as_echo "$lt_cv_dlopen_self" >&6; }
18066
18067 if test "x$lt_cv_dlopen_self" = xyes; then
18068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18072 $as_echo_n "(cached) " >&6
18073 else
18074 if test "$cross_compiling" = yes; then :
18075 lt_cv_dlopen_self_static=cross
18076 else
18077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18078 lt_status=$lt_dlunknown
18079 cat > conftest.$ac_ext <<_LT_EOF
18080 #line 18080 "configure"
18081 #include "confdefs.h"
18082
18083 #if HAVE_DLFCN_H
18084 #include <dlfcn.h>
18085 #endif
18086
18087 #include <stdio.h>
18088
18089 #ifdef RTLD_GLOBAL
18090 # define LT_DLGLOBAL RTLD_GLOBAL
18091 #else
18092 # ifdef DL_GLOBAL
18093 # define LT_DLGLOBAL DL_GLOBAL
18094 # else
18095 # define LT_DLGLOBAL 0
18096 # endif
18097 #endif
18098
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100 find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18102 # ifdef RTLD_LAZY
18103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18104 # else
18105 # ifdef DL_LAZY
18106 # define LT_DLLAZY_OR_NOW DL_LAZY
18107 # else
18108 # ifdef RTLD_NOW
18109 # define LT_DLLAZY_OR_NOW RTLD_NOW
18110 # else
18111 # ifdef DL_NOW
18112 # define LT_DLLAZY_OR_NOW DL_NOW
18113 # else
18114 # define LT_DLLAZY_OR_NOW 0
18115 # endif
18116 # endif
18117 # endif
18118 # endif
18119 #endif
18120
18121 /* When -fvisbility=hidden is used, assume the code has been annotated
18122 correspondingly for the symbols needed. */
18123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18124 void fnord () __attribute__((visibility("default")));
18125 #endif
18126
18127 void fnord () { int i=42; }
18128 int main ()
18129 {
18130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131 int status = $lt_dlunknown;
18132
18133 if (self)
18134 {
18135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18136 else
18137 {
18138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 else puts (dlerror ());
18140 }
18141 /* dlclose (self); */
18142 }
18143 else
18144 puts (dlerror ());
18145
18146 return status;
18147 }
18148 _LT_EOF
18149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18150 (eval $ac_link) 2>&5
18151 ac_status=$?
18152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18154 (./conftest; exit; ) >&5 2>/dev/null
18155 lt_status=$?
18156 case x$lt_status in
18157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18160 esac
18161 else :
18162 # compilation failed
18163 lt_cv_dlopen_self_static=no
18164 fi
18165 fi
18166 rm -fr conftest*
18167
18168
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18172 fi
18173
18174 CPPFLAGS="$save_CPPFLAGS"
18175 LDFLAGS="$save_LDFLAGS"
18176 LIBS="$save_LIBS"
18177 ;;
18178 esac
18179
18180 case $lt_cv_dlopen_self in
18181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18182 *) enable_dlopen_self=unknown ;;
18183 esac
18184
18185 case $lt_cv_dlopen_self_static in
18186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18187 *) enable_dlopen_self_static=unknown ;;
18188 esac
18189 fi
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207 striplib=
18208 old_striplib=
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216 else
18217 # FIXME - insert some real tests, host_os isn't really good enough
18218 case $host_os in
18219 darwin*)
18220 if test -n "$STRIP" ; then
18221 striplib="$STRIP -x"
18222 old_striplib="$STRIP -S"
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18224 $as_echo "yes" >&6; }
18225 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18228 fi
18229 ;;
18230 *)
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18232 $as_echo "no" >&6; }
18233 ;;
18234 esac
18235 fi
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248 # Report which library types will actually be built
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18252 $as_echo "$can_build_shared" >&6; }
18253
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18255 $as_echo_n "checking whether to build shared libraries... " >&6; }
18256 test "$can_build_shared" = "no" && enable_shared=no
18257
18258 # On AIX, shared libraries and static libraries use the same namespace, and
18259 # are all built from PIC.
18260 case $host_os in
18261 aix3*)
18262 test "$enable_shared" = yes && enable_static=no
18263 if test -n "$RANLIB"; then
18264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18265 postinstall_cmds='$RANLIB $lib'
18266 fi
18267 ;;
18268
18269 aix[4-9]*)
18270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18271 test "$enable_shared" = yes && enable_static=no
18272 fi
18273 ;;
18274 esac
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18276 $as_echo "$enable_shared" >&6; }
18277
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18279 $as_echo_n "checking whether to build static libraries... " >&6; }
18280 # Make sure either enable_shared or enable_static is yes.
18281 test "$enable_shared" = yes || enable_static=yes
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18283 $as_echo "$enable_static" >&6; }
18284
18285
18286
18287
18288 fi
18289 ac_ext=c
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18294
18295 CC="$lt_save_CC"
18296
18297 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18298 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18299 (test "X$CXX" != "Xg++"))) ; then
18300 ac_ext=cpp
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18306 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18307 if test -z "$CXXCPP"; then
18308 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 # Double quotes because CXXCPP needs to be expanded
18312 for CXXCPP in "$CXX -E" "/lib/cpp"
18313 do
18314 ac_preproc_ok=false
18315 for ac_cxx_preproc_warn_flag in '' yes
18316 do
18317 # Use a header file that comes with gcc, so configuring glibc
18318 # with a fresh cross-compiler works.
18319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 # <limits.h> exists even on freestanding compilers.
18321 # On the NeXT, cc -E runs the code through the compiler's parser,
18322 # not just through cpp. "Syntax error" is here to catch this case.
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #ifdef __STDC__
18326 # include <limits.h>
18327 #else
18328 # include <assert.h>
18329 #endif
18330 Syntax error
18331 _ACEOF
18332 if ac_fn_cxx_try_cpp "$LINENO"; then :
18333
18334 else
18335 # Broken: fails on valid input.
18336 continue
18337 fi
18338 rm -f conftest.err conftest.$ac_ext
18339
18340 # OK, works on sane cases. Now check whether nonexistent headers
18341 # can be detected and how.
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <ac_nonexistent.h>
18345 _ACEOF
18346 if ac_fn_cxx_try_cpp "$LINENO"; then :
18347 # Broken: success on invalid input.
18348 continue
18349 else
18350 # Passes both tests.
18351 ac_preproc_ok=:
18352 break
18353 fi
18354 rm -f conftest.err conftest.$ac_ext
18355
18356 done
18357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18358 rm -f conftest.err conftest.$ac_ext
18359 if $ac_preproc_ok; then :
18360 break
18361 fi
18362
18363 done
18364 ac_cv_prog_CXXCPP=$CXXCPP
18365
18366 fi
18367 CXXCPP=$ac_cv_prog_CXXCPP
18368 else
18369 ac_cv_prog_CXXCPP=$CXXCPP
18370 fi
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18372 $as_echo "$CXXCPP" >&6; }
18373 ac_preproc_ok=false
18374 for ac_cxx_preproc_warn_flag in '' yes
18375 do
18376 # Use a header file that comes with gcc, so configuring glibc
18377 # with a fresh cross-compiler works.
18378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 # <limits.h> exists even on freestanding compilers.
18380 # On the NeXT, cc -E runs the code through the compiler's parser,
18381 # not just through cpp. "Syntax error" is here to catch this case.
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384 #ifdef __STDC__
18385 # include <limits.h>
18386 #else
18387 # include <assert.h>
18388 #endif
18389 Syntax error
18390 _ACEOF
18391 if ac_fn_cxx_try_cpp "$LINENO"; then :
18392
18393 else
18394 # Broken: fails on valid input.
18395 continue
18396 fi
18397 rm -f conftest.err conftest.$ac_ext
18398
18399 # OK, works on sane cases. Now check whether nonexistent headers
18400 # can be detected and how.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <ac_nonexistent.h>
18404 _ACEOF
18405 if ac_fn_cxx_try_cpp "$LINENO"; then :
18406 # Broken: success on invalid input.
18407 continue
18408 else
18409 # Passes both tests.
18410 ac_preproc_ok=:
18411 break
18412 fi
18413 rm -f conftest.err conftest.$ac_ext
18414
18415 done
18416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18417 rm -f conftest.err conftest.$ac_ext
18418 if $ac_preproc_ok; then :
18419
18420 else
18421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18423 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18424 See \`config.log' for more details." "$LINENO" 5; }
18425 fi
18426
18427 ac_ext=c
18428 ac_cpp='$CPP $CPPFLAGS'
18429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18432
18433 else
18434 _lt_caught_CXX_error=yes
18435 fi
18436
18437 ac_ext=cpp
18438 ac_cpp='$CXXCPP $CPPFLAGS'
18439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18442
18443 archive_cmds_need_lc_CXX=no
18444 allow_undefined_flag_CXX=
18445 always_export_symbols_CXX=no
18446 archive_expsym_cmds_CXX=
18447 compiler_needs_object_CXX=no
18448 export_dynamic_flag_spec_CXX=
18449 hardcode_direct_CXX=no
18450 hardcode_direct_absolute_CXX=no
18451 hardcode_libdir_flag_spec_CXX=
18452 hardcode_libdir_flag_spec_ld_CXX=
18453 hardcode_libdir_separator_CXX=
18454 hardcode_minus_L_CXX=no
18455 hardcode_shlibpath_var_CXX=unsupported
18456 hardcode_automatic_CXX=no
18457 inherit_rpath_CXX=no
18458 module_cmds_CXX=
18459 module_expsym_cmds_CXX=
18460 link_all_deplibs_CXX=unknown
18461 old_archive_cmds_CXX=$old_archive_cmds
18462 reload_flag_CXX=$reload_flag
18463 reload_cmds_CXX=$reload_cmds
18464 no_undefined_flag_CXX=
18465 whole_archive_flag_spec_CXX=
18466 enable_shared_with_static_runtimes_CXX=no
18467
18468 # Source file extension for C++ test sources.
18469 ac_ext=cpp
18470
18471 # Object file extension for compiled C++ test sources.
18472 objext=o
18473 objext_CXX=$objext
18474
18475 # No sense in running all these tests if we already determined that
18476 # the CXX compiler isn't working. Some variables (like enable_shared)
18477 # are currently assumed to apply to all compilers on this platform,
18478 # and will be corrupted by setting them based on a non-working compiler.
18479 if test "$_lt_caught_CXX_error" != yes; then
18480 # Code to be used in simple compile tests
18481 lt_simple_compile_test_code="int some_variable = 0;"
18482
18483 # Code to be used in simple link tests
18484 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18485
18486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18487
18488
18489
18490
18491
18492
18493 # If no C compiler was specified, use CC.
18494 LTCC=${LTCC-"$CC"}
18495
18496 # If no C compiler flags were specified, use CFLAGS.
18497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18498
18499 # Allow CC to be a program name with arguments.
18500 compiler=$CC
18501
18502
18503 # save warnings/boilerplate of simple test code
18504 ac_outfile=conftest.$ac_objext
18505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18507 _lt_compiler_boilerplate=`cat conftest.err`
18508 $RM conftest*
18509
18510 ac_outfile=conftest.$ac_objext
18511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18513 _lt_linker_boilerplate=`cat conftest.err`
18514 $RM -r conftest*
18515
18516
18517 # Allow CC to be a program name with arguments.
18518 lt_save_CC=$CC
18519 lt_save_LD=$LD
18520 lt_save_GCC=$GCC
18521 GCC=$GXX
18522 lt_save_with_gnu_ld=$with_gnu_ld
18523 lt_save_path_LD=$lt_cv_path_LD
18524 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18525 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18526 else
18527 $as_unset lt_cv_prog_gnu_ld
18528 fi
18529 if test -n "${lt_cv_path_LDCXX+set}"; then
18530 lt_cv_path_LD=$lt_cv_path_LDCXX
18531 else
18532 $as_unset lt_cv_path_LD
18533 fi
18534 test -z "${LDCXX+set}" || LD=$LDCXX
18535 CC=${CXX-"c++"}
18536 compiler=$CC
18537 compiler_CXX=$CC
18538 for cc_temp in $compiler""; do
18539 case $cc_temp in
18540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18542 \-*) ;;
18543 *) break;;
18544 esac
18545 done
18546 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18547
18548
18549 if test -n "$compiler"; then
18550 # We don't want -fno-exception when compiling C++ code, so set the
18551 # no_builtin_flag separately
18552 if test "$GXX" = yes; then
18553 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18554 else
18555 lt_prog_compiler_no_builtin_flag_CXX=
18556 fi
18557
18558 if test "$GXX" = yes; then
18559 # Set up default GNU C++ configuration
18560
18561
18562
18563 # Check whether --with-gnu-ld was given.
18564 if test "${with_gnu_ld+set}" = set; then :
18565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18566 else
18567 with_gnu_ld=no
18568 fi
18569
18570 ac_prog=ld
18571 if test "$GCC" = yes; then
18572 # Check if gcc -print-prog-name=ld gives a path.
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18574 $as_echo_n "checking for ld used by $CC... " >&6; }
18575 case $host in
18576 *-*-mingw*)
18577 # gcc leaves a trailing carriage return which upsets mingw
18578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18579 *)
18580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18581 esac
18582 case $ac_prog in
18583 # Accept absolute paths.
18584 [\\/]* | ?:[\\/]*)
18585 re_direlt='/[^/][^/]*/\.\./'
18586 # Canonicalize the pathname of ld
18587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18590 done
18591 test -z "$LD" && LD="$ac_prog"
18592 ;;
18593 "")
18594 # If it fails, then pretend we aren't using GCC.
18595 ac_prog=ld
18596 ;;
18597 *)
18598 # If it is relative, then search for the first ld in PATH.
18599 with_gnu_ld=unknown
18600 ;;
18601 esac
18602 elif test "$with_gnu_ld" = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18604 $as_echo_n "checking for GNU ld... " >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18607 $as_echo_n "checking for non-GNU ld... " >&6; }
18608 fi
18609 if test "${lt_cv_path_LD+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 if test -z "$LD"; then
18613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18614 for ac_dir in $PATH; do
18615 IFS="$lt_save_ifs"
18616 test -z "$ac_dir" && ac_dir=.
18617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18618 lt_cv_path_LD="$ac_dir/$ac_prog"
18619 # Check to see if the program is GNU ld. I'd rather use --version,
18620 # but apparently some variants of GNU ld only accept -v.
18621 # Break only if it was the GNU/non-GNU ld that we prefer.
18622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18623 *GNU* | *'with BFD'*)
18624 test "$with_gnu_ld" != no && break
18625 ;;
18626 *)
18627 test "$with_gnu_ld" != yes && break
18628 ;;
18629 esac
18630 fi
18631 done
18632 IFS="$lt_save_ifs"
18633 else
18634 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18635 fi
18636 fi
18637
18638 LD="$lt_cv_path_LD"
18639 if test -n "$LD"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18641 $as_echo "$LD" >&6; }
18642 else
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645 fi
18646 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18648 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18649 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18653 case `$LD -v 2>&1 </dev/null` in
18654 *GNU* | *'with BFD'*)
18655 lt_cv_prog_gnu_ld=yes
18656 ;;
18657 *)
18658 lt_cv_prog_gnu_ld=no
18659 ;;
18660 esac
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18663 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18664 with_gnu_ld=$lt_cv_prog_gnu_ld
18665
18666
18667
18668
18669
18670
18671
18672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18673 # archiving commands below assume that GNU ld is being used.
18674 if test "$with_gnu_ld" = yes; then
18675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18676 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'
18677
18678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18680
18681 # If archive_cmds runs LD, not CC, wlarc should be empty
18682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18683 # investigate it a little bit more. (MM)
18684 wlarc='${wl}'
18685
18686 # ancient GNU ld didn't support --whole-archive et. al.
18687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18688 $GREP 'no-whole-archive' > /dev/null; then
18689 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18690 else
18691 whole_archive_flag_spec_CXX=
18692 fi
18693 else
18694 with_gnu_ld=no
18695 wlarc=
18696
18697 # A generic and very simple default shared library creation
18698 # command for GNU C++ for the case where it uses the native
18699 # linker, instead of GNU ld. If possible, this setting should
18700 # overridden to take advantage of the native linker features on
18701 # the platform it is being used on.
18702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18703 fi
18704
18705 # Commands to make compiler produce verbose output that lists
18706 # what "hidden" libraries, object files and flags are used when
18707 # linking a shared library.
18708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18709
18710 else
18711 GXX=no
18712 with_gnu_ld=no
18713 wlarc=
18714 fi
18715
18716 # PORTME: fill in a description of your system's C++ link characteristics
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18719 ld_shlibs_CXX=yes
18720 case $host_os in
18721 aix3*)
18722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18724 ;;
18725 aix[4-9]*)
18726 if test "$host_cpu" = ia64; then
18727 # On IA64, the linker does run time linking by default, so we don't
18728 # have to do anything special.
18729 aix_use_runtimelinking=no
18730 exp_sym_flag='-Bexport'
18731 no_entry_flag=""
18732 else
18733 aix_use_runtimelinking=no
18734
18735 # Test if we are trying to use run time linking or normal
18736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18737 # need to do runtime linking.
18738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18739 for ld_flag in $LDFLAGS; do
18740 case $ld_flag in
18741 *-brtl*)
18742 aix_use_runtimelinking=yes
18743 break
18744 ;;
18745 esac
18746 done
18747 ;;
18748 esac
18749
18750 exp_sym_flag='-bexport'
18751 no_entry_flag='-bnoentry'
18752 fi
18753
18754 # When large executables or shared objects are built, AIX ld can
18755 # have problems creating the table of contents. If linking a library
18756 # or program results in "error TOC overflow" add -mminimal-toc to
18757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18759
18760 archive_cmds_CXX=''
18761 hardcode_direct_CXX=yes
18762 hardcode_direct_absolute_CXX=yes
18763 hardcode_libdir_separator_CXX=':'
18764 link_all_deplibs_CXX=yes
18765 file_list_spec_CXX='${wl}-f,'
18766
18767 if test "$GXX" = yes; then
18768 case $host_os in aix4.[012]|aix4.[012].*)
18769 # We only want to do this on AIX 4.2 and lower, the check
18770 # below for broken collect2 doesn't work under 4.3+
18771 collect2name=`${CC} -print-prog-name=collect2`
18772 if test -f "$collect2name" &&
18773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18774 then
18775 # We have reworked collect2
18776 :
18777 else
18778 # We have old collect2
18779 hardcode_direct_CXX=unsupported
18780 # It fails to find uninstalled libraries when the uninstalled
18781 # path is not listed in the libpath. Setting hardcode_minus_L
18782 # to unsupported forces relinking
18783 hardcode_minus_L_CXX=yes
18784 hardcode_libdir_flag_spec_CXX='-L$libdir'
18785 hardcode_libdir_separator_CXX=
18786 fi
18787 esac
18788 shared_flag='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag="$shared_flag "'${wl}-G'
18791 fi
18792 else
18793 # not using gcc
18794 if test "$host_cpu" = ia64; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18797 shared_flag='-G'
18798 else
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag='${wl}-G'
18801 else
18802 shared_flag='${wl}-bM:SRE'
18803 fi
18804 fi
18805 fi
18806
18807 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18808 # It seems that -bexpall does not export symbols beginning with
18809 # underscore (_), so it is better to generate a list of symbols to
18810 # export.
18811 always_export_symbols_CXX=yes
18812 if test "$aix_use_runtimelinking" = yes; then
18813 # Warning - without using the other runtime loading flags (-brtl),
18814 # -berok will link without error, but may produce a broken library.
18815 allow_undefined_flag_CXX='-berok'
18816 # Determine the default libpath from the value encoded in an empty
18817 # executable.
18818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h. */
18820
18821 int
18822 main ()
18823 {
18824
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 if ac_fn_cxx_try_link "$LINENO"; then :
18830
18831 lt_aix_libpath_sed='
18832 /Import File Strings/,/^$/ {
18833 /^0/ {
18834 s/^0 *\(.*\)$/\1/
18835 p
18836 }
18837 }'
18838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18839 # Check for a 64-bit object if we didn't find anything.
18840 if test -z "$aix_libpath"; then
18841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18842 fi
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18847
18848 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18849
18850 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"
18851 else
18852 if test "$host_cpu" = ia64; then
18853 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18854 allow_undefined_flag_CXX="-z nodefs"
18855 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"
18856 else
18857 # Determine the default libpath from the value encoded in an
18858 # empty executable.
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861
18862 int
18863 main ()
18864 {
18865
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 if ac_fn_cxx_try_link "$LINENO"; then :
18871
18872 lt_aix_libpath_sed='
18873 /Import File Strings/,/^$/ {
18874 /^0/ {
18875 s/^0 *\(.*\)$/\1/
18876 p
18877 }
18878 }'
18879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18880 # Check for a 64-bit object if we didn't find anything.
18881 if test -z "$aix_libpath"; then
18882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18883 fi
18884 fi
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18888
18889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18890 # Warning - without using the other run time loading flags,
18891 # -berok will link without error, but may produce a broken library.
18892 no_undefined_flag_CXX=' ${wl}-bernotok'
18893 allow_undefined_flag_CXX=' ${wl}-berok'
18894 if test "$with_gnu_ld" = yes; then
18895 # We only use this code for GNU lds that support --whole-archive.
18896 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18897 else
18898 # Exported symbols can be pulled into shared objects from archives
18899 whole_archive_flag_spec_CXX='$convenience'
18900 fi
18901 archive_cmds_need_lc_CXX=yes
18902 # This is similar to how AIX traditionally builds its shared
18903 # libraries.
18904 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'
18905 fi
18906 fi
18907 ;;
18908
18909 beos*)
18910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18911 allow_undefined_flag_CXX=unsupported
18912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18913 # support --undefined. This deserves some investigation. FIXME
18914 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18915 else
18916 ld_shlibs_CXX=no
18917 fi
18918 ;;
18919
18920 chorus*)
18921 case $cc_basename in
18922 *)
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18925 ;;
18926 esac
18927 ;;
18928
18929 cygwin* | mingw* | pw32* | cegcc*)
18930 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18931 # as there is no search path for DLLs.
18932 hardcode_libdir_flag_spec_CXX='-L$libdir'
18933 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18934 allow_undefined_flag_CXX=unsupported
18935 always_export_symbols_CXX=no
18936 enable_shared_with_static_runtimes_CXX=yes
18937
18938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18939 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'
18940 # If the export-symbols file already is a .def file (1st line
18941 # is EXPORTS), use it as is; otherwise, prepend...
18942 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18943 cp $export_symbols $output_objdir/$soname.def;
18944 else
18945 echo EXPORTS > $output_objdir/$soname.def;
18946 cat $export_symbols >> $output_objdir/$soname.def;
18947 fi~
18948 $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'
18949 else
18950 ld_shlibs_CXX=no
18951 fi
18952 ;;
18953 darwin* | rhapsody*)
18954
18955
18956 archive_cmds_need_lc_CXX=no
18957 hardcode_direct_CXX=no
18958 hardcode_automatic_CXX=yes
18959 hardcode_shlibpath_var_CXX=unsupported
18960 if test "$lt_cv_ld_force_load" = "yes"; then
18961 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\"`'
18962 else
18963 whole_archive_flag_spec_CXX=''
18964 fi
18965 link_all_deplibs_CXX=yes
18966 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18967 case $cc_basename in
18968 ifort*) _lt_dar_can_shared=yes ;;
18969 *) _lt_dar_can_shared=$GCC ;;
18970 esac
18971 if test "$_lt_dar_can_shared" = "yes"; then
18972 output_verbose_link_cmd=func_echo_all
18973 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}"
18974 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18975 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}"
18976 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}"
18977 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18978 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}"
18979 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}"
18980 fi
18981
18982 else
18983 ld_shlibs_CXX=no
18984 fi
18985
18986 ;;
18987
18988 dgux*)
18989 case $cc_basename in
18990 ec++*)
18991 # FIXME: insert proper C++ library support
18992 ld_shlibs_CXX=no
18993 ;;
18994 ghcx*)
18995 # Green Hills C++ Compiler
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18998 ;;
18999 *)
19000 # FIXME: insert proper C++ library support
19001 ld_shlibs_CXX=no
19002 ;;
19003 esac
19004 ;;
19005
19006 freebsd2.*)
19007 # C++ shared libraries reported to be fairly broken before
19008 # switch to ELF
19009 ld_shlibs_CXX=no
19010 ;;
19011
19012 freebsd-elf*)
19013 archive_cmds_need_lc_CXX=no
19014 ;;
19015
19016 freebsd* | dragonfly*)
19017 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19018 # conventions
19019 ld_shlibs_CXX=yes
19020 ;;
19021
19022 gnu*)
19023 ;;
19024
19025 haiku*)
19026 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19027 link_all_deplibs_CXX=yes
19028 ;;
19029
19030 hpux9*)
19031 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19032 hardcode_libdir_separator_CXX=:
19033 export_dynamic_flag_spec_CXX='${wl}-E'
19034 hardcode_direct_CXX=yes
19035 hardcode_minus_L_CXX=yes # Not in the search PATH,
19036 # but as the default
19037 # location of the library.
19038
19039 case $cc_basename in
19040 CC*)
19041 # FIXME: insert proper C++ library support
19042 ld_shlibs_CXX=no
19043 ;;
19044 aCC*)
19045 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'
19046 # Commands to make compiler produce verbose output that lists
19047 # what "hidden" libraries, object files and flags are used when
19048 # linking a shared library.
19049 #
19050 # There doesn't appear to be a way to prevent this compiler from
19051 # explicitly linking system object files so we need to strip them
19052 # from the output so that they don't get included in the library
19053 # dependencies.
19054 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"'
19055 ;;
19056 *)
19057 if test "$GXX" = yes; then
19058 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'
19059 else
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 fi
19063 ;;
19064 esac
19065 ;;
19066
19067 hpux10*|hpux11*)
19068 if test $with_gnu_ld = no; then
19069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19070 hardcode_libdir_separator_CXX=:
19071
19072 case $host_cpu in
19073 hppa*64*|ia64*)
19074 ;;
19075 *)
19076 export_dynamic_flag_spec_CXX='${wl}-E'
19077 ;;
19078 esac
19079 fi
19080 case $host_cpu in
19081 hppa*64*|ia64*)
19082 hardcode_direct_CXX=no
19083 hardcode_shlibpath_var_CXX=no
19084 ;;
19085 *)
19086 hardcode_direct_CXX=yes
19087 hardcode_direct_absolute_CXX=yes
19088 hardcode_minus_L_CXX=yes # Not in the search PATH,
19089 # but as the default
19090 # location of the library.
19091 ;;
19092 esac
19093
19094 case $cc_basename in
19095 CC*)
19096 # FIXME: insert proper C++ library support
19097 ld_shlibs_CXX=no
19098 ;;
19099 aCC*)
19100 case $host_cpu in
19101 hppa*64*)
19102 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19103 ;;
19104 ia64*)
19105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19106 ;;
19107 *)
19108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 ;;
19110 esac
19111 # Commands to make compiler produce verbose output that lists
19112 # what "hidden" libraries, object files and flags are used when
19113 # linking a shared library.
19114 #
19115 # There doesn't appear to be a way to prevent this compiler from
19116 # explicitly linking system object files so we need to strip them
19117 # from the output so that they don't get included in the library
19118 # dependencies.
19119 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"'
19120 ;;
19121 *)
19122 if test "$GXX" = yes; then
19123 if test $with_gnu_ld = no; then
19124 case $host_cpu in
19125 hppa*64*)
19126 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 ;;
19128 ia64*)
19129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19130 ;;
19131 *)
19132 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'
19133 ;;
19134 esac
19135 fi
19136 else
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 fi
19140 ;;
19141 esac
19142 ;;
19143
19144 interix[3-9]*)
19145 hardcode_direct_CXX=no
19146 hardcode_shlibpath_var_CXX=no
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}-E'
19149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19150 # Instead, shared libraries are loaded at an image base (0x10000000 by
19151 # default) and relocated if they conflict, which is a slow very memory
19152 # consuming and fragmenting process. To avoid this, we pick a random,
19153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19155 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'
19156 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'
19157 ;;
19158 irix5* | irix6*)
19159 case $cc_basename in
19160 CC*)
19161 # SGI C++
19162 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'
19163
19164 # Archives containing C++ object files must be created using
19165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19166 # necessary to make sure instantiated templates are included
19167 # in the archive.
19168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19169 ;;
19170 *)
19171 if test "$GXX" = yes; then
19172 if test "$with_gnu_ld" = no; then
19173 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'
19174 else
19175 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'
19176 fi
19177 fi
19178 link_all_deplibs_CXX=yes
19179 ;;
19180 esac
19181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19182 hardcode_libdir_separator_CXX=:
19183 inherit_rpath_CXX=yes
19184 ;;
19185
19186 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19187 case $cc_basename in
19188 KCC*)
19189 # Kuck and Associates, Inc. (KAI) C++ Compiler
19190
19191 # KCC will only create a shared library if the output file
19192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19193 # to its proper name (with version) after linking.
19194 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'
19195 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'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19199 #
19200 # There doesn't appear to be a way to prevent this compiler from
19201 # explicitly linking system object files so we need to strip them
19202 # from the output so that they don't get included in the library
19203 # dependencies.
19204 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"'
19205
19206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19208
19209 # Archives containing C++ object files must be created using
19210 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19211 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19212 ;;
19213 icpc* | ecpc* )
19214 # Intel C++
19215 with_gnu_ld=yes
19216 # version 8.0 and above of icpc choke on multiply defined symbols
19217 # if we add $predep_objects and $postdep_objects, however 7.1 and
19218 # earlier do not add the objects themselves.
19219 case `$CC -V 2>&1` in
19220 *"Version 7."*)
19221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222 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'
19223 ;;
19224 *) # Version 8.0 or newer
19225 tmp_idyn=
19226 case $host_cpu in
19227 ia64*) tmp_idyn=' -i_dynamic';;
19228 esac
19229 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 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'
19231 ;;
19232 esac
19233 archive_cmds_need_lc_CXX=no
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19236 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19237 ;;
19238 pgCC* | pgcpp*)
19239 # Portland Group C++ compiler
19240 case `$CC -V` in
19241 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19242 prelink_cmds_CXX='tpldir=Template.dir~
19243 rm -rf $tpldir~
19244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19246 old_archive_cmds_CXX='tpldir=Template.dir~
19247 rm -rf $tpldir~
19248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19250 $RANLIB $oldlib'
19251 archive_cmds_CXX='tpldir=Template.dir~
19252 rm -rf $tpldir~
19253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 archive_expsym_cmds_CXX='tpldir=Template.dir~
19256 rm -rf $tpldir~
19257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19258 $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'
19259 ;;
19260 *) # Version 6 and above use weak symbols
19261 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19262 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'
19263 ;;
19264 esac
19265
19266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19268 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'
19269 ;;
19270 cxx*)
19271 # Compaq C++
19272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 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'
19274
19275 runpath_var=LD_RUN_PATH
19276 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19277 hardcode_libdir_separator_CXX=:
19278
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19282 #
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19286 # dependencies.
19287 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'
19288 ;;
19289 xl* | mpixl* | bgxl*)
19290 # IBM XL 8.0 on PPC, with GNU ld
19291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19293 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 if test "x$supports_anon_versioning" = xyes; then
19295 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19297 echo "local: *; };" >> $output_objdir/$libname.ver~
19298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19299 fi
19300 ;;
19301 *)
19302 case `$CC -V 2>&1 | sed 5q` in
19303 *Sun\ C*)
19304 # Sun C++ 5.9
19305 no_undefined_flag_CXX=' -zdefs'
19306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19307 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'
19308 hardcode_libdir_flag_spec_CXX='-R$libdir'
19309 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'
19310 compiler_needs_object_CXX=yes
19311
19312 # Not sure whether something based on
19313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19314 # would be better.
19315 output_verbose_link_cmd='func_echo_all'
19316
19317 # Archives containing C++ object files must be created using
19318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19319 # necessary to make sure instantiated templates are included
19320 # in the archive.
19321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19322 ;;
19323 esac
19324 ;;
19325 esac
19326 ;;
19327
19328 lynxos*)
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19331 ;;
19332
19333 m88k*)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337
19338 mvs*)
19339 case $cc_basename in
19340 cxx*)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344 *)
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19347 ;;
19348 esac
19349 ;;
19350
19351 netbsd*)
19352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19354 wlarc=
19355 hardcode_libdir_flag_spec_CXX='-R$libdir'
19356 hardcode_direct_CXX=yes
19357 hardcode_shlibpath_var_CXX=no
19358 fi
19359 # Workaround some broken pre-1.5 toolchains
19360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19361 ;;
19362
19363 *nto* | *qnx*)
19364 ld_shlibs_CXX=yes
19365 ;;
19366
19367 openbsd2*)
19368 # C++ shared libraries are fairly broken
19369 ld_shlibs_CXX=no
19370 ;;
19371
19372 openbsd*)
19373 if test -f /usr/libexec/ld.so; then
19374 hardcode_direct_CXX=yes
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_direct_absolute_CXX=yes
19377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19380 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19381 export_dynamic_flag_spec_CXX='${wl}-E'
19382 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19383 fi
19384 output_verbose_link_cmd=func_echo_all
19385 else
19386 ld_shlibs_CXX=no
19387 fi
19388 ;;
19389
19390 osf3* | osf4* | osf5*)
19391 case $cc_basename in
19392 KCC*)
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19394
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19399
19400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX=:
19402
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 case $host in
19406 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19407 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19408 esac
19409 ;;
19410 RCC*)
19411 # Rational C++ 2.4.1
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19414 ;;
19415 cxx*)
19416 case $host in
19417 osf3*)
19418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19419 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'
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19421 ;;
19422 *)
19423 allow_undefined_flag_CXX=' -expect_unresolved \*'
19424 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'
19425 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19426 echo "-hidden">> $lib.exp~
19427 $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~
19428 $RM $lib.exp'
19429 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19430 ;;
19431 esac
19432
19433 hardcode_libdir_separator_CXX=:
19434
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 #
19439 # There doesn't appear to be a way to prevent this compiler from
19440 # explicitly linking system object files so we need to strip them
19441 # from the output so that they don't get included in the library
19442 # dependencies.
19443 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"'
19444 ;;
19445 *)
19446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19448 case $host in
19449 osf3*)
19450 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'
19451 ;;
19452 *)
19453 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'
19454 ;;
19455 esac
19456
19457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX=:
19459
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19464
19465 else
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19468 fi
19469 ;;
19470 esac
19471 ;;
19472
19473 psos*)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 ;;
19477
19478 sunos4*)
19479 case $cc_basename in
19480 CC*)
19481 # Sun C++ 4.x
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19484 ;;
19485 lcc*)
19486 # Lucid
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490 *)
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19493 ;;
19494 esac
19495 ;;
19496
19497 solaris*)
19498 case $cc_basename in
19499 CC*)
19500 # Sun C++ 4.2, 5.x and Centerline C++
19501 archive_cmds_need_lc_CXX=yes
19502 no_undefined_flag_CXX=' -zdefs'
19503 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19505 $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'
19506
19507 hardcode_libdir_flag_spec_CXX='-R$libdir'
19508 hardcode_shlibpath_var_CXX=no
19509 case $host_os in
19510 solaris2.[0-5] | solaris2.[0-5].*) ;;
19511 *)
19512 # The compiler driver will combine and reorder linker options,
19513 # but understands `-z linker_flag'.
19514 # Supported since Solaris 2.6 (maybe 2.5.1?)
19515 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19516 ;;
19517 esac
19518 link_all_deplibs_CXX=yes
19519
19520 output_verbose_link_cmd='func_echo_all'
19521
19522 # Archives containing C++ object files must be created using
19523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19524 # necessary to make sure instantiated templates are included
19525 # in the archive.
19526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19527 ;;
19528 gcx*)
19529 # Green Hills C++ Compiler
19530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19531
19532 # The C++ compiler must be used to create the archive.
19533 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19534 ;;
19535 *)
19536 # GNU C++ compiler with Solaris linker
19537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19538 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19539 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19540 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19541 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19543
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19548 else
19549 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19550 # platform.
19551 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19554
19555 # Commands to make compiler produce verbose output that lists
19556 # what "hidden" libraries, object files and flags are used when
19557 # linking a shared library.
19558 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19559 fi
19560
19561 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19562 case $host_os in
19563 solaris2.[0-5] | solaris2.[0-5].*) ;;
19564 *)
19565 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19566 ;;
19567 esac
19568 fi
19569 ;;
19570 esac
19571 ;;
19572
19573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19574 no_undefined_flag_CXX='${wl}-z,text'
19575 archive_cmds_need_lc_CXX=no
19576 hardcode_shlibpath_var_CXX=no
19577 runpath_var='LD_RUN_PATH'
19578
19579 case $cc_basename in
19580 CC*)
19581 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19582 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 ;;
19584 *)
19585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19587 ;;
19588 esac
19589 ;;
19590
19591 sysv5* | sco3.2v5* | sco5v6*)
19592 # Note: We can NOT use -z defs as we might desire, because we do not
19593 # link with -lc, and that would cause any symbols used from libc to
19594 # always be unresolved, which means just about no library would
19595 # ever link correctly. If we're not using GNU ld we use -z text
19596 # though, which does catch some bad symbols but isn't as heavy-handed
19597 # as -z defs.
19598 no_undefined_flag_CXX='${wl}-z,text'
19599 allow_undefined_flag_CXX='${wl}-z,nodefs'
19600 archive_cmds_need_lc_CXX=no
19601 hardcode_shlibpath_var_CXX=no
19602 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19603 hardcode_libdir_separator_CXX=':'
19604 link_all_deplibs_CXX=yes
19605 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19606 runpath_var='LD_RUN_PATH'
19607
19608 case $cc_basename in
19609 CC*)
19610 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19611 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19613 '"$old_archive_cmds_CXX"
19614 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19615 '"$reload_cmds_CXX"
19616 ;;
19617 *)
19618 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19620 ;;
19621 esac
19622 ;;
19623
19624 tandem*)
19625 case $cc_basename in
19626 NCC*)
19627 # NonStop-UX NCC 3.20
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631 *)
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 esac
19636 ;;
19637
19638 vxworks*)
19639 # FIXME: insert proper C++ library support
19640 ld_shlibs_CXX=no
19641 ;;
19642
19643 *)
19644 # FIXME: insert proper C++ library support
19645 ld_shlibs_CXX=no
19646 ;;
19647 esac
19648
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19650 $as_echo "$ld_shlibs_CXX" >&6; }
19651 test "$ld_shlibs_CXX" = no && can_build_shared=no
19652
19653 GCC_CXX="$GXX"
19654 LD_CXX="$LD"
19655
19656 ## CAVEAT EMPTOR:
19657 ## There is no encapsulation within the following macros, do not change
19658 ## the running order or otherwise move them around unless you know exactly
19659 ## what you are doing...
19660 # Dependencies to place before and after the object being linked:
19661 predep_objects_CXX=
19662 postdep_objects_CXX=
19663 predeps_CXX=
19664 postdeps_CXX=
19665 compiler_lib_search_path_CXX=
19666
19667 cat > conftest.$ac_ext <<_LT_EOF
19668 class Foo
19669 {
19670 public:
19671 Foo (void) { a = 0; }
19672 private:
19673 int a;
19674 };
19675 _LT_EOF
19676
19677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19678 (eval $ac_compile) 2>&5
19679 ac_status=$?
19680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681 test $ac_status = 0; }; then
19682 # Parse the compiler output and extract the necessary
19683 # objects, libraries and library flags.
19684
19685 # Sentinel used to keep track of whether or not we are before
19686 # the conftest object file.
19687 pre_test_object_deps_done=no
19688
19689 for p in `eval "$output_verbose_link_cmd"`; do
19690 case $p in
19691
19692 -L* | -R* | -l*)
19693 # Some compilers place space between "-{L,R}" and the path.
19694 # Remove the space.
19695 if test $p = "-L" ||
19696 test $p = "-R"; then
19697 prev=$p
19698 continue
19699 else
19700 prev=
19701 fi
19702
19703 if test "$pre_test_object_deps_done" = no; then
19704 case $p in
19705 -L* | -R*)
19706 # Internal compiler library paths should come after those
19707 # provided the user. The postdeps already come after the
19708 # user supplied libs so there is no need to process them.
19709 if test -z "$compiler_lib_search_path_CXX"; then
19710 compiler_lib_search_path_CXX="${prev}${p}"
19711 else
19712 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19713 fi
19714 ;;
19715 # The "-l" case would never come before the object being
19716 # linked, so don't bother handling this case.
19717 esac
19718 else
19719 if test -z "$postdeps_CXX"; then
19720 postdeps_CXX="${prev}${p}"
19721 else
19722 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19723 fi
19724 fi
19725 ;;
19726
19727 *.$objext)
19728 # This assumes that the test object file only shows up
19729 # once in the compiler output.
19730 if test "$p" = "conftest.$objext"; then
19731 pre_test_object_deps_done=yes
19732 continue
19733 fi
19734
19735 if test "$pre_test_object_deps_done" = no; then
19736 if test -z "$predep_objects_CXX"; then
19737 predep_objects_CXX="$p"
19738 else
19739 predep_objects_CXX="$predep_objects_CXX $p"
19740 fi
19741 else
19742 if test -z "$postdep_objects_CXX"; then
19743 postdep_objects_CXX="$p"
19744 else
19745 postdep_objects_CXX="$postdep_objects_CXX $p"
19746 fi
19747 fi
19748 ;;
19749
19750 *) ;; # Ignore the rest.
19751
19752 esac
19753 done
19754
19755 # Clean up.
19756 rm -f a.out a.exe
19757 else
19758 echo "libtool.m4: error: problem compiling CXX test program"
19759 fi
19760
19761 $RM -f confest.$objext
19762
19763 # PORTME: override above test on systems where it is broken
19764 case $host_os in
19765 interix[3-9]*)
19766 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19767 # hack all around it, let's just trust "g++" to DTRT.
19768 predep_objects_CXX=
19769 postdep_objects_CXX=
19770 postdeps_CXX=
19771 ;;
19772
19773 linux*)
19774 case `$CC -V 2>&1 | sed 5q` in
19775 *Sun\ C*)
19776 # Sun C++ 5.9
19777
19778 # The more standards-conforming stlport4 library is
19779 # incompatible with the Cstd library. Avoid specifying
19780 # it if it's in CXXFLAGS. Ignore libCrun as
19781 # -library=stlport4 depends on it.
19782 case " $CXX $CXXFLAGS " in
19783 *" -library=stlport4 "*)
19784 solaris_use_stlport4=yes
19785 ;;
19786 esac
19787
19788 if test "$solaris_use_stlport4" != yes; then
19789 postdeps_CXX='-library=Cstd -library=Crun'
19790 fi
19791 ;;
19792 esac
19793 ;;
19794
19795 solaris*)
19796 case $cc_basename in
19797 CC*)
19798 # The more standards-conforming stlport4 library is
19799 # incompatible with the Cstd library. Avoid specifying
19800 # it if it's in CXXFLAGS. Ignore libCrun as
19801 # -library=stlport4 depends on it.
19802 case " $CXX $CXXFLAGS " in
19803 *" -library=stlport4 "*)
19804 solaris_use_stlport4=yes
19805 ;;
19806 esac
19807
19808 # Adding this requires a known-good setup of shared libraries for
19809 # Sun compiler versions before 5.6, else PIC objects from an old
19810 # archive will be linked into the output, leading to subtle bugs.
19811 if test "$solaris_use_stlport4" != yes; then
19812 postdeps_CXX='-library=Cstd -library=Crun'
19813 fi
19814 ;;
19815 esac
19816 ;;
19817 esac
19818
19819
19820 case " $postdeps_CXX " in
19821 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19822 esac
19823 compiler_lib_search_dirs_CXX=
19824 if test -n "${compiler_lib_search_path_CXX}"; then
19825 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19826 fi
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858 lt_prog_compiler_wl_CXX=
19859 lt_prog_compiler_pic_CXX=
19860 lt_prog_compiler_static_CXX=
19861
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19864
19865 # C++ specific cases for pic, static, wl, etc.
19866 if test "$GXX" = yes; then
19867 lt_prog_compiler_wl_CXX='-Wl,'
19868 lt_prog_compiler_static_CXX='-static'
19869
19870 case $host_os in
19871 aix*)
19872 # All AIX code is PIC.
19873 if test "$host_cpu" = ia64; then
19874 # AIX 5 now supports IA64 processor
19875 lt_prog_compiler_static_CXX='-Bstatic'
19876 fi
19877 lt_prog_compiler_pic_CXX='-fPIC'
19878 ;;
19879
19880 amigaos*)
19881 case $host_cpu in
19882 powerpc)
19883 # see comment about AmigaOS4 .so support
19884 lt_prog_compiler_pic_CXX='-fPIC'
19885 ;;
19886 m68k)
19887 # FIXME: we need at least 68020 code to build shared libraries, but
19888 # adding the `-m68020' flag to GCC prevents building anything better,
19889 # like `-m68040'.
19890 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19891 ;;
19892 esac
19893 ;;
19894
19895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19896 # PIC is the default for these OSes.
19897 ;;
19898 mingw* | cygwin* | os2* | pw32* | cegcc*)
19899 # This hack is so that the source file can tell whether it is being
19900 # built for inclusion in a dll (and should export symbols for example).
19901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19902 # (--disable-auto-import) libraries
19903 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19904 ;;
19905 darwin* | rhapsody*)
19906 # PIC is the default on this platform
19907 # Common symbols not allowed in MH_DYLIB files
19908 lt_prog_compiler_pic_CXX='-fno-common'
19909 ;;
19910 *djgpp*)
19911 # DJGPP does not support shared libraries at all
19912 lt_prog_compiler_pic_CXX=
19913 ;;
19914 haiku*)
19915 # PIC is the default for Haiku.
19916 # The "-static" flag exists, but is broken.
19917 lt_prog_compiler_static_CXX=
19918 ;;
19919 interix[3-9]*)
19920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19921 # Instead, we relocate shared libraries at runtime.
19922 ;;
19923 sysv4*MP*)
19924 if test -d /usr/nec; then
19925 lt_prog_compiler_pic_CXX=-Kconform_pic
19926 fi
19927 ;;
19928 hpux*)
19929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19931 # sets the default TLS model and affects inlining.
19932 case $host_cpu in
19933 hppa*64*)
19934 ;;
19935 *)
19936 lt_prog_compiler_pic_CXX='-fPIC'
19937 ;;
19938 esac
19939 ;;
19940 *qnx* | *nto*)
19941 # QNX uses GNU C++, but need to define -shared option too, otherwise
19942 # it will coredump.
19943 lt_prog_compiler_pic_CXX='-fPIC -shared'
19944 ;;
19945 *)
19946 lt_prog_compiler_pic_CXX='-fPIC'
19947 ;;
19948 esac
19949 else
19950 case $host_os in
19951 aix[4-9]*)
19952 # All AIX code is PIC.
19953 if test "$host_cpu" = ia64; then
19954 # AIX 5 now supports IA64 processor
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 else
19957 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19958 fi
19959 ;;
19960 chorus*)
19961 case $cc_basename in
19962 cxch68*)
19963 # Green Hills C++ Compiler
19964 # _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"
19965 ;;
19966 esac
19967 ;;
19968 dgux*)
19969 case $cc_basename in
19970 ec++*)
19971 lt_prog_compiler_pic_CXX='-KPIC'
19972 ;;
19973 ghcx*)
19974 # Green Hills C++ Compiler
19975 lt_prog_compiler_pic_CXX='-pic'
19976 ;;
19977 *)
19978 ;;
19979 esac
19980 ;;
19981 freebsd* | dragonfly*)
19982 # FreeBSD uses GNU C++
19983 ;;
19984 hpux9* | hpux10* | hpux11*)
19985 case $cc_basename in
19986 CC*)
19987 lt_prog_compiler_wl_CXX='-Wl,'
19988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19989 if test "$host_cpu" != ia64; then
19990 lt_prog_compiler_pic_CXX='+Z'
19991 fi
19992 ;;
19993 aCC*)
19994 lt_prog_compiler_wl_CXX='-Wl,'
19995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19996 case $host_cpu in
19997 hppa*64*|ia64*)
19998 # +Z the default
19999 ;;
20000 *)
20001 lt_prog_compiler_pic_CXX='+Z'
20002 ;;
20003 esac
20004 ;;
20005 *)
20006 ;;
20007 esac
20008 ;;
20009 interix*)
20010 # This is c89, which is MS Visual C++ (no shared libs)
20011 # Anyone wants to do a port?
20012 ;;
20013 irix5* | irix6* | nonstopux*)
20014 case $cc_basename in
20015 CC*)
20016 lt_prog_compiler_wl_CXX='-Wl,'
20017 lt_prog_compiler_static_CXX='-non_shared'
20018 # CC pic flag -KPIC is the default.
20019 ;;
20020 *)
20021 ;;
20022 esac
20023 ;;
20024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20025 case $cc_basename in
20026 KCC*)
20027 # KAI C++ Compiler
20028 lt_prog_compiler_wl_CXX='--backend -Wl,'
20029 lt_prog_compiler_pic_CXX='-fPIC'
20030 ;;
20031 ecpc* )
20032 # old Intel C++ for x86_64 which still supported -KPIC.
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 lt_prog_compiler_pic_CXX='-KPIC'
20035 lt_prog_compiler_static_CXX='-static'
20036 ;;
20037 icpc* )
20038 # Intel C++, used to be incompatible with GCC.
20039 # ICC 10 doesn't accept -KPIC any more.
20040 lt_prog_compiler_wl_CXX='-Wl,'
20041 lt_prog_compiler_pic_CXX='-fPIC'
20042 lt_prog_compiler_static_CXX='-static'
20043 ;;
20044 pgCC* | pgcpp*)
20045 # Portland Group C++ compiler
20046 lt_prog_compiler_wl_CXX='-Wl,'
20047 lt_prog_compiler_pic_CXX='-fpic'
20048 lt_prog_compiler_static_CXX='-Bstatic'
20049 ;;
20050 cxx*)
20051 # Compaq C++
20052 # Make sure the PIC flag is empty. It appears that all Alpha
20053 # Linux and Compaq Tru64 Unix objects are PIC.
20054 lt_prog_compiler_pic_CXX=
20055 lt_prog_compiler_static_CXX='-non_shared'
20056 ;;
20057 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20058 # IBM XL 8.0, 9.0 on PPC and BlueGene
20059 lt_prog_compiler_wl_CXX='-Wl,'
20060 lt_prog_compiler_pic_CXX='-qpic'
20061 lt_prog_compiler_static_CXX='-qstaticlink'
20062 ;;
20063 *)
20064 case `$CC -V 2>&1 | sed 5q` in
20065 *Sun\ C*)
20066 # Sun C++ 5.9
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-Bstatic'
20069 lt_prog_compiler_wl_CXX='-Qoption ld '
20070 ;;
20071 esac
20072 ;;
20073 esac
20074 ;;
20075 lynxos*)
20076 ;;
20077 m88k*)
20078 ;;
20079 mvs*)
20080 case $cc_basename in
20081 cxx*)
20082 lt_prog_compiler_pic_CXX='-W c,exportall'
20083 ;;
20084 *)
20085 ;;
20086 esac
20087 ;;
20088 netbsd*)
20089 ;;
20090 *qnx* | *nto*)
20091 # QNX uses GNU C++, but need to define -shared option too, otherwise
20092 # it will coredump.
20093 lt_prog_compiler_pic_CXX='-fPIC -shared'
20094 ;;
20095 osf3* | osf4* | osf5*)
20096 case $cc_basename in
20097 KCC*)
20098 lt_prog_compiler_wl_CXX='--backend -Wl,'
20099 ;;
20100 RCC*)
20101 # Rational C++ 2.4.1
20102 lt_prog_compiler_pic_CXX='-pic'
20103 ;;
20104 cxx*)
20105 # Digital/Compaq C++
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 # Make sure the PIC flag is empty. It appears that all Alpha
20108 # Linux and Compaq Tru64 Unix objects are PIC.
20109 lt_prog_compiler_pic_CXX=
20110 lt_prog_compiler_static_CXX='-non_shared'
20111 ;;
20112 *)
20113 ;;
20114 esac
20115 ;;
20116 psos*)
20117 ;;
20118 solaris*)
20119 case $cc_basename in
20120 CC*)
20121 # Sun C++ 4.2, 5.x and Centerline C++
20122 lt_prog_compiler_pic_CXX='-KPIC'
20123 lt_prog_compiler_static_CXX='-Bstatic'
20124 lt_prog_compiler_wl_CXX='-Qoption ld '
20125 ;;
20126 gcx*)
20127 # Green Hills C++ Compiler
20128 lt_prog_compiler_pic_CXX='-PIC'
20129 ;;
20130 *)
20131 ;;
20132 esac
20133 ;;
20134 sunos4*)
20135 case $cc_basename in
20136 CC*)
20137 # Sun C++ 4.x
20138 lt_prog_compiler_pic_CXX='-pic'
20139 lt_prog_compiler_static_CXX='-Bstatic'
20140 ;;
20141 lcc*)
20142 # Lucid
20143 lt_prog_compiler_pic_CXX='-pic'
20144 ;;
20145 *)
20146 ;;
20147 esac
20148 ;;
20149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20150 case $cc_basename in
20151 CC*)
20152 lt_prog_compiler_wl_CXX='-Wl,'
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 lt_prog_compiler_static_CXX='-Bstatic'
20155 ;;
20156 esac
20157 ;;
20158 tandem*)
20159 case $cc_basename in
20160 NCC*)
20161 # NonStop-UX NCC 3.20
20162 lt_prog_compiler_pic_CXX='-KPIC'
20163 ;;
20164 *)
20165 ;;
20166 esac
20167 ;;
20168 vxworks*)
20169 ;;
20170 *)
20171 lt_prog_compiler_can_build_shared_CXX=no
20172 ;;
20173 esac
20174 fi
20175
20176 case $host_os in
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20178 *djgpp*)
20179 lt_prog_compiler_pic_CXX=
20180 ;;
20181 *)
20182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20183 ;;
20184 esac
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20186 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20187
20188
20189
20190 #
20191 # Check to make sure the PIC flag actually works.
20192 #
20193 if test -n "$lt_prog_compiler_pic_CXX"; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20195 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20196 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20197 $as_echo_n "(cached) " >&6
20198 else
20199 lt_cv_prog_compiler_pic_works_CXX=no
20200 ac_outfile=conftest.$ac_objext
20201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 # The option is referenced via a variable to avoid confusing sed.
20208 lt_compile=`echo "$ac_compile" | $SED \
20209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20211 -e 's:$: $lt_compiler_flag:'`
20212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20213 (eval "$lt_compile" 2>conftest.err)
20214 ac_status=$?
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 if (exit $ac_status) && test -s "$ac_outfile"; then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings other than the usual output.
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_pic_works_CXX=yes
20224 fi
20225 fi
20226 $RM conftest*
20227
20228 fi
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20230 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20231
20232 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20233 case $lt_prog_compiler_pic_CXX in
20234 "" | " "*) ;;
20235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20236 esac
20237 else
20238 lt_prog_compiler_pic_CXX=
20239 lt_prog_compiler_can_build_shared_CXX=no
20240 fi
20241
20242 fi
20243
20244
20245
20246 #
20247 # Check to make sure the static flag actually works.
20248 #
20249 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20251 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20252 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 lt_cv_prog_compiler_static_works_CXX=no
20256 save_LDFLAGS="$LDFLAGS"
20257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20260 # The linker can only warn and ignore the option if not recognized
20261 # So say no if there are warnings
20262 if test -s conftest.err; then
20263 # Append any errors to the config.log.
20264 cat conftest.err 1>&5
20265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20267 if diff conftest.exp conftest.er2 >/dev/null; then
20268 lt_cv_prog_compiler_static_works_CXX=yes
20269 fi
20270 else
20271 lt_cv_prog_compiler_static_works_CXX=yes
20272 fi
20273 fi
20274 $RM -r conftest*
20275 LDFLAGS="$save_LDFLAGS"
20276
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20280
20281 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20282 :
20283 else
20284 lt_prog_compiler_static_CXX=
20285 fi
20286
20287
20288
20289
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20292 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 lt_cv_prog_compiler_c_o_CXX=no
20296 $RM -r conftest 2>/dev/null
20297 mkdir conftest
20298 cd conftest
20299 mkdir out
20300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20301
20302 lt_compiler_flag="-o out/conftest2.$ac_objext"
20303 # Insert the option either (1) after the last *FLAGS variable, or
20304 # (2) before a word containing "conftest.", or (3) at the end.
20305 # Note that $ac_compile itself does not contain backslashes and begins
20306 # with a dollar sign (not a hyphen), so the echo should work correctly.
20307 lt_compile=`echo "$ac_compile" | $SED \
20308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20310 -e 's:$: $lt_compiler_flag:'`
20311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20312 (eval "$lt_compile" 2>out/conftest.err)
20313 ac_status=$?
20314 cat out/conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20317 then
20318 # The compiler can only warn and ignore the option if not recognized
20319 # So say no if there are warnings
20320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20323 lt_cv_prog_compiler_c_o_CXX=yes
20324 fi
20325 fi
20326 chmod u+w . 2>&5
20327 $RM conftest*
20328 # SGI C++ compiler will create directory out/ii_files/ for
20329 # template instantiation
20330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20331 $RM out/* && rmdir out
20332 cd ..
20333 $RM -r conftest
20334 $RM conftest*
20335
20336 fi
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20338 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20339
20340
20341
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20347 lt_cv_prog_compiler_c_o_CXX=no
20348 $RM -r conftest 2>/dev/null
20349 mkdir conftest
20350 cd conftest
20351 mkdir out
20352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20353
20354 lt_compiler_flag="-o out/conftest2.$ac_objext"
20355 # Insert the option either (1) after the last *FLAGS variable, or
20356 # (2) before a word containing "conftest.", or (3) at the end.
20357 # Note that $ac_compile itself does not contain backslashes and begins
20358 # with a dollar sign (not a hyphen), so the echo should work correctly.
20359 lt_compile=`echo "$ac_compile" | $SED \
20360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20362 -e 's:$: $lt_compiler_flag:'`
20363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20364 (eval "$lt_compile" 2>out/conftest.err)
20365 ac_status=$?
20366 cat out/conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20369 then
20370 # The compiler can only warn and ignore the option if not recognized
20371 # So say no if there are warnings
20372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20375 lt_cv_prog_compiler_c_o_CXX=yes
20376 fi
20377 fi
20378 chmod u+w . 2>&5
20379 $RM conftest*
20380 # SGI C++ compiler will create directory out/ii_files/ for
20381 # template instantiation
20382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20383 $RM out/* && rmdir out
20384 cd ..
20385 $RM -r conftest
20386 $RM conftest*
20387
20388 fi
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20391
20392
20393
20394
20395 hard_links="nottested"
20396 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20397 # do not overwrite the value of need_locks provided by the user
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20399 $as_echo_n "checking if we can lock with hard links... " >&6; }
20400 hard_links=yes
20401 $RM conftest*
20402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20403 touch conftest.a
20404 ln conftest.a conftest.b 2>&5 || hard_links=no
20405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20407 $as_echo "$hard_links" >&6; }
20408 if test "$hard_links" = no; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20410 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20411 need_locks=warn
20412 fi
20413 else
20414 need_locks=no
20415 fi
20416
20417
20418
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20421
20422 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20423 case $host_os in
20424 aix[4-9]*)
20425 # If we're using GNU nm, then we don't want the "-C" option.
20426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20427 # Also, AIX nm treats weak defined symbols like other global defined
20428 # symbols, whereas GNU nm marks them as "W".
20429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20430 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'
20431 else
20432 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'
20433 fi
20434 ;;
20435 pw32*)
20436 export_symbols_cmds_CXX="$ltdll_cmds"
20437 ;;
20438 cygwin* | mingw* | cegcc*)
20439 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'
20440 ;;
20441 *)
20442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20443 ;;
20444 esac
20445 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20446
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20448 $as_echo "$ld_shlibs_CXX" >&6; }
20449 test "$ld_shlibs_CXX" = no && can_build_shared=no
20450
20451 with_gnu_ld_CXX=$with_gnu_ld
20452
20453
20454
20455
20456
20457
20458 #
20459 # Do we need to explicitly link libc?
20460 #
20461 case "x$archive_cmds_need_lc_CXX" in
20462 x|xyes)
20463 # Assume -lc should be added
20464 archive_cmds_need_lc_CXX=yes
20465
20466 if test "$enable_shared" = yes && test "$GCC" = yes; then
20467 case $archive_cmds_CXX in
20468 *'~'*)
20469 # FIXME: we may have to deal with multi-command sequences.
20470 ;;
20471 '$CC '*)
20472 # Test whether the compiler implicitly links with -lc since on some
20473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20474 # to ld, don't add -lc before -lgcc.
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20477 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20478 $as_echo_n "(cached) " >&6
20479 else
20480 $RM conftest*
20481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20482
20483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487 test $ac_status = 0; } 2>conftest.err; then
20488 soname=conftest
20489 lib=conftest
20490 libobjs=conftest.$ac_objext
20491 deplibs=
20492 wl=$lt_prog_compiler_wl_CXX
20493 pic_flag=$lt_prog_compiler_pic_CXX
20494 compiler_flags=-v
20495 linker_flags=-v
20496 verstring=
20497 output_objdir=.
20498 libname=conftest
20499 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20500 allow_undefined_flag_CXX=
20501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20502 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20505 test $ac_status = 0; }
20506 then
20507 lt_cv_archive_cmds_need_lc_CXX=no
20508 else
20509 lt_cv_archive_cmds_need_lc_CXX=yes
20510 fi
20511 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20512 else
20513 cat conftest.err 1>&5
20514 fi
20515 $RM conftest*
20516
20517 fi
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20519 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20520 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20521 ;;
20522 esac
20523 fi
20524 ;;
20525 esac
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20592
20593 library_names_spec=
20594 libname_spec='lib$name'
20595 soname_spec=
20596 shrext_cmds=".so"
20597 postinstall_cmds=
20598 postuninstall_cmds=
20599 finish_cmds=
20600 finish_eval=
20601 shlibpath_var=
20602 shlibpath_overrides_runpath=unknown
20603 version_type=none
20604 dynamic_linker="$host_os ld.so"
20605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20606 need_lib_prefix=unknown
20607 hardcode_into_libs=no
20608
20609 # when you set need_version to no, make sure it does not cause -set_version
20610 # flags to be left without arguments
20611 need_version=unknown
20612
20613 case $host_os in
20614 aix3*)
20615 version_type=linux
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20617 shlibpath_var=LIBPATH
20618
20619 # AIX 3 has no versioning support, so we append a major version to the name.
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 ;;
20622
20623 aix[4-9]*)
20624 version_type=linux
20625 need_lib_prefix=no
20626 need_version=no
20627 hardcode_into_libs=yes
20628 if test "$host_cpu" = ia64; then
20629 # AIX 5 supports IA64
20630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 else
20633 # With GCC up to 2.95.x, collect2 would create an import file
20634 # for dependence libraries. The import file would start with
20635 # the line `#! .'. This would cause the generated library to
20636 # depend on `.', always an invalid library. This was fixed in
20637 # development snapshots of GCC prior to 3.0.
20638 case $host_os in
20639 aix4 | aix4.[01] | aix4.[01].*)
20640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20641 echo ' yes '
20642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20643 :
20644 else
20645 can_build_shared=no
20646 fi
20647 ;;
20648 esac
20649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20650 # soname into executable. Probably we can add versioning support to
20651 # collect2, so additional links can be useful in future.
20652 if test "$aix_use_runtimelinking" = yes; then
20653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20654 # instead of lib<name>.a to let people know that these are not
20655 # typical AIX shared libraries.
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 else
20658 # We preserve .a as extension for shared libraries through AIX4.2
20659 # and later when we are not doing run time linking.
20660 library_names_spec='${libname}${release}.a $libname.a'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 fi
20663 shlibpath_var=LIBPATH
20664 fi
20665 ;;
20666
20667 amigaos*)
20668 case $host_cpu in
20669 powerpc)
20670 # Since July 2007 AmigaOS4 officially supports .so libraries.
20671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 ;;
20674 m68k)
20675 library_names_spec='$libname.ixlibrary $libname.a'
20676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20677 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'
20678 ;;
20679 esac
20680 ;;
20681
20682 beos*)
20683 library_names_spec='${libname}${shared_ext}'
20684 dynamic_linker="$host_os ld.so"
20685 shlibpath_var=LIBRARY_PATH
20686 ;;
20687
20688 bsdi[45]*)
20689 version_type=linux
20690 need_version=no
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20697 # the default ld.so.conf also contains /usr/contrib/lib and
20698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20699 # libtool to hard-code these into programs
20700 ;;
20701
20702 cygwin* | mingw* | pw32* | cegcc*)
20703 version_type=windows
20704 shrext_cmds=".dll"
20705 need_version=no
20706 need_lib_prefix=no
20707
20708 case $GCC,$host_os in
20709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20710 library_names_spec='$libname.dll.a'
20711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20712 postinstall_cmds='base_file=`basename \${file}`~
20713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20714 dldir=$destdir/`dirname \$dlpath`~
20715 test -d \$dldir || mkdir -p \$dldir~
20716 $install_prog $dir/$dlname \$dldir/$dlname~
20717 chmod a+x \$dldir/$dlname~
20718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20720 fi'
20721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20722 dlpath=$dir/\$dldll~
20723 $RM \$dlpath'
20724 shlibpath_overrides_runpath=yes
20725
20726 case $host_os in
20727 cygwin*)
20728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20730
20731 ;;
20732 mingw* | cegcc*)
20733 # MinGW DLLs use traditional 'lib' prefix
20734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20735 ;;
20736 pw32*)
20737 # pw32 DLLs use 'pw' prefix rather than 'lib'
20738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20739 ;;
20740 esac
20741 ;;
20742
20743 *)
20744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20745 ;;
20746 esac
20747 dynamic_linker='Win32 ld.exe'
20748 # FIXME: first we should search . and the directory the executable is in
20749 shlibpath_var=PATH
20750 ;;
20751
20752 darwin* | rhapsody*)
20753 dynamic_linker="$host_os dyld"
20754 version_type=darwin
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20758 soname_spec='${libname}${release}${major}$shared_ext'
20759 shlibpath_overrides_runpath=yes
20760 shlibpath_var=DYLD_LIBRARY_PATH
20761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20762
20763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20764 ;;
20765
20766 dgux*)
20767 version_type=linux
20768 need_lib_prefix=no
20769 need_version=no
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20771 soname_spec='${libname}${release}${shared_ext}$major'
20772 shlibpath_var=LD_LIBRARY_PATH
20773 ;;
20774
20775 freebsd* | dragonfly*)
20776 # DragonFly does not have aout. When/if they implement a new
20777 # versioning mechanism, adjust this.
20778 if test -x /usr/bin/objformat; then
20779 objformat=`/usr/bin/objformat`
20780 else
20781 case $host_os in
20782 freebsd[23].*) objformat=aout ;;
20783 *) objformat=elf ;;
20784 esac
20785 fi
20786 version_type=freebsd-$objformat
20787 case $version_type in
20788 freebsd-elf*)
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20790 need_version=no
20791 need_lib_prefix=no
20792 ;;
20793 freebsd-*)
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20795 need_version=yes
20796 ;;
20797 esac
20798 shlibpath_var=LD_LIBRARY_PATH
20799 case $host_os in
20800 freebsd2.*)
20801 shlibpath_overrides_runpath=yes
20802 ;;
20803 freebsd3.[01]* | freebsdelf3.[01]*)
20804 shlibpath_overrides_runpath=yes
20805 hardcode_into_libs=yes
20806 ;;
20807 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20808 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20811 ;;
20812 *) # from 4.6 on, and DragonFly
20813 shlibpath_overrides_runpath=yes
20814 hardcode_into_libs=yes
20815 ;;
20816 esac
20817 ;;
20818
20819 gnu*)
20820 version_type=linux
20821 need_lib_prefix=no
20822 need_version=no
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 hardcode_into_libs=yes
20827 ;;
20828
20829 haiku*)
20830 version_type=linux
20831 need_lib_prefix=no
20832 need_version=no
20833 dynamic_linker="$host_os runtime_loader"
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20836 shlibpath_var=LIBRARY_PATH
20837 shlibpath_overrides_runpath=yes
20838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20839 hardcode_into_libs=yes
20840 ;;
20841
20842 hpux9* | hpux10* | hpux11*)
20843 # Give a soname corresponding to the major version so that dld.sl refuses to
20844 # link against other versions.
20845 version_type=sunos
20846 need_lib_prefix=no
20847 need_version=no
20848 case $host_cpu in
20849 ia64*)
20850 shrext_cmds='.so'
20851 hardcode_into_libs=yes
20852 dynamic_linker="$host_os dld.so"
20853 shlibpath_var=LD_LIBRARY_PATH
20854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec='${libname}${release}${shared_ext}$major'
20857 if test "X$HPUX_IA64_MODE" = X32; then
20858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20859 else
20860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20861 fi
20862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20863 ;;
20864 hppa*64*)
20865 shrext_cmds='.sl'
20866 hardcode_into_libs=yes
20867 dynamic_linker="$host_os dld.sl"
20868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20874 ;;
20875 *)
20876 shrext_cmds='.sl'
20877 dynamic_linker="$host_os dld.sl"
20878 shlibpath_var=SHLIB_PATH
20879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 soname_spec='${libname}${release}${shared_ext}$major'
20882 ;;
20883 esac
20884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20885 postinstall_cmds='chmod 555 $lib'
20886 # or fails outright, so override atomically:
20887 install_override_mode=555
20888 ;;
20889
20890 interix[3-9]*)
20891 version_type=linux
20892 need_lib_prefix=no
20893 need_version=no
20894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899 hardcode_into_libs=yes
20900 ;;
20901
20902 irix5* | irix6* | nonstopux*)
20903 case $host_os in
20904 nonstopux*) version_type=nonstopux ;;
20905 *)
20906 if test "$lt_cv_prog_gnu_ld" = yes; then
20907 version_type=linux
20908 else
20909 version_type=irix
20910 fi ;;
20911 esac
20912 need_lib_prefix=no
20913 need_version=no
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20916 case $host_os in
20917 irix5* | nonstopux*)
20918 libsuff= shlibsuff=
20919 ;;
20920 *)
20921 case $LD in # libtool.m4 will add one of these switches to LD
20922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20923 libsuff= shlibsuff= libmagic=32-bit;;
20924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20925 libsuff=32 shlibsuff=N32 libmagic=N32;;
20926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20928 *) libsuff= shlibsuff= libmagic=never-match;;
20929 esac
20930 ;;
20931 esac
20932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20933 shlibpath_overrides_runpath=no
20934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20936 hardcode_into_libs=yes
20937 ;;
20938
20939 # No shared lib support for Linux oldld, aout, or coff.
20940 linux*oldld* | linux*aout* | linux*coff*)
20941 dynamic_linker=no
20942 ;;
20943
20944 # This must be Linux ELF.
20945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20946 version_type=linux
20947 need_lib_prefix=no
20948 need_version=no
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath=no
20954
20955 # Some binutils ld are patched to set DT_RUNPATH
20956 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 lt_cv_shlibpath_overrides_runpath=no
20960 save_LDFLAGS=$LDFLAGS
20961 save_libdir=$libdir
20962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20965 /* end confdefs.h. */
20966
20967 int
20968 main ()
20969 {
20970
20971 ;
20972 return 0;
20973 }
20974 _ACEOF
20975 if ac_fn_cxx_try_link "$LINENO"; then :
20976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20977 lt_cv_shlibpath_overrides_runpath=yes
20978 fi
20979 fi
20980 rm -f core conftest.err conftest.$ac_objext \
20981 conftest$ac_exeext conftest.$ac_ext
20982 LDFLAGS=$save_LDFLAGS
20983 libdir=$save_libdir
20984
20985 fi
20986
20987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20988
20989 # This implies no fast_install, which is unacceptable.
20990 # Some rework will be needed to allow for fast_install
20991 # before this can be enabled.
20992 hardcode_into_libs=yes
20993
20994 # Append ld.so.conf contents to the search path
20995 if test -f /etc/ld.so.conf; then
20996 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' ' '`
20997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20998 fi
20999
21000 # We used to test for /lib/ld.so.1 and disable shared libraries on
21001 # powerpc, because MkLinux only supported shared libraries with the
21002 # GNU dynamic linker. Since this was broken with cross compilers,
21003 # most powerpc-linux boxes support dynamic linking these days and
21004 # people can always --disable-shared, the test was removed, and we
21005 # assume the GNU/Linux dynamic linker is in use.
21006 dynamic_linker='GNU/Linux ld.so'
21007 ;;
21008
21009 netbsd*)
21010 version_type=sunos
21011 need_lib_prefix=no
21012 need_version=no
21013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21016 dynamic_linker='NetBSD (a.out) ld.so'
21017 else
21018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21019 soname_spec='${libname}${release}${shared_ext}$major'
21020 dynamic_linker='NetBSD ld.elf_so'
21021 fi
21022 shlibpath_var=LD_LIBRARY_PATH
21023 shlibpath_overrides_runpath=yes
21024 hardcode_into_libs=yes
21025 ;;
21026
21027 newsos6)
21028 version_type=linux
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=yes
21032 ;;
21033
21034 *nto* | *qnx*)
21035 version_type=qnx
21036 need_lib_prefix=no
21037 need_version=no
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 soname_spec='${libname}${release}${shared_ext}$major'
21040 shlibpath_var=LD_LIBRARY_PATH
21041 shlibpath_overrides_runpath=no
21042 hardcode_into_libs=yes
21043 dynamic_linker='ldqnx.so'
21044 ;;
21045
21046 openbsd*)
21047 version_type=sunos
21048 sys_lib_dlsearch_path_spec="/usr/lib"
21049 need_lib_prefix=no
21050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21051 case $host_os in
21052 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21053 *) need_version=no ;;
21054 esac
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21057 shlibpath_var=LD_LIBRARY_PATH
21058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21059 case $host_os in
21060 openbsd2.[89] | openbsd2.[89].*)
21061 shlibpath_overrides_runpath=no
21062 ;;
21063 *)
21064 shlibpath_overrides_runpath=yes
21065 ;;
21066 esac
21067 else
21068 shlibpath_overrides_runpath=yes
21069 fi
21070 ;;
21071
21072 os2*)
21073 libname_spec='$name'
21074 shrext_cmds=".dll"
21075 need_lib_prefix=no
21076 library_names_spec='$libname${shared_ext} $libname.a'
21077 dynamic_linker='OS/2 ld.exe'
21078 shlibpath_var=LIBPATH
21079 ;;
21080
21081 osf3* | osf4* | osf5*)
21082 version_type=osf
21083 need_lib_prefix=no
21084 need_version=no
21085 soname_spec='${libname}${release}${shared_ext}$major'
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087 shlibpath_var=LD_LIBRARY_PATH
21088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21090 ;;
21091
21092 rdos*)
21093 dynamic_linker=no
21094 ;;
21095
21096 solaris*)
21097 version_type=linux
21098 need_lib_prefix=no
21099 need_version=no
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=yes
21104 hardcode_into_libs=yes
21105 # ldd complains unless libraries are executable
21106 postinstall_cmds='chmod +x $lib'
21107 ;;
21108
21109 sunos4*)
21110 version_type=sunos
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21112 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath=yes
21115 if test "$with_gnu_ld" = yes; then
21116 need_lib_prefix=no
21117 fi
21118 need_version=yes
21119 ;;
21120
21121 sysv4 | sysv4.3*)
21122 version_type=linux
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 case $host_vendor in
21127 sni)
21128 shlibpath_overrides_runpath=no
21129 need_lib_prefix=no
21130 runpath_var=LD_RUN_PATH
21131 ;;
21132 siemens)
21133 need_lib_prefix=no
21134 ;;
21135 motorola)
21136 need_lib_prefix=no
21137 need_version=no
21138 shlibpath_overrides_runpath=no
21139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21140 ;;
21141 esac
21142 ;;
21143
21144 sysv4*MP*)
21145 if test -d /usr/nec ;then
21146 version_type=linux
21147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21148 soname_spec='$libname${shared_ext}.$major'
21149 shlibpath_var=LD_LIBRARY_PATH
21150 fi
21151 ;;
21152
21153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21154 version_type=freebsd-elf
21155 need_lib_prefix=no
21156 need_version=no
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 shlibpath_var=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath=yes
21161 hardcode_into_libs=yes
21162 if test "$with_gnu_ld" = yes; then
21163 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21164 else
21165 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21166 case $host_os in
21167 sco3.2v5*)
21168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21169 ;;
21170 esac
21171 fi
21172 sys_lib_dlsearch_path_spec='/usr/lib'
21173 ;;
21174
21175 tpf*)
21176 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21177 version_type=linux
21178 need_lib_prefix=no
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 shlibpath_var=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath=no
21183 hardcode_into_libs=yes
21184 ;;
21185
21186 uts4*)
21187 version_type=linux
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec='${libname}${release}${shared_ext}$major'
21190 shlibpath_var=LD_LIBRARY_PATH
21191 ;;
21192
21193 *)
21194 dynamic_linker=no
21195 ;;
21196 esac
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21198 $as_echo "$dynamic_linker" >&6; }
21199 test "$dynamic_linker" = no && can_build_shared=no
21200
21201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21202 if test "$GCC" = yes; then
21203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21204 fi
21205
21206 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21207 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21208 fi
21209 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21210 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21211 fi
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21252 hardcode_action_CXX=
21253 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21254 test -n "$runpath_var_CXX" ||
21255 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21256
21257 # We can hardcode non-existent directories.
21258 if test "$hardcode_direct_CXX" != no &&
21259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21260 # have to relink, otherwise we might link with an installed library
21261 # when we should be linking with a yet-to-be-installed one
21262 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21263 test "$hardcode_minus_L_CXX" != no; then
21264 # Linking always hardcodes the temporary library directory.
21265 hardcode_action_CXX=relink
21266 else
21267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21268 hardcode_action_CXX=immediate
21269 fi
21270 else
21271 # We cannot hardcode anything, or else we can only hardcode existing
21272 # directories.
21273 hardcode_action_CXX=unsupported
21274 fi
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21276 $as_echo "$hardcode_action_CXX" >&6; }
21277
21278 if test "$hardcode_action_CXX" = relink ||
21279 test "$inherit_rpath_CXX" = yes; then
21280 # Fast installation is not supported
21281 enable_fast_install=no
21282 elif test "$shlibpath_overrides_runpath" = yes ||
21283 test "$enable_shared" = no; then
21284 # Fast installation is not necessary
21285 enable_fast_install=needless
21286 fi
21287
21288
21289
21290
21291
21292
21293
21294 fi # test -n "$compiler"
21295
21296 CC=$lt_save_CC
21297 LDCXX=$LD
21298 LD=$lt_save_LD
21299 GCC=$lt_save_GCC
21300 with_gnu_ld=$lt_save_with_gnu_ld
21301 lt_cv_path_LDCXX=$lt_cv_path_LD
21302 lt_cv_path_LD=$lt_save_path_LD
21303 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21304 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21305 fi # test "$_lt_caught_CXX_error" != yes
21306
21307 ac_ext=c
21308 ac_cpp='$CPP $CPPFLAGS'
21309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328 # Only expand once:
21329
21330
21331
21332
21333
21334 # Identify the assembler which will work hand-in-glove with the newly
21335 # built GCC, so that we can examine its features. This is the assembler
21336 # which will be driven by the driver program.
21337 #
21338 # If build != host, and we aren't building gas in-tree, we identify a
21339 # build->target assembler and hope that it will have the same features
21340 # as the host->target assembler we'll be using.
21341 gcc_cv_gas_major_version=
21342 gcc_cv_gas_minor_version=
21343 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21344
21345 if test "${gcc_cv_as+set}" = set; then :
21346
21347 else
21348
21349 if test -x "$DEFAULT_ASSEMBLER"; then
21350 gcc_cv_as="$DEFAULT_ASSEMBLER"
21351 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21352 && test -f ../gas/Makefile \
21353 && test x$build = x$host; then
21354 gcc_cv_as=../gas/as-new$build_exeext
21355 elif test -x as$build_exeext; then
21356 # Build using assembler in the current directory.
21357 gcc_cv_as=./as$build_exeext
21358 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21359 gcc_cv_as="$AS_FOR_TARGET"
21360 else
21361 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21362 set dummy $AS_FOR_TARGET; ac_word=$2
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21364 $as_echo_n "checking for $ac_word... " >&6; }
21365 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 case $gcc_cv_as in
21369 [\\/]* | ?:[\\/]*)
21370 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21371 ;;
21372 *)
21373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21374 for as_dir in $PATH
21375 do
21376 IFS=$as_save_IFS
21377 test -z "$as_dir" && as_dir=.
21378 for ac_exec_ext in '' $ac_executable_extensions; do
21379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21380 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21382 break 2
21383 fi
21384 done
21385 done
21386 IFS=$as_save_IFS
21387
21388 ;;
21389 esac
21390 fi
21391 gcc_cv_as=$ac_cv_path_gcc_cv_as
21392 if test -n "$gcc_cv_as"; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21394 $as_echo "$gcc_cv_as" >&6; }
21395 else
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397 $as_echo "no" >&6; }
21398 fi
21399
21400
21401 fi
21402 fi
21403
21404 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21405
21406 case "$ORIGINAL_AS_FOR_TARGET" in
21407 ./as | ./as$build_exeext) ;;
21408 *) ac_config_files="$ac_config_files as:exec-tool.in"
21409 ;;
21410 esac
21411
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21413 $as_echo_n "checking what assembler to use... " >&6; }
21414 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21415 # Single tree build which includes gas. We want to prefer it
21416 # over whatever linker top-level may have detected, since
21417 # we'll use what we're building after installation anyway.
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21419 $as_echo "newly built gas" >&6; }
21420 in_tree_gas=yes
21421 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21422 for f in $gcc_cv_as_bfd_srcdir/configure \
21423 $gcc_cv_as_gas_srcdir/configure \
21424 $gcc_cv_as_gas_srcdir/configure.in \
21425 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21426 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21427 if test x$gcc_cv_gas_version != x; then
21428 break
21429 fi
21430 done
21431 case $gcc_cv_gas_version in
21432 VERSION=[0-9]*) ;;
21433 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21434 esac
21435 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21436 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21437 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21438 case $gcc_cv_gas_patch_version in
21439 "") gcc_cv_gas_patch_version="0" ;;
21440 esac
21441 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21442 + $gcc_cv_gas_minor_version \) \* 1000 \
21443 + $gcc_cv_gas_patch_version`
21444
21445 in_tree_gas_is_elf=no
21446 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21447 || (grep 'obj_format = multi' ../gas/Makefile \
21448 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21449 then
21450 in_tree_gas_is_elf=yes
21451 fi
21452 else
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21454 $as_echo "$gcc_cv_as" >&6; }
21455 in_tree_gas=no
21456 fi
21457
21458 default_ld=
21459 # Check whether --enable-ld was given.
21460 if test "${enable_ld+set}" = set; then :
21461 enableval=$enable_ld; case "${enableval}" in
21462 no)
21463 default_ld=ld.gold
21464 ;;
21465 esac
21466 fi
21467
21468
21469 # Check whether --enable-gold was given.
21470 if test "${enable_gold+set}" = set; then :
21471 enableval=$enable_gold; case "${enableval}" in
21472 default)
21473 install_gold_as_default=yes
21474 ;;
21475 yes)
21476 if test x${default_ld} != x; then
21477 install_gold_as_default=yes
21478 fi
21479 ;;
21480 no)
21481 ;;
21482 *)
21483 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21484 ;;
21485 esac
21486 else
21487 install_gold_as_default=no
21488 fi
21489
21490
21491 # Identify the linker which will work hand-in-glove with the newly
21492 # built GCC, so that we can examine its features. This is the linker
21493 # which will be driven by the driver program.
21494 #
21495 # If build != host, and we aren't building gas in-tree, we identify a
21496 # build->target linker and hope that it will have the same features
21497 # as the host->target linker we'll be using.
21498 gcc_cv_gld_major_version=
21499 gcc_cv_gld_minor_version=
21500 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21501 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21502 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21503
21504 if test "${gcc_cv_ld+set}" = set; then :
21505
21506 else
21507
21508 if test -x "$DEFAULT_LINKER"; then
21509 gcc_cv_ld="$DEFAULT_LINKER"
21510 elif test $install_gold_as_default = yes \
21511 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21512 && test -f ../gold/Makefile \
21513 && test x$build = x$host; then
21514 gcc_cv_ld=../gold/ld-new$build_exeext
21515 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21516 && test -f ../ld/Makefile \
21517 && test x$build = x$host; then
21518 gcc_cv_ld=../ld/ld-new$build_exeext
21519 elif test -x collect-ld$build_exeext; then
21520 # Build using linker in the current directory.
21521 gcc_cv_ld=./collect-ld$build_exeext
21522 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21523 gcc_cv_ld="$LD_FOR_TARGET"
21524 else
21525 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21526 set dummy $LD_FOR_TARGET; ac_word=$2
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528 $as_echo_n "checking for $ac_word... " >&6; }
21529 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21531 else
21532 case $gcc_cv_ld in
21533 [\\/]* | ?:[\\/]*)
21534 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21535 ;;
21536 *)
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21539 do
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 for ac_exec_ext in '' $ac_executable_extensions; do
21543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21544 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546 break 2
21547 fi
21548 done
21549 done
21550 IFS=$as_save_IFS
21551
21552 ;;
21553 esac
21554 fi
21555 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21556 if test -n "$gcc_cv_ld"; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21558 $as_echo "$gcc_cv_ld" >&6; }
21559 else
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21562 fi
21563
21564
21565 fi
21566 fi
21567
21568 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21569 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21570 # if the PLUGIN_LD is set ld-new, just have it as ld
21571 # as that is the installed named.
21572 if test x$PLUGIN_LD_SUFFIX = xld-new \
21573 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21574 PLUGIN_LD_SUFFIX=ld
21575 fi
21576
21577 # Check whether --with-plugin-ld was given.
21578 if test "${with_plugin_ld+set}" = set; then :
21579 withval=$with_plugin_ld; if test x"$withval" != x; then
21580 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21581 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21582 fi
21583 fi
21584
21585
21586
21587 cat >>confdefs.h <<_ACEOF
21588 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21589 _ACEOF
21590
21591
21592 # Check to see if we are using gold instead of ld
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21594 $as_echo_n "checking whether we are using gold... " >&6; }
21595 ld_is_gold=no
21596 if test x$gcc_cv_ld != x; then
21597 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21598 | grep "GNU gold" > /dev/null; then
21599 ld_is_gold=yes
21600 fi
21601 fi
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21603 $as_echo "$ld_is_gold" >&6; }
21604
21605 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21606
21607 case "$ORIGINAL_LD_FOR_TARGET" in
21608 ./collect-ld | ./collect-ld$build_exeext) ;;
21609 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21610 ;;
21611 esac
21612
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21614 $as_echo_n "checking what linker to use... " >&6; }
21615 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21616 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21617 # Single tree build which includes ld. We want to prefer it
21618 # over whatever linker top-level may have detected, since
21619 # we'll use what we're building after installation anyway.
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21621 $as_echo "newly built ld" >&6; }
21622 in_tree_ld=yes
21623 in_tree_ld_is_elf=no
21624 if (grep 'EMUL = .*elf' ../ld/Makefile \
21625 || grep 'EMUL = .*linux' ../ld/Makefile \
21626 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21627 in_tree_ld_is_elf=yes
21628 elif test "$ld_is_gold" = yes; then
21629 in_tree_ld_is_elf=yes
21630 fi
21631 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
21632 do
21633 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21634 if test x$gcc_cv_gld_version != x; then
21635 break
21636 fi
21637 done
21638 case $gcc_cv_gld_version in
21639 VERSION=[0-9]*) ;;
21640 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21641 esac
21642 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21643 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21644 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21645 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21646 else
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21648 $as_echo "$gcc_cv_ld" >&6; }
21649 in_tree_ld=no
21650 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21651 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21652 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21653 fi
21654
21655
21656
21657
21658 # Figure out what nm we will be using.
21659 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21660 if test "${gcc_cv_nm+set}" = set; then :
21661
21662 else
21663
21664 if test -f $gcc_cv_binutils_srcdir/configure.in \
21665 && test -f ../binutils/Makefile \
21666 && test x$build = x$host; then
21667 gcc_cv_nm=../binutils/nm-new$build_exeext
21668 elif test -x nm$build_exeext; then
21669 gcc_cv_nm=./nm$build_exeext
21670 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21671 gcc_cv_nm="$NM_FOR_TARGET"
21672 else
21673 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21674 set dummy $NM_FOR_TARGET; ac_word=$2
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21676 $as_echo_n "checking for $ac_word... " >&6; }
21677 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 case $gcc_cv_nm in
21681 [\\/]* | ?:[\\/]*)
21682 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21683 ;;
21684 *)
21685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21686 for as_dir in $PATH
21687 do
21688 IFS=$as_save_IFS
21689 test -z "$as_dir" && as_dir=.
21690 for ac_exec_ext in '' $ac_executable_extensions; do
21691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21692 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21694 break 2
21695 fi
21696 done
21697 done
21698 IFS=$as_save_IFS
21699
21700 ;;
21701 esac
21702 fi
21703 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21704 if test -n "$gcc_cv_nm"; then
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21706 $as_echo "$gcc_cv_nm" >&6; }
21707 else
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709 $as_echo "no" >&6; }
21710 fi
21711
21712
21713 fi
21714 fi
21715
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21717 $as_echo_n "checking what nm to use... " >&6; }
21718 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21719 # Single tree build which includes binutils.
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21721 $as_echo "newly built nm" >&6; }
21722 in_tree_nm=yes
21723 else
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21725 $as_echo "$gcc_cv_nm" >&6; }
21726 in_tree_nm=no
21727 fi
21728
21729 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21730
21731 case "$ORIGINAL_NM_FOR_TARGET" in
21732 ./nm | ./nm$build_exeext) ;;
21733 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21734 ;;
21735 esac
21736
21737
21738 # Figure out what objdump we will be using.
21739 if test "${gcc_cv_objdump+set}" = set; then :
21740
21741 else
21742
21743 if test -f $gcc_cv_binutils_srcdir/configure.in \
21744 && test -f ../binutils/Makefile \
21745 && test x$build = x$host; then
21746 # Single tree build which includes binutils.
21747 gcc_cv_objdump=../binutils/objdump$build_exeext
21748 elif test -x objdump$build_exeext; then
21749 gcc_cv_objdump=./objdump$build_exeext
21750 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21751 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21752 else
21753 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21754 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756 $as_echo_n "checking for $ac_word... " >&6; }
21757 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21760 case $gcc_cv_objdump in
21761 [\\/]* | ?:[\\/]*)
21762 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21763 ;;
21764 *)
21765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in $PATH
21767 do
21768 IFS=$as_save_IFS
21769 test -z "$as_dir" && as_dir=.
21770 for ac_exec_ext in '' $ac_executable_extensions; do
21771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21772 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21774 break 2
21775 fi
21776 done
21777 done
21778 IFS=$as_save_IFS
21779
21780 ;;
21781 esac
21782 fi
21783 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21784 if test -n "$gcc_cv_objdump"; then
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21786 $as_echo "$gcc_cv_objdump" >&6; }
21787 else
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789 $as_echo "no" >&6; }
21790 fi
21791
21792
21793 fi
21794 fi
21795
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21797 $as_echo_n "checking what objdump to use... " >&6; }
21798 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21799 # Single tree build which includes binutils.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21801 $as_echo "newly built objdump" >&6; }
21802 elif test x$gcc_cv_objdump = x; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21804 $as_echo "not found" >&6; }
21805 else
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21807 $as_echo "$gcc_cv_objdump" >&6; }
21808 fi
21809
21810 # Figure out what readelf we will be using.
21811 if test "${gcc_cv_readelf+set}" = set; then :
21812
21813 else
21814
21815 if test -f $gcc_cv_binutils_srcdir/configure.in \
21816 && test -f ../binutils/Makefile \
21817 && test x$build = x$host; then
21818 # Single tree build which includes binutils.
21819 gcc_cv_readelf=../binutils/readelf$build_exeext
21820 elif test -x readelf$build_exeext; then
21821 gcc_cv_readelf=./readelf$build_exeext
21822 else
21823 # Extract the first word of "readelf", so it can be a program name with args.
21824 set dummy readelf; ac_word=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 case $gcc_cv_readelf in
21831 [\\/]* | ?:[\\/]*)
21832 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21833 ;;
21834 *)
21835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21836 for as_dir in $PATH
21837 do
21838 IFS=$as_save_IFS
21839 test -z "$as_dir" && as_dir=.
21840 for ac_exec_ext in '' $ac_executable_extensions; do
21841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21842 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21844 break 2
21845 fi
21846 done
21847 done
21848 IFS=$as_save_IFS
21849
21850 ;;
21851 esac
21852 fi
21853 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21854 if test -n "$gcc_cv_readelf"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21856 $as_echo "$gcc_cv_readelf" >&6; }
21857 else
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21860 fi
21861
21862
21863 fi
21864 fi
21865
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21867 $as_echo_n "checking what readelf to use... " >&6; }
21868 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21869 # Single tree build which includes binutils.
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21871 $as_echo "newly built readelf" >&6; }
21872 elif test x$gcc_cv_readelf = x; then
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21874 $as_echo "not found" >&6; }
21875 else
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21877 $as_echo "$gcc_cv_readelf" >&6; }
21878 fi
21879
21880 # Figure out what assembler alignment features are present.
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21882 $as_echo_n "checking assembler flags... " >&6; }
21883 if test "${gcc_cv_as_flags+set}" = set; then :
21884 $as_echo_n "(cached) " >&6
21885 else
21886 case "$target" in
21887 i[34567]86-*-linux*)
21888 gcc_cv_as_flags=--32
21889 ;;
21890 x86_64-*-linux-gnux32)
21891 gcc_cv_as_flags=--x32
21892 ;;
21893 x86_64-*-linux*)
21894 gcc_cv_as_flags=--64
21895 ;;
21896 powerpc*-*-darwin*)
21897 gcc_cv_as_flags="-arch ppc"
21898 ;;
21899 *)
21900 gcc_cv_as_flags=" "
21901 ;;
21902 esac
21903 fi
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21905 $as_echo "$gcc_cv_as_flags" >&6; }
21906
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21908 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21909 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21911 else
21912 gcc_cv_as_balign_and_p2align=no
21913 if test $in_tree_gas = yes; then
21914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21915 then gcc_cv_as_balign_and_p2align=yes
21916 fi
21917 elif test x$gcc_cv_as != x; then
21918 $as_echo '.balign 4
21919 .p2align 2' > conftest.s
21920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }; }
21926 then
21927 gcc_cv_as_balign_and_p2align=yes
21928 else
21929 echo "configure: failed program was" >&5
21930 cat conftest.s >&5
21931 fi
21932 rm -f conftest.o conftest.s
21933 fi
21934 fi
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21936 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21937 if test $gcc_cv_as_balign_and_p2align = yes; then
21938
21939 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21940
21941 fi
21942
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21944 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21945 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21947 else
21948 gcc_cv_as_max_skip_p2align=no
21949 if test $in_tree_gas = yes; then
21950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21951 then gcc_cv_as_max_skip_p2align=yes
21952 fi
21953 elif test x$gcc_cv_as != x; then
21954 $as_echo '.p2align 4,,7' > conftest.s
21955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21960 test $ac_status = 0; }; }
21961 then
21962 gcc_cv_as_max_skip_p2align=yes
21963 else
21964 echo "configure: failed program was" >&5
21965 cat conftest.s >&5
21966 fi
21967 rm -f conftest.o conftest.s
21968 fi
21969 fi
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21971 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21972 if test $gcc_cv_as_max_skip_p2align = yes; then
21973
21974 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21975
21976 fi
21977
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21979 $as_echo_n "checking assembler for .literal16... " >&6; }
21980 if test "${gcc_cv_as_literal16+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 gcc_cv_as_literal16=no
21984 if test $in_tree_gas = yes; then
21985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21986 then gcc_cv_as_literal16=yes
21987 fi
21988 elif test x$gcc_cv_as != x; then
21989 $as_echo '.literal16' > conftest.s
21990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21996 then
21997 gcc_cv_as_literal16=yes
21998 else
21999 echo "configure: failed program was" >&5
22000 cat conftest.s >&5
22001 fi
22002 rm -f conftest.o conftest.s
22003 fi
22004 fi
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22006 $as_echo "$gcc_cv_as_literal16" >&6; }
22007 if test $gcc_cv_as_literal16 = yes; then
22008
22009 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22010
22011 fi
22012
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22014 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22015 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22018 gcc_cv_as_subsection_m1=no
22019 if test $in_tree_gas = yes; then
22020 if test $in_tree_gas_is_elf = yes \
22021 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22022 then gcc_cv_as_subsection_m1=yes
22023 fi
22024 elif test x$gcc_cv_as != x; then
22025 $as_echo 'conftest_label1: .word 0
22026 .subsection -1
22027 conftest_label2: .word 0
22028 .previous' > conftest.s
22029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22034 test $ac_status = 0; }; }
22035 then
22036 if test x$gcc_cv_nm != x; then
22037 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22038 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22039 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22040 then :
22041 else gcc_cv_as_subsection_m1=yes
22042 fi
22043 rm -f conftest.nm1 conftest.nm2
22044 fi
22045 else
22046 echo "configure: failed program was" >&5
22047 cat conftest.s >&5
22048 fi
22049 rm -f conftest.o conftest.s
22050 fi
22051 fi
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22053 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22054 if test $gcc_cv_as_subsection_m1 = yes; then
22055
22056 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22057
22058 fi
22059
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22061 $as_echo_n "checking assembler for .weak... " >&6; }
22062 if test "${gcc_cv_as_weak+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22064 else
22065 gcc_cv_as_weak=no
22066 if test $in_tree_gas = yes; then
22067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22068 then gcc_cv_as_weak=yes
22069 fi
22070 elif test x$gcc_cv_as != x; then
22071 $as_echo ' .weak foobar' > conftest.s
22072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077 test $ac_status = 0; }; }
22078 then
22079 gcc_cv_as_weak=yes
22080 else
22081 echo "configure: failed program was" >&5
22082 cat conftest.s >&5
22083 fi
22084 rm -f conftest.o conftest.s
22085 fi
22086 fi
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22088 $as_echo "$gcc_cv_as_weak" >&6; }
22089 if test $gcc_cv_as_weak = yes; then
22090
22091 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22092
22093 fi
22094
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22096 $as_echo_n "checking assembler for .weakref... " >&6; }
22097 if test "${gcc_cv_as_weakref+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22099 else
22100 gcc_cv_as_weakref=no
22101 if test $in_tree_gas = yes; then
22102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22103 then gcc_cv_as_weakref=yes
22104 fi
22105 elif test x$gcc_cv_as != x; then
22106 $as_echo ' .weakref foobar, barfnot' > conftest.s
22107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22112 test $ac_status = 0; }; }
22113 then
22114 gcc_cv_as_weakref=yes
22115 else
22116 echo "configure: failed program was" >&5
22117 cat conftest.s >&5
22118 fi
22119 rm -f conftest.o conftest.s
22120 fi
22121 fi
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22123 $as_echo "$gcc_cv_as_weakref" >&6; }
22124 if test $gcc_cv_as_weakref = yes; then
22125
22126 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22127
22128 fi
22129
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22131 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22132 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22133 $as_echo_n "(cached) " >&6
22134 else
22135 gcc_cv_as_nsubspa_comdat=no
22136 if test $in_tree_gas = yes; then
22137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22138 then gcc_cv_as_nsubspa_comdat=yes
22139 fi
22140 elif test x$gcc_cv_as != x; then
22141 $as_echo ' .SPACE $TEXT$
22142 .NSUBSPA $CODE$,COMDAT' > conftest.s
22143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22148 test $ac_status = 0; }; }
22149 then
22150 gcc_cv_as_nsubspa_comdat=yes
22151 else
22152 echo "configure: failed program was" >&5
22153 cat conftest.s >&5
22154 fi
22155 rm -f conftest.o conftest.s
22156 fi
22157 fi
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22159 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22160 if test $gcc_cv_as_nsubspa_comdat = yes; then
22161
22162 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22163
22164 fi
22165
22166 # .hidden needs to be supported in both the assembler and the linker,
22167 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22168 # This is irritatingly difficult to feature test for; we have to check the
22169 # date string after the version number. If we've got an in-tree
22170 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22171 # to be safe.
22172 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22174 $as_echo_n "checking assembler for .hidden... " >&6; }
22175 if test "${gcc_cv_as_hidden+set}" = set; then :
22176 $as_echo_n "(cached) " >&6
22177 else
22178 gcc_cv_as_hidden=no
22179 if test $in_tree_gas = yes; then
22180 if test $in_tree_gas_is_elf = yes \
22181 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22182 then gcc_cv_as_hidden=yes
22183 fi
22184 elif test x$gcc_cv_as != x; then
22185 $as_echo ' .hidden foobar
22186 foobar:' > conftest.s
22187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22189 (eval $ac_try) 2>&5
22190 ac_status=$?
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }; }
22193 then
22194 gcc_cv_as_hidden=yes
22195 else
22196 echo "configure: failed program was" >&5
22197 cat conftest.s >&5
22198 fi
22199 rm -f conftest.o conftest.s
22200 fi
22201 fi
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22203 $as_echo "$gcc_cv_as_hidden" >&6; }
22204
22205 case "${target}" in
22206 *-*-darwin*)
22207 # Darwin as has some visibility support, though with a different syntax.
22208 gcc_cv_as_hidden=yes
22209 ;;
22210 esac
22211
22212 # gnu_indirect_function type is an extension proposed at
22213 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22214 # selection of function implementation
22215 # Check whether --enable-gnu-indirect-function was given.
22216 if test "${enable_gnu_indirect_function+set}" = set; then :
22217 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22218 yes | no) ;;
22219 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22220 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22221 esac
22222 else
22223 enable_gnu_indirect_function="$default_gnu_indirect_function"
22224 fi
22225
22226
22227 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22228
22229 cat >>confdefs.h <<_ACEOF
22230 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22231 _ACEOF
22232
22233
22234
22235 if test $in_tree_ld != yes ; then
22236 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22237 if echo "$ld_ver" | grep GNU > /dev/null; then
22238 if test x"$ld_is_gold" = xyes; then
22239 # GNU gold --version looks like this:
22240 #
22241 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22242 #
22243 # We extract the binutils version which is more familiar and specific
22244 # than the gold version.
22245 ld_vers=`echo $ld_ver | sed -n \
22246 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22247 else
22248 # GNU ld --version looks like this:
22249 #
22250 # GNU ld (GNU Binutils) 2.21.51.20110225
22251 ld_vers=`echo $ld_ver | sed -n \
22252 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22253 fi
22254 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'`
22255 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22256 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22257 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22258 else
22259 case "${target}" in
22260 *-*-solaris2*)
22261 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22262 # format.
22263 #
22264 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22265 # /usr/ccs/bin/ld has been configured.
22266 ld_ver=`$gcc_cv_ld -V 2>&1`
22267 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22268 ld_vers=`echo $ld_ver | sed -n \
22269 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22270 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22271 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22272 fi
22273 ;;
22274 esac
22275 fi
22276 fi
22277
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22279 $as_echo_n "checking linker for .hidden support... " >&6; }
22280 if test "${gcc_cv_ld_hidden+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 if test $in_tree_ld = yes ; then
22284 gcc_cv_ld_hidden=no
22285 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 \
22286 && test $in_tree_ld_is_elf = yes; then
22287 gcc_cv_ld_hidden=yes
22288 fi
22289 else
22290 gcc_cv_ld_hidden=yes
22291 if test x"$ld_is_gold" = xyes; then
22292 :
22293 elif echo "$ld_ver" | grep GNU > /dev/null; then
22294 case "${target}" in
22295 mmix-knuth-mmixware)
22296 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22297 gcc_cv_ld_hidden=no
22298 ;;
22299 esac
22300 if test 0"$ld_date" -lt 20020404; then
22301 if test -n "$ld_date"; then
22302 # If there was date string, but was earlier than 2002-04-04, fail
22303 gcc_cv_ld_hidden=no
22304 elif test -z "$ld_vers"; then
22305 # If there was no date string nor ld version number, something is wrong
22306 gcc_cv_ld_hidden=no
22307 else
22308 test -z "$ld_vers_patch" && ld_vers_patch=0
22309 if test "$ld_vers_major" -lt 2; then
22310 gcc_cv_ld_hidden=no
22311 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22312 gcc_cv_ld_hidden="no"
22313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22314 gcc_cv_ld_hidden=no
22315 fi
22316 fi
22317 fi
22318 else
22319 case "${target}" in
22320 *-*-darwin*)
22321 # Darwin ld has some visibility support.
22322 gcc_cv_ld_hidden=yes
22323 ;;
22324 hppa64*-*-hpux* | ia64*-*-hpux*)
22325 gcc_cv_ld_hidden=yes
22326 ;;
22327 *-*-solaris2.1[0-9]*)
22328 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22329 # .symbolic was only added in Solaris 9 12/02.
22330 gcc_cv_ld_hidden=yes
22331 ;;
22332 *)
22333 gcc_cv_ld_hidden=no
22334 ;;
22335 esac
22336 fi
22337 fi
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22340 $as_echo "$gcc_cv_ld_hidden" >&6; }
22341 libgcc_visibility=no
22342
22343
22344 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22345 libgcc_visibility=yes
22346
22347 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22348
22349 fi
22350
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22352 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22353 gcc_cv_ld_ro_rw_mix=unknown
22354 if test $in_tree_ld = yes ; then
22355 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 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_ld_ro_rw_mix=read-write
22358 fi
22359 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22360 echo '.section myfoosect, "a"' > conftest1.s
22361 echo '.section myfoosect, "aw"' > conftest2.s
22362 echo '.byte 1' >> conftest2.s
22363 echo '.section myfoosect, "a"' > conftest3.s
22364 echo '.byte 0' >> conftest3.s
22365 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22366 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22367 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22368 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22369 conftest2.o conftest3.o > /dev/null 2>&1; then
22370 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22371 | sed -e '/myfoosect/!d' -e N`
22372 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22373 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22374 gcc_cv_ld_ro_rw_mix=read-only
22375 else
22376 gcc_cv_ld_ro_rw_mix=read-write
22377 fi
22378 fi
22379 fi
22380 rm -f conftest.* conftest[123].*
22381 fi
22382 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22383
22384 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22385
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22388 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22389
22390 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22391 case "${target}" in
22392 *-*-solaris2*)
22393 #
22394 # Solaris 2 ld -V output looks like this for a regular version:
22395 #
22396 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22397 #
22398 # but test versions add stuff at the end:
22399 #
22400 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22401 #
22402 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22403 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22404 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22405 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22406 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22407 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22408 fi
22409 ;;
22410 esac
22411 fi
22412
22413 # Check whether --enable-initfini-array was given.
22414 if test "${enable_initfini_array+set}" = set; then :
22415 enableval=$enable_initfini_array;
22416 else
22417
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22419 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22420 if test "${gcc_cv_initfini_array+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22424 case "${target}" in
22425 ia64-*)
22426 if test "$cross_compiling" = yes; then :
22427 gcc_cv_initfini_array=no
22428 else
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22431
22432 #ifndef __ELF__
22433 #error Not an ELF OS
22434 #endif
22435 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22436 if it can be used. */
22437 static int x = -1;
22438 int main (void) { return x; }
22439 int foo (void) { x = 0; }
22440 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22441
22442 _ACEOF
22443 if ac_fn_c_try_run "$LINENO"; then :
22444 gcc_cv_initfini_array=yes
22445 else
22446 gcc_cv_initfini_array=no
22447 fi
22448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22449 conftest.$ac_objext conftest.beam conftest.$ac_ext
22450 fi
22451 ;;
22452 *)
22453 gcc_cv_initfini_array=no
22454 if test $in_tree_ld = yes ; then
22455 if test "$gcc_cv_gld_major_version" -eq 2 \
22456 -a "$gcc_cv_gld_minor_version" -ge 22 \
22457 -o "$gcc_cv_gld_major_version" -gt 2 \
22458 && test $in_tree_ld_is_elf = yes; then
22459 gcc_cv_initfini_array=yes
22460 fi
22461 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22462 cat > conftest.s <<\EOF
22463 .section .dtors,"a",%progbits
22464 .balign 4
22465 .byte 'A', 'A', 'A', 'A'
22466 .section .ctors,"a",%progbits
22467 .balign 4
22468 .byte 'B', 'B', 'B', 'B'
22469 .section .fini_array.65530,"a",%progbits
22470 .balign 4
22471 .byte 'C', 'C', 'C', 'C'
22472 .section .init_array.65530,"a",%progbits
22473 .balign 4
22474 .byte 'D', 'D', 'D', 'D'
22475 .section .dtors.64528,"a",%progbits
22476 .balign 4
22477 .byte 'E', 'E', 'E', 'E'
22478 .section .ctors.64528,"a",%progbits
22479 .balign 4
22480 .byte 'F', 'F', 'F', 'F'
22481 .section .fini_array.01005,"a",%progbits
22482 .balign 4
22483 .byte 'G', 'G', 'G', 'G'
22484 .section .init_array.01005,"a",%progbits
22485 .balign 4
22486 .byte 'H', 'H', 'H', 'H'
22487 .text
22488 .globl _start
22489 _start:
22490 EOF
22491 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22492 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22493 && $gcc_cv_objdump -s -j .init_array conftest \
22494 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22495 && $gcc_cv_objdump -s -j .fini_array conftest \
22496 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22497 gcc_cv_initfini_array=yes
22498 fi
22499 rm -f conftest conftest.*
22500 fi
22501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22502 /* end confdefs.h. */
22503
22504 #ifndef __ELF__
22505 # error Not an ELF OS
22506 #endif
22507 #include <stdlib.h>
22508 #if defined __GLIBC_PREREQ
22509 # if __GLIBC_PREREQ (2, 4)
22510 # else
22511 # error GLIBC 2.4 required
22512 # endif
22513 #else
22514 # if defined __sun__ && defined __svr4__
22515 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22516 # else
22517 # error The C library not known to support .init_array/.fini_array
22518 # endif
22519 #endif
22520
22521 _ACEOF
22522 if ac_fn_c_try_cpp "$LINENO"; then :
22523
22524 else
22525 gcc_cv_initfini_array=no
22526 fi
22527 rm -f conftest.err conftest.$ac_ext;;
22528 esac
22529 else
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22531 $as_echo_n "checking cross compile... guessing... " >&6; }
22532 gcc_cv_initfini_array=no
22533 fi
22534 fi
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22536 $as_echo "$gcc_cv_initfini_array" >&6; }
22537 enable_initfini_array=$gcc_cv_initfini_array
22538
22539 fi
22540
22541 if test $enable_initfini_array = yes; then
22542
22543 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22544
22545 fi
22546
22547 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22549 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22550 if test "${gcc_cv_as_leb128+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_leb128=no
22554 if test $in_tree_gas = yes; then
22555 if test $in_tree_gas_is_elf = yes \
22556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22557 then gcc_cv_as_leb128=yes
22558 fi
22559 elif test x$gcc_cv_as != x; then
22560 $as_echo ' .data
22561 .uleb128 L2 - L1
22562 L1:
22563 .uleb128 1280
22564 .sleb128 -1010
22565 L2:' > conftest.s
22566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22572 then
22573 # GAS versions before 2.11 do not support uleb128,
22574 # despite appearing to.
22575 # ??? There exists an elf-specific test that will crash
22576 # the assembler. Perhaps it's better to figure out whether
22577 # arbitrary sections are supported and try the test.
22578 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22579 if echo "$as_ver" | grep GNU > /dev/null; then
22580 as_vers=`echo $as_ver | sed -n \
22581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22582 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22583 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22584 if test $as_major -eq 2 && test $as_minor -lt 11
22585 then :
22586 else gcc_cv_as_leb128=yes
22587 fi
22588 fi
22589 else
22590 echo "configure: failed program was" >&5
22591 cat conftest.s >&5
22592 fi
22593 rm -f conftest.o conftest.s
22594 fi
22595 fi
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22597 $as_echo "$gcc_cv_as_leb128" >&6; }
22598 if test $gcc_cv_as_leb128 = yes; then
22599
22600 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22601
22602 fi
22603
22604 # Check if we have assembler support for unwind directives.
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22606 $as_echo_n "checking assembler for cfi directives... " >&6; }
22607 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 gcc_cv_as_cfi_directive=no
22611 if test x$gcc_cv_as != x; then
22612 $as_echo ' .text
22613 .cfi_startproc
22614 .cfi_offset 0, 0
22615 .cfi_same_value 1
22616 .cfi_def_cfa 1, 2
22617 .cfi_escape 1, 2, 3, 4, 5
22618 .cfi_endproc' > conftest.s
22619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }
22625 then
22626 case "$target" in
22627 *-*-solaris*)
22628 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22629 # read-only and read-write sections, we need to make sure that the
22630 # assembler used emits read-write .eh_frame sections.
22631 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22632 if test "x$gcc_cv_objdump" != x; then
22633 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22634 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22635 gcc_cv_as_cfi_directive=no
22636 else
22637 case "$target" in
22638 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22639 # On Solaris/x86, make sure that GCC and gas agree on using
22640 # read-only .eh_frame sections for 64-bit.
22641 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22642 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22643 sed -e /.eh_frame/!d -e N | \
22644 grep READONLY > /dev/null; then
22645 gcc_cv_as_cfi_directive=yes
22646 else
22647 gcc_cv_as_cfi_directive=no
22648 fi
22649 ;;
22650 *)
22651 gcc_cv_as_cfi_directive=yes
22652 ;;
22653 esac
22654 fi
22655 else
22656 # no objdump, err on the side of caution
22657 gcc_cv_as_cfi_directive=no
22658 fi
22659 else
22660 gcc_cv_as_cfi_directive=yes
22661 fi
22662 ;;
22663 *-*-*)
22664 gcc_cv_as_cfi_directive=yes
22665 ;;
22666 esac
22667 else
22668 echo "configure: failed program was" >&5
22669 cat conftest.s >&5
22670 fi
22671 rm -f conftest.o conftest.s
22672 fi
22673 fi
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22675 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22676
22677 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22679 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22680 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 gcc_cv_as_cfi_advance_working=no
22684 if test x$gcc_cv_as != x; then
22685 $as_echo ' .text
22686 .cfi_startproc
22687 .cfi_adjust_cfa_offset 64
22688 .skip 75040, 0
22689 .cfi_adjust_cfa_offset 128
22690 .cfi_endproc' > conftest.s
22691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22697 then
22698
22699 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22700 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22701 gcc_cv_as_cfi_advance_working=yes
22702 fi
22703
22704 else
22705 echo "configure: failed program was" >&5
22706 cat conftest.s >&5
22707 fi
22708 rm -f conftest.o conftest.s
22709 fi
22710 fi
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22712 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22713
22714 else
22715 # no objdump, err on the side of caution
22716 gcc_cv_as_cfi_advance_working=no
22717 fi
22718
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22722 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22723 _ACEOF
22724
22725
22726
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22728 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22729 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
22731 else
22732 gcc_cv_as_cfi_personality_directive=no
22733 if test x$gcc_cv_as != x; then
22734 $as_echo ' .text
22735 .cfi_startproc
22736 .cfi_personality 0, symbol
22737 .cfi_endproc' > conftest.s
22738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; }
22744 then
22745 gcc_cv_as_cfi_personality_directive=yes
22746 else
22747 echo "configure: failed program was" >&5
22748 cat conftest.s >&5
22749 fi
22750 rm -f conftest.o conftest.s
22751 fi
22752 fi
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22754 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22755
22756
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22759 then echo 1; else echo 0; fi`
22760 _ACEOF
22761
22762
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22764 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22765 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22768 gcc_cv_as_cfi_sections_directive=no
22769 if test x$gcc_cv_as != x; then
22770 $as_echo ' .text
22771 .cfi_sections .debug_frame, .eh_frame
22772 .cfi_startproc
22773 .cfi_endproc' > conftest.s
22774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22779 test $ac_status = 0; }; }
22780 then
22781 case $target_os in
22782 win32 | pe | cygwin* | mingw32* | uwin*)
22783 # Need to check that we generated the correct relocation for the
22784 # .debug_frame section. This was fixed for binutils 2.21.
22785 gcc_cv_as_cfi_sections_directive=no
22786 if test "x$gcc_cv_objdump" != x; then
22787 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22788 grep secrel > /dev/null; then
22789 gcc_cv_as_cfi_sections_directive=yes
22790 fi
22791 fi
22792 ;;
22793 *)
22794 gcc_cv_as_cfi_sections_directive=yes
22795 ;;
22796 esac
22797 else
22798 echo "configure: failed program was" >&5
22799 cat conftest.s >&5
22800 fi
22801 rm -f conftest.o conftest.s
22802 fi
22803 fi
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22805 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22806
22807
22808
22809 cat >>confdefs.h <<_ACEOF
22810 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22811 then echo 1; else echo 0; fi`
22812 _ACEOF
22813
22814
22815 # GAS versions up to and including 2.11.0 may mis-optimize
22816 # .eh_frame data.
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22818 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22819 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22821 else
22822 gcc_cv_as_eh_frame=no
22823 if test $in_tree_gas = yes; then
22824 if test $in_tree_gas_is_elf = yes \
22825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22826 then gcc_cv_as_eh_frame=yes
22827 fi
22828 elif test x$gcc_cv_as != x; then
22829 $as_echo ' .text
22830 .LFB1:
22831 .4byte 0
22832 .L1:
22833 .4byte 0
22834 .LFE1:
22835 .section .eh_frame,"aw",@progbits
22836 __FRAME_BEGIN__:
22837 .4byte .LECIE1-.LSCIE1
22838 .LSCIE1:
22839 .4byte 0x0
22840 .byte 0x1
22841 .ascii "z\0"
22842 .byte 0x1
22843 .byte 0x78
22844 .byte 0x1a
22845 .byte 0x0
22846 .byte 0x4
22847 .4byte 1
22848 .p2align 1
22849 .LECIE1:
22850 .LSFDE1:
22851 .4byte .LEFDE1-.LASFDE1
22852 .LASFDE1:
22853 .4byte .LASFDE1-__FRAME_BEGIN__
22854 .4byte .LFB1
22855 .4byte .LFE1-.LFB1
22856 .byte 0x4
22857 .4byte .LFE1-.LFB1
22858 .byte 0x4
22859 .4byte .L1-.LFB1
22860 .LEFDE1:' > conftest.s
22861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22866 test $ac_status = 0; }; }
22867 then
22868 cat > conftest.lit <<EOF
22869 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22870 0010 01000000 12000000 18000000 00000000 ................
22871 0020 08000000 04080000 0044 .........D
22872 EOF
22873 cat > conftest.big <<EOF
22874 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22875 0010 00000001 00000012 00000018 00000000 ................
22876 0020 00000008 04000000 0844 .........D
22877 EOF
22878 # If the assembler didn't choke, and we can objdump,
22879 # and we got the correct data, then succeed.
22880 # The text in the here-document typically retains its unix-style line
22881 # endings, while the output of objdump will use host line endings.
22882 # Therefore, use diff -b for the comparisons.
22883 if test x$gcc_cv_objdump != x \
22884 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22885 | tail -3 > conftest.got \
22886 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22887 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22888 then
22889 gcc_cv_as_eh_frame=yes
22890 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895 test $ac_status = 0; }; }; then
22896 gcc_cv_as_eh_frame=buggy
22897 else
22898 # Uh oh, what do we do now?
22899 gcc_cv_as_eh_frame=no
22900 fi
22901 else
22902 echo "configure: failed program was" >&5
22903 cat conftest.s >&5
22904 fi
22905 rm -f conftest.o conftest.s
22906 fi
22907 fi
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22909 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22910
22911
22912 if test $gcc_cv_as_eh_frame = buggy; then
22913
22914 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22915
22916 fi
22917
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22919 $as_echo_n "checking assembler for section merging support... " >&6; }
22920 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22922 else
22923 gcc_cv_as_shf_merge=no
22924 if test $in_tree_gas = yes; then
22925 if test $in_tree_gas_is_elf = yes \
22926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22927 then gcc_cv_as_shf_merge=yes
22928 fi
22929 elif test x$gcc_cv_as != x; then
22930 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22937 then
22938 gcc_cv_as_shf_merge=yes
22939 else
22940 echo "configure: failed program was" >&5
22941 cat conftest.s >&5
22942 fi
22943 rm -f conftest.o conftest.s
22944 fi
22945 fi
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22947 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22948
22949 if test $gcc_cv_as_shf_merge = no; then
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22951 $as_echo_n "checking assembler for section merging support... " >&6; }
22952 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22953 $as_echo_n "(cached) " >&6
22954 else
22955 gcc_cv_as_shf_merge=no
22956 if test $in_tree_gas = yes; then
22957 if test $in_tree_gas_is_elf = yes \
22958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22959 then gcc_cv_as_shf_merge=yes
22960 fi
22961 elif test x$gcc_cv_as != x; then
22962 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22965 (eval $ac_try) 2>&5
22966 ac_status=$?
22967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22968 test $ac_status = 0; }; }
22969 then
22970 gcc_cv_as_shf_merge=yes
22971 else
22972 echo "configure: failed program was" >&5
22973 cat conftest.s >&5
22974 fi
22975 rm -f conftest.o conftest.s
22976 fi
22977 fi
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22979 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22980
22981 fi
22982
22983 cat >>confdefs.h <<_ACEOF
22984 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22985 _ACEOF
22986
22987
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22989 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22990 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_comdat_group=no
22994 if test $in_tree_gas = yes; then
22995 if test $in_tree_gas_is_elf = yes \
22996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22997 then gcc_cv_as_comdat_group=yes
22998 fi
22999 elif test x$gcc_cv_as != x; then
23000 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23003 (eval $ac_try) 2>&5
23004 ac_status=$?
23005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006 test $ac_status = 0; }; }
23007 then
23008 gcc_cv_as_comdat_group=yes
23009 else
23010 echo "configure: failed program was" >&5
23011 cat conftest.s >&5
23012 fi
23013 rm -f conftest.o conftest.s
23014 fi
23015 fi
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23017 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23018
23019 if test $gcc_cv_as_comdat_group = yes; then
23020 gcc_cv_as_comdat_group_percent=no
23021 gcc_cv_as_comdat_group_group=no
23022 else
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23024 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23025 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23027 else
23028 gcc_cv_as_comdat_group_percent=no
23029 if test $in_tree_gas = yes; then
23030 if test $in_tree_gas_is_elf = yes \
23031 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23032 then gcc_cv_as_comdat_group_percent=yes
23033 fi
23034 elif test x$gcc_cv_as != x; then
23035 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041 test $ac_status = 0; }; }
23042 then
23043 gcc_cv_as_comdat_group_percent=yes
23044 else
23045 echo "configure: failed program was" >&5
23046 cat conftest.s >&5
23047 fi
23048 rm -f conftest.o conftest.s
23049 fi
23050 fi
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23052 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23053
23054 if test $gcc_cv_as_comdat_group_percent = yes; then
23055 gcc_cv_as_comdat_group_group=no
23056 else
23057 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23058 gcc_cv_as_comdat_group_group=no
23059 fi
23060 case "${target}" in
23061 # Sun as uses a completely different syntax.
23062 *-*-solaris2*)
23063 case "${target}" in
23064 sparc*-*-solaris2*)
23065 conftest_s='
23066 .group foo,".text%foo",#comdat
23067 .section ".text%foo", #alloc,#execinstr,#progbits
23068 .globl foo
23069 foo:
23070 '
23071 ;;
23072 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23073 conftest_s='
23074 .group foo,.text%foo,#comdat
23075 .section .text%foo, "ax", @progbits
23076 .globl foo
23077 foo:
23078 '
23079 ;;
23080 esac
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23082 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23083 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23086 gcc_cv_as_comdat_group_group=no
23087 if test x$gcc_cv_as != x; then
23088 $as_echo "$conftest_s" > conftest.s
23089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }
23095 then
23096 gcc_cv_as_comdat_group_group=yes
23097 else
23098 echo "configure: failed program was" >&5
23099 cat conftest.s >&5
23100 fi
23101 rm -f conftest.o conftest.s
23102 fi
23103 fi
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23105 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23106
23107 ;;
23108 esac
23109 fi
23110 fi
23111 if test x"$ld_is_gold" = xyes; then
23112 comdat_group=yes
23113 elif test $in_tree_ld = yes ; then
23114 comdat_group=no
23115 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 \
23116 && test $in_tree_ld_is_elf = yes; then
23117 comdat_group=yes
23118 fi
23119 elif echo "$ld_ver" | grep GNU > /dev/null; then
23120 comdat_group=yes
23121 if test 0"$ld_date" -lt 20050308; then
23122 if test -n "$ld_date"; then
23123 # If there was date string, but was earlier than 2005-03-08, fail
23124 comdat_group=no
23125 elif test "$ld_vers_major" -lt 2; then
23126 comdat_group=no
23127 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23128 comdat_group=no
23129 fi
23130 fi
23131 else
23132 case "${target}" in
23133 *-*-solaris2.1[1-9]*)
23134 comdat_group=no
23135 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23136 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23137 # version 1.688.
23138 #
23139 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23140 # least ld version 1.2267.
23141 if test "$ld_vers_major" -gt 1; then
23142 comdat_group=yes
23143 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23144 comdat_group=yes
23145 elif test "$ld_vers_minor" -ge 2267; then
23146 comdat_group=yes
23147 fi
23148 ;;
23149 *)
23150 # Assume linkers other than GNU ld don't support COMDAT group.
23151 comdat_group=no
23152 ;;
23153 esac
23154 fi
23155 # Allow overriding the automatic COMDAT group tests above.
23156 # Check whether --enable-comdat was given.
23157 if test "${enable_comdat+set}" = set; then :
23158 enableval=$enable_comdat; comdat_group="$enable_comdat"
23159 fi
23160
23161 if test $comdat_group = no; then
23162 gcc_cv_as_comdat_group=no
23163 gcc_cv_as_comdat_group_percent=no
23164 gcc_cv_as_comdat_group_group=no
23165 fi
23166
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23169 || test $gcc_cv_as_comdat_group_percent = yes \
23170 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23171 _ACEOF
23172
23173
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23175 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23176 if test "${gcc_cv_as_discriminator+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23178 else
23179 gcc_cv_as_discriminator=no
23180 if test $in_tree_gas = yes; then
23181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23182 then gcc_cv_as_discriminator=yes
23183 fi
23184 elif test x$gcc_cv_as != x; then
23185 $as_echo ' .text
23186 .file 1 "conf.c"
23187 .loc 1 1 0 discriminator 1' > conftest.s
23188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23194 then
23195 gcc_cv_as_discriminator=yes
23196 else
23197 echo "configure: failed program was" >&5
23198 cat conftest.s >&5
23199 fi
23200 rm -f conftest.o conftest.s
23201 fi
23202 fi
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23204 $as_echo "$gcc_cv_as_discriminator" >&6; }
23205 if test $gcc_cv_as_discriminator = yes; then
23206
23207 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23208
23209 fi
23210
23211 # Thread-local storage - the check is heavily parameterized.
23212 conftest_s=
23213 tls_first_major=
23214 tls_first_minor=
23215 tls_as_opt=
23216 case "$target" in
23217 alpha*-*-*)
23218 conftest_s='
23219 .section ".tdata","awT",@progbits
23220 foo: .long 25
23221 .text
23222 ldq $27,__tls_get_addr($29) !literal!1
23223 lda $16,foo($29) !tlsgd!1
23224 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23225 ldq $27,__tls_get_addr($29) !literal!2
23226 lda $16,foo($29) !tlsldm!2
23227 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23228 ldq $1,foo($29) !gotdtprel
23229 ldah $2,foo($29) !dtprelhi
23230 lda $3,foo($2) !dtprello
23231 lda $4,foo($29) !dtprel
23232 ldq $1,foo($29) !gottprel
23233 ldah $2,foo($29) !tprelhi
23234 lda $3,foo($2) !tprello
23235 lda $4,foo($29) !tprel'
23236 tls_first_major=2
23237 tls_first_minor=13
23238 tls_as_opt=--fatal-warnings
23239 ;;
23240 cris-*-*|crisv32-*-*)
23241 conftest_s='
23242 .section ".tdata","awT",@progbits
23243 x: .long 25
23244 .text
23245 move.d x:IE,$r10
23246 nop'
23247 tls_first_major=2
23248 tls_first_minor=20
23249 tls_as_opt=--fatal-warnings
23250 ;;
23251 frv*-*-*)
23252 conftest_s='
23253 .section ".tdata","awT",@progbits
23254 x: .long 25
23255 .text
23256 call #gettlsoff(x)'
23257 tls_first_major=2
23258 tls_first_minor=14
23259 ;;
23260 hppa*-*-linux*)
23261 conftest_s='
23262 t1: .reg %r20
23263 t2: .reg %r21
23264 gp: .reg %r19
23265 .section ".tdata","awT",@progbits
23266 foo: .long 25
23267 .text
23268 .align 4
23269 addil LT%foo-$tls_gdidx$,gp
23270 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23271 b __tls_get_addr
23272 nop
23273 addil LT%foo-$tls_ldidx$,gp
23274 b __tls_get_addr
23275 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23276 addil LR%foo-$tls_dtpoff$,%ret0
23277 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23278 mfctl %cr27,%t1
23279 addil LT%foo-$tls_ieoff$,gp
23280 ldw RT%foo-$tls_ieoff$(%r1),%t2
23281 add %t1,%t2,%t3
23282 mfctl %cr27,%t1
23283 addil LR%foo-$tls_leoff$,%t1
23284 ldo RR%foo-$tls_leoff$(%r1),%t2'
23285 tls_first_major=2
23286 tls_first_minor=15
23287 tls_as_opt=--fatal-warnings
23288 ;;
23289 arm*-*-*)
23290 conftest_s='
23291 .section ".tdata","awT",%progbits
23292 foo: .long 25
23293 .text
23294 .word foo(gottpoff)
23295 .word foo(tpoff)
23296 .word foo(tlsgd)
23297 .word foo(tlsldm)
23298 .word foo(tlsldo)'
23299 tls_first_major=2
23300 tls_first_minor=17
23301 ;;
23302 i[34567]86-*-* | x86_64-*-*)
23303 case "$target" in
23304 i[34567]86-*-solaris2.*)
23305 on_solaris=yes
23306 tga_func=___tls_get_addr
23307 ;;
23308 x86_64-*-solaris2.1[0-9]*)
23309 on_solaris=yes
23310 tga_func=__tls_get_addr
23311 ;;
23312 *)
23313 on_solaris=no
23314 ;;
23315 esac
23316 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23317 conftest_s='
23318 .section .tdata,"awt",@progbits'
23319 tls_first_major=0
23320 tls_first_minor=0
23321 tls_section_flag=t
23322
23323 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23324
23325 else
23326 conftest_s='
23327 .section ".tdata","awT",@progbits'
23328 tls_first_major=2
23329 tls_first_minor=14
23330 tls_section_flag=T
23331 tls_as_opt="--fatal-warnings"
23332 fi
23333 case "$target" in
23334 i[34567]86-*-*)
23335 conftest_s="$conftest_s
23336 foo: .long 25
23337 .text
23338 movl %gs:0, %eax
23339 leal foo@tlsgd(,%ebx,1), %eax
23340 leal foo@tlsldm(%ebx), %eax
23341 leal foo@dtpoff(%eax), %edx
23342 movl foo@gottpoff(%ebx), %eax
23343 subl foo@gottpoff(%ebx), %eax
23344 addl foo@gotntpoff(%ebx), %eax
23345 movl foo@indntpoff, %eax
23346 movl \$foo@tpoff, %eax
23347 subl \$foo@tpoff, %eax
23348 leal foo@ntpoff(%ecx), %eax"
23349 ;;
23350 x86_64-*-*)
23351 if test x$on_solaris = xyes; then
23352 case $gas_flag in
23353 yes) tls_as_opt="$tls_as_opt --64" ;;
23354 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23355 esac
23356 fi
23357 conftest_s="$conftest_s
23358 foo: .long 25
23359 .text
23360 movq %fs:0, %rax
23361 leaq foo@tlsgd(%rip), %rdi
23362 leaq foo@tlsld(%rip), %rdi
23363 leaq foo@dtpoff(%rax), %rdx
23364 movq foo@gottpoff(%rip), %rax
23365 movq \$foo@tpoff, %rax"
23366 ;;
23367 esac
23368 ;;
23369 ia64-*-*)
23370 conftest_s='
23371 .section ".tdata","awT",@progbits
23372 foo: data8 25
23373 .text
23374 addl r16 = @ltoff(@dtpmod(foo#)), gp
23375 addl r17 = @ltoff(@dtprel(foo#)), gp
23376 addl r18 = @ltoff(@tprel(foo#)), gp
23377 addl r19 = @dtprel(foo#), gp
23378 adds r21 = @dtprel(foo#), r13
23379 movl r23 = @dtprel(foo#)
23380 addl r20 = @tprel(foo#), gp
23381 adds r22 = @tprel(foo#), r13
23382 movl r24 = @tprel(foo#)'
23383 tls_first_major=2
23384 tls_first_minor=13
23385 tls_as_opt=--fatal-warnings
23386 ;;
23387 microblaze*-*-*)
23388 conftest_s='
23389 .section .tdata,"awT",@progbits
23390 x:
23391 .word 2
23392 .text
23393 addik r5,r20,x@TLSGD
23394 addik r5,r20,x@TLSLDM'
23395 tls_first_major=2
23396 tls_first_minor=20
23397 tls_as_opt='--fatal-warnings'
23398 ;;
23399 mips*-*-*)
23400 conftest_s='
23401 .section .tdata,"awT",@progbits
23402 x:
23403 .word 2
23404 .text
23405 addiu $4, $28, %tlsgd(x)
23406 addiu $4, $28, %tlsldm(x)
23407 lui $4, %dtprel_hi(x)
23408 addiu $4, $4, %dtprel_lo(x)
23409 lw $4, %gottprel(x)($28)
23410 lui $4, %tprel_hi(x)
23411 addiu $4, $4, %tprel_lo(x)'
23412 tls_first_major=2
23413 tls_first_minor=16
23414 tls_as_opt='-32 --fatal-warnings'
23415 ;;
23416 m68k-*-*)
23417 conftest_s='
23418 .section .tdata,"awT",@progbits
23419 x:
23420 .word 2
23421 .text
23422 foo:
23423 move.l x@TLSGD(%a5),%a0
23424 move.l x@TLSLDM(%a5),%a0
23425 move.l x@TLSLDO(%a5),%a0
23426 move.l x@TLSIE(%a5),%a0
23427 move.l x@TLSLE(%a5),%a0'
23428 tls_first_major=2
23429 tls_first_minor=19
23430 tls_as_opt='--fatal-warnings'
23431 ;;
23432 nios2-*-*)
23433 conftest_s='
23434 .section ".tdata","awT",@progbits'
23435 tls_first_major=2
23436 tls_first_minor=23
23437 tls_as_opt="--fatal-warnings"
23438 ;;
23439 aarch64*-*-*)
23440 conftest_s='
23441 .section ".tdata","awT",%progbits
23442 foo: .long 25
23443 .text
23444 adrp x0, :tlsgd:x
23445 add x0, x0, #:tlsgd_lo12:x
23446 bl __tls_get_addr
23447 nop'
23448 tls_first_major=2
23449 tls_first_minor=20
23450 tls_as_opt='--fatal-warnings'
23451 ;;
23452 powerpc-ibm-aix*)
23453 conftest_s='
23454 .extern __get_tpointer
23455 .toc
23456 LC..1:
23457 .tc a[TC],a[TL]@le
23458 .csect .text[PR]
23459 .tlstest:
23460 lwz 9,LC..1(2)
23461 bla __get_tpointer
23462 lwzx 3,9,3
23463 .globl a
23464 .csect a[TL],4
23465 a:
23466 .space 4'
23467 tls_first_major=0
23468 tls_first_minor=0
23469 ;;
23470 powerpc64*-*-*)
23471 conftest_s='
23472 .section ".tdata","awT",@progbits
23473 .align 3
23474 ld0: .space 8
23475 ld1: .space 8
23476 x1: .space 8
23477 x2: .space 8
23478 x3: .space 8
23479 .text
23480 addi 3,2,ld0@got@tlsgd
23481 bl .__tls_get_addr
23482 nop
23483 addi 3,2,ld1@toc
23484 bl .__tls_get_addr
23485 nop
23486 addi 3,2,x1@got@tlsld
23487 bl .__tls_get_addr
23488 nop
23489 addi 9,3,x1@dtprel
23490 bl .__tls_get_addr
23491 nop
23492 addis 9,3,x2@dtprel@ha
23493 addi 9,9,x2@dtprel@l
23494 bl .__tls_get_addr
23495 nop
23496 ld 9,x3@got@dtprel(2)
23497 add 9,9,3
23498 bl .__tls_get_addr
23499 nop'
23500 tls_first_major=2
23501 tls_first_minor=14
23502 tls_as_opt="-a64 --fatal-warnings"
23503 ;;
23504 powerpc*-*-*)
23505 conftest_s='
23506 .section ".tdata","awT",@progbits
23507 .align 2
23508 ld0: .space 4
23509 ld1: .space 4
23510 x1: .space 4
23511 x2: .space 4
23512 x3: .space 4
23513 .text
23514 addi 3,31,ld0@got@tlsgd
23515 bl __tls_get_addr
23516 addi 3,31,x1@got@tlsld
23517 bl __tls_get_addr
23518 addi 9,3,x1@dtprel
23519 addis 9,3,x2@dtprel@ha
23520 addi 9,9,x2@dtprel@l
23521 lwz 9,x3@got@tprel(31)
23522 add 9,9,x@tls
23523 addi 9,2,x1@tprel
23524 addis 9,2,x2@tprel@ha
23525 addi 9,9,x2@tprel@l'
23526 tls_first_major=2
23527 tls_first_minor=14
23528 tls_as_opt="-a32 --fatal-warnings"
23529 ;;
23530 s390-*-*)
23531 conftest_s='
23532 .section ".tdata","awT",@progbits
23533 foo: .long 25
23534 .text
23535 .long foo@TLSGD
23536 .long foo@TLSLDM
23537 .long foo@DTPOFF
23538 .long foo@NTPOFF
23539 .long foo@GOTNTPOFF
23540 .long foo@INDNTPOFF
23541 l %r1,foo@GOTNTPOFF(%r12)
23542 l %r1,0(%r1):tls_load:foo
23543 bas %r14,0(%r1,%r13):tls_gdcall:foo
23544 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23545 tls_first_major=2
23546 tls_first_minor=14
23547 tls_as_opt="-m31 --fatal-warnings"
23548 ;;
23549 s390x-*-*)
23550 conftest_s='
23551 .section ".tdata","awT",@progbits
23552 foo: .long 25
23553 .text
23554 .quad foo@TLSGD
23555 .quad foo@TLSLDM
23556 .quad foo@DTPOFF
23557 .quad foo@NTPOFF
23558 .quad foo@GOTNTPOFF
23559 lg %r1,foo@GOTNTPOFF(%r12)
23560 larl %r1,foo@INDNTPOFF
23561 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23562 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23563 tls_first_major=2
23564 tls_first_minor=14
23565 tls_as_opt="-m64 -Aesame --fatal-warnings"
23566 ;;
23567 sh-*-* | sh[34]-*-*)
23568 conftest_s='
23569 .section ".tdata","awT",@progbits
23570 foo: .long 25
23571 .text
23572 .long foo@TLSGD
23573 .long foo@TLSLDM
23574 .long foo@DTPOFF
23575 .long foo@GOTTPOFF
23576 .long foo@TPOFF'
23577 tls_first_major=2
23578 tls_first_minor=13
23579 tls_as_opt=--fatal-warnings
23580 ;;
23581 sparc*-*-*)
23582 case "$target" in
23583 sparc*-sun-solaris2.*)
23584 on_solaris=yes
23585 tga_func=__tls_get_addr
23586 ;;
23587 *)
23588 on_solaris=no
23589 ;;
23590 esac
23591 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23592 conftest_s='
23593 .section ".tdata",#alloc,#write,#tls'
23594 tls_first_major=0
23595 tls_first_minor=0
23596 else
23597 conftest_s='
23598 .section ".tdata","awT",@progbits'
23599 tls_first_major=2
23600 tls_first_minor=14
23601 tls_as_opt="-32 --fatal-warnings"
23602 fi
23603 conftest_s="$conftest_s
23604 foo: .long 25
23605 .text
23606 sethi %tgd_hi22(foo), %o0
23607 add %o0, %tgd_lo10(foo), %o1
23608 add %l7, %o1, %o0, %tgd_add(foo)
23609 call __tls_get_addr, %tgd_call(foo)
23610 sethi %tldm_hi22(foo), %l1
23611 add %l1, %tldm_lo10(foo), %l2
23612 add %l7, %l2, %o0, %tldm_add(foo)
23613 call __tls_get_addr, %tldm_call(foo)
23614 sethi %tldo_hix22(foo), %l3
23615 xor %l3, %tldo_lox10(foo), %l4
23616 add %o0, %l4, %l5, %tldo_add(foo)
23617 sethi %tie_hi22(foo), %o3
23618 add %o3, %tie_lo10(foo), %o3
23619 ld [%l7 + %o3], %o2, %tie_ld(foo)
23620 add %g7, %o2, %o4, %tie_add(foo)
23621 sethi %tle_hix22(foo), %l1
23622 xor %l1, %tle_lox10(foo), %o5
23623 ld [%g7 + %o5], %o1"
23624 ;;
23625 tilepro*-*-*)
23626 conftest_s='
23627 .section ".tdata","awT",@progbits
23628 foo: .long 25
23629 .text
23630 addli r0, zero, tls_gd(foo)
23631 auli r0, zero, tls_gd_ha16(foo)
23632 addli r0, r0, tls_gd_lo16(foo)
23633 jal __tls_get_addr
23634 addli r0, zero, tls_ie(foo)
23635 auli r0, r0, tls_ie_ha16(foo)
23636 addli r0, r0, tls_ie_lo16(foo)'
23637 tls_first_major=2
23638 tls_first_minor=22
23639 tls_as_opt="--fatal-warnings"
23640 ;;
23641 tilegx*-*-*)
23642 conftest_s='
23643 .section ".tdata","awT",@progbits
23644 foo: .long 25
23645 .text
23646 shl16insli r0, zero, hw0_last_tls_gd(foo)
23647 shl16insli r0, zero, hw1_last_tls_gd(foo)
23648 shl16insli r0, r0, hw0_tls_gd(foo)
23649 jal __tls_get_addr
23650 shl16insli r0, zero, hw1_last_tls_ie(foo)
23651 shl16insli r0, r0, hw0_tls_ie(foo)'
23652 tls_first_major=2
23653 tls_first_minor=22
23654 tls_as_opt="--fatal-warnings"
23655 ;;
23656 xtensa*-*-*)
23657 conftest_s='
23658 .section ".tdata","awT",@progbits
23659 foo: .long 25
23660 .text
23661 movi a8, foo@TLSFUNC
23662 movi a10, foo@TLSARG
23663 callx8.tls a8, foo@TLSCALL'
23664 tls_first_major=2
23665 tls_first_minor=19
23666 ;;
23667 esac
23668 set_have_as_tls=no
23669 if test "x$enable_tls" = xno ; then
23670 : # TLS explicitly disabled.
23671 elif test "x$enable_tls" = xyes ; then
23672 set_have_as_tls=yes # TLS explicitly enabled.
23673 elif test -z "$tls_first_major"; then
23674 : # If we don't have a check, assume no support.
23675 else
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23677 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23678 if test "${gcc_cv_as_tls+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23680 else
23681 gcc_cv_as_tls=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23684 then gcc_cv_as_tls=yes
23685 fi
23686 elif test x$gcc_cv_as != x; then
23687 $as_echo "$conftest_s" > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23694 then
23695 gcc_cv_as_tls=yes
23696 else
23697 echo "configure: failed program was" >&5
23698 cat conftest.s >&5
23699 fi
23700 rm -f conftest.o conftest.s
23701 fi
23702 fi
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23704 $as_echo "$gcc_cv_as_tls" >&6; }
23705 if test $gcc_cv_as_tls = yes; then
23706 set_have_as_tls=yes
23707 fi
23708 fi
23709 case "$target" in
23710 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23711 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23712 # Sun style that Sun ld and GCC don't support any longer.
23713 *-*-solaris2.*)
23714 ld_tls_support=yes
23715
23716 save_LIBS="$LIBS"
23717 save_LDFLAGS="$LDFLAGS"
23718 LIBS=
23719 LDFLAGS=
23720
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23722 $as_echo_n "checking library containing $tga_func... " >&6; }
23723 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23724 # (32-bit x86) only lived in libthread, so check for that. Keep
23725 # set_have_as_tls if found, disable if not.
23726 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23728 $as_echo_n "checking for library containing $tga_func... " >&6; }
23729 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23730 $as_echo_n "(cached) " >&6
23731 else
23732 ac_func_search_save_LIBS=$LIBS
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h. */
23735
23736 /* Override any GCC internal prototype to avoid an error.
23737 Use char because int might match the return type of a GCC
23738 builtin and then its argument prototype would still apply. */
23739 #ifdef __cplusplus
23740 extern "C"
23741 #endif
23742 char $tga_func ();
23743 int
23744 main ()
23745 {
23746 return $tga_func ();
23747 ;
23748 return 0;
23749 }
23750 _ACEOF
23751 for ac_lib in '' thread; do
23752 if test -z "$ac_lib"; then
23753 ac_res="none required"
23754 else
23755 ac_res=-l$ac_lib
23756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23757 fi
23758 if ac_fn_c_try_link "$LINENO"; then :
23759 eval "$as_ac_Search=\$ac_res"
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext
23763 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23764 break
23765 fi
23766 done
23767 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23768
23769 else
23770 eval "$as_ac_Search=no"
23771 fi
23772 rm conftest.$ac_ext
23773 LIBS=$ac_func_search_save_LIBS
23774 fi
23775 eval ac_res=\$$as_ac_Search
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23777 $as_echo "$ac_res" >&6; }
23778 eval ac_res=\$$as_ac_Search
23779 if test "$ac_res" != no; then :
23780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23781
23782 else
23783 set_have_as_tls=no
23784 fi
23785
23786 ld_tls_libs="$LIBS"
23787 # Clear LIBS if we cannot support TLS.
23788 if test $set_have_as_tls = no; then
23789 LIBS=
23790 fi
23791 # Always define LIB_TLS_SPEC, even without TLS support.
23792
23793 cat >>confdefs.h <<_ACEOF
23794 #define LIB_TLS_SPEC "$LIBS"
23795 _ACEOF
23796
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23798 $as_echo "$LIBS" >&6; }
23799
23800 LIBS="$save_LIBS"
23801 LDFLAGS="$save_LDFLAGS"
23802 ;;
23803 esac
23804 if test $set_have_as_tls = yes ; then
23805
23806 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23807
23808 fi
23809
23810 # Target-specific assembler checks.
23811
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23813 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23814 gcc_cv_ld_static_dynamic=no
23815 gcc_cv_ld_static_option='-Bstatic'
23816 gcc_cv_ld_dynamic_option='-Bdynamic'
23817 if test $in_tree_ld = yes ; then
23818 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
23819 gcc_cv_ld_static_dynamic=yes
23820 fi
23821 elif test x$gcc_cv_ld != x; then
23822 # Check if linker supports -Bstatic/-Bdynamic option
23823 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23824 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23825 gcc_cv_ld_static_dynamic=yes
23826 else
23827 case "$target" in
23828 # AIX ld uses -b flags
23829 *-*-aix4.[23]* | *-*-aix[5-9]*)
23830 gcc_cv_ld_static_dynamic=yes
23831 gcc_cv_ld_static_option="-bstatic"
23832 gcc_cv_ld_dynamic_option="-bdynamic"
23833 ;;
23834 # HP-UX ld uses -a flags to select between shared and archive.
23835 *-*-hpux*)
23836 if test x"$gnu_ld" = xno; then
23837 gcc_cv_ld_static_dynamic=yes
23838 gcc_cv_ld_static_option="-aarchive_shared"
23839 gcc_cv_ld_dynamic_option="-adefault"
23840 fi
23841 ;;
23842 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23843 *-*-solaris2*)
23844 gcc_cv_ld_static_dynamic=yes
23845 ;;
23846 esac
23847 fi
23848 fi
23849 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23850
23851 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23852
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23856 _ACEOF
23857
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23861 _ACEOF
23862
23863 fi
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23865 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23866
23867 if test x"$demangler_in_ld" = xyes; then
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23869 $as_echo_n "checking linker --demangle support... " >&6; }
23870 gcc_cv_ld_demangle=no
23871 if test $in_tree_ld = yes; then
23872 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 \
23873 gcc_cv_ld_demangle=yes
23874 fi
23875 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23876 # Check if the GNU linker supports --demangle option
23877 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23878 gcc_cv_ld_demangle=yes
23879 fi
23880 fi
23881 if test x"$gcc_cv_ld_demangle" = xyes; then
23882
23883 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23884
23885 fi
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23887 $as_echo "$gcc_cv_ld_demangle" >&6; }
23888 fi
23889
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23891 $as_echo_n "checking linker plugin support... " >&6; }
23892 gcc_cv_lto_plugin=0
23893 if test -f liblto_plugin.la; then
23894 save_ld_ver="$ld_ver"
23895 save_ld_vers_major="$ld_vers_major"
23896 save_ld_vers_minor="$ld_vers_minor"
23897 save_ld_is_gold="$ld_is_gold"
23898
23899 ld_is_gold=no
23900
23901 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23902 ld_ver="GNU ld"
23903 # FIXME: ld_is_gold?
23904 ld_vers_major="$gcc_cv_gld_major_version"
23905 ld_vers_minor="$gcc_cv_gld_minor_version"
23906 else
23907 # Determine plugin linker version.
23908 # FIXME: Partial duplicate from above, generalize.
23909 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23910 if echo "$ld_ver" | grep GNU > /dev/null; then
23911 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23912 ld_is_gold=yes
23913 ld_vers=`echo $ld_ver | sed -n \
23914 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23915 else
23916 ld_vers=`echo $ld_ver | sed -n \
23917 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23918 fi
23919 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23920 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23921 fi
23922 fi
23923
23924 # Determine plugin support.
23925 if echo "$ld_ver" | grep GNU > /dev/null; then
23926 # Require GNU ld or gold 2.21+ for plugin support by default.
23927 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23928 gcc_cv_lto_plugin=2
23929 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23930 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23931 gcc_cv_lto_plugin=1
23932 fi
23933 fi
23934
23935 ld_ver="$save_ld_ver"
23936 ld_vers_major="$save_ld_vers_major"
23937 ld_vers_minor="$save_ld_vers_minor"
23938 ld_is_gold="$save_ld_is_gold"
23939 fi
23940
23941 cat >>confdefs.h <<_ACEOF
23942 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23943 _ACEOF
23944
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23946 $as_echo "$gcc_cv_lto_plugin" >&6; }
23947
23948 case "$target" in
23949 aarch64*-*-*)
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23951 $as_echo_n "checking assembler for -mabi option... " >&6; }
23952 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_aarch64_mabi=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo '.text' > conftest.s
23958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23964 then
23965 gcc_cv_as_aarch64_mabi=yes
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23969 fi
23970 rm -f conftest.o conftest.s
23971 fi
23972 fi
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23974 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23975
23976 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23977
23978 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23979
23980 else
23981 if test x$with_abi = xilp32; then
23982 as_fn_error "Assembler does not support -mabi=ilp32.\
23983 Upgrade the Assembler." "$LINENO" 5
23984 fi
23985 if test x"$with_multilib_list" = xdefault; then
23986 TM_MULTILIB_CONFIG=lp64
23987 else
23988 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23989 for aarch64_multilib in ${aarch64_multilibs}; do
23990 case ${aarch64_multilib} in
23991 ilp32)
23992 as_fn_error "Assembler does not support -mabi=ilp32.\
23993 Upgrade the Assembler." "$LINENO" 5
23994 ;;
23995 *)
23996 ;;
23997 esac
23998 done
23999 fi
24000 fi
24001 ;;
24002
24003 # All TARGET_ABI_OSF targets.
24004 alpha*-*-linux* | alpha*-*-*bsd*)
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24006 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24007 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24008 $as_echo_n "(cached) " >&6
24009 else
24010 gcc_cv_as_alpha_explicit_relocs=no
24011 if test $in_tree_gas = yes; then
24012 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24013 then gcc_cv_as_alpha_explicit_relocs=yes
24014 fi
24015 elif test x$gcc_cv_as != x; then
24016 $as_echo ' .set nomacro
24017 .text
24018 extbl $3, $2, $3 !lituse_bytoff!1
24019 ldq $2, a($29) !literal!1
24020 ldq $4, b($29) !literal!2
24021 ldq_u $3, 0($2) !lituse_base!1
24022 ldq $27, f($29) !literal!5
24023 jsr $26, ($27), f !lituse_jsr!5
24024 ldah $29, 0($26) !gpdisp!3
24025 lda $0, c($29) !gprel
24026 ldah $1, d($29) !gprelhigh
24027 lda $1, d($1) !gprellow
24028 lda $29, 0($29) !gpdisp!3' > conftest.s
24029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24035 then
24036 gcc_cv_as_alpha_explicit_relocs=yes
24037 else
24038 echo "configure: failed program was" >&5
24039 cat conftest.s >&5
24040 fi
24041 rm -f conftest.o conftest.s
24042 fi
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24045 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24046 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24047
24048 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24049
24050 fi
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24052 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24053 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24054 $as_echo_n "(cached) " >&6
24055 else
24056 gcc_cv_as_alpha_jsrdirect_relocs=no
24057 if test $in_tree_gas = yes; then
24058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24059 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24060 fi
24061 elif test x$gcc_cv_as != x; then
24062 $as_echo ' .set nomacro
24063 .text
24064 ldq $27, a($29) !literal!1
24065 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24068 (eval $ac_try) 2>&5
24069 ac_status=$?
24070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24071 test $ac_status = 0; }; }
24072 then
24073 gcc_cv_as_alpha_jsrdirect_relocs=yes
24074 else
24075 echo "configure: failed program was" >&5
24076 cat conftest.s >&5
24077 fi
24078 rm -f conftest.o conftest.s
24079 fi
24080 fi
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24082 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24083 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24084
24085 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24086
24087 fi
24088 ;;
24089
24090 cris-*-*)
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24092 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24093 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24094 $as_echo_n "(cached) " >&6
24095 else
24096 gcc_cv_as_cris_no_mul_bug=no
24097 if test $in_tree_gas = yes; then
24098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24099 then gcc_cv_as_cris_no_mul_bug=yes
24100 fi
24101 elif test x$gcc_cv_as != x; then
24102 $as_echo '.text' > conftest.s
24103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24108 test $ac_status = 0; }; }
24109 then
24110 gcc_cv_as_cris_no_mul_bug=yes
24111 else
24112 echo "configure: failed program was" >&5
24113 cat conftest.s >&5
24114 fi
24115 rm -f conftest.o conftest.s
24116 fi
24117 fi
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24119 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24120 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24121
24122 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24123
24124 fi
24125 ;;
24126
24127 sparc*-*-*)
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24129 $as_echo_n "checking assembler for .register... " >&6; }
24130 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24131 $as_echo_n "(cached) " >&6
24132 else
24133 gcc_cv_as_sparc_register_op=no
24134 if test x$gcc_cv_as != x; then
24135 $as_echo '.register %g2, #scratch' > conftest.s
24136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; }
24142 then
24143 gcc_cv_as_sparc_register_op=yes
24144 else
24145 echo "configure: failed program was" >&5
24146 cat conftest.s >&5
24147 fi
24148 rm -f conftest.o conftest.s
24149 fi
24150 fi
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24152 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24153 if test $gcc_cv_as_sparc_register_op = yes; then
24154
24155 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24156
24157 fi
24158
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24160 $as_echo_n "checking assembler for #nobits... " >&6; }
24161 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24162 $as_echo_n "(cached) " >&6
24163 else
24164 gcc_cv_as_sparc_nobits=no
24165 if test x$gcc_cv_as != x; then
24166 $as_echo '.section "nobits",#alloc,#write,#nobits
24167 .section "progbits",#alloc,#write,#progbits' > conftest.s
24168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24170 (eval $ac_try) 2>&5
24171 ac_status=$?
24172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24173 test $ac_status = 0; }; }
24174 then
24175 gcc_cv_as_sparc_nobits=yes
24176 else
24177 echo "configure: failed program was" >&5
24178 cat conftest.s >&5
24179 fi
24180 rm -f conftest.o conftest.s
24181 fi
24182 fi
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24184 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24185
24186
24187 cat >>confdefs.h <<_ACEOF
24188 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24189 _ACEOF
24190
24191
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24193 $as_echo_n "checking assembler for -relax option... " >&6; }
24194 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 gcc_cv_as_sparc_relax=no
24198 if test x$gcc_cv_as != x; then
24199 $as_echo '.text' > conftest.s
24200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }
24206 then
24207 gcc_cv_as_sparc_relax=yes
24208 else
24209 echo "configure: failed program was" >&5
24210 cat conftest.s >&5
24211 fi
24212 rm -f conftest.o conftest.s
24213 fi
24214 fi
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24216 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24217 if test $gcc_cv_as_sparc_relax = yes; then
24218
24219 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24220
24221 fi
24222
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24224 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24225 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24227 else
24228 gcc_cv_as_sparc_gotdata_op=no
24229 if test x$gcc_cv_as != x; then
24230 $as_echo '.text
24231 .align 4
24232 foo:
24233 nop
24234 bar:
24235 sethi %gdop_hix22(foo), %g1
24236 xor %g1, %gdop_lox10(foo), %g1
24237 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24241 ac_status=$?
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24244 then
24245 if test x$gcc_cv_ld != x \
24246 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24247 if test x$gcc_cv_objdump != x; then
24248 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24249 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24250 gcc_cv_as_sparc_gotdata_op=no
24251 else
24252 gcc_cv_as_sparc_gotdata_op=yes
24253 fi
24254 fi
24255 fi
24256 rm -f conftest
24257 else
24258 echo "configure: failed program was" >&5
24259 cat conftest.s >&5
24260 fi
24261 rm -f conftest.o conftest.s
24262 fi
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24265 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24266 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24267
24268 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24269
24270 fi
24271
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24273 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24274 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24275 $as_echo_n "(cached) " >&6
24276 else
24277 gcc_cv_as_sparc_ua_pcrel=no
24278 if test x$gcc_cv_as != x; then
24279 $as_echo '.text
24280 foo:
24281 nop
24282 .data
24283 .align 4
24284 .byte 0
24285 .uaword %r_disp32(foo)' > conftest.s
24286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }
24292 then
24293 if test x$gcc_cv_ld != x \
24294 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24295 gcc_cv_as_sparc_ua_pcrel=yes
24296 fi
24297 rm -f conftest
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24301 fi
24302 rm -f conftest.o conftest.s
24303 fi
24304 fi
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24306 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24307 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24308
24309 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24310
24311
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24313 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24314 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24316 else
24317 gcc_cv_as_sparc_ua_pcrel_hidden=no
24318 if test x$gcc_cv_as != x; then
24319 $as_echo '.data
24320 .align 4
24321 .byte 0x31
24322 .uaword %r_disp32(foo)
24323 .byte 0x32, 0x33, 0x34
24324 .global foo
24325 .hidden foo
24326 foo:
24327 .skip 4' > conftest.s
24328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24334 then
24335 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24336 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24337 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24338 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24339 if $gcc_cv_objdump -R conftest 2> /dev/null \
24340 | grep 'DISP32' > /dev/null 2>&1; then
24341 :
24342 else
24343 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24344 fi
24345 fi
24346 rm -f conftest
24347 else
24348 echo "configure: failed program was" >&5
24349 cat conftest.s >&5
24350 fi
24351 rm -f conftest.o conftest.s
24352 fi
24353 fi
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24355 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24356 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24357
24358 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24359
24360 fi
24361
24362 fi # unaligned pcrel relocs
24363
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24365 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24366 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24368 else
24369 gcc_cv_as_sparc_offsetable_lo10=no
24370 if test x$gcc_cv_as != x; then
24371 $as_echo '.text
24372 or %g1, %lo(ab) + 12, %g1
24373 or %g1, %lo(ab + 12), %g1' > conftest.s
24374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24380 then
24381 if test x$gcc_cv_objdump != x \
24382 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24383 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24384 gcc_cv_as_sparc_offsetable_lo10=yes
24385 fi
24386 else
24387 echo "configure: failed program was" >&5
24388 cat conftest.s >&5
24389 fi
24390 rm -f conftest.o conftest.s
24391 fi
24392 fi
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24394 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24395 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24396
24397 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24398
24399 fi
24400
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24402 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24403 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24404 $as_echo_n "(cached) " >&6
24405 else
24406 gcc_cv_as_sparc_fmaf=no
24407 if test x$gcc_cv_as != x; then
24408 $as_echo '.text
24409 .register %g2, #scratch
24410 .register %g3, #scratch
24411 .align 4
24412 fmaddd %f0, %f2, %f4, %f6
24413 addxccc %g1, %g2, %g3
24414 fsrl32 %f2, %f4, %f8
24415 fnaddd %f10, %f12, %f14' > conftest.s
24416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24422 then
24423 gcc_cv_as_sparc_fmaf=yes
24424 else
24425 echo "configure: failed program was" >&5
24426 cat conftest.s >&5
24427 fi
24428 rm -f conftest.o conftest.s
24429 fi
24430 fi
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24432 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24433 if test $gcc_cv_as_sparc_fmaf = yes; then
24434
24435 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24436
24437 fi
24438
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24440 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24441 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 gcc_cv_as_sparc_sparc4=no
24445 if test x$gcc_cv_as != x; then
24446 $as_echo '.text
24447 .register %g2, #scratch
24448 .register %g3, #scratch
24449 .align 4
24450 cxbe %g2, %g3, 1f
24451 1: cwbneg %g2, %g3, 1f
24452 1: sha1
24453 md5
24454 aes_kexpand0 %f4, %f6, %f8
24455 des_round %f38, %f40, %f42, %f44
24456 camellia_f %f54, %f56, %f58, %f60
24457 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24463 test $ac_status = 0; }; }
24464 then
24465 gcc_cv_as_sparc_sparc4=yes
24466 else
24467 echo "configure: failed program was" >&5
24468 cat conftest.s >&5
24469 fi
24470 rm -f conftest.o conftest.s
24471 fi
24472 fi
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24474 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24475 if test $gcc_cv_as_sparc_sparc4 = yes; then
24476
24477 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24478
24479 fi
24480
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24482 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24483 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24486 gcc_cv_as_sparc_leon=no
24487 if test x$gcc_cv_as != x; then
24488 $as_echo '.text
24489 .register %g2, #scratch
24490 .register %g3, #scratch
24491 .align 4
24492 smac %g2, %g3, %g1
24493 umac %g2, %g3, %g1
24494 cas [%g2], %g3, %g1' > conftest.s
24495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24501 then
24502 gcc_cv_as_sparc_leon=yes
24503 else
24504 echo "configure: failed program was" >&5
24505 cat conftest.s >&5
24506 fi
24507 rm -f conftest.o conftest.s
24508 fi
24509 fi
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24511 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24512 if test $gcc_cv_as_sparc_leon = yes; then
24513
24514 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24515
24516 fi
24517 ;;
24518
24519 i[34567]86-*-* | x86_64-*-*)
24520 case $target_os in
24521 cygwin*)
24522 # Full C++ conformance when using a shared libstdc++-v3 requires some
24523 # support from the Cygwin DLL, which in more recent versions exports
24524 # wrappers to aid in interposing and redirecting operators new, delete,
24525 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24526 # are configuring for a version of Cygwin that exports the wrappers.
24527 if test x$host = x$target && test x$host_cpu = xi686; then
24528 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24529 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24530 gcc_ac_cygwin_dll_wrappers=yes
24531 else
24532 gcc_ac_cygwin_dll_wrappers=no
24533 fi
24534
24535 else
24536 # Can't check presence of libc functions during cross-compile, so
24537 # we just have to assume we're building for an up-to-date target.
24538 gcc_ac_cygwin_dll_wrappers=yes
24539 fi
24540
24541 cat >>confdefs.h <<_ACEOF
24542 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24543 _ACEOF
24544
24545 esac
24546 case $target_os in
24547 cygwin* | pe | mingw32* | interix*)
24548 # Recent binutils allows the three-operand form of ".comm" on PE. This
24549 # definition is used unconditionally to initialise the default state of
24550 # the target option variable that governs usage of the feature.
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24552 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24553 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24554 $as_echo_n "(cached) " >&6
24555 else
24556 gcc_cv_as_comm_has_align=no
24557 if test $in_tree_gas = yes; then
24558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24559 then gcc_cv_as_comm_has_align=yes
24560 fi
24561 elif test x$gcc_cv_as != x; then
24562 $as_echo '.comm foo,1,32' > conftest.s
24563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568 test $ac_status = 0; }; }
24569 then
24570 gcc_cv_as_comm_has_align=yes
24571 else
24572 echo "configure: failed program was" >&5
24573 cat conftest.s >&5
24574 fi
24575 rm -f conftest.o conftest.s
24576 fi
24577 fi
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24579 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24580
24581
24582 cat >>confdefs.h <<_ACEOF
24583 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24584 _ACEOF
24585
24586 # Used for DWARF 2 in PE
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24588 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24589 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24590 $as_echo_n "(cached) " >&6
24591 else
24592 gcc_cv_as_ix86_pe_secrel32=no
24593 if test $in_tree_gas = yes; then
24594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24595 then gcc_cv_as_ix86_pe_secrel32=yes
24596 fi
24597 elif test x$gcc_cv_as != x; then
24598 $as_echo '.text
24599 foo: nop
24600 .data
24601 .secrel32 foo' > conftest.s
24602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24608 then
24609 if test x$gcc_cv_ld != x \
24610 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24611 gcc_cv_as_ix86_pe_secrel32=yes
24612 fi
24613 rm -f conftest
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24617 fi
24618 rm -f conftest.o conftest.s
24619 fi
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24622 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24623 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24624
24625 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24626
24627 fi
24628 # Test if the assembler supports the extended form of the .section
24629 # directive that specifies section alignment. LTO support uses this,
24630 # but normally only after installation, so we warn but don't fail the
24631 # configure if LTO is enabled but the assembler does not support it.
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24633 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24634 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_section_has_align=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24640 then gcc_cv_as_section_has_align=yes
24641 fi
24642 elif test x$gcc_cv_as != x; then
24643 $as_echo '.section lto_test,"dr0"' > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 gcc_cv_as_section_has_align=yes
24652 else
24653 echo "configure: failed program was" >&5
24654 cat conftest.s >&5
24655 fi
24656 rm -f conftest.o conftest.s
24657 fi
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24660 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24661
24662 if test x$gcc_cv_as_section_has_align != xyes; then
24663 case ",$enable_languages," in
24664 *,lto,*)
24665 { $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
24666 $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;}
24667 ;;
24668 esac
24669 fi
24670 # Test if the assembler supports the section flag 'e' for specifying
24671 # an excluded section.
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24673 $as_echo_n "checking assembler for .section with e... " >&6; }
24674 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24675 $as_echo_n "(cached) " >&6
24676 else
24677 gcc_cv_as_section_has_e=no
24678 if test $in_tree_gas = yes; then
24679 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24680 then gcc_cv_as_section_has_e=yes
24681 fi
24682 elif test x$gcc_cv_as != x; then
24683 $as_echo '.section foo1,"e"
24684 .byte 0,0,0,0' > conftest.s
24685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24691 then
24692 gcc_cv_as_section_has_e=yes
24693 else
24694 echo "configure: failed program was" >&5
24695 cat conftest.s >&5
24696 fi
24697 rm -f conftest.o conftest.s
24698 fi
24699 fi
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24701 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24702
24703
24704 cat >>confdefs.h <<_ACEOF
24705 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24706 _ACEOF
24707
24708 ;;
24709 esac
24710
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24712 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24713 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24715 else
24716 gcc_cv_as_ix86_filds=no
24717 if test x$gcc_cv_as != x; then
24718 $as_echo 'filds mem; fists mem' > conftest.s
24719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24724 test $ac_status = 0; }; }
24725 then
24726 gcc_cv_as_ix86_filds=yes
24727 else
24728 echo "configure: failed program was" >&5
24729 cat conftest.s >&5
24730 fi
24731 rm -f conftest.o conftest.s
24732 fi
24733 fi
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24735 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24736 if test $gcc_cv_as_ix86_filds = yes; then
24737
24738 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24739
24740 fi
24741
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24743 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24744 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24745 $as_echo_n "(cached) " >&6
24746 else
24747 gcc_cv_as_ix86_fildq=no
24748 if test x$gcc_cv_as != x; then
24749 $as_echo 'fildq mem; fistpq mem' > conftest.s
24750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24752 (eval $ac_try) 2>&5
24753 ac_status=$?
24754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24755 test $ac_status = 0; }; }
24756 then
24757 gcc_cv_as_ix86_fildq=yes
24758 else
24759 echo "configure: failed program was" >&5
24760 cat conftest.s >&5
24761 fi
24762 rm -f conftest.o conftest.s
24763 fi
24764 fi
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24766 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24767 if test $gcc_cv_as_ix86_fildq = yes; then
24768
24769 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24770
24771 fi
24772
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24774 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24775 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_ix86_cmov_sun_syntax=no
24779 if test x$gcc_cv_as != x; then
24780 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24787 then
24788 gcc_cv_as_ix86_cmov_sun_syntax=yes
24789 else
24790 echo "configure: failed program was" >&5
24791 cat conftest.s >&5
24792 fi
24793 rm -f conftest.o conftest.s
24794 fi
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24797 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24798 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24799
24800 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24801
24802 fi
24803
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24805 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24806 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_ix86_ffreep=no
24810 if test x$gcc_cv_as != x; then
24811 $as_echo 'ffreep %st(1)' > conftest.s
24812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24818 then
24819 gcc_cv_as_ix86_ffreep=yes
24820 else
24821 echo "configure: failed program was" >&5
24822 cat conftest.s >&5
24823 fi
24824 rm -f conftest.o conftest.s
24825 fi
24826 fi
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24828 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24829 if test $gcc_cv_as_ix86_ffreep = yes; then
24830
24831 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24832
24833 fi
24834
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24836 $as_echo_n "checking assembler for .quad directive... " >&6; }
24837 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24838 $as_echo_n "(cached) " >&6
24839 else
24840 gcc_cv_as_ix86_quad=no
24841 if test x$gcc_cv_as != x; then
24842 $as_echo '.quad 0' > conftest.s
24843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24849 then
24850 gcc_cv_as_ix86_quad=yes
24851 else
24852 echo "configure: failed program was" >&5
24853 cat conftest.s >&5
24854 fi
24855 rm -f conftest.o conftest.s
24856 fi
24857 fi
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24859 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24860 if test $gcc_cv_as_ix86_quad = yes; then
24861
24862 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24863
24864 fi
24865
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24867 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24868 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24870 else
24871 gcc_cv_as_ix86_sahf=no
24872 if test x$gcc_cv_as != x; then
24873 $as_echo '.code64
24874 sahf' > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 gcc_cv_as_ix86_sahf=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24886 fi
24887 rm -f conftest.o conftest.s
24888 fi
24889 fi
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24891 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24892 if test $gcc_cv_as_ix86_sahf = yes; then
24893
24894 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24895
24896 fi
24897
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24899 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24900 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_as_ix86_interunit_movq=no
24904 if test x$gcc_cv_as != x; then
24905 $as_echo '.code64
24906 movq %mm0, %rax
24907 movq %rax, %xmm0' > conftest.s
24908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24914 then
24915 gcc_cv_as_ix86_interunit_movq=yes
24916 else
24917 echo "configure: failed program was" >&5
24918 cat conftest.s >&5
24919 fi
24920 rm -f conftest.o conftest.s
24921 fi
24922 fi
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24924 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24925
24926
24927 cat >>confdefs.h <<_ACEOF
24928 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24929 _ACEOF
24930
24931
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24933 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24934 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24936 else
24937 gcc_cv_as_ix86_hle=no
24938 if test x$gcc_cv_as != x; then
24939 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24946 then
24947 gcc_cv_as_ix86_hle=yes
24948 else
24949 echo "configure: failed program was" >&5
24950 cat conftest.s >&5
24951 fi
24952 rm -f conftest.o conftest.s
24953 fi
24954 fi
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24956 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24957 if test $gcc_cv_as_ix86_hle = yes; then
24958
24959 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24960
24961 fi
24962
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24964 $as_echo_n "checking assembler for swap suffix... " >&6; }
24965 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24967 else
24968 gcc_cv_as_ix86_swap=no
24969 if test x$gcc_cv_as != x; then
24970 $as_echo 'movl.s %esp, %ebp' > conftest.s
24971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24977 then
24978 gcc_cv_as_ix86_swap=yes
24979 else
24980 echo "configure: failed program was" >&5
24981 cat conftest.s >&5
24982 fi
24983 rm -f conftest.o conftest.s
24984 fi
24985 fi
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24987 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24988 if test $gcc_cv_as_ix86_swap = yes; then
24989
24990 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24991
24992 fi
24993
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24995 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24996 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24998 else
24999 gcc_cv_as_ix86_diff_sect_delta=no
25000 if test x$gcc_cv_as != x; then
25001 $as_echo '.section .rodata
25002 .L1:
25003 .long .L2-.L1
25004 .long .L3-.L1
25005 .text
25006 .L3: nop
25007 .L2: nop' > conftest.s
25008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25014 then
25015 gcc_cv_as_ix86_diff_sect_delta=yes
25016 else
25017 echo "configure: failed program was" >&5
25018 cat conftest.s >&5
25019 fi
25020 rm -f conftest.o conftest.s
25021 fi
25022 fi
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25024 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25025 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25026
25027 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25028
25029 fi
25030
25031 # These two are used unconditionally by i386.[ch]; it is to be defined
25032 # to 1 if the feature is present, 0 otherwise.
25033 as_ix86_gotoff_in_data_opt=
25034 if test x$gas = xyes; then
25035 as_ix86_gotoff_in_data_opt="--32"
25036 fi
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25038 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25039 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25041 else
25042 gcc_cv_as_ix86_gotoff_in_data=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25045 then gcc_cv_as_ix86_gotoff_in_data=yes
25046 fi
25047 elif test x$gcc_cv_as != x; then
25048 $as_echo ' .text
25049 .L0:
25050 nop
25051 .data
25052 .long .L0@GOTOFF' > conftest.s
25053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25059 then
25060 gcc_cv_as_ix86_gotoff_in_data=yes
25061 else
25062 echo "configure: failed program was" >&5
25063 cat conftest.s >&5
25064 fi
25065 rm -f conftest.o conftest.s
25066 fi
25067 fi
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25069 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25070
25071
25072 cat >>confdefs.h <<_ACEOF
25073 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25074 _ACEOF
25075
25076
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25078 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25079 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25080 $as_echo_n "(cached) " >&6
25081 else
25082 gcc_cv_as_ix86_rep_lock_prefix=no
25083 if test x$gcc_cv_as != x; then
25084 $as_echo 'rep movsl
25085 rep ret
25086 rep nop
25087 rep bsf %ecx, %eax
25088 rep bsr %ecx, %eax
25089 lock addl %edi, (%eax,%esi)
25090 lock orl $0, (%esp)' > conftest.s
25091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25097 then
25098 gcc_cv_as_ix86_rep_lock_prefix=yes
25099 else
25100 echo "configure: failed program was" >&5
25101 cat conftest.s >&5
25102 fi
25103 rm -f conftest.o conftest.s
25104 fi
25105 fi
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25107 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25108 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25109
25110 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25111
25112 fi
25113
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25115 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25116 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25117 $as_echo_n "(cached) " >&6
25118 else
25119 gcc_cv_as_ix86_ud2=no
25120 if test x$gcc_cv_as != x; then
25121 $as_echo 'ud2' > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 gcc_cv_as_ix86_ud2=yes
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25133 fi
25134 rm -f conftest.o conftest.s
25135 fi
25136 fi
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25138 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25139 if test $gcc_cv_as_ix86_ud2 = yes; then
25140
25141 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25142
25143 fi
25144
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25146 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25147 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_ix86_tlsgdplt=no
25151 if test x$gcc_cv_as != x; then
25152 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25159 then
25160 if test x$gcc_cv_ld != x \
25161 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25162 gcc_cv_as_ix86_tlsgdplt=yes
25163 fi
25164 rm -f conftest
25165 else
25166 echo "configure: failed program was" >&5
25167 cat conftest.s >&5
25168 fi
25169 rm -f conftest.o conftest.s
25170 fi
25171 fi
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25173 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25174 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25175
25176 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25177
25178 fi
25179
25180 conftest_s='
25181 .section .tdata,"aw'$tls_section_flag'",@progbits
25182 tls_ld:
25183 .section .text,"ax",@progbits
25184 call tls_ld@tlsldmplt'
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25186 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25187 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25188 $as_echo_n "(cached) " >&6
25189 else
25190 gcc_cv_as_ix86_tlsldmplt=no
25191 if test x$gcc_cv_as != x; then
25192 $as_echo "$conftest_s" > conftest.s
25193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25198 test $ac_status = 0; }; }
25199 then
25200 if test x$gcc_cv_ld != x \
25201 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25202 gcc_cv_as_ix86_tlsldmplt=yes
25203 fi
25204 rm -f conftest
25205 else
25206 echo "configure: failed program was" >&5
25207 cat conftest.s >&5
25208 fi
25209 rm -f conftest.o conftest.s
25210 fi
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25213 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25214
25215
25216 cat >>confdefs.h <<_ACEOF
25217 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25218 _ACEOF
25219
25220
25221 # Enforce 32-bit output with gas and gld.
25222 if test x$gas = xyes; then
25223 as_ix86_tls_ldm_opt="--32"
25224 fi
25225 if echo "$ld_ver" | grep GNU > /dev/null; then
25226 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25227 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25228 else
25229 ld_ix86_tls_ldm_opt="-melf_i386"
25230 fi
25231 fi
25232 conftest_s='
25233 .section .text,"ax",@progbits
25234 .globl _start
25235 .type _start, @function
25236 _start:
25237 leal value@tlsldm(%ebx), %eax
25238 call ___tls_get_addr@plt
25239
25240 .section .tdata,"aw'$tls_section_flag'",@progbits
25241 .type value, @object
25242 value:'
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25244 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25245 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25247 else
25248 gcc_cv_as_ix86_tlsldm=no
25249 if test x$gcc_cv_as != x; then
25250 $as_echo "$conftest_s" > conftest.s
25251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; }
25257 then
25258 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25259 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25260 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25261 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25262 gcc_cv_as_ix86_tlsldm=yes
25263 fi
25264 fi
25265 rm -f conftest
25266 else
25267 echo "configure: failed program was" >&5
25268 cat conftest.s >&5
25269 fi
25270 rm -f conftest.o conftest.s
25271 fi
25272 fi
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25274 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25275
25276
25277 cat >>confdefs.h <<_ACEOF
25278 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25279 _ACEOF
25280
25281
25282 ;;
25283
25284 ia64*-*-*)
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25286 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25287 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25293 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25294 fi
25295 elif test x$gcc_cv_as != x; then
25296 $as_echo ' .text
25297 addl r15 = @ltoffx(x#), gp
25298 ;;
25299 ld8.mov r16 = [r15], x#' > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25311 fi
25312 rm -f conftest.o conftest.s
25313 fi
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25316 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25317 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25318
25319 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25320
25321 fi
25322
25323 ;;
25324
25325 powerpc*-*-*)
25326 case $target in
25327 *-*-aix*) conftest_s=' .machine "pwr5"
25328 .csect .text[PR]
25329 mfcr 3,128';;
25330 *-*-darwin*)
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25332 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25333 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25335 else
25336 gcc_cv_as_machine_directive=no
25337 if test x$gcc_cv_as != x; then
25338 $as_echo ' .machine ppc7400' > conftest.s
25339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25344 test $ac_status = 0; }; }
25345 then
25346 gcc_cv_as_machine_directive=yes
25347 else
25348 echo "configure: failed program was" >&5
25349 cat conftest.s >&5
25350 fi
25351 rm -f conftest.o conftest.s
25352 fi
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25355 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25356
25357 if test x$gcc_cv_as_machine_directive != xyes; then
25358 echo "*** This target requires an assembler supporting \".machine\"" >&2
25359 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25360 test x$build = x$target && exit 1
25361 fi
25362 conftest_s=' .text
25363 mfcr r3,128';;
25364 *) conftest_s=' .machine power4
25365 .text
25366 mfcr 3,128';;
25367 esac
25368
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25370 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25371 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25372 $as_echo_n "(cached) " >&6
25373 else
25374 gcc_cv_as_powerpc_mfcrf=no
25375 if test $in_tree_gas = yes; then
25376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25377 then gcc_cv_as_powerpc_mfcrf=yes
25378 fi
25379 elif test x$gcc_cv_as != x; then
25380 $as_echo "$conftest_s" > conftest.s
25381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25387 then
25388 gcc_cv_as_powerpc_mfcrf=yes
25389 else
25390 echo "configure: failed program was" >&5
25391 cat conftest.s >&5
25392 fi
25393 rm -f conftest.o conftest.s
25394 fi
25395 fi
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25397 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25398 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25399
25400 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25401
25402 fi
25403
25404 case $target in
25405 *-*-aix*) conftest_s=' .machine "pwr5"
25406 .csect .text[PR]
25407 popcntb 3,3';;
25408 *) conftest_s=' .machine power5
25409 .text
25410 popcntb 3,3';;
25411 esac
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25414 $as_echo_n "checking assembler for popcntb support... " >&6; }
25415 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25416 $as_echo_n "(cached) " >&6
25417 else
25418 gcc_cv_as_powerpc_popcntb=no
25419 if test $in_tree_gas = yes; then
25420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25421 then gcc_cv_as_powerpc_popcntb=yes
25422 fi
25423 elif test x$gcc_cv_as != x; then
25424 $as_echo "$conftest_s" > conftest.s
25425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; }
25431 then
25432 gcc_cv_as_powerpc_popcntb=yes
25433 else
25434 echo "configure: failed program was" >&5
25435 cat conftest.s >&5
25436 fi
25437 rm -f conftest.o conftest.s
25438 fi
25439 fi
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25441 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25442 if test $gcc_cv_as_powerpc_popcntb = yes; then
25443
25444 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25445
25446 fi
25447
25448 case $target in
25449 *-*-aix*) conftest_s=' .machine "pwr5x"
25450 .csect .text[PR]
25451 frin 1,1';;
25452 *) conftest_s=' .machine power5
25453 .text
25454 frin 1,1';;
25455 esac
25456
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25458 $as_echo_n "checking assembler for fp round support... " >&6; }
25459 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25460 $as_echo_n "(cached) " >&6
25461 else
25462 gcc_cv_as_powerpc_fprnd=no
25463 if test $in_tree_gas = yes; then
25464 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25465 then gcc_cv_as_powerpc_fprnd=yes
25466 fi
25467 elif test x$gcc_cv_as != x; then
25468 $as_echo "$conftest_s" > conftest.s
25469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25475 then
25476 gcc_cv_as_powerpc_fprnd=yes
25477 else
25478 echo "configure: failed program was" >&5
25479 cat conftest.s >&5
25480 fi
25481 rm -f conftest.o conftest.s
25482 fi
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25485 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25486 if test $gcc_cv_as_powerpc_fprnd = yes; then
25487
25488 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25489
25490 fi
25491
25492 case $target in
25493 *-*-aix*) conftest_s=' .machine "pwr6"
25494 .csect .text[PR]
25495 mffgpr 1,3';;
25496 *) conftest_s=' .machine power6
25497 .text
25498 mffgpr 1,3';;
25499 esac
25500
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25502 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25503 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25504 $as_echo_n "(cached) " >&6
25505 else
25506 gcc_cv_as_powerpc_mfpgpr=no
25507 if test $in_tree_gas = yes; then
25508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25509 then gcc_cv_as_powerpc_mfpgpr=yes
25510 fi
25511 elif test x$gcc_cv_as != x; then
25512 $as_echo "$conftest_s" > conftest.s
25513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25518 test $ac_status = 0; }; }
25519 then
25520 gcc_cv_as_powerpc_mfpgpr=yes
25521 else
25522 echo "configure: failed program was" >&5
25523 cat conftest.s >&5
25524 fi
25525 rm -f conftest.o conftest.s
25526 fi
25527 fi
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25529 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25530 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25531
25532 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25533
25534 fi
25535
25536 case $target in
25537 *-*-aix*) conftest_s=' .csect .text[PR]
25538 LCF..0:
25539 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25540 *-*-darwin*)
25541 conftest_s=' .text
25542 LCF0:
25543 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25544 *) conftest_s=' .text
25545 .LCF0:
25546 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25547 esac
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25550 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25551 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 gcc_cv_as_powerpc_rel16=no
25555 if test $in_tree_gas = yes; then
25556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25557 then gcc_cv_as_powerpc_rel16=yes
25558 fi
25559 elif test x$gcc_cv_as != x; then
25560 $as_echo "$conftest_s" > conftest.s
25561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25567 then
25568 gcc_cv_as_powerpc_rel16=yes
25569 else
25570 echo "configure: failed program was" >&5
25571 cat conftest.s >&5
25572 fi
25573 rm -f conftest.o conftest.s
25574 fi
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25577 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25578 if test $gcc_cv_as_powerpc_rel16 = yes; then
25579
25580 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25581
25582 fi
25583
25584 case $target in
25585 *-*-aix*) conftest_s=' .machine "pwr6"
25586 .csect .text[PR]
25587 cmpb 3,4,5';;
25588 *) conftest_s=' .machine power6
25589 .text
25590 cmpb 3,4,5';;
25591 esac
25592
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25594 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25595 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25596 $as_echo_n "(cached) " >&6
25597 else
25598 gcc_cv_as_powerpc_cmpb=no
25599 if test $in_tree_gas = yes; then
25600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25601 then gcc_cv_as_powerpc_cmpb=yes
25602 fi
25603 elif test x$gcc_cv_as != x; then
25604 $as_echo "$conftest_s" > conftest.s
25605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25611 then
25612 gcc_cv_as_powerpc_cmpb=yes
25613 else
25614 echo "configure: failed program was" >&5
25615 cat conftest.s >&5
25616 fi
25617 rm -f conftest.o conftest.s
25618 fi
25619 fi
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25621 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25622 if test $gcc_cv_as_powerpc_cmpb = yes; then
25623
25624 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25625
25626 fi
25627
25628 case $target in
25629 *-*-aix*) conftest_s=' .machine "pwr6"
25630 .csect .text[PR]
25631 dadd 1,2,3';;
25632 *) conftest_s=' .machine power6
25633 .text
25634 dadd 1,2,3';;
25635 esac
25636
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25638 $as_echo_n "checking assembler for decimal float support... " >&6; }
25639 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25640 $as_echo_n "(cached) " >&6
25641 else
25642 gcc_cv_as_powerpc_dfp=no
25643 if test $in_tree_gas = yes; then
25644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25645 then gcc_cv_as_powerpc_dfp=yes
25646 fi
25647 elif test x$gcc_cv_as != x; then
25648 $as_echo "$conftest_s" > conftest.s
25649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25654 test $ac_status = 0; }; }
25655 then
25656 gcc_cv_as_powerpc_dfp=yes
25657 else
25658 echo "configure: failed program was" >&5
25659 cat conftest.s >&5
25660 fi
25661 rm -f conftest.o conftest.s
25662 fi
25663 fi
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25665 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25666 if test $gcc_cv_as_powerpc_dfp = yes; then
25667
25668 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25669
25670 fi
25671
25672 case $target in
25673 *-*-aix*) conftest_s=' .machine "pwr7"
25674 .csect .text[PR]
25675 lxvd2x 1,2,3';;
25676 *) conftest_s=' .machine power7
25677 .text
25678 lxvd2x 1,2,3';;
25679 esac
25680
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25682 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25683 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25684 $as_echo_n "(cached) " >&6
25685 else
25686 gcc_cv_as_powerpc_vsx=no
25687 if test $in_tree_gas = yes; then
25688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25689 then gcc_cv_as_powerpc_vsx=yes
25690 fi
25691 elif test x$gcc_cv_as != x; then
25692 $as_echo "$conftest_s" > conftest.s
25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25699 then
25700 gcc_cv_as_powerpc_vsx=yes
25701 else
25702 echo "configure: failed program was" >&5
25703 cat conftest.s >&5
25704 fi
25705 rm -f conftest.o conftest.s
25706 fi
25707 fi
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25709 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25710 if test $gcc_cv_as_powerpc_vsx = yes; then
25711
25712 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25713
25714 fi
25715
25716 case $target in
25717 *-*-aix*) conftest_s=' .machine "pwr7"
25718 .csect .text[PR]
25719 popcntd 3,3';;
25720 *) conftest_s=' .machine power7
25721 .text
25722 popcntd 3,3';;
25723 esac
25724
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25726 $as_echo_n "checking assembler for popcntd support... " >&6; }
25727 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25729 else
25730 gcc_cv_as_powerpc_popcntd=no
25731 if test $in_tree_gas = yes; then
25732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25733 then gcc_cv_as_powerpc_popcntd=yes
25734 fi
25735 elif test x$gcc_cv_as != x; then
25736 $as_echo "$conftest_s" > conftest.s
25737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742 test $ac_status = 0; }; }
25743 then
25744 gcc_cv_as_powerpc_popcntd=yes
25745 else
25746 echo "configure: failed program was" >&5
25747 cat conftest.s >&5
25748 fi
25749 rm -f conftest.o conftest.s
25750 fi
25751 fi
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25753 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25754 if test $gcc_cv_as_powerpc_popcntd = yes; then
25755
25756 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25757
25758 fi
25759
25760 case $target in
25761 *-*-aix*) conftest_s=' .machine "pwr8"
25762 .csect .text[PR]';;
25763 *) conftest_s=' .machine power8
25764 .text';;
25765 esac
25766
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25768 $as_echo_n "checking assembler for power8 support... " >&6; }
25769 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25770 $as_echo_n "(cached) " >&6
25771 else
25772 gcc_cv_as_powerpc_power8=no
25773 if test $in_tree_gas = yes; then
25774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25775 then gcc_cv_as_powerpc_power8=yes
25776 fi
25777 elif test x$gcc_cv_as != x; then
25778 $as_echo "$conftest_s" > conftest.s
25779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; }
25785 then
25786 gcc_cv_as_powerpc_power8=yes
25787 else
25788 echo "configure: failed program was" >&5
25789 cat conftest.s >&5
25790 fi
25791 rm -f conftest.o conftest.s
25792 fi
25793 fi
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25795 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25796 if test $gcc_cv_as_powerpc_power8 = yes; then
25797
25798 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25799
25800 fi
25801
25802 case $target in
25803 *-*-aix*) conftest_s=' .csect .text[PR]
25804 lwsync';;
25805 *) conftest_s=' .text
25806 lwsync';;
25807 esac
25808
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25810 $as_echo_n "checking assembler for lwsync support... " >&6; }
25811 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25812 $as_echo_n "(cached) " >&6
25813 else
25814 gcc_cv_as_powerpc_lwsync=no
25815 if test $in_tree_gas = yes; then
25816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25817 then gcc_cv_as_powerpc_lwsync=yes
25818 fi
25819 elif test x$gcc_cv_as != x; then
25820 $as_echo "$conftest_s" > conftest.s
25821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; }; }
25827 then
25828 gcc_cv_as_powerpc_lwsync=yes
25829 else
25830 echo "configure: failed program was" >&5
25831 cat conftest.s >&5
25832 fi
25833 rm -f conftest.o conftest.s
25834 fi
25835 fi
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25837 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25838 if test $gcc_cv_as_powerpc_lwsync = yes; then
25839
25840 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25841
25842 fi
25843
25844 case $target in
25845 *-*-aix*) conftest_s=' .machine "476"
25846 .csect .text[PR]
25847 dci 0';;
25848 *) conftest_s=' .machine "476"
25849 .text
25850 dci 0';;
25851 esac
25852
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25854 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25855 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25856 $as_echo_n "(cached) " >&6
25857 else
25858 gcc_cv_as_powerpc_dci=no
25859 if test $in_tree_gas = yes; then
25860 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25861 then gcc_cv_as_powerpc_dci=yes
25862 fi
25863 elif test x$gcc_cv_as != x; then
25864 $as_echo "$conftest_s" > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 gcc_cv_as_powerpc_dci=yes
25873 else
25874 echo "configure: failed program was" >&5
25875 cat conftest.s >&5
25876 fi
25877 rm -f conftest.o conftest.s
25878 fi
25879 fi
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25881 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25882 if test $gcc_cv_as_powerpc_dci = yes; then
25883
25884 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25885
25886 fi
25887
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25889 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25890 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_powerpc_gnu_attribute=no
25894 if test $in_tree_gas = yes; then
25895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25896 then gcc_cv_as_powerpc_gnu_attribute=yes
25897 fi
25898 elif test x$gcc_cv_as != x; then
25899 $as_echo '.gnu_attribute 4,1' > conftest.s
25900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25906 then
25907 gcc_cv_as_powerpc_gnu_attribute=yes
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25911 fi
25912 rm -f conftest.o conftest.s
25913 fi
25914 fi
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25916 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25917 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25918
25919 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25920
25921 fi
25922
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25924 $as_echo_n "checking assembler for tls marker support... " >&6; }
25925 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25926 $as_echo_n "(cached) " >&6
25927 else
25928 gcc_cv_as_powerpc_tls_markers=no
25929 if test $in_tree_gas = yes; then
25930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25931 then gcc_cv_as_powerpc_tls_markers=yes
25932 fi
25933 elif test x$gcc_cv_as != x; then
25934 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25941 then
25942 gcc_cv_as_powerpc_tls_markers=yes
25943 else
25944 echo "configure: failed program was" >&5
25945 cat conftest.s >&5
25946 fi
25947 rm -f conftest.o conftest.s
25948 fi
25949 fi
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25951 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25952 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25953
25954 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25955
25956 fi
25957
25958 case $target in
25959 *-*-aix*)
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25961 $as_echo_n "checking assembler for .ref support... " >&6; }
25962 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25965 gcc_cv_as_aix_ref=no
25966 if test $in_tree_gas = yes; then
25967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25968 then gcc_cv_as_aix_ref=yes
25969 fi
25970 elif test x$gcc_cv_as != x; then
25971 $as_echo ' .csect stuff[rw]
25972 stuff:
25973 .long 1
25974 .extern sym
25975 .ref sym
25976 ' > conftest.s
25977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; }; }
25983 then
25984 gcc_cv_as_aix_ref=yes
25985 else
25986 echo "configure: failed program was" >&5
25987 cat conftest.s >&5
25988 fi
25989 rm -f conftest.o conftest.s
25990 fi
25991 fi
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25993 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25994 if test $gcc_cv_as_aix_ref = yes; then
25995
25996 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25997
25998 fi
25999 ;;
26000 esac
26001 ;;
26002
26003 mips*-*-*)
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26005 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26006 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26008 else
26009 gcc_cv_as_mips_explicit_relocs=no
26010 if test $in_tree_gas = yes; then
26011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26012 then gcc_cv_as_mips_explicit_relocs=yes
26013 fi
26014 elif test x$gcc_cv_as != x; then
26015 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; }
26022 then
26023 gcc_cv_as_mips_explicit_relocs=yes
26024 else
26025 echo "configure: failed program was" >&5
26026 cat conftest.s >&5
26027 fi
26028 rm -f conftest.o conftest.s
26029 fi
26030 fi
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26032 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26033 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26034 if test x$target_cpu_default = x
26035 then target_cpu_default=MASK_EXPLICIT_RELOCS
26036 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26037 fi
26038 fi
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26040 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26041 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26042 $as_echo_n "(cached) " >&6
26043 else
26044 gcc_cv_as_mips_no_shared=no
26045 if test $in_tree_gas = yes; then
26046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26047 then gcc_cv_as_mips_no_shared=yes
26048 fi
26049 elif test x$gcc_cv_as != x; then
26050 $as_echo 'nop' > conftest.s
26051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }
26057 then
26058 gcc_cv_as_mips_no_shared=yes
26059 else
26060 echo "configure: failed program was" >&5
26061 cat conftest.s >&5
26062 fi
26063 rm -f conftest.o conftest.s
26064 fi
26065 fi
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26067 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26068 if test $gcc_cv_as_mips_no_shared = yes; then
26069
26070 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26071
26072 fi
26073
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26075 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26076 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26077 $as_echo_n "(cached) " >&6
26078 else
26079 gcc_cv_as_mips_gnu_attribute=no
26080 if test $in_tree_gas = yes; then
26081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26082 then gcc_cv_as_mips_gnu_attribute=yes
26083 fi
26084 elif test x$gcc_cv_as != x; then
26085 $as_echo '.gnu_attribute 4,1' > conftest.s
26086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091 test $ac_status = 0; }; }
26092 then
26093 gcc_cv_as_mips_gnu_attribute=yes
26094 else
26095 echo "configure: failed program was" >&5
26096 cat conftest.s >&5
26097 fi
26098 rm -f conftest.o conftest.s
26099 fi
26100 fi
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26102 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26103 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26104
26105 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26106
26107 fi
26108
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26110 $as_echo_n "checking assembler for .micromips support... " >&6; }
26111 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26112 $as_echo_n "(cached) " >&6
26113 else
26114 gcc_cv_as_micromips_support=no
26115 if test x$gcc_cv_as != x; then
26116 $as_echo '.set micromips' > conftest.s
26117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; }
26123 then
26124 gcc_cv_as_micromips_support=yes
26125 else
26126 echo "configure: failed program was" >&5
26127 cat conftest.s >&5
26128 fi
26129 rm -f conftest.o conftest.s
26130 fi
26131 fi
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26133 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26134 if test $gcc_cv_as_micromips_support = yes; then
26135
26136 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26137
26138 fi
26139
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26141 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26142 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_mips_dtprelword=no
26146 if test $in_tree_gas = yes; then
26147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26148 then gcc_cv_as_mips_dtprelword=yes
26149 fi
26150 elif test x$gcc_cv_as != x; then
26151 $as_echo '.section .tdata,"awT",@progbits
26152 x:
26153 .word 2
26154 .text
26155 .dtprelword x+0x8000' > conftest.s
26156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26161 test $ac_status = 0; }; }
26162 then
26163 gcc_cv_as_mips_dtprelword=yes
26164 else
26165 echo "configure: failed program was" >&5
26166 cat conftest.s >&5
26167 fi
26168 rm -f conftest.o conftest.s
26169 fi
26170 fi
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26172 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26173 if test $gcc_cv_as_mips_dtprelword = yes; then
26174
26175 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26176
26177 fi
26178
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26180 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26181 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26182 $as_echo_n "(cached) " >&6
26183 else
26184 gcc_cv_as_mips_dspr1_mult=no
26185 if test x$gcc_cv_as != x; then
26186 $as_echo ' .set mips32r2
26187 .set nodspr2
26188 .set dsp
26189 madd $ac3,$4,$5
26190 maddu $ac3,$4,$5
26191 msub $ac3,$4,$5
26192 msubu $ac3,$4,$5
26193 mult $ac3,$4,$5
26194 multu $ac3,$4,$5' > conftest.s
26195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26197 (eval $ac_try) 2>&5
26198 ac_status=$?
26199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26200 test $ac_status = 0; }; }
26201 then
26202 gcc_cv_as_mips_dspr1_mult=yes
26203 else
26204 echo "configure: failed program was" >&5
26205 cat conftest.s >&5
26206 fi
26207 rm -f conftest.o conftest.s
26208 fi
26209 fi
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26211 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26212 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26213
26214 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26215
26216 fi
26217
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26219 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26220 gcc_cv_as_ld_jalr_reloc=no
26221 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26222 if test $in_tree_ld = yes ; then
26223 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 \
26224 && test $in_tree_ld_is_elf = yes; then
26225 gcc_cv_as_ld_jalr_reloc=yes
26226 fi
26227 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26228 echo ' .ent x' > conftest.s
26229 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26230 echo ' ld $25,%call16(y)($28)' >> conftest.s
26231 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26232 echo '1: jalr $25' >> conftest.s
26233 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26234 echo '1: jalr $25' >> conftest.s
26235 echo ' .end x' >> conftest.s
26236 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26237 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26238 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26239 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26240 gcc_cv_as_ld_jalr_reloc=yes
26241 fi
26242 fi
26243 rm -f conftest.*
26244 fi
26245 fi
26246 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26247 if test x$target_cpu_default = x; then
26248 target_cpu_default=MASK_RELAX_PIC_CALLS
26249 else
26250 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26251 fi
26252 fi
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26254 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26257 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26258 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_ld_mips_personality_relaxation=no
26262 if test $in_tree_ld = yes ; then
26263 if test "$gcc_cv_gld_major_version" -eq 2 \
26264 -a "$gcc_cv_gld_minor_version" -ge 21 \
26265 -o "$gcc_cv_gld_major_version" -gt 2; then
26266 gcc_cv_ld_mips_personality_relaxation=yes
26267 fi
26268 elif test x$gcc_cv_as != x \
26269 -a x$gcc_cv_ld != x \
26270 -a x$gcc_cv_readelf != x ; then
26271 cat > conftest.s <<EOF
26272 .cfi_startproc
26273 .cfi_personality 0x80,indirect_ptr
26274 .ent test
26275 test:
26276 nop
26277 .end test
26278 .cfi_endproc
26279
26280 .section .data,"aw",@progbits
26281 indirect_ptr:
26282 .dc.a personality
26283 EOF
26284 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26285 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26286 if $gcc_cv_readelf -d conftest 2>&1 \
26287 | grep TEXTREL > /dev/null 2>&1; then
26288 :
26289 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26290 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26291 :
26292 else
26293 gcc_cv_ld_mips_personality_relaxation=yes
26294 fi
26295 fi
26296 fi
26297 rm -f conftest.s conftest.o conftest
26298 fi
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26300 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26301 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26302
26303 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26304
26305 fi
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26308 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26309 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26311 else
26312 gcc_cv_as_mips_nan=no
26313 if test x$gcc_cv_as != x; then
26314 $as_echo '' > conftest.s
26315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26321 then
26322 gcc_cv_as_mips_nan=yes
26323 else
26324 echo "configure: failed program was" >&5
26325 cat conftest.s >&5
26326 fi
26327 rm -f conftest.o conftest.s
26328 fi
26329 fi
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26331 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26332 if test $gcc_cv_as_mips_nan = yes; then
26333
26334 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26335
26336 fi
26337 if test x$gcc_cv_as_mips_nan = xno \
26338 && test x$with_nan != x; then
26339 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26340 fi
26341 ;;
26342 esac
26343
26344 # Mips and HP-UX need the GNU assembler.
26345 # Linux on IA64 might be able to use the Intel assembler.
26346
26347 case "$target" in
26348 mips*-*-* | *-*-hpux* )
26349 if test x$gas_flag = xyes \
26350 || test x"$host" != x"$build" \
26351 || test ! -x "$gcc_cv_as" \
26352 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26353 :
26354 else
26355 echo "*** This configuration requires the GNU assembler" >&2
26356 exit 1
26357 fi
26358 ;;
26359 esac
26360
26361 # ??? Not all targets support dwarf2 debug_line, even within a version
26362 # of gas. Moreover, we need to emit a valid instruction to trigger any
26363 # info to the output file. So, as supported targets are added to gas 2.11,
26364 # add some instruction here to (also) show we expect this might work.
26365 # ??? Once 2.11 is released, probably need to add first known working
26366 # version to the per-target configury.
26367 case "$cpu_type" in
26368 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26369 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26370 | xstormy16 | xtensa)
26371 insn="nop"
26372 ;;
26373 ia64 | s390)
26374 insn="nop 0"
26375 ;;
26376 mmix)
26377 insn="swym 0"
26378 ;;
26379 esac
26380 if test x"$insn" != x; then
26381 conftest_s="\
26382 .file 1 \"conftest.s\"
26383 .loc 1 3 0
26384 $insn"
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26386 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26387 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26388 $as_echo_n "(cached) " >&6
26389 else
26390 gcc_cv_as_dwarf2_debug_line=no
26391 if test $in_tree_gas = yes; then
26392 if test $in_tree_gas_is_elf = yes \
26393 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26394 then gcc_cv_as_dwarf2_debug_line=yes
26395 fi
26396 elif test x$gcc_cv_as != x; then
26397 $as_echo "$conftest_s" > conftest.s
26398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26400 (eval $ac_try) 2>&5
26401 ac_status=$?
26402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26403 test $ac_status = 0; }; }
26404 then
26405 if test x$gcc_cv_objdump != x \
26406 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26407 | grep debug_line > /dev/null 2>&1; then
26408 gcc_cv_as_dwarf2_debug_line=yes
26409 fi
26410 else
26411 echo "configure: failed program was" >&5
26412 cat conftest.s >&5
26413 fi
26414 rm -f conftest.o conftest.s
26415 fi
26416 fi
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26418 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26419
26420
26421 # The .debug_line file table must be in the exact order that
26422 # we specified the files, since these indices are also used
26423 # by DW_AT_decl_file. Approximate this test by testing if
26424 # the assembler bitches if the same index is assigned twice.
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26426 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26427 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26428 $as_echo_n "(cached) " >&6
26429 else
26430 gcc_cv_as_dwarf2_file_buggy=no
26431 if test x$gcc_cv_as != x; then
26432 $as_echo ' .file 1 "foo.s"
26433 .file 1 "bar.s"' > conftest.s
26434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; }
26440 then
26441 gcc_cv_as_dwarf2_file_buggy=yes
26442 else
26443 echo "configure: failed program was" >&5
26444 cat conftest.s >&5
26445 fi
26446 rm -f conftest.o conftest.s
26447 fi
26448 fi
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26450 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26451
26452
26453 if test $gcc_cv_as_dwarf2_debug_line = yes \
26454 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26455
26456 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26457
26458 fi
26459
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26461 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26462 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26463 $as_echo_n "(cached) " >&6
26464 else
26465 gcc_cv_as_gdwarf2_flag=no
26466 if test $in_tree_gas = yes; then
26467 if test $in_tree_gas_is_elf = yes \
26468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26469 then gcc_cv_as_gdwarf2_flag=yes
26470 fi
26471 elif test x$gcc_cv_as != x; then
26472 $as_echo "$insn" > conftest.s
26473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26478 test $ac_status = 0; }; }
26479 then
26480 gcc_cv_as_gdwarf2_flag=yes
26481 else
26482 echo "configure: failed program was" >&5
26483 cat conftest.s >&5
26484 fi
26485 rm -f conftest.o conftest.s
26486 fi
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26489 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26490 if test $gcc_cv_as_gdwarf2_flag = yes; then
26491
26492 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26493
26494 fi
26495
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26497 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26498 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_as_gstabs_flag=no
26502 if test $in_tree_gas = yes; then
26503 if test $in_tree_gas_is_elf = yes \
26504 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26505 then gcc_cv_as_gstabs_flag=yes
26506 fi
26507 elif test x$gcc_cv_as != x; then
26508 $as_echo "$insn" > conftest.s
26509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26514 test $ac_status = 0; }; }
26515 then
26516 gcc_cv_as_gstabs_flag=yes
26517 else
26518 echo "configure: failed program was" >&5
26519 cat conftest.s >&5
26520 fi
26521 rm -f conftest.o conftest.s
26522 fi
26523 fi
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26525 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26526 if test $gcc_cv_as_gstabs_flag = yes; then
26527
26528 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26529
26530 fi
26531
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26533 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26534 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26535 $as_echo_n "(cached) " >&6
26536 else
26537 gcc_cv_as_debug_prefix_map_flag=no
26538 if test $in_tree_gas = yes; then
26539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26540 then gcc_cv_as_debug_prefix_map_flag=yes
26541 fi
26542 elif test x$gcc_cv_as != x; then
26543 $as_echo "$insn" > conftest.s
26544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26550 then
26551 gcc_cv_as_debug_prefix_map_flag=yes
26552 else
26553 echo "configure: failed program was" >&5
26554 cat conftest.s >&5
26555 fi
26556 rm -f conftest.o conftest.s
26557 fi
26558 fi
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26560 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26561 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26562
26563 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26564
26565 fi
26566 fi
26567
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26569 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26570 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26571 $as_echo_n "(cached) " >&6
26572 else
26573 gcc_cv_as_lcomm_with_alignment=no
26574 if test x$gcc_cv_as != x; then
26575 $as_echo '.lcomm bar,4,16' > conftest.s
26576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26578 (eval $ac_try) 2>&5
26579 ac_status=$?
26580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26581 test $ac_status = 0; }; }
26582 then
26583 gcc_cv_as_lcomm_with_alignment=yes
26584 else
26585 echo "configure: failed program was" >&5
26586 cat conftest.s >&5
26587 fi
26588 rm -f conftest.o conftest.s
26589 fi
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26592 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26593 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26594
26595 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26596
26597 fi
26598
26599 if test x$with_sysroot = x && test x$host = x$target \
26600 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26601 && test "$prefix" != "NONE"; then
26602
26603 cat >>confdefs.h <<_ACEOF
26604 #define PREFIX_INCLUDE_DIR "$prefix/include"
26605 _ACEOF
26606
26607 fi
26608
26609 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26610 if test "x$with_headers" != x; then
26611 target_header_dir=$with_headers
26612 elif test "x$with_sysroot" = x; then
26613 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26614 elif test "x$with_build_sysroot" != "x"; then
26615 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26616 elif test "x$with_sysroot" = xyes; then
26617 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26618 else
26619 target_header_dir="${with_sysroot}${native_system_header_dir}"
26620 fi
26621 else
26622 target_header_dir=${native_system_header_dir}
26623 fi
26624
26625 # Determine the version of glibc, if any, used on the target.
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26627 $as_echo_n "checking for target glibc version... " >&6; }
26628
26629 # Check whether --with-glibc-version was given.
26630 if test "${with_glibc_version+set}" = set; then :
26631 withval=$with_glibc_version;
26632 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26633 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26634 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26635 else
26636 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26637 fi
26638 else
26639
26640 glibc_version_major=0
26641 glibc_version_minor=0
26642 if test -f $target_header_dir/features.h \
26643 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26644 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26645 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26646 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26647 fi
26648 fi
26649
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26651 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26652
26653 # Check whether --enable-gnu-unique-object was given.
26654 if test "${enable_gnu_unique_object+set}" = set; then :
26655 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26656 yes | no) ;;
26657 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26658 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26659 esac
26660 else
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26662 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26663 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26664 $as_echo_n "(cached) " >&6
26665 else
26666 gcc_cv_as_gnu_unique_object=no
26667 if test $in_tree_gas = yes; then
26668 if test $in_tree_gas_is_elf = yes \
26669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26670 then gcc_cv_as_gnu_unique_object=yes
26671 fi
26672 elif test x$gcc_cv_as != x; then
26673 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26676 (eval $ac_try) 2>&5
26677 ac_status=$?
26678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }; }
26680 then
26681 gcc_cv_as_gnu_unique_object=yes
26682 else
26683 echo "configure: failed program was" >&5
26684 cat conftest.s >&5
26685 fi
26686 rm -f conftest.o conftest.s
26687 fi
26688 fi
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26690 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26691 if test $gcc_cv_as_gnu_unique_object = yes; then
26692 # We need to unquote above to to use the definition from config.gcc.
26693 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26694
26695 if test $glibc_version_major -gt 2 \
26696 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26697 enable_gnu_unique_object=yes
26698 fi
26699
26700 fi
26701 fi
26702
26703 if test x$enable_gnu_unique_object = xyes; then
26704
26705 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26706
26707 fi
26708
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26710 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26711 if test "${gcc_cv_as_line_zero+set}" = set; then :
26712 $as_echo_n "(cached) " >&6
26713 else
26714 gcc_cv_as_line_zero=no
26715 if test $in_tree_gas = yes; then
26716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26717 then gcc_cv_as_line_zero=yes
26718 fi
26719 elif test "x$gcc_cv_as" != x; then
26720 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26721 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26723 (eval $ac_try) 2>&5
26724 ac_status=$?
26725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26726 test $ac_status = 0; }; } &&
26727 test "x`cat conftest.out`" = x
26728 then
26729 gcc_cv_as_line_zero=yes
26730 else
26731 echo "configure: failed program was" >&5
26732 cat conftest.s >&5
26733 echo "configure: error output was" >&5
26734 cat conftest.out >&5
26735 fi
26736 rm -f conftest.o conftest.s conftest.out
26737 fi
26738 fi
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26740 $as_echo "$gcc_cv_as_line_zero" >&6; }
26741 if test "x$gcc_cv_as_line_zero" = xyes; then
26742
26743 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26744
26745 fi
26746
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26748 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26749 gcc_cv_ld_eh_frame_hdr=no
26750 if test $in_tree_ld = yes ; then
26751 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 \
26752 && test $in_tree_ld_is_elf = yes; then
26753 gcc_cv_ld_eh_frame_hdr=yes
26754 fi
26755 elif test x$gcc_cv_ld != x; then
26756 if echo "$ld_ver" | grep GNU > /dev/null; then
26757 # Check if linker supports --eh-frame-hdr option
26758 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26759 gcc_cv_ld_eh_frame_hdr=yes
26760 fi
26761 else
26762 case "$target" in
26763 *-*-solaris2*)
26764 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26765 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26766 gcc_cv_ld_eh_frame_hdr=yes
26767 fi
26768 ;;
26769 esac
26770 fi
26771 fi
26772
26773 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26774
26775 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26776
26777 fi
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26779 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26780
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26782 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26783 gcc_cv_ld_eh_frame_ciev3=no
26784 if test $in_tree_ld = yes ; then
26785 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 \
26786 && test $in_tree_ld_is_elf = yes; then
26787 gcc_cv_ld_eh_frame_ciev3=yes
26788 fi
26789 elif test x$gcc_cv_ld != x; then
26790 if echo "$ld_ver" | grep GNU > /dev/null; then
26791 gcc_cv_ld_eh_frame_ciev3=yes
26792 if test 0"$ld_date" -lt 20040513; then
26793 if test -n "$ld_date"; then
26794 # If there was date string, but was earlier than 2004-05-13, fail
26795 gcc_cv_ld_eh_frame_ciev3=no
26796 elif test "$ld_vers_major" -lt 2; then
26797 gcc_cv_ld_eh_frame_ciev3=no
26798 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26799 gcc_cv_ld_eh_frame_ciev3=no
26800 fi
26801 fi
26802 else
26803 case "$target" in
26804 *-*-solaris2*)
26805 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26806 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26807 gcc_cv_ld_eh_frame_ciev3=yes
26808 fi
26809 ;;
26810 esac
26811 fi
26812 fi
26813
26814 cat >>confdefs.h <<_ACEOF
26815 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26816 _ACEOF
26817
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26819 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26822 $as_echo_n "checking linker position independent executable support... " >&6; }
26823 gcc_cv_ld_pie=no
26824 if test $in_tree_ld = yes ; then
26825 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 \
26826 && test $in_tree_ld_is_elf = yes; then
26827 gcc_cv_ld_pie=yes
26828 fi
26829 elif test x$gcc_cv_ld != x; then
26830 # Check if linker supports -pie option
26831 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26832 gcc_cv_ld_pie=yes
26833 fi
26834 fi
26835 if test x"$gcc_cv_ld_pie" = xyes; then
26836
26837 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26838
26839 fi
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26841 $as_echo "$gcc_cv_ld_pie" >&6; }
26842
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26844 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26845 gcc_cv_ld_eh_gc_sections=no
26846 if test $in_tree_ld = yes ; then
26847 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 \
26848 && test $in_tree_ld_is_elf = yes; then
26849 gcc_cv_ld_eh_gc_sections=yes
26850 fi
26851 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26852 cat > conftest.s <<EOF
26853 .section .text
26854 .globl _start
26855 .type _start, @function
26856 _start:
26857 .long foo
26858 .size _start, .-_start
26859 .section .text.foo,"ax",@progbits
26860 .type foo, @function
26861 foo:
26862 .long 0
26863 .size foo, .-foo
26864 .section .gcc_except_table.foo,"a",@progbits
26865 .L0:
26866 .long 0
26867 .section .eh_frame,"a",@progbits
26868 .long .L0
26869 EOF
26870 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26871 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26872 | grep "gc-sections option ignored" > /dev/null; then
26873 gcc_cv_ld_eh_gc_sections=no
26874 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26875 | grep gcc_except_table > /dev/null; then
26876 gcc_cv_ld_eh_gc_sections=yes
26877 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26878 if test x$gcc_cv_as_comdat_group != xyes; then
26879 gcc_cv_ld_eh_gc_sections=no
26880 cat > conftest.s <<EOF
26881 .section .text
26882 .globl _start
26883 .type _start, @function
26884 _start:
26885 .long foo
26886 .size _start, .-_start
26887 .section .gnu.linkonce.t.foo,"ax",@progbits
26888 .type foo, @function
26889 foo:
26890 .long 0
26891 .size foo, .-foo
26892 .section .gcc_except_table.foo,"a",@progbits
26893 .L0:
26894 .long 0
26895 .section .eh_frame,"a",@progbits
26896 .long .L0
26897 EOF
26898 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26899 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26900 | grep "gc-sections option ignored" > /dev/null; then
26901 gcc_cv_ld_eh_gc_sections=no
26902 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26903 | grep gcc_except_table > /dev/null; then
26904 gcc_cv_ld_eh_gc_sections=yes
26905 fi
26906 fi
26907 fi
26908 fi
26909 fi
26910 rm -f conftest.s conftest.o conftest
26911 fi
26912 case "$target" in
26913 hppa*-*-linux*)
26914 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26915 gcc_cv_ld_eh_gc_sections=no
26916 ;;
26917 esac
26918 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26919
26920 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26921
26922 fi
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26924 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26925
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26927 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26928 gcc_cv_ld_eh_gc_sections_bug=no
26929 if test $in_tree_ld = yes ; then
26930 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 \
26931 && test $in_tree_ld_is_elf = yes; then
26932 gcc_cv_ld_eh_gc_sections_bug=yes
26933 fi
26934 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
26935 gcc_cv_ld_eh_gc_sections_bug=yes
26936 cat > conftest.s <<EOF
26937 .section .text
26938 .globl _start
26939 .type _start, @function
26940 _start:
26941 .long foo
26942 .size _start, .-_start
26943 .section .text.startup.foo,"ax",@progbits
26944 .type foo, @function
26945 foo:
26946 .long 0
26947 .size foo, .-foo
26948 .section .gcc_except_table.foo,"a",@progbits
26949 .L0:
26950 .long 0
26951 .section .eh_frame,"a",@progbits
26952 .long .L0
26953 EOF
26954 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26955 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26956 | grep "gc-sections option ignored" > /dev/null; then
26957 :
26958 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26959 | grep gcc_except_table > /dev/null; then
26960 gcc_cv_ld_eh_gc_sections_bug=no
26961 fi
26962 fi
26963 rm -f conftest.s conftest.o conftest
26964 fi
26965 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26966
26967 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26968
26969 fi
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26971 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26972
26973 # --------
26974 # UNSORTED
26975 # --------
26976
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26978 $as_echo_n "checking linker --as-needed support... " >&6; }
26979 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26981 else
26982 gcc_cv_ld_as_needed=no
26983 gcc_cv_ld_as_needed_option='--as-needed'
26984 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26985 if test $in_tree_ld = yes ; then
26986 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 \
26987 && test $in_tree_ld_is_elf = yes; then
26988 gcc_cv_ld_as_needed=yes
26989 fi
26990 elif test x$gcc_cv_ld != x; then
26991 # Check if linker supports --as-needed and --no-as-needed options
26992 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26993 gcc_cv_ld_as_needed=yes
26994 else
26995 case "$target" in
26996 # Solaris 2 ld always supports -z ignore/-z record.
26997 *-*-solaris2*)
26998 gcc_cv_ld_as_needed=yes
26999 gcc_cv_ld_as_needed_option="-z ignore"
27000 gcc_cv_ld_no_as_needed_option="-z record"
27001 ;;
27002 esac
27003 fi
27004 fi
27005 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27006 # dl_iterate_phdr, i.e. since Solaris 11.
27007 case "$target" in
27008 *-*-solaris2.1[1-9]*)
27009 case "$target" in
27010 i?86-*-* | x86_64-*-*)
27011 if echo "$ld_ver" | grep GNU > /dev/null; then
27012 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27013 gcc_cv_ld_as_needed=no
27014 fi
27015 ;;
27016 esac
27017 ;;
27018 *-*-solaris2*)
27019 gcc_cv_ld_as_needed=no
27020 ;;
27021 esac
27022
27023 fi
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27025 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27026 if test x"$gcc_cv_ld_as_needed" = xyes; then
27027
27028 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27029
27030
27031 cat >>confdefs.h <<_ACEOF
27032 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27033 _ACEOF
27034
27035
27036 cat >>confdefs.h <<_ACEOF
27037 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27038 _ACEOF
27039
27040 fi
27041
27042 case "$target:$tm_file" in
27043 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27044 case "$target" in
27045 *le-*-linux*)
27046 emul_name="-melf64lppc"
27047 ;;
27048 *-*-linux*)
27049 emul_name="-melf64ppc"
27050 ;;
27051 *-*-freebsd*)
27052 emul_name="-melf64ppc_fbsd"
27053 ;;
27054 esac
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27056 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27057 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27058 $as_echo_n "(cached) " >&6
27059 else
27060 gcc_cv_ld_no_dot_syms=no
27061 if test x"$ld_is_gold" = xyes; then
27062 gcc_cv_ld_no_dot_syms=yes
27063 elif test $in_tree_ld = yes ; then
27064 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
27065 gcc_cv_ld_no_dot_syms=yes
27066 fi
27067 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27068 cat > conftest1.s <<EOF
27069 .text
27070 bl .foo
27071 EOF
27072 cat > conftest2.s <<EOF
27073 .section ".opd","aw"
27074 .align 3
27075 .globl foo
27076 .type foo,@function
27077 foo:
27078 .quad .LEfoo,.TOC.@tocbase,0
27079 .text
27080 .LEfoo:
27081 blr
27082 .size foo,.-.LEfoo
27083 EOF
27084 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27085 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27086 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27087 gcc_cv_ld_no_dot_syms=yes
27088 fi
27089 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27090 fi
27091
27092 fi
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27094 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27095 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27096
27097 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27098
27099 fi
27100
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27102 $as_echo_n "checking linker large toc support... " >&6; }
27103 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27104 $as_echo_n "(cached) " >&6
27105 else
27106 gcc_cv_ld_large_toc=no
27107 if test x"$ld_is_gold" = xyes; then
27108 gcc_cv_ld_large_toc=yes
27109 elif test $in_tree_ld = yes ; then
27110 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
27111 gcc_cv_ld_large_toc=yes
27112 fi
27113 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27114 cat > conftest.s <<EOF
27115 .section ".tbss","awT",@nobits
27116 .align 3
27117 ie0: .space 8
27118 .global _start
27119 .text
27120 _start:
27121 addis 9,13,ie0@got@tprel@ha
27122 ld 9,ie0@got@tprel@l(9)
27123 EOF
27124 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27125 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27126 gcc_cv_ld_large_toc=yes
27127 fi
27128 rm -f conftest conftest.o conftest.s
27129 fi
27130
27131 fi
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27133 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27134 if test x"$gcc_cv_ld_large_toc" = xyes; then
27135
27136 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27137
27138 fi
27139 ;;
27140 esac
27141
27142 case "$target" in
27143 *-*-aix*)
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27145 $as_echo_n "checking linker large toc support... " >&6; }
27146 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27147 $as_echo_n "(cached) " >&6
27148 else
27149 gcc_cv_ld_large_toc=no
27150 if test x$gcc_cv_as != x ; then
27151 cat > conftest.s <<EOF
27152 .toc
27153 LC..1:
27154 .tc a[TC],a[RW]
27155 .extern a[RW]
27156 .csect .text[PR]
27157 .largetoctest:
27158 addis 9,LC..1@u(2)
27159 ld 3,LC..1@l(9)
27160 EOF
27161 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27162 gcc_cv_ld_large_toc=yes
27163 fi
27164 rm -f conftest conftest.o conftest.s
27165 fi
27166
27167 fi
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27169 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27170 if test x"$gcc_cv_ld_large_toc" = xyes; then
27171
27172 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27173
27174 fi
27175 ;;
27176 esac
27177
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27179 $as_echo_n "checking linker --build-id support... " >&6; }
27180 if test "${gcc_cv_ld_buildid+set}" = set; then :
27181 $as_echo_n "(cached) " >&6
27182 else
27183 gcc_cv_ld_buildid=no
27184 if test $in_tree_ld = yes ; then
27185 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27186 "$gcc_cv_gld_minor_version" -ge 18 -o \
27187 "$gcc_cv_gld_major_version" -gt 2 \
27188 && test $in_tree_ld_is_elf = yes; then
27189 gcc_cv_ld_buildid=yes
27190 fi
27191 elif test x$gcc_cv_ld != x; then
27192 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27193 gcc_cv_ld_buildid=yes
27194 fi
27195 fi
27196 fi
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27198 $as_echo "$gcc_cv_ld_buildid" >&6; }
27199 if test x"$gcc_cv_ld_buildid" = xyes; then
27200
27201 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27202
27203 fi
27204
27205 # Check whether --enable-linker-build-id was given.
27206 if test "${enable_linker_build_id+set}" = set; then :
27207 enableval=$enable_linker_build_id;
27208 else
27209 enable_linker_build_id=no
27210 fi
27211
27212
27213 if test x"$enable_linker_build_id" = xyes; then
27214 if test x"$gcc_cv_ld_buildid" = xyes; then
27215
27216 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27217
27218 else
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27220 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27221 fi
27222 fi
27223
27224 # In binutils 2.21, GNU ld gained support for new emulations fully
27225 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27227 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27228 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27229 $as_echo_n "(cached) " >&6
27230 else
27231 gcc_cv_ld_sol2_emulation=no
27232 if test $in_tree_ld = yes ; then
27233 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27234 "$gcc_cv_gld_minor_version" -ge 21 -o \
27235 "$gcc_cv_gld_major_version" -gt 2 \
27236 && test $in_tree_ld_is_elf = yes; then
27237 gcc_cv_ld_sol2_emulation=yes
27238 fi
27239 elif test x$gcc_cv_ld != x; then
27240 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27241 grep _sol2 > /dev/null; then
27242 gcc_cv_ld_sol2_emulation=yes
27243 fi
27244 fi
27245 fi
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27247 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27248 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27249
27250 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27251
27252 fi
27253
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27255 $as_echo_n "checking linker --sysroot support... " >&6; }
27256 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27257 $as_echo_n "(cached) " >&6
27258 else
27259 gcc_cv_ld_sysroot=no
27260 if test $in_tree_ld = yes ; then
27261 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
27262 gcc_cv_ld_sysroot=yes
27263 fi
27264 elif test x$gcc_cv_ld != x; then
27265 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27266 gcc_cv_ld_sysroot=yes
27267 fi
27268 fi
27269 fi
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27271 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27272 if test x"$gcc_cv_ld_sysroot" = xyes; then
27273
27274 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27275
27276 fi
27277
27278 # Test for stack protector support in target C library.
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27280 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27281 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27282 $as_echo_n "(cached) " >&6
27283 else
27284 gcc_cv_libc_provides_ssp=no
27285 case "$target" in
27286 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27287 # glibc 2.4 and later provides __stack_chk_fail and
27288 # either __stack_chk_guard, or TLS access to stack guard canary.
27289
27290 if test $glibc_version_major -gt 2 \
27291 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27292 gcc_cv_libc_provides_ssp=yes
27293 else
27294
27295 if test -f $target_header_dir/features.h \
27296 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27297 $target_header_dir/features.h > /dev/null; then
27298 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27299 $target_header_dir/features.h > /dev/null && \
27300 test -f $target_header_dir/bits/uClibc_config.h && \
27301 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27302 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27303 gcc_cv_libc_provides_ssp=yes
27304 fi
27305 # all versions of Bionic support stack protector
27306 elif test -f $target_header_dir/sys/cdefs.h \
27307 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27308 $target_header_dir/sys/cdefs.h > /dev/null; then
27309 gcc_cv_libc_provides_ssp=yes
27310 fi
27311 fi
27312 ;;
27313 *-*-gnu*)
27314 # Avoid complicated tests (see
27315 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27316 # simply assert that glibc does provide this, which is true for all
27317 # realistically usable GNU/Hurd configurations.
27318 gcc_cv_libc_provides_ssp=yes;;
27319 *-*-darwin* | *-*-freebsd*)
27320 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27321 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27322 gcc_cv_libc_provides_ssp=yes
27323 else
27324 echo "no __stack_chk_fail on this target"
27325 fi
27326
27327 ;;
27328 *) gcc_cv_libc_provides_ssp=no ;;
27329 esac
27330 fi
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27332 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27333
27334 if test x$gcc_cv_libc_provides_ssp = xyes; then
27335
27336 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27337
27338 fi
27339
27340 # Test for <sys/sdt.h> on the target.
27341
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27343 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27344 have_sys_sdt_h=no
27345 if test -f $target_header_dir/sys/sdt.h; then
27346 have_sys_sdt_h=yes
27347
27348 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27349
27350 fi
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27352 $as_echo "$have_sys_sdt_h" >&6; }
27353
27354 # Check if TFmode long double should be used by default or not.
27355 # Some glibc targets used DFmode long double, but with glibc 2.4
27356 # and later they can use TFmode.
27357 case "$target" in
27358 powerpc*-*-linux* | \
27359 sparc*-*-linux* | \
27360 s390*-*-linux* | \
27361 alpha*-*-linux*)
27362
27363 # Check whether --with-long-double-128 was given.
27364 if test "${with_long_double_128+set}" = set; then :
27365 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27366 else
27367
27368 if test $glibc_version_major -gt 2 \
27369 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27370 gcc_cv_target_ldbl128=yes
27371 else
27372
27373 gcc_cv_target_ldbl128=no
27374 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27375 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27376 && gcc_cv_target_ldbl128=yes
27377
27378 fi
27379 fi
27380
27381 ;;
27382 esac
27383 if test x$gcc_cv_target_ldbl128 = xyes; then
27384
27385 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27386
27387 fi
27388
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27390 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27391 gcc_cv_target_dl_iterate_phdr=unknown
27392 case "$target" in
27393 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27394 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27395 # libdl there, both complicating its use and breaking compatibility
27396 # between Solaris 10 updates.
27397 *-*-solaris2.1[1-9]*)
27398 # <link.h> needs both a dl_iterate_phdr declaration and support for
27399 # compilation with largefile support.
27400 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27401 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27402 gcc_cv_target_dl_iterate_phdr=yes
27403 else
27404 gcc_cv_target_dl_iterate_phdr=no
27405 fi
27406 ;;
27407 esac
27408
27409 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27410
27411 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27412
27413 fi
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27415 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27416
27417 # We no longer support different GC mechanisms. Emit an error if
27418 # the user configures with --with-gc.
27419
27420 # Check whether --with-gc was given.
27421 if test "${with_gc+set}" = set; then :
27422 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27423 fi
27424
27425
27426 # Libraries to use on the host. This will normally be set by the top
27427 # level Makefile. Here we simply capture the value for our Makefile.
27428 if test -z "${HOST_LIBS+set}"; then
27429 HOST_LIBS=
27430 fi
27431
27432
27433 # Use the system's zlib library.
27434 zlibdir=-L../zlib
27435 zlibinc="-I\$(srcdir)/../zlib"
27436
27437 # Check whether --with-system-zlib was given.
27438 if test "${with_system_zlib+set}" = set; then :
27439 withval=$with_system_zlib; zlibdir=
27440 zlibinc=
27441
27442 fi
27443
27444
27445
27446
27447
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27449 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27450 # Check whether --enable-maintainer-mode was given.
27451 if test "${enable_maintainer_mode+set}" = set; then :
27452 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27453 else
27454 maintainer_mode=no
27455 fi
27456
27457
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27459 $as_echo "$maintainer_mode" >&6; }
27460
27461 if test "$maintainer_mode" = "yes"; then
27462 MAINT=''
27463 else
27464 MAINT='#'
27465 fi
27466
27467
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27469 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27470 # Check whether --enable-link-mutex was given.
27471 if test "${enable_link_mutex+set}" = set; then :
27472 enableval=$enable_link_mutex; do_link_mutex=$enableval
27473 else
27474 do_link_mutex=no
27475 fi
27476
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27478 $as_echo "$do_link_mutex" >&6; }
27479
27480 if test "$do_link_mutex" = "yes"; then
27481 DO_LINK_MUTEX=true
27482 else
27483 DO_LINK_MUTEX=false
27484 fi
27485
27486
27487 # --------------
27488 # Language hooks
27489 # --------------
27490
27491 # Make empty files to contain the specs and options for each language.
27492 # Then add #include lines to for a compiler that has specs and/or options.
27493
27494 subdirs=
27495 lang_opt_files=
27496 lang_specs_files=
27497 lang_tree_files=
27498 # These (without "all_") are set in each config-lang.in.
27499 # `language' must be a single word so is spelled singularly.
27500 all_languages=
27501 all_compilers=
27502 all_outputs='Makefile'
27503 # List of language makefile fragments.
27504 all_lang_makefrags=
27505 # Additional files for gengtype
27506 all_gtfiles="$target_gtfiles"
27507
27508 # These are the languages that are set in --enable-languages,
27509 # and are available in the GCC tree.
27510 all_selected_languages=
27511
27512 # Add the language fragments.
27513 # Languages are added via two mechanisms. Some information must be
27514 # recorded in makefile variables, these are defined in config-lang.in.
27515 # We accumulate them and plug them into the main Makefile.
27516 # The other mechanism is a set of hooks for each of the main targets
27517 # like `clean', `install', etc.
27518
27519 language_hooks="Make-hooks"
27520
27521 for lang in ${srcdir}/*/config-lang.in
27522 do
27523 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27524
27525 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27526 if test "x$lang_alias" = x
27527 then
27528 echo "$lang doesn't set \$language." 1>&2
27529 exit 1
27530 fi
27531 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27532 subdirs="$subdirs $subdir"
27533
27534 # $gcc_subdir is where the gcc integration files are to be found
27535 # for a language, both for internal compiler purposes (compiler
27536 # sources implementing front-end to GCC tree converters), and for
27537 # build infrastructure purposes (Make-lang.in, etc.)
27538 #
27539 # This will be <subdir> (relative to $srcdir) if a line like
27540 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27541 # is found in <langdir>/config-lang.in, and will remain <langdir>
27542 # otherwise.
27543 #
27544 # Except for the language alias (fetched above), the regular
27545 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27546 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27547 # only this and the language alias.
27548
27549 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27550 if [ "$gcc_subdir" = "" ]; then
27551 gcc_subdir="$subdir"
27552 fi
27553
27554 case ",$enable_languages," in
27555 *,$lang_alias,*)
27556 all_selected_languages="$all_selected_languages $lang_alias"
27557 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27558 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27559 fi
27560 ;;
27561 esac
27562
27563 language=
27564 boot_language=
27565 compilers=
27566 outputs=
27567 gtfiles=
27568 subdir_requires=
27569 . ${srcdir}/$gcc_subdir/config-lang.in
27570 if test "x$language" = x
27571 then
27572 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27573 exit 1
27574 fi
27575
27576 ok=:
27577 case ",$enable_languages," in
27578 *,$lang_alias,*) ;;
27579 *)
27580 for i in $subdir_requires; do
27581 test -f "${srcdir}/$i/config-lang.in" && continue
27582 ok=false
27583 break
27584 done
27585 ;;
27586 esac
27587 $ok || continue
27588
27589 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27590 if test -f $srcdir/$gcc_subdir/lang.opt; then
27591 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27592 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27593 fi
27594 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27595 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27596 fi
27597 all_languages="$all_languages $language"
27598 all_compilers="$all_compilers $compilers"
27599 all_outputs="$all_outputs $outputs"
27600 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27601 case ",$enable_languages," in
27602 *,lto,*)
27603
27604 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27605
27606 enable_lto=yes
27607
27608 ;;
27609 *) ;;
27610 esac
27611 done
27612
27613 check_languages=
27614 for language in $all_selected_languages
27615 do
27616 check_languages="$check_languages check-$language"
27617 done
27618
27619 # We link each language in with a set of hooks, reached indirectly via
27620 # lang.${target}. Only do so for selected languages.
27621
27622 rm -f Make-hooks
27623 touch Make-hooks
27624 target_list="all.cross start.encap rest.encap tags \
27625 install-common install-man install-info install-pdf install-html dvi \
27626 pdf html uninstall info man srcextra srcman srcinfo \
27627 mostlyclean clean distclean maintainer-clean install-plugin"
27628
27629 for t in $target_list
27630 do
27631 x=
27632 for lang in $all_selected_languages
27633 do
27634 x="$x $lang.$t"
27635 done
27636 echo "lang.$t: $x" >> Make-hooks
27637 done
27638
27639 # --------
27640 # Option include files
27641 # --------
27642
27643 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27644 option_includes="option-includes.mk"
27645
27646
27647 # --------
27648 # UNSORTED
27649 # --------
27650
27651 # Create .gdbinit.
27652
27653 echo "dir ." > .gdbinit
27654 echo "dir ${srcdir}" >> .gdbinit
27655 if test x$gdb_needs_out_file_path = xyes
27656 then
27657 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27658 fi
27659 if test "x$subdirs" != x; then
27660 for s in $subdirs
27661 do
27662 echo "dir ${srcdir}/$s" >> .gdbinit
27663 done
27664 fi
27665 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27666 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27667
27668 # Put a breakpoint on __asan_report_error to help with debugging buffer
27669 # overflow.
27670 case "$CFLAGS" in
27671 *-fsanitize=address*)
27672 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27673 ;;
27674 esac
27675
27676 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27677
27678
27679
27680 # Find a directory in which to install a shared libgcc.
27681
27682 # Check whether --enable-version-specific-runtime-libs was given.
27683 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27684 enableval=$enable_version_specific_runtime_libs;
27685 fi
27686
27687
27688 # Substitute configuration variables
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751 # Echo link setup.
27752 if test x${build} = x${host} ; then
27753 if test x${host} = x${target} ; then
27754 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27755 else
27756 echo "Links are now set up to build a cross-compiler" 1>&2
27757 echo " from ${host} to ${target}." 1>&2
27758 fi
27759 else
27760 if test x${host} = x${target} ; then
27761 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27762 echo " for ${target}." 1>&2
27763 else
27764 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27765 echo " from ${host} to ${target}." 1>&2
27766 fi
27767 fi
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777 if test "x${CLOOGLIBS}" != "x" ; then
27778
27779 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27780
27781 fi
27782
27783 # Check for plugin support
27784 # Check whether --enable-plugin was given.
27785 if test "${enable_plugin+set}" = set; then :
27786 enableval=$enable_plugin; enable_plugin=$enableval
27787 else
27788 enable_plugin=yes; default_plugin=yes
27789 fi
27790
27791
27792 pluginlibs=
27793
27794 case "${host}" in
27795 *-*-darwin*)
27796 if test x$build = x$host; then
27797 export_sym_check="nm${exeext} -g"
27798 elif test x$host = x$target; then
27799 export_sym_check="$gcc_cv_nm -g"
27800 else
27801 export_sym_check=
27802 fi
27803 ;;
27804 *)
27805 if test x$build = x$host; then
27806 export_sym_check="objdump${exeext} -T"
27807 elif test x$host = x$target; then
27808 export_sym_check="$gcc_cv_objdump -T"
27809 else
27810 export_sym_check=
27811 fi
27812 ;;
27813 esac
27814
27815 if test x"$enable_plugin" = x"yes"; then
27816
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27818 $as_echo_n "checking for exported symbols... " >&6; }
27819 if test "x$export_sym_check" != x; then
27820 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27821 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27822 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27823 : # No need to use a flag
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27825 $as_echo "yes" >&6; }
27826 else
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27828 $as_echo "yes" >&6; }
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27830 $as_echo_n "checking for -rdynamic... " >&6; }
27831 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27832 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27833 plugin_rdynamic=yes
27834 pluginlibs="-rdynamic"
27835 else
27836 plugin_rdynamic=no
27837 enable_plugin=no
27838 fi
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27840 $as_echo "$plugin_rdynamic" >&6; }
27841 fi
27842 else
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27844 $as_echo "unable to check" >&6; }
27845 fi
27846
27847 # Check -ldl
27848 saved_LIBS="$LIBS"
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27850 $as_echo_n "checking for library containing dlopen... " >&6; }
27851 if test "${ac_cv_search_dlopen+set}" = set; then :
27852 $as_echo_n "(cached) " >&6
27853 else
27854 ac_func_search_save_LIBS=$LIBS
27855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h. */
27857
27858 /* Override any GCC internal prototype to avoid an error.
27859 Use char because int might match the return type of a GCC
27860 builtin and then its argument prototype would still apply. */
27861 #ifdef __cplusplus
27862 extern "C"
27863 #endif
27864 char dlopen ();
27865 int
27866 main ()
27867 {
27868 return dlopen ();
27869 ;
27870 return 0;
27871 }
27872 _ACEOF
27873 for ac_lib in '' dl; do
27874 if test -z "$ac_lib"; then
27875 ac_res="none required"
27876 else
27877 ac_res=-l$ac_lib
27878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27879 fi
27880 if ac_fn_c_try_link "$LINENO"; then :
27881 ac_cv_search_dlopen=$ac_res
27882 fi
27883 rm -f core conftest.err conftest.$ac_objext \
27884 conftest$ac_exeext
27885 if test "${ac_cv_search_dlopen+set}" = set; then :
27886 break
27887 fi
27888 done
27889 if test "${ac_cv_search_dlopen+set}" = set; then :
27890
27891 else
27892 ac_cv_search_dlopen=no
27893 fi
27894 rm conftest.$ac_ext
27895 LIBS=$ac_func_search_save_LIBS
27896 fi
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27898 $as_echo "$ac_cv_search_dlopen" >&6; }
27899 ac_res=$ac_cv_search_dlopen
27900 if test "$ac_res" != no; then :
27901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27902
27903 fi
27904
27905 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27906 pluginlibs="$pluginlibs -ldl"
27907 fi
27908 LIBS="$saved_LIBS"
27909
27910 # Check that we can build shared objects with -fPIC -shared
27911 saved_LDFLAGS="$LDFLAGS"
27912 saved_CFLAGS="$CFLAGS"
27913 case "${host}" in
27914 *-*-darwin*)
27915 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27916 CFLAGS="$CFLAGS -fPIC"
27917 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27918 ;;
27919 *)
27920 CFLAGS="$CFLAGS -fPIC"
27921 LDFLAGS="$LDFLAGS -fPIC -shared"
27922 ;;
27923 esac
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27925 $as_echo_n "checking for -fPIC -shared... " >&6; }
27926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h. */
27928 extern int X;
27929 int
27930 main ()
27931 {
27932 return X == 0;
27933 ;
27934 return 0;
27935 }
27936 _ACEOF
27937 if ac_fn_c_try_link "$LINENO"; then :
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27939 $as_echo "yes" >&6; }; have_pic_shared=yes
27940 else
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27942 $as_echo "no" >&6; }; have_pic_shared=no
27943 fi
27944 rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27946 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27947 pluginlibs=
27948 enable_plugin=no
27949 fi
27950 LDFLAGS="$saved_LDFLAGS"
27951 CFLAGS="$saved_CFLAGS"
27952
27953 # If plugin support had been requested but not available, fail.
27954 if test x"$enable_plugin" = x"no" ; then
27955 if test x"$default_plugin" != x"yes"; then
27956 as_fn_error "
27957 Building GCC with plugin support requires a host that supports
27958 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27959 fi
27960 fi
27961 fi
27962
27963
27964
27965 if test x"$enable_plugin" = x"yes"; then
27966
27967 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27968
27969 fi
27970
27971
27972 # Enable --enable-host-shared
27973 # Check whether --enable-host-shared was given.
27974 if test "${enable_host_shared+set}" = set; then :
27975 enableval=$enable_host_shared; PICFLAG=-fPIC
27976 else
27977 PICFLAG=
27978 fi
27979
27980
27981
27982
27983
27984 # Check whether --enable-libquadmath-support was given.
27985 if test "${enable_libquadmath_support+set}" = set; then :
27986 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27987 else
27988 ENABLE_LIBQUADMATH_SUPPORT=yes
27989 fi
27990
27991 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27992
27993 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27994
27995 fi
27996
27997
27998 # Specify what hash style to use by default.
27999
28000 # Check whether --with-linker-hash-style was given.
28001 if test "${with_linker_hash_style+set}" = set; then :
28002 withval=$with_linker_hash_style; case x"$withval" in
28003 xsysv)
28004 LINKER_HASH_STYLE=sysv
28005 ;;
28006 xgnu)
28007 LINKER_HASH_STYLE=gnu
28008 ;;
28009 xboth)
28010 LINKER_HASH_STYLE=both
28011 ;;
28012 *)
28013 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28014 ;;
28015 esac
28016 else
28017 LINKER_HASH_STYLE=''
28018 fi
28019
28020 if test x"${LINKER_HASH_STYLE}" != x; then
28021
28022 cat >>confdefs.h <<_ACEOF
28023 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28024 _ACEOF
28025
28026 fi
28027
28028 # Configure the subdirectories
28029 # AC_CONFIG_SUBDIRS($subdirs)
28030
28031 # Create the Makefile
28032 # and configure language subdirectories
28033 ac_config_files="$ac_config_files $all_outputs"
28034
28035
28036 ac_config_commands="$ac_config_commands default"
28037
28038 cat >confcache <<\_ACEOF
28039 # This file is a shell script that caches the results of configure
28040 # tests run on this system so they can be shared between configure
28041 # scripts and configure runs, see configure's option --config-cache.
28042 # It is not useful on other systems. If it contains results you don't
28043 # want to keep, you may remove or edit it.
28044 #
28045 # config.status only pays attention to the cache file if you give it
28046 # the --recheck option to rerun configure.
28047 #
28048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28050 # following values.
28051
28052 _ACEOF
28053
28054 # The following way of writing the cache mishandles newlines in values,
28055 # but we know of no workaround that is simple, portable, and efficient.
28056 # So, we kill variables containing newlines.
28057 # Ultrix sh set writes to stderr and can't be redirected directly,
28058 # and sets the high bit in the cache file unless we assign to the vars.
28059 (
28060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28061 eval ac_val=\$$ac_var
28062 case $ac_val in #(
28063 *${as_nl}*)
28064 case $ac_var in #(
28065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28067 esac
28068 case $ac_var in #(
28069 _ | IFS | as_nl) ;; #(
28070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28071 *) { eval $ac_var=; unset $ac_var;} ;;
28072 esac ;;
28073 esac
28074 done
28075
28076 (set) 2>&1 |
28077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28078 *${as_nl}ac_space=\ *)
28079 # `set' does not quote correctly, so add quotes: double-quote
28080 # substitution turns \\\\ into \\, and sed turns \\ into \.
28081 sed -n \
28082 "s/'/'\\\\''/g;
28083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28084 ;; #(
28085 *)
28086 # `set' quotes correctly as required by POSIX, so do not add quotes.
28087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28088 ;;
28089 esac |
28090 sort
28091 ) |
28092 sed '
28093 /^ac_cv_env_/b end
28094 t clear
28095 :clear
28096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28097 t end
28098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28099 :end' >>confcache
28100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28101 if test -w "$cache_file"; then
28102 test "x$cache_file" != "x/dev/null" &&
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28104 $as_echo "$as_me: updating cache $cache_file" >&6;}
28105 cat confcache >$cache_file
28106 else
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28109 fi
28110 fi
28111 rm -f confcache
28112
28113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28114 # Let make expand exec_prefix.
28115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28116
28117 DEFS=-DHAVE_CONFIG_H
28118
28119 ac_libobjs=
28120 ac_ltlibobjs=
28121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28122 # 1. Remove the extension, and $U if already installed.
28123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28126 # will be set to the directory where LIBOBJS objects are built.
28127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28129 done
28130 LIBOBJS=$ac_libobjs
28131
28132 LTLIBOBJS=$ac_ltlibobjs
28133
28134
28135
28136
28137 : ${CONFIG_STATUS=./config.status}
28138 ac_write_fail=0
28139 ac_clean_files_save=$ac_clean_files
28140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28142 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28143 as_write_fail=0
28144 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28145 #! $SHELL
28146 # Generated by $as_me.
28147 # Run this file to recreate the current configuration.
28148 # Compiler output produced by configure, useful for debugging
28149 # configure, is in config.log if it exists.
28150
28151 debug=false
28152 ac_cs_recheck=false
28153 ac_cs_silent=false
28154
28155 SHELL=\${CONFIG_SHELL-$SHELL}
28156 export SHELL
28157 _ASEOF
28158 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28159 ## -------------------- ##
28160 ## M4sh Initialization. ##
28161 ## -------------------- ##
28162
28163 # Be more Bourne compatible
28164 DUALCASE=1; export DUALCASE # for MKS sh
28165 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28166 emulate sh
28167 NULLCMD=:
28168 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28169 # is contrary to our usage. Disable this feature.
28170 alias -g '${1+"$@"}'='"$@"'
28171 setopt NO_GLOB_SUBST
28172 else
28173 case `(set -o) 2>/dev/null` in #(
28174 *posix*) :
28175 set -o posix ;; #(
28176 *) :
28177 ;;
28178 esac
28179 fi
28180
28181
28182 as_nl='
28183 '
28184 export as_nl
28185 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28186 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28189 # Prefer a ksh shell builtin over an external printf program on Solaris,
28190 # but without wasting forks for bash or zsh.
28191 if test -z "$BASH_VERSION$ZSH_VERSION" \
28192 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28193 as_echo='print -r --'
28194 as_echo_n='print -rn --'
28195 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28196 as_echo='printf %s\n'
28197 as_echo_n='printf %s'
28198 else
28199 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28200 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28201 as_echo_n='/usr/ucb/echo -n'
28202 else
28203 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28204 as_echo_n_body='eval
28205 arg=$1;
28206 case $arg in #(
28207 *"$as_nl"*)
28208 expr "X$arg" : "X\\(.*\\)$as_nl";
28209 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28210 esac;
28211 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28212 '
28213 export as_echo_n_body
28214 as_echo_n='sh -c $as_echo_n_body as_echo'
28215 fi
28216 export as_echo_body
28217 as_echo='sh -c $as_echo_body as_echo'
28218 fi
28219
28220 # The user is always right.
28221 if test "${PATH_SEPARATOR+set}" != set; then
28222 PATH_SEPARATOR=:
28223 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28224 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28225 PATH_SEPARATOR=';'
28226 }
28227 fi
28228
28229
28230 # IFS
28231 # We need space, tab and new line, in precisely that order. Quoting is
28232 # there to prevent editors from complaining about space-tab.
28233 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28234 # splitting by setting IFS to empty value.)
28235 IFS=" "" $as_nl"
28236
28237 # Find who we are. Look in the path if we contain no directory separator.
28238 case $0 in #((
28239 *[\\/]* ) as_myself=$0 ;;
28240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28241 for as_dir in $PATH
28242 do
28243 IFS=$as_save_IFS
28244 test -z "$as_dir" && as_dir=.
28245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28246 done
28247 IFS=$as_save_IFS
28248
28249 ;;
28250 esac
28251 # We did not find ourselves, most probably we were run as `sh COMMAND'
28252 # in which case we are not to be found in the path.
28253 if test "x$as_myself" = x; then
28254 as_myself=$0
28255 fi
28256 if test ! -f "$as_myself"; then
28257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28258 exit 1
28259 fi
28260
28261 # Unset variables that we do not need and which cause bugs (e.g. in
28262 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28263 # suppresses any "Segmentation fault" message there. '((' could
28264 # trigger a bug in pdksh 5.2.14.
28265 for as_var in BASH_ENV ENV MAIL MAILPATH
28266 do eval test x\${$as_var+set} = xset \
28267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28268 done
28269 PS1='$ '
28270 PS2='> '
28271 PS4='+ '
28272
28273 # NLS nuisances.
28274 LC_ALL=C
28275 export LC_ALL
28276 LANGUAGE=C
28277 export LANGUAGE
28278
28279 # CDPATH.
28280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28281
28282
28283 # as_fn_error ERROR [LINENO LOG_FD]
28284 # ---------------------------------
28285 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28286 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28287 # script with status $?, using 1 if that was 0.
28288 as_fn_error ()
28289 {
28290 as_status=$?; test $as_status -eq 0 && as_status=1
28291 if test "$3"; then
28292 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28294 fi
28295 $as_echo "$as_me: error: $1" >&2
28296 as_fn_exit $as_status
28297 } # as_fn_error
28298
28299
28300 # as_fn_set_status STATUS
28301 # -----------------------
28302 # Set $? to STATUS, without forking.
28303 as_fn_set_status ()
28304 {
28305 return $1
28306 } # as_fn_set_status
28307
28308 # as_fn_exit STATUS
28309 # -----------------
28310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28311 as_fn_exit ()
28312 {
28313 set +e
28314 as_fn_set_status $1
28315 exit $1
28316 } # as_fn_exit
28317
28318 # as_fn_unset VAR
28319 # ---------------
28320 # Portably unset VAR.
28321 as_fn_unset ()
28322 {
28323 { eval $1=; unset $1;}
28324 }
28325 as_unset=as_fn_unset
28326 # as_fn_append VAR VALUE
28327 # ----------------------
28328 # Append the text in VALUE to the end of the definition contained in VAR. Take
28329 # advantage of any shell optimizations that allow amortized linear growth over
28330 # repeated appends, instead of the typical quadratic growth present in naive
28331 # implementations.
28332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28333 eval 'as_fn_append ()
28334 {
28335 eval $1+=\$2
28336 }'
28337 else
28338 as_fn_append ()
28339 {
28340 eval $1=\$$1\$2
28341 }
28342 fi # as_fn_append
28343
28344 # as_fn_arith ARG...
28345 # ------------------
28346 # Perform arithmetic evaluation on the ARGs, and store the result in the
28347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28348 # must be portable across $(()) and expr.
28349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28350 eval 'as_fn_arith ()
28351 {
28352 as_val=$(( $* ))
28353 }'
28354 else
28355 as_fn_arith ()
28356 {
28357 as_val=`expr "$@" || test $? -eq 1`
28358 }
28359 fi # as_fn_arith
28360
28361
28362 if expr a : '\(a\)' >/dev/null 2>&1 &&
28363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28364 as_expr=expr
28365 else
28366 as_expr=false
28367 fi
28368
28369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28370 as_basename=basename
28371 else
28372 as_basename=false
28373 fi
28374
28375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28376 as_dirname=dirname
28377 else
28378 as_dirname=false
28379 fi
28380
28381 as_me=`$as_basename -- "$0" ||
28382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28383 X"$0" : 'X\(//\)$' \| \
28384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28385 $as_echo X/"$0" |
28386 sed '/^.*\/\([^/][^/]*\)\/*$/{
28387 s//\1/
28388 q
28389 }
28390 /^X\/\(\/\/\)$/{
28391 s//\1/
28392 q
28393 }
28394 /^X\/\(\/\).*/{
28395 s//\1/
28396 q
28397 }
28398 s/.*/./; q'`
28399
28400 # Avoid depending upon Character Ranges.
28401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28404 as_cr_digits='0123456789'
28405 as_cr_alnum=$as_cr_Letters$as_cr_digits
28406
28407 ECHO_C= ECHO_N= ECHO_T=
28408 case `echo -n x` in #(((((
28409 -n*)
28410 case `echo 'xy\c'` in
28411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28412 xy) ECHO_C='\c';;
28413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28414 ECHO_T=' ';;
28415 esac;;
28416 *)
28417 ECHO_N='-n';;
28418 esac
28419
28420 rm -f conf$$ conf$$.exe conf$$.file
28421 if test -d conf$$.dir; then
28422 rm -f conf$$.dir/conf$$.file
28423 else
28424 rm -f conf$$.dir
28425 mkdir conf$$.dir 2>/dev/null
28426 fi
28427 if (echo >conf$$.file) 2>/dev/null; then
28428 if ln -s conf$$.file conf$$ 2>/dev/null; then
28429 as_ln_s='ln -s'
28430 # ... but there are two gotchas:
28431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28433 # In both cases, we have to default to `cp -p'.
28434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28435 as_ln_s='cp -p'
28436 elif ln conf$$.file conf$$ 2>/dev/null; then
28437 as_ln_s=ln
28438 else
28439 as_ln_s='cp -p'
28440 fi
28441 else
28442 as_ln_s='cp -p'
28443 fi
28444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28445 rmdir conf$$.dir 2>/dev/null
28446
28447
28448 # as_fn_mkdir_p
28449 # -------------
28450 # Create "$as_dir" as a directory, including parents if necessary.
28451 as_fn_mkdir_p ()
28452 {
28453
28454 case $as_dir in #(
28455 -*) as_dir=./$as_dir;;
28456 esac
28457 test -d "$as_dir" || eval $as_mkdir_p || {
28458 as_dirs=
28459 while :; do
28460 case $as_dir in #(
28461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28462 *) as_qdir=$as_dir;;
28463 esac
28464 as_dirs="'$as_qdir' $as_dirs"
28465 as_dir=`$as_dirname -- "$as_dir" ||
28466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28467 X"$as_dir" : 'X\(//\)[^/]' \| \
28468 X"$as_dir" : 'X\(//\)$' \| \
28469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28470 $as_echo X"$as_dir" |
28471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28472 s//\1/
28473 q
28474 }
28475 /^X\(\/\/\)[^/].*/{
28476 s//\1/
28477 q
28478 }
28479 /^X\(\/\/\)$/{
28480 s//\1/
28481 q
28482 }
28483 /^X\(\/\).*/{
28484 s//\1/
28485 q
28486 }
28487 s/.*/./; q'`
28488 test -d "$as_dir" && break
28489 done
28490 test -z "$as_dirs" || eval "mkdir $as_dirs"
28491 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28492
28493
28494 } # as_fn_mkdir_p
28495 if mkdir -p . 2>/dev/null; then
28496 as_mkdir_p='mkdir -p "$as_dir"'
28497 else
28498 test -d ./-p && rmdir ./-p
28499 as_mkdir_p=false
28500 fi
28501
28502 if test -x / >/dev/null 2>&1; then
28503 as_test_x='test -x'
28504 else
28505 if ls -dL / >/dev/null 2>&1; then
28506 as_ls_L_option=L
28507 else
28508 as_ls_L_option=
28509 fi
28510 as_test_x='
28511 eval sh -c '\''
28512 if test -d "$1"; then
28513 test -d "$1/.";
28514 else
28515 case $1 in #(
28516 -*)set "./$1";;
28517 esac;
28518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28519 ???[sx]*):;;*)false;;esac;fi
28520 '\'' sh
28521 '
28522 fi
28523 as_executable_p=$as_test_x
28524
28525 # Sed expression to map a string onto a valid CPP name.
28526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28527
28528 # Sed expression to map a string onto a valid variable name.
28529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28530
28531
28532 exec 6>&1
28533 ## ----------------------------------- ##
28534 ## Main body of $CONFIG_STATUS script. ##
28535 ## ----------------------------------- ##
28536 _ASEOF
28537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28538
28539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28540 # Save the log message, to keep $0 and so on meaningful, and to
28541 # report actual input values of CONFIG_FILES etc. instead of their
28542 # values after options handling.
28543 ac_log="
28544 This file was extended by $as_me, which was
28545 generated by GNU Autoconf 2.64. Invocation command line was
28546
28547 CONFIG_FILES = $CONFIG_FILES
28548 CONFIG_HEADERS = $CONFIG_HEADERS
28549 CONFIG_LINKS = $CONFIG_LINKS
28550 CONFIG_COMMANDS = $CONFIG_COMMANDS
28551 $ $0 $@
28552
28553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28554 "
28555
28556 _ACEOF
28557
28558 case $ac_config_files in *"
28559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28560 esac
28561
28562 case $ac_config_headers in *"
28563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28564 esac
28565
28566
28567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28568 # Files that config.status was made for.
28569 config_files="$ac_config_files"
28570 config_headers="$ac_config_headers"
28571 config_commands="$ac_config_commands"
28572
28573 _ACEOF
28574
28575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28576 ac_cs_usage="\
28577 \`$as_me' instantiates files and other configuration actions
28578 from templates according to the current configuration. Unless the files
28579 and actions are specified as TAGs, all are instantiated by default.
28580
28581 Usage: $0 [OPTION]... [TAG]...
28582
28583 -h, --help print this help, then exit
28584 -V, --version print version number and configuration settings, then exit
28585 -q, --quiet, --silent
28586 do not print progress messages
28587 -d, --debug don't remove temporary files
28588 --recheck update $as_me by reconfiguring in the same conditions
28589 --file=FILE[:TEMPLATE]
28590 instantiate the configuration file FILE
28591 --header=FILE[:TEMPLATE]
28592 instantiate the configuration header FILE
28593
28594 Configuration files:
28595 $config_files
28596
28597 Configuration headers:
28598 $config_headers
28599
28600 Configuration commands:
28601 $config_commands
28602
28603 Report bugs to the package provider."
28604
28605 _ACEOF
28606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28607 ac_cs_version="\\
28608 config.status
28609 configured by $0, generated by GNU Autoconf 2.64,
28610 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28611
28612 Copyright (C) 2009 Free Software Foundation, Inc.
28613 This config.status script is free software; the Free Software Foundation
28614 gives unlimited permission to copy, distribute and modify it."
28615
28616 ac_pwd='$ac_pwd'
28617 srcdir='$srcdir'
28618 AWK='$AWK'
28619 test -n "\$AWK" || AWK=awk
28620 _ACEOF
28621
28622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28623 # The default lists apply if the user does not specify any file.
28624 ac_need_defaults=:
28625 while test $# != 0
28626 do
28627 case $1 in
28628 --*=*)
28629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28631 ac_shift=:
28632 ;;
28633 *)
28634 ac_option=$1
28635 ac_optarg=$2
28636 ac_shift=shift
28637 ;;
28638 esac
28639
28640 case $ac_option in
28641 # Handling of the options.
28642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28643 ac_cs_recheck=: ;;
28644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28645 $as_echo "$ac_cs_version"; exit ;;
28646 --debug | --debu | --deb | --de | --d | -d )
28647 debug=: ;;
28648 --file | --fil | --fi | --f )
28649 $ac_shift
28650 case $ac_optarg in
28651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28652 esac
28653 as_fn_append CONFIG_FILES " '$ac_optarg'"
28654 ac_need_defaults=false;;
28655 --header | --heade | --head | --hea )
28656 $ac_shift
28657 case $ac_optarg in
28658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28659 esac
28660 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28661 ac_need_defaults=false;;
28662 --he | --h)
28663 # Conflict between --help and --header
28664 as_fn_error "ambiguous option: \`$1'
28665 Try \`$0 --help' for more information.";;
28666 --help | --hel | -h )
28667 $as_echo "$ac_cs_usage"; exit ;;
28668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28670 ac_cs_silent=: ;;
28671
28672 # This is an error.
28673 -*) as_fn_error "unrecognized option: \`$1'
28674 Try \`$0 --help' for more information." ;;
28675
28676 *) as_fn_append ac_config_targets " $1"
28677 ac_need_defaults=false ;;
28678
28679 esac
28680 shift
28681 done
28682
28683 ac_configure_extra_args=
28684
28685 if $ac_cs_silent; then
28686 exec 6>/dev/null
28687 ac_configure_extra_args="$ac_configure_extra_args --silent"
28688 fi
28689
28690 _ACEOF
28691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28692 if \$ac_cs_recheck; then
28693 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28694 shift
28695 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28696 CONFIG_SHELL='$SHELL'
28697 export CONFIG_SHELL
28698 exec "\$@"
28699 fi
28700
28701 _ACEOF
28702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28703 exec 5>>config.log
28704 {
28705 echo
28706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28707 ## Running $as_me. ##
28708 _ASBOX
28709 $as_echo "$ac_log"
28710 } >&5
28711
28712 _ACEOF
28713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28714 #
28715 # INIT-COMMANDS
28716 #
28717 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28718 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28719 subdirs='$subdirs'
28720
28721 _ACEOF
28722
28723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28724
28725 # Handling of arguments.
28726 for ac_config_target in $ac_config_targets
28727 do
28728 case $ac_config_target in
28729 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28730 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28731 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28732 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28733 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28734 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28735 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28736 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28737
28738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28739 esac
28740 done
28741
28742
28743 # If the user did not use the arguments to specify the items to instantiate,
28744 # then the envvar interface is used. Set only those that are not.
28745 # We use the long form for the default assignment because of an extremely
28746 # bizarre bug on SunOS 4.1.3.
28747 if $ac_need_defaults; then
28748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28751 fi
28752
28753 # Have a temporary directory for convenience. Make it in the build tree
28754 # simply because there is no reason against having it here, and in addition,
28755 # creating and moving files from /tmp can sometimes cause problems.
28756 # Hook for its removal unless debugging.
28757 # Note that there is a small window in which the directory will not be cleaned:
28758 # after its creation but before its name has been assigned to `$tmp'.
28759 $debug ||
28760 {
28761 tmp=
28762 trap 'exit_status=$?
28763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28764 ' 0
28765 trap 'as_fn_exit 1' 1 2 13 15
28766 }
28767 # Create a (secure) tmp directory for tmp files.
28768
28769 {
28770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28771 test -n "$tmp" && test -d "$tmp"
28772 } ||
28773 {
28774 tmp=./conf$$-$RANDOM
28775 (umask 077 && mkdir "$tmp")
28776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28777
28778 # Set up the scripts for CONFIG_FILES section.
28779 # No need to generate them if there are no CONFIG_FILES.
28780 # This happens for instance with `./config.status config.h'.
28781 if test -n "$CONFIG_FILES"; then
28782
28783 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28784 ac_cs_awk_getline=:
28785 ac_cs_awk_pipe_init=
28786 ac_cs_awk_read_file='
28787 while ((getline aline < (F[key])) > 0)
28788 print(aline)
28789 close(F[key])'
28790 ac_cs_awk_pipe_fini=
28791 else
28792 ac_cs_awk_getline=false
28793 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28794 ac_cs_awk_read_file='
28795 print "|#_!!_#|"
28796 print "cat " F[key] " &&"
28797 '$ac_cs_awk_pipe_init
28798 # The final `:' finishes the AND list.
28799 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28800 fi
28801 ac_cr=`echo X | tr X '\015'`
28802 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28803 # But we know of no other shell where ac_cr would be empty at this
28804 # point, so we can use a bashism as a fallback.
28805 if test "x$ac_cr" = x; then
28806 eval ac_cr=\$\'\\r\'
28807 fi
28808 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28809 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28810 ac_cs_awk_cr='\r'
28811 else
28812 ac_cs_awk_cr=$ac_cr
28813 fi
28814
28815 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28816 _ACEOF
28817
28818 # Create commands to substitute file output variables.
28819 {
28820 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28821 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28822 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28823 echo "_ACAWK" &&
28824 echo "_ACEOF"
28825 } >conf$$files.sh &&
28826 . ./conf$$files.sh ||
28827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28828 rm -f conf$$files.sh
28829
28830 {
28831 echo "cat >conf$$subs.awk <<_ACEOF" &&
28832 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28833 echo "_ACEOF"
28834 } >conf$$subs.sh ||
28835 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28837 ac_delim='%!_!# '
28838 for ac_last_try in false false false false false :; do
28839 . ./conf$$subs.sh ||
28840 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28841
28842 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28843 if test $ac_delim_n = $ac_delim_num; then
28844 break
28845 elif $ac_last_try; then
28846 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28847 else
28848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28849 fi
28850 done
28851 rm -f conf$$subs.sh
28852
28853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28854 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28855 _ACEOF
28856 sed -n '
28857 h
28858 s/^/S["/; s/!.*/"]=/
28859 p
28860 g
28861 s/^[^!]*!//
28862 :repl
28863 t repl
28864 s/'"$ac_delim"'$//
28865 t delim
28866 :nl
28867 h
28868 s/\(.\{148\}\).*/\1/
28869 t more1
28870 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28871 p
28872 n
28873 b repl
28874 :more1
28875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28876 p
28877 g
28878 s/.\{148\}//
28879 t nl
28880 :delim
28881 h
28882 s/\(.\{148\}\).*/\1/
28883 t more2
28884 s/["\\]/\\&/g; s/^/"/; s/$/"/
28885 p
28886 b
28887 :more2
28888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28889 p
28890 g
28891 s/.\{148\}//
28892 t delim
28893 ' <conf$$subs.awk | sed '
28894 /^[^""]/{
28895 N
28896 s/\n//
28897 }
28898 ' >>$CONFIG_STATUS || ac_write_fail=1
28899 rm -f conf$$subs.awk
28900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28901 _ACAWK
28902 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28903 for (key in S) S_is_set[key] = 1
28904 FS = "\a"
28905 \$ac_cs_awk_pipe_init
28906 }
28907 {
28908 line = $ 0
28909 nfields = split(line, field, "@")
28910 substed = 0
28911 len = length(field[1])
28912 for (i = 2; i < nfields; i++) {
28913 key = field[i]
28914 keylen = length(key)
28915 if (S_is_set[key]) {
28916 value = S[key]
28917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28918 len += length(value) + length(field[++i])
28919 substed = 1
28920 } else
28921 len += 1 + keylen
28922 }
28923 if (nfields == 3 && !substed) {
28924 key = field[2]
28925 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28926 \$ac_cs_awk_read_file
28927 next
28928 }
28929 }
28930 print line
28931 }
28932 \$ac_cs_awk_pipe_fini
28933 _ACAWK
28934 _ACEOF
28935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28936 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28938 else
28939 cat
28940 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28941 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28942 _ACEOF
28943
28944 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28945 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28946 # trailing colons and then remove the whole line if VPATH becomes empty
28947 # (actually we leave an empty line to preserve line numbers).
28948 if test "x$srcdir" = x.; then
28949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28950 s/:*\$(srcdir):*/:/
28951 s/:*\${srcdir}:*/:/
28952 s/:*@srcdir@:*/:/
28953 s/^\([^=]*=[ ]*\):*/\1/
28954 s/:*$//
28955 s/^[^=]*=[ ]*$//
28956 }'
28957 fi
28958
28959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28960 fi # test -n "$CONFIG_FILES"
28961
28962 # Set up the scripts for CONFIG_HEADERS section.
28963 # No need to generate them if there are no CONFIG_HEADERS.
28964 # This happens for instance with `./config.status Makefile'.
28965 if test -n "$CONFIG_HEADERS"; then
28966 cat >"$tmp/defines.awk" <<\_ACAWK ||
28967 BEGIN {
28968 _ACEOF
28969
28970 # Transform confdefs.h into an awk script `defines.awk', embedded as
28971 # here-document in config.status, that substitutes the proper values into
28972 # config.h.in to produce config.h.
28973
28974 # Create a delimiter string that does not exist in confdefs.h, to ease
28975 # handling of long lines.
28976 ac_delim='%!_!# '
28977 for ac_last_try in false false :; do
28978 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28979 if test -z "$ac_t"; then
28980 break
28981 elif $ac_last_try; then
28982 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28983 else
28984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28985 fi
28986 done
28987
28988 # For the awk script, D is an array of macro values keyed by name,
28989 # likewise P contains macro parameters if any. Preserve backslash
28990 # newline sequences.
28991
28992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28993 sed -n '
28994 s/.\{148\}/&'"$ac_delim"'/g
28995 t rset
28996 :rset
28997 s/^[ ]*#[ ]*define[ ][ ]*/ /
28998 t def
28999 d
29000 :def
29001 s/\\$//
29002 t bsnl
29003 s/["\\]/\\&/g
29004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29005 D["\1"]=" \3"/p
29006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29007 d
29008 :bsnl
29009 s/["\\]/\\&/g
29010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29011 D["\1"]=" \3\\\\\\n"\\/p
29012 t cont
29013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29014 t cont
29015 d
29016 :cont
29017 n
29018 s/.\{148\}/&'"$ac_delim"'/g
29019 t clear
29020 :clear
29021 s/\\$//
29022 t bsnlc
29023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29024 d
29025 :bsnlc
29026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29027 b cont
29028 ' <confdefs.h | sed '
29029 s/'"$ac_delim"'/"\\\
29030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29031
29032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29033 for (key in D) D_is_set[key] = 1
29034 FS = "\a"
29035 }
29036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29037 line = \$ 0
29038 split(line, arg, " ")
29039 if (arg[1] == "#") {
29040 defundef = arg[2]
29041 mac1 = arg[3]
29042 } else {
29043 defundef = substr(arg[1], 2)
29044 mac1 = arg[2]
29045 }
29046 split(mac1, mac2, "(") #)
29047 macro = mac2[1]
29048 prefix = substr(line, 1, index(line, defundef) - 1)
29049 if (D_is_set[macro]) {
29050 # Preserve the white space surrounding the "#".
29051 print prefix "define", macro P[macro] D[macro]
29052 next
29053 } else {
29054 # Replace #undef with comments. This is necessary, for example,
29055 # in the case of _POSIX_SOURCE, which is predefined and required
29056 # on some systems where configure will not decide to define it.
29057 if (defundef == "undef") {
29058 print "/*", prefix defundef, macro, "*/"
29059 next
29060 }
29061 }
29062 }
29063 { print }
29064 _ACAWK
29065 _ACEOF
29066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29067 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29068 fi # test -n "$CONFIG_HEADERS"
29069
29070
29071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29072 shift
29073 for ac_tag
29074 do
29075 case $ac_tag in
29076 :[FHLC]) ac_mode=$ac_tag; continue;;
29077 esac
29078 case $ac_mode$ac_tag in
29079 :[FHL]*:*);;
29080 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29081 :[FH]-) ac_tag=-:-;;
29082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29083 esac
29084 ac_save_IFS=$IFS
29085 IFS=:
29086 set x $ac_tag
29087 IFS=$ac_save_IFS
29088 shift
29089 ac_file=$1
29090 shift
29091
29092 case $ac_mode in
29093 :L) ac_source=$1;;
29094 :[FH])
29095 ac_file_inputs=
29096 for ac_f
29097 do
29098 case $ac_f in
29099 -) ac_f="$tmp/stdin";;
29100 *) # Look for the file first in the build tree, then in the source tree
29101 # (if the path is not absolute). The absolute path cannot be DOS-style,
29102 # because $ac_f cannot contain `:'.
29103 test -f "$ac_f" ||
29104 case $ac_f in
29105 [\\/$]*) false;;
29106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29107 esac ||
29108 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29109 esac
29110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29111 as_fn_append ac_file_inputs " '$ac_f'"
29112 done
29113
29114 # Let's still pretend it is `configure' which instantiates (i.e., don't
29115 # use $as_me), people would be surprised to read:
29116 # /* config.h. Generated by config.status. */
29117 configure_input='Generated from '`
29118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29119 `' by configure.'
29120 if test x"$ac_file" != x-; then
29121 configure_input="$ac_file. $configure_input"
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29123 $as_echo "$as_me: creating $ac_file" >&6;}
29124 fi
29125 # Neutralize special characters interpreted by sed in replacement strings.
29126 case $configure_input in #(
29127 *\&* | *\|* | *\\* )
29128 ac_sed_conf_input=`$as_echo "$configure_input" |
29129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29130 *) ac_sed_conf_input=$configure_input;;
29131 esac
29132
29133 case $ac_tag in
29134 *:-:* | *:-) cat >"$tmp/stdin" \
29135 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29136 esac
29137 ;;
29138 esac
29139
29140 ac_dir=`$as_dirname -- "$ac_file" ||
29141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29142 X"$ac_file" : 'X\(//\)[^/]' \| \
29143 X"$ac_file" : 'X\(//\)$' \| \
29144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29145 $as_echo X"$ac_file" |
29146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29147 s//\1/
29148 q
29149 }
29150 /^X\(\/\/\)[^/].*/{
29151 s//\1/
29152 q
29153 }
29154 /^X\(\/\/\)$/{
29155 s//\1/
29156 q
29157 }
29158 /^X\(\/\).*/{
29159 s//\1/
29160 q
29161 }
29162 s/.*/./; q'`
29163 as_dir="$ac_dir"; as_fn_mkdir_p
29164 ac_builddir=.
29165
29166 case "$ac_dir" in
29167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29168 *)
29169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29170 # A ".." for each directory in $ac_dir_suffix.
29171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29172 case $ac_top_builddir_sub in
29173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29175 esac ;;
29176 esac
29177 ac_abs_top_builddir=$ac_pwd
29178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29179 # for backward compatibility:
29180 ac_top_builddir=$ac_top_build_prefix
29181
29182 case $srcdir in
29183 .) # We are building in place.
29184 ac_srcdir=.
29185 ac_top_srcdir=$ac_top_builddir_sub
29186 ac_abs_top_srcdir=$ac_pwd ;;
29187 [\\/]* | ?:[\\/]* ) # Absolute name.
29188 ac_srcdir=$srcdir$ac_dir_suffix;
29189 ac_top_srcdir=$srcdir
29190 ac_abs_top_srcdir=$srcdir ;;
29191 *) # Relative name.
29192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29193 ac_top_srcdir=$ac_top_build_prefix$srcdir
29194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29195 esac
29196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29197
29198
29199 case $ac_mode in
29200 :F)
29201 #
29202 # CONFIG_FILE
29203 #
29204
29205 _ACEOF
29206
29207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29208 # If the template does not know about datarootdir, expand it.
29209 # FIXME: This hack should be removed a few years after 2.60.
29210 ac_datarootdir_hack=; ac_datarootdir_seen=
29211 ac_sed_dataroot='
29212 /datarootdir/ {
29213 p
29214 q
29215 }
29216 /@datadir@/p
29217 /@docdir@/p
29218 /@infodir@/p
29219 /@localedir@/p
29220 /@mandir@/p'
29221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29222 *datarootdir*) ac_datarootdir_seen=yes;;
29223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29226 _ACEOF
29227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29228 ac_datarootdir_hack='
29229 s&@datadir@&$datadir&g
29230 s&@docdir@&$docdir&g
29231 s&@infodir@&$infodir&g
29232 s&@localedir@&$localedir&g
29233 s&@mandir@&$mandir&g
29234 s&\\\${datarootdir}&$datarootdir&g' ;;
29235 esac
29236 _ACEOF
29237
29238 # Neutralize VPATH when `$srcdir' = `.'.
29239 # Shell code in configure.ac might set extrasub.
29240 # FIXME: do we really want to maintain this feature?
29241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29242 ac_sed_extra="$ac_vpsub
29243 $extrasub
29244 _ACEOF
29245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29246 :t
29247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29248 s|@configure_input@|$ac_sed_conf_input|;t t
29249 s&@top_builddir@&$ac_top_builddir_sub&;t t
29250 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29251 s&@srcdir@&$ac_srcdir&;t t
29252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29253 s&@top_srcdir@&$ac_top_srcdir&;t t
29254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29255 s&@builddir@&$ac_builddir&;t t
29256 s&@abs_builddir@&$ac_abs_builddir&;t t
29257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29258 $ac_datarootdir_hack
29259 "
29260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29261 if $ac_cs_awk_getline; then
29262 $AWK -f "$tmp/subs.awk"
29263 else
29264 $AWK -f "$tmp/subs.awk" | $SHELL
29265 fi >$tmp/out \
29266 || as_fn_error "could not create $ac_file" "$LINENO" 5
29267
29268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29269 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29272 which seems to be undefined. Please make sure it is defined." >&5
29273 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29274 which seems to be undefined. Please make sure it is defined." >&2;}
29275
29276 rm -f "$tmp/stdin"
29277 case $ac_file in
29278 -) cat "$tmp/out" && rm -f "$tmp/out";;
29279 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29280 esac \
29281 || as_fn_error "could not create $ac_file" "$LINENO" 5
29282 ;;
29283 :H)
29284 #
29285 # CONFIG_HEADER
29286 #
29287 if test x"$ac_file" != x-; then
29288 {
29289 $as_echo "/* $configure_input */" \
29290 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29291 } >"$tmp/config.h" \
29292 || as_fn_error "could not create $ac_file" "$LINENO" 5
29293 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29295 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29296 else
29297 rm -f "$ac_file"
29298 mv "$tmp/config.h" "$ac_file" \
29299 || as_fn_error "could not create $ac_file" "$LINENO" 5
29300 fi
29301 else
29302 $as_echo "/* $configure_input */" \
29303 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29304 || as_fn_error "could not create -" "$LINENO" 5
29305 fi
29306 ;;
29307
29308 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29309 $as_echo "$as_me: executing $ac_file commands" >&6;}
29310 ;;
29311 esac
29312
29313
29314 case $ac_file$ac_mode in
29315 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29316 "gccdepdir":C)
29317 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29318 for lang in $subdirs c-family common
29319 do
29320 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29321 done ;;
29322 "as":F) chmod +x as ;;
29323 "collect-ld":F) chmod +x collect-ld ;;
29324 "nm":F) chmod +x nm ;;
29325 "default":C)
29326 case ${CONFIG_HEADERS} in
29327 *auto-host.h:config.in*)
29328 echo > cstamp-h ;;
29329 esac
29330 # Make sure all the subdirs exist.
29331 for d in $subdirs doc build common c-family
29332 do
29333 test -d $d || mkdir $d
29334 done
29335 ;;
29336
29337 esac
29338 done # for ac_tag
29339
29340
29341 as_fn_exit 0
29342 _ACEOF
29343 ac_clean_files=$ac_clean_files_save
29344
29345 test $ac_write_fail = 0 ||
29346 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29347
29348
29349 # configure is writing to config.log, and then calls config.status.
29350 # config.status does its own redirection, appending to config.log.
29351 # Unfortunately, on DOS this fails, as config.log is still kept open
29352 # by configure, so config.status won't be able to write to it; its
29353 # output is simply discarded. So we exec the FD to /dev/null,
29354 # effectively closing config.log, so it can be properly (re)opened and
29355 # appended to by config.status. When coming back to configure, we
29356 # need to make the FD available again.
29357 if test "$no_create" != yes; then
29358 ac_cs_success=:
29359 ac_config_status_args=
29360 test "$silent" = yes &&
29361 ac_config_status_args="$ac_config_status_args --quiet"
29362 exec 5>/dev/null
29363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29364 exec 5>>config.log
29365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29366 # would make configure fail if this is the last instruction.
29367 $ac_cs_success || as_fn_exit $?
29368 fi
29369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29372 fi
29373
29374