configure.ac: Stack protector enabling for Android targets.
[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 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_sjlj_exceptions
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_initfini_array
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
998 fi
999
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1233
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1244
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1249
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1254
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1261
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1266
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1269
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1272
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1288
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1366 do
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files in source dir intended
1559 for creating source tarballs for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST]
1564 enable expensive run-time checks. With LIST, enable
1565 only specific categories of checks. Categories are:
1566 yes,no,all,none,release. Flags are:
1567 assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types
1569 --enable-coverage[=LEVEL]
1570 enable compiler's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid'
1581 or 'dpd' choses which decimal floating point format
1582 to use
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 package
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1600 x86
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1603 on Windows hosts
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1607 of the registry key
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1615 glibc systems
1616 --enable-initfini-array use .init_array/.fini_array sections
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv,gnu,both}
1672 specify the linker hash style
1673
1674 Some influential environment variables:
1675 CC C compiler command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1678 nonstandard directory <lib dir>
1679 LIBS libraries to pass to the linker, e.g. -l<library>
1680 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681 you have headers in a nonstandard directory <include dir>
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1684 CPP C preprocessor
1685 CXXCPP C++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1749 else
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 fi || ac_status=$?
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1753 done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758 cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766 exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev/null && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=$ac_status
2008 fi
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=0 ac_mid=0
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_hi=$ac_mid; break
2087 else
2088 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089 if test $ac_lo -le $ac_mid; then
2090 ac_lo= ac_hi=
2091 break
2092 fi
2093 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
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) < 0)];
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=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_lo=$ac_mid; break
2129 else
2130 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131 if test $ac_mid -le $ac_hi; then
2132 ac_lo= ac_hi=
2133 break
2134 fi
2135 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_hi=$ac_mid
2163 else
2164 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184 FILE *f = fopen ("conftest.val", "w");
2185 if (! f)
2186 return 1;
2187 if (($2) < 0)
2188 {
2189 long int i = longval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%ld", i);
2193 }
2194 else
2195 {
2196 unsigned long int i = ulongval ();
2197 if (i != ($2))
2198 return 1;
2199 fprintf (f, "%lu", i);
2200 }
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212 ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215 conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218 fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=no"
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244 return 0;
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265 eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=no"
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324 case $ac_type in #(
2325 int$2_t) :
2326 eval "$3=yes" ;; #(
2327 *) :
2328 eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 eval as_val=\$$3
2335 if test "x$as_val" = x""no; then :
2336
2337 else
2338 break
2339 fi
2340 done
2341 fi
2342 eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2377 }; then :
2378 ac_retval=0
2379 else
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384 fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 eval "$3=no"
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 case $ac_type in #(
2425 uint$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 eval as_val=\$$3
2433 if test "x$as_val" = x""no; then :
2434
2435 else
2436 break
2437 fi
2438 done
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463 eval "$3=yes"
2464 else
2465 eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 ac_status=$?
2491 if test -s conftest.err; then
2492 grep -v '^ *+' conftest.err >conftest.er1
2493 cat conftest.er1 >&5
2494 mv -f conftest.er1 conftest.err
2495 fi
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev/null && {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507 fi
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595 eval "$3=yes"
2596 else
2597 eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2624 ac_status=$?
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2629 fi
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2637 }; then :
2638 ac_retval=0
2639 else
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_retval=1
2644 fi
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2660
2661 $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2679
2680 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2681 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2684 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2685 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2686 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2696 done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722 for ac_arg
2723 do
2724 case $ac_arg in
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2728 continue ;;
2729 *\'*)
2730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 esac
2732 case $ac_pass in
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 2)
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2738 else
2739 case $ac_arg in
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746 esac
2747 ;;
2748 -* ) ac_must_keep_next=true ;;
2749 esac
2750 fi
2751 as_fn_append ac_configure_args " '$ac_arg'"
2752 ;;
2753 esac
2754 done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2766 {
2767 echo
2768
2769 cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774 echo
2775 # The following way of writing the cache mishandles newlines in values,
2776 (
2777 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778 eval ac_val=\$$ac_var
2779 case $ac_val in #(
2780 *${as_nl}*)
2781 case $ac_var in #(
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784 esac
2785 case $ac_var in #(
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2789 esac ;;
2790 esac
2791 done
2792 (set) 2>&1 |
2793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2795 sed -n \
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798 ;; #(
2799 *)
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 ;;
2802 esac |
2803 sort
2804 )
2805 echo
2806
2807 cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812 echo
2813 for ac_var in $ac_subst_vars
2814 do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 esac
2819 $as_echo "$ac_var='\''$ac_val'\''"
2820 done | sort
2821 echo
2822
2823 if test -n "$ac_subst_files"; then
2824 cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_files
2831 do
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2839 fi
2840
2841 if test -s confdefs.h; then
2842 cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847 echo
2848 cat confdefs.h
2849 echo
2850 fi
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2854 } >&5
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857 exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2905 else
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2916 . "$ac_site_file"
2917 fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 case $cache_file in
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2929 esac
2930 fi
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934 >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2955 *)
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2985 fi
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3021 break 2
3022 fi
3023 done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3083 else
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3116 else
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3146 NONENONEs,x,x, &&
3147 program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186 build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3193 else
3194 host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3225 ;;
3226 *)
3227 library_path_setting="ok"
3228 ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory"
3251 ;;
3252 *)
3253 gcc_exec_prefix_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX 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 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no) ;;
3277 *) local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no) ;;
3298 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305 if test x${enable_version_specific_runtime_libs} = xyes; then
3306 gcc_gxx_include_dir='${libsubdir}/include/c++'
3307 else
3308 libstdcxx_incdir='include/c++/$(version)'
3309 if test x$host != x$target; then
3310 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311 fi
3312 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313 fi
3314 fi
3315
3316 gcc_gxx_include_dir_add_sysroot=0
3317 if test "${with_sysroot+set}" = set; then
3318 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3319 if test "${gcc_gxx_without_sysroot}"; then
3320 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3321 gcc_gxx_include_dir_add_sysroot=1
3322 fi
3323 fi
3324
3325
3326 # Check whether --with-cpp_install_dir was given.
3327 if test "${with_cpp_install_dir+set}" = set; then :
3328 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3329 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3330 elif test x$withval != xno; then
3331 cpp_install_dir=$withval
3332 fi
3333 fi
3334
3335
3336 # We would like to our source tree to be readonly. However when releases or
3337 # pre-releases are generated, the flex/bison generated files as well as the
3338 # various formats of manuals need to be included along with the rest of the
3339 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3340 # just that.
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3343 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3344 # Check whether --enable-generated-files-in-srcdir was given.
3345 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3346 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3347 else
3348 generated_files_in_srcdir=no
3349 fi
3350
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3353 $as_echo "$generated_files_in_srcdir" >&6; }
3354
3355 if test "$generated_files_in_srcdir" = "yes"; then
3356 GENINSRC=''
3357 else
3358 GENINSRC='#'
3359 fi
3360
3361
3362 # -------------------
3363 # Find default linker
3364 # -------------------
3365
3366 # With GNU ld
3367
3368 # Check whether --with-gnu-ld was given.
3369 if test "${with_gnu_ld+set}" = set; then :
3370 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3371 else
3372 gnu_ld_flag=no
3373 fi
3374
3375
3376 # With pre-defined ld
3377
3378 # Check whether --with-ld was given.
3379 if test "${with_ld+set}" = set; then :
3380 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3381 fi
3382
3383 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3384 if test ! -x "$DEFAULT_LINKER"; then
3385 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3386 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3387 gnu_ld_flag=yes
3388 fi
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3392 _ACEOF
3393
3394 fi
3395
3396 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define HAVE_GNU_LD $gnu_ld
3400 _ACEOF
3401
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3404 $as_echo_n "checking whether a default linker was specified... " >&6; }
3405 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3406 if test x"$gnu_ld_flag" = x"no"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3408 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3411 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 fi
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418 # With demangler in GNU ld
3419
3420 # Check whether --with-demangler-in-ld was given.
3421 if test "${with_demangler_in_ld+set}" = set; then :
3422 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3423 else
3424 demangler_in_ld=yes
3425 fi
3426
3427
3428 # ----------------------
3429 # Find default assembler
3430 # ----------------------
3431
3432 # With GNU as
3433
3434 # Check whether --with-gnu-as was given.
3435 if test "${with_gnu_as+set}" = set; then :
3436 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3437 else
3438 gas_flag=no
3439 fi
3440
3441
3442
3443 # Check whether --with-as was given.
3444 if test "${with_as+set}" = set; then :
3445 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 fi
3447
3448 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3449 if test ! -x "$DEFAULT_ASSEMBLER"; then
3450 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3451 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3452 gas_flag=yes
3453 fi
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3457 _ACEOF
3458
3459 fi
3460
3461 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3462
3463 cat >>confdefs.h <<_ACEOF
3464 #define HAVE_GNU_AS $gnu_as
3465 _ACEOF
3466
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test x"$gas_flag" = x"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3477 fi
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482
3483 # ---------------
3484 # Find C compiler
3485 # ---------------
3486
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3491 #
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3495
3496 # Find the native compiler
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540 fi
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3589 fi
3590 else
3591 CC="$ac_cv_prog_CC"
3592 fi
3593
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633 fi
3634 fi
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3657 fi
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662 done
3663 done
3664 IFS=$as_save_IFS
3665
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 fi
3677 fi
3678 fi
3679 fi
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 test -n "$CC" && break
3733 done
3734 fi
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3738 do
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi
3765 fi
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 fi
3774
3775
3776 test -n "$ac_ct_CC" && break
3777 done
3778
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3789 fi
3790 fi
3791
3792 fi
3793
3794
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3799
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3820 fi
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3824
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3850 do
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3857
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3873 # Autoconf.
3874 for ac_file in $ac_files ''
3875 do
3876 test -f "$ac_file" || continue
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 ;;
3880 [ab].out )
3881 # We found the default executable, but exeext='' is most
3882 # certainly right.
3883 break;;
3884 *.* )
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3886 then :; else
3887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 fi
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3893 # actually working.
3894 break;;
3895 * )
3896 break;;
3897 esac
3898 done
3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
3900
3901 else
3902 ac_file=''
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status 77
3913 as_fn_error "C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3915 fi
3916 ac_exeext=$ac_cv_exeext
3917
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details." "$LINENO" 5; }
3945 fi
3946 fi
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3991 fi
3992 rm -f conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3995
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details." "$LINENO" 5; }
4043 fi
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4084 fi
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main ()
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4157 fi
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4163 fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4184 {
4185 return p[i];
4186 }
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4188 {
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4195 }
4196
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4217 int
4218 main ()
4219 {
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 do
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4237
4238 fi
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4241 x)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4247 *)
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4268 fi
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276
4277 int
4278 main ()
4279 {
4280
4281 ;
4282 return 0;
4283 }
4284 _ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 rm -f conftest2.*
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4310 then
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 rm -f conftest2.*
4327 if { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4347 then
4348 # cc works too.
4349 :
4350 else
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4353 fi
4354 fi
4355 fi
4356 else
4357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4358 fi
4359 rm -f core conftest*
4360
4361 fi
4362 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4370
4371 fi
4372
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir=`cd $ac_aux_dir && pwd`
4375
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4388 fi
4389
4390
4391 ac_ext=cpp
4392 ac_cpp='$CXXCPP $CPPFLAGS'
4393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4398 CXX=$CCC
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 CXX=$ac_cv_prog_CXX
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$CXX" && break
4441 done
4442 fi
4443 if test -z "$CXX"; then
4444 ac_ct_CXX=$CXX
4445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_CXX" && break
4485 done
4486
4487 if test "x$ac_ct_CXX" = x; then
4488 CXX="g++"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CXX=$ac_ct_CXX
4497 fi
4498 fi
4499
4500 fi
4501 fi
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4522 fi
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534
4535 int
4536 main ()
4537 {
4538 #ifndef __GNUC__
4539 choke me
4540 #endif
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4547 ac_compiler_gnu=yes
4548 else
4549 ac_compiler_gnu=no
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4558 GXX=yes
4559 else
4560 GXX=
4561 fi
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4571 ac_cv_prog_cxx_g=no
4572 CXXFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4586 else
4587 CXXFLAGS=""
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600
4601 else
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 CXXFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-g -O2"
4632 else
4633 CXXFLAGS="-g"
4634 fi
4635 else
4636 if test "$GXX" = yes; then
4637 CXXFLAGS="-O2"
4638 else
4639 CXXFLAGS=
4640 fi
4641 fi
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648
4649
4650
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688
4689 fi
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728 if test "x$ac_ct_GNATBIND" = x; then
4729 GNATBIND="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATBIND=$ac_ct_GNATBIND
4738 fi
4739 else
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4741 fi
4742
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 fi
4770 fi
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780
4781 fi
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4804 fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818 fi
4819
4820 if test "x$ac_ct_GNATMAKE" = x; then
4821 GNATMAKE="no"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 GNATMAKE=$ac_ct_GNATMAKE
4830 fi
4831 else
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4833 fi
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4842 EOF
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4855 fi
4856 rm -f conftest.*
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4860
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4862 have_gnat=yes
4863 else
4864 have_gnat=no
4865 fi
4866
4867
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4871 else
4872 OUTPUT_OPTION='-o $@'
4873 fi
4874
4875
4876
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4879 case "$CC" in
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4882 esac
4883
4884
4885 # Determine PICFLAG for target gnatlib.
4886
4887
4888
4889
4890 case "${target}" in
4891 # PIC is the default on some targets or must not be used.
4892 *-*-darwin*)
4893 # PIC is the default on this platform
4894 # Common symbols not allowed in MH_DYLIB files
4895 PICFLAG_FOR_TARGET=-fno-common
4896 ;;
4897 alpha*-dec-osf5*)
4898 # PIC is the default.
4899 ;;
4900 hppa*64*-*-hpux*)
4901 # PIC is the default for 64-bit PA HP-UX.
4902 ;;
4903 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 ;;
4905 i[34567]86-*-interix[3-9]*)
4906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4907 # Instead, we relocate shared libraries at runtime.
4908 ;;
4909 i[34567]86-*-nto-qnx*)
4910 # QNX uses GNU C++, but need to define -shared option too, otherwise
4911 # it will coredump.
4912 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 ;;
4914 i[34567]86-pc-msdosdjgpp*)
4915 # DJGPP does not support shared libraries at all.
4916 ;;
4917 ia64*-*-hpux*)
4918 # On IA64 HP-UX, PIC is the default but the pic flag
4919 # sets the default TLS model and affects inlining.
4920 PICFLAG_FOR_TARGET=-fPIC
4921 ;;
4922 mips-sgi-irix6*)
4923 # PIC is the default.
4924 ;;
4925 rs6000-ibm-aix* | powerpc-ibm-aix*)
4926 # All AIX code is PIC.
4927 ;;
4928
4929 # Some targets support both -fPIC and -fpic, but prefer the latter.
4930 # FIXME: Why?
4931 i[34567]86-*-* | x86_64-*-*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 m68k-*-*)
4935 PICFLAG_FOR_TARGET=-fpic
4936 ;;
4937 # FIXME: Override -fPIC default in libgcc only?
4938 sh-*-linux* | sh[2346lbe]*-*-linux*)
4939 PICFLAG_FOR_TARGET=-fpic
4940 ;;
4941 # FIXME: Simplify to sh*-*-netbsd*?
4942 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4943 sh64-*-netbsd* | sh64l*-*-netbsd*)
4944 PICFLAG_FOR_TARGET=-fpic
4945 ;;
4946 # Default to -fPIC unless specified otherwise.
4947 *)
4948 PICFLAG_FOR_TARGET=-fPIC
4949 ;;
4950 esac
4951
4952 # If the user explicitly uses -fpic/-fPIC, keep that.
4953 case "${CFLAGS_FOR_TARGET}" in
4954 *-fpic*)
4955 PICFLAG_FOR_TARGET=-fpic
4956 ;;
4957 *-fPIC*)
4958 PICFLAG_FOR_TARGET=-fPIC
4959 ;;
4960 esac
4961
4962
4963
4964 # -------------------------
4965 # Check C compiler features
4966 # -------------------------
4967
4968
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4976 # On Suns, sometimes $CPP names a directory.
4977 if test -n "$CPP" && test -d "$CPP"; then
4978 CPP=
4979 fi
4980 if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 do
4987 ac_preproc_ok=false
4988 for ac_c_preproc_warn_flag in '' yes
4989 do
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003 Syntax error
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5006
5007 else
5008 # Broken: fails on valid input.
5009 continue
5010 fi
5011 rm -f conftest.err conftest.$ac_ext
5012
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ac_nonexistent.h>
5018 _ACEOF
5019 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: success on invalid input.
5021 continue
5022 else
5023 # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5026 fi
5027 rm -f conftest.err conftest.$ac_ext
5028
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then :
5033 break
5034 fi
5035
5036 done
5037 ac_cv_prog_CPP=$CPP
5038
5039 fi
5040 CPP=$ac_cv_prog_CPP
5041 else
5042 ac_cv_prog_CPP=$CPP
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5045 $as_echo "$CPP" >&6; }
5046 ac_preproc_ok=false
5047 for ac_c_preproc_warn_flag in '' yes
5048 do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062 Syntax error
5063 _ACEOF
5064 if ac_fn_c_try_cpp "$LINENO"; then :
5065
5066 else
5067 # Broken: fails on valid input.
5068 continue
5069 fi
5070 rm -f conftest.err conftest.$ac_ext
5071
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5077 _ACEOF
5078 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: success on invalid input.
5080 continue
5081 else
5082 # Passes both tests.
5083 ac_preproc_ok=:
5084 break
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then :
5092
5093 else
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." "$LINENO" 5; }
5098 fi
5099
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if test "${ac_cv_path_GREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_prog in grep ggrep; do
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5127 *GNU*)
5128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 *)
5130 ac_count=0
5131 $as_echo_n 0123456789 >"conftest.in"
5132 while :
5133 do
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5140 as_fn_arith $ac_count + 1 && ac_count=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP="$ac_path_GREP"
5144 ac_path_GREP_max=$ac_count
5145 fi
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5148 done
5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5150 esac
5151
5152 $ac_path_GREP_found && break 3
5153 done
5154 done
5155 done
5156 IFS=$as_save_IFS
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 fi
5160 else
5161 ac_cv_path_GREP=$GREP
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if test "${ac_cv_path_EGREP+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176 then ac_cv_path_EGREP="$GREP -E"
5177 else
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 *)
5196 ac_count=0
5197 $as_echo_n 0123456789 >"conftest.in"
5198 while :
5199 do
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5211 fi
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5217
5218 $ac_path_EGREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 fi
5226 else
5227 ac_cv_path_EGREP=$EGREP
5228 fi
5229
5230 fi
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP="$ac_cv_path_EGREP"
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5238 $as_echo_n "checking for ANSI C header files... " >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245 #include <stdarg.h>
5246 #include <string.h>
5247 #include <float.h>
5248
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_header_stdc=yes
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <string.h>
5269
5270 _ACEOF
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "memchr" >/dev/null 2>&1; then :
5273
5274 else
5275 ac_cv_header_stdc=no
5276 fi
5277 rm -f conftest*
5278
5279 fi
5280
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <stdlib.h>
5286
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev/null 2>&1; then :
5290
5291 else
5292 ac_cv_header_stdc=no
5293 fi
5294 rm -f conftest*
5295
5296 fi
5297
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then :
5301 :
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <ctype.h>
5306 #include <stdlib.h>
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 #else
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5316 #endif
5317
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 int
5320 main ()
5321 {
5322 int i;
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5326 return 2;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_run "$LINENO"; then :
5331
5332 else
5333 ac_cv_header_stdc=no
5334 fi
5335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5336 conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 fi
5338
5339 fi
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5342 $as_echo "$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5344
5345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5346
5347 fi
5348
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5351 inttypes.h stdint.h unistd.h
5352 do :
5353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 "
5356 eval as_val=\$$as_ac_Header
5357 if test "x$as_val" = x""yes; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 _ACEOF
5361
5362 fi
5363
5364 done
5365
5366
5367
5368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5370 MINIX=yes
5371 else
5372 MINIX=
5373 fi
5374
5375
5376 if test "$MINIX" = yes; then
5377
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5379
5380
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5382
5383
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5385
5386 fi
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5399 int
5400 main ()
5401 {
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__=yes
5409 else
5410 ac_cv_safe_to_define___extensions__=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5426
5427
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5437 CPP=
5438 fi
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 # Double quotes because CPP needs to be expanded
5444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 do
5446 ac_preproc_ok=false
5447 for ac_c_preproc_warn_flag in '' yes
5448 do
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #ifdef __STDC__
5458 # include <limits.h>
5459 #else
5460 # include <assert.h>
5461 #endif
5462 Syntax error
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5465
5466 else
5467 # Broken: fails on valid input.
5468 continue
5469 fi
5470 rm -f conftest.err conftest.$ac_ext
5471
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5477 _ACEOF
5478 if ac_fn_c_try_cpp "$LINENO"; then :
5479 # Broken: success on invalid input.
5480 continue
5481 else
5482 # Passes both tests.
5483 ac_preproc_ok=:
5484 break
5485 fi
5486 rm -f conftest.err conftest.$ac_ext
5487
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then :
5492 break
5493 fi
5494
5495 done
5496 ac_cv_prog_CPP=$CPP
5497
5498 fi
5499 CPP=$ac_cv_prog_CPP
5500 else
5501 ac_cv_prog_CPP=$CPP
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5507 do
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #ifdef __STDC__
5517 # include <limits.h>
5518 #else
5519 # include <assert.h>
5520 #endif
5521 Syntax error
5522 _ACEOF
5523 if ac_fn_c_try_cpp "$LINENO"; then :
5524
5525 else
5526 # Broken: fails on valid input.
5527 continue
5528 fi
5529 rm -f conftest.err conftest.$ac_ext
5530
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5536 _ACEOF
5537 if ac_fn_c_try_cpp "$LINENO"; then :
5538 # Broken: success on invalid input.
5539 continue
5540 else
5541 # Passes both tests.
5542 ac_preproc_ok=:
5543 break
5544 fi
5545 rm -f conftest.err conftest.$ac_ext
5546
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then :
5551
5552 else
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5557 fi
5558
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566 $as_echo_n "checking for inline... " >&6; }
5567 if test "${ac_cv_c_inline+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 ac_cv_c_inline=no
5571 for ac_kw in inline __inline__ __inline; do
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifndef __cplusplus
5575 typedef int foo_t;
5576 static $ac_kw foo_t static_foo () {return 0; }
5577 $ac_kw foo_t foo () {return 0; }
5578 #endif
5579
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_c_inline=$ac_kw
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 test "$ac_cv_c_inline" != no && break
5586 done
5587
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590 $as_echo "$ac_cv_c_inline" >&6; }
5591
5592 case $ac_cv_c_inline in
5593 inline | yes) ;;
5594 *)
5595 case $ac_cv_c_inline in
5596 no) ac_val=;;
5597 *) ac_val=$ac_cv_c_inline;;
5598 esac
5599 cat >>confdefs.h <<_ACEOF
5600 #ifndef __cplusplus
5601 #define inline $ac_val
5602 #endif
5603 _ACEOF
5604 ;;
5605 esac
5606
5607
5608 # Check whether --enable-largefile was given.
5609 if test "${enable_largefile+set}" = set; then :
5610 enableval=$enable_largefile;
5611 fi
5612
5613 if test "$enable_largefile" != no; then
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5616 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5617 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_cv_sys_largefile_CC=no
5621 if test "$GCC" != yes; then
5622 ac_save_CC=$CC
5623 while :; do
5624 # IRIX 6.2 and later do not support large files by default,
5625 # so use the C compiler's -n32 option if that helps.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5636 ? 1 : -1];
5637 int
5638 main ()
5639 {
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 break
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext
5649 CC="$CC -n32"
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_sys_largefile_CC=' -n32'; break
5652 fi
5653 rm -f core conftest.err conftest.$ac_objext
5654 break
5655 done
5656 CC=$ac_save_CC
5657 rm -f conftest.$ac_ext
5658 fi
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5661 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no; then
5663 CC=$CC$ac_cv_sys_largefile_CC
5664 fi
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 while :; do
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5682 ? 1 : -1];
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 ac_cv_sys_file_offset_bits=no; break
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5706 ? 1 : -1];
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_sys_file_offset_bits=64; break
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 ac_cv_sys_file_offset_bits=unknown
5720 break
5721 done
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5724 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5725 case $ac_cv_sys_file_offset_bits in #(
5726 no | unknown) ;;
5727 *)
5728 cat >>confdefs.h <<_ACEOF
5729 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5730 _ACEOF
5731 ;;
5732 esac
5733 rm -rf conftest*
5734 if test $ac_cv_sys_file_offset_bits = unknown; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5736 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5737 if test "${ac_cv_sys_large_files+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 while :; do
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <sys/types.h>
5744 /* Check that off_t can represent 2**63 - 1 correctly.
5745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5746 since some C++ compilers masquerading as C compilers
5747 incorrectly reject 9223372036854775807. */
5748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5750 && LARGE_OFF_T % 2147483647 == 1)
5751 ? 1 : -1];
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_sys_large_files=no; break
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #define _LARGE_FILES 1
5767 #include <sys/types.h>
5768 /* Check that off_t can represent 2**63 - 1 correctly.
5769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5770 since some C++ compilers masquerading as C compilers
5771 incorrectly reject 9223372036854775807. */
5772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5774 && LARGE_OFF_T % 2147483647 == 1)
5775 ? 1 : -1];
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_sys_large_files=1; break
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 ac_cv_sys_large_files=unknown
5789 break
5790 done
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5793 $as_echo "$ac_cv_sys_large_files" >&6; }
5794 case $ac_cv_sys_large_files in #(
5795 no | unknown) ;;
5796 *)
5797 cat >>confdefs.h <<_ACEOF
5798 #define _LARGE_FILES $ac_cv_sys_large_files
5799 _ACEOF
5800 ;;
5801 esac
5802 rm -rf conftest*
5803 fi
5804 fi
5805
5806
5807 # sizeof(char) is 1 by definition.
5808 # The cast to long int works around a bug in the HP C Compiler
5809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5811 # This bug is HP SR number 8606223364.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5813 $as_echo_n "checking size of void *... " >&6; }
5814 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5818
5819 else
5820 if test "$ac_cv_type_void_p" = yes; then
5821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823 { as_fn_set_status 77
5824 as_fn_error "cannot compute sizeof (void *)
5825 See \`config.log' for more details." "$LINENO" 5; }; }
5826 else
5827 ac_cv_sizeof_void_p=0
5828 fi
5829 fi
5830
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5833 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5834
5835
5836
5837 cat >>confdefs.h <<_ACEOF
5838 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5839 _ACEOF
5840
5841
5842 # The cast to long int works around a bug in the HP C Compiler
5843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5845 # This bug is HP SR number 8606223364.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5847 $as_echo_n "checking size of short... " >&6; }
5848 if test "${ac_cv_sizeof_short+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5852
5853 else
5854 if test "$ac_cv_type_short" = yes; then
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 { as_fn_set_status 77
5858 as_fn_error "cannot compute sizeof (short)
5859 See \`config.log' for more details." "$LINENO" 5; }; }
5860 else
5861 ac_cv_sizeof_short=0
5862 fi
5863 fi
5864
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5867 $as_echo "$ac_cv_sizeof_short" >&6; }
5868
5869
5870
5871 cat >>confdefs.h <<_ACEOF
5872 #define SIZEOF_SHORT $ac_cv_sizeof_short
5873 _ACEOF
5874
5875
5876 # The cast to long int works around a bug in the HP C Compiler
5877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5879 # This bug is HP SR number 8606223364.
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5881 $as_echo_n "checking size of int... " >&6; }
5882 if test "${ac_cv_sizeof_int+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5886
5887 else
5888 if test "$ac_cv_type_int" = yes; then
5889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5891 { as_fn_set_status 77
5892 as_fn_error "cannot compute sizeof (int)
5893 See \`config.log' for more details." "$LINENO" 5; }; }
5894 else
5895 ac_cv_sizeof_int=0
5896 fi
5897 fi
5898
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5901 $as_echo "$ac_cv_sizeof_int" >&6; }
5902
5903
5904
5905 cat >>confdefs.h <<_ACEOF
5906 #define SIZEOF_INT $ac_cv_sizeof_int
5907 _ACEOF
5908
5909
5910 # The cast to long int works around a bug in the HP C Compiler
5911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913 # This bug is HP SR number 8606223364.
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5915 $as_echo_n "checking size of long... " >&6; }
5916 if test "${ac_cv_sizeof_long+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5920
5921 else
5922 if test "$ac_cv_type_long" = yes; then
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { as_fn_set_status 77
5926 as_fn_error "cannot compute sizeof (long)
5927 See \`config.log' for more details." "$LINENO" 5; }; }
5928 else
5929 ac_cv_sizeof_long=0
5930 fi
5931 fi
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5935 $as_echo "$ac_cv_sizeof_long" >&6; }
5936
5937
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define SIZEOF_LONG $ac_cv_sizeof_long
5941 _ACEOF
5942
5943
5944 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5945 if test "x$ac_cv_type_long_long" = x""yes; then :
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define HAVE_LONG_LONG 1
5949 _ACEOF
5950
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5956 $as_echo_n "checking size of long long... " >&6; }
5957 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5961
5962 else
5963 if test "$ac_cv_type_long_long" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 { as_fn_set_status 77
5967 as_fn_error "cannot compute sizeof (long long)
5968 See \`config.log' for more details." "$LINENO" 5; }; }
5969 else
5970 ac_cv_sizeof_long_long=0
5971 fi
5972 fi
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5976 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5977
5978
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5982 _ACEOF
5983
5984
5985 fi
5986
5987 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5988 if test "x$ac_cv_type___int64" = x""yes; then :
5989
5990 cat >>confdefs.h <<_ACEOF
5991 #define HAVE___INT64 1
5992 _ACEOF
5993
5994 # The cast to long int works around a bug in the HP C Compiler
5995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5997 # This bug is HP SR number 8606223364.
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5999 $as_echo_n "checking size of __int64... " >&6; }
6000 if test "${ac_cv_sizeof___int64+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6004
6005 else
6006 if test "$ac_cv_type___int64" = yes; then
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009 { as_fn_set_status 77
6010 as_fn_error "cannot compute sizeof (__int64)
6011 See \`config.log' for more details." "$LINENO" 5; }; }
6012 else
6013 ac_cv_sizeof___int64=0
6014 fi
6015 fi
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6019 $as_echo "$ac_cv_sizeof___int64" >&6; }
6020
6021
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6025 _ACEOF
6026
6027
6028 fi
6029
6030 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6031 case $ac_cv_c_int8_t in #(
6032 no|yes) ;; #(
6033 *)
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define int8_t $ac_cv_c_int8_t
6037 _ACEOF
6038 ;;
6039 esac
6040
6041 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6042 case $ac_cv_c_int16_t in #(
6043 no|yes) ;; #(
6044 *)
6045
6046 cat >>confdefs.h <<_ACEOF
6047 #define int16_t $ac_cv_c_int16_t
6048 _ACEOF
6049 ;;
6050 esac
6051
6052 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6053 case $ac_cv_c_int32_t in #(
6054 no|yes) ;; #(
6055 *)
6056
6057 cat >>confdefs.h <<_ACEOF
6058 #define int32_t $ac_cv_c_int32_t
6059 _ACEOF
6060 ;;
6061 esac
6062
6063 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6064 case $ac_cv_c_int64_t in #(
6065 no|yes) ;; #(
6066 *)
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define int64_t $ac_cv_c_int64_t
6070 _ACEOF
6071 ;;
6072 esac
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6076 $as_echo_n "checking for long long int... " >&6; }
6077 if test "${ac_cv_type_long_long_int+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082
6083 /* For now, do not test the preprocessor; as of 2007 there are too many
6084 implementations with broken preprocessors. Perhaps this can
6085 be revisited in 2012. In the meantime, code should not expect
6086 #if to work with literals wider than 32 bits. */
6087 /* Test literals. */
6088 long long int ll = 9223372036854775807ll;
6089 long long int nll = -9223372036854775807LL;
6090 unsigned long long int ull = 18446744073709551615ULL;
6091 /* Test constant expressions. */
6092 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6093 ? 1 : -1)];
6094 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6095 ? 1 : -1)];
6096 int i = 63;
6097 int
6098 main ()
6099 {
6100 /* Test availability of runtime routines for shift and division. */
6101 long long int llmax = 9223372036854775807ll;
6102 unsigned long long int ullmax = 18446744073709551615ull;
6103 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6104 | (llmax / ll) | (llmax % ll)
6105 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6106 | (ullmax / ull) | (ullmax % ull));
6107 ;
6108 return 0;
6109 }
6110
6111 _ACEOF
6112 if ac_fn_c_try_link "$LINENO"; then :
6113 if test "$cross_compiling" = yes; then :
6114 ac_cv_type_long_long_int=yes
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 #include <limits.h>
6119 #ifndef LLONG_MAX
6120 # define HALF \
6121 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6122 # define LLONG_MAX (HALF - 1 + HALF)
6123 #endif
6124 int
6125 main ()
6126 {
6127 long long int n = 1;
6128 int i;
6129 for (i = 0; ; i++)
6130 {
6131 long long int m = n << i;
6132 if (m >> i != n)
6133 return 1;
6134 if (LLONG_MAX / 2 < m)
6135 break;
6136 }
6137 return 0;
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_run "$LINENO"; then :
6143 ac_cv_type_long_long_int=yes
6144 else
6145 ac_cv_type_long_long_int=no
6146 fi
6147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6148 conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 fi
6150
6151 else
6152 ac_cv_type_long_long_int=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6158 $as_echo "$ac_cv_type_long_long_int" >&6; }
6159 if test $ac_cv_type_long_long_int = yes; then
6160
6161 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162
6163 fi
6164
6165
6166
6167 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6168 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6169
6170 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6171
6172 else
6173 test $ac_cv_type_long_long_int = yes \
6174 && ac_type='long long int' \
6175 || ac_type='long int'
6176
6177 cat >>confdefs.h <<_ACEOF
6178 #define intmax_t $ac_type
6179 _ACEOF
6180
6181 fi
6182
6183
6184
6185 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6186 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6187
6188 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6189
6190 else
6191 for ac_type in 'int' 'long int' 'long long int'; do
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 int
6196 main ()
6197 {
6198 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6199 test_array [0] = 0
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206
6207 cat >>confdefs.h <<_ACEOF
6208 #define intptr_t $ac_type
6209 _ACEOF
6210
6211 ac_type=
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 test -z "$ac_type" && break
6215 done
6216 fi
6217
6218
6219 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6220 case $ac_cv_c_uint8_t in #(
6221 no|yes) ;; #(
6222 *)
6223
6224 $as_echo "#define _UINT8_T 1" >>confdefs.h
6225
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint8_t $ac_cv_c_uint8_t
6229 _ACEOF
6230 ;;
6231 esac
6232
6233 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6234 case $ac_cv_c_uint16_t in #(
6235 no|yes) ;; #(
6236 *)
6237
6238
6239 cat >>confdefs.h <<_ACEOF
6240 #define uint16_t $ac_cv_c_uint16_t
6241 _ACEOF
6242 ;;
6243 esac
6244
6245 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6246 case $ac_cv_c_uint32_t in #(
6247 no|yes) ;; #(
6248 *)
6249
6250 $as_echo "#define _UINT32_T 1" >>confdefs.h
6251
6252
6253 cat >>confdefs.h <<_ACEOF
6254 #define uint32_t $ac_cv_c_uint32_t
6255 _ACEOF
6256 ;;
6257 esac
6258
6259 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6260 case $ac_cv_c_uint64_t in #(
6261 no|yes) ;; #(
6262 *)
6263
6264 $as_echo "#define _UINT64_T 1" >>confdefs.h
6265
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define uint64_t $ac_cv_c_uint64_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281
6282 /* For now, do not test the preprocessor; as of 2007 there are too many
6283 implementations with broken preprocessors. Perhaps this can
6284 be revisited in 2012. In the meantime, code should not expect
6285 #if to work with literals wider than 32 bits. */
6286 /* Test literals. */
6287 long long int ll = 9223372036854775807ll;
6288 long long int nll = -9223372036854775807LL;
6289 unsigned long long int ull = 18446744073709551615ULL;
6290 /* Test constant expressions. */
6291 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6292 ? 1 : -1)];
6293 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6294 ? 1 : -1)];
6295 int i = 63;
6296 int
6297 main ()
6298 {
6299 /* Test availability of runtime routines for shift and division. */
6300 long long int llmax = 9223372036854775807ll;
6301 unsigned long long int ullmax = 18446744073709551615ull;
6302 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6303 | (llmax / ll) | (llmax % ll)
6304 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6305 | (ullmax / ull) | (ullmax % ull));
6306 ;
6307 return 0;
6308 }
6309
6310 _ACEOF
6311 if ac_fn_c_try_link "$LINENO"; then :
6312 ac_cv_type_unsigned_long_long_int=yes
6313 else
6314 ac_cv_type_unsigned_long_long_int=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6320 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6321 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322
6323 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324
6325 fi
6326
6327
6328
6329 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6330 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6331
6332 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6333
6334 else
6335 test $ac_cv_type_unsigned_long_long_int = yes \
6336 && ac_type='unsigned long long int' \
6337 || ac_type='unsigned long int'
6338
6339 cat >>confdefs.h <<_ACEOF
6340 #define uintmax_t $ac_type
6341 _ACEOF
6342
6343 fi
6344
6345
6346
6347 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6348 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6349
6350 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6351
6352 else
6353 for ac_type in 'unsigned int' 'unsigned long int' \
6354 'unsigned long long int'; do
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 int
6359 main ()
6360 {
6361 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6362 test_array [0] = 0
6363
6364 ;
6365 return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369
6370 cat >>confdefs.h <<_ACEOF
6371 #define uintptr_t $ac_type
6372 _ACEOF
6373
6374 ac_type=
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 test -z "$ac_type" && break
6378 done
6379 fi
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 # ---------------------
6396 # Warnings and checking
6397 # ---------------------
6398
6399 # Check $CC warning features (if it's GCC).
6400 # We want to use -pedantic, but we don't want warnings about
6401 # * 'long long'
6402 # * variadic macros
6403 # * overlong strings
6404 # * C++11 narrowing conversions in { }
6405 # So, we only use -pedantic if we can disable those warnings.
6406
6407 loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6410 # Do the check with the no- prefix removed since gcc silently
6411 # accepts any -Wno-* option on purpose
6412 case $real_option in
6413 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6414 *) option=$real_option ;;
6415 esac
6416 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6419 $as_echo_n "checking whether $CC supports $option... " >&6; }
6420 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 CFLAGS="$option"
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426
6427 int
6428 main ()
6429 {
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 eval "$as_acx_Woption=yes"
6437 else
6438 eval "$as_acx_Woption=no"
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
6442 fi
6443 eval ac_res=\$$as_acx_Woption
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6447 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6448 fi
6449 done
6450 CFLAGS="$save_CFLAGS"
6451
6452 c_loose_warn=
6453 save_CFLAGS="$CFLAGS"
6454 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6455 # Do the check with the no- prefix removed since gcc silently
6456 # accepts any -Wno-* option on purpose
6457 case $real_option in
6458 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6459 *) option=$real_option ;;
6460 esac
6461 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6464 $as_echo_n "checking whether $CC supports $option... " >&6; }
6465 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 CFLAGS="$option"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_acx_Woption=yes"
6482 else
6483 eval "$as_acx_Woption=no"
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487 fi
6488 eval ac_res=\$$as_acx_Woption
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6490 $as_echo "$ac_res" >&6; }
6491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6492 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6493 fi
6494 done
6495 CFLAGS="$save_CFLAGS"
6496
6497 strict_warn=
6498 save_CFLAGS="$CFLAGS"
6499 for real_option in -Wmissing-format-attribute; do
6500 # Do the check with the no- prefix removed since gcc silently
6501 # accepts any -Wno-* option on purpose
6502 case $real_option in
6503 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6504 *) option=$real_option ;;
6505 esac
6506 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6509 $as_echo_n "checking whether $CC supports $option... " >&6; }
6510 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 CFLAGS="$option"
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 eval "$as_acx_Woption=yes"
6527 else
6528 eval "$as_acx_Woption=no"
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531
6532 fi
6533 eval ac_res=\$$as_acx_Woption
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6537 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 fi
6539 done
6540 CFLAGS="$save_CFLAGS"
6541
6542 c_strict_warn=
6543 save_CFLAGS="$CFLAGS"
6544 for real_option in -Wold-style-definition -Wc++-compat; do
6545 # Do the check with the no- prefix removed since gcc silently
6546 # accepts any -Wno-* option on purpose
6547 case $real_option in
6548 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6549 *) option=$real_option ;;
6550 esac
6551 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6554 $as_echo_n "checking whether $CC supports $option... " >&6; }
6555 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 CFLAGS="$option"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561
6562 int
6563 main ()
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 eval "$as_acx_Woption=yes"
6572 else
6573 eval "$as_acx_Woption=no"
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576
6577 fi
6578 eval ac_res=\$$as_acx_Woption
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6580 $as_echo "$ac_res" >&6; }
6581 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6582 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 fi
6584 done
6585 CFLAGS="$save_CFLAGS"
6586
6587 # Do the check with the no- prefix removed from the warning options
6588 # since gcc silently accepts any -Wno-* option on purpose
6589 if test "$GCC" = yes; then :
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6591 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6592 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 save_CFLAGS="$CFLAGS"
6596 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599
6600 int
6601 main ()
6602 {
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6610 else
6611 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 CFLAGS="$save_CFLAGS"
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6617 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6618 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6619 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6620 fi
6621
6622 fi
6623
6624 # Check whether --enable-werror-always was given.
6625 if test "${enable_werror_always+set}" = set; then :
6626 enableval=$enable_werror_always;
6627 else
6628 enable_werror_always=no
6629 fi
6630
6631 if test $enable_werror_always = yes; then :
6632 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6633 fi
6634
6635
6636
6637 # The above macros do nothing if the compiler is not GCC. However, the
6638 # Makefile has more goo to add other flags, so these variables are used
6639 # to enable warnings only for GCC.
6640 warn_cflags=
6641 warn_cxxflags=
6642 if test "x$GCC" = "xyes"; then
6643 warn_cflags='$(GCC_WARN_CFLAGS)'
6644 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6645 fi
6646
6647
6648
6649 # Disable exceptions and RTTI if building with g++
6650 noexception_flags=
6651 save_CFLAGS="$CFLAGS"
6652 for real_option in -fno-exceptions -fno-rtti; do
6653 # Do the check with the no- prefix removed since gcc silently
6654 # accepts any -Wno-* option on purpose
6655 case $real_option in
6656 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6657 *) option=$real_option ;;
6658 esac
6659 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6662 $as_echo_n "checking whether $CC supports $option... " >&6; }
6663 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 CFLAGS="$option"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669
6670 int
6671 main ()
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 eval "$as_acx_Woption=yes"
6680 else
6681 eval "$as_acx_Woption=no"
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684
6685 fi
6686 eval ac_res=\$$as_acx_Woption
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688 $as_echo "$ac_res" >&6; }
6689 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6690 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 fi
6692 done
6693 CFLAGS="$save_CFLAGS"
6694
6695
6696 # Enable expensive internal checks
6697 is_release=
6698 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6699 is_release=yes
6700 fi
6701
6702 # Check whether --enable-checking was given.
6703 if test "${enable_checking+set}" = set; then :
6704 enableval=$enable_checking; ac_checking_flags="${enableval}"
6705 else
6706
6707 # Determine the default checks.
6708 if test x$is_release = x ; then
6709 ac_checking_flags=yes
6710 else
6711 ac_checking_flags=release
6712 fi
6713 fi
6714
6715 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6716 for check in release $ac_checking_flags
6717 do
6718 case $check in
6719 # these set all the flags to specific states
6720 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6721 ac_fold_checking= ; ac_gc_checking=1 ;
6722 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6723 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6724 ac_tree_checking=1 ; ac_valgrind_checking= ;
6725 ac_types_checking=1 ;;
6726 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6727 ac_fold_checking= ; ac_gc_checking= ;
6728 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6729 ac_rtlflag_checking= ; ac_runtime_checking= ;
6730 ac_tree_checking= ; ac_valgrind_checking= ;
6731 ac_types_checking= ;;
6732 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6733 ac_fold_checking=1 ; ac_gc_checking=1 ;
6734 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6735 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6736 ac_tree_checking=1 ; ac_valgrind_checking= ;
6737 ac_types_checking=1 ;;
6738 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6739 ac_fold_checking= ; ac_gc_checking= ;
6740 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6741 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6742 ac_tree_checking= ; ac_valgrind_checking= ;
6743 ac_types_checking= ;;
6744 # these enable particular checks
6745 assert) ac_assert_checking=1 ;;
6746 df) ac_df_checking=1 ;;
6747 fold) ac_fold_checking=1 ;;
6748 gc) ac_gc_checking=1 ;;
6749 gcac) ac_gc_always_collect=1 ;;
6750 gimple) ac_gimple_checking=1 ;;
6751 misc) ac_checking=1 ;;
6752 rtl) ac_rtl_checking=1 ;;
6753 rtlflag) ac_rtlflag_checking=1 ;;
6754 runtime) ac_runtime_checking=1 ;;
6755 tree) ac_tree_checking=1 ;;
6756 types) ac_types_checking=1 ;;
6757 valgrind) ac_valgrind_checking=1 ;;
6758 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6759 esac
6760 done
6761 IFS="$ac_save_IFS"
6762
6763 nocommon_flag=""
6764 if test x$ac_checking != x ; then
6765
6766 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767
6768 nocommon_flag=-fno-common
6769 fi
6770
6771 if test x$ac_df_checking != x ; then
6772
6773 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6774
6775 fi
6776 if test x$ac_assert_checking != x ; then
6777
6778 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6779
6780 fi
6781 if test x$ac_gimple_checking != x ; then
6782
6783 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6784
6785 fi
6786
6787 if test x$ac_runtime_checking != x ; then
6788
6789 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6790
6791 fi
6792 if test x$ac_tree_checking != x ; then
6793
6794 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795
6796 TREEBROWSER=tree-browser.o
6797 fi
6798 if test x$ac_types_checking != x ; then
6799
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6801
6802 fi
6803
6804 if test x$ac_rtl_checking != x ; then
6805
6806 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6807
6808 fi
6809 if test x$ac_rtlflag_checking != x ; then
6810
6811 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6812
6813 fi
6814 if test x$ac_gc_checking != x ; then
6815
6816 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6817
6818 fi
6819 if test x$ac_gc_always_collect != x ; then
6820
6821 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6822
6823 fi
6824 if test x$ac_fold_checking != x ; then
6825
6826 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6827
6828 fi
6829 valgrind_path_defines=
6830 valgrind_command=
6831
6832 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6833 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6834 have_valgrind_h=yes
6835 else
6836 have_valgrind_h=no
6837 fi
6838
6839
6840
6841 if test x$ac_valgrind_checking != x ; then
6842 # It is certainly possible that there's valgrind but no valgrind.h.
6843 # GCC relies on making annotations so we must have both.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6845 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <valgrind/memcheck.h>
6849 #ifndef VALGRIND_DISCARD
6850 #error VALGRIND_DISCARD not defined
6851 #endif
6852 _ACEOF
6853 if ac_fn_c_try_cpp "$LINENO"; then :
6854 gcc_cv_header_valgrind_memcheck_h=yes
6855 else
6856 gcc_cv_header_valgrind_memcheck_h=no
6857 fi
6858 rm -f conftest.err conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6860 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6862 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <memcheck.h>
6866 #ifndef VALGRIND_DISCARD
6867 #error VALGRIND_DISCARD not defined
6868 #endif
6869 _ACEOF
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6871 gcc_cv_header_memcheck_h=yes
6872 else
6873 gcc_cv_header_memcheck_h=no
6874 fi
6875 rm -f conftest.err conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6877 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6878
6879 # Prepare PATH_SEPARATOR.
6880 # The user is always right.
6881 if test "${PATH_SEPARATOR+set}" != set; then
6882 echo "#! /bin/sh" >conf$$.sh
6883 echo "exit 0" >>conf$$.sh
6884 chmod +x conf$$.sh
6885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6886 PATH_SEPARATOR=';'
6887 else
6888 PATH_SEPARATOR=:
6889 fi
6890 rm -f conf$$.sh
6891 fi
6892
6893 # Find out how to test for executable files. Don't use a zero-byte file,
6894 # as systems may use methods other than mode bits to determine executability.
6895 cat >conf$$.file <<_ASEOF
6896 #! /bin/sh
6897 exit 0
6898 _ASEOF
6899 chmod +x conf$$.file
6900 if test -x conf$$.file >/dev/null 2>&1; then
6901 ac_executable_p="test -x"
6902 else
6903 ac_executable_p="test -f"
6904 fi
6905 rm -f conf$$.file
6906
6907 # Extract the first word of "valgrind", so it can be a program name with args.
6908 set dummy valgrind; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 case "$valgrind_path" in
6915 [\\/]* | ?:[\\/]*)
6916 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6917 ;;
6918 *)
6919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6920 for ac_dir in $PATH; do
6921 IFS="$ac_save_IFS"
6922 test -z "$ac_dir" && ac_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6925 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6926 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6927 break 2
6928 fi
6929 fi
6930 done
6931 done
6932 IFS="$ac_save_IFS"
6933 ;;
6934 esac
6935 fi
6936 valgrind_path="$ac_cv_path_valgrind_path"
6937 if test -n "$valgrind_path"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6939 $as_echo "$valgrind_path" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945 if test "x$valgrind_path" = "x" \
6946 || (test $have_valgrind_h = no \
6947 && test $gcc_cv_header_memcheck_h = no \
6948 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6949 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6950 fi
6951 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6952 valgrind_command="$valgrind_path -q"
6953
6954 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6955
6956 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6957
6958 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6959
6960 fi
6961 if test $gcc_cv_header_memcheck_h = yes; then
6962
6963 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6964
6965 fi
6966 fi
6967
6968
6969
6970 # Enable code coverage collection
6971 # Check whether --enable-coverage was given.
6972 if test "${enable_coverage+set}" = set; then :
6973 enableval=$enable_coverage; case "${enableval}" in
6974 yes|noopt)
6975 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6976 ;;
6977 opt)
6978 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6979 ;;
6980 no)
6981 # a.k.a. --disable-coverage
6982 coverage_flags=""
6983 ;;
6984 *)
6985 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6986 ;;
6987 esac
6988 else
6989 coverage_flags=""
6990 fi
6991
6992
6993
6994 # Check whether --enable-gather-detailed-mem-stats was given.
6995 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6996 enableval=$enable_gather_detailed_mem_stats;
6997 else
6998 enable_gather_detailed_mem_stats=no
6999 fi
7000
7001 if test x$enable_gather_detailed_mem_stats = xyes ; then
7002
7003 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7004
7005 fi
7006
7007 # -------------------------------
7008 # Miscenalleous configure options
7009 # -------------------------------
7010
7011 # See if we are building gcc with C++.
7012 # Check whether --enable-build-with-cxx was given.
7013 if test "${enable_build_with_cxx+set}" = set; then :
7014 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7015 else
7016 ENABLE_BUILD_WITH_CXX=no
7017 fi
7018
7019
7020 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7021
7022 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7023
7024 fi
7025
7026 # With stabs
7027
7028 # Check whether --with-stabs was given.
7029 if test "${with_stabs+set}" = set; then :
7030 withval=$with_stabs; stabs="$with_stabs"
7031 else
7032 stabs=no
7033 fi
7034
7035
7036 # Determine whether or not multilibs are enabled.
7037 # Check whether --enable-multilib was given.
7038 if test "${enable_multilib+set}" = set; then :
7039 enableval=$enable_multilib;
7040 else
7041 enable_multilib=yes
7042 fi
7043
7044
7045
7046 # Enable __cxa_atexit for C++.
7047 # Check whether --enable-__cxa_atexit was given.
7048 if test "${enable___cxa_atexit+set}" = set; then :
7049 enableval=$enable___cxa_atexit;
7050 fi
7051
7052
7053 # Enable C extension for decimal float if target supports it.
7054
7055 # Check whether --enable-decimal-float was given.
7056 if test "${enable_decimal_float+set}" = set; then :
7057 enableval=$enable_decimal_float;
7058 case $enable_decimal_float in
7059 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7060 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7061 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7062 esac
7063
7064 else
7065
7066 case $target in
7067 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7068 i?86*-*-mingw* | x86_64*-*-mingw* | \
7069 i?86*-*-cygwin*)
7070 enable_decimal_float=yes
7071 ;;
7072 *)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7075 enable_decimal_float=no
7076 ;;
7077 esac
7078
7079 fi
7080
7081
7082 # x86's use BID format instead of DPD
7083 case x$enable_decimal_float in
7084 xyes)
7085 case $target in
7086 i?86*-*-* | x86_64*-*-*)
7087 enable_decimal_float=bid
7088 ;;
7089 *)
7090 enable_decimal_float=dpd
7091 ;;
7092 esac
7093 default_decimal_float=$enable_decimal_float
7094 ;;
7095 xno)
7096 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7097 # dependency on libdecnumber.
7098 default_decimal_float=dpd
7099 ;;
7100 esac
7101
7102
7103
7104
7105 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7106
7107 cat >>confdefs.h <<_ACEOF
7108 #define ENABLE_DECIMAL_FLOAT $dfp
7109 _ACEOF
7110
7111
7112 # Use default_decimal_float for dependency.
7113 enable_decimal_float=$default_decimal_float
7114
7115 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7116
7117 cat >>confdefs.h <<_ACEOF
7118 #define ENABLE_DECIMAL_BID_FORMAT $bid
7119 _ACEOF
7120
7121
7122 # Enable C extension for fixed-point arithmetic.
7123 # Check whether --enable-fixed-point was given.
7124 if test "${enable_fixed_point+set}" = set; then :
7125 enableval=$enable_fixed_point;
7126 else
7127
7128 case $target in
7129 arm*)
7130 enable_fixed_point=yes
7131 ;;
7132
7133 mips*-*-*)
7134 enable_fixed_point=yes
7135 ;;
7136 *)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7138 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7139 enable_fixed_point=no
7140 ;;
7141 esac
7142
7143 fi
7144
7145
7146
7147 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7148
7149 cat >>confdefs.h <<_ACEOF
7150 #define ENABLE_FIXED_POINT $fixedpoint
7151 _ACEOF
7152
7153
7154 # Enable threads
7155 # Pass with no value to take the default
7156 # Pass with a value to specify a thread package
7157 # Check whether --enable-threads was given.
7158 if test "${enable_threads+set}" = set; then :
7159 enableval=$enable_threads;
7160 else
7161 enable_threads=''
7162 fi
7163
7164
7165 # Check whether --enable-tls was given.
7166 if test "${enable_tls+set}" = set; then :
7167 enableval=$enable_tls;
7168 case $enable_tls in
7169 yes | no) ;;
7170 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7171 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7172 esac
7173
7174 else
7175 enable_tls=''
7176 fi
7177
7178
7179 # Check whether --enable-objc-gc was given.
7180 if test "${enable_objc_gc+set}" = set; then :
7181 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7182 objc_boehm_gc=''
7183 else
7184 objc_boehm_gc=1
7185 fi
7186 else
7187 objc_boehm_gc=''
7188 fi
7189
7190
7191
7192 # Check whether --with-dwarf2 was given.
7193 if test "${with_dwarf2+set}" = set; then :
7194 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7195 else
7196 dwarf2=no
7197 fi
7198
7199
7200 # Check whether --enable-shared was given.
7201 if test "${enable_shared+set}" = set; then :
7202 enableval=$enable_shared;
7203 case $enable_shared in
7204 yes | no) ;;
7205 *)
7206 enable_shared=no
7207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7208 for pkg in $enableval; do
7209 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7210 enable_shared=yes
7211 fi
7212 done
7213 IFS="$ac_save_ifs"
7214 ;;
7215 esac
7216
7217 else
7218 enable_shared=yes
7219 fi
7220
7221
7222
7223
7224 # Check whether --with-native-system-header-dir was given.
7225 if test "${with_native_system_header_dir+set}" = set; then :
7226 withval=$with_native_system_header_dir;
7227 case ${with_native_system_header_dir} in
7228 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7229 /* | [A-Za-z]:[\\/]*) ;;
7230 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7231 esac
7232 configured_native_system_header_dir="${withval}"
7233
7234 else
7235 configured_native_system_header_dir=
7236 fi
7237
7238
7239
7240 # Check whether --with-build-sysroot was given.
7241 if test "${with_build_sysroot+set}" = set; then :
7242 withval=$with_build_sysroot; if test x"$withval" != x ; then
7243 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7244 fi
7245 else
7246 SYSROOT_CFLAGS_FOR_TARGET=
7247 fi
7248
7249
7250
7251
7252 # Check whether --with-sysroot was given.
7253 if test "${with_sysroot+set}" = set; then :
7254 withval=$with_sysroot;
7255 case ${with_sysroot} in
7256 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7257 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7258 esac
7259
7260 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7261 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7262
7263 if test "x$prefix" = xNONE; then
7264 test_prefix=/usr/local
7265 else
7266 test_prefix=$prefix
7267 fi
7268 if test "x$exec_prefix" = xNONE; then
7269 test_exec_prefix=$test_prefix
7270 else
7271 test_exec_prefix=$exec_prefix
7272 fi
7273 case ${TARGET_SYSTEM_ROOT} in
7274 "${test_prefix}"|"${test_prefix}/"*|\
7275 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7276 '${prefix}'|'${prefix}/'*|\
7277 '${exec_prefix}'|'${exec_prefix}/'*)
7278 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7279 TARGET_SYSTEM_ROOT_DEFINE="$t"
7280 ;;
7281 esac
7282
7283 else
7284
7285 TARGET_SYSTEM_ROOT=
7286 TARGET_SYSTEM_ROOT_DEFINE=
7287 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7288
7289 fi
7290
7291
7292
7293
7294
7295
7296 # Check whether --with-specs was given.
7297 if test "${with_specs+set}" = set; then :
7298 withval=$with_specs; CONFIGURE_SPECS=$withval
7299 else
7300 CONFIGURE_SPECS=
7301
7302 fi
7303
7304
7305
7306
7307
7308 # Check whether --with-pkgversion was given.
7309 if test "${with_pkgversion+set}" = set; then :
7310 withval=$with_pkgversion; case "$withval" in
7311 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7312 no) PKGVERSION= ;;
7313 *) PKGVERSION="($withval) " ;;
7314 esac
7315 else
7316 PKGVERSION="(GCC) "
7317
7318 fi
7319
7320
7321
7322
7323
7324 # Check whether --with-bugurl was given.
7325 if test "${with_bugurl+set}" = set; then :
7326 withval=$with_bugurl; case "$withval" in
7327 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7328 no) BUGURL=
7329 ;;
7330 *) BUGURL="$withval"
7331 ;;
7332 esac
7333 else
7334 BUGURL="http://gcc.gnu.org/bugs.html"
7335
7336 fi
7337
7338 case ${BUGURL} in
7339 "")
7340 REPORT_BUGS_TO=
7341 REPORT_BUGS_TEXI=
7342 ;;
7343 *)
7344 REPORT_BUGS_TO="<$BUGURL>"
7345 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7346 ;;
7347 esac;
7348
7349
7350
7351
7352 # Sanity check enable_languages in case someone does not run the toplevel
7353 # configure # script.
7354 # Check whether --enable-languages was given.
7355 if test "${enable_languages+set}" = set; then :
7356 enableval=$enable_languages; case ,${enable_languages}, in
7357 ,,|,yes,)
7358 # go safe -- we cannot be much sure without the toplevel
7359 # configure's
7360 # analysis of which target libs are present and usable
7361 enable_languages=c
7362 ;;
7363 *,all,*)
7364 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7365 ;;
7366 *,c,*)
7367 ;;
7368 *)
7369 enable_languages=c,${enable_languages}
7370 ;;
7371 esac
7372 else
7373 enable_languages=c
7374 fi
7375
7376
7377
7378 # Check whether --with-multilib-list was given.
7379 if test "${with_multilib_list+set}" = set; then :
7380 withval=$with_multilib_list; :
7381 else
7382 with_multilib_list=default
7383 fi
7384
7385
7386 # -------------------------
7387 # Checks for other programs
7388 # -------------------------
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7391 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7392 set x ${MAKE-make}
7393 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7394 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 cat >conftest.make <<\_ACEOF
7398 SHELL = /bin/sh
7399 all:
7400 @echo '@@@%%%=$(MAKE)=@@@%%%'
7401 _ACEOF
7402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7404 *@@@%%%=?*=@@@%%%*)
7405 eval ac_cv_prog_make_${ac_make}_set=yes;;
7406 *)
7407 eval ac_cv_prog_make_${ac_make}_set=no;;
7408 esac
7409 rm -f conftest.make
7410 fi
7411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7413 $as_echo "yes" >&6; }
7414 SET_MAKE=
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 SET_MAKE="MAKE=${MAKE-make}"
7419 fi
7420
7421
7422 # Find some useful tools
7423 for ac_prog in gawk mawk nawk awk
7424 do
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_AWK+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$AWK"; then
7433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_AWK="$ac_prog"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 AWK=$ac_cv_prog_AWK
7453 if test -n "$AWK"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7455 $as_echo "$AWK" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 test -n "$AWK" && break
7463 done
7464
7465 # We need awk to create options.c and options.h.
7466 # Bail out if it's missing.
7467 case ${AWK} in
7468 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7469 esac
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7472 $as_echo_n "checking whether ln -s works... " >&6; }
7473 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 rm -f conftestdata_t
7477 echo >conftestdata_f
7478 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7479 then
7480 gcc_cv_prog_LN_S="ln -s"
7481 else
7482 if ln conftestdata_f conftestdata_t 2>/dev/null
7483 then
7484 gcc_cv_prog_LN_S=ln
7485 else
7486 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7487 then
7488 gcc_cv_prog_LN_S="cp -p"
7489 else
7490 gcc_cv_prog_LN_S=cp
7491 fi
7492 fi
7493 fi
7494 rm -f conftestdata_f conftestdata_t
7495
7496 fi
7497 LN_S="$gcc_cv_prog_LN_S"
7498 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 $as_echo "yes" >&6; }
7501 else
7502 if test "$gcc_cv_prog_LN_S" = "ln"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7504 $as_echo "no, using ln" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7507 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7508 fi
7509 fi
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7512 $as_echo_n "checking whether ln works... " >&6; }
7513 if test "${acx_cv_prog_LN+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 rm -f conftestdata_t
7517 echo >conftestdata_f
7518 if ln conftestdata_f conftestdata_t 2>/dev/null
7519 then
7520 acx_cv_prog_LN=ln
7521 else
7522 acx_cv_prog_LN=no
7523 fi
7524 rm -f conftestdata_f conftestdata_t
7525
7526 fi
7527 if test $acx_cv_prog_LN = no; then
7528 LN="$LN_S"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7530 $as_echo "no, using $LN" >&6; }
7531 else
7532 LN="$acx_cv_prog_LN"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535 fi
7536
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$RANLIB"; then
7546 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 RANLIB=$ac_cv_prog_RANLIB
7566 if test -n "$RANLIB"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7568 $as_echo "$RANLIB" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_RANLIB"; then
7577 ac_ct_RANLIB=$RANLIB
7578 # Extract the first word of "ranlib", so it can be a program name with args.
7579 set dummy ranlib; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$ac_ct_RANLIB"; then
7586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_RANLIB="ranlib"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599 done
7600 done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7606 if test -n "$ac_ct_RANLIB"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7608 $as_echo "$ac_ct_RANLIB" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614 if test "x$ac_ct_RANLIB" = x; then
7615 RANLIB=":"
7616 else
7617 case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623 RANLIB=$ac_ct_RANLIB
7624 fi
7625 else
7626 RANLIB="$ac_cv_prog_RANLIB"
7627 fi
7628
7629 ranlib_flags=""
7630
7631
7632 # Find a good install program. We prefer a C program (faster),
7633 # so one script is as good as another. But avoid the broken or
7634 # incompatible versions:
7635 # SysV /etc/install, /usr/sbin/install
7636 # SunOS /usr/etc/install
7637 # IRIX /sbin/install
7638 # AIX /bin/install
7639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7641 # ./install, which can be erroneously created by make from ./install.sh.
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7643 $as_echo_n "checking for a BSD compatible install... " >&6; }
7644 if test -z "$INSTALL"; then
7645 if test "${ac_cv_path_install+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7649 for ac_dir in $PATH; do
7650 # Account for people who put trailing slashes in PATH elements.
7651 case "$ac_dir/" in
7652 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7653 *)
7654 # OSF1 and SCO ODT 3.0 have their own names for install.
7655 for ac_prog in ginstall scoinst install; do
7656 if test -f $ac_dir/$ac_prog; then
7657 if test $ac_prog = install &&
7658 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7659 # AIX install. It has an incompatible calling convention.
7660 # OSF/1 installbsd also uses dspmsg, but is usable.
7661 :
7662 else
7663 ac_cv_path_install="$ac_dir/$ac_prog -c"
7664 break 2
7665 fi
7666 fi
7667 done
7668 ;;
7669 esac
7670 done
7671 IFS="$ac_save_IFS"
7672
7673 fi
7674 if test "${ac_cv_path_install+set}" = set; then
7675 INSTALL="$ac_cv_path_install"
7676 else
7677 # As a last resort, use the slow shell script. We don't cache a
7678 # path for INSTALL within a source directory, because that will
7679 # break other packages using the cache if that directory is
7680 # removed, or if the path is relative.
7681 INSTALL="$ac_install_sh"
7682 fi
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7685 $as_echo "$INSTALL" >&6; }
7686
7687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7688 # It thinks the first close brace ends the variable substitution.
7689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7690
7691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7692
7693
7694 # See if cmp has --ignore-initial.
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7696 $as_echo_n "checking for cmp's capabilities... " >&6; }
7697 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 echo abfoo >t1
7701 echo cdfoo >t2
7702 gcc_cv_prog_cmp_skip=slowcompare
7703 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7704 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7705 :
7706 else
7707 gcc_cv_prog_cmp_skip=gnucompare
7708 fi
7709 fi
7710 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7711 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7712 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7713 :
7714 else
7715 gcc_cv_prog_cmp_skip=fastcompare
7716 fi
7717 fi
7718 fi
7719 rm t1 t2
7720
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7723 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7724 make_compare_target=$gcc_cv_prog_cmp_skip
7725
7726
7727
7728 # See if we have the mktemp command.
7729 # Extract the first word of "mktemp", so it can be a program name with args.
7730 set dummy mktemp; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 if test -n "$have_mktemp_command"; then
7737 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_have_mktemp_command="yes"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7755 fi
7756 fi
7757 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7758 if test -n "$have_mktemp_command"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7760 $as_echo "$have_mktemp_command" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767
7768 # See if makeinfo has been installed and is modern enough
7769 # that we can use it.
7770
7771 # Extract the first word of "makeinfo", so it can be a program name with args.
7772 set dummy makeinfo; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$MAKEINFO"; then
7779 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_prog_MAKEINFO="makeinfo"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 MAKEINFO=$ac_cv_prog_MAKEINFO
7799 if test -n "$MAKEINFO"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7801 $as_echo "$MAKEINFO" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 if test -n "$MAKEINFO"; then
7809 # Found it, now check the version.
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7811 $as_echo_n "checking for modern makeinfo... " >&6; }
7812 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7816 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7817
7818 case $ac_prog_version in
7819 '') gcc_cv_prog_makeinfo_modern=no;;
7820 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7821 *) gcc_cv_prog_makeinfo_modern=no;;
7822 esac
7823
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7826 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7827 else
7828 gcc_cv_prog_makeinfo_modern=no
7829 fi
7830 if test $gcc_cv_prog_makeinfo_modern = no; then
7831 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7832 fi
7833
7834 if test $gcc_cv_prog_makeinfo_modern = no; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7836 *** Makeinfo is missing or too old.
7837 *** Info documentation will not be built." >&5
7838 $as_echo "$as_me: WARNING:
7839 *** Makeinfo is missing or too old.
7840 *** Info documentation will not be built." >&2;}
7841 BUILD_INFO=
7842 else
7843 BUILD_INFO=info
7844 fi
7845
7846
7847 # Is pod2man recent enough to regenerate manpages?
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7849 $as_echo_n "checking for recent Pod::Man... " >&6; }
7850 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7852 $as_echo "yes" >&6; }
7853 GENERATED_MANPAGES=generated-manpages
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 GENERATED_MANPAGES=
7858 fi
7859
7860
7861 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7862
7863 # How about lex?
7864 for ac_prog in flex
7865 do
7866 # Extract the first word of "$ac_prog", so it can be a program name with args.
7867 set dummy $ac_prog; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_FLEX+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$FLEX"; then
7874 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_FLEX="$ac_prog"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 FLEX=$ac_cv_prog_FLEX
7894 if test -n "$FLEX"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7896 $as_echo "$FLEX" >&6; }
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903 test -n "$FLEX" && break
7904 done
7905 test -n "$FLEX" || FLEX="$MISSING flex"
7906
7907
7908 # Bison?
7909 for ac_prog in bison
7910 do
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_BISON+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$BISON"; then
7919 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_BISON="$ac_prog"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 BISON=$ac_cv_prog_BISON
7939 if test -n "$BISON"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7941 $as_echo "$BISON" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948 test -n "$BISON" && break
7949 done
7950 test -n "$BISON" || BISON="$MISSING bison"
7951
7952
7953 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7954 # check for build == host before using them.
7955
7956 # NM
7957 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7958 && test -d ../binutils ; then
7959 NM='${objdir}/../binutils/nm-new'
7960 else
7961 # Extract the first word of "nm", so it can be a program name with args.
7962 set dummy nm; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_NM+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$NM"; then
7969 ac_cv_prog_NM="$NM" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_NM="nm"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7987 fi
7988 fi
7989 NM=$ac_cv_prog_NM
7990 if test -n "$NM"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7992 $as_echo "$NM" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 fi
8000
8001 # AR
8002 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8003 && test -d ../binutils ; then
8004 AR='${objdir}/../binutils/ar'
8005 else
8006 # Extract the first word of "ar", so it can be a program name with args.
8007 set dummy ar; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if test "${ac_cv_prog_AR+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$AR"; then
8014 ac_cv_prog_AR="$AR" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_AR="ar"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8032 fi
8033 fi
8034 AR=$ac_cv_prog_AR
8035 if test -n "$AR"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8037 $as_echo "$AR" >&6; }
8038 else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044 fi
8045
8046
8047 # --------------------
8048 # Checks for C headers
8049 # --------------------
8050
8051 # Need to reject headers which give warnings, so that the -Werror bootstrap
8052 # works later. *sigh* This needs to come before all header checks.
8053
8054 ac_c_preproc_warn_flag=yes
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8057 $as_echo_n "checking for ANSI C header files... " >&6; }
8058 if test "${ac_cv_header_stdc+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #include <stdlib.h>
8064 #include <stdarg.h>
8065 #include <string.h>
8066 #include <float.h>
8067
8068 int
8069 main ()
8070 {
8071
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077 ac_cv_header_stdc=yes
8078 else
8079 ac_cv_header_stdc=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082
8083 if test $ac_cv_header_stdc = yes; then
8084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <string.h>
8088
8089 _ACEOF
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091 $EGREP "memchr" >/dev/null 2>&1; then :
8092
8093 else
8094 ac_cv_header_stdc=no
8095 fi
8096 rm -f conftest*
8097
8098 fi
8099
8100 if test $ac_cv_header_stdc = yes; then
8101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <stdlib.h>
8105
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108 $EGREP "free" >/dev/null 2>&1; then :
8109
8110 else
8111 ac_cv_header_stdc=no
8112 fi
8113 rm -f conftest*
8114
8115 fi
8116
8117 if test $ac_cv_header_stdc = yes; then
8118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8119 if test "$cross_compiling" = yes; then :
8120 :
8121 else
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <ctype.h>
8125 #include <stdlib.h>
8126 #if ((' ' & 0x0FF) == 0x020)
8127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8129 #else
8130 # define ISLOWER(c) \
8131 (('a' <= (c) && (c) <= 'i') \
8132 || ('j' <= (c) && (c) <= 'r') \
8133 || ('s' <= (c) && (c) <= 'z'))
8134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8135 #endif
8136
8137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8138 int
8139 main ()
8140 {
8141 int i;
8142 for (i = 0; i < 256; i++)
8143 if (XOR (islower (i), ISLOWER (i))
8144 || toupper (i) != TOUPPER (i))
8145 return 2;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_run "$LINENO"; then :
8150
8151 else
8152 ac_cv_header_stdc=no
8153 fi
8154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8155 conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157
8158 fi
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8161 $as_echo "$ac_cv_header_stdc" >&6; }
8162 if test $ac_cv_header_stdc = yes; then
8163
8164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8165
8166 fi
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8169 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8170 if test "${ac_cv_header_time+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <sys/types.h>
8176 #include <sys/time.h>
8177 #include <time.h>
8178
8179 int
8180 main ()
8181 {
8182 if ((struct tm *) 0)
8183 return 0;
8184 ;
8185 return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 ac_cv_header_time=yes
8190 else
8191 ac_cv_header_time=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8196 $as_echo "$ac_cv_header_time" >&6; }
8197 if test $ac_cv_header_time = yes; then
8198
8199 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8200
8201 fi
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8204 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8205 if test "${gcc_cv_header_string+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 #include <string.h>
8211 #include <strings.h>
8212 int
8213 main ()
8214 {
8215
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 gcc_cv_header_string=yes
8222 else
8223 gcc_cv_header_string=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8228 $as_echo "$gcc_cv_header_string" >&6; }
8229 if test $gcc_cv_header_string = yes; then
8230
8231 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8232
8233 fi
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8236 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8237 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8243 #include <sys/wait.h>
8244 #ifndef WEXITSTATUS
8245 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8246 #endif
8247 #ifndef WIFEXITED
8248 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8249 #endif
8250
8251 int
8252 main ()
8253 {
8254 int s;
8255 wait (&s);
8256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_compile "$LINENO"; then :
8262 ac_cv_header_sys_wait_h=yes
8263 else
8264 ac_cv_header_sys_wait_h=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8269 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8270 if test $ac_cv_header_sys_wait_h = yes; then
8271
8272 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8273
8274 fi
8275
8276 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8277 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8278 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8279 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8280 do :
8281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8283 eval as_val=\$$as_ac_Header
8284 if test "x$as_val" = x""yes; then :
8285 cat >>confdefs.h <<_ACEOF
8286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287 _ACEOF
8288
8289 fi
8290 done
8291
8292
8293 # Check for thread headers.
8294 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8295 if test "x$ac_cv_header_thread_h" = x""yes; then :
8296 have_thread_h=yes
8297 else
8298 have_thread_h=
8299 fi
8300
8301 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8302 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8303 have_pthread_h=yes
8304 else
8305 have_pthread_h=
8306 fi
8307
8308
8309 # These tests can't be done till we know if we have limits.h.
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8311 $as_echo_n "checking for CHAR_BIT... " >&6; }
8312 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #ifdef HAVE_LIMITS_H
8318 #include <limits.h>
8319 #endif
8320 #ifdef CHAR_BIT
8321 found
8322 #endif
8323 _ACEOF
8324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325 $EGREP "found" >/dev/null 2>&1; then :
8326 gcc_cv_decl_char_bit=yes
8327 else
8328 gcc_cv_decl_char_bit=no
8329 fi
8330 rm -f conftest*
8331
8332
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8335 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8336 if test $gcc_cv_decl_char_bit = no; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8338 $as_echo_n "checking number of bits in a byte... " >&6; }
8339 if test "${gcc_cv_c_nbby+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 i=8
8343 gcc_cv_c_nbby=
8344 while test $i -lt 65; do
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347
8348 int
8349 main ()
8350 {
8351 switch(0) {
8352 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8353 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8354 ; }
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 gcc_cv_c_nbby=$i; break
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 i=`expr $i + 1`
8364 done
8365 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8366
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8369 $as_echo "$gcc_cv_c_nbby" >&6; }
8370 if test $gcc_cv_c_nbby = failed; then
8371 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8372 else
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define CHAR_BIT $gcc_cv_c_nbby
8376 _ACEOF
8377
8378 fi
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8381 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8382 if test "${ac_cv_c_bigendian+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 ac_cv_c_bigendian=unknown
8386 # See if we're dealing with a universal compiler.
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #ifndef __APPLE_CC__
8390 not a universal capable compiler
8391 #endif
8392 typedef int dummy;
8393
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396
8397 # Check for potential -arch flags. It is not universal unless
8398 # there are at least two -arch flags with different values.
8399 ac_arch=
8400 ac_prev=
8401 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8402 if test -n "$ac_prev"; then
8403 case $ac_word in
8404 i?86 | x86_64 | ppc | ppc64)
8405 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8406 ac_arch=$ac_word
8407 else
8408 ac_cv_c_bigendian=universal
8409 break
8410 fi
8411 ;;
8412 esac
8413 ac_prev=
8414 elif test "x$ac_word" = "x-arch"; then
8415 ac_prev=arch
8416 fi
8417 done
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 if test $ac_cv_c_bigendian = unknown; then
8421 # See if sys/param.h defines the BYTE_ORDER macro.
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 #include <sys/types.h>
8425 #include <sys/param.h>
8426
8427 int
8428 main ()
8429 {
8430 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8431 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8432 && LITTLE_ENDIAN)
8433 bogus endian macros
8434 #endif
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_compile "$LINENO"; then :
8441 # It does; now see whether it defined to BIG_ENDIAN or not.
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <sys/types.h>
8445 #include <sys/param.h>
8446
8447 int
8448 main ()
8449 {
8450 #if BYTE_ORDER != BIG_ENDIAN
8451 not big endian
8452 #endif
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_compile "$LINENO"; then :
8459 ac_cv_c_bigendian=yes
8460 else
8461 ac_cv_c_bigendian=no
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 if test $ac_cv_c_bigendian = unknown; then
8468 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 #include <limits.h>
8472
8473 int
8474 main ()
8475 {
8476 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8477 bogus endian macros
8478 #endif
8479
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 # It does; now see whether it defined to _BIG_ENDIAN or not.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <limits.h>
8489
8490 int
8491 main ()
8492 {
8493 #ifndef _BIG_ENDIAN
8494 not big endian
8495 #endif
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_c_bigendian=yes
8503 else
8504 ac_cv_c_bigendian=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 fi
8510 if test $ac_cv_c_bigendian = unknown; then
8511 # Compile a test program.
8512 if test "$cross_compiling" = yes; then :
8513 # Try to guess by grepping values from an object file.
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 short int ascii_mm[] =
8517 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8518 short int ascii_ii[] =
8519 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8520 int use_ascii (int i) {
8521 return ascii_mm[i] + ascii_ii[i];
8522 }
8523 short int ebcdic_ii[] =
8524 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8525 short int ebcdic_mm[] =
8526 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8527 int use_ebcdic (int i) {
8528 return ebcdic_mm[i] + ebcdic_ii[i];
8529 }
8530 extern int foo;
8531
8532 int
8533 main ()
8534 {
8535 return use_ascii (foo) == use_ebcdic (foo);
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8542 ac_cv_c_bigendian=yes
8543 fi
8544 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8545 if test "$ac_cv_c_bigendian" = unknown; then
8546 ac_cv_c_bigendian=no
8547 else
8548 # finding both strings is unlikely to happen, but who knows?
8549 ac_cv_c_bigendian=unknown
8550 fi
8551 fi
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 int
8559 main ()
8560 {
8561
8562 /* Are we little or big endian? From Harbison&Steele. */
8563 union
8564 {
8565 long int l;
8566 char c[sizeof (long int)];
8567 } u;
8568 u.l = 1;
8569 return u.c[sizeof (long int) - 1] == 1;
8570
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_run "$LINENO"; then :
8576 ac_cv_c_bigendian=no
8577 else
8578 ac_cv_c_bigendian=yes
8579 fi
8580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8581 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 fi
8583
8584 fi
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8587 $as_echo "$ac_cv_c_bigendian" >&6; }
8588 case $ac_cv_c_bigendian in #(
8589 yes)
8590 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8591 ;; #(
8592 no)
8593 ;; #(
8594 universal)
8595
8596 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8597
8598 ;; #(
8599 *)
8600 as_fn_error "unknown endianness
8601 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8602 esac
8603
8604
8605 # ----------------------
8606 # Checks for C++ headers
8607 # ----------------------
8608
8609 ac_ext=cpp
8610 ac_cpp='$CXXCPP $CPPFLAGS'
8611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8615 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8616 if test -z "$CXXCPP"; then
8617 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 # Double quotes because CXXCPP needs to be expanded
8621 for CXXCPP in "$CXX -E" "/lib/cpp"
8622 do
8623 ac_preproc_ok=false
8624 for ac_cxx_preproc_warn_flag in '' yes
8625 do
8626 # Use a header file that comes with gcc, so configuring glibc
8627 # with a fresh cross-compiler works.
8628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 # <limits.h> exists even on freestanding compilers.
8630 # On the NeXT, cc -E runs the code through the compiler's parser,
8631 # not just through cpp. "Syntax error" is here to catch this case.
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8639 Syntax error
8640 _ACEOF
8641 if ac_fn_cxx_try_cpp "$LINENO"; then :
8642
8643 else
8644 # Broken: fails on valid input.
8645 continue
8646 fi
8647 rm -f conftest.err conftest.$ac_ext
8648
8649 # OK, works on sane cases. Now check whether nonexistent headers
8650 # can be detected and how.
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <ac_nonexistent.h>
8654 _ACEOF
8655 if ac_fn_cxx_try_cpp "$LINENO"; then :
8656 # Broken: success on invalid input.
8657 continue
8658 else
8659 # Passes both tests.
8660 ac_preproc_ok=:
8661 break
8662 fi
8663 rm -f conftest.err conftest.$ac_ext
8664
8665 done
8666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8667 rm -f conftest.err conftest.$ac_ext
8668 if $ac_preproc_ok; then :
8669 break
8670 fi
8671
8672 done
8673 ac_cv_prog_CXXCPP=$CXXCPP
8674
8675 fi
8676 CXXCPP=$ac_cv_prog_CXXCPP
8677 else
8678 ac_cv_prog_CXXCPP=$CXXCPP
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8681 $as_echo "$CXXCPP" >&6; }
8682 ac_preproc_ok=false
8683 for ac_cxx_preproc_warn_flag in '' yes
8684 do
8685 # Use a header file that comes with gcc, so configuring glibc
8686 # with a fresh cross-compiler works.
8687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688 # <limits.h> exists even on freestanding compilers.
8689 # On the NeXT, cc -E runs the code through the compiler's parser,
8690 # not just through cpp. "Syntax error" is here to catch this case.
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698 Syntax error
8699 _ACEOF
8700 if ac_fn_cxx_try_cpp "$LINENO"; then :
8701
8702 else
8703 # Broken: fails on valid input.
8704 continue
8705 fi
8706 rm -f conftest.err conftest.$ac_ext
8707
8708 # OK, works on sane cases. Now check whether nonexistent headers
8709 # can be detected and how.
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <ac_nonexistent.h>
8713 _ACEOF
8714 if ac_fn_cxx_try_cpp "$LINENO"; then :
8715 # Broken: success on invalid input.
8716 continue
8717 else
8718 # Passes both tests.
8719 ac_preproc_ok=:
8720 break
8721 fi
8722 rm -f conftest.err conftest.$ac_ext
8723
8724 done
8725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8726 rm -f conftest.err conftest.$ac_ext
8727 if $ac_preproc_ok; then :
8728
8729 else
8730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8733 See \`config.log' for more details." >&5
8734 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8735 See \`config.log' for more details." >&2;}; }
8736 fi
8737
8738 ac_ext=c
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744
8745 ac_ext=cpp
8746 ac_cpp='$CXXCPP $CPPFLAGS'
8747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8750
8751
8752
8753
8754 for ac_header in unordered_map
8755 do :
8756 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8757 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8758 cat >>confdefs.h <<_ACEOF
8759 #define HAVE_UNORDERED_MAP 1
8760 _ACEOF
8761
8762 fi
8763 done
8764
8765 for ac_header in tr1/unordered_map
8766 do :
8767 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8768 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_TR1_UNORDERED_MAP 1
8771 _ACEOF
8772
8773 fi
8774 done
8775
8776 for ac_header in ext/hash_map
8777 do :
8778 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8779 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_EXT_HASH_MAP 1
8782 _ACEOF
8783
8784 fi
8785 done
8786
8787
8788 ac_ext=c
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795 # --------
8796 # UNSORTED
8797 # --------
8798
8799
8800 # These libraries may be used by collect2.
8801 # We may need a special search path to get them linked.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8803 $as_echo_n "checking for collect2 libraries... " >&6; }
8804 if test "${gcc_cv_collect2_libs+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 save_LIBS="$LIBS"
8808 for libs in '' -lld -lmld \
8809 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8810 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8811 do
8812 LIBS="$libs"
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char ldopen ();
8823 int
8824 main ()
8825 {
8826 return ldopen ();
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 gcc_cv_collect2_libs="$libs"; break
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 done
8837 LIBS="$save_LIBS"
8838 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8841 $as_echo "$gcc_cv_collect2_libs" >&6; }
8842 case $gcc_cv_collect2_libs in
8843 "none required") ;;
8844 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8845 esac
8846
8847
8848 # When building Ada code on Alpha, we need exc_resume which is usually in
8849 # -lexc. So test for it.
8850 save_LIBS="$LIBS"
8851 LIBS=
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8853 $as_echo_n "checking for library containing exc_resume... " >&6; }
8854 if test "${ac_cv_search_exc_resume+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 ac_func_search_save_LIBS=$LIBS
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860
8861 /* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char exc_resume ();
8868 int
8869 main ()
8870 {
8871 return exc_resume ();
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 for ac_lib in '' exc; do
8877 if test -z "$ac_lib"; then
8878 ac_res="none required"
8879 else
8880 ac_res=-l$ac_lib
8881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8882 fi
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 ac_cv_search_exc_resume=$ac_res
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext
8888 if test "${ac_cv_search_exc_resume+set}" = set; then :
8889 break
8890 fi
8891 done
8892 if test "${ac_cv_search_exc_resume+set}" = set; then :
8893
8894 else
8895 ac_cv_search_exc_resume=no
8896 fi
8897 rm conftest.$ac_ext
8898 LIBS=$ac_func_search_save_LIBS
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8901 $as_echo "$ac_cv_search_exc_resume" >&6; }
8902 ac_res=$ac_cv_search_exc_resume
8903 if test "$ac_res" != no; then :
8904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8905
8906 fi
8907
8908 GNAT_LIBEXC="$LIBS"
8909 LIBS="$save_LIBS"
8910
8911
8912 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8913 save_LIBS="$LIBS"
8914 LIBS=
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8916 $as_echo_n "checking for library containing kstat_open... " >&6; }
8917 if test "${ac_cv_search_kstat_open+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 ac_func_search_save_LIBS=$LIBS
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923
8924 /* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 char kstat_open ();
8931 int
8932 main ()
8933 {
8934 return kstat_open ();
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 for ac_lib in '' kstat; do
8940 if test -z "$ac_lib"; then
8941 ac_res="none required"
8942 else
8943 ac_res=-l$ac_lib
8944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8945 fi
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 ac_cv_search_kstat_open=$ac_res
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext
8951 if test "${ac_cv_search_kstat_open+set}" = set; then :
8952 break
8953 fi
8954 done
8955 if test "${ac_cv_search_kstat_open+set}" = set; then :
8956
8957 else
8958 ac_cv_search_kstat_open=no
8959 fi
8960 rm conftest.$ac_ext
8961 LIBS=$ac_func_search_save_LIBS
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8964 $as_echo "$ac_cv_search_kstat_open" >&6; }
8965 ac_res=$ac_cv_search_kstat_open
8966 if test "$ac_res" != no; then :
8967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8968
8969 fi
8970
8971 EXTRA_GCC_LIBS="$LIBS"
8972 LIBS="$save_LIBS"
8973
8974
8975 # Some systems put ldexp and frexp in libm instead of libc; assume
8976 # they're both in the same place. jcf-dump needs them.
8977 save_LIBS="$LIBS"
8978 LIBS=
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8980 $as_echo_n "checking for library containing ldexp... " >&6; }
8981 if test "${ac_cv_search_ldexp+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 ac_func_search_save_LIBS=$LIBS
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char ldexp ();
8995 int
8996 main ()
8997 {
8998 return ldexp ();
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 for ac_lib in '' m; do
9004 if test -z "$ac_lib"; then
9005 ac_res="none required"
9006 else
9007 ac_res=-l$ac_lib
9008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9009 fi
9010 if ac_fn_c_try_link "$LINENO"; then :
9011 ac_cv_search_ldexp=$ac_res
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext
9015 if test "${ac_cv_search_ldexp+set}" = set; then :
9016 break
9017 fi
9018 done
9019 if test "${ac_cv_search_ldexp+set}" = set; then :
9020
9021 else
9022 ac_cv_search_ldexp=no
9023 fi
9024 rm conftest.$ac_ext
9025 LIBS=$ac_func_search_save_LIBS
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9028 $as_echo "$ac_cv_search_ldexp" >&6; }
9029 ac_res=$ac_cv_search_ldexp
9030 if test "$ac_res" != no; then :
9031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032
9033 fi
9034
9035 LDEXP_LIB="$LIBS"
9036 LIBS="$save_LIBS"
9037
9038
9039 # Use <inttypes.h> only if it exists,
9040 # doesn't clash with <sys/types.h>, and declares intmax_t.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9042 $as_echo_n "checking for inttypes.h... " >&6; }
9043 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #include <sys/types.h>
9049 #include <inttypes.h>
9050 int
9051 main ()
9052 {
9053 intmax_t i = -1;
9054 ;
9055 return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 gcc_cv_header_inttypes_h=yes
9060 else
9061 gcc_cv_header_inttypes_h=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 fi
9065
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9067 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9068 if test $gcc_cv_header_inttypes_h = yes; then
9069
9070 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9071
9072 fi
9073
9074
9075
9076 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9077 sysconf strsignal getrusage nl_langinfo \
9078 gettimeofday mbstowcs wcswidth mmap setlocale \
9079 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
9080 do :
9081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9083 eval as_val=\$$as_ac_var
9084 if test "x$as_val" = x""yes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9087 _ACEOF
9088
9089 fi
9090 done
9091
9092
9093 if test x$ac_cv_func_mbstowcs = xyes; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9095 $as_echo_n "checking whether mbstowcs works... " >&6; }
9096 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 if test "$cross_compiling" = yes; then :
9100 gcc_cv_func_mbstowcs_works=yes
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 #include <stdlib.h>
9105 int main()
9106 {
9107 mbstowcs(0, "", 0);
9108 return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_run "$LINENO"; then :
9112 gcc_cv_func_mbstowcs_works=yes
9113 else
9114 gcc_cv_func_mbstowcs_works=no
9115 fi
9116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9117 conftest.$ac_objext conftest.beam conftest.$ac_ext
9118 fi
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9122 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9123 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9124
9125 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9126
9127 fi
9128 fi
9129
9130 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9131 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9132
9133 else
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define ssize_t int
9137 _ACEOF
9138
9139 fi
9140
9141 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9142 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9143
9144 else
9145
9146 cat >>confdefs.h <<_ACEOF
9147 #define caddr_t char *
9148 _ACEOF
9149
9150 fi
9151
9152
9153
9154 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9155 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9156 gcc_header_sys_mman_h=yes
9157 else
9158 gcc_header_sys_mman_h=no
9159 fi
9160
9161 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9162 if test "x$ac_cv_func_mmap" = x""yes; then :
9163 gcc_func_mmap=yes
9164 else
9165 gcc_func_mmap=no
9166 fi
9167
9168 if test "$gcc_header_sys_mman_h" != yes \
9169 || test "$gcc_func_mmap" != yes; then
9170 gcc_cv_func_mmap_file=no
9171 gcc_cv_func_mmap_dev_zero=no
9172 gcc_cv_func_mmap_anon=no
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9175 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9176 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 # Add a system to this blacklist if
9180 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9181 # memory area containing the same data that you'd get if you applied
9182 # read() to the same fd. The only system known to have a problem here
9183 # is VMS, where text files have record structure.
9184 case "$host_os" in
9185 *vms* | ultrix*)
9186 gcc_cv_func_mmap_file=no ;;
9187 *)
9188 gcc_cv_func_mmap_file=yes;;
9189 esac
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9192 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9194 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9195 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 # Add a system to this blacklist if it has mmap() but /dev/zero
9199 # does not exist, or if mmapping /dev/zero does not give anonymous
9200 # zeroed pages with both the following properties:
9201 # 1. If you map N consecutive pages in with one call, and then
9202 # unmap any subset of those pages, the pages that were not
9203 # explicitly unmapped remain accessible.
9204 # 2. If you map two adjacent blocks of memory and then unmap them
9205 # both at once, they must both go away.
9206 # Systems known to be in this category are Windows (all variants),
9207 # VMS, and Darwin.
9208 case "$host_os" in
9209 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9210 gcc_cv_func_mmap_dev_zero=no ;;
9211 *)
9212 gcc_cv_func_mmap_dev_zero=yes;;
9213 esac
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9216 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9217
9218 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9220 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9221 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #include <sys/types.h>
9227 #include <sys/mman.h>
9228 #include <unistd.h>
9229
9230 #ifndef MAP_ANONYMOUS
9231 #define MAP_ANONYMOUS MAP_ANON
9232 #endif
9233
9234 int
9235 main ()
9236 {
9237 int n = MAP_ANONYMOUS;
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 gcc_cv_decl_map_anon=yes
9244 else
9245 gcc_cv_decl_map_anon=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9250 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9251
9252 if test $gcc_cv_decl_map_anon = no; then
9253 gcc_cv_func_mmap_anon=no
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9256 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9257 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9261 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9262 # doesn't give anonymous zeroed pages with the same properties listed
9263 # above for use of /dev/zero.
9264 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9265 case "$host_os" in
9266 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9267 gcc_cv_func_mmap_anon=no ;;
9268 *)
9269 gcc_cv_func_mmap_anon=yes;;
9270 esac
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9273 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9274 fi
9275 fi
9276
9277 if test $gcc_cv_func_mmap_file = yes; then
9278
9279 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9280
9281 fi
9282 if test $gcc_cv_func_mmap_dev_zero = yes; then
9283
9284 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9285
9286 fi
9287 if test $gcc_cv_func_mmap_anon = yes; then
9288
9289 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9290
9291 fi
9292
9293
9294 case "${host}" in
9295 *-*-*vms*)
9296 # Under VMS, vfork works very differently than on Unix. The standard test
9297 # won't work, and it isn't easily adaptable. It makes more sense to
9298 # just force it.
9299 ac_cv_func_vfork_works=yes
9300 ;;
9301 esac
9302 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9303 if test "x$ac_cv_type_pid_t" = x""yes; then :
9304
9305 else
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define pid_t int
9309 _ACEOF
9310
9311 fi
9312
9313 for ac_header in vfork.h
9314 do :
9315 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9316 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9317 cat >>confdefs.h <<_ACEOF
9318 #define HAVE_VFORK_H 1
9319 _ACEOF
9320
9321 fi
9322 done
9323
9324 for ac_func in fork vfork
9325 do :
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9328 eval as_val=\$$as_ac_var
9329 if test "x$as_val" = x""yes; then :
9330 cat >>confdefs.h <<_ACEOF
9331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 _ACEOF
9333
9334 fi
9335 done
9336
9337 if test "x$ac_cv_func_fork" = xyes; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9339 $as_echo_n "checking for working fork... " >&6; }
9340 if test "${ac_cv_func_fork_works+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 if test "$cross_compiling" = yes; then :
9344 ac_cv_func_fork_works=cross
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 int
9350 main ()
9351 {
9352
9353 /* By Ruediger Kuhlmann. */
9354 return fork () < 0;
9355
9356 ;
9357 return 0;
9358 }
9359 _ACEOF
9360 if ac_fn_c_try_run "$LINENO"; then :
9361 ac_cv_func_fork_works=yes
9362 else
9363 ac_cv_func_fork_works=no
9364 fi
9365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9366 conftest.$ac_objext conftest.beam conftest.$ac_ext
9367 fi
9368
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9371 $as_echo "$ac_cv_func_fork_works" >&6; }
9372
9373 else
9374 ac_cv_func_fork_works=$ac_cv_func_fork
9375 fi
9376 if test "x$ac_cv_func_fork_works" = xcross; then
9377 case $host in
9378 *-*-amigaos* | *-*-msdosdjgpp*)
9379 # Override, as these systems have only a dummy fork() stub
9380 ac_cv_func_fork_works=no
9381 ;;
9382 *)
9383 ac_cv_func_fork_works=yes
9384 ;;
9385 esac
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9387 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9388 fi
9389 ac_cv_func_vfork_works=$ac_cv_func_vfork
9390 if test "x$ac_cv_func_vfork" = xyes; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9392 $as_echo_n "checking for working vfork... " >&6; }
9393 if test "${ac_cv_func_vfork_works+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test "$cross_compiling" = yes; then :
9397 ac_cv_func_vfork_works=cross
9398 else
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 /* Thanks to Paul Eggert for this test. */
9402 $ac_includes_default
9403 #include <sys/wait.h>
9404 #ifdef HAVE_VFORK_H
9405 # include <vfork.h>
9406 #endif
9407 /* On some sparc systems, changes by the child to local and incoming
9408 argument registers are propagated back to the parent. The compiler
9409 is told about this with #include <vfork.h>, but some compilers
9410 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9411 static variable whose address is put into a register that is
9412 clobbered by the vfork. */
9413 static void
9414 #ifdef __cplusplus
9415 sparc_address_test (int arg)
9416 # else
9417 sparc_address_test (arg) int arg;
9418 #endif
9419 {
9420 static pid_t child;
9421 if (!child) {
9422 child = vfork ();
9423 if (child < 0) {
9424 perror ("vfork");
9425 _exit(2);
9426 }
9427 if (!child) {
9428 arg = getpid();
9429 write(-1, "", 0);
9430 _exit (arg);
9431 }
9432 }
9433 }
9434
9435 int
9436 main ()
9437 {
9438 pid_t parent = getpid ();
9439 pid_t child;
9440
9441 sparc_address_test (0);
9442
9443 child = vfork ();
9444
9445 if (child == 0) {
9446 /* Here is another test for sparc vfork register problems. This
9447 test uses lots of local variables, at least as many local
9448 variables as main has allocated so far including compiler
9449 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9450 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9451 reuse the register of parent for one of the local variables,
9452 since it will think that parent can't possibly be used any more
9453 in this routine. Assigning to the local variable will thus
9454 munge parent in the parent process. */
9455 pid_t
9456 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9457 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9458 /* Convince the compiler that p..p7 are live; otherwise, it might
9459 use the same hardware register for all 8 local variables. */
9460 if (p != p1 || p != p2 || p != p3 || p != p4
9461 || p != p5 || p != p6 || p != p7)
9462 _exit(1);
9463
9464 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9465 from child file descriptors. If the child closes a descriptor
9466 before it execs or exits, this munges the parent's descriptor
9467 as well. Test for this by closing stdout in the child. */
9468 _exit(close(fileno(stdout)) != 0);
9469 } else {
9470 int status;
9471 struct stat st;
9472
9473 while (wait(&status) != child)
9474 ;
9475 return (
9476 /* Was there some problem with vforking? */
9477 child < 0
9478
9479 /* Did the child fail? (This shouldn't happen.) */
9480 || status
9481
9482 /* Did the vfork/compiler bug occur? */
9483 || parent != getpid()
9484
9485 /* Did the file descriptor bug occur? */
9486 || fstat(fileno(stdout), &st) != 0
9487 );
9488 }
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_run "$LINENO"; then :
9492 ac_cv_func_vfork_works=yes
9493 else
9494 ac_cv_func_vfork_works=no
9495 fi
9496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9497 conftest.$ac_objext conftest.beam conftest.$ac_ext
9498 fi
9499
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9502 $as_echo "$ac_cv_func_vfork_works" >&6; }
9503
9504 fi;
9505 if test "x$ac_cv_func_fork_works" = xcross; then
9506 ac_cv_func_vfork_works=$ac_cv_func_vfork
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9508 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9509 fi
9510
9511 if test "x$ac_cv_func_vfork_works" = xyes; then
9512
9513 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9514
9515 else
9516
9517 $as_echo "#define vfork fork" >>confdefs.h
9518
9519 fi
9520 if test "x$ac_cv_func_fork_works" = xyes; then
9521
9522 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9523
9524 fi
9525
9526
9527 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9528 # iconv() prototype.
9529
9530 if test "X$prefix" = "XNONE"; then
9531 acl_final_prefix="$ac_default_prefix"
9532 else
9533 acl_final_prefix="$prefix"
9534 fi
9535 if test "X$exec_prefix" = "XNONE"; then
9536 acl_final_exec_prefix='${prefix}'
9537 else
9538 acl_final_exec_prefix="$exec_prefix"
9539 fi
9540 acl_save_prefix="$prefix"
9541 prefix="$acl_final_prefix"
9542 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9543 prefix="$acl_save_prefix"
9544
9545
9546 # Check whether --with-gnu-ld was given.
9547 if test "${with_gnu_ld+set}" = set; then :
9548 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9549 else
9550 with_gnu_ld=no
9551 fi
9552
9553 # Prepare PATH_SEPARATOR.
9554 # The user is always right.
9555 if test "${PATH_SEPARATOR+set}" != set; then
9556 echo "#! /bin/sh" >conf$$.sh
9557 echo "exit 0" >>conf$$.sh
9558 chmod +x conf$$.sh
9559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9560 PATH_SEPARATOR=';'
9561 else
9562 PATH_SEPARATOR=:
9563 fi
9564 rm -f conf$$.sh
9565 fi
9566 ac_prog=ld
9567 if test "$GCC" = yes; then
9568 # Check if gcc -print-prog-name=ld gives a path.
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9570 $as_echo_n "checking for ld used by GCC... " >&6; }
9571 case $host in
9572 *-*-mingw*)
9573 # gcc leaves a trailing carriage return which upsets mingw
9574 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9575 *)
9576 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9577 esac
9578 case $ac_prog in
9579 # Accept absolute paths.
9580 [\\/]* | [A-Za-z]:[\\/]*)
9581 re_direlt='/[^/][^/]*/\.\./'
9582 # Canonicalize the path of ld
9583 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9584 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9585 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9586 done
9587 test -z "$LD" && LD="$ac_prog"
9588 ;;
9589 "")
9590 # If it fails, then pretend we aren't using GCC.
9591 ac_prog=ld
9592 ;;
9593 *)
9594 # If it is relative, then search for the first ld in PATH.
9595 with_gnu_ld=unknown
9596 ;;
9597 esac
9598 elif test "$with_gnu_ld" = yes; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9600 $as_echo_n "checking for GNU ld... " >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9603 $as_echo_n "checking for non-GNU ld... " >&6; }
9604 fi
9605 if test "${acl_cv_path_LD+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 if test -z "$LD"; then
9609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9610 for ac_dir in $PATH; do
9611 test -z "$ac_dir" && ac_dir=.
9612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9613 acl_cv_path_LD="$ac_dir/$ac_prog"
9614 # Check to see if the program is GNU ld. I'd rather use --version,
9615 # but apparently some GNU ld's only accept -v.
9616 # Break only if it was the GNU/non-GNU ld that we prefer.
9617 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9618 test "$with_gnu_ld" != no && break
9619 else
9620 test "$with_gnu_ld" != yes && break
9621 fi
9622 fi
9623 done
9624 IFS="$ac_save_ifs"
9625 else
9626 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9627 fi
9628 fi
9629
9630 LD="$acl_cv_path_LD"
9631 if test -n "$LD"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9633 $as_echo "$LD" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9641 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9645 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9646 acl_cv_prog_gnu_ld=yes
9647 else
9648 acl_cv_prog_gnu_ld=no
9649 fi
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9652 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9653 with_gnu_ld=$acl_cv_prog_gnu_ld
9654
9655
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9658 $as_echo_n "checking for shared library run path origin... " >&6; }
9659 if test "${acl_cv_rpath+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662
9663 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9664 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9665 . ./conftest.sh
9666 rm -f ./conftest.sh
9667 acl_cv_rpath=done
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9671 $as_echo "$acl_cv_rpath" >&6; }
9672 wl="$acl_cv_wl"
9673 libext="$acl_cv_libext"
9674 shlibext="$acl_cv_shlibext"
9675 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9676 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9677 hardcode_direct="$acl_cv_hardcode_direct"
9678 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9679 # Check whether --enable-rpath was given.
9680 if test "${enable_rpath+set}" = set; then :
9681 enableval=$enable_rpath; :
9682 else
9683 enable_rpath=yes
9684 fi
9685
9686
9687
9688
9689
9690
9691
9692
9693 use_additional=yes
9694
9695 acl_save_prefix="$prefix"
9696 prefix="$acl_final_prefix"
9697 acl_save_exec_prefix="$exec_prefix"
9698 exec_prefix="$acl_final_exec_prefix"
9699
9700 eval additional_includedir=\"$includedir\"
9701 eval additional_libdir=\"$libdir\"
9702
9703 exec_prefix="$acl_save_exec_prefix"
9704 prefix="$acl_save_prefix"
9705
9706
9707 # Check whether --with-libiconv-prefix was given.
9708 if test "${with_libiconv_prefix+set}" = set; then :
9709 withval=$with_libiconv_prefix;
9710 if test "X$withval" = "Xno"; then
9711 use_additional=no
9712 else
9713 if test "X$withval" = "X"; then
9714
9715 acl_save_prefix="$prefix"
9716 prefix="$acl_final_prefix"
9717 acl_save_exec_prefix="$exec_prefix"
9718 exec_prefix="$acl_final_exec_prefix"
9719
9720 eval additional_includedir=\"$includedir\"
9721 eval additional_libdir=\"$libdir\"
9722
9723 exec_prefix="$acl_save_exec_prefix"
9724 prefix="$acl_save_prefix"
9725
9726 else
9727 additional_includedir="$withval/include"
9728 additional_libdir="$withval/lib"
9729 fi
9730 fi
9731
9732 fi
9733
9734 LIBICONV=
9735 LTLIBICONV=
9736 INCICONV=
9737 rpathdirs=
9738 ltrpathdirs=
9739 names_already_handled=
9740 names_next_round='iconv '
9741 while test -n "$names_next_round"; do
9742 names_this_round="$names_next_round"
9743 names_next_round=
9744 for name in $names_this_round; do
9745 already_handled=
9746 for n in $names_already_handled; do
9747 if test "$n" = "$name"; then
9748 already_handled=yes
9749 break
9750 fi
9751 done
9752 if test -z "$already_handled"; then
9753 names_already_handled="$names_already_handled $name"
9754 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9755 eval value=\"\$HAVE_LIB$uppername\"
9756 if test -n "$value"; then
9757 if test "$value" = yes; then
9758 eval value=\"\$LIB$uppername\"
9759 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9760 eval value=\"\$LTLIB$uppername\"
9761 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9762 else
9763 :
9764 fi
9765 else
9766 found_dir=
9767 found_la=
9768 found_so=
9769 found_a=
9770 if test $use_additional = yes; then
9771 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9772 found_dir="$additional_libdir"
9773 found_so="$additional_libdir/lib$name.$shlibext"
9774 if test -f "$additional_libdir/lib$name.la"; then
9775 found_la="$additional_libdir/lib$name.la"
9776 fi
9777 else
9778 if test -f "$additional_libdir/lib$name.$libext"; then
9779 found_dir="$additional_libdir"
9780 found_a="$additional_libdir/lib$name.$libext"
9781 if test -f "$additional_libdir/lib$name.la"; then
9782 found_la="$additional_libdir/lib$name.la"
9783 fi
9784 fi
9785 fi
9786 fi
9787 if test "X$found_dir" = "X"; then
9788 for x in $LDFLAGS $LTLIBICONV; do
9789
9790 acl_save_prefix="$prefix"
9791 prefix="$acl_final_prefix"
9792 acl_save_exec_prefix="$exec_prefix"
9793 exec_prefix="$acl_final_exec_prefix"
9794 eval x=\"$x\"
9795 exec_prefix="$acl_save_exec_prefix"
9796 prefix="$acl_save_prefix"
9797
9798 case "$x" in
9799 -L*)
9800 dir=`echo "X$x" | sed -e 's/^X-L//'`
9801 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9802 found_dir="$dir"
9803 found_so="$dir/lib$name.$shlibext"
9804 if test -f "$dir/lib$name.la"; then
9805 found_la="$dir/lib$name.la"
9806 fi
9807 else
9808 if test -f "$dir/lib$name.$libext"; then
9809 found_dir="$dir"
9810 found_a="$dir/lib$name.$libext"
9811 if test -f "$dir/lib$name.la"; then
9812 found_la="$dir/lib$name.la"
9813 fi
9814 fi
9815 fi
9816 ;;
9817 esac
9818 if test "X$found_dir" != "X"; then
9819 break
9820 fi
9821 done
9822 fi
9823 if test "X$found_dir" != "X"; then
9824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9825 if test "X$found_so" != "X"; then
9826 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9827 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9828 else
9829 haveit=
9830 for x in $ltrpathdirs; do
9831 if test "X$x" = "X$found_dir"; then
9832 haveit=yes
9833 break
9834 fi
9835 done
9836 if test -z "$haveit"; then
9837 ltrpathdirs="$ltrpathdirs $found_dir"
9838 fi
9839 if test "$hardcode_direct" = yes; then
9840 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9841 else
9842 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9844 haveit=
9845 for x in $rpathdirs; do
9846 if test "X$x" = "X$found_dir"; then
9847 haveit=yes
9848 break
9849 fi
9850 done
9851 if test -z "$haveit"; then
9852 rpathdirs="$rpathdirs $found_dir"
9853 fi
9854 else
9855 haveit=
9856 for x in $LDFLAGS $LIBICONV; do
9857
9858 acl_save_prefix="$prefix"
9859 prefix="$acl_final_prefix"
9860 acl_save_exec_prefix="$exec_prefix"
9861 exec_prefix="$acl_final_exec_prefix"
9862 eval x=\"$x\"
9863 exec_prefix="$acl_save_exec_prefix"
9864 prefix="$acl_save_prefix"
9865
9866 if test "X$x" = "X-L$found_dir"; then
9867 haveit=yes
9868 break
9869 fi
9870 done
9871 if test -z "$haveit"; then
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9873 fi
9874 if test "$hardcode_minus_L" != no; then
9875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9876 else
9877 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9878 fi
9879 fi
9880 fi
9881 fi
9882 else
9883 if test "X$found_a" != "X"; then
9884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9885 else
9886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9887 fi
9888 fi
9889 additional_includedir=
9890 case "$found_dir" in
9891 */lib | */lib/)
9892 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9893 additional_includedir="$basedir/include"
9894 ;;
9895 esac
9896 if test "X$additional_includedir" != "X"; then
9897 if test "X$additional_includedir" != "X/usr/include"; then
9898 haveit=
9899 if test "X$additional_includedir" = "X/usr/local/include"; then
9900 if test -n "$GCC"; then
9901 case $host_os in
9902 linux*) haveit=yes;;
9903 esac
9904 fi
9905 fi
9906 if test -z "$haveit"; then
9907 for x in $CPPFLAGS $INCICONV; do
9908
9909 acl_save_prefix="$prefix"
9910 prefix="$acl_final_prefix"
9911 acl_save_exec_prefix="$exec_prefix"
9912 exec_prefix="$acl_final_exec_prefix"
9913 eval x=\"$x\"
9914 exec_prefix="$acl_save_exec_prefix"
9915 prefix="$acl_save_prefix"
9916
9917 if test "X$x" = "X-I$additional_includedir"; then
9918 haveit=yes
9919 break
9920 fi
9921 done
9922 if test -z "$haveit"; then
9923 if test -d "$additional_includedir"; then
9924 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9925 fi
9926 fi
9927 fi
9928 fi
9929 fi
9930 if test -n "$found_la"; then
9931 save_libdir="$libdir"
9932 case "$found_la" in
9933 */* | *\\*) . "$found_la" ;;
9934 *) . "./$found_la" ;;
9935 esac
9936 libdir="$save_libdir"
9937 for dep in $dependency_libs; do
9938 case "$dep" in
9939 -L*)
9940 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9941 if test "X$additional_libdir" != "X/usr/lib"; then
9942 haveit=
9943 if test "X$additional_libdir" = "X/usr/local/lib"; then
9944 if test -n "$GCC"; then
9945 case $host_os in
9946 linux*) haveit=yes;;
9947 esac
9948 fi
9949 fi
9950 if test -z "$haveit"; then
9951 haveit=
9952 for x in $LDFLAGS $LIBICONV; do
9953
9954 acl_save_prefix="$prefix"
9955 prefix="$acl_final_prefix"
9956 acl_save_exec_prefix="$exec_prefix"
9957 exec_prefix="$acl_final_exec_prefix"
9958 eval x=\"$x\"
9959 exec_prefix="$acl_save_exec_prefix"
9960 prefix="$acl_save_prefix"
9961
9962 if test "X$x" = "X-L$additional_libdir"; then
9963 haveit=yes
9964 break
9965 fi
9966 done
9967 if test -z "$haveit"; then
9968 if test -d "$additional_libdir"; then
9969 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9970 fi
9971 fi
9972 haveit=
9973 for x in $LDFLAGS $LTLIBICONV; do
9974
9975 acl_save_prefix="$prefix"
9976 prefix="$acl_final_prefix"
9977 acl_save_exec_prefix="$exec_prefix"
9978 exec_prefix="$acl_final_exec_prefix"
9979 eval x=\"$x\"
9980 exec_prefix="$acl_save_exec_prefix"
9981 prefix="$acl_save_prefix"
9982
9983 if test "X$x" = "X-L$additional_libdir"; then
9984 haveit=yes
9985 break
9986 fi
9987 done
9988 if test -z "$haveit"; then
9989 if test -d "$additional_libdir"; then
9990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9991 fi
9992 fi
9993 fi
9994 fi
9995 ;;
9996 -R*)
9997 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9998 if test "$enable_rpath" != no; then
9999 haveit=
10000 for x in $rpathdirs; do
10001 if test "X$x" = "X$dir"; then
10002 haveit=yes
10003 break
10004 fi
10005 done
10006 if test -z "$haveit"; then
10007 rpathdirs="$rpathdirs $dir"
10008 fi
10009 haveit=
10010 for x in $ltrpathdirs; do
10011 if test "X$x" = "X$dir"; then
10012 haveit=yes
10013 break
10014 fi
10015 done
10016 if test -z "$haveit"; then
10017 ltrpathdirs="$ltrpathdirs $dir"
10018 fi
10019 fi
10020 ;;
10021 -l*)
10022 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10023 ;;
10024 *.la)
10025 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10026 ;;
10027 *)
10028 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10030 ;;
10031 esac
10032 done
10033 fi
10034 else
10035 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10037 fi
10038 fi
10039 fi
10040 done
10041 done
10042 if test "X$rpathdirs" != "X"; then
10043 if test -n "$hardcode_libdir_separator"; then
10044 alldirs=
10045 for found_dir in $rpathdirs; do
10046 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10047 done
10048 acl_save_libdir="$libdir"
10049 libdir="$alldirs"
10050 eval flag=\"$hardcode_libdir_flag_spec\"
10051 libdir="$acl_save_libdir"
10052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10053 else
10054 for found_dir in $rpathdirs; do
10055 acl_save_libdir="$libdir"
10056 libdir="$found_dir"
10057 eval flag=\"$hardcode_libdir_flag_spec\"
10058 libdir="$acl_save_libdir"
10059 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10060 done
10061 fi
10062 fi
10063 if test "X$ltrpathdirs" != "X"; then
10064 for found_dir in $ltrpathdirs; do
10065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10066 done
10067 fi
10068
10069
10070 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10071 ac_ext=cpp
10072 ac_cpp='$CXXCPP $CPPFLAGS'
10073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10076
10077
10078
10079
10080
10081
10082 am_save_CPPFLAGS="$CPPFLAGS"
10083
10084 for element in $INCICONV; do
10085 haveit=
10086 for x in $CPPFLAGS; do
10087
10088 acl_save_prefix="$prefix"
10089 prefix="$acl_final_prefix"
10090 acl_save_exec_prefix="$exec_prefix"
10091 exec_prefix="$acl_final_exec_prefix"
10092 eval x=\"$x\"
10093 exec_prefix="$acl_save_exec_prefix"
10094 prefix="$acl_save_prefix"
10095
10096 if test "X$x" = "X$element"; then
10097 haveit=yes
10098 break
10099 fi
10100 done
10101 if test -z "$haveit"; then
10102 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10103 fi
10104 done
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10108 $as_echo_n "checking for iconv... " >&6; }
10109 if test "${am_cv_func_iconv+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112
10113 am_cv_func_iconv="no, consider installing GNU libiconv"
10114 am_cv_lib_iconv=no
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117 #include <stdlib.h>
10118 #include <iconv.h>
10119 int
10120 main ()
10121 {
10122 iconv_t cd = iconv_open("","");
10123 iconv(cd,NULL,NULL,NULL,NULL);
10124 iconv_close(cd);
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_cxx_try_link "$LINENO"; then :
10130 am_cv_func_iconv=yes
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test "$am_cv_func_iconv" != yes; then
10135 am_save_LIBS="$LIBS"
10136 LIBS="$LIBS $LIBICONV"
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #include <stdlib.h>
10140 #include <iconv.h>
10141 int
10142 main ()
10143 {
10144 iconv_t cd = iconv_open("","");
10145 iconv(cd,NULL,NULL,NULL,NULL);
10146 iconv_close(cd);
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_cxx_try_link "$LINENO"; then :
10152 am_cv_lib_iconv=yes
10153 am_cv_func_iconv=yes
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS="$am_save_LIBS"
10158 fi
10159
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10162 $as_echo "$am_cv_func_iconv" >&6; }
10163 if test "$am_cv_func_iconv" = yes; then
10164
10165 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10166
10167 fi
10168 if test "$am_cv_lib_iconv" = yes; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10170 $as_echo_n "checking how to link with libiconv... " >&6; }
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10172 $as_echo "$LIBICONV" >&6; }
10173 else
10174 CPPFLAGS="$am_save_CPPFLAGS"
10175 LIBICONV=
10176 LTLIBICONV=
10177 fi
10178
10179
10180
10181 if test "$am_cv_func_iconv" = yes; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10183 $as_echo_n "checking for iconv declaration... " >&6; }
10184 if test "${am_cv_proto_iconv+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190
10191 #include <stdlib.h>
10192 #include <iconv.h>
10193 extern
10194 #ifdef __cplusplus
10195 "C"
10196 #endif
10197 #if defined(__STDC__) || defined(__cplusplus)
10198 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10199 #else
10200 size_t iconv();
10201 #endif
10202
10203 int
10204 main ()
10205 {
10206
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_cxx_try_compile "$LINENO"; then :
10212 am_cv_proto_iconv_arg1=""
10213 else
10214 am_cv_proto_iconv_arg1="const"
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 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);"
10218 fi
10219
10220 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10222 }$am_cv_proto_iconv" >&5
10223 $as_echo "${ac_t:-
10224 }$am_cv_proto_iconv" >&6; }
10225
10226 cat >>confdefs.h <<_ACEOF
10227 #define ICONV_CONST $am_cv_proto_iconv_arg1
10228 _ACEOF
10229
10230 fi
10231
10232 ac_ext=c
10233 ac_cpp='$CPP $CPPFLAGS'
10234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237
10238 else
10239
10240
10241
10242
10243
10244 am_save_CPPFLAGS="$CPPFLAGS"
10245
10246 for element in $INCICONV; do
10247 haveit=
10248 for x in $CPPFLAGS; do
10249
10250 acl_save_prefix="$prefix"
10251 prefix="$acl_final_prefix"
10252 acl_save_exec_prefix="$exec_prefix"
10253 exec_prefix="$acl_final_exec_prefix"
10254 eval x=\"$x\"
10255 exec_prefix="$acl_save_exec_prefix"
10256 prefix="$acl_save_prefix"
10257
10258 if test "X$x" = "X$element"; then
10259 haveit=yes
10260 break
10261 fi
10262 done
10263 if test -z "$haveit"; then
10264 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10265 fi
10266 done
10267
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10270 $as_echo_n "checking for iconv... " >&6; }
10271 if test "${am_cv_func_iconv+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274
10275 am_cv_func_iconv="no, consider installing GNU libiconv"
10276 am_cv_lib_iconv=no
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <stdlib.h>
10280 #include <iconv.h>
10281 int
10282 main ()
10283 {
10284 iconv_t cd = iconv_open("","");
10285 iconv(cd,NULL,NULL,NULL,NULL);
10286 iconv_close(cd);
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10292 am_cv_func_iconv=yes
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 if test "$am_cv_func_iconv" != yes; then
10297 am_save_LIBS="$LIBS"
10298 LIBS="$LIBS $LIBICONV"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 #include <stdlib.h>
10302 #include <iconv.h>
10303 int
10304 main ()
10305 {
10306 iconv_t cd = iconv_open("","");
10307 iconv(cd,NULL,NULL,NULL,NULL);
10308 iconv_close(cd);
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 am_cv_lib_iconv=yes
10315 am_cv_func_iconv=yes
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS="$am_save_LIBS"
10320 fi
10321
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10324 $as_echo "$am_cv_func_iconv" >&6; }
10325 if test "$am_cv_func_iconv" = yes; then
10326
10327 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10328
10329 fi
10330 if test "$am_cv_lib_iconv" = yes; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10332 $as_echo_n "checking how to link with libiconv... " >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10334 $as_echo "$LIBICONV" >&6; }
10335 else
10336 CPPFLAGS="$am_save_CPPFLAGS"
10337 LIBICONV=
10338 LTLIBICONV=
10339 fi
10340
10341
10342
10343 if test "$am_cv_func_iconv" = yes; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10345 $as_echo_n "checking for iconv declaration... " >&6; }
10346 if test "${am_cv_proto_iconv+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352
10353 #include <stdlib.h>
10354 #include <iconv.h>
10355 extern
10356 #ifdef __cplusplus
10357 "C"
10358 #endif
10359 #if defined(__STDC__) || defined(__cplusplus)
10360 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10361 #else
10362 size_t iconv();
10363 #endif
10364
10365 int
10366 main ()
10367 {
10368
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_compile "$LINENO"; then :
10374 am_cv_proto_iconv_arg1=""
10375 else
10376 am_cv_proto_iconv_arg1="const"
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379 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);"
10380 fi
10381
10382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10384 }$am_cv_proto_iconv" >&5
10385 $as_echo "${ac_t:-
10386 }$am_cv_proto_iconv" >&6; }
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define ICONV_CONST $am_cv_proto_iconv_arg1
10390 _ACEOF
10391
10392 fi
10393
10394 fi
10395
10396 # Until we have in-tree GNU iconv:
10397 LIBICONV_DEP=
10398
10399
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10402 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10403 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408 #include <locale.h>
10409 int
10410 main ()
10411 {
10412 return LC_MESSAGES
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 am_cv_val_LC_MESSAGES=yes
10419 else
10420 am_cv_val_LC_MESSAGES=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10426 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10427 if test $am_cv_val_LC_MESSAGES = yes; then
10428
10429 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10430
10431 fi
10432
10433
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10436 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10437 if test "${am_cv_langinfo_codeset+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 #include <langinfo.h>
10443 int
10444 main ()
10445 {
10446 char* cs = nl_langinfo(CODESET);
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 am_cv_langinfo_codeset=yes
10453 else
10454 am_cv_langinfo_codeset=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10461 $as_echo "$am_cv_langinfo_codeset" >&6; }
10462 if test $am_cv_langinfo_codeset = yes; then
10463
10464 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10465
10466 fi
10467
10468
10469 # We will need to find libiberty.h and ansidecl.h
10470 saved_CFLAGS="$CFLAGS"
10471 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10472 saved_CXXFLAGS="$CXXFLAGS"
10473 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10474 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10475 strsignal strstr stpcpy strverscmp \
10476 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10477 free basename getopt clock getpagesize 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
10478 do
10479 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10481 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10482 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 #undef $ac_tr_decl
10488 #define $ac_tr_decl 1
10489
10490 #include "ansidecl.h"
10491 #include "system.h"
10492
10493 int
10494 main ()
10495 {
10496 #ifndef $ac_func
10497 char *(*pfn) = (char *(*)) $ac_func ;
10498 #endif
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"; then :
10504 eval "gcc_cv_have_decl_$ac_func=yes"
10505 else
10506 eval "gcc_cv_have_decl_$ac_func=no"
10507 fi
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 fi
10510
10511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10514 #define $ac_tr_decl 1
10515 _ACEOF
10516
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10520 #define $ac_tr_decl 0
10521 _ACEOF
10522
10523 fi
10524
10525 done
10526
10527
10528 for ac_func in getrlimit setrlimit getrusage
10529 do
10530 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10532 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10533 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #undef $ac_tr_decl
10539 #define $ac_tr_decl 1
10540
10541 #include "ansidecl.h"
10542 #include "system.h"
10543 #ifdef HAVE_SYS_RESOURCE_H
10544 #include <sys/resource.h>
10545 #endif
10546
10547
10548 int
10549 main ()
10550 {
10551 #ifndef $ac_func
10552 char *(*pfn) = (char *(*)) $ac_func ;
10553 #endif
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_compile "$LINENO"; then :
10559 eval "gcc_cv_have_decl_$ac_func=yes"
10560 else
10561 eval "gcc_cv_have_decl_$ac_func=no"
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 fi
10565
10566 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10569 #define $ac_tr_decl 1
10570 _ACEOF
10571
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10575 #define $ac_tr_decl 0
10576 _ACEOF
10577
10578 fi
10579
10580 done
10581
10582
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585
10586 #include "ansidecl.h"
10587 #include "system.h"
10588 #ifdef HAVE_SYS_RESOURCE_H
10589 #include <sys/resource.h>
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595 rlim_t l = 0;
10596 ;
10597 return 0;
10598 }
10599 _ACEOF
10600 if ac_fn_c_try_compile "$LINENO"; then :
10601
10602 else
10603
10604 $as_echo "#define rlim_t long" >>confdefs.h
10605
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608
10609 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10610 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10611 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10612 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10613 for ac_func in ldgetname
10614 do
10615 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10617 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10618 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623 #undef $ac_tr_decl
10624 #define $ac_tr_decl 1
10625
10626 #include "ansidecl.h"
10627 #include "system.h"
10628 #ifdef HAVE_LDFCN_H
10629 #undef FREAD
10630 #undef FWRITE
10631 #include <ldfcn.h>
10632 #endif
10633
10634
10635 int
10636 main ()
10637 {
10638 #ifndef $ac_func
10639 char *(*pfn) = (char *(*)) $ac_func ;
10640 #endif
10641 ;
10642 return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_compile "$LINENO"; then :
10646 eval "gcc_cv_have_decl_$ac_func=yes"
10647 else
10648 eval "gcc_cv_have_decl_$ac_func=no"
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 fi
10652
10653 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10656 #define $ac_tr_decl 1
10657 _ACEOF
10658
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10662 #define $ac_tr_decl 0
10663 _ACEOF
10664
10665 fi
10666
10667 done
10668
10669
10670 for ac_func in times
10671 do
10672 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10674 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10675 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #undef $ac_tr_decl
10681 #define $ac_tr_decl 1
10682
10683 #include "ansidecl.h"
10684 #include "system.h"
10685 #ifdef HAVE_SYS_TIMES_H
10686 #include <sys/times.h>
10687 #endif
10688
10689
10690 int
10691 main ()
10692 {
10693 #ifndef $ac_func
10694 char *(*pfn) = (char *(*)) $ac_func ;
10695 #endif
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_compile "$LINENO"; then :
10701 eval "gcc_cv_have_decl_$ac_func=yes"
10702 else
10703 eval "gcc_cv_have_decl_$ac_func=no"
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 fi
10707
10708 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10710 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10711 #define $ac_tr_decl 1
10712 _ACEOF
10713
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10717 #define $ac_tr_decl 0
10718 _ACEOF
10719
10720 fi
10721
10722 done
10723
10724
10725 for ac_func in sigaltstack
10726 do
10727 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10729 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10730 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #undef $ac_tr_decl
10736 #define $ac_tr_decl 1
10737
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #include <signal.h>
10741
10742
10743 int
10744 main ()
10745 {
10746 #ifndef $ac_func
10747 char *(*pfn) = (char *(*)) $ac_func ;
10748 #endif
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 eval "gcc_cv_have_decl_$ac_func=yes"
10755 else
10756 eval "gcc_cv_have_decl_$ac_func=no"
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10765 _ACEOF
10766
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10771 _ACEOF
10772
10773 fi
10774
10775 done
10776
10777
10778 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10779 # prototype.
10780 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10781 ac_ext=cpp
10782 ac_cpp='$CXXCPP $CPPFLAGS'
10783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10786
10787 for ac_func in madvise
10788 do
10789 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #undef $ac_tr_decl
10798 #define $ac_tr_decl 1
10799
10800 #include "ansidecl.h"
10801 #include "system.h"
10802
10803
10804 int
10805 main ()
10806 {
10807 #ifndef $ac_func
10808 char *(*pfn) = (char *(*)) $ac_func ;
10809 #endif
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_cxx_try_compile "$LINENO"; then :
10815 eval "gcc_cv_have_decl_$ac_func=yes"
10816 else
10817 eval "gcc_cv_have_decl_$ac_func=no"
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821
10822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10825 #define $ac_tr_decl 1
10826 _ACEOF
10827
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10831 #define $ac_tr_decl 0
10832 _ACEOF
10833
10834 fi
10835
10836 done
10837
10838 ac_ext=c
10839 ac_cpp='$CPP $CPPFLAGS'
10840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10843
10844 else
10845 for ac_func in madvise
10846 do
10847 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10849 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10850 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 #undef $ac_tr_decl
10856 #define $ac_tr_decl 1
10857
10858 #include "ansidecl.h"
10859 #include "system.h"
10860
10861
10862 int
10863 main ()
10864 {
10865 #ifndef $ac_func
10866 char *(*pfn) = (char *(*)) $ac_func ;
10867 #endif
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_compile "$LINENO"; then :
10873 eval "gcc_cv_have_decl_$ac_func=yes"
10874 else
10875 eval "gcc_cv_have_decl_$ac_func=no"
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 fi
10879
10880 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 1
10884 _ACEOF
10885
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10889 #define $ac_tr_decl 0
10890 _ACEOF
10891
10892 fi
10893
10894 done
10895
10896
10897 fi
10898
10899 # More time-related stuff.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10901 $as_echo_n "checking for struct tms... " >&6; }
10902 if test "${ac_cv_struct_tms+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908
10909 #include "ansidecl.h"
10910 #include "system.h"
10911 #ifdef HAVE_SYS_TIMES_H
10912 #include <sys/times.h>
10913 #endif
10914
10915 int
10916 main ()
10917 {
10918 struct tms tms;
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_compile "$LINENO"; then :
10924 ac_cv_struct_tms=yes
10925 else
10926 ac_cv_struct_tms=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10931 $as_echo "$ac_cv_struct_tms" >&6; }
10932 if test $ac_cv_struct_tms = yes; then
10933
10934 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10935
10936 fi
10937
10938 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10939 # revisit after autoconf 2.50.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10941 $as_echo_n "checking for clock_t... " >&6; }
10942 if test "${gcc_cv_type_clock_t+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948
10949 #include "ansidecl.h"
10950 #include "system.h"
10951
10952 int
10953 main ()
10954 {
10955 clock_t x;
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_compile "$LINENO"; then :
10961 gcc_cv_type_clock_t=yes
10962 else
10963 gcc_cv_type_clock_t=no
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10968 $as_echo "$gcc_cv_type_clock_t" >&6; }
10969 if test $gcc_cv_type_clock_t = yes; then
10970
10971 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10972
10973 fi
10974
10975 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10976 CFLAGS="$saved_CFLAGS"
10977 CXXFLAGS="$saved_CXXFLAGS"
10978
10979 # mkdir takes a single argument on some systems.
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10981 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10982 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 #include <sys/types.h>
10989 #ifdef HAVE_SYS_STAT_H
10990 # include <sys/stat.h>
10991 #endif
10992 #ifdef HAVE_UNISTD_H
10993 # include <unistd.h>
10994 #endif
10995 #ifdef HAVE_DIRECT_H
10996 # include <direct.h>
10997 #endif
10998 int
10999 main ()
11000 {
11001 mkdir ("foo", 0);
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_c_try_compile "$LINENO"; then :
11007 gcc_cv_mkdir_takes_one_arg=no
11008 else
11009 gcc_cv_mkdir_takes_one_arg=yes
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11014 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11015 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11016
11017 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11018
11019 fi
11020
11021
11022 # File extensions
11023 manext='.1'
11024 objext='.o'
11025
11026
11027
11028 # With Setjmp/Longjmp based exception handling.
11029 # Check whether --enable-sjlj-exceptions was given.
11030 if test "${enable_sjlj_exceptions+set}" = set; then :
11031 enableval=$enable_sjlj_exceptions; case $target in
11032 *-*-hpux10*)
11033 if test $enableval != yes; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11035 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11036 enableval=yes
11037 fi
11038 ;;
11039 esac
11040 force_sjlj_exceptions=yes
11041 else
11042 case $target in
11043 *-*-hpux10*)
11044 force_sjlj_exceptions=yes
11045 enableval=yes
11046 ;;
11047 *)
11048 force_sjlj_exceptions=no
11049 ;;
11050 esac
11051 fi
11052
11053 if test $force_sjlj_exceptions = yes; then
11054 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11055
11056 cat >>confdefs.h <<_ACEOF
11057 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11058 _ACEOF
11059
11060 fi
11061
11062 # --------------------------------------------------------
11063 # Build, host, and target specific configuration fragments
11064 # --------------------------------------------------------
11065
11066 # Collect build-machine-specific information.
11067 . ${srcdir}/config.build
11068
11069 # Collect host-machine-specific information.
11070 . ${srcdir}/config.host
11071
11072 target_gtfiles=
11073
11074 # Collect target-machine-specific information.
11075 . ${srcdir}/config.gcc
11076
11077 extra_objs="${host_extra_objs} ${extra_objs}"
11078 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11079
11080 # Default the target-machine variables that were not explicitly set.
11081 if test x"$tm_file" = x
11082 then tm_file=$cpu_type/$cpu_type.h; fi
11083
11084 if test x"$extra_headers" = x
11085 then extra_headers=; fi
11086
11087 if test x$md_file = x
11088 then md_file=$cpu_type/$cpu_type.md; fi
11089
11090 if test x$out_file = x
11091 then out_file=$cpu_type/$cpu_type.c; fi
11092
11093 if test x"$tmake_file" = x
11094 then tmake_file=$cpu_type/t-$cpu_type
11095 fi
11096
11097 # Support --enable-initfini-array.
11098 if test x$enable_initfini_array != xno; then
11099 tm_file="${tm_file} initfini-array.h"
11100 fi
11101
11102 if test x"$dwarf2" = xyes
11103 then tm_file="$tm_file tm-dwarf2.h"
11104 fi
11105
11106 # Say what files are being used for the output code and MD file.
11107 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11108 echo "Using \`$srcdir/config/$md_file' as machine description file."
11109
11110 # If any of the xm_file variables contain nonexistent files, warn
11111 # about them and drop them.
11112
11113 bx=
11114 for x in $build_xm_file; do
11115 if test -f $srcdir/config/$x
11116 then bx="$bx $x"
11117 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11118 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11119 fi
11120 done
11121 build_xm_file="$bx"
11122
11123 hx=
11124 for x in $host_xm_file; do
11125 if test -f $srcdir/config/$x
11126 then hx="$hx $x"
11127 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11128 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11129 fi
11130 done
11131 host_xm_file="$hx"
11132
11133 tx=
11134 for x in $xm_file; do
11135 if test -f $srcdir/config/$x
11136 then tx="$tx $x"
11137 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11138 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11139 fi
11140 done
11141 xm_file="$tx"
11142
11143 count=a
11144 for f in $tm_file; do
11145 count=${count}x
11146 done
11147 if test $count = ax; then
11148 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11149 else
11150 echo "Using the following target machine macro files:"
11151 for f in $tm_file; do
11152 echo " $srcdir/config/$f"
11153 done
11154 fi
11155
11156 if test x$need_64bit_hwint = xyes; then
11157
11158 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11159
11160 fi
11161
11162 if test x$use_long_long_for_widest_fast_int = xyes; then
11163
11164 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11165
11166 fi
11167
11168 count=a
11169 for f in $host_xm_file; do
11170 count=${count}x
11171 done
11172 if test $count = a; then
11173 :
11174 elif test $count = ax; then
11175 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11176 else
11177 echo "Using the following host machine macro files:"
11178 for f in $host_xm_file; do
11179 echo " $srcdir/config/$f"
11180 done
11181 fi
11182 echo "Using ${out_host_hook_obj} for host machine hooks."
11183
11184 if test "$host_xm_file" != "$build_xm_file"; then
11185 count=a
11186 for f in $build_xm_file; do
11187 count=${count}x
11188 done
11189 if test $count = a; then
11190 :
11191 elif test $count = ax; then
11192 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11193 else
11194 echo "Using the following build machine macro files:"
11195 for f in $build_xm_file; do
11196 echo " $srcdir/config/$f"
11197 done
11198 fi
11199 fi
11200
11201 if test -n "$configured_native_system_header_dir"; then
11202 native_system_header_dir=$configured_native_system_header_dir
11203 fi
11204 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11205
11206
11207 case ${host} in
11208 powerpc*-*-darwin*)
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11210 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11211 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 #include <sys/cdefs.h>
11218 #include <sys/signal.h>
11219 #include <ucontext.h>
11220 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11221
11222 _ACEOF
11223 if ac_fn_c_try_compile "$LINENO"; then :
11224 gcc_cv_mcontext_underscores=no
11225 else
11226 gcc_cv_mcontext_underscores=yes
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11231 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11232 if test $gcc_cv_mcontext_underscores = yes; then
11233
11234 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11235
11236 fi
11237 ;;
11238 esac
11239
11240 # ---------
11241 # Threading
11242 # ---------
11243
11244 # Check if a valid thread package
11245 case ${enable_threads} in
11246 "" | no)
11247 # No threads
11248 target_thread_file='single'
11249 ;;
11250 yes)
11251 # default
11252 target_thread_file='single'
11253 ;;
11254 aix | dce | lynx | mipssde | posix | rtems | \
11255 single | tpf | vxworks | win32)
11256 target_thread_file=${enable_threads}
11257 ;;
11258 *)
11259 echo "${enable_threads} is an unknown thread package" 1>&2
11260 exit 1
11261 ;;
11262 esac
11263
11264 if test x${thread_file} = x; then
11265 # No thread file set by target-specific clauses in config.gcc,
11266 # so use file chosen by default logic above
11267 thread_file=${target_thread_file}
11268 fi
11269
11270 # --------
11271 # UNSORTED
11272 # --------
11273
11274 use_cxa_atexit=no
11275 if test x$enable___cxa_atexit = xyes || \
11276 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11277 if test x$host = x$target; then
11278 case $host in
11279 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11280 # keyed to flag_use_cxa_atexit
11281 *-*-mingw32*)
11282 use_cxa_atexit=yes
11283 ;;
11284 *)
11285 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11286 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11287 use_cxa_atexit=yes
11288 else
11289 echo "__cxa_atexit can't be enabled on this target"
11290 fi
11291
11292 ;;
11293 esac
11294 else
11295 # We can't check for __cxa_atexit when building a cross, so assume
11296 # it is available
11297 use_cxa_atexit=yes
11298 fi
11299 if test x$use_cxa_atexit = xyes; then
11300
11301 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11302
11303 fi
11304 fi
11305
11306 # Look for a file containing extra machine modes.
11307 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11308 extra_modes_file='$(srcdir)'/config/${extra_modes}
11309
11310
11311 cat >>confdefs.h <<_ACEOF
11312 #define EXTRA_MODES_FILE "config/$extra_modes"
11313 _ACEOF
11314
11315 fi
11316
11317 # Convert extra_options into a form suitable for Makefile use.
11318 extra_opt_files=
11319 all_opt_files=
11320 for f in $extra_options; do
11321 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11322 all_opt_files="$all_opt_files $srcdir/config/$f"
11323 done
11324
11325
11326 # auto-host.h is the file containing items generated by autoconf and is
11327 # the first file included by config.h.
11328 # If host=build, it is correct to have bconfig include auto-host.h
11329 # as well. If host!=build, we are in error and need to do more
11330 # work to find out the build config parameters.
11331 if test x$host = x$build
11332 then
11333 build_auto=auto-host.h
11334 else
11335 # We create a subdir, then run autoconf in the subdir.
11336 # To prevent recursion we set host and build for the new
11337 # invocation of configure to the build for this invocation
11338 # of configure.
11339 tempdir=build.$$
11340 rm -rf $tempdir
11341 mkdir $tempdir
11342 cd $tempdir
11343 case ${srcdir} in
11344 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11345 *) realsrcdir=../${srcdir};;
11346 esac
11347 saved_CFLAGS="${CFLAGS}"
11348 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11349 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11350 ${realsrcdir}/configure \
11351 --enable-languages=${enable_languages-all} \
11352 --target=$target_alias --host=$build_alias --build=$build_alias
11353 CFLAGS="${saved_CFLAGS}"
11354
11355 # We just finished tests for the build machine, so rename
11356 # the file auto-build.h in the gcc directory.
11357 mv auto-host.h ../auto-build.h
11358 cd ..
11359 rm -rf $tempdir
11360 build_auto=auto-build.h
11361 fi
11362
11363
11364 tm_file="${tm_file} defaults.h"
11365 tm_p_file="${tm_p_file} tm-preds.h"
11366 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11367 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11368 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11369 # put this back in temporarily.
11370 xm_file="auto-host.h ansidecl.h ${xm_file}"
11371
11372 # --------
11373 # UNSORTED
11374 # --------
11375
11376 # Compile in configure arguments.
11377 if test -f configargs.h ; then
11378 # Being re-configured.
11379 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11380 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11381 else
11382 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11383 fi
11384
11385 # Double all backslashes and backslash all quotes to turn
11386 # gcc_config_arguments into a C string.
11387 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11388 $gcc_config_arguments
11389 EOF
11390 gcc_config_arguments_str=`cat conftest.out`
11391 rm -f conftest.out
11392
11393 cat > configargs.h <<EOF
11394 /* Generated automatically. */
11395 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11396 static const char thread_model[] = "$thread_file";
11397
11398 static const struct {
11399 const char *name, *value;
11400 } configure_default_options[] = $configure_default_options;
11401 EOF
11402
11403 gcc_BASEVER=`cat $srcdir/BASE-VER`
11404 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11405 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11406 if test -f $srcdir/REVISION ; then
11407 gcc_REVISION=`cat $srcdir/REVISION`
11408 else
11409 gcc_REVISION=""
11410 fi
11411 cat > plugin-version.h <<EOF
11412 #include "configargs.h"
11413
11414 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11415 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11416 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11417 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11418
11419 static char basever[] = "$gcc_BASEVER";
11420 static char datestamp[] = "$gcc_DATESTAMP";
11421 static char devphase[] = "$gcc_DEVPHASE";
11422 static char revision[] = "$gcc_REVISION";
11423
11424 /* FIXME plugins: We should make the version information more precise.
11425 One way to do is to add a checksum. */
11426
11427 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11428 devphase, revision,
11429 configuration_arguments};
11430 EOF
11431
11432 # Internationalization
11433 # If we haven't got the data from the intl directory,
11434 # assume NLS is disabled.
11435 USE_NLS=no
11436 LIBINTL=
11437 LIBINTL_DEP=
11438 INCINTL=
11439 XGETTEXT=
11440 GMSGFMT=
11441 POSUB=
11442
11443 if test -f ../intl/config.intl; then
11444 . ../intl/config.intl
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11447 $as_echo_n "checking whether NLS is requested... " >&6; }
11448 if test x"$USE_NLS" != xyes; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453 $as_echo "yes" >&6; }
11454
11455 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11456
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11459 $as_echo_n "checking for catalogs to be installed... " >&6; }
11460 # Look for .po and .gmo files in the source directory.
11461 CATALOGS=
11462 XLINGUAS=
11463 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11464 # If there aren't any .gmo files the shell will give us the
11465 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11466 # weeded out.
11467 case "$cat" in *\**)
11468 continue;;
11469 esac
11470 # The quadruple backslash is collapsed to a double backslash
11471 # by the backticks, then collapsed again by the double quotes,
11472 # leaving us with one backslash in the sed expression (right
11473 # before the dot that mustn't act as a wildcard).
11474 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11475 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11476 # The user is allowed to set LINGUAS to a list of languages to
11477 # install catalogs for. If it's empty that means "all of them."
11478 if test "x$LINGUAS" = x; then
11479 CATALOGS="$CATALOGS $cat"
11480 XLINGUAS="$XLINGUAS $lang"
11481 else
11482 case "$LINGUAS" in *$lang*)
11483 CATALOGS="$CATALOGS $cat"
11484 XLINGUAS="$XLINGUAS $lang"
11485 ;;
11486 esac
11487 fi
11488 done
11489 LINGUAS="$XLINGUAS"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11491 $as_echo "$LINGUAS" >&6; }
11492
11493
11494 DATADIRNAME=share
11495
11496 INSTOBJEXT=.mo
11497
11498 GENCAT=gencat
11499
11500 CATOBJEXT=.gmo
11501
11502 fi
11503
11504 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11505 # -liconv on the link line twice.
11506 case "$LIBINTL" in *$LIBICONV*)
11507 LIBICONV= ;;
11508 esac
11509
11510 # Check whether --enable-secureplt was given.
11511 if test "${enable_secureplt+set}" = set; then :
11512 enableval=$enable_secureplt;
11513 fi
11514
11515
11516 # Check whether --enable-leading-mingw64-underscores was given.
11517 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11518 enableval=$enable_leading_mingw64_underscores;
11519 fi
11520
11521 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11522
11523 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11524
11525 fi
11526
11527 # Check whether --enable-cld was given.
11528 if test "${enable_cld+set}" = set; then :
11529 enableval=$enable_cld;
11530 else
11531 enable_cld=no
11532 fi
11533
11534
11535 # Check whether --enable-frame-pointer was given.
11536 if test "${enable_frame_pointer+set}" = set; then :
11537 enableval=$enable_frame_pointer;
11538 else
11539
11540 case $target_os in
11541 linux* | darwin[8912]*)
11542 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11543 # DWARF2.
11544 enable_frame_pointer=no
11545 ;;
11546 *)
11547 enable_frame_pointer=yes
11548 ;;
11549 esac
11550
11551 fi
11552
11553
11554 # Windows32 Registry support for specifying GCC installation paths.
11555 # Check whether --enable-win32-registry was given.
11556 if test "${enable_win32_registry+set}" = set; then :
11557 enableval=$enable_win32_registry;
11558 fi
11559
11560
11561 case $host_os in
11562 win32 | pe | cygwin* | mingw32* | uwin*)
11563 if test "x$enable_win32_registry" != xno; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11565 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11566 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_func_search_save_LIBS=$LIBS
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char RegOpenKeyExA ();
11580 int
11581 main ()
11582 {
11583 return RegOpenKeyExA ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 for ac_lib in '' advapi32; do
11589 if test -z "$ac_lib"; then
11590 ac_res="none required"
11591 else
11592 ac_res=-l$ac_lib
11593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11594 fi
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_search_RegOpenKeyExA=$ac_res
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext
11600 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11601 break
11602 fi
11603 done
11604 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11605
11606 else
11607 ac_cv_search_RegOpenKeyExA=no
11608 fi
11609 rm conftest.$ac_ext
11610 LIBS=$ac_func_search_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11613 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11614 ac_res=$ac_cv_search_RegOpenKeyExA
11615 if test "$ac_res" != no; then :
11616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11617
11618 else
11619 enable_win32_registry=no
11620 fi
11621
11622 fi
11623
11624 if test "x$enable_win32_registry" != xno; then
11625
11626 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11627
11628
11629 if test "x$enable_win32_registry" != xyes \
11630 && test "x$enable_win32_registry" != x; then
11631
11632 cat >>confdefs.h <<_ACEOF
11633 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11634 _ACEOF
11635
11636 fi
11637 fi
11638 ;;
11639 esac
11640
11641 # Get an absolute path to the GCC top-level source directory
11642 holddir=`${PWDCMD-pwd}`
11643 cd $srcdir
11644 topdir=`${PWDCMD-pwd}`
11645 cd $holddir
11646
11647 # Conditionalize the makefile for this host machine.
11648 xmake_file=
11649 for f in ${host_xmake_file}
11650 do
11651 if test -f ${srcdir}/config/$f
11652 then
11653 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11654 fi
11655 done
11656
11657 # Conditionalize the makefile for this target machine.
11658 tmake_file_=
11659 for f in ${tmake_file}
11660 do
11661 if test -f ${srcdir}/config/$f
11662 then
11663 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11664 fi
11665 done
11666 tmake_file="${tmake_file_}"
11667
11668 out_object_file=`basename $out_file .c`.o
11669 common_out_object_file=`basename $common_out_file .c`.o
11670
11671 tm_file_list="options.h"
11672 tm_include_list="options.h insn-constants.h"
11673 for f in $tm_file; do
11674 case $f in
11675 ./* )
11676 f=`echo $f | sed 's/^..//'`
11677 tm_file_list="${tm_file_list} $f"
11678 tm_include_list="${tm_include_list} $f"
11679 ;;
11680 defaults.h )
11681 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11682 tm_include_list="${tm_include_list} $f"
11683 ;;
11684 * )
11685 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11686 tm_include_list="${tm_include_list} config/$f"
11687 ;;
11688 esac
11689 done
11690
11691 tm_p_file_list=
11692 tm_p_include_list=
11693 for f in $tm_p_file; do
11694 case $f in
11695 tm-preds.h )
11696 tm_p_file_list="${tm_p_file_list} $f"
11697 tm_p_include_list="${tm_p_include_list} $f"
11698 ;;
11699 * )
11700 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11701 tm_p_include_list="${tm_p_include_list} config/$f"
11702 esac
11703 done
11704
11705 xm_file_list=
11706 xm_include_list=
11707 for f in $xm_file; do
11708 case $f in
11709 ansidecl.h )
11710 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11711 xm_include_list="${xm_include_list} $f"
11712 ;;
11713 auto-host.h )
11714 xm_file_list="${xm_file_list} $f"
11715 xm_include_list="${xm_include_list} $f"
11716 ;;
11717 * )
11718 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11719 xm_include_list="${xm_include_list} config/$f"
11720 ;;
11721 esac
11722 done
11723
11724 host_xm_file_list=
11725 host_xm_include_list=
11726 for f in $host_xm_file; do
11727 case $f in
11728 ansidecl.h )
11729 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11730 host_xm_include_list="${host_xm_include_list} $f"
11731 ;;
11732 auto-host.h )
11733 host_xm_file_list="${host_xm_file_list} $f"
11734 host_xm_include_list="${host_xm_include_list} $f"
11735 ;;
11736 * )
11737 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11738 host_xm_include_list="${host_xm_include_list} config/$f"
11739 ;;
11740 esac
11741 done
11742
11743 build_xm_file_list=
11744 for f in $build_xm_file; do
11745 case $f in
11746 ansidecl.h )
11747 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11748 build_xm_include_list="${build_xm_include_list} $f"
11749 ;;
11750 auto-build.h | auto-host.h )
11751 build_xm_file_list="${build_xm_file_list} $f"
11752 build_xm_include_list="${build_xm_include_list} $f"
11753 ;;
11754 * )
11755 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11756 build_xm_include_list="${build_xm_include_list} config/$f"
11757 ;;
11758 esac
11759 done
11760
11761 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11762 # cross-compiler which does not use the native headers and libraries.
11763 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11764 CROSS=
11765 ALL=all.internal
11766 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11767
11768 if test "x$with_build_sysroot" != x; then
11769 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11770 else
11771 # This value is used, even on a native system, because
11772 # CROSS_SYSTEM_HEADER_DIR is just
11773 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11774 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11775 fi
11776
11777 if test x$host != x$target
11778 then
11779 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11780 ALL=all.cross
11781 SYSTEM_HEADER_DIR=$build_system_header_dir
11782 case "$host","$target" in
11783 # Darwin crosses can use the host system's libraries and headers,
11784 # because of the fat library support. Of course, it must be the
11785 # same version of Darwin on both sides. Allow the user to
11786 # just say --target=foo-darwin without a version number to mean
11787 # "the version on this system".
11788 *-*-darwin*,*-*-darwin*)
11789 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11790 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11791 if test $hostos = $targetos -o $targetos = darwin ; then
11792 CROSS=
11793 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11794 with_headers=yes
11795 fi
11796 ;;
11797
11798 i?86-*-*,x86_64-*-* \
11799 | powerpc*-*-*,powerpc64*-*-*)
11800 CROSS="$CROSS -DNATIVE_CROSS" ;;
11801 esac
11802
11803 case $target in
11804 *-*-mingw*)
11805 if test "x$with_headers" = x; then
11806 with_headers=yes
11807 fi
11808 ;;
11809 *)
11810 ;;
11811 esac
11812 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11813 SYSTEM_HEADER_DIR=$build_system_header_dir
11814 fi
11815
11816 # If this is a cross-compiler that does not
11817 # have its own set of headers then define
11818 # inhibit_libc
11819
11820 # If this is using newlib, without having the headers available now,
11821 # then define inhibit_libc in LIBGCC2_CFLAGS.
11822 # This prevents libgcc2 from containing any code which requires libc
11823 # support.
11824 : ${inhibit_libc=false}
11825 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11826 test x$with_newlib = xyes ; } &&
11827 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11828 inhibit_libc=true
11829 fi
11830
11831
11832 # When building gcc with a cross-compiler, we need to adjust things so
11833 # that the generator programs are still built with the native compiler.
11834 # Also, we cannot run fixincludes.
11835
11836 # These are the normal (build=host) settings:
11837 CC_FOR_BUILD='$(CC)'
11838 BUILD_CFLAGS='$(ALL_CFLAGS)'
11839 BUILD_LDFLAGS='$(LDFLAGS)'
11840 STMP_FIXINC=stmp-fixinc
11841
11842 # And these apply if build != host, or we are generating coverage data
11843 if test x$build != x$host || test "x$coverage_flags" != x
11844 then
11845 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11846 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11847 fi
11848
11849 # Expand extra_headers to include complete path.
11850 # This substitutes for lots of t-* files.
11851 extra_headers_list=
11852 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11853 for file in ${extra_headers} ; do
11854 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11855 done
11856
11857 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11858 if test x"$use_gcc_tgmath" = xyes
11859 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11860 fi
11861
11862 # Define collect2 in Makefile.
11863 case $host_can_use_collect2 in
11864 no) collect2= ;;
11865 *) collect2='collect2$(exeext)' ;;
11866 esac
11867
11868
11869 # Add a definition of USE_COLLECT2 if system wants one.
11870 case $use_collect2 in
11871 no) use_collect2= ;;
11872 "") ;;
11873 *)
11874 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11875 xm_defines="${xm_defines} USE_COLLECT2"
11876 case $host_can_use_collect2 in
11877 no)
11878 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11879 ;;
11880 esac
11881 ;;
11882 esac
11883
11884
11885 cat >>confdefs.h <<_ACEOF
11886 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11887 _ACEOF
11888
11889
11890 # ---------------------------
11891 # Assembler & linker features
11892 # ---------------------------
11893
11894 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11895 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11896 # However when ld-new is first executed from the build tree, libtool will
11897 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11898 # to the build tree. While doing this we need to use the previous-stage
11899 # linker, or we have an infinite loop. The presence of a shell script as
11900 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11901 # the gcc/collect-ld script. So we need to know how libtool works, or
11902 # exec-tool will fail.
11903
11904
11905 case `pwd` in
11906 *\ * | *\ *)
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11909 esac
11910
11911
11912
11913 macro_version='2.2.7a'
11914 macro_revision='1.3134'
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 ltmain="$ac_aux_dir/ltmain.sh"
11929
11930 # Backslashify metacharacters that are still active within
11931 # double-quoted strings.
11932 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11933
11934 # Same as above, but do not quote variable references.
11935 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11936
11937 # Sed substitution to delay expansion of an escaped shell variable in a
11938 # double_quote_subst'ed string.
11939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11940
11941 # Sed substitution to delay expansion of an escaped single quote.
11942 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11943
11944 # Sed substitution to avoid accidental globbing in evaled expressions
11945 no_glob_subst='s/\*/\\\*/g'
11946
11947 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11952 $as_echo_n "checking how to print strings... " >&6; }
11953 # Test print first, because it will be a builtin if present.
11954 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11956 ECHO='print -r --'
11957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11958 ECHO='printf %s\n'
11959 else
11960 # Use this function as a fallback that always works.
11961 func_fallback_echo ()
11962 {
11963 eval 'cat <<_LTECHO_EOF
11964 $1
11965 _LTECHO_EOF'
11966 }
11967 ECHO='func_fallback_echo'
11968 fi
11969
11970 # func_echo_all arg...
11971 # Invoke $ECHO with all args, space-separated.
11972 func_echo_all ()
11973 {
11974 $ECHO ""
11975 }
11976
11977 case "$ECHO" in
11978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11979 $as_echo "printf" >&6; } ;;
11980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11981 $as_echo "print -r" >&6; } ;;
11982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11983 $as_echo "cat" >&6; } ;;
11984 esac
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12000 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12001 if test "${ac_cv_path_SED+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12005 for ac_i in 1 2 3 4 5 6 7; do
12006 ac_script="$ac_script$as_nl$ac_script"
12007 done
12008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12009 { ac_script=; unset ac_script;}
12010 if test -z "$SED"; then
12011 ac_path_SED_found=false
12012 # Loop through the user's path and test for each of PROGNAME-LIST
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_prog in sed gsed; do
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12022 # Check for GNU ac_path_SED and select it if it is found.
12023 # Check for GNU $ac_path_SED
12024 case `"$ac_path_SED" --version 2>&1` in
12025 *GNU*)
12026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12027 *)
12028 ac_count=0
12029 $as_echo_n 0123456789 >"conftest.in"
12030 while :
12031 do
12032 cat "conftest.in" "conftest.in" >"conftest.tmp"
12033 mv "conftest.tmp" "conftest.in"
12034 cp "conftest.in" "conftest.nl"
12035 $as_echo '' >> "conftest.nl"
12036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12038 as_fn_arith $ac_count + 1 && ac_count=$as_val
12039 if test $ac_count -gt ${ac_path_SED_max-0}; then
12040 # Best one so far, save it but keep looking for a better one
12041 ac_cv_path_SED="$ac_path_SED"
12042 ac_path_SED_max=$ac_count
12043 fi
12044 # 10*(2^10) chars as input seems more than enough
12045 test $ac_count -gt 10 && break
12046 done
12047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12048 esac
12049
12050 $ac_path_SED_found && break 3
12051 done
12052 done
12053 done
12054 IFS=$as_save_IFS
12055 if test -z "$ac_cv_path_SED"; then
12056 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12057 fi
12058 else
12059 ac_cv_path_SED=$SED
12060 fi
12061
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12064 $as_echo "$ac_cv_path_SED" >&6; }
12065 SED="$ac_cv_path_SED"
12066 rm -f conftest.sed
12067
12068 test -z "$SED" && SED=sed
12069 Xsed="$SED -e 1s/^X//"
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12082 $as_echo_n "checking for fgrep... " >&6; }
12083 if test "${ac_cv_path_FGREP+set}" = set; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12087 then ac_cv_path_FGREP="$GREP -F"
12088 else
12089 if test -z "$FGREP"; then
12090 ac_path_FGREP_found=false
12091 # Loop through the user's path and test for each of PROGNAME-LIST
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12094 do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_prog in fgrep; do
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12101 # Check for GNU ac_path_FGREP and select it if it is found.
12102 # Check for GNU $ac_path_FGREP
12103 case `"$ac_path_FGREP" --version 2>&1` in
12104 *GNU*)
12105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12106 *)
12107 ac_count=0
12108 $as_echo_n 0123456789 >"conftest.in"
12109 while :
12110 do
12111 cat "conftest.in" "conftest.in" >"conftest.tmp"
12112 mv "conftest.tmp" "conftest.in"
12113 cp "conftest.in" "conftest.nl"
12114 $as_echo 'FGREP' >> "conftest.nl"
12115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12117 as_fn_arith $ac_count + 1 && ac_count=$as_val
12118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12119 # Best one so far, save it but keep looking for a better one
12120 ac_cv_path_FGREP="$ac_path_FGREP"
12121 ac_path_FGREP_max=$ac_count
12122 fi
12123 # 10*(2^10) chars as input seems more than enough
12124 test $ac_count -gt 10 && break
12125 done
12126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12127 esac
12128
12129 $ac_path_FGREP_found && break 3
12130 done
12131 done
12132 done
12133 IFS=$as_save_IFS
12134 if test -z "$ac_cv_path_FGREP"; then
12135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12136 fi
12137 else
12138 ac_cv_path_FGREP=$FGREP
12139 fi
12140
12141 fi
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12144 $as_echo "$ac_cv_path_FGREP" >&6; }
12145 FGREP="$ac_cv_path_FGREP"
12146
12147
12148 test -z "$GREP" && GREP=grep
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168 # Check whether --with-gnu-ld was given.
12169 if test "${with_gnu_ld+set}" = set; then :
12170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12171 else
12172 with_gnu_ld=no
12173 fi
12174
12175 ac_prog=ld
12176 if test "$GCC" = yes; then
12177 # Check if gcc -print-prog-name=ld gives a path.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12179 $as_echo_n "checking for ld used by $CC... " >&6; }
12180 case $host in
12181 *-*-mingw*)
12182 # gcc leaves a trailing carriage return which upsets mingw
12183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12184 *)
12185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12186 esac
12187 case $ac_prog in
12188 # Accept absolute paths.
12189 [\\/]* | ?:[\\/]*)
12190 re_direlt='/[^/][^/]*/\.\./'
12191 # Canonicalize the pathname of ld
12192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12195 done
12196 test -z "$LD" && LD="$ac_prog"
12197 ;;
12198 "")
12199 # If it fails, then pretend we aren't using GCC.
12200 ac_prog=ld
12201 ;;
12202 *)
12203 # If it is relative, then search for the first ld in PATH.
12204 with_gnu_ld=unknown
12205 ;;
12206 esac
12207 elif test "$with_gnu_ld" = yes; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12209 $as_echo_n "checking for GNU ld... " >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12212 $as_echo_n "checking for non-GNU ld... " >&6; }
12213 fi
12214 if test "${lt_cv_path_LD+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
12216 else
12217 if test -z "$LD"; then
12218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12219 for ac_dir in $PATH; do
12220 IFS="$lt_save_ifs"
12221 test -z "$ac_dir" && ac_dir=.
12222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12223 lt_cv_path_LD="$ac_dir/$ac_prog"
12224 # Check to see if the program is GNU ld. I'd rather use --version,
12225 # but apparently some variants of GNU ld only accept -v.
12226 # Break only if it was the GNU/non-GNU ld that we prefer.
12227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12228 *GNU* | *'with BFD'*)
12229 test "$with_gnu_ld" != no && break
12230 ;;
12231 *)
12232 test "$with_gnu_ld" != yes && break
12233 ;;
12234 esac
12235 fi
12236 done
12237 IFS="$lt_save_ifs"
12238 else
12239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12240 fi
12241 fi
12242
12243 LD="$lt_cv_path_LD"
12244 if test -n "$LD"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12246 $as_echo "$LD" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250 fi
12251 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12254 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12258 case `$LD -v 2>&1 </dev/null` in
12259 *GNU* | *'with BFD'*)
12260 lt_cv_prog_gnu_ld=yes
12261 ;;
12262 *)
12263 lt_cv_prog_gnu_ld=no
12264 ;;
12265 esac
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12269 with_gnu_ld=$lt_cv_prog_gnu_ld
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12280 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12281 if test "${lt_cv_path_NM+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -n "$NM"; then
12285 # Let the user override the test.
12286 lt_cv_path_NM="$NM"
12287 else
12288 lt_nm_to_check="${ac_tool_prefix}nm"
12289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12290 lt_nm_to_check="$lt_nm_to_check nm"
12291 fi
12292 for lt_tmp_nm in $lt_nm_to_check; do
12293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12295 IFS="$lt_save_ifs"
12296 test -z "$ac_dir" && ac_dir=.
12297 tmp_nm="$ac_dir/$lt_tmp_nm"
12298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12299 # Check to see if the nm accepts a BSD-compat flag.
12300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12301 # nm: unknown option "B" ignored
12302 # Tru64's nm complains that /dev/null is an invalid object file
12303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12304 */dev/null* | *'Invalid file or object type'*)
12305 lt_cv_path_NM="$tmp_nm -B"
12306 break
12307 ;;
12308 *)
12309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12310 */dev/null*)
12311 lt_cv_path_NM="$tmp_nm -p"
12312 break
12313 ;;
12314 *)
12315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12316 continue # so that we can try to find one that supports BSD flags
12317 ;;
12318 esac
12319 ;;
12320 esac
12321 fi
12322 done
12323 IFS="$lt_save_ifs"
12324 done
12325 : ${lt_cv_path_NM=no}
12326 fi
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12329 $as_echo "$lt_cv_path_NM" >&6; }
12330 if test "$lt_cv_path_NM" != "no"; then
12331 NM="$lt_cv_path_NM"
12332 else
12333 # Didn't find any BSD compatible name lister, look for dumpbin.
12334 if test -n "$DUMPBIN"; then :
12335 # Let the user override the test.
12336 else
12337 if test -n "$ac_tool_prefix"; then
12338 for ac_prog in dumpbin "link -dump"
12339 do
12340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$DUMPBIN"; then
12348 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361 done
12362 done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 DUMPBIN=$ac_cv_prog_DUMPBIN
12368 if test -n "$DUMPBIN"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12370 $as_echo "$DUMPBIN" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377 test -n "$DUMPBIN" && break
12378 done
12379 fi
12380 if test -z "$DUMPBIN"; then
12381 ac_ct_DUMPBIN=$DUMPBIN
12382 for ac_prog in dumpbin "link -dump"
12383 do
12384 # Extract the first word of "$ac_prog", so it can be a program name with args.
12385 set dummy $ac_prog; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test -n "$ac_ct_DUMPBIN"; then
12392 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12396 do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12404 fi
12405 done
12406 done
12407 IFS=$as_save_IFS
12408
12409 fi
12410 fi
12411 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12412 if test -n "$ac_ct_DUMPBIN"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12414 $as_echo "$ac_ct_DUMPBIN" >&6; }
12415 else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419
12420
12421 test -n "$ac_ct_DUMPBIN" && break
12422 done
12423
12424 if test "x$ac_ct_DUMPBIN" = x; then
12425 DUMPBIN=":"
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428 yes:)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431 ac_tool_warned=yes ;;
12432 esac
12433 DUMPBIN=$ac_ct_DUMPBIN
12434 fi
12435 fi
12436
12437 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12438 *COFF*)
12439 DUMPBIN="$DUMPBIN -symbols"
12440 ;;
12441 *)
12442 DUMPBIN=:
12443 ;;
12444 esac
12445 fi
12446
12447 if test "$DUMPBIN" != ":"; then
12448 NM="$DUMPBIN"
12449 fi
12450 fi
12451 test -z "$NM" && NM=nm
12452
12453
12454
12455
12456
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12459 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12460 if test "${lt_cv_nm_interface+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 lt_cv_nm_interface="BSD nm"
12464 echo "int some_variable = 0;" > conftest.$ac_ext
12465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12466 (eval "$ac_compile" 2>conftest.err)
12467 cat conftest.err >&5
12468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12470 cat conftest.err >&5
12471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12472 cat conftest.out >&5
12473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12474 lt_cv_nm_interface="MS dumpbin"
12475 fi
12476 rm -f conftest*
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12479 $as_echo "$lt_cv_nm_interface" >&6; }
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12482 $as_echo_n "checking whether ln -s works... " >&6; }
12483 LN_S=$as_ln_s
12484 if test "$LN_S" = "ln -s"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12489 $as_echo "no, using $LN_S" >&6; }
12490 fi
12491
12492 # find the maximum length of command line arguments
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12494 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12495 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 i=0
12499 teststring="ABCD"
12500
12501 case $build_os in
12502 msdosdjgpp*)
12503 # On DJGPP, this test can blow up pretty badly due to problems in libc
12504 # (any single argument exceeding 2000 bytes causes a buffer overrun
12505 # during glob expansion). Even if it were fixed, the result of this
12506 # check would be larger than it should be.
12507 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12508 ;;
12509
12510 gnu*)
12511 # Under GNU Hurd, this test is not required because there is
12512 # no limit to the length of command line arguments.
12513 # Libtool will interpret -1 as no limit whatsoever
12514 lt_cv_sys_max_cmd_len=-1;
12515 ;;
12516
12517 cygwin* | mingw* | cegcc*)
12518 # On Win9x/ME, this test blows up -- it succeeds, but takes
12519 # about 5 minutes as the teststring grows exponentially.
12520 # Worse, since 9x/ME are not pre-emptively multitasking,
12521 # you end up with a "frozen" computer, even though with patience
12522 # the test eventually succeeds (with a max line length of 256k).
12523 # Instead, let's just punt: use the minimum linelength reported by
12524 # all of the supported platforms: 8192 (on NT/2K/XP).
12525 lt_cv_sys_max_cmd_len=8192;
12526 ;;
12527
12528 mint*)
12529 # On MiNT this can take a long time and run out of memory.
12530 lt_cv_sys_max_cmd_len=8192;
12531 ;;
12532
12533 amigaos*)
12534 # On AmigaOS with pdksh, this test takes hours, literally.
12535 # So we just punt and use a minimum line length of 8192.
12536 lt_cv_sys_max_cmd_len=8192;
12537 ;;
12538
12539 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12540 # This has been around since 386BSD, at least. Likely further.
12541 if test -x /sbin/sysctl; then
12542 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12543 elif test -x /usr/sbin/sysctl; then
12544 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12545 else
12546 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12547 fi
12548 # And add a safety zone
12549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12551 ;;
12552
12553 interix*)
12554 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12555 lt_cv_sys_max_cmd_len=196608
12556 ;;
12557
12558 osf*)
12559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12561 # nice to cause kernel panics so lets avoid the loop below.
12562 # First set a reasonable default.
12563 lt_cv_sys_max_cmd_len=16384
12564 #
12565 if test -x /sbin/sysconfig; then
12566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12568 esac
12569 fi
12570 ;;
12571 sco3.2v5*)
12572 lt_cv_sys_max_cmd_len=102400
12573 ;;
12574 sysv5* | sco5v6* | sysv4.2uw2*)
12575 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12576 if test -n "$kargmax"; then
12577 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12578 else
12579 lt_cv_sys_max_cmd_len=32768
12580 fi
12581 ;;
12582 *)
12583 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12584 if test -n "$lt_cv_sys_max_cmd_len"; then
12585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12587 else
12588 # Make teststring a little bigger before we do anything with it.
12589 # a 1K string should be a reasonable start.
12590 for i in 1 2 3 4 5 6 7 8 ; do
12591 teststring=$teststring$teststring
12592 done
12593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12594 # If test is not a shell built-in, we'll probably end up computing a
12595 # maximum length that is only half of the actual maximum length, but
12596 # we can't tell.
12597 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12598 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12599 test $i != 17 # 1/2 MB should be enough
12600 do
12601 i=`expr $i + 1`
12602 teststring=$teststring$teststring
12603 done
12604 # Only check the string length outside the loop.
12605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12606 teststring=
12607 # Add a significant safety factor because C++ compilers can tack on
12608 # massive amounts of additional arguments before passing them to the
12609 # linker. It appears as though 1/2 is a usable value.
12610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12611 fi
12612 ;;
12613 esac
12614
12615 fi
12616
12617 if test -n $lt_cv_sys_max_cmd_len ; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12619 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12622 $as_echo "none" >&6; }
12623 fi
12624 max_cmd_len=$lt_cv_sys_max_cmd_len
12625
12626
12627
12628
12629
12630
12631 : ${CP="cp -f"}
12632 : ${MV="mv -f"}
12633 : ${RM="rm -f"}
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12636 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12637 # Try some XSI features
12638 xsi_shell=no
12639 ( _lt_dummy="a/b/c"
12640 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12641 = c,a/b,, \
12642 && eval 'test $(( 1 + 1 )) -eq 2 \
12643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12644 && xsi_shell=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12646 $as_echo "$xsi_shell" >&6; }
12647
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12650 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12651 lt_shell_append=no
12652 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12653 >/dev/null 2>&1 \
12654 && lt_shell_append=yes
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12656 $as_echo "$lt_shell_append" >&6; }
12657
12658
12659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12660 lt_unset=unset
12661 else
12662 lt_unset=false
12663 fi
12664
12665
12666
12667
12668
12669 # test EBCDIC or ASCII
12670 case `echo X|tr X '\101'` in
12671 A) # ASCII based system
12672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12673 lt_SP2NL='tr \040 \012'
12674 lt_NL2SP='tr \015\012 \040\040'
12675 ;;
12676 *) # EBCDIC based system
12677 lt_SP2NL='tr \100 \n'
12678 lt_NL2SP='tr \r\n \100\100'
12679 ;;
12680 esac
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12692 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 lt_cv_ld_reload_flag='-r'
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12699 reload_flag=$lt_cv_ld_reload_flag
12700 case $reload_flag in
12701 "" | " "*) ;;
12702 *) reload_flag=" $reload_flag" ;;
12703 esac
12704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12705 case $host_os in
12706 darwin*)
12707 if test "$GCC" = yes; then
12708 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12709 else
12710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12711 fi
12712 ;;
12713 esac
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 if test -n "$OBJDUMP"; then
12732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12736 do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745 done
12746 done
12747 IFS=$as_save_IFS
12748
12749 fi
12750 fi
12751 OBJDUMP=$ac_cv_prog_OBJDUMP
12752 if test -n "$OBJDUMP"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12754 $as_echo "$OBJDUMP" >&6; }
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 fi
12759
12760
12761 fi
12762 if test -z "$ac_cv_prog_OBJDUMP"; then
12763 ac_ct_OBJDUMP=$OBJDUMP
12764 # Extract the first word of "objdump", so it can be a program name with args.
12765 set dummy objdump; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$ac_ct_OBJDUMP"; then
12772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 fi
12790 fi
12791 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12792 if test -n "$ac_ct_OBJDUMP"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12794 $as_echo "$ac_ct_OBJDUMP" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799
12800 if test "x$ac_ct_OBJDUMP" = x; then
12801 OBJDUMP="false"
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804 yes:)
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807 ac_tool_warned=yes ;;
12808 esac
12809 OBJDUMP=$ac_ct_OBJDUMP
12810 fi
12811 else
12812 OBJDUMP="$ac_cv_prog_OBJDUMP"
12813 fi
12814
12815 test -z "$OBJDUMP" && OBJDUMP=objdump
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12827 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831 lt_cv_file_magic_test_file=
12832 lt_cv_deplibs_check_method='unknown'
12833 # Need to set the preceding variable on all platforms that support
12834 # interlibrary dependencies.
12835 # 'none' -- dependencies not supported.
12836 # `unknown' -- same as none, but documents that we really don't know.
12837 # 'pass_all' -- all dependencies passed with no checks.
12838 # 'test_compile' -- check by making test program.
12839 # 'file_magic [[regex]]' -- check by looking for files in library path
12840 # which responds to the $file_magic_cmd with a given extended regex.
12841 # If you have `file' or equivalent on your system and you're not sure
12842 # whether `pass_all' will *always* work, you probably want this one.
12843
12844 case $host_os in
12845 aix[4-9]*)
12846 lt_cv_deplibs_check_method=pass_all
12847 ;;
12848
12849 beos*)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852
12853 bsdi[45]*)
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12857 ;;
12858
12859 cygwin*)
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12863 ;;
12864
12865 mingw* | pw32*)
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12868 # unless we find 'file', for example because we are cross-compiling.
12869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12872 lt_cv_file_magic_cmd='func_win32_libid'
12873 else
12874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12875 lt_cv_file_magic_cmd='$OBJDUMP -f'
12876 fi
12877 ;;
12878
12879 cegcc*)
12880 # use the weaker test based on 'objdump'. See mingw*.
12881 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12882 lt_cv_file_magic_cmd='$OBJDUMP -f'
12883 ;;
12884
12885 darwin* | rhapsody*)
12886 lt_cv_deplibs_check_method=pass_all
12887 ;;
12888
12889 freebsd* | dragonfly*)
12890 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12891 case $host_cpu in
12892 i*86 )
12893 # Not sure whether the presence of OpenBSD here was a mistake.
12894 # Let's accept both of them until this is cleared up.
12895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12896 lt_cv_file_magic_cmd=/usr/bin/file
12897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12898 ;;
12899 esac
12900 else
12901 lt_cv_deplibs_check_method=pass_all
12902 fi
12903 ;;
12904
12905 gnu*)
12906 lt_cv_deplibs_check_method=pass_all
12907 ;;
12908
12909 haiku*)
12910 lt_cv_deplibs_check_method=pass_all
12911 ;;
12912
12913 hpux10.20* | hpux11*)
12914 lt_cv_file_magic_cmd=/usr/bin/file
12915 case $host_cpu in
12916 ia64*)
12917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12918 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12919 ;;
12920 hppa*64*)
12921 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]'
12922 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12923 ;;
12924 *)
12925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12926 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12927 ;;
12928 esac
12929 ;;
12930
12931 interix[3-9]*)
12932 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12934 ;;
12935
12936 irix5* | irix6* | nonstopux*)
12937 case $LD in
12938 *-32|*"-32 ") libmagic=32-bit;;
12939 *-n32|*"-n32 ") libmagic=N32;;
12940 *-64|*"-64 ") libmagic=64-bit;;
12941 *) libmagic=never-match;;
12942 esac
12943 lt_cv_deplibs_check_method=pass_all
12944 ;;
12945
12946 # This must be Linux ELF.
12947 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12948 lt_cv_deplibs_check_method=pass_all
12949 ;;
12950
12951 netbsd*)
12952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12954 else
12955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12956 fi
12957 ;;
12958
12959 newos6*)
12960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12961 lt_cv_file_magic_cmd=/usr/bin/file
12962 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12963 ;;
12964
12965 *nto* | *qnx*)
12966 lt_cv_deplibs_check_method=pass_all
12967 ;;
12968
12969 openbsd*)
12970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12972 else
12973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12974 fi
12975 ;;
12976
12977 osf3* | osf4* | osf5*)
12978 lt_cv_deplibs_check_method=pass_all
12979 ;;
12980
12981 rdos*)
12982 lt_cv_deplibs_check_method=pass_all
12983 ;;
12984
12985 solaris*)
12986 lt_cv_deplibs_check_method=pass_all
12987 ;;
12988
12989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992
12993 sysv4 | sysv4.3*)
12994 case $host_vendor in
12995 motorola)
12996 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]'
12997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12998 ;;
12999 ncr)
13000 lt_cv_deplibs_check_method=pass_all
13001 ;;
13002 sequent)
13003 lt_cv_file_magic_cmd='/bin/file'
13004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13005 ;;
13006 sni)
13007 lt_cv_file_magic_cmd='/bin/file'
13008 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13009 lt_cv_file_magic_test_file=/lib/libc.so
13010 ;;
13011 siemens)
13012 lt_cv_deplibs_check_method=pass_all
13013 ;;
13014 pc)
13015 lt_cv_deplibs_check_method=pass_all
13016 ;;
13017 esac
13018 ;;
13019
13020 tpf*)
13021 lt_cv_deplibs_check_method=pass_all
13022 ;;
13023 esac
13024
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13027 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13028 file_magic_cmd=$lt_cv_file_magic_cmd
13029 deplibs_check_method=$lt_cv_deplibs_check_method
13030 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}ar; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_AR+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$AR"; then
13052 ac_cv_prog_AR="$AR" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_AR="${ac_tool_prefix}ar"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13064 fi
13065 done
13066 done
13067 IFS=$as_save_IFS
13068
13069 fi
13070 fi
13071 AR=$ac_cv_prog_AR
13072 if test -n "$AR"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13074 $as_echo "$AR" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079
13080
13081 fi
13082 if test -z "$ac_cv_prog_AR"; then
13083 ac_ct_AR=$AR
13084 # Extract the first word of "ar", so it can be a program name with args.
13085 set dummy ar; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$ac_ct_AR"; then
13092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_AR="ar"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105 done
13106 done
13107 IFS=$as_save_IFS
13108
13109 fi
13110 fi
13111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13112 if test -n "$ac_ct_AR"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13114 $as_echo "$ac_ct_AR" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13118 fi
13119
13120 if test "x$ac_ct_AR" = x; then
13121 AR="false"
13122 else
13123 case $cross_compiling:$ac_tool_warned in
13124 yes:)
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127 ac_tool_warned=yes ;;
13128 esac
13129 AR=$ac_ct_AR
13130 fi
13131 else
13132 AR="$ac_cv_prog_AR"
13133 fi
13134
13135 test -z "$AR" && AR=ar
13136 test -z "$AR_FLAGS" && AR_FLAGS=cru
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 if test -n "$ac_tool_prefix"; then
13149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13150 set dummy ${ac_tool_prefix}strip; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if test "${ac_cv_prog_STRIP+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 if test -n "$STRIP"; then
13157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13158 else
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13169 fi
13170 done
13171 done
13172 IFS=$as_save_IFS
13173
13174 fi
13175 fi
13176 STRIP=$ac_cv_prog_STRIP
13177 if test -n "$STRIP"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13179 $as_echo "$STRIP" >&6; }
13180 else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13183 fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_prog_STRIP"; then
13188 ac_ct_STRIP=$STRIP
13189 # Extract the first word of "strip", so it can be a program name with args.
13190 set dummy strip; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$ac_ct_STRIP"; then
13197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_ac_ct_STRIP="strip"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13209 fi
13210 done
13211 done
13212 IFS=$as_save_IFS
13213
13214 fi
13215 fi
13216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13217 if test -n "$ac_ct_STRIP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13219 $as_echo "$ac_ct_STRIP" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13223 fi
13224
13225 if test "x$ac_ct_STRIP" = x; then
13226 STRIP=":"
13227 else
13228 case $cross_compiling:$ac_tool_warned in
13229 yes:)
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13232 ac_tool_warned=yes ;;
13233 esac
13234 STRIP=$ac_ct_STRIP
13235 fi
13236 else
13237 STRIP="$ac_cv_prog_STRIP"
13238 fi
13239
13240 test -z "$STRIP" && STRIP=:
13241
13242
13243
13244
13245
13246
13247 if test -n "$ac_tool_prefix"; then
13248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$RANLIB"; then
13256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13260 do
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13268 fi
13269 done
13270 done
13271 IFS=$as_save_IFS
13272
13273 fi
13274 fi
13275 RANLIB=$ac_cv_prog_RANLIB
13276 if test -n "$RANLIB"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13278 $as_echo "$RANLIB" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284
13285 fi
13286 if test -z "$ac_cv_prog_RANLIB"; then
13287 ac_ct_RANLIB=$RANLIB
13288 # Extract the first word of "ranlib", so it can be a program name with args.
13289 set dummy ranlib; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 if test -n "$ac_ct_RANLIB"; then
13296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13297 else
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_ac_ct_RANLIB="ranlib"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313 fi
13314 fi
13315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13316 if test -n "$ac_ct_RANLIB"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13318 $as_echo "$ac_ct_RANLIB" >&6; }
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13322 fi
13323
13324 if test "x$ac_ct_RANLIB" = x; then
13325 RANLIB=":"
13326 else
13327 case $cross_compiling:$ac_tool_warned in
13328 yes:)
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13331 ac_tool_warned=yes ;;
13332 esac
13333 RANLIB=$ac_ct_RANLIB
13334 fi
13335 else
13336 RANLIB="$ac_cv_prog_RANLIB"
13337 fi
13338
13339 test -z "$RANLIB" && RANLIB=:
13340
13341
13342
13343
13344
13345
13346 # Determine commands to create old-style static archives.
13347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13348 old_postinstall_cmds='chmod 644 $oldlib'
13349 old_postuninstall_cmds=
13350
13351 if test -n "$RANLIB"; then
13352 case $host_os in
13353 openbsd*)
13354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13355 ;;
13356 *)
13357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13358 ;;
13359 esac
13360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13361 fi
13362
13363 case $host_os in
13364 darwin*)
13365 lock_old_archive_extraction=yes ;;
13366 *)
13367 lock_old_archive_extraction=no ;;
13368 esac
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
13406
13407
13408 # If no C compiler was specified, use CC.
13409 LTCC=${LTCC-"$CC"}
13410
13411 # If no C compiler flags were specified, use CFLAGS.
13412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13413
13414 # Allow CC to be a program name with arguments.
13415 compiler=$CC
13416
13417
13418 # Check for command to grab the raw symbol name followed by C symbol from nm.
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13421 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424
13425 # These are sane defaults that work on at least a few old systems.
13426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13427
13428 # Character class describing NM global symbol codes.
13429 symcode='[BCDEGRST]'
13430
13431 # Regexp to match symbols that can be accessed directly from C.
13432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13433
13434 # Define system-specific variables.
13435 case $host_os in
13436 aix*)
13437 symcode='[BCDT]'
13438 ;;
13439 cygwin* | mingw* | pw32* | cegcc*)
13440 symcode='[ABCDGISTW]'
13441 ;;
13442 hpux*)
13443 if test "$host_cpu" = ia64; then
13444 symcode='[ABCDEGRST]'
13445 fi
13446 ;;
13447 irix* | nonstopux*)
13448 symcode='[BCDEGRST]'
13449 ;;
13450 osf*)
13451 symcode='[BCDEGQRST]'
13452 ;;
13453 solaris*)
13454 symcode='[BDRT]'
13455 ;;
13456 sco3.2v5*)
13457 symcode='[DT]'
13458 ;;
13459 sysv4.2uw2*)
13460 symcode='[DT]'
13461 ;;
13462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13463 symcode='[ABDT]'
13464 ;;
13465 sysv4)
13466 symcode='[DFNSTU]'
13467 ;;
13468 esac
13469
13470 # If we're using GNU nm, then use its standard symbol codes.
13471 case `$NM -V 2>&1` in
13472 *GNU* | *'with BFD'*)
13473 symcode='[ABCDGIRSTW]' ;;
13474 esac
13475
13476 # Transform an extracted symbol line into a proper C declaration.
13477 # Some systems (esp. on ia64) link data and code symbols differently,
13478 # so use this general approach.
13479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13480
13481 # Transform an extracted symbol line into symbol name and symbol address
13482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13483 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'"
13484
13485 # Handle CRLF in mingw tool chain
13486 opt_cr=
13487 case $build_os in
13488 mingw*)
13489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13490 ;;
13491 esac
13492
13493 # Try without a prefix underscore, then with it.
13494 for ac_symprfx in "" "_"; do
13495
13496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13497 symxfrm="\\1 $ac_symprfx\\2 \\2"
13498
13499 # Write the raw and C identifiers.
13500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13501 # Fake it for dumpbin and say T for any non-static function
13502 # and D for any global variable.
13503 # Also find C++ and __fastcall symbols from MSVC++,
13504 # which start with @ or ?.
13505 lt_cv_sys_global_symbol_pipe="$AWK '"\
13506 " {last_section=section; section=\$ 3};"\
13507 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13508 " \$ 0!~/External *\|/{next};"\
13509 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13510 " {if(hide[section]) next};"\
13511 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13512 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13513 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13514 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13515 " ' prfx=^$ac_symprfx"
13516 else
13517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13518 fi
13519
13520 # Check to see that the pipe works correctly.
13521 pipe_works=no
13522
13523 rm -f conftest*
13524 cat > conftest.$ac_ext <<_LT_EOF
13525 #ifdef __cplusplus
13526 extern "C" {
13527 #endif
13528 char nm_test_var;
13529 void nm_test_func(void);
13530 void nm_test_func(void){}
13531 #ifdef __cplusplus
13532 }
13533 #endif
13534 int main(){nm_test_var='a';nm_test_func();return(0);}
13535 _LT_EOF
13536
13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13538 (eval $ac_compile) 2>&5
13539 ac_status=$?
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 # Now try to grab the symbols.
13543 nlist=conftest.nm
13544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13545 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; } && test -s "$nlist"; then
13549 # Try sorting and uniquifying the output.
13550 if sort "$nlist" | uniq > "$nlist"T; then
13551 mv -f "$nlist"T "$nlist"
13552 else
13553 rm -f "$nlist"T
13554 fi
13555
13556 # Make sure that we snagged all the symbols we need.
13557 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13558 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13559 cat <<_LT_EOF > conftest.$ac_ext
13560 #ifdef __cplusplus
13561 extern "C" {
13562 #endif
13563
13564 _LT_EOF
13565 # Now generate the symbol file.
13566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13567
13568 cat <<_LT_EOF >> conftest.$ac_ext
13569
13570 /* The mapping between symbol names and symbols. */
13571 const struct {
13572 const char *name;
13573 void *address;
13574 }
13575 lt__PROGRAM__LTX_preloaded_symbols[] =
13576 {
13577 { "@PROGRAM@", (void *) 0 },
13578 _LT_EOF
13579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13580 cat <<\_LT_EOF >> conftest.$ac_ext
13581 {0, (void *) 0}
13582 };
13583
13584 /* This works around a problem in FreeBSD linker */
13585 #ifdef FREEBSD_WORKAROUND
13586 static const void *lt_preloaded_setup() {
13587 return lt__PROGRAM__LTX_preloaded_symbols;
13588 }
13589 #endif
13590
13591 #ifdef __cplusplus
13592 }
13593 #endif
13594 _LT_EOF
13595 # Now try linking the two files.
13596 mv conftest.$ac_objext conftstm.$ac_objext
13597 lt_save_LIBS="$LIBS"
13598 lt_save_CFLAGS="$CFLAGS"
13599 LIBS="conftstm.$ac_objext"
13600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13602 (eval $ac_link) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13606 pipe_works=yes
13607 fi
13608 LIBS="$lt_save_LIBS"
13609 CFLAGS="$lt_save_CFLAGS"
13610 else
13611 echo "cannot find nm_test_func in $nlist" >&5
13612 fi
13613 else
13614 echo "cannot find nm_test_var in $nlist" >&5
13615 fi
13616 else
13617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13618 fi
13619 else
13620 echo "$progname: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 fi
13623 rm -rf conftest* conftst*
13624
13625 # Do not use the global_symbol_pipe unless it works.
13626 if test "$pipe_works" = yes; then
13627 break
13628 else
13629 lt_cv_sys_global_symbol_pipe=
13630 fi
13631 done
13632
13633 fi
13634
13635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13636 lt_cv_sys_global_symbol_to_cdecl=
13637 fi
13638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13640 $as_echo "failed" >&6; }
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13643 $as_echo "ok" >&6; }
13644 fi
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667 # Check whether --enable-libtool-lock was given.
13668 if test "${enable_libtool_lock+set}" = set; then :
13669 enableval=$enable_libtool_lock;
13670 fi
13671
13672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13673
13674 # Some flags need to be propagated to the compiler or linker for good
13675 # libtool support.
13676 case $host in
13677 ia64-*-hpux*)
13678 # Find out which ABI we are using.
13679 echo 'int i;' > conftest.$ac_ext
13680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }; then
13685 case `/usr/bin/file conftest.$ac_objext` in
13686 *ELF-32*)
13687 HPUX_IA64_MODE="32"
13688 ;;
13689 *ELF-64*)
13690 HPUX_IA64_MODE="64"
13691 ;;
13692 esac
13693 fi
13694 rm -rf conftest*
13695 ;;
13696 *-*-irix6*)
13697 # Find out which ABI we are using.
13698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13700 (eval $ac_compile) 2>&5
13701 ac_status=$?
13702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703 test $ac_status = 0; }; then
13704 if test "$lt_cv_prog_gnu_ld" = yes; then
13705 case `/usr/bin/file conftest.$ac_objext` in
13706 *32-bit*)
13707 LD="${LD-ld} -melf32bsmip"
13708 ;;
13709 *N32*)
13710 LD="${LD-ld} -melf32bmipn32"
13711 ;;
13712 *64-bit*)
13713 LD="${LD-ld} -melf64bmip"
13714 ;;
13715 esac
13716 else
13717 case `/usr/bin/file conftest.$ac_objext` in
13718 *32-bit*)
13719 LD="${LD-ld} -32"
13720 ;;
13721 *N32*)
13722 LD="${LD-ld} -n32"
13723 ;;
13724 *64-bit*)
13725 LD="${LD-ld} -64"
13726 ;;
13727 esac
13728 fi
13729 fi
13730 rm -rf conftest*
13731 ;;
13732
13733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13735 # Find out which ABI we are using.
13736 echo 'int i;' > conftest.$ac_ext
13737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13741 test $ac_status = 0; }; then
13742 case `/usr/bin/file conftest.o` in
13743 *32-bit*)
13744 case $host in
13745 x86_64-*kfreebsd*-gnu)
13746 LD="${LD-ld} -m elf_i386_fbsd"
13747 ;;
13748 x86_64-*linux*)
13749 LD="${LD-ld} -m elf_i386"
13750 ;;
13751 ppc64-*linux*|powerpc64-*linux*)
13752 LD="${LD-ld} -m elf32ppclinux"
13753 ;;
13754 s390x-*linux*)
13755 LD="${LD-ld} -m elf_s390"
13756 ;;
13757 sparc64-*linux*)
13758 LD="${LD-ld} -m elf32_sparc"
13759 ;;
13760 esac
13761 ;;
13762 *64-bit*)
13763 case $host in
13764 x86_64-*kfreebsd*-gnu)
13765 LD="${LD-ld} -m elf_x86_64_fbsd"
13766 ;;
13767 x86_64-*linux*)
13768 LD="${LD-ld} -m elf_x86_64"
13769 ;;
13770 ppc*-*linux*|powerpc*-*linux*)
13771 LD="${LD-ld} -m elf64ppc"
13772 ;;
13773 s390*-*linux*|s390*-*tpf*)
13774 LD="${LD-ld} -m elf64_s390"
13775 ;;
13776 sparc*-*linux*)
13777 LD="${LD-ld} -m elf64_sparc"
13778 ;;
13779 esac
13780 ;;
13781 esac
13782 fi
13783 rm -rf conftest*
13784 ;;
13785
13786 *-*-sco3.2v5*)
13787 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13788 SAVE_CFLAGS="$CFLAGS"
13789 CFLAGS="$CFLAGS -belf"
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13791 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13792 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 ac_ext=c
13796 ac_cpp='$CPP $CPPFLAGS'
13797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13800
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803
13804 int
13805 main ()
13806 {
13807
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 lt_cv_cc_needs_belf=yes
13814 else
13815 lt_cv_cc_needs_belf=no
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 ac_ext=c
13820 ac_cpp='$CPP $CPPFLAGS'
13821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13827 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13830 CFLAGS="$SAVE_CFLAGS"
13831 fi
13832 ;;
13833 sparc*-*solaris*)
13834 # Find out which ABI we are using.
13835 echo 'int i;' > conftest.$ac_ext
13836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837 (eval $ac_compile) 2>&5
13838 ac_status=$?
13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840 test $ac_status = 0; }; then
13841 case `/usr/bin/file conftest.o` in
13842 *64-bit*)
13843 case $lt_cv_prog_gnu_ld in
13844 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13845 *)
13846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13847 LD="${LD-ld} -64"
13848 fi
13849 ;;
13850 esac
13851 ;;
13852 esac
13853 fi
13854 rm -rf conftest*
13855 ;;
13856 esac
13857
13858 need_locks="$enable_libtool_lock"
13859
13860
13861 case $host_os in
13862 rhapsody* | darwin*)
13863 if test -n "$ac_tool_prefix"; then
13864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13865 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867 $as_echo_n "checking for $ac_word... " >&6; }
13868 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 if test -n "$DSYMUTIL"; then
13872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13873 else
13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875 for as_dir in $PATH
13876 do
13877 IFS=$as_save_IFS
13878 test -z "$as_dir" && as_dir=.
13879 for ac_exec_ext in '' $ac_executable_extensions; do
13880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 break 2
13884 fi
13885 done
13886 done
13887 IFS=$as_save_IFS
13888
13889 fi
13890 fi
13891 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13892 if test -n "$DSYMUTIL"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13894 $as_echo "$DSYMUTIL" >&6; }
13895 else
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897 $as_echo "no" >&6; }
13898 fi
13899
13900
13901 fi
13902 if test -z "$ac_cv_prog_DSYMUTIL"; then
13903 ac_ct_DSYMUTIL=$DSYMUTIL
13904 # Extract the first word of "dsymutil", so it can be a program name with args.
13905 set dummy dsymutil; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907 $as_echo_n "checking for $ac_word... " >&6; }
13908 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 if test -n "$ac_ct_DSYMUTIL"; then
13912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13913 else
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13916 do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925 done
13926 done
13927 IFS=$as_save_IFS
13928
13929 fi
13930 fi
13931 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13932 if test -n "$ac_ct_DSYMUTIL"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13934 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13935 else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939
13940 if test "x$ac_ct_DSYMUTIL" = x; then
13941 DSYMUTIL=":"
13942 else
13943 case $cross_compiling:$ac_tool_warned in
13944 yes:)
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13947 ac_tool_warned=yes ;;
13948 esac
13949 DSYMUTIL=$ac_ct_DSYMUTIL
13950 fi
13951 else
13952 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13953 fi
13954
13955 if test -n "$ac_tool_prefix"; then
13956 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13957 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 if test -n "$NMEDIT"; then
13964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13976 fi
13977 done
13978 done
13979 IFS=$as_save_IFS
13980
13981 fi
13982 fi
13983 NMEDIT=$ac_cv_prog_NMEDIT
13984 if test -n "$NMEDIT"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13986 $as_echo "$NMEDIT" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13990 fi
13991
13992
13993 fi
13994 if test -z "$ac_cv_prog_NMEDIT"; then
13995 ac_ct_NMEDIT=$NMEDIT
13996 # Extract the first word of "nmedit", so it can be a program name with args.
13997 set dummy nmedit; ac_word=$2
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13999 $as_echo_n "checking for $ac_word... " >&6; }
14000 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 if test -n "$ac_ct_NMEDIT"; then
14004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14005 else
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14008 do
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14016 fi
14017 done
14018 done
14019 IFS=$as_save_IFS
14020
14021 fi
14022 fi
14023 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14024 if test -n "$ac_ct_NMEDIT"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14026 $as_echo "$ac_ct_NMEDIT" >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14030 fi
14031
14032 if test "x$ac_ct_NMEDIT" = x; then
14033 NMEDIT=":"
14034 else
14035 case $cross_compiling:$ac_tool_warned in
14036 yes:)
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14039 ac_tool_warned=yes ;;
14040 esac
14041 NMEDIT=$ac_ct_NMEDIT
14042 fi
14043 else
14044 NMEDIT="$ac_cv_prog_NMEDIT"
14045 fi
14046
14047 if test -n "$ac_tool_prefix"; then
14048 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14049 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14051 $as_echo_n "checking for $ac_word... " >&6; }
14052 if test "${ac_cv_prog_LIPO+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if test -n "$LIPO"; then
14056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14057 else
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14060 do
14061 IFS=$as_save_IFS
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 break 2
14068 fi
14069 done
14070 done
14071 IFS=$as_save_IFS
14072
14073 fi
14074 fi
14075 LIPO=$ac_cv_prog_LIPO
14076 if test -n "$LIPO"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14078 $as_echo "$LIPO" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14082 fi
14083
14084
14085 fi
14086 if test -z "$ac_cv_prog_LIPO"; then
14087 ac_ct_LIPO=$LIPO
14088 # Extract the first word of "lipo", so it can be a program name with args.
14089 set dummy lipo; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$ac_ct_LIPO"; then
14096 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14100 do
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14105 ac_cv_prog_ac_ct_LIPO="lipo"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14108 fi
14109 done
14110 done
14111 IFS=$as_save_IFS
14112
14113 fi
14114 fi
14115 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14116 if test -n "$ac_ct_LIPO"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14118 $as_echo "$ac_ct_LIPO" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14122 fi
14123
14124 if test "x$ac_ct_LIPO" = x; then
14125 LIPO=":"
14126 else
14127 case $cross_compiling:$ac_tool_warned in
14128 yes:)
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14131 ac_tool_warned=yes ;;
14132 esac
14133 LIPO=$ac_ct_LIPO
14134 fi
14135 else
14136 LIPO="$ac_cv_prog_LIPO"
14137 fi
14138
14139 if test -n "$ac_tool_prefix"; then
14140 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14141 set dummy ${ac_tool_prefix}otool; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143 $as_echo_n "checking for $ac_word... " >&6; }
14144 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 if test -n "$OTOOL"; then
14148 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14152 do
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14160 fi
14161 done
14162 done
14163 IFS=$as_save_IFS
14164
14165 fi
14166 fi
14167 OTOOL=$ac_cv_prog_OTOOL
14168 if test -n "$OTOOL"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14170 $as_echo "$OTOOL" >&6; }
14171 else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14174 fi
14175
14176
14177 fi
14178 if test -z "$ac_cv_prog_OTOOL"; then
14179 ac_ct_OTOOL=$OTOOL
14180 # Extract the first word of "otool", so it can be a program name with args.
14181 set dummy otool; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$ac_ct_OTOOL"; then
14188 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14192 do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_ac_ct_OTOOL="otool"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201 done
14202 done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14208 if test -n "$ac_ct_OTOOL"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14210 $as_echo "$ac_ct_OTOOL" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216 if test "x$ac_ct_OTOOL" = x; then
14217 OTOOL=":"
14218 else
14219 case $cross_compiling:$ac_tool_warned in
14220 yes:)
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14223 ac_tool_warned=yes ;;
14224 esac
14225 OTOOL=$ac_ct_OTOOL
14226 fi
14227 else
14228 OTOOL="$ac_cv_prog_OTOOL"
14229 fi
14230
14231 if test -n "$ac_tool_prefix"; then
14232 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14233 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14235 $as_echo_n "checking for $ac_word... " >&6; }
14236 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 if test -n "$OTOOL64"; then
14240 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14241 else
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14244 do
14245 IFS=$as_save_IFS
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14249 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 break 2
14252 fi
14253 done
14254 done
14255 IFS=$as_save_IFS
14256
14257 fi
14258 fi
14259 OTOOL64=$ac_cv_prog_OTOOL64
14260 if test -n "$OTOOL64"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14262 $as_echo "$OTOOL64" >&6; }
14263 else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14266 fi
14267
14268
14269 fi
14270 if test -z "$ac_cv_prog_OTOOL64"; then
14271 ac_ct_OTOOL64=$OTOOL64
14272 # Extract the first word of "otool64", so it can be a program name with args.
14273 set dummy otool64; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275 $as_echo_n "checking for $ac_word... " >&6; }
14276 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 if test -n "$ac_ct_OTOOL64"; then
14280 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14284 do
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_ac_ct_OTOOL64="otool64"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14292 fi
14293 done
14294 done
14295 IFS=$as_save_IFS
14296
14297 fi
14298 fi
14299 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14300 if test -n "$ac_ct_OTOOL64"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14302 $as_echo "$ac_ct_OTOOL64" >&6; }
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14306 fi
14307
14308 if test "x$ac_ct_OTOOL64" = x; then
14309 OTOOL64=":"
14310 else
14311 case $cross_compiling:$ac_tool_warned in
14312 yes:)
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317 OTOOL64=$ac_ct_OTOOL64
14318 fi
14319 else
14320 OTOOL64="$ac_cv_prog_OTOOL64"
14321 fi
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14350 $as_echo_n "checking for -single_module linker flag... " >&6; }
14351 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 lt_cv_apple_cc_single_mod=no
14355 if test -z "${LT_MULTI_MODULE}"; then
14356 # By default we will add the -single_module flag. You can override
14357 # by either setting the environment variable LT_MULTI_MODULE
14358 # non-empty at configure time, or by adding -multi_module to the
14359 # link flags.
14360 rm -rf libconftest.dylib*
14361 echo "int foo(void){return 1;}" > conftest.c
14362 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14363 -dynamiclib -Wl,-single_module conftest.c" >&5
14364 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14365 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14366 _lt_result=$?
14367 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14368 lt_cv_apple_cc_single_mod=yes
14369 else
14370 cat conftest.err >&5
14371 fi
14372 rm -rf libconftest.dylib*
14373 rm -f conftest.*
14374 fi
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14377 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14379 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14380 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 lt_cv_ld_exported_symbols_list=no
14384 save_LDFLAGS=$LDFLAGS
14385 echo "_main" > conftest.sym
14386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389
14390 int
14391 main ()
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 lt_cv_ld_exported_symbols_list=yes
14400 else
14401 lt_cv_ld_exported_symbols_list=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LDFLAGS="$save_LDFLAGS"
14406
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14409 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14411 $as_echo_n "checking for -force_load linker flag... " >&6; }
14412 if test "${lt_cv_ld_force_load+set}" = set; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 lt_cv_ld_force_load=no
14416 cat > conftest.c << _LT_EOF
14417 int forced_loaded() { return 2;}
14418 _LT_EOF
14419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14421 echo "$AR cru libconftest.a conftest.o" >&5
14422 $AR cru libconftest.a conftest.o 2>&5
14423 cat > conftest.c << _LT_EOF
14424 int main() { return 0;}
14425 _LT_EOF
14426 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14427 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14428 _lt_result=$?
14429 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14430 lt_cv_ld_force_load=yes
14431 else
14432 cat conftest.err >&5
14433 fi
14434 rm -f conftest.err libconftest.a conftest conftest.c
14435 rm -rf conftest.dSYM
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14439 $as_echo "$lt_cv_ld_force_load" >&6; }
14440 case $host_os in
14441 rhapsody* | darwin1.[012])
14442 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14443 darwin1.*)
14444 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14445 darwin*) # darwin 5.x on
14446 # if running on 10.5 or later, the deployment target defaults
14447 # to the OS version, if on x86, and 10.4, the deployment
14448 # target defaults to 10.4. Don't you love it?
14449 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14450 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14451 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14452 10.[012]*)
14453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14454 10.*)
14455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14456 esac
14457 ;;
14458 esac
14459 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14460 _lt_dar_single_mod='$single_module'
14461 fi
14462 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14463 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14464 else
14465 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14466 fi
14467 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14468 _lt_dsymutil='~$DSYMUTIL $lib || :'
14469 else
14470 _lt_dsymutil=
14471 fi
14472 ;;
14473 esac
14474
14475 for ac_header in dlfcn.h
14476 do :
14477 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14478 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14479 cat >>confdefs.h <<_ACEOF
14480 #define HAVE_DLFCN_H 1
14481 _ACEOF
14482
14483 fi
14484 done
14485
14486
14487
14488
14489
14490 # Set options
14491
14492
14493
14494 enable_dlopen=no
14495
14496
14497 enable_win32_dll=no
14498
14499
14500 # Check whether --enable-shared was given.
14501 if test "${enable_shared+set}" = set; then :
14502 enableval=$enable_shared; p=${PACKAGE-default}
14503 case $enableval in
14504 yes) enable_shared=yes ;;
14505 no) enable_shared=no ;;
14506 *)
14507 enable_shared=no
14508 # Look at the argument we got. We use all the common list separators.
14509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14510 for pkg in $enableval; do
14511 IFS="$lt_save_ifs"
14512 if test "X$pkg" = "X$p"; then
14513 enable_shared=yes
14514 fi
14515 done
14516 IFS="$lt_save_ifs"
14517 ;;
14518 esac
14519 else
14520 enable_shared=yes
14521 fi
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531 # Check whether --enable-static was given.
14532 if test "${enable_static+set}" = set; then :
14533 enableval=$enable_static; p=${PACKAGE-default}
14534 case $enableval in
14535 yes) enable_static=yes ;;
14536 no) enable_static=no ;;
14537 *)
14538 enable_static=no
14539 # Look at the argument we got. We use all the common list separators.
14540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14541 for pkg in $enableval; do
14542 IFS="$lt_save_ifs"
14543 if test "X$pkg" = "X$p"; then
14544 enable_static=yes
14545 fi
14546 done
14547 IFS="$lt_save_ifs"
14548 ;;
14549 esac
14550 else
14551 enable_static=yes
14552 fi
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563 # Check whether --with-pic was given.
14564 if test "${with_pic+set}" = set; then :
14565 withval=$with_pic; pic_mode="$withval"
14566 else
14567 pic_mode=default
14568 fi
14569
14570
14571 test -z "$pic_mode" && pic_mode=default
14572
14573
14574
14575
14576
14577
14578
14579 # Check whether --enable-fast-install was given.
14580 if test "${enable_fast_install+set}" = set; then :
14581 enableval=$enable_fast_install; p=${PACKAGE-default}
14582 case $enableval in
14583 yes) enable_fast_install=yes ;;
14584 no) enable_fast_install=no ;;
14585 *)
14586 enable_fast_install=no
14587 # Look at the argument we got. We use all the common list separators.
14588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14589 for pkg in $enableval; do
14590 IFS="$lt_save_ifs"
14591 if test "X$pkg" = "X$p"; then
14592 enable_fast_install=yes
14593 fi
14594 done
14595 IFS="$lt_save_ifs"
14596 ;;
14597 esac
14598 else
14599 enable_fast_install=yes
14600 fi
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612 # This can be used to rebuild libtool when needed
14613 LIBTOOL_DEPS="$ltmain"
14614
14615 # Always use our own libtool.
14616 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643 test -z "$LN_S" && LN_S="ln -s"
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 if test -n "${ZSH_VERSION+set}" ; then
14659 setopt NO_GLOB_SUBST
14660 fi
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14663 $as_echo_n "checking for objdir... " >&6; }
14664 if test "${lt_cv_objdir+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 rm -f .libs 2>/dev/null
14668 mkdir .libs 2>/dev/null
14669 if test -d .libs; then
14670 lt_cv_objdir=.libs
14671 else
14672 # MS-DOS does not allow filenames that begin with a dot.
14673 lt_cv_objdir=_libs
14674 fi
14675 rmdir .libs 2>/dev/null
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14678 $as_echo "$lt_cv_objdir" >&6; }
14679 objdir=$lt_cv_objdir
14680
14681
14682
14683
14684
14685 cat >>confdefs.h <<_ACEOF
14686 #define LT_OBJDIR "$lt_cv_objdir/"
14687 _ACEOF
14688
14689
14690
14691
14692 case $host_os in
14693 aix3*)
14694 # AIX sometimes has problems with the GCC collect2 program. For some
14695 # reason, if we set the COLLECT_NAMES environment variable, the problems
14696 # vanish in a puff of smoke.
14697 if test "X${COLLECT_NAMES+set}" != Xset; then
14698 COLLECT_NAMES=
14699 export COLLECT_NAMES
14700 fi
14701 ;;
14702 esac
14703
14704 # Global variables:
14705 ofile=libtool
14706 can_build_shared=yes
14707
14708 # All known linkers require a `.a' archive for static linking (except MSVC,
14709 # which needs '.lib').
14710 libext=a
14711
14712 with_gnu_ld="$lt_cv_prog_gnu_ld"
14713
14714 old_CC="$CC"
14715 old_CFLAGS="$CFLAGS"
14716
14717 # Set sane defaults for various variables
14718 test -z "$CC" && CC=cc
14719 test -z "$LTCC" && LTCC=$CC
14720 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14721 test -z "$LD" && LD=ld
14722 test -z "$ac_objext" && ac_objext=o
14723
14724 for cc_temp in $compiler""; do
14725 case $cc_temp in
14726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14728 \-*) ;;
14729 *) break;;
14730 esac
14731 done
14732 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14733
14734
14735 # Only perform the check for file, if the check method requires it
14736 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14737 case $deplibs_check_method in
14738 file_magic*)
14739 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14741 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14742 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 case $MAGIC_CMD in
14746 [\\/*] | ?:[\\/]*)
14747 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14748 ;;
14749 *)
14750 lt_save_MAGIC_CMD="$MAGIC_CMD"
14751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14752 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14753 for ac_dir in $ac_dummy; do
14754 IFS="$lt_save_ifs"
14755 test -z "$ac_dir" && ac_dir=.
14756 if test -f $ac_dir/${ac_tool_prefix}file; then
14757 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14758 if test -n "$file_magic_test_file"; then
14759 case $deplibs_check_method in
14760 "file_magic "*)
14761 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14764 $EGREP "$file_magic_regex" > /dev/null; then
14765 :
14766 else
14767 cat <<_LT_EOF 1>&2
14768
14769 *** Warning: the command libtool uses to detect shared libraries,
14770 *** $file_magic_cmd, produces output that libtool cannot recognize.
14771 *** The result is that libtool may fail to recognize shared libraries
14772 *** as such. This will affect the creation of libtool libraries that
14773 *** depend on shared libraries, but programs linked with such libtool
14774 *** libraries will work regardless of this problem. Nevertheless, you
14775 *** may want to report the problem to your system manager and/or to
14776 *** bug-libtool@gnu.org
14777
14778 _LT_EOF
14779 fi ;;
14780 esac
14781 fi
14782 break
14783 fi
14784 done
14785 IFS="$lt_save_ifs"
14786 MAGIC_CMD="$lt_save_MAGIC_CMD"
14787 ;;
14788 esac
14789 fi
14790
14791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14792 if test -n "$MAGIC_CMD"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14794 $as_echo "$MAGIC_CMD" >&6; }
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14798 fi
14799
14800
14801
14802
14803
14804 if test -z "$lt_cv_path_MAGIC_CMD"; then
14805 if test -n "$ac_tool_prefix"; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14807 $as_echo_n "checking for file... " >&6; }
14808 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 case $MAGIC_CMD in
14812 [\\/*] | ?:[\\/]*)
14813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14814 ;;
14815 *)
14816 lt_save_MAGIC_CMD="$MAGIC_CMD"
14817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14819 for ac_dir in $ac_dummy; do
14820 IFS="$lt_save_ifs"
14821 test -z "$ac_dir" && ac_dir=.
14822 if test -f $ac_dir/file; then
14823 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14824 if test -n "$file_magic_test_file"; then
14825 case $deplibs_check_method in
14826 "file_magic "*)
14827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14830 $EGREP "$file_magic_regex" > /dev/null; then
14831 :
14832 else
14833 cat <<_LT_EOF 1>&2
14834
14835 *** Warning: the command libtool uses to detect shared libraries,
14836 *** $file_magic_cmd, produces output that libtool cannot recognize.
14837 *** The result is that libtool may fail to recognize shared libraries
14838 *** as such. This will affect the creation of libtool libraries that
14839 *** depend on shared libraries, but programs linked with such libtool
14840 *** libraries will work regardless of this problem. Nevertheless, you
14841 *** may want to report the problem to your system manager and/or to
14842 *** bug-libtool@gnu.org
14843
14844 _LT_EOF
14845 fi ;;
14846 esac
14847 fi
14848 break
14849 fi
14850 done
14851 IFS="$lt_save_ifs"
14852 MAGIC_CMD="$lt_save_MAGIC_CMD"
14853 ;;
14854 esac
14855 fi
14856
14857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14858 if test -n "$MAGIC_CMD"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14860 $as_echo "$MAGIC_CMD" >&6; }
14861 else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14864 fi
14865
14866
14867 else
14868 MAGIC_CMD=:
14869 fi
14870 fi
14871
14872 fi
14873 ;;
14874 esac
14875
14876 # Use C for the default configuration in the libtool script
14877
14878 lt_save_CC="$CC"
14879 ac_ext=c
14880 ac_cpp='$CPP $CPPFLAGS'
14881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14884
14885
14886 # Source file extension for C test sources.
14887 ac_ext=c
14888
14889 # Object file extension for compiled C test sources.
14890 objext=o
14891 objext=$objext
14892
14893 # Code to be used in simple compile tests
14894 lt_simple_compile_test_code="int some_variable = 0;"
14895
14896 # Code to be used in simple link tests
14897 lt_simple_link_test_code='int main(){return(0);}'
14898
14899
14900
14901
14902
14903
14904
14905 # If no C compiler was specified, use CC.
14906 LTCC=${LTCC-"$CC"}
14907
14908 # If no C compiler flags were specified, use CFLAGS.
14909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14910
14911 # Allow CC to be a program name with arguments.
14912 compiler=$CC
14913
14914 # Save the default compiler, since it gets overwritten when the other
14915 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14916 compiler_DEFAULT=$CC
14917
14918 # save warnings/boilerplate of simple test code
14919 ac_outfile=conftest.$ac_objext
14920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14922 _lt_compiler_boilerplate=`cat conftest.err`
14923 $RM conftest*
14924
14925 ac_outfile=conftest.$ac_objext
14926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14928 _lt_linker_boilerplate=`cat conftest.err`
14929 $RM -r conftest*
14930
14931
14932 ## CAVEAT EMPTOR:
14933 ## There is no encapsulation within the following macros, do not change
14934 ## the running order or otherwise move them around unless you know exactly
14935 ## what you are doing...
14936 if test -n "$compiler"; then
14937
14938 lt_prog_compiler_no_builtin_flag=
14939
14940 if test "$GCC" = yes; then
14941 case $cc_basename in
14942 nvcc*)
14943 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14944 *)
14945 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14946 esac
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14949 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14950 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 lt_cv_prog_compiler_rtti_exceptions=no
14954 ac_outfile=conftest.$ac_objext
14955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14956 lt_compiler_flag="-fno-rtti -fno-exceptions"
14957 # Insert the option either (1) after the last *FLAGS variable, or
14958 # (2) before a word containing "conftest.", or (3) at the end.
14959 # Note that $ac_compile itself does not contain backslashes and begins
14960 # with a dollar sign (not a hyphen), so the echo should work correctly.
14961 # The option is referenced via a variable to avoid confusing sed.
14962 lt_compile=`echo "$ac_compile" | $SED \
14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965 -e 's:$: $lt_compiler_flag:'`
14966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14967 (eval "$lt_compile" 2>conftest.err)
14968 ac_status=$?
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 if (exit $ac_status) && test -s "$ac_outfile"; then
14972 # The compiler can only warn and ignore the option if not recognized
14973 # So say no if there are warnings other than the usual output.
14974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14977 lt_cv_prog_compiler_rtti_exceptions=yes
14978 fi
14979 fi
14980 $RM conftest*
14981
14982 fi
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14984 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14985
14986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14987 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14988 else
14989 :
14990 fi
14991
14992 fi
14993
14994
14995
14996
14997
14998
14999 lt_prog_compiler_wl=
15000 lt_prog_compiler_pic=
15001 lt_prog_compiler_static=
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15004 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15005
15006 if test "$GCC" = yes; then
15007 lt_prog_compiler_wl='-Wl,'
15008 lt_prog_compiler_static='-static'
15009
15010 case $host_os in
15011 aix*)
15012 # All AIX code is PIC.
15013 if test "$host_cpu" = ia64; then
15014 # AIX 5 now supports IA64 processor
15015 lt_prog_compiler_static='-Bstatic'
15016 fi
15017 ;;
15018
15019 amigaos*)
15020 case $host_cpu in
15021 powerpc)
15022 # see comment about AmigaOS4 .so support
15023 lt_prog_compiler_pic='-fPIC'
15024 ;;
15025 m68k)
15026 # FIXME: we need at least 68020 code to build shared libraries, but
15027 # adding the `-m68020' flag to GCC prevents building anything better,
15028 # like `-m68040'.
15029 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15030 ;;
15031 esac
15032 ;;
15033
15034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15035 # PIC is the default for these OSes.
15036 ;;
15037
15038 mingw* | cygwin* | pw32* | os2* | cegcc*)
15039 # This hack is so that the source file can tell whether it is being
15040 # built for inclusion in a dll (and should export symbols for example).
15041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15042 # (--disable-auto-import) libraries
15043 lt_prog_compiler_pic='-DDLL_EXPORT'
15044 ;;
15045
15046 darwin* | rhapsody*)
15047 # PIC is the default on this platform
15048 # Common symbols not allowed in MH_DYLIB files
15049 lt_prog_compiler_pic='-fno-common'
15050 ;;
15051
15052 haiku*)
15053 # PIC is the default for Haiku.
15054 # The "-static" flag exists, but is broken.
15055 lt_prog_compiler_static=
15056 ;;
15057
15058 hpux*)
15059 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15060 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15061 # sets the default TLS model and affects inlining.
15062 case $host_cpu in
15063 hppa*64*)
15064 # +Z the default
15065 ;;
15066 *)
15067 lt_prog_compiler_pic='-fPIC'
15068 ;;
15069 esac
15070 ;;
15071
15072 interix[3-9]*)
15073 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15074 # Instead, we relocate shared libraries at runtime.
15075 ;;
15076
15077 msdosdjgpp*)
15078 # Just because we use GCC doesn't mean we suddenly get shared libraries
15079 # on systems that don't support them.
15080 lt_prog_compiler_can_build_shared=no
15081 enable_shared=no
15082 ;;
15083
15084 *nto* | *qnx*)
15085 # QNX uses GNU C++, but need to define -shared option too, otherwise
15086 # it will coredump.
15087 lt_prog_compiler_pic='-fPIC -shared'
15088 ;;
15089
15090 sysv4*MP*)
15091 if test -d /usr/nec; then
15092 lt_prog_compiler_pic=-Kconform_pic
15093 fi
15094 ;;
15095
15096 *)
15097 lt_prog_compiler_pic='-fPIC'
15098 ;;
15099 esac
15100
15101 case $cc_basename in
15102 nvcc*) # Cuda Compiler Driver 2.2
15103 lt_prog_compiler_wl='-Xlinker '
15104 lt_prog_compiler_pic='-Xcompiler -fPIC'
15105 ;;
15106 esac
15107 else
15108 # PORTME Check for flag to pass linker flags through the system compiler.
15109 case $host_os in
15110 aix*)
15111 lt_prog_compiler_wl='-Wl,'
15112 if test "$host_cpu" = ia64; then
15113 # AIX 5 now supports IA64 processor
15114 lt_prog_compiler_static='-Bstatic'
15115 else
15116 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15117 fi
15118 ;;
15119
15120 mingw* | cygwin* | pw32* | os2* | cegcc*)
15121 # This hack is so that the source file can tell whether it is being
15122 # built for inclusion in a dll (and should export symbols for example).
15123 lt_prog_compiler_pic='-DDLL_EXPORT'
15124 ;;
15125
15126 hpux9* | hpux10* | hpux11*)
15127 lt_prog_compiler_wl='-Wl,'
15128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15129 # not for PA HP-UX.
15130 case $host_cpu in
15131 hppa*64*|ia64*)
15132 # +Z the default
15133 ;;
15134 *)
15135 lt_prog_compiler_pic='+Z'
15136 ;;
15137 esac
15138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15139 lt_prog_compiler_static='${wl}-a ${wl}archive'
15140 ;;
15141
15142 irix5* | irix6* | nonstopux*)
15143 lt_prog_compiler_wl='-Wl,'
15144 # PIC (with -KPIC) is the default.
15145 lt_prog_compiler_static='-non_shared'
15146 ;;
15147
15148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15149 case $cc_basename in
15150 # old Intel for x86_64 which still supported -KPIC.
15151 ecc*)
15152 lt_prog_compiler_wl='-Wl,'
15153 lt_prog_compiler_pic='-KPIC'
15154 lt_prog_compiler_static='-static'
15155 ;;
15156 # icc used to be incompatible with GCC.
15157 # ICC 10 doesn't accept -KPIC any more.
15158 icc* | ifort*)
15159 lt_prog_compiler_wl='-Wl,'
15160 lt_prog_compiler_pic='-fPIC'
15161 lt_prog_compiler_static='-static'
15162 ;;
15163 # Lahey Fortran 8.1.
15164 lf95*)
15165 lt_prog_compiler_wl='-Wl,'
15166 lt_prog_compiler_pic='--shared'
15167 lt_prog_compiler_static='--static'
15168 ;;
15169 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15170 # Portland Group compilers (*not* the Pentium gcc compiler,
15171 # which looks to be a dead project)
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_pic='-fpic'
15174 lt_prog_compiler_static='-Bstatic'
15175 ;;
15176 ccc*)
15177 lt_prog_compiler_wl='-Wl,'
15178 # All Alpha code is PIC.
15179 lt_prog_compiler_static='-non_shared'
15180 ;;
15181 xl* | bgxl* | bgf* | mpixl*)
15182 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15183 lt_prog_compiler_wl='-Wl,'
15184 lt_prog_compiler_pic='-qpic'
15185 lt_prog_compiler_static='-qstaticlink'
15186 ;;
15187 *)
15188 case `$CC -V 2>&1 | sed 5q` in
15189 *Sun\ F* | *Sun*Fortran*)
15190 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15191 lt_prog_compiler_pic='-KPIC'
15192 lt_prog_compiler_static='-Bstatic'
15193 lt_prog_compiler_wl=''
15194 ;;
15195 *Sun\ C*)
15196 # Sun C 5.9
15197 lt_prog_compiler_pic='-KPIC'
15198 lt_prog_compiler_static='-Bstatic'
15199 lt_prog_compiler_wl='-Wl,'
15200 ;;
15201 esac
15202 ;;
15203 esac
15204 ;;
15205
15206 newsos6)
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15209 ;;
15210
15211 *nto* | *qnx*)
15212 # QNX uses GNU C++, but need to define -shared option too, otherwise
15213 # it will coredump.
15214 lt_prog_compiler_pic='-fPIC -shared'
15215 ;;
15216
15217 osf3* | osf4* | osf5*)
15218 lt_prog_compiler_wl='-Wl,'
15219 # All OSF/1 code is PIC.
15220 lt_prog_compiler_static='-non_shared'
15221 ;;
15222
15223 rdos*)
15224 lt_prog_compiler_static='-non_shared'
15225 ;;
15226
15227 solaris*)
15228 lt_prog_compiler_pic='-KPIC'
15229 lt_prog_compiler_static='-Bstatic'
15230 case $cc_basename in
15231 f77* | f90* | f95*)
15232 lt_prog_compiler_wl='-Qoption ld ';;
15233 *)
15234 lt_prog_compiler_wl='-Wl,';;
15235 esac
15236 ;;
15237
15238 sunos4*)
15239 lt_prog_compiler_wl='-Qoption ld '
15240 lt_prog_compiler_pic='-PIC'
15241 lt_prog_compiler_static='-Bstatic'
15242 ;;
15243
15244 sysv4 | sysv4.2uw2* | sysv4.3*)
15245 lt_prog_compiler_wl='-Wl,'
15246 lt_prog_compiler_pic='-KPIC'
15247 lt_prog_compiler_static='-Bstatic'
15248 ;;
15249
15250 sysv4*MP*)
15251 if test -d /usr/nec ;then
15252 lt_prog_compiler_pic='-Kconform_pic'
15253 lt_prog_compiler_static='-Bstatic'
15254 fi
15255 ;;
15256
15257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15258 lt_prog_compiler_wl='-Wl,'
15259 lt_prog_compiler_pic='-KPIC'
15260 lt_prog_compiler_static='-Bstatic'
15261 ;;
15262
15263 unicos*)
15264 lt_prog_compiler_wl='-Wl,'
15265 lt_prog_compiler_can_build_shared=no
15266 ;;
15267
15268 uts4*)
15269 lt_prog_compiler_pic='-pic'
15270 lt_prog_compiler_static='-Bstatic'
15271 ;;
15272
15273 *)
15274 lt_prog_compiler_can_build_shared=no
15275 ;;
15276 esac
15277 fi
15278
15279 case $host_os in
15280 # For platforms which do not support PIC, -DPIC is meaningless:
15281 *djgpp*)
15282 lt_prog_compiler_pic=
15283 ;;
15284 *)
15285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15286 ;;
15287 esac
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15289 $as_echo "$lt_prog_compiler_pic" >&6; }
15290
15291
15292
15293
15294
15295
15296 #
15297 # Check to make sure the PIC flag actually works.
15298 #
15299 if test -n "$lt_prog_compiler_pic"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15301 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15302 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 lt_cv_prog_compiler_pic_works=no
15306 ac_outfile=conftest.$ac_objext
15307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15308 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15309 # Insert the option either (1) after the last *FLAGS variable, or
15310 # (2) before a word containing "conftest.", or (3) at the end.
15311 # Note that $ac_compile itself does not contain backslashes and begins
15312 # with a dollar sign (not a hyphen), so the echo should work correctly.
15313 # The option is referenced via a variable to avoid confusing sed.
15314 lt_compile=`echo "$ac_compile" | $SED \
15315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15317 -e 's:$: $lt_compiler_flag:'`
15318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15319 (eval "$lt_compile" 2>conftest.err)
15320 ac_status=$?
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 if (exit $ac_status) && test -s "$ac_outfile"; then
15324 # The compiler can only warn and ignore the option if not recognized
15325 # So say no if there are warnings other than the usual output.
15326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15329 lt_cv_prog_compiler_pic_works=yes
15330 fi
15331 fi
15332 $RM conftest*
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15336 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15337
15338 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15339 case $lt_prog_compiler_pic in
15340 "" | " "*) ;;
15341 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15342 esac
15343 else
15344 lt_prog_compiler_pic=
15345 lt_prog_compiler_can_build_shared=no
15346 fi
15347
15348 fi
15349
15350
15351
15352
15353
15354
15355 #
15356 # Check to make sure the static flag actually works.
15357 #
15358 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15360 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15361 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 lt_cv_prog_compiler_static_works=no
15365 save_LDFLAGS="$LDFLAGS"
15366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15369 # The linker can only warn and ignore the option if not recognized
15370 # So say no if there are warnings
15371 if test -s conftest.err; then
15372 # Append any errors to the config.log.
15373 cat conftest.err 1>&5
15374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15376 if diff conftest.exp conftest.er2 >/dev/null; then
15377 lt_cv_prog_compiler_static_works=yes
15378 fi
15379 else
15380 lt_cv_prog_compiler_static_works=yes
15381 fi
15382 fi
15383 $RM -r conftest*
15384 LDFLAGS="$save_LDFLAGS"
15385
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15388 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15389
15390 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15391 :
15392 else
15393 lt_prog_compiler_static=
15394 fi
15395
15396
15397
15398
15399
15400
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15404 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 lt_cv_prog_compiler_c_o=no
15408 $RM -r conftest 2>/dev/null
15409 mkdir conftest
15410 cd conftest
15411 mkdir out
15412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15413
15414 lt_compiler_flag="-o out/conftest2.$ac_objext"
15415 # Insert the option either (1) after the last *FLAGS variable, or
15416 # (2) before a word containing "conftest.", or (3) at the end.
15417 # Note that $ac_compile itself does not contain backslashes and begins
15418 # with a dollar sign (not a hyphen), so the echo should work correctly.
15419 lt_compile=`echo "$ac_compile" | $SED \
15420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15422 -e 's:$: $lt_compiler_flag:'`
15423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15424 (eval "$lt_compile" 2>out/conftest.err)
15425 ac_status=$?
15426 cat out/conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15429 then
15430 # The compiler can only warn and ignore the option if not recognized
15431 # So say no if there are warnings
15432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15435 lt_cv_prog_compiler_c_o=yes
15436 fi
15437 fi
15438 chmod u+w . 2>&5
15439 $RM conftest*
15440 # SGI C++ compiler will create directory out/ii_files/ for
15441 # template instantiation
15442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15443 $RM out/* && rmdir out
15444 cd ..
15445 $RM -r conftest
15446 $RM conftest*
15447
15448 fi
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15450 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15451
15452
15453
15454
15455
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15459 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 lt_cv_prog_compiler_c_o=no
15463 $RM -r conftest 2>/dev/null
15464 mkdir conftest
15465 cd conftest
15466 mkdir out
15467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15468
15469 lt_compiler_flag="-o out/conftest2.$ac_objext"
15470 # Insert the option either (1) after the last *FLAGS variable, or
15471 # (2) before a word containing "conftest.", or (3) at the end.
15472 # Note that $ac_compile itself does not contain backslashes and begins
15473 # with a dollar sign (not a hyphen), so the echo should work correctly.
15474 lt_compile=`echo "$ac_compile" | $SED \
15475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15477 -e 's:$: $lt_compiler_flag:'`
15478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15479 (eval "$lt_compile" 2>out/conftest.err)
15480 ac_status=$?
15481 cat out/conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15484 then
15485 # The compiler can only warn and ignore the option if not recognized
15486 # So say no if there are warnings
15487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15490 lt_cv_prog_compiler_c_o=yes
15491 fi
15492 fi
15493 chmod u+w . 2>&5
15494 $RM conftest*
15495 # SGI C++ compiler will create directory out/ii_files/ for
15496 # template instantiation
15497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15498 $RM out/* && rmdir out
15499 cd ..
15500 $RM -r conftest
15501 $RM conftest*
15502
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15505 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15506
15507
15508
15509
15510 hard_links="nottested"
15511 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15512 # do not overwrite the value of need_locks provided by the user
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15514 $as_echo_n "checking if we can lock with hard links... " >&6; }
15515 hard_links=yes
15516 $RM conftest*
15517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15518 touch conftest.a
15519 ln conftest.a conftest.b 2>&5 || hard_links=no
15520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15522 $as_echo "$hard_links" >&6; }
15523 if test "$hard_links" = no; then
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15526 need_locks=warn
15527 fi
15528 else
15529 need_locks=no
15530 fi
15531
15532
15533
15534
15535
15536
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15538 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15539
15540 runpath_var=
15541 allow_undefined_flag=
15542 always_export_symbols=no
15543 archive_cmds=
15544 archive_expsym_cmds=
15545 compiler_needs_object=no
15546 enable_shared_with_static_runtimes=no
15547 export_dynamic_flag_spec=
15548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15549 hardcode_automatic=no
15550 hardcode_direct=no
15551 hardcode_direct_absolute=no
15552 hardcode_libdir_flag_spec=
15553 hardcode_libdir_flag_spec_ld=
15554 hardcode_libdir_separator=
15555 hardcode_minus_L=no
15556 hardcode_shlibpath_var=unsupported
15557 inherit_rpath=no
15558 link_all_deplibs=unknown
15559 module_cmds=
15560 module_expsym_cmds=
15561 old_archive_from_new_cmds=
15562 old_archive_from_expsyms_cmds=
15563 thread_safe_flag_spec=
15564 whole_archive_flag_spec=
15565 # include_expsyms should be a list of space-separated symbols to be *always*
15566 # included in the symbol list
15567 include_expsyms=
15568 # exclude_expsyms can be an extended regexp of symbols to exclude
15569 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15570 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15571 # as well as any symbol that contains `d'.
15572 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15574 # platforms (ab)use it in PIC code, but their linkers get confused if
15575 # the symbol is explicitly referenced. Since portable code cannot
15576 # rely on this symbol name, it's probably fine to never include it in
15577 # preloaded symbol tables.
15578 # Exclude shared library initialization/finalization symbols.
15579 extract_expsyms_cmds=
15580
15581 case $host_os in
15582 cygwin* | mingw* | pw32* | cegcc*)
15583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15584 # When not using gcc, we currently assume that we are using
15585 # Microsoft Visual C++.
15586 if test "$GCC" != yes; then
15587 with_gnu_ld=no
15588 fi
15589 ;;
15590 interix*)
15591 # we just hope/assume this is gcc and not c89 (= MSVC++)
15592 with_gnu_ld=yes
15593 ;;
15594 openbsd*)
15595 with_gnu_ld=no
15596 ;;
15597 esac
15598
15599 ld_shlibs=yes
15600
15601 # On some targets, GNU ld is compatible enough with the native linker
15602 # that we're better off using the native interface for both.
15603 lt_use_gnu_ld_interface=no
15604 if test "$with_gnu_ld" = yes; then
15605 case $host_os in
15606 aix*)
15607 # The AIX port of GNU ld has always aspired to compatibility
15608 # with the native linker. However, as the warning in the GNU ld
15609 # block says, versions before 2.19.5* couldn't really create working
15610 # shared libraries, regardless of the interface used.
15611 case `$LD -v 2>&1` in
15612 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15613 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15614 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15615 *)
15616 lt_use_gnu_ld_interface=yes
15617 ;;
15618 esac
15619 ;;
15620 *)
15621 lt_use_gnu_ld_interface=yes
15622 ;;
15623 esac
15624 fi
15625
15626 if test "$lt_use_gnu_ld_interface" = yes; then
15627 # If archive_cmds runs LD, not CC, wlarc should be empty
15628 wlarc='${wl}'
15629
15630 # Set some defaults for GNU ld with shared library support. These
15631 # are reset later if shared libraries are not supported. Putting them
15632 # here allows them to be overridden if necessary.
15633 runpath_var=LD_RUN_PATH
15634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15635 export_dynamic_flag_spec='${wl}--export-dynamic'
15636 # ancient GNU ld didn't support --whole-archive et. al.
15637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15639 else
15640 whole_archive_flag_spec=
15641 fi
15642 supports_anon_versioning=no
15643 case `$LD -v 2>&1` in
15644 *GNU\ gold*) supports_anon_versioning=yes ;;
15645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15648 *\ 2.11.*) ;; # other 2.11 versions
15649 *) supports_anon_versioning=yes ;;
15650 esac
15651
15652 # See if GNU ld supports shared libraries.
15653 case $host_os in
15654 aix[3-9]*)
15655 # On AIX/PPC, the GNU linker is very broken
15656 if test "$host_cpu" != ia64; then
15657 ld_shlibs=no
15658 cat <<_LT_EOF 1>&2
15659
15660 *** Warning: the GNU linker, at least up to release 2.19, is reported
15661 *** to be unable to reliably create shared libraries on AIX.
15662 *** Therefore, libtool is disabling shared libraries support. If you
15663 *** really care for shared libraries, you may want to install binutils
15664 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15665 *** You will then need to restart the configuration process.
15666
15667 _LT_EOF
15668 fi
15669 ;;
15670
15671 amigaos*)
15672 case $host_cpu in
15673 powerpc)
15674 # see comment about AmigaOS4 .so support
15675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15676 archive_expsym_cmds=''
15677 ;;
15678 m68k)
15679 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)'
15680 hardcode_libdir_flag_spec='-L$libdir'
15681 hardcode_minus_L=yes
15682 ;;
15683 esac
15684 ;;
15685
15686 beos*)
15687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15688 allow_undefined_flag=unsupported
15689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15690 # support --undefined. This deserves some investigation. FIXME
15691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692 else
15693 ld_shlibs=no
15694 fi
15695 ;;
15696
15697 cygwin* | mingw* | pw32* | cegcc*)
15698 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15699 # as there is no search path for DLLs.
15700 hardcode_libdir_flag_spec='-L$libdir'
15701 export_dynamic_flag_spec='${wl}--export-all-symbols'
15702 allow_undefined_flag=unsupported
15703 always_export_symbols=no
15704 enable_shared_with_static_runtimes=yes
15705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15706
15707 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15709 # If the export-symbols file already is a .def file (1st line
15710 # is EXPORTS), use it as is; otherwise, prepend...
15711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15712 cp $export_symbols $output_objdir/$soname.def;
15713 else
15714 echo EXPORTS > $output_objdir/$soname.def;
15715 cat $export_symbols >> $output_objdir/$soname.def;
15716 fi~
15717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15718 else
15719 ld_shlibs=no
15720 fi
15721 ;;
15722
15723 haiku*)
15724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15725 link_all_deplibs=yes
15726 ;;
15727
15728 interix[3-9]*)
15729 hardcode_direct=no
15730 hardcode_shlibpath_var=no
15731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15732 export_dynamic_flag_spec='${wl}-E'
15733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15734 # Instead, shared libraries are loaded at an image base (0x10000000 by
15735 # default) and relocated if they conflict, which is a slow very memory
15736 # consuming and fragmenting process. To avoid this, we pick a random,
15737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15740 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'
15741 ;;
15742
15743 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15744 tmp_diet=no
15745 if test "$host_os" = linux-dietlibc; then
15746 case $cc_basename in
15747 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15748 esac
15749 fi
15750 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15751 && test "$tmp_diet" = no
15752 then
15753 tmp_addflag=
15754 tmp_sharedflag='-shared'
15755 case $cc_basename,$host_cpu in
15756 pgcc*) # Portland Group C compiler
15757 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'
15758 tmp_addflag=' $pic_flag'
15759 ;;
15760 pgf77* | pgf90* | pgf95* | pgfortran*)
15761 # Portland Group f77 and f90 compilers
15762 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'
15763 tmp_addflag=' $pic_flag -Mnomain' ;;
15764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15765 tmp_addflag=' -i_dynamic' ;;
15766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15767 tmp_addflag=' -i_dynamic -nofor_main' ;;
15768 ifc* | ifort*) # Intel Fortran compiler
15769 tmp_addflag=' -nofor_main' ;;
15770 lf95*) # Lahey Fortran 8.1
15771 whole_archive_flag_spec=
15772 tmp_sharedflag='--shared' ;;
15773 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15774 tmp_sharedflag='-qmkshrobj'
15775 tmp_addflag= ;;
15776 nvcc*) # Cuda Compiler Driver 2.2
15777 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'
15778 compiler_needs_object=yes
15779 ;;
15780 esac
15781 case `$CC -V 2>&1 | sed 5q` in
15782 *Sun\ C*) # Sun C 5.9
15783 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'
15784 compiler_needs_object=yes
15785 tmp_sharedflag='-G' ;;
15786 *Sun\ F*) # Sun Fortran 8.3
15787 tmp_sharedflag='-G' ;;
15788 esac
15789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790
15791 if test "x$supports_anon_versioning" = xyes; then
15792 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15794 echo "local: *; };" >> $output_objdir/$libname.ver~
15795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15796 fi
15797
15798 case $cc_basename in
15799 xlf* | bgf* | bgxlf* | mpixlf*)
15800 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15801 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15802 hardcode_libdir_flag_spec=
15803 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15804 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15805 if test "x$supports_anon_versioning" = xyes; then
15806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15808 echo "local: *; };" >> $output_objdir/$libname.ver~
15809 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15810 fi
15811 ;;
15812 esac
15813 else
15814 ld_shlibs=no
15815 fi
15816 ;;
15817
15818 netbsd*)
15819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15820 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15821 wlarc=
15822 else
15823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15825 fi
15826 ;;
15827
15828 solaris*)
15829 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15830 ld_shlibs=no
15831 cat <<_LT_EOF 1>&2
15832
15833 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15834 *** create shared libraries on Solaris systems. Therefore, libtool
15835 *** is disabling shared libraries support. We urge you to upgrade GNU
15836 *** binutils to release 2.9.1 or newer. Another option is to modify
15837 *** your PATH or compiler configuration so that the native linker is
15838 *** used, and then restart.
15839
15840 _LT_EOF
15841 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15844 else
15845 ld_shlibs=no
15846 fi
15847 ;;
15848
15849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15850 case `$LD -v 2>&1` in
15851 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15852 ld_shlibs=no
15853 cat <<_LT_EOF 1>&2
15854
15855 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15856 *** reliably create shared libraries on SCO systems. Therefore, libtool
15857 *** is disabling shared libraries support. We urge you to upgrade GNU
15858 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15859 *** your PATH or compiler configuration so that the native linker is
15860 *** used, and then restart.
15861
15862 _LT_EOF
15863 ;;
15864 *)
15865 # For security reasons, it is highly recommended that you always
15866 # use absolute paths for naming shared libraries, and exclude the
15867 # DT_RUNPATH tag from executables and libraries. But doing so
15868 # requires that you compile everything twice, which is a pain.
15869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15873 else
15874 ld_shlibs=no
15875 fi
15876 ;;
15877 esac
15878 ;;
15879
15880 sunos4*)
15881 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15882 wlarc=
15883 hardcode_direct=yes
15884 hardcode_shlibpath_var=no
15885 ;;
15886
15887 *)
15888 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15891 else
15892 ld_shlibs=no
15893 fi
15894 ;;
15895 esac
15896
15897 if test "$ld_shlibs" = no; then
15898 runpath_var=
15899 hardcode_libdir_flag_spec=
15900 export_dynamic_flag_spec=
15901 whole_archive_flag_spec=
15902 fi
15903 else
15904 # PORTME fill in a description of your system's linker (not GNU ld)
15905 case $host_os in
15906 aix3*)
15907 allow_undefined_flag=unsupported
15908 always_export_symbols=yes
15909 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'
15910 # Note: this linker hardcodes the directories in LIBPATH if there
15911 # are no directories specified by -L.
15912 hardcode_minus_L=yes
15913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15914 # Neither direct hardcoding nor static linking is supported with a
15915 # broken collect2.
15916 hardcode_direct=unsupported
15917 fi
15918 ;;
15919
15920 aix[4-9]*)
15921 if test "$host_cpu" = ia64; then
15922 # On IA64, the linker does run time linking by default, so we don't
15923 # have to do anything special.
15924 aix_use_runtimelinking=no
15925 exp_sym_flag='-Bexport'
15926 no_entry_flag=""
15927 else
15928 # If we're using GNU nm, then we don't want the "-C" option.
15929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15930 # Also, AIX nm treats weak defined symbols like other global
15931 # defined symbols, whereas GNU nm marks them as "W".
15932 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15933 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'
15934 else
15935 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'
15936 fi
15937 aix_use_runtimelinking=no
15938
15939 # Test if we are trying to use run time linking or normal
15940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15941 # need to do runtime linking.
15942 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15943 for ld_flag in $LDFLAGS; do
15944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15945 aix_use_runtimelinking=yes
15946 break
15947 fi
15948 done
15949 ;;
15950 esac
15951
15952 exp_sym_flag='-bexport'
15953 no_entry_flag='-bnoentry'
15954 fi
15955
15956 # When large executables or shared objects are built, AIX ld can
15957 # have problems creating the table of contents. If linking a library
15958 # or program results in "error TOC overflow" add -mminimal-toc to
15959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15961
15962 archive_cmds=''
15963 hardcode_direct=yes
15964 hardcode_direct_absolute=yes
15965 hardcode_libdir_separator=':'
15966 link_all_deplibs=yes
15967 file_list_spec='${wl}-f,'
15968
15969 if test "$GCC" = yes; then
15970 case $host_os in aix4.[012]|aix4.[012].*)
15971 # We only want to do this on AIX 4.2 and lower, the check
15972 # below for broken collect2 doesn't work under 4.3+
15973 collect2name=`${CC} -print-prog-name=collect2`
15974 if test -f "$collect2name" &&
15975 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15976 then
15977 # We have reworked collect2
15978 :
15979 else
15980 # We have old collect2
15981 hardcode_direct=unsupported
15982 # It fails to find uninstalled libraries when the uninstalled
15983 # path is not listed in the libpath. Setting hardcode_minus_L
15984 # to unsupported forces relinking
15985 hardcode_minus_L=yes
15986 hardcode_libdir_flag_spec='-L$libdir'
15987 hardcode_libdir_separator=
15988 fi
15989 ;;
15990 esac
15991 shared_flag='-shared'
15992 if test "$aix_use_runtimelinking" = yes; then
15993 shared_flag="$shared_flag "'${wl}-G'
15994 fi
15995 else
15996 # not using gcc
15997 if test "$host_cpu" = ia64; then
15998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15999 # chokes on -Wl,-G. The following line is correct:
16000 shared_flag='-G'
16001 else
16002 if test "$aix_use_runtimelinking" = yes; then
16003 shared_flag='${wl}-G'
16004 else
16005 shared_flag='${wl}-bM:SRE'
16006 fi
16007 fi
16008 fi
16009
16010 export_dynamic_flag_spec='${wl}-bexpall'
16011 # It seems that -bexpall does not export symbols beginning with
16012 # underscore (_), so it is better to generate a list of symbols to export.
16013 always_export_symbols=yes
16014 if test "$aix_use_runtimelinking" = yes; then
16015 # Warning - without using the other runtime loading flags (-brtl),
16016 # -berok will link without error, but may produce a broken library.
16017 allow_undefined_flag='-berok'
16018 # Determine the default libpath from the value encoded in an
16019 # empty executable.
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022
16023 int
16024 main ()
16025 {
16026
16027 ;
16028 return 0;
16029 }
16030 _ACEOF
16031 if ac_fn_c_try_link "$LINENO"; then :
16032
16033 lt_aix_libpath_sed='
16034 /Import File Strings/,/^$/ {
16035 /^0/ {
16036 s/^0 *\(.*\)$/\1/
16037 p
16038 }
16039 }'
16040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16041 # Check for a 64-bit object if we didn't find anything.
16042 if test -z "$aix_libpath"; then
16043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16044 fi
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16049
16050 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16051 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"
16052 else
16053 if test "$host_cpu" = ia64; then
16054 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16055 allow_undefined_flag="-z nodefs"
16056 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"
16057 else
16058 # Determine the default libpath from the value encoded in an
16059 # empty executable.
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062
16063 int
16064 main ()
16065 {
16066
16067 ;
16068 return 0;
16069 }
16070 _ACEOF
16071 if ac_fn_c_try_link "$LINENO"; then :
16072
16073 lt_aix_libpath_sed='
16074 /Import File Strings/,/^$/ {
16075 /^0/ {
16076 s/^0 *\(.*\)$/\1/
16077 p
16078 }
16079 }'
16080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16081 # Check for a 64-bit object if we didn't find anything.
16082 if test -z "$aix_libpath"; then
16083 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16084 fi
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16089
16090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16091 # Warning - without using the other run time loading flags,
16092 # -berok will link without error, but may produce a broken library.
16093 no_undefined_flag=' ${wl}-bernotok'
16094 allow_undefined_flag=' ${wl}-berok'
16095 if test "$with_gnu_ld" = yes; then
16096 # We only use this code for GNU lds that support --whole-archive.
16097 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16098 else
16099 # Exported symbols can be pulled into shared objects from archives
16100 whole_archive_flag_spec='$convenience'
16101 fi
16102 archive_cmds_need_lc=yes
16103 # This is similar to how AIX traditionally builds its shared libraries.
16104 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'
16105 fi
16106 fi
16107 ;;
16108
16109 amigaos*)
16110 case $host_cpu in
16111 powerpc)
16112 # see comment about AmigaOS4 .so support
16113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16114 archive_expsym_cmds=''
16115 ;;
16116 m68k)
16117 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)'
16118 hardcode_libdir_flag_spec='-L$libdir'
16119 hardcode_minus_L=yes
16120 ;;
16121 esac
16122 ;;
16123
16124 bsdi[45]*)
16125 export_dynamic_flag_spec=-rdynamic
16126 ;;
16127
16128 cygwin* | mingw* | pw32* | cegcc*)
16129 # When not using gcc, we currently assume that we are using
16130 # Microsoft Visual C++.
16131 # hardcode_libdir_flag_spec is actually meaningless, as there is
16132 # no search path for DLLs.
16133 hardcode_libdir_flag_spec=' '
16134 allow_undefined_flag=unsupported
16135 # Tell ltmain to make .lib files, not .a files.
16136 libext=lib
16137 # Tell ltmain to make .dll files, not .so files.
16138 shrext_cmds=".dll"
16139 # FIXME: Setting linknames here is a bad hack.
16140 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16141 # The linker will automatically build a .lib file if we build a DLL.
16142 old_archive_from_new_cmds='true'
16143 # FIXME: Should let the user specify the lib program.
16144 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16145 fix_srcfile_path='`cygpath -w "$srcfile"`'
16146 enable_shared_with_static_runtimes=yes
16147 ;;
16148
16149 darwin* | rhapsody*)
16150
16151
16152 archive_cmds_need_lc=no
16153 hardcode_direct=no
16154 hardcode_automatic=yes
16155 hardcode_shlibpath_var=unsupported
16156 if test "$lt_cv_ld_force_load" = "yes"; then
16157 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\"`'
16158 else
16159 whole_archive_flag_spec=''
16160 fi
16161 link_all_deplibs=yes
16162 allow_undefined_flag="$_lt_dar_allow_undefined"
16163 case $cc_basename in
16164 ifort*) _lt_dar_can_shared=yes ;;
16165 *) _lt_dar_can_shared=$GCC ;;
16166 esac
16167 if test "$_lt_dar_can_shared" = "yes"; then
16168 output_verbose_link_cmd=func_echo_all
16169 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16170 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16171 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}"
16172 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}"
16173
16174 else
16175 ld_shlibs=no
16176 fi
16177
16178 ;;
16179
16180 dgux*)
16181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 hardcode_libdir_flag_spec='-L$libdir'
16183 hardcode_shlibpath_var=no
16184 ;;
16185
16186 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16187 # support. Future versions do this automatically, but an explicit c++rt0.o
16188 # does not break anything, and helps significantly (at the cost of a little
16189 # extra space).
16190 freebsd2.2*)
16191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16192 hardcode_libdir_flag_spec='-R$libdir'
16193 hardcode_direct=yes
16194 hardcode_shlibpath_var=no
16195 ;;
16196
16197 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16198 freebsd2.*)
16199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_direct=yes
16201 hardcode_minus_L=yes
16202 hardcode_shlibpath_var=no
16203 ;;
16204
16205 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16206 freebsd* | dragonfly*)
16207 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16208 hardcode_libdir_flag_spec='-R$libdir'
16209 hardcode_direct=yes
16210 hardcode_shlibpath_var=no
16211 ;;
16212
16213 hpux9*)
16214 if test "$GCC" = yes; then
16215 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'
16216 else
16217 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'
16218 fi
16219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16220 hardcode_libdir_separator=:
16221 hardcode_direct=yes
16222
16223 # hardcode_minus_L: Not really in the search PATH,
16224 # but as the default location of the library.
16225 hardcode_minus_L=yes
16226 export_dynamic_flag_spec='${wl}-E'
16227 ;;
16228
16229 hpux10*)
16230 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16232 else
16233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16234 fi
16235 if test "$with_gnu_ld" = no; then
16236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16237 hardcode_libdir_flag_spec_ld='+b $libdir'
16238 hardcode_libdir_separator=:
16239 hardcode_direct=yes
16240 hardcode_direct_absolute=yes
16241 export_dynamic_flag_spec='${wl}-E'
16242 # hardcode_minus_L: Not really in the search PATH,
16243 # but as the default location of the library.
16244 hardcode_minus_L=yes
16245 fi
16246 ;;
16247
16248 hpux11*)
16249 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16250 case $host_cpu in
16251 hppa*64*)
16252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 ;;
16254 ia64*)
16255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16256 ;;
16257 *)
16258 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16259 ;;
16260 esac
16261 else
16262 case $host_cpu in
16263 hppa*64*)
16264 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 ;;
16266 ia64*)
16267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16268 ;;
16269 *)
16270
16271 # Older versions of the 11.00 compiler do not understand -b yet
16272 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16274 $as_echo_n "checking if $CC understands -b... " >&6; }
16275 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 lt_cv_prog_compiler__b=no
16279 save_LDFLAGS="$LDFLAGS"
16280 LDFLAGS="$LDFLAGS -b"
16281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16283 # The linker can only warn and ignore the option if not recognized
16284 # So say no if there are warnings
16285 if test -s conftest.err; then
16286 # Append any errors to the config.log.
16287 cat conftest.err 1>&5
16288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16290 if diff conftest.exp conftest.er2 >/dev/null; then
16291 lt_cv_prog_compiler__b=yes
16292 fi
16293 else
16294 lt_cv_prog_compiler__b=yes
16295 fi
16296 fi
16297 $RM -r conftest*
16298 LDFLAGS="$save_LDFLAGS"
16299
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16302 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16303
16304 if test x"$lt_cv_prog_compiler__b" = xyes; then
16305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16306 else
16307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16308 fi
16309
16310 ;;
16311 esac
16312 fi
16313 if test "$with_gnu_ld" = no; then
16314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16315 hardcode_libdir_separator=:
16316
16317 case $host_cpu in
16318 hppa*64*|ia64*)
16319 hardcode_direct=no
16320 hardcode_shlibpath_var=no
16321 ;;
16322 *)
16323 hardcode_direct=yes
16324 hardcode_direct_absolute=yes
16325 export_dynamic_flag_spec='${wl}-E'
16326
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L=yes
16330 ;;
16331 esac
16332 fi
16333 ;;
16334
16335 irix5* | irix6* | nonstopux*)
16336 if test "$GCC" = yes; then
16337 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'
16338 # Try to use the -exported_symbol ld option, if it does not
16339 # work, assume that -exports_file does not work either and
16340 # implicitly export all symbols.
16341 save_LDFLAGS="$LDFLAGS"
16342 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 int foo(void) {}
16346 _ACEOF
16347 if ac_fn_c_try_link "$LINENO"; then :
16348 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'
16349
16350 fi
16351 rm -f core conftest.err conftest.$ac_objext \
16352 conftest$ac_exeext conftest.$ac_ext
16353 LDFLAGS="$save_LDFLAGS"
16354 else
16355 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'
16356 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'
16357 fi
16358 archive_cmds_need_lc='no'
16359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16360 hardcode_libdir_separator=:
16361 inherit_rpath=yes
16362 link_all_deplibs=yes
16363 ;;
16364
16365 netbsd*)
16366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16368 else
16369 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16370 fi
16371 hardcode_libdir_flag_spec='-R$libdir'
16372 hardcode_direct=yes
16373 hardcode_shlibpath_var=no
16374 ;;
16375
16376 newsos6)
16377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_direct=yes
16379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16380 hardcode_libdir_separator=:
16381 hardcode_shlibpath_var=no
16382 ;;
16383
16384 *nto* | *qnx*)
16385 ;;
16386
16387 openbsd*)
16388 if test -f /usr/libexec/ld.so; then
16389 hardcode_direct=yes
16390 hardcode_shlibpath_var=no
16391 hardcode_direct_absolute=yes
16392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16396 export_dynamic_flag_spec='${wl}-E'
16397 else
16398 case $host_os in
16399 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_libdir_flag_spec='-R$libdir'
16402 ;;
16403 *)
16404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16405 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16406 ;;
16407 esac
16408 fi
16409 else
16410 ld_shlibs=no
16411 fi
16412 ;;
16413
16414 os2*)
16415 hardcode_libdir_flag_spec='-L$libdir'
16416 hardcode_minus_L=yes
16417 allow_undefined_flag=unsupported
16418 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'
16419 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16420 ;;
16421
16422 osf3*)
16423 if test "$GCC" = yes; then
16424 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16425 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'
16426 else
16427 allow_undefined_flag=' -expect_unresolved \*'
16428 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'
16429 fi
16430 archive_cmds_need_lc='no'
16431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16432 hardcode_libdir_separator=:
16433 ;;
16434
16435 osf4* | osf5*) # as osf3* with the addition of -msym flag
16436 if test "$GCC" = yes; then
16437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16438 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'
16439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16440 else
16441 allow_undefined_flag=' -expect_unresolved \*'
16442 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'
16443 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~
16444 $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'
16445
16446 # Both c and cxx compiler support -rpath directly
16447 hardcode_libdir_flag_spec='-rpath $libdir'
16448 fi
16449 archive_cmds_need_lc='no'
16450 hardcode_libdir_separator=:
16451 ;;
16452
16453 solaris*)
16454 no_undefined_flag=' -z defs'
16455 if test "$GCC" = yes; then
16456 wlarc='${wl}'
16457 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16458 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16459 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16460 else
16461 case `$CC -V 2>&1` in
16462 *"Compilers 5.0"*)
16463 wlarc=''
16464 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16467 ;;
16468 *)
16469 wlarc='${wl}'
16470 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16472 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16473 ;;
16474 esac
16475 fi
16476 hardcode_libdir_flag_spec='-R$libdir'
16477 hardcode_shlibpath_var=no
16478 case $host_os in
16479 solaris2.[0-5] | solaris2.[0-5].*) ;;
16480 *)
16481 # The compiler driver will combine and reorder linker options,
16482 # but understands `-z linker_flag'. GCC discards it without `$wl',
16483 # but is careful enough not to reorder.
16484 # Supported since Solaris 2.6 (maybe 2.5.1?)
16485 if test "$GCC" = yes; then
16486 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16487 else
16488 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16489 fi
16490 ;;
16491 esac
16492 link_all_deplibs=yes
16493 ;;
16494
16495 sunos4*)
16496 if test "x$host_vendor" = xsequent; then
16497 # Use $CC to link under sequent, because it throws in some extra .o
16498 # files that make .init and .fini sections work.
16499 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16500 else
16501 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16502 fi
16503 hardcode_libdir_flag_spec='-L$libdir'
16504 hardcode_direct=yes
16505 hardcode_minus_L=yes
16506 hardcode_shlibpath_var=no
16507 ;;
16508
16509 sysv4)
16510 case $host_vendor in
16511 sni)
16512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_direct=yes # is this really true???
16514 ;;
16515 siemens)
16516 ## LD is ld it makes a PLAMLIB
16517 ## CC just makes a GrossModule.
16518 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16519 reload_cmds='$CC -r -o $output$reload_objs'
16520 hardcode_direct=no
16521 ;;
16522 motorola)
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16525 ;;
16526 esac
16527 runpath_var='LD_RUN_PATH'
16528 hardcode_shlibpath_var=no
16529 ;;
16530
16531 sysv4.3*)
16532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_shlibpath_var=no
16534 export_dynamic_flag_spec='-Bexport'
16535 ;;
16536
16537 sysv4*MP*)
16538 if test -d /usr/nec; then
16539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_shlibpath_var=no
16541 runpath_var=LD_RUN_PATH
16542 hardcode_runpath_var=yes
16543 ld_shlibs=yes
16544 fi
16545 ;;
16546
16547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16548 no_undefined_flag='${wl}-z,text'
16549 archive_cmds_need_lc=no
16550 hardcode_shlibpath_var=no
16551 runpath_var='LD_RUN_PATH'
16552
16553 if test "$GCC" = yes; then
16554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 else
16557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 fi
16560 ;;
16561
16562 sysv5* | sco3.2v5* | sco5v6*)
16563 # Note: We can NOT use -z defs as we might desire, because we do not
16564 # link with -lc, and that would cause any symbols used from libc to
16565 # always be unresolved, which means just about no library would
16566 # ever link correctly. If we're not using GNU ld we use -z text
16567 # though, which does catch some bad symbols but isn't as heavy-handed
16568 # as -z defs.
16569 no_undefined_flag='${wl}-z,text'
16570 allow_undefined_flag='${wl}-z,nodefs'
16571 archive_cmds_need_lc=no
16572 hardcode_shlibpath_var=no
16573 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16574 hardcode_libdir_separator=':'
16575 link_all_deplibs=yes
16576 export_dynamic_flag_spec='${wl}-Bexport'
16577 runpath_var='LD_RUN_PATH'
16578
16579 if test "$GCC" = yes; then
16580 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 else
16583 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16584 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 fi
16586 ;;
16587
16588 uts4*)
16589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_libdir_flag_spec='-L$libdir'
16591 hardcode_shlibpath_var=no
16592 ;;
16593
16594 *)
16595 ld_shlibs=no
16596 ;;
16597 esac
16598
16599 if test x$host_vendor = xsni; then
16600 case $host in
16601 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16602 export_dynamic_flag_spec='${wl}-Blargedynsym'
16603 ;;
16604 esac
16605 fi
16606 fi
16607
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16609 $as_echo "$ld_shlibs" >&6; }
16610 test "$ld_shlibs" = no && can_build_shared=no
16611
16612 with_gnu_ld=$with_gnu_ld
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628 #
16629 # Do we need to explicitly link libc?
16630 #
16631 case "x$archive_cmds_need_lc" in
16632 x|xyes)
16633 # Assume -lc should be added
16634 archive_cmds_need_lc=yes
16635
16636 if test "$enable_shared" = yes && test "$GCC" = yes; then
16637 case $archive_cmds in
16638 *'~'*)
16639 # FIXME: we may have to deal with multi-command sequences.
16640 ;;
16641 '$CC '*)
16642 # Test whether the compiler implicitly links with -lc since on some
16643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16644 # to ld, don't add -lc before -lgcc.
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16646 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16647 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 $RM conftest*
16651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16652
16653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16654 (eval $ac_compile) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; } 2>conftest.err; then
16658 soname=conftest
16659 lib=conftest
16660 libobjs=conftest.$ac_objext
16661 deplibs=
16662 wl=$lt_prog_compiler_wl
16663 pic_flag=$lt_prog_compiler_pic
16664 compiler_flags=-v
16665 linker_flags=-v
16666 verstring=
16667 output_objdir=.
16668 libname=conftest
16669 lt_save_allow_undefined_flag=$allow_undefined_flag
16670 allow_undefined_flag=
16671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16672 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16673 ac_status=$?
16674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16675 test $ac_status = 0; }
16676 then
16677 lt_cv_archive_cmds_need_lc=no
16678 else
16679 lt_cv_archive_cmds_need_lc=yes
16680 fi
16681 allow_undefined_flag=$lt_save_allow_undefined_flag
16682 else
16683 cat conftest.err 1>&5
16684 fi
16685 $RM conftest*
16686
16687 fi
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16689 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16690 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16691 ;;
16692 esac
16693 fi
16694 ;;
16695 esac
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16854 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16855
16856 if test "$GCC" = yes; then
16857 case $host_os in
16858 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16859 *) lt_awk_arg="/^libraries:/" ;;
16860 esac
16861 case $host_os in
16862 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16863 *) lt_sed_strip_eq="s,=/,/,g" ;;
16864 esac
16865 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16866 case $lt_search_path_spec in
16867 *\;*)
16868 # if the path contains ";" then we assume it to be the separator
16869 # otherwise default to the standard path separator (i.e. ":") - it is
16870 # assumed that no part of a normal pathname contains ";" but that should
16871 # okay in the real world where ";" in dirpaths is itself problematic.
16872 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16873 ;;
16874 *)
16875 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16876 ;;
16877 esac
16878 # Ok, now we have the path, separated by spaces, we can step through it
16879 # and add multilib dir if necessary.
16880 lt_tmp_lt_search_path_spec=
16881 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16882 for lt_sys_path in $lt_search_path_spec; do
16883 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16884 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16885 else
16886 test -d "$lt_sys_path" && \
16887 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16888 fi
16889 done
16890 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16891 BEGIN {RS=" "; FS="/|\n";} {
16892 lt_foo="";
16893 lt_count=0;
16894 for (lt_i = NF; lt_i > 0; lt_i--) {
16895 if ($lt_i != "" && $lt_i != ".") {
16896 if ($lt_i == "..") {
16897 lt_count++;
16898 } else {
16899 if (lt_count == 0) {
16900 lt_foo="/" $lt_i lt_foo;
16901 } else {
16902 lt_count--;
16903 }
16904 }
16905 }
16906 }
16907 if (lt_foo != "") { lt_freq[lt_foo]++; }
16908 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16909 }'`
16910 # AWK program above erroneously prepends '/' to C:/dos/paths
16911 # for these hosts.
16912 case $host_os in
16913 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16914 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16915 esac
16916 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16917 else
16918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16919 fi
16920 library_names_spec=
16921 libname_spec='lib$name'
16922 soname_spec=
16923 shrext_cmds=".so"
16924 postinstall_cmds=
16925 postuninstall_cmds=
16926 finish_cmds=
16927 finish_eval=
16928 shlibpath_var=
16929 shlibpath_overrides_runpath=unknown
16930 version_type=none
16931 dynamic_linker="$host_os ld.so"
16932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16933 need_lib_prefix=unknown
16934 hardcode_into_libs=no
16935
16936 # when you set need_version to no, make sure it does not cause -set_version
16937 # flags to be left without arguments
16938 need_version=unknown
16939
16940 case $host_os in
16941 aix3*)
16942 version_type=linux
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16944 shlibpath_var=LIBPATH
16945
16946 # AIX 3 has no versioning support, so we append a major version to the name.
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 ;;
16949
16950 aix[4-9]*)
16951 version_type=linux
16952 need_lib_prefix=no
16953 need_version=no
16954 hardcode_into_libs=yes
16955 if test "$host_cpu" = ia64; then
16956 # AIX 5 supports IA64
16957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 else
16960 # With GCC up to 2.95.x, collect2 would create an import file
16961 # for dependence libraries. The import file would start with
16962 # the line `#! .'. This would cause the generated library to
16963 # depend on `.', always an invalid library. This was fixed in
16964 # development snapshots of GCC prior to 3.0.
16965 case $host_os in
16966 aix4 | aix4.[01] | aix4.[01].*)
16967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16968 echo ' yes '
16969 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16970 :
16971 else
16972 can_build_shared=no
16973 fi
16974 ;;
16975 esac
16976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16977 # soname into executable. Probably we can add versioning support to
16978 # collect2, so additional links can be useful in future.
16979 if test "$aix_use_runtimelinking" = yes; then
16980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16981 # instead of lib<name>.a to let people know that these are not
16982 # typical AIX shared libraries.
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984 else
16985 # We preserve .a as extension for shared libraries through AIX4.2
16986 # and later when we are not doing run time linking.
16987 library_names_spec='${libname}${release}.a $libname.a'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 fi
16990 shlibpath_var=LIBPATH
16991 fi
16992 ;;
16993
16994 amigaos*)
16995 case $host_cpu in
16996 powerpc)
16997 # Since July 2007 AmigaOS4 officially supports .so libraries.
16998 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 ;;
17001 m68k)
17002 library_names_spec='$libname.ixlibrary $libname.a'
17003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17004 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'
17005 ;;
17006 esac
17007 ;;
17008
17009 beos*)
17010 library_names_spec='${libname}${shared_ext}'
17011 dynamic_linker="$host_os ld.so"
17012 shlibpath_var=LIBRARY_PATH
17013 ;;
17014
17015 bsdi[45]*)
17016 version_type=linux
17017 need_version=no
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17021 shlibpath_var=LD_LIBRARY_PATH
17022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17024 # the default ld.so.conf also contains /usr/contrib/lib and
17025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17026 # libtool to hard-code these into programs
17027 ;;
17028
17029 cygwin* | mingw* | pw32* | cegcc*)
17030 version_type=windows
17031 shrext_cmds=".dll"
17032 need_version=no
17033 need_lib_prefix=no
17034
17035 case $GCC,$host_os in
17036 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17037 library_names_spec='$libname.dll.a'
17038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17039 postinstall_cmds='base_file=`basename \${file}`~
17040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17041 dldir=$destdir/`dirname \$dlpath`~
17042 test -d \$dldir || mkdir -p \$dldir~
17043 $install_prog $dir/$dlname \$dldir/$dlname~
17044 chmod a+x \$dldir/$dlname~
17045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17047 fi'
17048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17049 dlpath=$dir/\$dldll~
17050 $RM \$dlpath'
17051 shlibpath_overrides_runpath=yes
17052
17053 case $host_os in
17054 cygwin*)
17055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17057
17058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17059 ;;
17060 mingw* | cegcc*)
17061 # MinGW DLLs use traditional 'lib' prefix
17062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17063 ;;
17064 pw32*)
17065 # pw32 DLLs use 'pw' prefix rather than 'lib'
17066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17067 ;;
17068 esac
17069 ;;
17070
17071 *)
17072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17073 ;;
17074 esac
17075 dynamic_linker='Win32 ld.exe'
17076 # FIXME: first we should search . and the directory the executable is in
17077 shlibpath_var=PATH
17078 ;;
17079
17080 darwin* | rhapsody*)
17081 dynamic_linker="$host_os dyld"
17082 version_type=darwin
17083 need_lib_prefix=no
17084 need_version=no
17085 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17086 soname_spec='${libname}${release}${major}$shared_ext'
17087 shlibpath_overrides_runpath=yes
17088 shlibpath_var=DYLD_LIBRARY_PATH
17089 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17090
17091 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17092 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17093 ;;
17094
17095 dgux*)
17096 version_type=linux
17097 need_lib_prefix=no
17098 need_version=no
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 ;;
17103
17104 freebsd* | dragonfly*)
17105 # DragonFly does not have aout. When/if they implement a new
17106 # versioning mechanism, adjust this.
17107 if test -x /usr/bin/objformat; then
17108 objformat=`/usr/bin/objformat`
17109 else
17110 case $host_os in
17111 freebsd[23].*) objformat=aout ;;
17112 *) objformat=elf ;;
17113 esac
17114 fi
17115 version_type=freebsd-$objformat
17116 case $version_type in
17117 freebsd-elf*)
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17119 need_version=no
17120 need_lib_prefix=no
17121 ;;
17122 freebsd-*)
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17124 need_version=yes
17125 ;;
17126 esac
17127 shlibpath_var=LD_LIBRARY_PATH
17128 case $host_os in
17129 freebsd2.*)
17130 shlibpath_overrides_runpath=yes
17131 ;;
17132 freebsd3.[01]* | freebsdelf3.[01]*)
17133 shlibpath_overrides_runpath=yes
17134 hardcode_into_libs=yes
17135 ;;
17136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17138 shlibpath_overrides_runpath=no
17139 hardcode_into_libs=yes
17140 ;;
17141 *) # from 4.6 on, and DragonFly
17142 shlibpath_overrides_runpath=yes
17143 hardcode_into_libs=yes
17144 ;;
17145 esac
17146 ;;
17147
17148 gnu*)
17149 version_type=linux
17150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 hardcode_into_libs=yes
17156 ;;
17157
17158 haiku*)
17159 version_type=linux
17160 need_lib_prefix=no
17161 need_version=no
17162 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17168 hardcode_into_libs=yes
17169 ;;
17170
17171 hpux9* | hpux10* | hpux11*)
17172 # Give a soname corresponding to the major version so that dld.sl refuses to
17173 # link against other versions.
17174 version_type=sunos
17175 need_lib_prefix=no
17176 need_version=no
17177 case $host_cpu in
17178 ia64*)
17179 shrext_cmds='.so'
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.so"
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 if test "X$HPUX_IA64_MODE" = X32; then
17187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17188 else
17189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17190 fi
17191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17192 ;;
17193 hppa*64*)
17194 shrext_cmds='.sl'
17195 hardcode_into_libs=yes
17196 dynamic_linker="$host_os dld.sl"
17197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17203 ;;
17204 *)
17205 shrext_cmds='.sl'
17206 dynamic_linker="$host_os dld.sl"
17207 shlibpath_var=SHLIB_PATH
17208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 ;;
17212 esac
17213 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17214 postinstall_cmds='chmod 555 $lib'
17215 # or fails outright, so override atomically:
17216 install_override_mode=555
17217 ;;
17218
17219 interix[3-9]*)
17220 version_type=linux
17221 need_lib_prefix=no
17222 need_version=no
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=no
17228 hardcode_into_libs=yes
17229 ;;
17230
17231 irix5* | irix6* | nonstopux*)
17232 case $host_os in
17233 nonstopux*) version_type=nonstopux ;;
17234 *)
17235 if test "$lt_cv_prog_gnu_ld" = yes; then
17236 version_type=linux
17237 else
17238 version_type=irix
17239 fi ;;
17240 esac
17241 need_lib_prefix=no
17242 need_version=no
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17245 case $host_os in
17246 irix5* | nonstopux*)
17247 libsuff= shlibsuff=
17248 ;;
17249 *)
17250 case $LD in # libtool.m4 will add one of these switches to LD
17251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17252 libsuff= shlibsuff= libmagic=32-bit;;
17253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17254 libsuff=32 shlibsuff=N32 libmagic=N32;;
17255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17257 *) libsuff= shlibsuff= libmagic=never-match;;
17258 esac
17259 ;;
17260 esac
17261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17262 shlibpath_overrides_runpath=no
17263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17265 hardcode_into_libs=yes
17266 ;;
17267
17268 # No shared lib support for Linux oldld, aout, or coff.
17269 linux*oldld* | linux*aout* | linux*coff*)
17270 dynamic_linker=no
17271 ;;
17272
17273 # This must be Linux ELF.
17274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17275 version_type=linux
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=no
17283
17284 # Some binutils ld are patched to set DT_RUNPATH
17285 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 lt_cv_shlibpath_overrides_runpath=no
17289 save_LDFLAGS=$LDFLAGS
17290 save_libdir=$libdir
17291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295
17296 int
17297 main ()
17298 {
17299
17300 ;
17301 return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_c_try_link "$LINENO"; then :
17305 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17306 lt_cv_shlibpath_overrides_runpath=yes
17307 fi
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LDFLAGS=$save_LDFLAGS
17312 libdir=$save_libdir
17313
17314 fi
17315
17316 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17317
17318 # This implies no fast_install, which is unacceptable.
17319 # Some rework will be needed to allow for fast_install
17320 # before this can be enabled.
17321 hardcode_into_libs=yes
17322
17323 # Append ld.so.conf contents to the search path
17324 if test -f /etc/ld.so.conf; then
17325 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' ' '`
17326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17327 fi
17328
17329 # We used to test for /lib/ld.so.1 and disable shared libraries on
17330 # powerpc, because MkLinux only supported shared libraries with the
17331 # GNU dynamic linker. Since this was broken with cross compilers,
17332 # most powerpc-linux boxes support dynamic linking these days and
17333 # people can always --disable-shared, the test was removed, and we
17334 # assume the GNU/Linux dynamic linker is in use.
17335 dynamic_linker='GNU/Linux ld.so'
17336 ;;
17337
17338 netbsd*)
17339 version_type=sunos
17340 need_lib_prefix=no
17341 need_version=no
17342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17345 dynamic_linker='NetBSD (a.out) ld.so'
17346 else
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 dynamic_linker='NetBSD ld.elf_so'
17350 fi
17351 shlibpath_var=LD_LIBRARY_PATH
17352 shlibpath_overrides_runpath=yes
17353 hardcode_into_libs=yes
17354 ;;
17355
17356 newsos6)
17357 version_type=linux
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=yes
17361 ;;
17362
17363 *nto* | *qnx*)
17364 version_type=qnx
17365 need_lib_prefix=no
17366 need_version=no
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=no
17371 hardcode_into_libs=yes
17372 dynamic_linker='ldqnx.so'
17373 ;;
17374
17375 openbsd*)
17376 version_type=sunos
17377 sys_lib_dlsearch_path_spec="/usr/lib"
17378 need_lib_prefix=no
17379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17380 case $host_os in
17381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17382 *) need_version=no ;;
17383 esac
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17388 case $host_os in
17389 openbsd2.[89] | openbsd2.[89].*)
17390 shlibpath_overrides_runpath=no
17391 ;;
17392 *)
17393 shlibpath_overrides_runpath=yes
17394 ;;
17395 esac
17396 else
17397 shlibpath_overrides_runpath=yes
17398 fi
17399 ;;
17400
17401 os2*)
17402 libname_spec='$name'
17403 shrext_cmds=".dll"
17404 need_lib_prefix=no
17405 library_names_spec='$libname${shared_ext} $libname.a'
17406 dynamic_linker='OS/2 ld.exe'
17407 shlibpath_var=LIBPATH
17408 ;;
17409
17410 osf3* | osf4* | osf5*)
17411 version_type=osf
17412 need_lib_prefix=no
17413 need_version=no
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17419 ;;
17420
17421 rdos*)
17422 dynamic_linker=no
17423 ;;
17424
17425 solaris*)
17426 version_type=linux
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 shlibpath_overrides_runpath=yes
17433 hardcode_into_libs=yes
17434 # ldd complains unless libraries are executable
17435 postinstall_cmds='chmod +x $lib'
17436 ;;
17437
17438 sunos4*)
17439 version_type=sunos
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=yes
17444 if test "$with_gnu_ld" = yes; then
17445 need_lib_prefix=no
17446 fi
17447 need_version=yes
17448 ;;
17449
17450 sysv4 | sysv4.3*)
17451 version_type=linux
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 case $host_vendor in
17456 sni)
17457 shlibpath_overrides_runpath=no
17458 need_lib_prefix=no
17459 runpath_var=LD_RUN_PATH
17460 ;;
17461 siemens)
17462 need_lib_prefix=no
17463 ;;
17464 motorola)
17465 need_lib_prefix=no
17466 need_version=no
17467 shlibpath_overrides_runpath=no
17468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17469 ;;
17470 esac
17471 ;;
17472
17473 sysv4*MP*)
17474 if test -d /usr/nec ;then
17475 version_type=linux
17476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17477 soname_spec='$libname${shared_ext}.$major'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 fi
17480 ;;
17481
17482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17483 version_type=freebsd-elf
17484 need_lib_prefix=no
17485 need_version=no
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 shlibpath_overrides_runpath=yes
17490 hardcode_into_libs=yes
17491 if test "$with_gnu_ld" = yes; then
17492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17493 else
17494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17495 case $host_os in
17496 sco3.2v5*)
17497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17498 ;;
17499 esac
17500 fi
17501 sys_lib_dlsearch_path_spec='/usr/lib'
17502 ;;
17503
17504 tpf*)
17505 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17506 version_type=linux
17507 need_lib_prefix=no
17508 need_version=no
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath=no
17512 hardcode_into_libs=yes
17513 ;;
17514
17515 uts4*)
17516 version_type=linux
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 ;;
17521
17522 *)
17523 dynamic_linker=no
17524 ;;
17525 esac
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17527 $as_echo "$dynamic_linker" >&6; }
17528 test "$dynamic_linker" = no && can_build_shared=no
17529
17530 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17531 if test "$GCC" = yes; then
17532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17533 fi
17534
17535 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17536 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17537 fi
17538 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17539 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17540 fi
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17634 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17635 hardcode_action=
17636 if test -n "$hardcode_libdir_flag_spec" ||
17637 test -n "$runpath_var" ||
17638 test "X$hardcode_automatic" = "Xyes" ; then
17639
17640 # We can hardcode non-existent directories.
17641 if test "$hardcode_direct" != no &&
17642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17643 # have to relink, otherwise we might link with an installed library
17644 # when we should be linking with a yet-to-be-installed one
17645 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17646 test "$hardcode_minus_L" != no; then
17647 # Linking always hardcodes the temporary library directory.
17648 hardcode_action=relink
17649 else
17650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17651 hardcode_action=immediate
17652 fi
17653 else
17654 # We cannot hardcode anything, or else we can only hardcode existing
17655 # directories.
17656 hardcode_action=unsupported
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17659 $as_echo "$hardcode_action" >&6; }
17660
17661 if test "$hardcode_action" = relink ||
17662 test "$inherit_rpath" = yes; then
17663 # Fast installation is not supported
17664 enable_fast_install=no
17665 elif test "$shlibpath_overrides_runpath" = yes ||
17666 test "$enable_shared" = no; then
17667 # Fast installation is not necessary
17668 enable_fast_install=needless
17669 fi
17670
17671
17672
17673
17674
17675
17676 if test "x$enable_dlopen" != xyes; then
17677 enable_dlopen=unknown
17678 enable_dlopen_self=unknown
17679 enable_dlopen_self_static=unknown
17680 else
17681 lt_cv_dlopen=no
17682 lt_cv_dlopen_libs=
17683
17684 case $host_os in
17685 beos*)
17686 lt_cv_dlopen="load_add_on"
17687 lt_cv_dlopen_libs=
17688 lt_cv_dlopen_self=yes
17689 ;;
17690
17691 mingw* | pw32* | cegcc*)
17692 lt_cv_dlopen="LoadLibrary"
17693 lt_cv_dlopen_libs=
17694 ;;
17695
17696 cygwin*)
17697 lt_cv_dlopen="dlopen"
17698 lt_cv_dlopen_libs=
17699 ;;
17700
17701 darwin*)
17702 # if libdl is installed we need to link against it
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17706 $as_echo_n "(cached) " >&6
17707 else
17708 ac_check_lib_save_LIBS=$LIBS
17709 LIBS="-ldl $LIBS"
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 char dlopen ();
17720 int
17721 main ()
17722 {
17723 return dlopen ();
17724 ;
17725 return 0;
17726 }
17727 _ACEOF
17728 if ac_fn_c_try_link "$LINENO"; then :
17729 ac_cv_lib_dl_dlopen=yes
17730 else
17731 ac_cv_lib_dl_dlopen=no
17732 fi
17733 rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17736 fi
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17739 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741 else
17742
17743 lt_cv_dlopen="dyld"
17744 lt_cv_dlopen_libs=
17745 lt_cv_dlopen_self=yes
17746
17747 fi
17748
17749 ;;
17750
17751 *)
17752 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17753 if test "x$ac_cv_func_shl_load" = x""yes; then :
17754 lt_cv_dlopen="shl_load"
17755 else
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17757 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 ac_check_lib_save_LIBS=$LIBS
17762 LIBS="-ldld $LIBS"
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17765
17766 /* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17769 #ifdef __cplusplus
17770 extern "C"
17771 #endif
17772 char shl_load ();
17773 int
17774 main ()
17775 {
17776 return shl_load ();
17777 ;
17778 return 0;
17779 }
17780 _ACEOF
17781 if ac_fn_c_try_link "$LINENO"; then :
17782 ac_cv_lib_dld_shl_load=yes
17783 else
17784 ac_cv_lib_dld_shl_load=no
17785 fi
17786 rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17788 LIBS=$ac_check_lib_save_LIBS
17789 fi
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17791 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17792 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17793 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17794 else
17795 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17796 if test "x$ac_cv_func_dlopen" = x""yes; then :
17797 lt_cv_dlopen="dlopen"
17798 else
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17800 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17801 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-ldl $LIBS"
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char dlopen ();
17816 int
17817 main ()
17818 {
17819 return dlopen ();
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825 ac_cv_lib_dl_dlopen=yes
17826 else
17827 ac_cv_lib_dl_dlopen=no
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17832 fi
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17835 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17836 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17837 else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17839 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17840 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lsvld $LIBS"
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char dlopen ();
17855 int
17856 main ()
17857 {
17858 return dlopen ();
17859 ;
17860 return 0;
17861 }
17862 _ACEOF
17863 if ac_fn_c_try_link "$LINENO"; then :
17864 ac_cv_lib_svld_dlopen=yes
17865 else
17866 ac_cv_lib_svld_dlopen=no
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17873 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17874 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17876 else
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17878 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17880 $as_echo_n "(cached) " >&6
17881 else
17882 ac_check_lib_save_LIBS=$LIBS
17883 LIBS="-ldld $LIBS"
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886
17887 /* Override any GCC internal prototype to avoid an error.
17888 Use char because int might match the return type of a GCC
17889 builtin and then its argument prototype would still apply. */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 char dld_link ();
17894 int
17895 main ()
17896 {
17897 return dld_link ();
17898 ;
17899 return 0;
17900 }
17901 _ACEOF
17902 if ac_fn_c_try_link "$LINENO"; then :
17903 ac_cv_lib_dld_dld_link=yes
17904 else
17905 ac_cv_lib_dld_dld_link=no
17906 fi
17907 rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909 LIBS=$ac_check_lib_save_LIBS
17910 fi
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17912 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17913 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17914 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17915 fi
17916
17917
17918 fi
17919
17920
17921 fi
17922
17923
17924 fi
17925
17926
17927 fi
17928
17929
17930 fi
17931
17932 ;;
17933 esac
17934
17935 if test "x$lt_cv_dlopen" != xno; then
17936 enable_dlopen=yes
17937 else
17938 enable_dlopen=no
17939 fi
17940
17941 case $lt_cv_dlopen in
17942 dlopen)
17943 save_CPPFLAGS="$CPPFLAGS"
17944 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17945
17946 save_LDFLAGS="$LDFLAGS"
17947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17948
17949 save_LIBS="$LIBS"
17950 LIBS="$lt_cv_dlopen_libs $LIBS"
17951
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17953 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17954 if test "${lt_cv_dlopen_self+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 if test "$cross_compiling" = yes; then :
17958 lt_cv_dlopen_self=cross
17959 else
17960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17961 lt_status=$lt_dlunknown
17962 cat > conftest.$ac_ext <<_LT_EOF
17963 #line 17963 "configure"
17964 #include "confdefs.h"
17965
17966 #if HAVE_DLFCN_H
17967 #include <dlfcn.h>
17968 #endif
17969
17970 #include <stdio.h>
17971
17972 #ifdef RTLD_GLOBAL
17973 # define LT_DLGLOBAL RTLD_GLOBAL
17974 #else
17975 # ifdef DL_GLOBAL
17976 # define LT_DLGLOBAL DL_GLOBAL
17977 # else
17978 # define LT_DLGLOBAL 0
17979 # endif
17980 #endif
17981
17982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17983 find out it does not work in some platform. */
17984 #ifndef LT_DLLAZY_OR_NOW
17985 # ifdef RTLD_LAZY
17986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17987 # else
17988 # ifdef DL_LAZY
17989 # define LT_DLLAZY_OR_NOW DL_LAZY
17990 # else
17991 # ifdef RTLD_NOW
17992 # define LT_DLLAZY_OR_NOW RTLD_NOW
17993 # else
17994 # ifdef DL_NOW
17995 # define LT_DLLAZY_OR_NOW DL_NOW
17996 # else
17997 # define LT_DLLAZY_OR_NOW 0
17998 # endif
17999 # endif
18000 # endif
18001 # endif
18002 #endif
18003
18004 /* When -fvisbility=hidden is used, assume the code has been annotated
18005 correspondingly for the symbols needed. */
18006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18007 void fnord () __attribute__((visibility("default")));
18008 #endif
18009
18010 void fnord () { int i=42; }
18011 int main ()
18012 {
18013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014 int status = $lt_dlunknown;
18015
18016 if (self)
18017 {
18018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18019 else
18020 {
18021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18022 else puts (dlerror ());
18023 }
18024 /* dlclose (self); */
18025 }
18026 else
18027 puts (dlerror ());
18028
18029 return status;
18030 }
18031 _LT_EOF
18032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18033 (eval $ac_link) 2>&5
18034 ac_status=$?
18035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18037 (./conftest; exit; ) >&5 2>/dev/null
18038 lt_status=$?
18039 case x$lt_status in
18040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18043 esac
18044 else :
18045 # compilation failed
18046 lt_cv_dlopen_self=no
18047 fi
18048 fi
18049 rm -fr conftest*
18050
18051
18052 fi
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18054 $as_echo "$lt_cv_dlopen_self" >&6; }
18055
18056 if test "x$lt_cv_dlopen_self" = xyes; then
18057 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18059 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18060 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18061 $as_echo_n "(cached) " >&6
18062 else
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self_static=cross
18065 else
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<_LT_EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18071
18072 #if HAVE_DLFCN_H
18073 #include <dlfcn.h>
18074 #endif
18075
18076 #include <stdio.h>
18077
18078 #ifdef RTLD_GLOBAL
18079 # define LT_DLGLOBAL RTLD_GLOBAL
18080 #else
18081 # ifdef DL_GLOBAL
18082 # define LT_DLGLOBAL DL_GLOBAL
18083 # else
18084 # define LT_DLGLOBAL 0
18085 # endif
18086 #endif
18087
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18091 # ifdef RTLD_LAZY
18092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18093 # else
18094 # ifdef DL_LAZY
18095 # define LT_DLLAZY_OR_NOW DL_LAZY
18096 # else
18097 # ifdef RTLD_NOW
18098 # define LT_DLLAZY_OR_NOW RTLD_NOW
18099 # else
18100 # ifdef DL_NOW
18101 # define LT_DLLAZY_OR_NOW DL_NOW
18102 # else
18103 # define LT_DLLAZY_OR_NOW 0
18104 # endif
18105 # endif
18106 # endif
18107 # endif
18108 #endif
18109
18110 /* When -fvisbility=hidden is used, assume the code has been annotated
18111 correspondingly for the symbols needed. */
18112 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18113 void fnord () __attribute__((visibility("default")));
18114 #endif
18115
18116 void fnord () { int i=42; }
18117 int main ()
18118 {
18119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18120 int status = $lt_dlunknown;
18121
18122 if (self)
18123 {
18124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18125 else
18126 {
18127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18128 else puts (dlerror ());
18129 }
18130 /* dlclose (self); */
18131 }
18132 else
18133 puts (dlerror ());
18134
18135 return status;
18136 }
18137 _LT_EOF
18138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18139 (eval $ac_link) 2>&5
18140 ac_status=$?
18141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18142 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18143 (./conftest; exit; ) >&5 2>/dev/null
18144 lt_status=$?
18145 case x$lt_status in
18146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18148 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18149 esac
18150 else :
18151 # compilation failed
18152 lt_cv_dlopen_self_static=no
18153 fi
18154 fi
18155 rm -fr conftest*
18156
18157
18158 fi
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18160 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18161 fi
18162
18163 CPPFLAGS="$save_CPPFLAGS"
18164 LDFLAGS="$save_LDFLAGS"
18165 LIBS="$save_LIBS"
18166 ;;
18167 esac
18168
18169 case $lt_cv_dlopen_self in
18170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18171 *) enable_dlopen_self=unknown ;;
18172 esac
18173
18174 case $lt_cv_dlopen_self_static in
18175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18176 *) enable_dlopen_self_static=unknown ;;
18177 esac
18178 fi
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196 striplib=
18197 old_striplib=
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18199 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18200 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18201 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18202 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18204 $as_echo "yes" >&6; }
18205 else
18206 # FIXME - insert some real tests, host_os isn't really good enough
18207 case $host_os in
18208 darwin*)
18209 if test -n "$STRIP" ; then
18210 striplib="$STRIP -x"
18211 old_striplib="$STRIP -S"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18213 $as_echo "yes" >&6; }
18214 else
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 $as_echo "no" >&6; }
18217 fi
18218 ;;
18219 *)
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 ;;
18223 esac
18224 fi
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237 # Report which library types will actually be built
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18239 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18241 $as_echo "$can_build_shared" >&6; }
18242
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18244 $as_echo_n "checking whether to build shared libraries... " >&6; }
18245 test "$can_build_shared" = "no" && enable_shared=no
18246
18247 # On AIX, shared libraries and static libraries use the same namespace, and
18248 # are all built from PIC.
18249 case $host_os in
18250 aix3*)
18251 test "$enable_shared" = yes && enable_static=no
18252 if test -n "$RANLIB"; then
18253 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18254 postinstall_cmds='$RANLIB $lib'
18255 fi
18256 ;;
18257
18258 aix[4-9]*)
18259 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18260 test "$enable_shared" = yes && enable_static=no
18261 fi
18262 ;;
18263 esac
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18265 $as_echo "$enable_shared" >&6; }
18266
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18268 $as_echo_n "checking whether to build static libraries... " >&6; }
18269 # Make sure either enable_shared or enable_static is yes.
18270 test "$enable_shared" = yes || enable_static=yes
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18272 $as_echo "$enable_static" >&6; }
18273
18274
18275
18276
18277 fi
18278 ac_ext=c
18279 ac_cpp='$CPP $CPPFLAGS'
18280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18283
18284 CC="$lt_save_CC"
18285
18286 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18287 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18288 (test "X$CXX" != "Xg++"))) ; then
18289 ac_ext=cpp
18290 ac_cpp='$CXXCPP $CPPFLAGS'
18291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18295 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18296 if test -z "$CXXCPP"; then
18297 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 # Double quotes because CXXCPP needs to be expanded
18301 for CXXCPP in "$CXX -E" "/lib/cpp"
18302 do
18303 ac_preproc_ok=false
18304 for ac_cxx_preproc_warn_flag in '' yes
18305 do
18306 # Use a header file that comes with gcc, so configuring glibc
18307 # with a fresh cross-compiler works.
18308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309 # <limits.h> exists even on freestanding compilers.
18310 # On the NeXT, cc -E runs the code through the compiler's parser,
18311 # not just through cpp. "Syntax error" is here to catch this case.
18312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h. */
18314 #ifdef __STDC__
18315 # include <limits.h>
18316 #else
18317 # include <assert.h>
18318 #endif
18319 Syntax error
18320 _ACEOF
18321 if ac_fn_cxx_try_cpp "$LINENO"; then :
18322
18323 else
18324 # Broken: fails on valid input.
18325 continue
18326 fi
18327 rm -f conftest.err conftest.$ac_ext
18328
18329 # OK, works on sane cases. Now check whether nonexistent headers
18330 # can be detected and how.
18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18333 #include <ac_nonexistent.h>
18334 _ACEOF
18335 if ac_fn_cxx_try_cpp "$LINENO"; then :
18336 # Broken: success on invalid input.
18337 continue
18338 else
18339 # Passes both tests.
18340 ac_preproc_ok=:
18341 break
18342 fi
18343 rm -f conftest.err conftest.$ac_ext
18344
18345 done
18346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18347 rm -f conftest.err conftest.$ac_ext
18348 if $ac_preproc_ok; then :
18349 break
18350 fi
18351
18352 done
18353 ac_cv_prog_CXXCPP=$CXXCPP
18354
18355 fi
18356 CXXCPP=$ac_cv_prog_CXXCPP
18357 else
18358 ac_cv_prog_CXXCPP=$CXXCPP
18359 fi
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18361 $as_echo "$CXXCPP" >&6; }
18362 ac_preproc_ok=false
18363 for ac_cxx_preproc_warn_flag in '' yes
18364 do
18365 # Use a header file that comes with gcc, so configuring glibc
18366 # with a fresh cross-compiler works.
18367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18368 # <limits.h> exists even on freestanding compilers.
18369 # On the NeXT, cc -E runs the code through the compiler's parser,
18370 # not just through cpp. "Syntax error" is here to catch this case.
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373 #ifdef __STDC__
18374 # include <limits.h>
18375 #else
18376 # include <assert.h>
18377 #endif
18378 Syntax error
18379 _ACEOF
18380 if ac_fn_cxx_try_cpp "$LINENO"; then :
18381
18382 else
18383 # Broken: fails on valid input.
18384 continue
18385 fi
18386 rm -f conftest.err conftest.$ac_ext
18387
18388 # OK, works on sane cases. Now check whether nonexistent headers
18389 # can be detected and how.
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392 #include <ac_nonexistent.h>
18393 _ACEOF
18394 if ac_fn_cxx_try_cpp "$LINENO"; then :
18395 # Broken: success on invalid input.
18396 continue
18397 else
18398 # Passes both tests.
18399 ac_preproc_ok=:
18400 break
18401 fi
18402 rm -f conftest.err conftest.$ac_ext
18403
18404 done
18405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18406 rm -f conftest.err conftest.$ac_ext
18407 if $ac_preproc_ok; then :
18408
18409 else
18410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18412 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18413 See \`config.log' for more details." "$LINENO" 5; }
18414 fi
18415
18416 ac_ext=c
18417 ac_cpp='$CPP $CPPFLAGS'
18418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18421
18422 else
18423 _lt_caught_CXX_error=yes
18424 fi
18425
18426 ac_ext=cpp
18427 ac_cpp='$CXXCPP $CPPFLAGS'
18428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18431
18432 archive_cmds_need_lc_CXX=no
18433 allow_undefined_flag_CXX=
18434 always_export_symbols_CXX=no
18435 archive_expsym_cmds_CXX=
18436 compiler_needs_object_CXX=no
18437 export_dynamic_flag_spec_CXX=
18438 hardcode_direct_CXX=no
18439 hardcode_direct_absolute_CXX=no
18440 hardcode_libdir_flag_spec_CXX=
18441 hardcode_libdir_flag_spec_ld_CXX=
18442 hardcode_libdir_separator_CXX=
18443 hardcode_minus_L_CXX=no
18444 hardcode_shlibpath_var_CXX=unsupported
18445 hardcode_automatic_CXX=no
18446 inherit_rpath_CXX=no
18447 module_cmds_CXX=
18448 module_expsym_cmds_CXX=
18449 link_all_deplibs_CXX=unknown
18450 old_archive_cmds_CXX=$old_archive_cmds
18451 reload_flag_CXX=$reload_flag
18452 reload_cmds_CXX=$reload_cmds
18453 no_undefined_flag_CXX=
18454 whole_archive_flag_spec_CXX=
18455 enable_shared_with_static_runtimes_CXX=no
18456
18457 # Source file extension for C++ test sources.
18458 ac_ext=cpp
18459
18460 # Object file extension for compiled C++ test sources.
18461 objext=o
18462 objext_CXX=$objext
18463
18464 # No sense in running all these tests if we already determined that
18465 # the CXX compiler isn't working. Some variables (like enable_shared)
18466 # are currently assumed to apply to all compilers on this platform,
18467 # and will be corrupted by setting them based on a non-working compiler.
18468 if test "$_lt_caught_CXX_error" != yes; then
18469 # Code to be used in simple compile tests
18470 lt_simple_compile_test_code="int some_variable = 0;"
18471
18472 # Code to be used in simple link tests
18473 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18474
18475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18476
18477
18478
18479
18480
18481
18482 # If no C compiler was specified, use CC.
18483 LTCC=${LTCC-"$CC"}
18484
18485 # If no C compiler flags were specified, use CFLAGS.
18486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18487
18488 # Allow CC to be a program name with arguments.
18489 compiler=$CC
18490
18491
18492 # save warnings/boilerplate of simple test code
18493 ac_outfile=conftest.$ac_objext
18494 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18496 _lt_compiler_boilerplate=`cat conftest.err`
18497 $RM conftest*
18498
18499 ac_outfile=conftest.$ac_objext
18500 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18502 _lt_linker_boilerplate=`cat conftest.err`
18503 $RM -r conftest*
18504
18505
18506 # Allow CC to be a program name with arguments.
18507 lt_save_CC=$CC
18508 lt_save_LD=$LD
18509 lt_save_GCC=$GCC
18510 GCC=$GXX
18511 lt_save_with_gnu_ld=$with_gnu_ld
18512 lt_save_path_LD=$lt_cv_path_LD
18513 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18514 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18515 else
18516 $as_unset lt_cv_prog_gnu_ld
18517 fi
18518 if test -n "${lt_cv_path_LDCXX+set}"; then
18519 lt_cv_path_LD=$lt_cv_path_LDCXX
18520 else
18521 $as_unset lt_cv_path_LD
18522 fi
18523 test -z "${LDCXX+set}" || LD=$LDCXX
18524 CC=${CXX-"c++"}
18525 compiler=$CC
18526 compiler_CXX=$CC
18527 for cc_temp in $compiler""; do
18528 case $cc_temp in
18529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18531 \-*) ;;
18532 *) break;;
18533 esac
18534 done
18535 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18536
18537
18538 if test -n "$compiler"; then
18539 # We don't want -fno-exception when compiling C++ code, so set the
18540 # no_builtin_flag separately
18541 if test "$GXX" = yes; then
18542 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18543 else
18544 lt_prog_compiler_no_builtin_flag_CXX=
18545 fi
18546
18547 if test "$GXX" = yes; then
18548 # Set up default GNU C++ configuration
18549
18550
18551
18552 # Check whether --with-gnu-ld was given.
18553 if test "${with_gnu_ld+set}" = set; then :
18554 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18555 else
18556 with_gnu_ld=no
18557 fi
18558
18559 ac_prog=ld
18560 if test "$GCC" = yes; then
18561 # Check if gcc -print-prog-name=ld gives a path.
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18563 $as_echo_n "checking for ld used by $CC... " >&6; }
18564 case $host in
18565 *-*-mingw*)
18566 # gcc leaves a trailing carriage return which upsets mingw
18567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18568 *)
18569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18570 esac
18571 case $ac_prog in
18572 # Accept absolute paths.
18573 [\\/]* | ?:[\\/]*)
18574 re_direlt='/[^/][^/]*/\.\./'
18575 # Canonicalize the pathname of ld
18576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18579 done
18580 test -z "$LD" && LD="$ac_prog"
18581 ;;
18582 "")
18583 # If it fails, then pretend we aren't using GCC.
18584 ac_prog=ld
18585 ;;
18586 *)
18587 # If it is relative, then search for the first ld in PATH.
18588 with_gnu_ld=unknown
18589 ;;
18590 esac
18591 elif test "$with_gnu_ld" = yes; then
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18593 $as_echo_n "checking for GNU ld... " >&6; }
18594 else
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18596 $as_echo_n "checking for non-GNU ld... " >&6; }
18597 fi
18598 if test "${lt_cv_path_LD+set}" = set; then :
18599 $as_echo_n "(cached) " >&6
18600 else
18601 if test -z "$LD"; then
18602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18603 for ac_dir in $PATH; do
18604 IFS="$lt_save_ifs"
18605 test -z "$ac_dir" && ac_dir=.
18606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18607 lt_cv_path_LD="$ac_dir/$ac_prog"
18608 # Check to see if the program is GNU ld. I'd rather use --version,
18609 # but apparently some variants of GNU ld only accept -v.
18610 # Break only if it was the GNU/non-GNU ld that we prefer.
18611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18612 *GNU* | *'with BFD'*)
18613 test "$with_gnu_ld" != no && break
18614 ;;
18615 *)
18616 test "$with_gnu_ld" != yes && break
18617 ;;
18618 esac
18619 fi
18620 done
18621 IFS="$lt_save_ifs"
18622 else
18623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18624 fi
18625 fi
18626
18627 LD="$lt_cv_path_LD"
18628 if test -n "$LD"; then
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18630 $as_echo "$LD" >&6; }
18631 else
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18633 $as_echo "no" >&6; }
18634 fi
18635 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18637 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18638 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18640 else
18641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18642 case `$LD -v 2>&1 </dev/null` in
18643 *GNU* | *'with BFD'*)
18644 lt_cv_prog_gnu_ld=yes
18645 ;;
18646 *)
18647 lt_cv_prog_gnu_ld=no
18648 ;;
18649 esac
18650 fi
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18652 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18653 with_gnu_ld=$lt_cv_prog_gnu_ld
18654
18655
18656
18657
18658
18659
18660
18661 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18662 # archiving commands below assume that GNU ld is being used.
18663 if test "$with_gnu_ld" = yes; then
18664 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18665 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'
18666
18667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18669
18670 # If archive_cmds runs LD, not CC, wlarc should be empty
18671 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18672 # investigate it a little bit more. (MM)
18673 wlarc='${wl}'
18674
18675 # ancient GNU ld didn't support --whole-archive et. al.
18676 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18677 $GREP 'no-whole-archive' > /dev/null; then
18678 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18679 else
18680 whole_archive_flag_spec_CXX=
18681 fi
18682 else
18683 with_gnu_ld=no
18684 wlarc=
18685
18686 # A generic and very simple default shared library creation
18687 # command for GNU C++ for the case where it uses the native
18688 # linker, instead of GNU ld. If possible, this setting should
18689 # overridden to take advantage of the native linker features on
18690 # the platform it is being used on.
18691 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18692 fi
18693
18694 # Commands to make compiler produce verbose output that lists
18695 # what "hidden" libraries, object files and flags are used when
18696 # linking a shared library.
18697 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18698
18699 else
18700 GXX=no
18701 with_gnu_ld=no
18702 wlarc=
18703 fi
18704
18705 # PORTME: fill in a description of your system's C++ link characteristics
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18707 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18708 ld_shlibs_CXX=yes
18709 case $host_os in
18710 aix3*)
18711 # FIXME: insert proper C++ library support
18712 ld_shlibs_CXX=no
18713 ;;
18714 aix[4-9]*)
18715 if test "$host_cpu" = ia64; then
18716 # On IA64, the linker does run time linking by default, so we don't
18717 # have to do anything special.
18718 aix_use_runtimelinking=no
18719 exp_sym_flag='-Bexport'
18720 no_entry_flag=""
18721 else
18722 aix_use_runtimelinking=no
18723
18724 # Test if we are trying to use run time linking or normal
18725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18726 # need to do runtime linking.
18727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18728 for ld_flag in $LDFLAGS; do
18729 case $ld_flag in
18730 *-brtl*)
18731 aix_use_runtimelinking=yes
18732 break
18733 ;;
18734 esac
18735 done
18736 ;;
18737 esac
18738
18739 exp_sym_flag='-bexport'
18740 no_entry_flag='-bnoentry'
18741 fi
18742
18743 # When large executables or shared objects are built, AIX ld can
18744 # have problems creating the table of contents. If linking a library
18745 # or program results in "error TOC overflow" add -mminimal-toc to
18746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18748
18749 archive_cmds_CXX=''
18750 hardcode_direct_CXX=yes
18751 hardcode_direct_absolute_CXX=yes
18752 hardcode_libdir_separator_CXX=':'
18753 link_all_deplibs_CXX=yes
18754 file_list_spec_CXX='${wl}-f,'
18755
18756 if test "$GXX" = yes; then
18757 case $host_os in aix4.[012]|aix4.[012].*)
18758 # We only want to do this on AIX 4.2 and lower, the check
18759 # below for broken collect2 doesn't work under 4.3+
18760 collect2name=`${CC} -print-prog-name=collect2`
18761 if test -f "$collect2name" &&
18762 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18763 then
18764 # We have reworked collect2
18765 :
18766 else
18767 # We have old collect2
18768 hardcode_direct_CXX=unsupported
18769 # It fails to find uninstalled libraries when the uninstalled
18770 # path is not listed in the libpath. Setting hardcode_minus_L
18771 # to unsupported forces relinking
18772 hardcode_minus_L_CXX=yes
18773 hardcode_libdir_flag_spec_CXX='-L$libdir'
18774 hardcode_libdir_separator_CXX=
18775 fi
18776 esac
18777 shared_flag='-shared'
18778 if test "$aix_use_runtimelinking" = yes; then
18779 shared_flag="$shared_flag "'${wl}-G'
18780 fi
18781 else
18782 # not using gcc
18783 if test "$host_cpu" = ia64; then
18784 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18785 # chokes on -Wl,-G. The following line is correct:
18786 shared_flag='-G'
18787 else
18788 if test "$aix_use_runtimelinking" = yes; then
18789 shared_flag='${wl}-G'
18790 else
18791 shared_flag='${wl}-bM:SRE'
18792 fi
18793 fi
18794 fi
18795
18796 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18797 # It seems that -bexpall does not export symbols beginning with
18798 # underscore (_), so it is better to generate a list of symbols to
18799 # export.
18800 always_export_symbols_CXX=yes
18801 if test "$aix_use_runtimelinking" = yes; then
18802 # Warning - without using the other runtime loading flags (-brtl),
18803 # -berok will link without error, but may produce a broken library.
18804 allow_undefined_flag_CXX='-berok'
18805 # Determine the default libpath from the value encoded in an empty
18806 # executable.
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809
18810 int
18811 main ()
18812 {
18813
18814 ;
18815 return 0;
18816 }
18817 _ACEOF
18818 if ac_fn_cxx_try_link "$LINENO"; then :
18819
18820 lt_aix_libpath_sed='
18821 /Import File Strings/,/^$/ {
18822 /^0/ {
18823 s/^0 *\(.*\)$/\1/
18824 p
18825 }
18826 }'
18827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18828 # Check for a 64-bit object if we didn't find anything.
18829 if test -z "$aix_libpath"; then
18830 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18831 fi
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext conftest.$ac_ext
18835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18836
18837 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18838
18839 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"
18840 else
18841 if test "$host_cpu" = ia64; then
18842 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18843 allow_undefined_flag_CXX="-z nodefs"
18844 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"
18845 else
18846 # Determine the default libpath from the value encoded in an
18847 # empty executable.
18848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h. */
18850
18851 int
18852 main ()
18853 {
18854
18855 ;
18856 return 0;
18857 }
18858 _ACEOF
18859 if ac_fn_cxx_try_link "$LINENO"; then :
18860
18861 lt_aix_libpath_sed='
18862 /Import File Strings/,/^$/ {
18863 /^0/ {
18864 s/^0 *\(.*\)$/\1/
18865 p
18866 }
18867 }'
18868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18869 # Check for a 64-bit object if we didn't find anything.
18870 if test -z "$aix_libpath"; then
18871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18872 fi
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext \
18875 conftest$ac_exeext conftest.$ac_ext
18876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18877
18878 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18879 # Warning - without using the other run time loading flags,
18880 # -berok will link without error, but may produce a broken library.
18881 no_undefined_flag_CXX=' ${wl}-bernotok'
18882 allow_undefined_flag_CXX=' ${wl}-berok'
18883 if test "$with_gnu_ld" = yes; then
18884 # We only use this code for GNU lds that support --whole-archive.
18885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18886 else
18887 # Exported symbols can be pulled into shared objects from archives
18888 whole_archive_flag_spec_CXX='$convenience'
18889 fi
18890 archive_cmds_need_lc_CXX=yes
18891 # This is similar to how AIX traditionally builds its shared
18892 # libraries.
18893 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'
18894 fi
18895 fi
18896 ;;
18897
18898 beos*)
18899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18900 allow_undefined_flag_CXX=unsupported
18901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18902 # support --undefined. This deserves some investigation. FIXME
18903 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18904 else
18905 ld_shlibs_CXX=no
18906 fi
18907 ;;
18908
18909 chorus*)
18910 case $cc_basename in
18911 *)
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18914 ;;
18915 esac
18916 ;;
18917
18918 cygwin* | mingw* | pw32* | cegcc*)
18919 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18920 # as there is no search path for DLLs.
18921 hardcode_libdir_flag_spec_CXX='-L$libdir'
18922 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18923 allow_undefined_flag_CXX=unsupported
18924 always_export_symbols_CXX=no
18925 enable_shared_with_static_runtimes_CXX=yes
18926
18927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18928 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'
18929 # If the export-symbols file already is a .def file (1st line
18930 # is EXPORTS), use it as is; otherwise, prepend...
18931 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18932 cp $export_symbols $output_objdir/$soname.def;
18933 else
18934 echo EXPORTS > $output_objdir/$soname.def;
18935 cat $export_symbols >> $output_objdir/$soname.def;
18936 fi~
18937 $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'
18938 else
18939 ld_shlibs_CXX=no
18940 fi
18941 ;;
18942 darwin* | rhapsody*)
18943
18944
18945 archive_cmds_need_lc_CXX=no
18946 hardcode_direct_CXX=no
18947 hardcode_automatic_CXX=yes
18948 hardcode_shlibpath_var_CXX=unsupported
18949 if test "$lt_cv_ld_force_load" = "yes"; then
18950 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\"`'
18951 else
18952 whole_archive_flag_spec_CXX=''
18953 fi
18954 link_all_deplibs_CXX=yes
18955 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18956 case $cc_basename in
18957 ifort*) _lt_dar_can_shared=yes ;;
18958 *) _lt_dar_can_shared=$GCC ;;
18959 esac
18960 if test "$_lt_dar_can_shared" = "yes"; then
18961 output_verbose_link_cmd=func_echo_all
18962 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}"
18963 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18964 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}"
18965 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}"
18966 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18967 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}"
18968 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}"
18969 fi
18970
18971 else
18972 ld_shlibs_CXX=no
18973 fi
18974
18975 ;;
18976
18977 dgux*)
18978 case $cc_basename in
18979 ec++*)
18980 # FIXME: insert proper C++ library support
18981 ld_shlibs_CXX=no
18982 ;;
18983 ghcx*)
18984 # Green Hills C++ Compiler
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18987 ;;
18988 *)
18989 # FIXME: insert proper C++ library support
18990 ld_shlibs_CXX=no
18991 ;;
18992 esac
18993 ;;
18994
18995 freebsd2.*)
18996 # C++ shared libraries reported to be fairly broken before
18997 # switch to ELF
18998 ld_shlibs_CXX=no
18999 ;;
19000
19001 freebsd-elf*)
19002 archive_cmds_need_lc_CXX=no
19003 ;;
19004
19005 freebsd* | dragonfly*)
19006 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19007 # conventions
19008 ld_shlibs_CXX=yes
19009 ;;
19010
19011 gnu*)
19012 ;;
19013
19014 haiku*)
19015 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19016 link_all_deplibs_CXX=yes
19017 ;;
19018
19019 hpux9*)
19020 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19021 hardcode_libdir_separator_CXX=:
19022 export_dynamic_flag_spec_CXX='${wl}-E'
19023 hardcode_direct_CXX=yes
19024 hardcode_minus_L_CXX=yes # Not in the search PATH,
19025 # but as the default
19026 # location of the library.
19027
19028 case $cc_basename in
19029 CC*)
19030 # FIXME: insert proper C++ library support
19031 ld_shlibs_CXX=no
19032 ;;
19033 aCC*)
19034 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'
19035 # Commands to make compiler produce verbose output that lists
19036 # what "hidden" libraries, object files and flags are used when
19037 # linking a shared library.
19038 #
19039 # There doesn't appear to be a way to prevent this compiler from
19040 # explicitly linking system object files so we need to strip them
19041 # from the output so that they don't get included in the library
19042 # dependencies.
19043 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"'
19044 ;;
19045 *)
19046 if test "$GXX" = yes; then
19047 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'
19048 else
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19051 fi
19052 ;;
19053 esac
19054 ;;
19055
19056 hpux10*|hpux11*)
19057 if test $with_gnu_ld = no; then
19058 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19059 hardcode_libdir_separator_CXX=:
19060
19061 case $host_cpu in
19062 hppa*64*|ia64*)
19063 ;;
19064 *)
19065 export_dynamic_flag_spec_CXX='${wl}-E'
19066 ;;
19067 esac
19068 fi
19069 case $host_cpu in
19070 hppa*64*|ia64*)
19071 hardcode_direct_CXX=no
19072 hardcode_shlibpath_var_CXX=no
19073 ;;
19074 *)
19075 hardcode_direct_CXX=yes
19076 hardcode_direct_absolute_CXX=yes
19077 hardcode_minus_L_CXX=yes # Not in the search PATH,
19078 # but as the default
19079 # location of the library.
19080 ;;
19081 esac
19082
19083 case $cc_basename in
19084 CC*)
19085 # FIXME: insert proper C++ library support
19086 ld_shlibs_CXX=no
19087 ;;
19088 aCC*)
19089 case $host_cpu in
19090 hppa*64*)
19091 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19092 ;;
19093 ia64*)
19094 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19095 ;;
19096 *)
19097 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19098 ;;
19099 esac
19100 # Commands to make compiler produce verbose output that lists
19101 # what "hidden" libraries, object files and flags are used when
19102 # linking a shared library.
19103 #
19104 # There doesn't appear to be a way to prevent this compiler from
19105 # explicitly linking system object files so we need to strip them
19106 # from the output so that they don't get included in the library
19107 # dependencies.
19108 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"'
19109 ;;
19110 *)
19111 if test "$GXX" = yes; then
19112 if test $with_gnu_ld = no; then
19113 case $host_cpu in
19114 hppa*64*)
19115 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19116 ;;
19117 ia64*)
19118 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19119 ;;
19120 *)
19121 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'
19122 ;;
19123 esac
19124 fi
19125 else
19126 # FIXME: insert proper C++ library support
19127 ld_shlibs_CXX=no
19128 fi
19129 ;;
19130 esac
19131 ;;
19132
19133 interix[3-9]*)
19134 hardcode_direct_CXX=no
19135 hardcode_shlibpath_var_CXX=no
19136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19137 export_dynamic_flag_spec_CXX='${wl}-E'
19138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19139 # Instead, shared libraries are loaded at an image base (0x10000000 by
19140 # default) and relocated if they conflict, which is a slow very memory
19141 # consuming and fragmenting process. To avoid this, we pick a random,
19142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19144 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'
19145 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'
19146 ;;
19147 irix5* | irix6*)
19148 case $cc_basename in
19149 CC*)
19150 # SGI C++
19151 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'
19152
19153 # Archives containing C++ object files must be created using
19154 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19155 # necessary to make sure instantiated templates are included
19156 # in the archive.
19157 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19158 ;;
19159 *)
19160 if test "$GXX" = yes; then
19161 if test "$with_gnu_ld" = no; then
19162 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'
19163 else
19164 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'
19165 fi
19166 fi
19167 link_all_deplibs_CXX=yes
19168 ;;
19169 esac
19170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19171 hardcode_libdir_separator_CXX=:
19172 inherit_rpath_CXX=yes
19173 ;;
19174
19175 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19176 case $cc_basename in
19177 KCC*)
19178 # Kuck and Associates, Inc. (KAI) C++ Compiler
19179
19180 # KCC will only create a shared library if the output file
19181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19182 # to its proper name (with version) after linking.
19183 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'
19184 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'
19185 # Commands to make compiler produce verbose output that lists
19186 # what "hidden" libraries, object files and flags are used when
19187 # linking a shared library.
19188 #
19189 # There doesn't appear to be a way to prevent this compiler from
19190 # explicitly linking system object files so we need to strip them
19191 # from the output so that they don't get included in the library
19192 # dependencies.
19193 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"'
19194
19195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19197
19198 # Archives containing C++ object files must be created using
19199 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19200 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19201 ;;
19202 icpc* | ecpc* )
19203 # Intel C++
19204 with_gnu_ld=yes
19205 # version 8.0 and above of icpc choke on multiply defined symbols
19206 # if we add $predep_objects and $postdep_objects, however 7.1 and
19207 # earlier do not add the objects themselves.
19208 case `$CC -V 2>&1` in
19209 *"Version 7."*)
19210 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19211 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'
19212 ;;
19213 *) # Version 8.0 or newer
19214 tmp_idyn=
19215 case $host_cpu in
19216 ia64*) tmp_idyn=' -i_dynamic';;
19217 esac
19218 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219 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'
19220 ;;
19221 esac
19222 archive_cmds_need_lc_CXX=no
19223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19225 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19226 ;;
19227 pgCC* | pgcpp*)
19228 # Portland Group C++ compiler
19229 case `$CC -V` in
19230 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19231 prelink_cmds_CXX='tpldir=Template.dir~
19232 rm -rf $tpldir~
19233 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19234 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19235 old_archive_cmds_CXX='tpldir=Template.dir~
19236 rm -rf $tpldir~
19237 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19238 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19239 $RANLIB $oldlib'
19240 archive_cmds_CXX='tpldir=Template.dir~
19241 rm -rf $tpldir~
19242 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19243 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19244 archive_expsym_cmds_CXX='tpldir=Template.dir~
19245 rm -rf $tpldir~
19246 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19247 $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'
19248 ;;
19249 *) # Version 6 and above use weak symbols
19250 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19251 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'
19252 ;;
19253 esac
19254
19255 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19257 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'
19258 ;;
19259 cxx*)
19260 # Compaq C++
19261 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19262 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'
19263
19264 runpath_var=LD_RUN_PATH
19265 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19266 hardcode_libdir_separator_CXX=:
19267
19268 # Commands to make compiler produce verbose output that lists
19269 # what "hidden" libraries, object files and flags are used when
19270 # linking a shared library.
19271 #
19272 # There doesn't appear to be a way to prevent this compiler from
19273 # explicitly linking system object files so we need to strip them
19274 # from the output so that they don't get included in the library
19275 # dependencies.
19276 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'
19277 ;;
19278 xl* | mpixl* | bgxl*)
19279 # IBM XL 8.0 on PPC, with GNU ld
19280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19282 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19283 if test "x$supports_anon_versioning" = xyes; then
19284 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19286 echo "local: *; };" >> $output_objdir/$libname.ver~
19287 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19288 fi
19289 ;;
19290 *)
19291 case `$CC -V 2>&1 | sed 5q` in
19292 *Sun\ C*)
19293 # Sun C++ 5.9
19294 no_undefined_flag_CXX=' -zdefs'
19295 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296 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'
19297 hardcode_libdir_flag_spec_CXX='-R$libdir'
19298 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'
19299 compiler_needs_object_CXX=yes
19300
19301 # Not sure whether something based on
19302 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19303 # would be better.
19304 output_verbose_link_cmd='func_echo_all'
19305
19306 # Archives containing C++ object files must be created using
19307 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19308 # necessary to make sure instantiated templates are included
19309 # in the archive.
19310 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19311 ;;
19312 esac
19313 ;;
19314 esac
19315 ;;
19316
19317 lynxos*)
19318 # FIXME: insert proper C++ library support
19319 ld_shlibs_CXX=no
19320 ;;
19321
19322 m88k*)
19323 # FIXME: insert proper C++ library support
19324 ld_shlibs_CXX=no
19325 ;;
19326
19327 mvs*)
19328 case $cc_basename in
19329 cxx*)
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333 *)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337 esac
19338 ;;
19339
19340 netbsd*)
19341 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19342 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19343 wlarc=
19344 hardcode_libdir_flag_spec_CXX='-R$libdir'
19345 hardcode_direct_CXX=yes
19346 hardcode_shlibpath_var_CXX=no
19347 fi
19348 # Workaround some broken pre-1.5 toolchains
19349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19350 ;;
19351
19352 *nto* | *qnx*)
19353 ld_shlibs_CXX=yes
19354 ;;
19355
19356 openbsd2*)
19357 # C++ shared libraries are fairly broken
19358 ld_shlibs_CXX=no
19359 ;;
19360
19361 openbsd*)
19362 if test -f /usr/libexec/ld.so; then
19363 hardcode_direct_CXX=yes
19364 hardcode_shlibpath_var_CXX=no
19365 hardcode_direct_absolute_CXX=yes
19366 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19369 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19370 export_dynamic_flag_spec_CXX='${wl}-E'
19371 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19372 fi
19373 output_verbose_link_cmd=func_echo_all
19374 else
19375 ld_shlibs_CXX=no
19376 fi
19377 ;;
19378
19379 osf3* | osf4* | osf5*)
19380 case $cc_basename in
19381 KCC*)
19382 # Kuck and Associates, Inc. (KAI) C++ Compiler
19383
19384 # KCC will only create a shared library if the output file
19385 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19386 # to its proper name (with version) after linking.
19387 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'
19388
19389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19390 hardcode_libdir_separator_CXX=:
19391
19392 # Archives containing C++ object files must be created using
19393 # the KAI C++ compiler.
19394 case $host in
19395 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19396 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19397 esac
19398 ;;
19399 RCC*)
19400 # Rational C++ 2.4.1
19401 # FIXME: insert proper C++ library support
19402 ld_shlibs_CXX=no
19403 ;;
19404 cxx*)
19405 case $host in
19406 osf3*)
19407 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19408 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'
19409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19410 ;;
19411 *)
19412 allow_undefined_flag_CXX=' -expect_unresolved \*'
19413 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'
19414 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19415 echo "-hidden">> $lib.exp~
19416 $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~
19417 $RM $lib.exp'
19418 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19419 ;;
19420 esac
19421
19422 hardcode_libdir_separator_CXX=:
19423
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19427 #
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19431 # dependencies.
19432 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"'
19433 ;;
19434 *)
19435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19437 case $host in
19438 osf3*)
19439 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'
19440 ;;
19441 *)
19442 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'
19443 ;;
19444 esac
19445
19446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19447 hardcode_libdir_separator_CXX=:
19448
19449 # Commands to make compiler produce verbose output that lists
19450 # what "hidden" libraries, object files and flags are used when
19451 # linking a shared library.
19452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19453
19454 else
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 fi
19458 ;;
19459 esac
19460 ;;
19461
19462 psos*)
19463 # FIXME: insert proper C++ library support
19464 ld_shlibs_CXX=no
19465 ;;
19466
19467 sunos4*)
19468 case $cc_basename in
19469 CC*)
19470 # Sun C++ 4.x
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19473 ;;
19474 lcc*)
19475 # Lucid
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479 *)
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 esac
19484 ;;
19485
19486 solaris*)
19487 case $cc_basename in
19488 CC*)
19489 # Sun C++ 4.2, 5.x and Centerline C++
19490 archive_cmds_need_lc_CXX=yes
19491 no_undefined_flag_CXX=' -zdefs'
19492 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19493 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19494 $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'
19495
19496 hardcode_libdir_flag_spec_CXX='-R$libdir'
19497 hardcode_shlibpath_var_CXX=no
19498 case $host_os in
19499 solaris2.[0-5] | solaris2.[0-5].*) ;;
19500 *)
19501 # The compiler driver will combine and reorder linker options,
19502 # but understands `-z linker_flag'.
19503 # Supported since Solaris 2.6 (maybe 2.5.1?)
19504 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19505 ;;
19506 esac
19507 link_all_deplibs_CXX=yes
19508
19509 output_verbose_link_cmd='func_echo_all'
19510
19511 # Archives containing C++ object files must be created using
19512 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19513 # necessary to make sure instantiated templates are included
19514 # in the archive.
19515 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19516 ;;
19517 gcx*)
19518 # Green Hills C++ Compiler
19519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19520
19521 # The C++ compiler must be used to create the archive.
19522 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19523 ;;
19524 *)
19525 # GNU C++ compiler with Solaris linker
19526 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19527 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19528 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19529 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19530 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19531 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19532
19533 # Commands to make compiler produce verbose output that lists
19534 # what "hidden" libraries, object files and flags are used when
19535 # linking a shared library.
19536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19537 else
19538 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19539 # platform.
19540 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19548 fi
19549
19550 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19551 case $host_os in
19552 solaris2.[0-5] | solaris2.[0-5].*) ;;
19553 *)
19554 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19555 ;;
19556 esac
19557 fi
19558 ;;
19559 esac
19560 ;;
19561
19562 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19563 no_undefined_flag_CXX='${wl}-z,text'
19564 archive_cmds_need_lc_CXX=no
19565 hardcode_shlibpath_var_CXX=no
19566 runpath_var='LD_RUN_PATH'
19567
19568 case $cc_basename in
19569 CC*)
19570 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19572 ;;
19573 *)
19574 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19575 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19576 ;;
19577 esac
19578 ;;
19579
19580 sysv5* | sco3.2v5* | sco5v6*)
19581 # Note: We can NOT use -z defs as we might desire, because we do not
19582 # link with -lc, and that would cause any symbols used from libc to
19583 # always be unresolved, which means just about no library would
19584 # ever link correctly. If we're not using GNU ld we use -z text
19585 # though, which does catch some bad symbols but isn't as heavy-handed
19586 # as -z defs.
19587 no_undefined_flag_CXX='${wl}-z,text'
19588 allow_undefined_flag_CXX='${wl}-z,nodefs'
19589 archive_cmds_need_lc_CXX=no
19590 hardcode_shlibpath_var_CXX=no
19591 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19592 hardcode_libdir_separator_CXX=':'
19593 link_all_deplibs_CXX=yes
19594 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19595 runpath_var='LD_RUN_PATH'
19596
19597 case $cc_basename in
19598 CC*)
19599 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19601 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19602 '"$old_archive_cmds_CXX"
19603 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19604 '"$reload_cmds_CXX"
19605 ;;
19606 *)
19607 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19608 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19609 ;;
19610 esac
19611 ;;
19612
19613 tandem*)
19614 case $cc_basename in
19615 NCC*)
19616 # NonStop-UX NCC 3.20
19617 # FIXME: insert proper C++ library support
19618 ld_shlibs_CXX=no
19619 ;;
19620 *)
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19623 ;;
19624 esac
19625 ;;
19626
19627 vxworks*)
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631
19632 *)
19633 # FIXME: insert proper C++ library support
19634 ld_shlibs_CXX=no
19635 ;;
19636 esac
19637
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19639 $as_echo "$ld_shlibs_CXX" >&6; }
19640 test "$ld_shlibs_CXX" = no && can_build_shared=no
19641
19642 GCC_CXX="$GXX"
19643 LD_CXX="$LD"
19644
19645 ## CAVEAT EMPTOR:
19646 ## There is no encapsulation within the following macros, do not change
19647 ## the running order or otherwise move them around unless you know exactly
19648 ## what you are doing...
19649 # Dependencies to place before and after the object being linked:
19650 predep_objects_CXX=
19651 postdep_objects_CXX=
19652 predeps_CXX=
19653 postdeps_CXX=
19654 compiler_lib_search_path_CXX=
19655
19656 cat > conftest.$ac_ext <<_LT_EOF
19657 class Foo
19658 {
19659 public:
19660 Foo (void) { a = 0; }
19661 private:
19662 int a;
19663 };
19664 _LT_EOF
19665
19666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19667 (eval $ac_compile) 2>&5
19668 ac_status=$?
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }; then
19671 # Parse the compiler output and extract the necessary
19672 # objects, libraries and library flags.
19673
19674 # Sentinel used to keep track of whether or not we are before
19675 # the conftest object file.
19676 pre_test_object_deps_done=no
19677
19678 for p in `eval "$output_verbose_link_cmd"`; do
19679 case $p in
19680
19681 -L* | -R* | -l*)
19682 # Some compilers place space between "-{L,R}" and the path.
19683 # Remove the space.
19684 if test $p = "-L" ||
19685 test $p = "-R"; then
19686 prev=$p
19687 continue
19688 else
19689 prev=
19690 fi
19691
19692 if test "$pre_test_object_deps_done" = no; then
19693 case $p in
19694 -L* | -R*)
19695 # Internal compiler library paths should come after those
19696 # provided the user. The postdeps already come after the
19697 # user supplied libs so there is no need to process them.
19698 if test -z "$compiler_lib_search_path_CXX"; then
19699 compiler_lib_search_path_CXX="${prev}${p}"
19700 else
19701 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19702 fi
19703 ;;
19704 # The "-l" case would never come before the object being
19705 # linked, so don't bother handling this case.
19706 esac
19707 else
19708 if test -z "$postdeps_CXX"; then
19709 postdeps_CXX="${prev}${p}"
19710 else
19711 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19712 fi
19713 fi
19714 ;;
19715
19716 *.$objext)
19717 # This assumes that the test object file only shows up
19718 # once in the compiler output.
19719 if test "$p" = "conftest.$objext"; then
19720 pre_test_object_deps_done=yes
19721 continue
19722 fi
19723
19724 if test "$pre_test_object_deps_done" = no; then
19725 if test -z "$predep_objects_CXX"; then
19726 predep_objects_CXX="$p"
19727 else
19728 predep_objects_CXX="$predep_objects_CXX $p"
19729 fi
19730 else
19731 if test -z "$postdep_objects_CXX"; then
19732 postdep_objects_CXX="$p"
19733 else
19734 postdep_objects_CXX="$postdep_objects_CXX $p"
19735 fi
19736 fi
19737 ;;
19738
19739 *) ;; # Ignore the rest.
19740
19741 esac
19742 done
19743
19744 # Clean up.
19745 rm -f a.out a.exe
19746 else
19747 echo "libtool.m4: error: problem compiling CXX test program"
19748 fi
19749
19750 $RM -f confest.$objext
19751
19752 # PORTME: override above test on systems where it is broken
19753 case $host_os in
19754 interix[3-9]*)
19755 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19756 # hack all around it, let's just trust "g++" to DTRT.
19757 predep_objects_CXX=
19758 postdep_objects_CXX=
19759 postdeps_CXX=
19760 ;;
19761
19762 linux*)
19763 case `$CC -V 2>&1 | sed 5q` in
19764 *Sun\ C*)
19765 # Sun C++ 5.9
19766
19767 # The more standards-conforming stlport4 library is
19768 # incompatible with the Cstd library. Avoid specifying
19769 # it if it's in CXXFLAGS. Ignore libCrun as
19770 # -library=stlport4 depends on it.
19771 case " $CXX $CXXFLAGS " in
19772 *" -library=stlport4 "*)
19773 solaris_use_stlport4=yes
19774 ;;
19775 esac
19776
19777 if test "$solaris_use_stlport4" != yes; then
19778 postdeps_CXX='-library=Cstd -library=Crun'
19779 fi
19780 ;;
19781 esac
19782 ;;
19783
19784 solaris*)
19785 case $cc_basename in
19786 CC*)
19787 # The more standards-conforming stlport4 library is
19788 # incompatible with the Cstd library. Avoid specifying
19789 # it if it's in CXXFLAGS. Ignore libCrun as
19790 # -library=stlport4 depends on it.
19791 case " $CXX $CXXFLAGS " in
19792 *" -library=stlport4 "*)
19793 solaris_use_stlport4=yes
19794 ;;
19795 esac
19796
19797 # Adding this requires a known-good setup of shared libraries for
19798 # Sun compiler versions before 5.6, else PIC objects from an old
19799 # archive will be linked into the output, leading to subtle bugs.
19800 if test "$solaris_use_stlport4" != yes; then
19801 postdeps_CXX='-library=Cstd -library=Crun'
19802 fi
19803 ;;
19804 esac
19805 ;;
19806 esac
19807
19808
19809 case " $postdeps_CXX " in
19810 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19811 esac
19812 compiler_lib_search_dirs_CXX=
19813 if test -n "${compiler_lib_search_path_CXX}"; then
19814 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19815 fi
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847 lt_prog_compiler_wl_CXX=
19848 lt_prog_compiler_pic_CXX=
19849 lt_prog_compiler_static_CXX=
19850
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19852 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19853
19854 # C++ specific cases for pic, static, wl, etc.
19855 if test "$GXX" = yes; then
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_static_CXX='-static'
19858
19859 case $host_os in
19860 aix*)
19861 # All AIX code is PIC.
19862 if test "$host_cpu" = ia64; then
19863 # AIX 5 now supports IA64 processor
19864 lt_prog_compiler_static_CXX='-Bstatic'
19865 fi
19866 ;;
19867
19868 amigaos*)
19869 case $host_cpu in
19870 powerpc)
19871 # see comment about AmigaOS4 .so support
19872 lt_prog_compiler_pic_CXX='-fPIC'
19873 ;;
19874 m68k)
19875 # FIXME: we need at least 68020 code to build shared libraries, but
19876 # adding the `-m68020' flag to GCC prevents building anything better,
19877 # like `-m68040'.
19878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19879 ;;
19880 esac
19881 ;;
19882
19883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19884 # PIC is the default for these OSes.
19885 ;;
19886 mingw* | cygwin* | os2* | pw32* | cegcc*)
19887 # This hack is so that the source file can tell whether it is being
19888 # built for inclusion in a dll (and should export symbols for example).
19889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19890 # (--disable-auto-import) libraries
19891 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19892 ;;
19893 darwin* | rhapsody*)
19894 # PIC is the default on this platform
19895 # Common symbols not allowed in MH_DYLIB files
19896 lt_prog_compiler_pic_CXX='-fno-common'
19897 ;;
19898 *djgpp*)
19899 # DJGPP does not support shared libraries at all
19900 lt_prog_compiler_pic_CXX=
19901 ;;
19902 haiku*)
19903 # PIC is the default for Haiku.
19904 # The "-static" flag exists, but is broken.
19905 lt_prog_compiler_static_CXX=
19906 ;;
19907 interix[3-9]*)
19908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19909 # Instead, we relocate shared libraries at runtime.
19910 ;;
19911 sysv4*MP*)
19912 if test -d /usr/nec; then
19913 lt_prog_compiler_pic_CXX=-Kconform_pic
19914 fi
19915 ;;
19916 hpux*)
19917 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19918 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19919 # sets the default TLS model and affects inlining.
19920 case $host_cpu in
19921 hppa*64*)
19922 ;;
19923 *)
19924 lt_prog_compiler_pic_CXX='-fPIC'
19925 ;;
19926 esac
19927 ;;
19928 *qnx* | *nto*)
19929 # QNX uses GNU C++, but need to define -shared option too, otherwise
19930 # it will coredump.
19931 lt_prog_compiler_pic_CXX='-fPIC -shared'
19932 ;;
19933 *)
19934 lt_prog_compiler_pic_CXX='-fPIC'
19935 ;;
19936 esac
19937 else
19938 case $host_os in
19939 aix[4-9]*)
19940 # All AIX code is PIC.
19941 if test "$host_cpu" = ia64; then
19942 # AIX 5 now supports IA64 processor
19943 lt_prog_compiler_static_CXX='-Bstatic'
19944 else
19945 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19946 fi
19947 ;;
19948 chorus*)
19949 case $cc_basename in
19950 cxch68*)
19951 # Green Hills C++ Compiler
19952 # _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"
19953 ;;
19954 esac
19955 ;;
19956 dgux*)
19957 case $cc_basename in
19958 ec++*)
19959 lt_prog_compiler_pic_CXX='-KPIC'
19960 ;;
19961 ghcx*)
19962 # Green Hills C++ Compiler
19963 lt_prog_compiler_pic_CXX='-pic'
19964 ;;
19965 *)
19966 ;;
19967 esac
19968 ;;
19969 freebsd* | dragonfly*)
19970 # FreeBSD uses GNU C++
19971 ;;
19972 hpux9* | hpux10* | hpux11*)
19973 case $cc_basename in
19974 CC*)
19975 lt_prog_compiler_wl_CXX='-Wl,'
19976 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19977 if test "$host_cpu" != ia64; then
19978 lt_prog_compiler_pic_CXX='+Z'
19979 fi
19980 ;;
19981 aCC*)
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19984 case $host_cpu in
19985 hppa*64*|ia64*)
19986 # +Z the default
19987 ;;
19988 *)
19989 lt_prog_compiler_pic_CXX='+Z'
19990 ;;
19991 esac
19992 ;;
19993 *)
19994 ;;
19995 esac
19996 ;;
19997 interix*)
19998 # This is c89, which is MS Visual C++ (no shared libs)
19999 # Anyone wants to do a port?
20000 ;;
20001 irix5* | irix6* | nonstopux*)
20002 case $cc_basename in
20003 CC*)
20004 lt_prog_compiler_wl_CXX='-Wl,'
20005 lt_prog_compiler_static_CXX='-non_shared'
20006 # CC pic flag -KPIC is the default.
20007 ;;
20008 *)
20009 ;;
20010 esac
20011 ;;
20012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20013 case $cc_basename in
20014 KCC*)
20015 # KAI C++ Compiler
20016 lt_prog_compiler_wl_CXX='--backend -Wl,'
20017 lt_prog_compiler_pic_CXX='-fPIC'
20018 ;;
20019 ecpc* )
20020 # old Intel C++ for x86_64 which still supported -KPIC.
20021 lt_prog_compiler_wl_CXX='-Wl,'
20022 lt_prog_compiler_pic_CXX='-KPIC'
20023 lt_prog_compiler_static_CXX='-static'
20024 ;;
20025 icpc* )
20026 # Intel C++, used to be incompatible with GCC.
20027 # ICC 10 doesn't accept -KPIC any more.
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 lt_prog_compiler_pic_CXX='-fPIC'
20030 lt_prog_compiler_static_CXX='-static'
20031 ;;
20032 pgCC* | pgcpp*)
20033 # Portland Group C++ compiler
20034 lt_prog_compiler_wl_CXX='-Wl,'
20035 lt_prog_compiler_pic_CXX='-fpic'
20036 lt_prog_compiler_static_CXX='-Bstatic'
20037 ;;
20038 cxx*)
20039 # Compaq C++
20040 # Make sure the PIC flag is empty. It appears that all Alpha
20041 # Linux and Compaq Tru64 Unix objects are PIC.
20042 lt_prog_compiler_pic_CXX=
20043 lt_prog_compiler_static_CXX='-non_shared'
20044 ;;
20045 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20046 # IBM XL 8.0, 9.0 on PPC and BlueGene
20047 lt_prog_compiler_wl_CXX='-Wl,'
20048 lt_prog_compiler_pic_CXX='-qpic'
20049 lt_prog_compiler_static_CXX='-qstaticlink'
20050 ;;
20051 *)
20052 case `$CC -V 2>&1 | sed 5q` in
20053 *Sun\ C*)
20054 # Sun C++ 5.9
20055 lt_prog_compiler_pic_CXX='-KPIC'
20056 lt_prog_compiler_static_CXX='-Bstatic'
20057 lt_prog_compiler_wl_CXX='-Qoption ld '
20058 ;;
20059 esac
20060 ;;
20061 esac
20062 ;;
20063 lynxos*)
20064 ;;
20065 m88k*)
20066 ;;
20067 mvs*)
20068 case $cc_basename in
20069 cxx*)
20070 lt_prog_compiler_pic_CXX='-W c,exportall'
20071 ;;
20072 *)
20073 ;;
20074 esac
20075 ;;
20076 netbsd*)
20077 ;;
20078 *qnx* | *nto*)
20079 # QNX uses GNU C++, but need to define -shared option too, otherwise
20080 # it will coredump.
20081 lt_prog_compiler_pic_CXX='-fPIC -shared'
20082 ;;
20083 osf3* | osf4* | osf5*)
20084 case $cc_basename in
20085 KCC*)
20086 lt_prog_compiler_wl_CXX='--backend -Wl,'
20087 ;;
20088 RCC*)
20089 # Rational C++ 2.4.1
20090 lt_prog_compiler_pic_CXX='-pic'
20091 ;;
20092 cxx*)
20093 # Digital/Compaq C++
20094 lt_prog_compiler_wl_CXX='-Wl,'
20095 # Make sure the PIC flag is empty. It appears that all Alpha
20096 # Linux and Compaq Tru64 Unix objects are PIC.
20097 lt_prog_compiler_pic_CXX=
20098 lt_prog_compiler_static_CXX='-non_shared'
20099 ;;
20100 *)
20101 ;;
20102 esac
20103 ;;
20104 psos*)
20105 ;;
20106 solaris*)
20107 case $cc_basename in
20108 CC*)
20109 # Sun C++ 4.2, 5.x and Centerline C++
20110 lt_prog_compiler_pic_CXX='-KPIC'
20111 lt_prog_compiler_static_CXX='-Bstatic'
20112 lt_prog_compiler_wl_CXX='-Qoption ld '
20113 ;;
20114 gcx*)
20115 # Green Hills C++ Compiler
20116 lt_prog_compiler_pic_CXX='-PIC'
20117 ;;
20118 *)
20119 ;;
20120 esac
20121 ;;
20122 sunos4*)
20123 case $cc_basename in
20124 CC*)
20125 # Sun C++ 4.x
20126 lt_prog_compiler_pic_CXX='-pic'
20127 lt_prog_compiler_static_CXX='-Bstatic'
20128 ;;
20129 lcc*)
20130 # Lucid
20131 lt_prog_compiler_pic_CXX='-pic'
20132 ;;
20133 *)
20134 ;;
20135 esac
20136 ;;
20137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20138 case $cc_basename in
20139 CC*)
20140 lt_prog_compiler_wl_CXX='-Wl,'
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 ;;
20144 esac
20145 ;;
20146 tandem*)
20147 case $cc_basename in
20148 NCC*)
20149 # NonStop-UX NCC 3.20
20150 lt_prog_compiler_pic_CXX='-KPIC'
20151 ;;
20152 *)
20153 ;;
20154 esac
20155 ;;
20156 vxworks*)
20157 ;;
20158 *)
20159 lt_prog_compiler_can_build_shared_CXX=no
20160 ;;
20161 esac
20162 fi
20163
20164 case $host_os in
20165 # For platforms which do not support PIC, -DPIC is meaningless:
20166 *djgpp*)
20167 lt_prog_compiler_pic_CXX=
20168 ;;
20169 *)
20170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20171 ;;
20172 esac
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20174 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20175
20176
20177
20178 #
20179 # Check to make sure the PIC flag actually works.
20180 #
20181 if test -n "$lt_prog_compiler_pic_CXX"; then
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20184 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20185 $as_echo_n "(cached) " >&6
20186 else
20187 lt_cv_prog_compiler_pic_works_CXX=no
20188 ac_outfile=conftest.$ac_objext
20189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20190 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20191 # Insert the option either (1) after the last *FLAGS variable, or
20192 # (2) before a word containing "conftest.", or (3) at the end.
20193 # Note that $ac_compile itself does not contain backslashes and begins
20194 # with a dollar sign (not a hyphen), so the echo should work correctly.
20195 # The option is referenced via a variable to avoid confusing sed.
20196 lt_compile=`echo "$ac_compile" | $SED \
20197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20199 -e 's:$: $lt_compiler_flag:'`
20200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20201 (eval "$lt_compile" 2>conftest.err)
20202 ac_status=$?
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 if (exit $ac_status) && test -s "$ac_outfile"; then
20206 # The compiler can only warn and ignore the option if not recognized
20207 # So say no if there are warnings other than the usual output.
20208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20211 lt_cv_prog_compiler_pic_works_CXX=yes
20212 fi
20213 fi
20214 $RM conftest*
20215
20216 fi
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20218 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20219
20220 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20221 case $lt_prog_compiler_pic_CXX in
20222 "" | " "*) ;;
20223 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20224 esac
20225 else
20226 lt_prog_compiler_pic_CXX=
20227 lt_prog_compiler_can_build_shared_CXX=no
20228 fi
20229
20230 fi
20231
20232
20233
20234 #
20235 # Check to make sure the static flag actually works.
20236 #
20237 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20240 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20241 $as_echo_n "(cached) " >&6
20242 else
20243 lt_cv_prog_compiler_static_works_CXX=no
20244 save_LDFLAGS="$LDFLAGS"
20245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20248 # The linker can only warn and ignore the option if not recognized
20249 # So say no if there are warnings
20250 if test -s conftest.err; then
20251 # Append any errors to the config.log.
20252 cat conftest.err 1>&5
20253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20255 if diff conftest.exp conftest.er2 >/dev/null; then
20256 lt_cv_prog_compiler_static_works_CXX=yes
20257 fi
20258 else
20259 lt_cv_prog_compiler_static_works_CXX=yes
20260 fi
20261 fi
20262 $RM -r conftest*
20263 LDFLAGS="$save_LDFLAGS"
20264
20265 fi
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20267 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20268
20269 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20270 :
20271 else
20272 lt_prog_compiler_static_CXX=
20273 fi
20274
20275
20276
20277
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20279 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20280 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20281 $as_echo_n "(cached) " >&6
20282 else
20283 lt_cv_prog_compiler_c_o_CXX=no
20284 $RM -r conftest 2>/dev/null
20285 mkdir conftest
20286 cd conftest
20287 mkdir out
20288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20289
20290 lt_compiler_flag="-o out/conftest2.$ac_objext"
20291 # Insert the option either (1) after the last *FLAGS variable, or
20292 # (2) before a word containing "conftest.", or (3) at the end.
20293 # Note that $ac_compile itself does not contain backslashes and begins
20294 # with a dollar sign (not a hyphen), so the echo should work correctly.
20295 lt_compile=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>out/conftest.err)
20301 ac_status=$?
20302 cat out/conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20305 then
20306 # The compiler can only warn and ignore the option if not recognized
20307 # So say no if there are warnings
20308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20311 lt_cv_prog_compiler_c_o_CXX=yes
20312 fi
20313 fi
20314 chmod u+w . 2>&5
20315 $RM conftest*
20316 # SGI C++ compiler will create directory out/ii_files/ for
20317 # template instantiation
20318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20319 $RM out/* && rmdir out
20320 cd ..
20321 $RM -r conftest
20322 $RM conftest*
20323
20324 fi
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20326 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20327
20328
20329
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20332 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 lt_cv_prog_compiler_c_o_CXX=no
20336 $RM -r conftest 2>/dev/null
20337 mkdir conftest
20338 cd conftest
20339 mkdir out
20340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20341
20342 lt_compiler_flag="-o out/conftest2.$ac_objext"
20343 # Insert the option either (1) after the last *FLAGS variable, or
20344 # (2) before a word containing "conftest.", or (3) at the end.
20345 # Note that $ac_compile itself does not contain backslashes and begins
20346 # with a dollar sign (not a hyphen), so the echo should work correctly.
20347 lt_compile=`echo "$ac_compile" | $SED \
20348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20350 -e 's:$: $lt_compiler_flag:'`
20351 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20352 (eval "$lt_compile" 2>out/conftest.err)
20353 ac_status=$?
20354 cat out/conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20357 then
20358 # The compiler can only warn and ignore the option if not recognized
20359 # So say no if there are warnings
20360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20363 lt_cv_prog_compiler_c_o_CXX=yes
20364 fi
20365 fi
20366 chmod u+w . 2>&5
20367 $RM conftest*
20368 # SGI C++ compiler will create directory out/ii_files/ for
20369 # template instantiation
20370 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20371 $RM out/* && rmdir out
20372 cd ..
20373 $RM -r conftest
20374 $RM conftest*
20375
20376 fi
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20378 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20379
20380
20381
20382
20383 hard_links="nottested"
20384 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20385 # do not overwrite the value of need_locks provided by the user
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20387 $as_echo_n "checking if we can lock with hard links... " >&6; }
20388 hard_links=yes
20389 $RM conftest*
20390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20391 touch conftest.a
20392 ln conftest.a conftest.b 2>&5 || hard_links=no
20393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20395 $as_echo "$hard_links" >&6; }
20396 if test "$hard_links" = no; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20398 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20399 need_locks=warn
20400 fi
20401 else
20402 need_locks=no
20403 fi
20404
20405
20406
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20408 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20409
20410 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20411 case $host_os in
20412 aix[4-9]*)
20413 # If we're using GNU nm, then we don't want the "-C" option.
20414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20415 # Also, AIX nm treats weak defined symbols like other global defined
20416 # symbols, whereas GNU nm marks them as "W".
20417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20418 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'
20419 else
20420 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'
20421 fi
20422 ;;
20423 pw32*)
20424 export_symbols_cmds_CXX="$ltdll_cmds"
20425 ;;
20426 cygwin* | mingw* | cegcc*)
20427 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'
20428 ;;
20429 *)
20430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20431 ;;
20432 esac
20433 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20434
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20436 $as_echo "$ld_shlibs_CXX" >&6; }
20437 test "$ld_shlibs_CXX" = no && can_build_shared=no
20438
20439 with_gnu_ld_CXX=$with_gnu_ld
20440
20441
20442
20443
20444
20445
20446 #
20447 # Do we need to explicitly link libc?
20448 #
20449 case "x$archive_cmds_need_lc_CXX" in
20450 x|xyes)
20451 # Assume -lc should be added
20452 archive_cmds_need_lc_CXX=yes
20453
20454 if test "$enable_shared" = yes && test "$GCC" = yes; then
20455 case $archive_cmds_CXX in
20456 *'~'*)
20457 # FIXME: we may have to deal with multi-command sequences.
20458 ;;
20459 '$CC '*)
20460 # Test whether the compiler implicitly links with -lc since on some
20461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20462 # to ld, don't add -lc before -lgcc.
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20465 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20466 $as_echo_n "(cached) " >&6
20467 else
20468 $RM conftest*
20469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20470
20471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20472 (eval $ac_compile) 2>&5
20473 ac_status=$?
20474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20475 test $ac_status = 0; } 2>conftest.err; then
20476 soname=conftest
20477 lib=conftest
20478 libobjs=conftest.$ac_objext
20479 deplibs=
20480 wl=$lt_prog_compiler_wl_CXX
20481 pic_flag=$lt_prog_compiler_pic_CXX
20482 compiler_flags=-v
20483 linker_flags=-v
20484 verstring=
20485 output_objdir=.
20486 libname=conftest
20487 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20488 allow_undefined_flag_CXX=
20489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20490 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20491 ac_status=$?
20492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }
20494 then
20495 lt_cv_archive_cmds_need_lc_CXX=no
20496 else
20497 lt_cv_archive_cmds_need_lc_CXX=yes
20498 fi
20499 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20500 else
20501 cat conftest.err 1>&5
20502 fi
20503 $RM conftest*
20504
20505 fi
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20507 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20508 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20509 ;;
20510 esac
20511 fi
20512 ;;
20513 esac
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20580
20581 library_names_spec=
20582 libname_spec='lib$name'
20583 soname_spec=
20584 shrext_cmds=".so"
20585 postinstall_cmds=
20586 postuninstall_cmds=
20587 finish_cmds=
20588 finish_eval=
20589 shlibpath_var=
20590 shlibpath_overrides_runpath=unknown
20591 version_type=none
20592 dynamic_linker="$host_os ld.so"
20593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20594 need_lib_prefix=unknown
20595 hardcode_into_libs=no
20596
20597 # when you set need_version to no, make sure it does not cause -set_version
20598 # flags to be left without arguments
20599 need_version=unknown
20600
20601 case $host_os in
20602 aix3*)
20603 version_type=linux
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20605 shlibpath_var=LIBPATH
20606
20607 # AIX 3 has no versioning support, so we append a major version to the name.
20608 soname_spec='${libname}${release}${shared_ext}$major'
20609 ;;
20610
20611 aix[4-9]*)
20612 version_type=linux
20613 need_lib_prefix=no
20614 need_version=no
20615 hardcode_into_libs=yes
20616 if test "$host_cpu" = ia64; then
20617 # AIX 5 supports IA64
20618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 else
20621 # With GCC up to 2.95.x, collect2 would create an import file
20622 # for dependence libraries. The import file would start with
20623 # the line `#! .'. This would cause the generated library to
20624 # depend on `.', always an invalid library. This was fixed in
20625 # development snapshots of GCC prior to 3.0.
20626 case $host_os in
20627 aix4 | aix4.[01] | aix4.[01].*)
20628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20629 echo ' yes '
20630 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20631 :
20632 else
20633 can_build_shared=no
20634 fi
20635 ;;
20636 esac
20637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20638 # soname into executable. Probably we can add versioning support to
20639 # collect2, so additional links can be useful in future.
20640 if test "$aix_use_runtimelinking" = yes; then
20641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20642 # instead of lib<name>.a to let people know that these are not
20643 # typical AIX shared libraries.
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 else
20646 # We preserve .a as extension for shared libraries through AIX4.2
20647 # and later when we are not doing run time linking.
20648 library_names_spec='${libname}${release}.a $libname.a'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 fi
20651 shlibpath_var=LIBPATH
20652 fi
20653 ;;
20654
20655 amigaos*)
20656 case $host_cpu in
20657 powerpc)
20658 # Since July 2007 AmigaOS4 officially supports .so libraries.
20659 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 ;;
20662 m68k)
20663 library_names_spec='$libname.ixlibrary $libname.a'
20664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20665 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'
20666 ;;
20667 esac
20668 ;;
20669
20670 beos*)
20671 library_names_spec='${libname}${shared_ext}'
20672 dynamic_linker="$host_os ld.so"
20673 shlibpath_var=LIBRARY_PATH
20674 ;;
20675
20676 bsdi[45]*)
20677 version_type=linux
20678 need_version=no
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20682 shlibpath_var=LD_LIBRARY_PATH
20683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20685 # the default ld.so.conf also contains /usr/contrib/lib and
20686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20687 # libtool to hard-code these into programs
20688 ;;
20689
20690 cygwin* | mingw* | pw32* | cegcc*)
20691 version_type=windows
20692 shrext_cmds=".dll"
20693 need_version=no
20694 need_lib_prefix=no
20695
20696 case $GCC,$host_os in
20697 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20698 library_names_spec='$libname.dll.a'
20699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20700 postinstall_cmds='base_file=`basename \${file}`~
20701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20702 dldir=$destdir/`dirname \$dlpath`~
20703 test -d \$dldir || mkdir -p \$dldir~
20704 $install_prog $dir/$dlname \$dldir/$dlname~
20705 chmod a+x \$dldir/$dlname~
20706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20708 fi'
20709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20710 dlpath=$dir/\$dldll~
20711 $RM \$dlpath'
20712 shlibpath_overrides_runpath=yes
20713
20714 case $host_os in
20715 cygwin*)
20716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20718
20719 ;;
20720 mingw* | cegcc*)
20721 # MinGW DLLs use traditional 'lib' prefix
20722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20723 ;;
20724 pw32*)
20725 # pw32 DLLs use 'pw' prefix rather than 'lib'
20726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20727 ;;
20728 esac
20729 ;;
20730
20731 *)
20732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20733 ;;
20734 esac
20735 dynamic_linker='Win32 ld.exe'
20736 # FIXME: first we should search . and the directory the executable is in
20737 shlibpath_var=PATH
20738 ;;
20739
20740 darwin* | rhapsody*)
20741 dynamic_linker="$host_os dyld"
20742 version_type=darwin
20743 need_lib_prefix=no
20744 need_version=no
20745 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20746 soname_spec='${libname}${release}${major}$shared_ext'
20747 shlibpath_overrides_runpath=yes
20748 shlibpath_var=DYLD_LIBRARY_PATH
20749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20750
20751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20752 ;;
20753
20754 dgux*)
20755 version_type=linux
20756 need_lib_prefix=no
20757 need_version=no
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20759 soname_spec='${libname}${release}${shared_ext}$major'
20760 shlibpath_var=LD_LIBRARY_PATH
20761 ;;
20762
20763 freebsd* | dragonfly*)
20764 # DragonFly does not have aout. When/if they implement a new
20765 # versioning mechanism, adjust this.
20766 if test -x /usr/bin/objformat; then
20767 objformat=`/usr/bin/objformat`
20768 else
20769 case $host_os in
20770 freebsd[23].*) objformat=aout ;;
20771 *) objformat=elf ;;
20772 esac
20773 fi
20774 version_type=freebsd-$objformat
20775 case $version_type in
20776 freebsd-elf*)
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20778 need_version=no
20779 need_lib_prefix=no
20780 ;;
20781 freebsd-*)
20782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20783 need_version=yes
20784 ;;
20785 esac
20786 shlibpath_var=LD_LIBRARY_PATH
20787 case $host_os in
20788 freebsd2.*)
20789 shlibpath_overrides_runpath=yes
20790 ;;
20791 freebsd3.[01]* | freebsdelf3.[01]*)
20792 shlibpath_overrides_runpath=yes
20793 hardcode_into_libs=yes
20794 ;;
20795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20797 shlibpath_overrides_runpath=no
20798 hardcode_into_libs=yes
20799 ;;
20800 *) # from 4.6 on, and DragonFly
20801 shlibpath_overrides_runpath=yes
20802 hardcode_into_libs=yes
20803 ;;
20804 esac
20805 ;;
20806
20807 gnu*)
20808 version_type=linux
20809 need_lib_prefix=no
20810 need_version=no
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 hardcode_into_libs=yes
20815 ;;
20816
20817 haiku*)
20818 version_type=linux
20819 need_lib_prefix=no
20820 need_version=no
20821 dynamic_linker="$host_os runtime_loader"
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 shlibpath_var=LIBRARY_PATH
20825 shlibpath_overrides_runpath=yes
20826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20827 hardcode_into_libs=yes
20828 ;;
20829
20830 hpux9* | hpux10* | hpux11*)
20831 # Give a soname corresponding to the major version so that dld.sl refuses to
20832 # link against other versions.
20833 version_type=sunos
20834 need_lib_prefix=no
20835 need_version=no
20836 case $host_cpu in
20837 ia64*)
20838 shrext_cmds='.so'
20839 hardcode_into_libs=yes
20840 dynamic_linker="$host_os dld.so"
20841 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 if test "X$HPUX_IA64_MODE" = X32; then
20846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20847 else
20848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20849 fi
20850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20851 ;;
20852 hppa*64*)
20853 shrext_cmds='.sl'
20854 hardcode_into_libs=yes
20855 dynamic_linker="$host_os dld.sl"
20856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20859 soname_spec='${libname}${release}${shared_ext}$major'
20860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20862 ;;
20863 *)
20864 shrext_cmds='.sl'
20865 dynamic_linker="$host_os dld.sl"
20866 shlibpath_var=SHLIB_PATH
20867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec='${libname}${release}${shared_ext}$major'
20870 ;;
20871 esac
20872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20873 postinstall_cmds='chmod 555 $lib'
20874 # or fails outright, so override atomically:
20875 install_override_mode=555
20876 ;;
20877
20878 interix[3-9]*)
20879 version_type=linux
20880 need_lib_prefix=no
20881 need_version=no
20882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20883 soname_spec='${libname}${release}${shared_ext}$major'
20884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath=no
20887 hardcode_into_libs=yes
20888 ;;
20889
20890 irix5* | irix6* | nonstopux*)
20891 case $host_os in
20892 nonstopux*) version_type=nonstopux ;;
20893 *)
20894 if test "$lt_cv_prog_gnu_ld" = yes; then
20895 version_type=linux
20896 else
20897 version_type=irix
20898 fi ;;
20899 esac
20900 need_lib_prefix=no
20901 need_version=no
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20904 case $host_os in
20905 irix5* | nonstopux*)
20906 libsuff= shlibsuff=
20907 ;;
20908 *)
20909 case $LD in # libtool.m4 will add one of these switches to LD
20910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20911 libsuff= shlibsuff= libmagic=32-bit;;
20912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20913 libsuff=32 shlibsuff=N32 libmagic=N32;;
20914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20916 *) libsuff= shlibsuff= libmagic=never-match;;
20917 esac
20918 ;;
20919 esac
20920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20921 shlibpath_overrides_runpath=no
20922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20924 hardcode_into_libs=yes
20925 ;;
20926
20927 # No shared lib support for Linux oldld, aout, or coff.
20928 linux*oldld* | linux*aout* | linux*coff*)
20929 dynamic_linker=no
20930 ;;
20931
20932 # This must be Linux ELF.
20933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20934 version_type=linux
20935 need_lib_prefix=no
20936 need_version=no
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=no
20942
20943 # Some binutils ld are patched to set DT_RUNPATH
20944 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20945 $as_echo_n "(cached) " >&6
20946 else
20947 lt_cv_shlibpath_overrides_runpath=no
20948 save_LDFLAGS=$LDFLAGS
20949 save_libdir=$libdir
20950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h. */
20954
20955 int
20956 main ()
20957 {
20958
20959 ;
20960 return 0;
20961 }
20962 _ACEOF
20963 if ac_fn_cxx_try_link "$LINENO"; then :
20964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20965 lt_cv_shlibpath_overrides_runpath=yes
20966 fi
20967 fi
20968 rm -f core conftest.err conftest.$ac_objext \
20969 conftest$ac_exeext conftest.$ac_ext
20970 LDFLAGS=$save_LDFLAGS
20971 libdir=$save_libdir
20972
20973 fi
20974
20975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20976
20977 # This implies no fast_install, which is unacceptable.
20978 # Some rework will be needed to allow for fast_install
20979 # before this can be enabled.
20980 hardcode_into_libs=yes
20981
20982 # Append ld.so.conf contents to the search path
20983 if test -f /etc/ld.so.conf; then
20984 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' ' '`
20985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20986 fi
20987
20988 # We used to test for /lib/ld.so.1 and disable shared libraries on
20989 # powerpc, because MkLinux only supported shared libraries with the
20990 # GNU dynamic linker. Since this was broken with cross compilers,
20991 # most powerpc-linux boxes support dynamic linking these days and
20992 # people can always --disable-shared, the test was removed, and we
20993 # assume the GNU/Linux dynamic linker is in use.
20994 dynamic_linker='GNU/Linux ld.so'
20995 ;;
20996
20997 netbsd*)
20998 version_type=sunos
20999 need_lib_prefix=no
21000 need_version=no
21001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21004 dynamic_linker='NetBSD (a.out) ld.so'
21005 else
21006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21007 soname_spec='${libname}${release}${shared_ext}$major'
21008 dynamic_linker='NetBSD ld.elf_so'
21009 fi
21010 shlibpath_var=LD_LIBRARY_PATH
21011 shlibpath_overrides_runpath=yes
21012 hardcode_into_libs=yes
21013 ;;
21014
21015 newsos6)
21016 version_type=linux
21017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21018 shlibpath_var=LD_LIBRARY_PATH
21019 shlibpath_overrides_runpath=yes
21020 ;;
21021
21022 *nto* | *qnx*)
21023 version_type=qnx
21024 need_lib_prefix=no
21025 need_version=no
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 soname_spec='${libname}${release}${shared_ext}$major'
21028 shlibpath_var=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath=no
21030 hardcode_into_libs=yes
21031 dynamic_linker='ldqnx.so'
21032 ;;
21033
21034 openbsd*)
21035 version_type=sunos
21036 sys_lib_dlsearch_path_spec="/usr/lib"
21037 need_lib_prefix=no
21038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21039 case $host_os in
21040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21041 *) need_version=no ;;
21042 esac
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21047 case $host_os in
21048 openbsd2.[89] | openbsd2.[89].*)
21049 shlibpath_overrides_runpath=no
21050 ;;
21051 *)
21052 shlibpath_overrides_runpath=yes
21053 ;;
21054 esac
21055 else
21056 shlibpath_overrides_runpath=yes
21057 fi
21058 ;;
21059
21060 os2*)
21061 libname_spec='$name'
21062 shrext_cmds=".dll"
21063 need_lib_prefix=no
21064 library_names_spec='$libname${shared_ext} $libname.a'
21065 dynamic_linker='OS/2 ld.exe'
21066 shlibpath_var=LIBPATH
21067 ;;
21068
21069 osf3* | osf4* | osf5*)
21070 version_type=osf
21071 need_lib_prefix=no
21072 need_version=no
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21075 shlibpath_var=LD_LIBRARY_PATH
21076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21078 ;;
21079
21080 rdos*)
21081 dynamic_linker=no
21082 ;;
21083
21084 solaris*)
21085 version_type=linux
21086 need_lib_prefix=no
21087 need_version=no
21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 shlibpath_var=LD_LIBRARY_PATH
21091 shlibpath_overrides_runpath=yes
21092 hardcode_into_libs=yes
21093 # ldd complains unless libraries are executable
21094 postinstall_cmds='chmod +x $lib'
21095 ;;
21096
21097 sunos4*)
21098 version_type=sunos
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=yes
21103 if test "$with_gnu_ld" = yes; then
21104 need_lib_prefix=no
21105 fi
21106 need_version=yes
21107 ;;
21108
21109 sysv4 | sysv4.3*)
21110 version_type=linux
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112 soname_spec='${libname}${release}${shared_ext}$major'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 case $host_vendor in
21115 sni)
21116 shlibpath_overrides_runpath=no
21117 need_lib_prefix=no
21118 runpath_var=LD_RUN_PATH
21119 ;;
21120 siemens)
21121 need_lib_prefix=no
21122 ;;
21123 motorola)
21124 need_lib_prefix=no
21125 need_version=no
21126 shlibpath_overrides_runpath=no
21127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21128 ;;
21129 esac
21130 ;;
21131
21132 sysv4*MP*)
21133 if test -d /usr/nec ;then
21134 version_type=linux
21135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21136 soname_spec='$libname${shared_ext}.$major'
21137 shlibpath_var=LD_LIBRARY_PATH
21138 fi
21139 ;;
21140
21141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21142 version_type=freebsd-elf
21143 need_lib_prefix=no
21144 need_version=no
21145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21146 soname_spec='${libname}${release}${shared_ext}$major'
21147 shlibpath_var=LD_LIBRARY_PATH
21148 shlibpath_overrides_runpath=yes
21149 hardcode_into_libs=yes
21150 if test "$with_gnu_ld" = yes; then
21151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21152 else
21153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21154 case $host_os in
21155 sco3.2v5*)
21156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21157 ;;
21158 esac
21159 fi
21160 sys_lib_dlsearch_path_spec='/usr/lib'
21161 ;;
21162
21163 tpf*)
21164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21165 version_type=linux
21166 need_lib_prefix=no
21167 need_version=no
21168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21169 shlibpath_var=LD_LIBRARY_PATH
21170 shlibpath_overrides_runpath=no
21171 hardcode_into_libs=yes
21172 ;;
21173
21174 uts4*)
21175 version_type=linux
21176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21177 soname_spec='${libname}${release}${shared_ext}$major'
21178 shlibpath_var=LD_LIBRARY_PATH
21179 ;;
21180
21181 *)
21182 dynamic_linker=no
21183 ;;
21184 esac
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21186 $as_echo "$dynamic_linker" >&6; }
21187 test "$dynamic_linker" = no && can_build_shared=no
21188
21189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21190 if test "$GCC" = yes; then
21191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21192 fi
21193
21194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21195 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21196 fi
21197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21198 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21199 fi
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21239 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21240 hardcode_action_CXX=
21241 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21242 test -n "$runpath_var_CXX" ||
21243 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21244
21245 # We can hardcode non-existent directories.
21246 if test "$hardcode_direct_CXX" != no &&
21247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21248 # have to relink, otherwise we might link with an installed library
21249 # when we should be linking with a yet-to-be-installed one
21250 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21251 test "$hardcode_minus_L_CXX" != no; then
21252 # Linking always hardcodes the temporary library directory.
21253 hardcode_action_CXX=relink
21254 else
21255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21256 hardcode_action_CXX=immediate
21257 fi
21258 else
21259 # We cannot hardcode anything, or else we can only hardcode existing
21260 # directories.
21261 hardcode_action_CXX=unsupported
21262 fi
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21264 $as_echo "$hardcode_action_CXX" >&6; }
21265
21266 if test "$hardcode_action_CXX" = relink ||
21267 test "$inherit_rpath_CXX" = yes; then
21268 # Fast installation is not supported
21269 enable_fast_install=no
21270 elif test "$shlibpath_overrides_runpath" = yes ||
21271 test "$enable_shared" = no; then
21272 # Fast installation is not necessary
21273 enable_fast_install=needless
21274 fi
21275
21276
21277
21278
21279
21280
21281
21282 fi # test -n "$compiler"
21283
21284 CC=$lt_save_CC
21285 LDCXX=$LD
21286 LD=$lt_save_LD
21287 GCC=$lt_save_GCC
21288 with_gnu_ld=$lt_save_with_gnu_ld
21289 lt_cv_path_LDCXX=$lt_cv_path_LD
21290 lt_cv_path_LD=$lt_save_path_LD
21291 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21292 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21293 fi # test "$_lt_caught_CXX_error" != yes
21294
21295 ac_ext=c
21296 ac_cpp='$CPP $CPPFLAGS'
21297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316 # Only expand once:
21317
21318
21319
21320
21321
21322 # Identify the assembler which will work hand-in-glove with the newly
21323 # built GCC, so that we can examine its features. This is the assembler
21324 # which will be driven by the driver program.
21325 #
21326 # If build != host, and we aren't building gas in-tree, we identify a
21327 # build->target assembler and hope that it will have the same features
21328 # as the host->target assembler we'll be using.
21329 gcc_cv_gas_major_version=
21330 gcc_cv_gas_minor_version=
21331 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21332
21333 if test "${gcc_cv_as+set}" = set; then :
21334
21335 else
21336
21337 if test -x "$DEFAULT_ASSEMBLER"; then
21338 gcc_cv_as="$DEFAULT_ASSEMBLER"
21339 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21340 && test -f ../gas/Makefile \
21341 && test x$build = x$host; then
21342 gcc_cv_as=../gas/as-new$build_exeext
21343 elif test -x as$build_exeext; then
21344 # Build using assembler in the current directory.
21345 gcc_cv_as=./as$build_exeext
21346 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21347 gcc_cv_as="$AS_FOR_TARGET"
21348 else
21349 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21350 set dummy $AS_FOR_TARGET; ac_word=$2
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21352 $as_echo_n "checking for $ac_word... " >&6; }
21353 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21354 $as_echo_n "(cached) " >&6
21355 else
21356 case $gcc_cv_as in
21357 [\\/]* | ?:[\\/]*)
21358 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21359 ;;
21360 *)
21361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362 for as_dir in $PATH
21363 do
21364 IFS=$as_save_IFS
21365 test -z "$as_dir" && as_dir=.
21366 for ac_exec_ext in '' $ac_executable_extensions; do
21367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21368 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21370 break 2
21371 fi
21372 done
21373 done
21374 IFS=$as_save_IFS
21375
21376 ;;
21377 esac
21378 fi
21379 gcc_cv_as=$ac_cv_path_gcc_cv_as
21380 if test -n "$gcc_cv_as"; then
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21382 $as_echo "$gcc_cv_as" >&6; }
21383 else
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21385 $as_echo "no" >&6; }
21386 fi
21387
21388
21389 fi
21390 fi
21391
21392 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21393
21394 case "$ORIGINAL_AS_FOR_TARGET" in
21395 ./as | ./as$build_exeext) ;;
21396 *) ac_config_files="$ac_config_files as:exec-tool.in"
21397 ;;
21398 esac
21399
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21401 $as_echo_n "checking what assembler to use... " >&6; }
21402 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21403 # Single tree build which includes gas. We want to prefer it
21404 # over whatever linker top-level may have detected, since
21405 # we'll use what we're building after installation anyway.
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21407 $as_echo "newly built gas" >&6; }
21408 in_tree_gas=yes
21409 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21410 for f in $gcc_cv_as_bfd_srcdir/configure \
21411 $gcc_cv_as_gas_srcdir/configure \
21412 $gcc_cv_as_gas_srcdir/configure.in \
21413 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21414 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21415 if test x$gcc_cv_gas_version != x; then
21416 break
21417 fi
21418 done
21419 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21420 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21421 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21422 case $gcc_cv_gas_patch_version in
21423 "") gcc_cv_gas_patch_version="0" ;;
21424 esac
21425 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21426 + $gcc_cv_gas_minor_version \) \* 1000 \
21427 + $gcc_cv_gas_patch_version`
21428
21429 in_tree_gas_is_elf=no
21430 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21431 || (grep 'obj_format = multi' ../gas/Makefile \
21432 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21433 then
21434 in_tree_gas_is_elf=yes
21435 fi
21436 else
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21438 $as_echo "$gcc_cv_as" >&6; }
21439 in_tree_gas=no
21440 fi
21441
21442 # Identify the linker which will work hand-in-glove with the newly
21443 # built GCC, so that we can examine its features. This is the linker
21444 # which will be driven by the driver program.
21445 #
21446 # If build != host, and we aren't building gas in-tree, we identify a
21447 # build->target linker and hope that it will have the same features
21448 # as the host->target linker we'll be using.
21449 gcc_cv_gld_major_version=
21450 gcc_cv_gld_minor_version=
21451 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21452 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21453
21454 if test "${gcc_cv_ld+set}" = set; then :
21455
21456 else
21457
21458 if test -x "$DEFAULT_LINKER"; then
21459 gcc_cv_ld="$DEFAULT_LINKER"
21460 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21461 && test -f ../ld/Makefile \
21462 && test x$build = x$host; then
21463 gcc_cv_ld=../ld/ld-new$build_exeext
21464 elif test -x collect-ld$build_exeext; then
21465 # Build using linker in the current directory.
21466 gcc_cv_ld=./collect-ld$build_exeext
21467 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21468 gcc_cv_ld="$LD_FOR_TARGET"
21469 else
21470 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21471 set dummy $LD_FOR_TARGET; ac_word=$2
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21473 $as_echo_n "checking for $ac_word... " >&6; }
21474 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21475 $as_echo_n "(cached) " >&6
21476 else
21477 case $gcc_cv_ld in
21478 [\\/]* | ?:[\\/]*)
21479 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21480 ;;
21481 *)
21482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21483 for as_dir in $PATH
21484 do
21485 IFS=$as_save_IFS
21486 test -z "$as_dir" && as_dir=.
21487 for ac_exec_ext in '' $ac_executable_extensions; do
21488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21489 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21491 break 2
21492 fi
21493 done
21494 done
21495 IFS=$as_save_IFS
21496
21497 ;;
21498 esac
21499 fi
21500 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21501 if test -n "$gcc_cv_ld"; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21503 $as_echo "$gcc_cv_ld" >&6; }
21504 else
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506 $as_echo "no" >&6; }
21507 fi
21508
21509
21510 fi
21511 fi
21512
21513 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21514 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21515
21516 # Check whether --with-plugin-ld was given.
21517 if test "${with_plugin_ld+set}" = set; then :
21518 withval=$with_plugin_ld; if test x"$withval" != x; then
21519 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21520 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21521 fi
21522 fi
21523
21524
21525
21526 cat >>confdefs.h <<_ACEOF
21527 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21528 _ACEOF
21529
21530
21531 # Check to see if we are using gold instead of ld
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21533 $as_echo_n "checking whether we are using gold... " >&6; }
21534 ld_is_gold=no
21535 if test x$gcc_cv_ld != x; then
21536 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21537 | grep "GNU gold" > /dev/null; then
21538 ld_is_gold=yes
21539 fi
21540 fi
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21542 $as_echo "$ld_is_gold" >&6; }
21543
21544 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21545
21546 case "$ORIGINAL_LD_FOR_TARGET" in
21547 ./collect-ld | ./collect-ld$build_exeext) ;;
21548 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21549 ;;
21550 esac
21551
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21553 $as_echo_n "checking what linker to use... " >&6; }
21554 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21555 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21556 # Single tree build which includes ld. We want to prefer it
21557 # over whatever linker top-level may have detected, since
21558 # we'll use what we're building after installation anyway.
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21560 $as_echo "newly built ld" >&6; }
21561 in_tree_ld=yes
21562 in_tree_ld_is_elf=no
21563 if (grep 'EMUL = .*elf' ../ld/Makefile \
21564 || grep 'EMUL = .*linux' ../ld/Makefile \
21565 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21566 in_tree_ld_is_elf=yes
21567 elif test "$ld_is_gold" = yes; then
21568 in_tree_ld_is_elf=yes
21569 fi
21570 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
21571 do
21572 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21573 if test x$gcc_cv_gld_version != x; then
21574 break
21575 fi
21576 done
21577 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21578 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21579 else
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21581 $as_echo "$gcc_cv_ld" >&6; }
21582 in_tree_ld=no
21583 fi
21584
21585 # Figure out what nm we will be using.
21586 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21587 if test "${gcc_cv_nm+set}" = set; then :
21588
21589 else
21590
21591 if test -f $gcc_cv_binutils_srcdir/configure.in \
21592 && test -f ../binutils/Makefile \
21593 && test x$build = x$host; then
21594 gcc_cv_nm=../binutils/nm-new$build_exeext
21595 elif test -x nm$build_exeext; then
21596 gcc_cv_nm=./nm$build_exeext
21597 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21598 gcc_cv_nm="$NM_FOR_TARGET"
21599 else
21600 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21601 set dummy $NM_FOR_TARGET; ac_word=$2
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21603 $as_echo_n "checking for $ac_word... " >&6; }
21604 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21605 $as_echo_n "(cached) " >&6
21606 else
21607 case $gcc_cv_nm in
21608 [\\/]* | ?:[\\/]*)
21609 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21610 ;;
21611 *)
21612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21613 for as_dir in $PATH
21614 do
21615 IFS=$as_save_IFS
21616 test -z "$as_dir" && as_dir=.
21617 for ac_exec_ext in '' $ac_executable_extensions; do
21618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21619 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21621 break 2
21622 fi
21623 done
21624 done
21625 IFS=$as_save_IFS
21626
21627 ;;
21628 esac
21629 fi
21630 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21631 if test -n "$gcc_cv_nm"; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21633 $as_echo "$gcc_cv_nm" >&6; }
21634 else
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21636 $as_echo "no" >&6; }
21637 fi
21638
21639
21640 fi
21641 fi
21642
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21644 $as_echo_n "checking what nm to use... " >&6; }
21645 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21646 # Single tree build which includes binutils.
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21648 $as_echo "newly built nm" >&6; }
21649 in_tree_nm=yes
21650 else
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21652 $as_echo "$gcc_cv_nm" >&6; }
21653 in_tree_nm=no
21654 fi
21655
21656 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21657
21658 case "$ORIGINAL_NM_FOR_TARGET" in
21659 ./nm | ./nm$build_exeext) ;;
21660 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21661 ;;
21662 esac
21663
21664
21665 # Figure out what objdump we will be using.
21666 if test "${gcc_cv_objdump+set}" = set; then :
21667
21668 else
21669
21670 if test -f $gcc_cv_binutils_srcdir/configure.in \
21671 && test -f ../binutils/Makefile \
21672 && test x$build = x$host; then
21673 # Single tree build which includes binutils.
21674 gcc_cv_objdump=../binutils/objdump$build_exeext
21675 elif test -x objdump$build_exeext; then
21676 gcc_cv_objdump=./objdump$build_exeext
21677 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21678 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21679 else
21680 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21681 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21683 $as_echo_n "checking for $ac_word... " >&6; }
21684 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21686 else
21687 case $gcc_cv_objdump in
21688 [\\/]* | ?:[\\/]*)
21689 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21690 ;;
21691 *)
21692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21693 for as_dir in $PATH
21694 do
21695 IFS=$as_save_IFS
21696 test -z "$as_dir" && as_dir=.
21697 for ac_exec_ext in '' $ac_executable_extensions; do
21698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21699 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21701 break 2
21702 fi
21703 done
21704 done
21705 IFS=$as_save_IFS
21706
21707 ;;
21708 esac
21709 fi
21710 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21711 if test -n "$gcc_cv_objdump"; then
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21713 $as_echo "$gcc_cv_objdump" >&6; }
21714 else
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21717 fi
21718
21719
21720 fi
21721 fi
21722
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21724 $as_echo_n "checking what objdump to use... " >&6; }
21725 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21726 # Single tree build which includes binutils.
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21728 $as_echo "newly built objdump" >&6; }
21729 elif test x$gcc_cv_objdump = x; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21731 $as_echo "not found" >&6; }
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21734 $as_echo "$gcc_cv_objdump" >&6; }
21735 fi
21736
21737 # Figure out what readelf we will be using.
21738 if test "${gcc_cv_readelf+set}" = set; then :
21739
21740 else
21741
21742 if test -f $gcc_cv_binutils_srcdir/configure.in \
21743 && test -f ../binutils/Makefile \
21744 && test x$build = x$host; then
21745 # Single tree build which includes binutils.
21746 gcc_cv_readelf=../binutils/readelf$build_exeext
21747 elif test -x readelf$build_exeext; then
21748 gcc_cv_readelf=./readelf$build_exeext
21749 else
21750 # Extract the first word of "readelf", so it can be a program name with args.
21751 set dummy readelf; ac_word=$2
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21753 $as_echo_n "checking for $ac_word... " >&6; }
21754 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21756 else
21757 case $gcc_cv_readelf in
21758 [\\/]* | ?:[\\/]*)
21759 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21760 ;;
21761 *)
21762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21764 do
21765 IFS=$as_save_IFS
21766 test -z "$as_dir" && as_dir=.
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21769 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21771 break 2
21772 fi
21773 done
21774 done
21775 IFS=$as_save_IFS
21776
21777 ;;
21778 esac
21779 fi
21780 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21781 if test -n "$gcc_cv_readelf"; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21783 $as_echo "$gcc_cv_readelf" >&6; }
21784 else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21787 fi
21788
21789
21790 fi
21791 fi
21792
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21794 $as_echo_n "checking what readelf to use... " >&6; }
21795 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21796 # Single tree build which includes binutils.
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21798 $as_echo "newly built readelf" >&6; }
21799 elif test x$gcc_cv_readelf = x; then
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21801 $as_echo "not found" >&6; }
21802 else
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21804 $as_echo "$gcc_cv_readelf" >&6; }
21805 fi
21806
21807 # Figure out what assembler alignment features are present.
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21809 $as_echo_n "checking assembler flags... " >&6; }
21810 if test "${gcc_cv_as_flags+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21812 else
21813 case "$target" in
21814 i[34567]86-*-linux*)
21815 gcc_cv_as_flags="--32"
21816 ;;
21817 powerpc*-*-darwin*)
21818 gcc_cv_as_flags="-arch ppc"
21819 ;;
21820 *)
21821 gcc_cv_as_flags=" "
21822 ;;
21823 esac
21824 fi
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21826 $as_echo "$gcc_cv_as_flags" >&6; }
21827
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21829 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21830 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21831 $as_echo_n "(cached) " >&6
21832 else
21833 gcc_cv_as_balign_and_p2align=no
21834 if test $in_tree_gas = yes; then
21835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21836 then gcc_cv_as_balign_and_p2align=yes
21837 fi
21838 elif test x$gcc_cv_as != x; then
21839 $as_echo '.balign 4
21840 .p2align 2' > conftest.s
21841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21843 (eval $ac_try) 2>&5
21844 ac_status=$?
21845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21846 test $ac_status = 0; }; }
21847 then
21848 gcc_cv_as_balign_and_p2align=yes
21849 else
21850 echo "configure: failed program was" >&5
21851 cat conftest.s >&5
21852 fi
21853 rm -f conftest.o conftest.s
21854 fi
21855 fi
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21857 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21858 if test $gcc_cv_as_balign_and_p2align = yes; then
21859
21860 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21861
21862 fi
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21865 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21866 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
21868 else
21869 gcc_cv_as_max_skip_p2align=no
21870 if test $in_tree_gas = yes; then
21871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21872 then gcc_cv_as_max_skip_p2align=yes
21873 fi
21874 elif test x$gcc_cv_as != x; then
21875 $as_echo '.p2align 4,,7' > conftest.s
21876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; }
21882 then
21883 gcc_cv_as_max_skip_p2align=yes
21884 else
21885 echo "configure: failed program was" >&5
21886 cat conftest.s >&5
21887 fi
21888 rm -f conftest.o conftest.s
21889 fi
21890 fi
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21892 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21893 if test $gcc_cv_as_max_skip_p2align = yes; then
21894
21895 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21896
21897 fi
21898
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21900 $as_echo_n "checking assembler for .literal16... " >&6; }
21901 if test "${gcc_cv_as_literal16+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 gcc_cv_as_literal16=no
21905 if test $in_tree_gas = yes; then
21906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21907 then gcc_cv_as_literal16=yes
21908 fi
21909 elif test x$gcc_cv_as != x; then
21910 $as_echo '.literal16' > conftest.s
21911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }; }
21917 then
21918 gcc_cv_as_literal16=yes
21919 else
21920 echo "configure: failed program was" >&5
21921 cat conftest.s >&5
21922 fi
21923 rm -f conftest.o conftest.s
21924 fi
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21927 $as_echo "$gcc_cv_as_literal16" >&6; }
21928 if test $gcc_cv_as_literal16 = yes; then
21929
21930 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21931
21932 fi
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21935 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21936 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 gcc_cv_as_subsection_m1=no
21940 if test $in_tree_gas = yes; then
21941 if test $in_tree_gas_is_elf = yes \
21942 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21943 then gcc_cv_as_subsection_m1=yes
21944 fi
21945 elif test x$gcc_cv_as != x; then
21946 $as_echo 'conftest_label1: .word 0
21947 .subsection -1
21948 conftest_label2: .word 0
21949 .previous' > conftest.s
21950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21955 test $ac_status = 0; }; }
21956 then
21957 if test x$gcc_cv_nm != x; then
21958 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21959 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21960 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21961 then :
21962 else gcc_cv_as_subsection_m1=yes
21963 fi
21964 rm -f conftest.nm1 conftest.nm2
21965 fi
21966 else
21967 echo "configure: failed program was" >&5
21968 cat conftest.s >&5
21969 fi
21970 rm -f conftest.o conftest.s
21971 fi
21972 fi
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21974 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21975 if test $gcc_cv_as_subsection_m1 = yes; then
21976
21977 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21978
21979 fi
21980
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21982 $as_echo_n "checking assembler for .weak... " >&6; }
21983 if test "${gcc_cv_as_weak+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 gcc_cv_as_weak=no
21987 if test $in_tree_gas = yes; then
21988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21989 then gcc_cv_as_weak=yes
21990 fi
21991 elif test x$gcc_cv_as != x; then
21992 $as_echo ' .weak foobar' > conftest.s
21993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21998 test $ac_status = 0; }; }
21999 then
22000 gcc_cv_as_weak=yes
22001 else
22002 echo "configure: failed program was" >&5
22003 cat conftest.s >&5
22004 fi
22005 rm -f conftest.o conftest.s
22006 fi
22007 fi
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22009 $as_echo "$gcc_cv_as_weak" >&6; }
22010 if test $gcc_cv_as_weak = yes; then
22011
22012 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22013
22014 fi
22015
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22017 $as_echo_n "checking assembler for .weakref... " >&6; }
22018 if test "${gcc_cv_as_weakref+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 gcc_cv_as_weakref=no
22022 if test $in_tree_gas = yes; then
22023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22024 then gcc_cv_as_weakref=yes
22025 fi
22026 elif test x$gcc_cv_as != x; then
22027 $as_echo ' .weakref foobar, barfnot' > conftest.s
22028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22033 test $ac_status = 0; }; }
22034 then
22035 gcc_cv_as_weakref=yes
22036 else
22037 echo "configure: failed program was" >&5
22038 cat conftest.s >&5
22039 fi
22040 rm -f conftest.o conftest.s
22041 fi
22042 fi
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22044 $as_echo "$gcc_cv_as_weakref" >&6; }
22045 if test $gcc_cv_as_weakref = yes; then
22046
22047 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22048
22049 fi
22050
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22052 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22053 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22054 $as_echo_n "(cached) " >&6
22055 else
22056 gcc_cv_as_nsubspa_comdat=no
22057 if test $in_tree_gas = yes; then
22058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22059 then gcc_cv_as_nsubspa_comdat=yes
22060 fi
22061 elif test x$gcc_cv_as != x; then
22062 $as_echo ' .SPACE $TEXT$
22063 .NSUBSPA $CODE$,COMDAT' > conftest.s
22064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22066 (eval $ac_try) 2>&5
22067 ac_status=$?
22068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22069 test $ac_status = 0; }; }
22070 then
22071 gcc_cv_as_nsubspa_comdat=yes
22072 else
22073 echo "configure: failed program was" >&5
22074 cat conftest.s >&5
22075 fi
22076 rm -f conftest.o conftest.s
22077 fi
22078 fi
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22080 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22081 if test $gcc_cv_as_nsubspa_comdat = yes; then
22082
22083 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22084
22085 fi
22086
22087 # .hidden needs to be supported in both the assembler and the linker,
22088 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22089 # This is irritatingly difficult to feature test for; we have to check the
22090 # date string after the version number. If we've got an in-tree
22091 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22092 # to be safe.
22093 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22095 $as_echo_n "checking assembler for .hidden... " >&6; }
22096 if test "${gcc_cv_as_hidden+set}" = set; then :
22097 $as_echo_n "(cached) " >&6
22098 else
22099 gcc_cv_as_hidden=no
22100 if test $in_tree_gas = yes; then
22101 if test $in_tree_gas_is_elf = yes \
22102 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22103 then gcc_cv_as_hidden=yes
22104 fi
22105 elif test x$gcc_cv_as != x; then
22106 $as_echo ' .hidden foobar
22107 foobar:' > conftest.s
22108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22113 test $ac_status = 0; }; }
22114 then
22115
22116 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22117 # STV_HIDDEN, so disable .hidden support if so.
22118 case "${target}" in
22119 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22120 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22121 cat > conftest.s <<EOF
22122 .globl hidden
22123 .hidden hidden
22124 hidden:
22125 .globl default
22126 .set default,hidden
22127 EOF
22128 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22129 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22130 grep '\.hidden default' > /dev/null; then
22131 gcc_cv_as_hidden=no
22132 else
22133 gcc_cv_as_hidden=yes
22134 fi
22135 else
22136 # Assume bug is present if objdump is missing.
22137 gcc_cv_as_hidden=no
22138 fi
22139 ;;
22140 *)
22141 gcc_cv_as_hidden=yes
22142 ;;
22143 esac
22144 else
22145 echo "configure: failed program was" >&5
22146 cat conftest.s >&5
22147 fi
22148 rm -f conftest.o conftest.s
22149 fi
22150 fi
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22152 $as_echo "$gcc_cv_as_hidden" >&6; }
22153
22154 case "${target}" in
22155 *-*-darwin*)
22156 # Darwin as has some visibility support, though with a different syntax.
22157 gcc_cv_as_hidden=yes
22158 ;;
22159 esac
22160
22161 # gnu_indirect_function type is an extension proposed at
22162 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22163 # selection of function implementation
22164 # Check whether --enable-gnu-indirect-function was given.
22165 if test "${enable_gnu_indirect_function+set}" = set; then :
22166 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22167 yes | no) ;;
22168 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22169 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22170 esac
22171 else
22172 enable_gnu_indirect_function="$default_gnu_indirect_function"
22173 fi
22174
22175 if test x$enable_gnu_indirect_function = xyes; then
22176
22177 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22178
22179 fi
22180
22181 if test $in_tree_ld != yes ; then
22182 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22183 if echo "$ld_ver" | grep GNU > /dev/null; then
22184 if test x"$ld_is_gold" = xyes; then
22185 # GNU gold --version looks like this:
22186 #
22187 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22188 #
22189 # We extract the binutils version which is more familiar and specific
22190 # than the gold version.
22191 ld_vers=`echo $ld_ver | sed -n \
22192 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22193 else
22194 # GNU ld --version looks like this:
22195 #
22196 # GNU ld (GNU Binutils) 2.21.51.20110225
22197 ld_vers=`echo $ld_ver | sed -n \
22198 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22199 fi
22200 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'`
22201 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22202 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22203 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22204 else
22205 case "${target}" in
22206 *-*-solaris2*)
22207 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22208 # format.
22209 #
22210 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22211 # /usr/ccs/bin/ld has been configured.
22212 ld_ver=`$gcc_cv_ld -V 2>&1`
22213 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22214 ld_vers=`echo $ld_ver | sed -n \
22215 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22216 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22217 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22218 fi
22219 ;;
22220 esac
22221 fi
22222 fi
22223
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22225 $as_echo_n "checking linker for .hidden support... " >&6; }
22226 if test "${gcc_cv_ld_hidden+set}" = set; then :
22227 $as_echo_n "(cached) " >&6
22228 else
22229 if test $in_tree_ld = yes ; then
22230 gcc_cv_ld_hidden=no
22231 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 \
22232 && test $in_tree_ld_is_elf = yes; then
22233 gcc_cv_ld_hidden=yes
22234 fi
22235 else
22236 gcc_cv_ld_hidden=yes
22237 if test x"$ld_is_gold" = xyes; then
22238 :
22239 elif echo "$ld_ver" | grep GNU > /dev/null; then
22240 if test 0"$ld_date" -lt 20020404; then
22241 if test -n "$ld_date"; then
22242 # If there was date string, but was earlier than 2002-04-04, fail
22243 gcc_cv_ld_hidden=no
22244 elif test -z "$ld_vers"; then
22245 # If there was no date string nor ld version number, something is wrong
22246 gcc_cv_ld_hidden=no
22247 else
22248 test -z "$ld_vers_patch" && ld_vers_patch=0
22249 if test "$ld_vers_major" -lt 2; then
22250 gcc_cv_ld_hidden=no
22251 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22252 gcc_cv_ld_hidden="no"
22253 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22254 gcc_cv_ld_hidden=no
22255 fi
22256 fi
22257 fi
22258 else
22259 case "${target}" in
22260 *-*-darwin*)
22261 # Darwin ld has some visibility support.
22262 gcc_cv_ld_hidden=yes
22263 ;;
22264 hppa64*-*-hpux* | ia64*-*-hpux*)
22265 gcc_cv_ld_hidden=yes
22266 ;;
22267 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22268 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22269 # .symbolic was only added in Solaris 9 12/02.
22270 gcc_cv_ld_hidden=yes
22271 ;;
22272 *)
22273 gcc_cv_ld_hidden=no
22274 ;;
22275 esac
22276 fi
22277 fi
22278 fi
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22280 $as_echo "$gcc_cv_ld_hidden" >&6; }
22281 libgcc_visibility=no
22282
22283
22284 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22285 libgcc_visibility=yes
22286
22287 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22288
22289 fi
22290
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22292 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22293 gcc_cv_ld_ro_rw_mix=unknown
22294 if test $in_tree_ld = yes ; then
22295 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 \
22296 && test $in_tree_ld_is_elf = yes; then
22297 gcc_cv_ld_ro_rw_mix=read-write
22298 fi
22299 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22300 echo '.section myfoosect, "a"' > conftest1.s
22301 echo '.section myfoosect, "aw"' > conftest2.s
22302 echo '.byte 1' >> conftest2.s
22303 echo '.section myfoosect, "a"' > conftest3.s
22304 echo '.byte 0' >> conftest3.s
22305 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22306 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22307 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22308 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22309 conftest2.o conftest3.o > /dev/null 2>&1; then
22310 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22311 | sed -e '/myfoosect/!d' -e N`
22312 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22313 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22314 gcc_cv_ld_ro_rw_mix=read-only
22315 else
22316 gcc_cv_ld_ro_rw_mix=read-write
22317 fi
22318 fi
22319 fi
22320 rm -f conftest.* conftest[123].*
22321 fi
22322 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22323
22324 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22325
22326 fi
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22328 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22329
22330 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22331 case "${target}" in
22332 *-*-solaris2*)
22333 #
22334 # Solaris 2 ld -V output looks like this for a regular version:
22335 #
22336 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22337 #
22338 # but test versions add stuff at the end:
22339 #
22340 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22341 #
22342 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22343 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22344 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22345 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22346 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22347 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22348 fi
22349 ;;
22350 esac
22351 fi
22352
22353 # Check whether --enable-initfini-array was given.
22354 if test "${enable_initfini_array+set}" = set; then :
22355 enableval=$enable_initfini_array;
22356 else
22357
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22359 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22360 if test "${gcc_cv_initfini_array+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22362 else
22363 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22364 case "${target}" in
22365 ia64-*)
22366 if test "$cross_compiling" = yes; then :
22367 gcc_cv_initfini_array=no
22368 else
22369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22370 /* end confdefs.h. */
22371
22372 #ifndef __ELF__
22373 #error Not an ELF OS
22374 #endif
22375 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22376 if it can be used. */
22377 static int x = -1;
22378 int main (void) { return x; }
22379 int foo (void) { x = 0; }
22380 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22381
22382 _ACEOF
22383 if ac_fn_c_try_run "$LINENO"; then :
22384 gcc_cv_initfini_array=yes
22385 else
22386 gcc_cv_initfini_array=no
22387 fi
22388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22389 conftest.$ac_objext conftest.beam conftest.$ac_ext
22390 fi
22391 ;;
22392 *)
22393 gcc_cv_initfini_array=no
22394 if test $in_tree_ld = yes ; then
22395 if test "$gcc_cv_gld_major_version" -eq 2 \
22396 -a "$gcc_cv_gld_minor_version" -ge 22 \
22397 -o "$gcc_cv_gld_major_version" -gt 2 \
22398 && test $in_tree_ld_is_elf = yes; then
22399 gcc_cv_initfini_array=yes
22400 fi
22401 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22402 cat > conftest.s <<\EOF
22403 .section .dtors,"a",%progbits
22404 .balign 4
22405 .byte 'A', 'A', 'A', 'A'
22406 .section .ctors,"a",%progbits
22407 .balign 4
22408 .byte 'B', 'B', 'B', 'B'
22409 .section .fini_array.65530,"a",%progbits
22410 .balign 4
22411 .byte 'C', 'C', 'C', 'C'
22412 .section .init_array.65530,"a",%progbits
22413 .balign 4
22414 .byte 'D', 'D', 'D', 'D'
22415 .section .dtors.64528,"a",%progbits
22416 .balign 4
22417 .byte 'E', 'E', 'E', 'E'
22418 .section .ctors.64528,"a",%progbits
22419 .balign 4
22420 .byte 'F', 'F', 'F', 'F'
22421 .section .fini_array.01005,"a",%progbits
22422 .balign 4
22423 .byte 'G', 'G', 'G', 'G'
22424 .section .init_array.01005,"a",%progbits
22425 .balign 4
22426 .byte 'H', 'H', 'H', 'H'
22427 .text
22428 .globl _start
22429 _start:
22430 EOF
22431 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22432 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22433 && $gcc_cv_objdump -s -j .init_array conftest \
22434 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22435 && $gcc_cv_objdump -s -j .fini_array conftest \
22436 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22437 gcc_cv_initfini_array=yes
22438 fi
22439 rm -f conftest conftest.*
22440 fi
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h. */
22443
22444 #ifndef __ELF__
22445 # error Not an ELF OS
22446 #endif
22447 #include <stdlib.h>
22448 #if defined __GLIBC_PREREQ
22449 # if __GLIBC_PREREQ (2, 4)
22450 # else
22451 # error GLIBC 2.4 required
22452 # endif
22453 #else
22454 # if defined __sun__ && defined __svr4__
22455 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22456 # else
22457 # error The C library not known to support .init_array/.fini_array
22458 # endif
22459 #endif
22460
22461 _ACEOF
22462 if ac_fn_c_try_cpp "$LINENO"; then :
22463
22464 else
22465 gcc_cv_initfini_array=no
22466 fi
22467 rm -f conftest.err conftest.$ac_ext;;
22468 esac
22469 else
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22471 $as_echo_n "checking cross compile... guessing... " >&6; }
22472 gcc_cv_initfini_array=no
22473 fi
22474 fi
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22476 $as_echo "$gcc_cv_initfini_array" >&6; }
22477 enable_initfini_array=$gcc_cv_initfini_array
22478
22479 fi
22480
22481 if test $enable_initfini_array = yes; then
22482
22483 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22484
22485 fi
22486
22487 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22489 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22490 if test "${gcc_cv_as_leb128+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
22492 else
22493 gcc_cv_as_leb128=no
22494 if test $in_tree_gas = yes; then
22495 if test $in_tree_gas_is_elf = yes \
22496 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22497 then gcc_cv_as_leb128=yes
22498 fi
22499 elif test x$gcc_cv_as != x; then
22500 $as_echo ' .data
22501 .uleb128 L2 - L1
22502 L1:
22503 .uleb128 1280
22504 .sleb128 -1010
22505 L2:' > conftest.s
22506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22511 test $ac_status = 0; }; }
22512 then
22513 # GAS versions before 2.11 do not support uleb128,
22514 # despite appearing to.
22515 # ??? There exists an elf-specific test that will crash
22516 # the assembler. Perhaps it's better to figure out whether
22517 # arbitrary sections are supported and try the test.
22518 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22519 if echo "$as_ver" | grep GNU > /dev/null; then
22520 as_vers=`echo $as_ver | sed -n \
22521 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22522 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22523 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22524 if test $as_major -eq 2 && test $as_minor -lt 11
22525 then :
22526 else gcc_cv_as_leb128=yes
22527 fi
22528 fi
22529 else
22530 echo "configure: failed program was" >&5
22531 cat conftest.s >&5
22532 fi
22533 rm -f conftest.o conftest.s
22534 fi
22535 fi
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22537 $as_echo "$gcc_cv_as_leb128" >&6; }
22538 if test $gcc_cv_as_leb128 = yes; then
22539
22540 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22541
22542 fi
22543
22544 # Check if we have assembler support for unwind directives.
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22546 $as_echo_n "checking assembler for cfi directives... " >&6; }
22547 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 gcc_cv_as_cfi_directive=no
22551 if test x$gcc_cv_as != x; then
22552 $as_echo ' .text
22553 .cfi_startproc
22554 .cfi_offset 0, 0
22555 .cfi_same_value 1
22556 .cfi_def_cfa 1, 2
22557 .cfi_escape 1, 2, 3, 4, 5
22558 .cfi_endproc' > conftest.s
22559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22565 then
22566 case "$target" in
22567 *-*-solaris*)
22568 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22569 # read-only and read-write sections, we need to make sure that the
22570 # assembler used emits read-write .eh_frame sections.
22571 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22572 if test "x$gcc_cv_objdump" != x; then
22573 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22574 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22575 gcc_cv_as_cfi_directive=no
22576 else
22577 case "$target" in
22578 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22579 # On Solaris/x86, make sure that GCC and gas agree on using
22580 # read-only .eh_frame sections for 64-bit.
22581 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22582 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22583 sed -e /.eh_frame/!d -e N | \
22584 grep READONLY > /dev/null; then
22585 gcc_cv_as_cfi_directive=yes
22586 else
22587 gcc_cv_as_cfi_directive=no
22588 fi
22589 ;;
22590 *)
22591 gcc_cv_as_cfi_directive=yes
22592 ;;
22593 esac
22594 fi
22595 else
22596 # no objdump, err on the side of caution
22597 gcc_cv_as_cfi_directive=no
22598 fi
22599 else
22600 gcc_cv_as_cfi_directive=yes
22601 fi
22602 ;;
22603 *-*-*)
22604 gcc_cv_as_cfi_directive=yes
22605 ;;
22606 esac
22607 else
22608 echo "configure: failed program was" >&5
22609 cat conftest.s >&5
22610 fi
22611 rm -f conftest.o conftest.s
22612 fi
22613 fi
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22615 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22616
22617 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22619 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22620 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 gcc_cv_as_cfi_advance_working=no
22624 if test x$gcc_cv_as != x; then
22625 $as_echo ' .text
22626 .cfi_startproc
22627 .cfi_adjust_cfa_offset 64
22628 .skip 75040, 0
22629 .cfi_adjust_cfa_offset 128
22630 .cfi_endproc' > conftest.s
22631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22636 test $ac_status = 0; }; }
22637 then
22638
22639 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22640 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22641 gcc_cv_as_cfi_advance_working=yes
22642 fi
22643
22644 else
22645 echo "configure: failed program was" >&5
22646 cat conftest.s >&5
22647 fi
22648 rm -f conftest.o conftest.s
22649 fi
22650 fi
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22652 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22653
22654 else
22655 # no objdump, err on the side of caution
22656 gcc_cv_as_cfi_advance_working=no
22657 fi
22658
22659
22660 cat >>confdefs.h <<_ACEOF
22661 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22662 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22663 _ACEOF
22664
22665
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22668 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22669 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 gcc_cv_as_cfi_personality_directive=no
22673 if test x$gcc_cv_as != x; then
22674 $as_echo ' .text
22675 .cfi_startproc
22676 .cfi_personality 0, symbol
22677 .cfi_endproc' > conftest.s
22678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22684 then
22685 gcc_cv_as_cfi_personality_directive=yes
22686 else
22687 echo "configure: failed program was" >&5
22688 cat conftest.s >&5
22689 fi
22690 rm -f conftest.o conftest.s
22691 fi
22692 fi
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22694 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22695
22696
22697 cat >>confdefs.h <<_ACEOF
22698 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22699 then echo 1; else echo 0; fi`
22700 _ACEOF
22701
22702
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22704 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22705 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22707 else
22708 gcc_cv_as_cfi_sections_directive=no
22709 if test x$gcc_cv_as != x; then
22710 $as_echo ' .text
22711 .cfi_sections .debug_frame, .eh_frame
22712 .cfi_startproc
22713 .cfi_endproc' > conftest.s
22714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22719 test $ac_status = 0; }; }
22720 then
22721 case $target_os in
22722 win32 | pe | cygwin* | mingw32* | uwin*)
22723 # Need to check that we generated the correct relocation for the
22724 # .debug_frame section. This was fixed for binutils 2.21.
22725 gcc_cv_as_cfi_sections_directive=no
22726 if test "x$gcc_cv_objdump" != x; then
22727 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22728 grep secrel > /dev/null; then
22729 gcc_cv_as_cfi_sections_directive=yes
22730 fi
22731 fi
22732 ;;
22733 *)
22734 gcc_cv_as_cfi_sections_directive=yes
22735 ;;
22736 esac
22737 else
22738 echo "configure: failed program was" >&5
22739 cat conftest.s >&5
22740 fi
22741 rm -f conftest.o conftest.s
22742 fi
22743 fi
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22745 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22746
22747
22748
22749 cat >>confdefs.h <<_ACEOF
22750 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22751 then echo 1; else echo 0; fi`
22752 _ACEOF
22753
22754
22755 # GAS versions up to and including 2.11.0 may mis-optimize
22756 # .eh_frame data.
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22758 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22759 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22760 $as_echo_n "(cached) " >&6
22761 else
22762 gcc_cv_as_eh_frame=no
22763 if test $in_tree_gas = yes; then
22764 if test $in_tree_gas_is_elf = yes \
22765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22766 then gcc_cv_as_eh_frame=yes
22767 fi
22768 elif test x$gcc_cv_as != x; then
22769 $as_echo ' .text
22770 .LFB1:
22771 .4byte 0
22772 .L1:
22773 .4byte 0
22774 .LFE1:
22775 .section .eh_frame,"aw",@progbits
22776 __FRAME_BEGIN__:
22777 .4byte .LECIE1-.LSCIE1
22778 .LSCIE1:
22779 .4byte 0x0
22780 .byte 0x1
22781 .ascii "z\0"
22782 .byte 0x1
22783 .byte 0x78
22784 .byte 0x1a
22785 .byte 0x0
22786 .byte 0x4
22787 .4byte 1
22788 .p2align 1
22789 .LECIE1:
22790 .LSFDE1:
22791 .4byte .LEFDE1-.LASFDE1
22792 .LASFDE1:
22793 .4byte .LASFDE1-__FRAME_BEGIN__
22794 .4byte .LFB1
22795 .4byte .LFE1-.LFB1
22796 .byte 0x4
22797 .4byte .LFE1-.LFB1
22798 .byte 0x4
22799 .4byte .L1-.LFB1
22800 .LEFDE1:' > conftest.s
22801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }; }
22807 then
22808 cat > conftest.lit <<EOF
22809 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22810 0010 01000000 12000000 18000000 00000000 ................
22811 0020 08000000 04080000 0044 .........D
22812 EOF
22813 cat > conftest.big <<EOF
22814 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22815 0010 00000001 00000012 00000018 00000000 ................
22816 0020 00000008 04000000 0844 .........D
22817 EOF
22818 # If the assembler didn't choke, and we can objdump,
22819 # and we got the correct data, then succeed.
22820 # The text in the here-document typically retains its unix-style line
22821 # endings, while the output of objdump will use host line endings.
22822 # Therefore, use diff -b for the comparisons.
22823 if test x$gcc_cv_objdump != x \
22824 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22825 | tail -3 > conftest.got \
22826 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22827 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22828 then
22829 gcc_cv_as_eh_frame=yes
22830 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
22834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22835 test $ac_status = 0; }; }; then
22836 gcc_cv_as_eh_frame=buggy
22837 else
22838 # Uh oh, what do we do now?
22839 gcc_cv_as_eh_frame=no
22840 fi
22841 else
22842 echo "configure: failed program was" >&5
22843 cat conftest.s >&5
22844 fi
22845 rm -f conftest.o conftest.s
22846 fi
22847 fi
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22849 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22850
22851
22852 if test $gcc_cv_as_eh_frame = buggy; then
22853
22854 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22855
22856 fi
22857
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22859 $as_echo_n "checking assembler for section merging support... " >&6; }
22860 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22862 else
22863 gcc_cv_as_shf_merge=no
22864 if test $in_tree_gas = yes; then
22865 if test $in_tree_gas_is_elf = yes \
22866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22867 then gcc_cv_as_shf_merge=yes
22868 fi
22869 elif test x$gcc_cv_as != x; then
22870 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }; }
22877 then
22878 gcc_cv_as_shf_merge=yes
22879 else
22880 echo "configure: failed program was" >&5
22881 cat conftest.s >&5
22882 fi
22883 rm -f conftest.o conftest.s
22884 fi
22885 fi
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22887 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22888
22889 if test $gcc_cv_as_shf_merge = no; then
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22891 $as_echo_n "checking assembler for section merging support... " >&6; }
22892 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22894 else
22895 gcc_cv_as_shf_merge=no
22896 if test $in_tree_gas = yes; then
22897 if test $in_tree_gas_is_elf = yes \
22898 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22899 then gcc_cv_as_shf_merge=yes
22900 fi
22901 elif test x$gcc_cv_as != x; then
22902 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22908 test $ac_status = 0; }; }
22909 then
22910 gcc_cv_as_shf_merge=yes
22911 else
22912 echo "configure: failed program was" >&5
22913 cat conftest.s >&5
22914 fi
22915 rm -f conftest.o conftest.s
22916 fi
22917 fi
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22919 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22920
22921 fi
22922
22923 cat >>confdefs.h <<_ACEOF
22924 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22925 _ACEOF
22926
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22929 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22930 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22932 else
22933 gcc_cv_as_comdat_group=no
22934 if test $in_tree_gas = yes; then
22935 if test $in_tree_gas_is_elf = yes \
22936 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22937 then gcc_cv_as_comdat_group=yes
22938 fi
22939 elif test x$gcc_cv_as != x; then
22940 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946 test $ac_status = 0; }; }
22947 then
22948 gcc_cv_as_comdat_group=yes
22949 else
22950 echo "configure: failed program was" >&5
22951 cat conftest.s >&5
22952 fi
22953 rm -f conftest.o conftest.s
22954 fi
22955 fi
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22957 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22958
22959 if test $gcc_cv_as_comdat_group = yes; then
22960 gcc_cv_as_comdat_group_percent=no
22961 gcc_cv_as_comdat_group_group=no
22962 else
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22964 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22965 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22967 else
22968 gcc_cv_as_comdat_group_percent=no
22969 if test $in_tree_gas = yes; then
22970 if test $in_tree_gas_is_elf = yes \
22971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22972 then gcc_cv_as_comdat_group_percent=yes
22973 fi
22974 elif test x$gcc_cv_as != x; then
22975 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22981 test $ac_status = 0; }; }
22982 then
22983 gcc_cv_as_comdat_group_percent=yes
22984 else
22985 echo "configure: failed program was" >&5
22986 cat conftest.s >&5
22987 fi
22988 rm -f conftest.o conftest.s
22989 fi
22990 fi
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22992 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22993
22994 if test $gcc_cv_as_comdat_group_percent = yes; then
22995 gcc_cv_as_comdat_group_group=no
22996 else
22997 case "${target}" in
22998 # Sun as uses a completely different syntax.
22999 *-*-solaris2*)
23000 case "${target}" in
23001 sparc*-*-solaris2*)
23002 conftest_s='
23003 .group foo,".text%foo",#comdat
23004 .section ".text%foo", #alloc,#execinstr,#progbits
23005 .globl foo
23006 foo:
23007 '
23008 ;;
23009 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23010 conftest_s='
23011 .group foo,.text%foo,#comdat
23012 .section .text%foo, "ax", @progbits
23013 .globl foo
23014 foo:
23015 '
23016 ;;
23017 esac
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23019 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23020 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 gcc_cv_as_comdat_group_group=no
23024 if test x$gcc_cv_as != x; then
23025 $as_echo "$conftest_s" > conftest.s
23026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23031 test $ac_status = 0; }; }
23032 then
23033 gcc_cv_as_comdat_group_group=yes
23034 else
23035 echo "configure: failed program was" >&5
23036 cat conftest.s >&5
23037 fi
23038 rm -f conftest.o conftest.s
23039 fi
23040 fi
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23042 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23043
23044 ;;
23045 esac
23046 fi
23047 fi
23048 if test x"$ld_is_gold" = xyes; then
23049 comdat_group=yes
23050 elif test $in_tree_ld = yes ; then
23051 comdat_group=no
23052 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 \
23053 && test $in_tree_ld_is_elf = yes; then
23054 comdat_group=yes
23055 fi
23056 elif echo "$ld_ver" | grep GNU > /dev/null; then
23057 comdat_group=yes
23058 if test 0"$ld_date" -lt 20050308; then
23059 if test -n "$ld_date"; then
23060 # If there was date string, but was earlier than 2005-03-08, fail
23061 comdat_group=no
23062 elif test "$ld_vers_major" -lt 2; then
23063 comdat_group=no
23064 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23065 comdat_group=no
23066 fi
23067 fi
23068 else
23069 case "${target}" in
23070 *-*-solaris2.1[1-9]*)
23071 comdat_group=no
23072 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23073 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23074 # version 1.688.
23075 #
23076 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23077 # least ld version 1.2267.
23078 if test "$ld_vers_major" -gt 1; then
23079 comdat_group=yes
23080 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23081 comdat_group=yes
23082 elif test "$ld_vers_minor" -ge 2267; then
23083 comdat_group=yes
23084 fi
23085 ;;
23086 *)
23087 # Assume linkers other than GNU ld don't support COMDAT group.
23088 comdat_group=no
23089 ;;
23090 esac
23091 fi
23092 # Allow overriding the automatic COMDAT group tests above.
23093 # Check whether --enable-comdat was given.
23094 if test "${enable_comdat+set}" = set; then :
23095 enableval=$enable_comdat; comdat_group="$enable_comdat"
23096 fi
23097
23098 if test $comdat_group = no; then
23099 gcc_cv_as_comdat_group=no
23100 gcc_cv_as_comdat_group_percent=no
23101 gcc_cv_as_comdat_group_group=no
23102 fi
23103
23104 cat >>confdefs.h <<_ACEOF
23105 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23106 || test $gcc_cv_as_comdat_group_percent = yes \
23107 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23108 _ACEOF
23109
23110
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23112 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23113 if test "${gcc_cv_as_discriminator+set}" = set; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 gcc_cv_as_discriminator=no
23117 if test $in_tree_gas = yes; then
23118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23119 then gcc_cv_as_discriminator=yes
23120 fi
23121 elif test x$gcc_cv_as != x; then
23122 $as_echo ' .text
23123 .file 1 "conf.c"
23124 .loc 1 1 0 discriminator 1' > conftest.s
23125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23127 (eval $ac_try) 2>&5
23128 ac_status=$?
23129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23130 test $ac_status = 0; }; }
23131 then
23132 gcc_cv_as_discriminator=yes
23133 else
23134 echo "configure: failed program was" >&5
23135 cat conftest.s >&5
23136 fi
23137 rm -f conftest.o conftest.s
23138 fi
23139 fi
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23141 $as_echo "$gcc_cv_as_discriminator" >&6; }
23142 if test $gcc_cv_as_discriminator = yes; then
23143
23144 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23145
23146 fi
23147
23148 # Thread-local storage - the check is heavily parameterized.
23149 conftest_s=
23150 tls_first_major=
23151 tls_first_minor=
23152 tls_as_opt=
23153 case "$target" in
23154 alpha*-*-*)
23155 conftest_s='
23156 .section ".tdata","awT",@progbits
23157 foo: .long 25
23158 .text
23159 ldq $27,__tls_get_addr($29) !literal!1
23160 lda $16,foo($29) !tlsgd!1
23161 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23162 ldq $27,__tls_get_addr($29) !literal!2
23163 lda $16,foo($29) !tlsldm!2
23164 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23165 ldq $1,foo($29) !gotdtprel
23166 ldah $2,foo($29) !dtprelhi
23167 lda $3,foo($2) !dtprello
23168 lda $4,foo($29) !dtprel
23169 ldq $1,foo($29) !gottprel
23170 ldah $2,foo($29) !tprelhi
23171 lda $3,foo($2) !tprello
23172 lda $4,foo($29) !tprel'
23173 tls_first_major=2
23174 tls_first_minor=13
23175 tls_as_opt=--fatal-warnings
23176 ;;
23177 cris-*-*|crisv32-*-*)
23178 conftest_s='
23179 .section ".tdata","awT",@progbits
23180 x: .long 25
23181 .text
23182 move.d x:IE,$r10
23183 nop'
23184 tls_first_major=2
23185 tls_first_minor=20
23186 tls_as_opt=--fatal-warnings
23187 ;;
23188 frv*-*-*)
23189 conftest_s='
23190 .section ".tdata","awT",@progbits
23191 x: .long 25
23192 .text
23193 call #gettlsoff(x)'
23194 tls_first_major=2
23195 tls_first_minor=14
23196 ;;
23197 hppa*-*-linux*)
23198 conftest_s='
23199 t1: .reg %r20
23200 t2: .reg %r21
23201 gp: .reg %r19
23202 .section ".tdata","awT",@progbits
23203 foo: .long 25
23204 .text
23205 .align 4
23206 addil LT%foo-$tls_gdidx$,gp
23207 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23208 b __tls_get_addr
23209 nop
23210 addil LT%foo-$tls_ldidx$,gp
23211 b __tls_get_addr
23212 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23213 addil LR%foo-$tls_dtpoff$,%ret0
23214 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23215 mfctl %cr27,%t1
23216 addil LT%foo-$tls_ieoff$,gp
23217 ldw RT%foo-$tls_ieoff$(%r1),%t2
23218 add %t1,%t2,%t3
23219 mfctl %cr27,%t1
23220 addil LR%foo-$tls_leoff$,%t1
23221 ldo RR%foo-$tls_leoff$(%r1),%t2'
23222 tls_first_major=2
23223 tls_first_minor=15
23224 tls_as_opt=--fatal-warnings
23225 ;;
23226 arm*-*-*)
23227 conftest_s='
23228 .section ".tdata","awT",%progbits
23229 foo: .long 25
23230 .text
23231 .word foo(gottpoff)
23232 .word foo(tpoff)
23233 .word foo(tlsgd)
23234 .word foo(tlsldm)
23235 .word foo(tlsldo)'
23236 tls_first_major=2
23237 tls_first_minor=17
23238 ;;
23239 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23240 case "$target" in
23241 i[34567]86-*-solaris2.*)
23242 on_solaris=yes
23243 tga_func=___tls_get_addr
23244 ;;
23245 x86_64-*-solaris2.1[0-9]*)
23246 on_solaris=yes
23247 tga_func=__tls_get_addr
23248 ;;
23249 *)
23250 on_solaris=no
23251 ;;
23252 esac
23253 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23254 conftest_s='
23255 .section .tdata,"awt",@progbits'
23256 tls_first_major=0
23257 tls_first_minor=0
23258
23259 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23260
23261 else
23262 conftest_s='
23263 .section ".tdata","awT",@progbits'
23264 tls_first_major=2
23265 tls_first_minor=14
23266 tls_as_opt="--fatal-warnings"
23267 fi
23268 conftest_s="$conftest_s
23269 foo: .long 25
23270 .text
23271 movl %gs:0, %eax
23272 leal foo@tlsgd(,%ebx,1), %eax
23273 leal foo@tlsldm(%ebx), %eax
23274 leal foo@dtpoff(%eax), %edx
23275 movl foo@gottpoff(%ebx), %eax
23276 subl foo@gottpoff(%ebx), %eax
23277 addl foo@gotntpoff(%ebx), %eax
23278 movl foo@indntpoff, %eax
23279 movl \$foo@tpoff, %eax
23280 subl \$foo@tpoff, %eax
23281 leal foo@ntpoff(%ecx), %eax"
23282 ;;
23283 x86_64-*-*)
23284 conftest_s='
23285 .section ".tdata","awT",@progbits
23286 foo: .long 25
23287 .text
23288 movq %fs:0, %rax
23289 leaq foo@TLSGD(%rip), %rdi
23290 leaq foo@TLSLD(%rip), %rdi
23291 leaq foo@DTPOFF(%rax), %rdx
23292 movq foo@GOTTPOFF(%rip), %rax
23293 movq $foo@TPOFF, %rax'
23294 tls_first_major=2
23295 tls_first_minor=14
23296 tls_as_opt=--fatal-warnings
23297 ;;
23298 ia64-*-*)
23299 conftest_s='
23300 .section ".tdata","awT",@progbits
23301 foo: data8 25
23302 .text
23303 addl r16 = @ltoff(@dtpmod(foo#)), gp
23304 addl r17 = @ltoff(@dtprel(foo#)), gp
23305 addl r18 = @ltoff(@tprel(foo#)), gp
23306 addl r19 = @dtprel(foo#), gp
23307 adds r21 = @dtprel(foo#), r13
23308 movl r23 = @dtprel(foo#)
23309 addl r20 = @tprel(foo#), gp
23310 adds r22 = @tprel(foo#), r13
23311 movl r24 = @tprel(foo#)'
23312 tls_first_major=2
23313 tls_first_minor=13
23314 tls_as_opt=--fatal-warnings
23315 ;;
23316 mips*-*-*)
23317 conftest_s='
23318 .section .tdata,"awT",@progbits
23319 x:
23320 .word 2
23321 .text
23322 addiu $4, $28, %tlsgd(x)
23323 addiu $4, $28, %tlsldm(x)
23324 lui $4, %dtprel_hi(x)
23325 addiu $4, $4, %dtprel_lo(x)
23326 lw $4, %gottprel(x)($28)
23327 lui $4, %tprel_hi(x)
23328 addiu $4, $4, %tprel_lo(x)'
23329 tls_first_major=2
23330 tls_first_minor=16
23331 tls_as_opt='-32 --fatal-warnings'
23332 ;;
23333 m68k-*-*)
23334 conftest_s='
23335 .section .tdata,"awT",@progbits
23336 x:
23337 .word 2
23338 .text
23339 foo:
23340 move.l x@TLSGD(%a5),%a0
23341 move.l x@TLSLDM(%a5),%a0
23342 move.l x@TLSLDO(%a5),%a0
23343 move.l x@TLSIE(%a5),%a0
23344 move.l x@TLSLE(%a5),%a0'
23345 tls_first_major=2
23346 tls_first_minor=19
23347 tls_as_opt='--fatal-warnings'
23348 ;;
23349 powerpc-*-*)
23350 conftest_s='
23351 .section ".tdata","awT",@progbits
23352 .align 2
23353 ld0: .space 4
23354 ld1: .space 4
23355 x1: .space 4
23356 x2: .space 4
23357 x3: .space 4
23358 .text
23359 addi 3,31,ld0@got@tlsgd
23360 bl __tls_get_addr
23361 addi 3,31,x1@got@tlsld
23362 bl __tls_get_addr
23363 addi 9,3,x1@dtprel
23364 addis 9,3,x2@dtprel@ha
23365 addi 9,9,x2@dtprel@l
23366 lwz 9,x3@got@tprel(31)
23367 add 9,9,x@tls
23368 addi 9,2,x1@tprel
23369 addis 9,2,x2@tprel@ha
23370 addi 9,9,x2@tprel@l'
23371 tls_first_major=2
23372 tls_first_minor=14
23373 tls_as_opt="-a32 --fatal-warnings"
23374 ;;
23375 powerpc64-*-*)
23376 conftest_s='
23377 .section ".tdata","awT",@progbits
23378 .align 3
23379 ld0: .space 8
23380 ld1: .space 8
23381 x1: .space 8
23382 x2: .space 8
23383 x3: .space 8
23384 .text
23385 addi 3,2,ld0@got@tlsgd
23386 bl .__tls_get_addr
23387 nop
23388 addi 3,2,ld1@toc
23389 bl .__tls_get_addr
23390 nop
23391 addi 3,2,x1@got@tlsld
23392 bl .__tls_get_addr
23393 nop
23394 addi 9,3,x1@dtprel
23395 bl .__tls_get_addr
23396 nop
23397 addis 9,3,x2@dtprel@ha
23398 addi 9,9,x2@dtprel@l
23399 bl .__tls_get_addr
23400 nop
23401 ld 9,x3@got@dtprel(2)
23402 add 9,9,3
23403 bl .__tls_get_addr
23404 nop'
23405 tls_first_major=2
23406 tls_first_minor=14
23407 tls_as_opt="-a64 --fatal-warnings"
23408 ;;
23409 s390-*-*)
23410 conftest_s='
23411 .section ".tdata","awT",@progbits
23412 foo: .long 25
23413 .text
23414 .long foo@TLSGD
23415 .long foo@TLSLDM
23416 .long foo@DTPOFF
23417 .long foo@NTPOFF
23418 .long foo@GOTNTPOFF
23419 .long foo@INDNTPOFF
23420 l %r1,foo@GOTNTPOFF(%r12)
23421 l %r1,0(%r1):tls_load:foo
23422 bas %r14,0(%r1,%r13):tls_gdcall:foo
23423 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23424 tls_first_major=2
23425 tls_first_minor=14
23426 tls_as_opt="-m31 --fatal-warnings"
23427 ;;
23428 s390x-*-*)
23429 conftest_s='
23430 .section ".tdata","awT",@progbits
23431 foo: .long 25
23432 .text
23433 .quad foo@TLSGD
23434 .quad foo@TLSLDM
23435 .quad foo@DTPOFF
23436 .quad foo@NTPOFF
23437 .quad foo@GOTNTPOFF
23438 lg %r1,foo@GOTNTPOFF(%r12)
23439 larl %r1,foo@INDNTPOFF
23440 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23441 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23442 tls_first_major=2
23443 tls_first_minor=14
23444 tls_as_opt="-m64 -Aesame --fatal-warnings"
23445 ;;
23446 sh-*-* | sh[34]-*-*)
23447 conftest_s='
23448 .section ".tdata","awT",@progbits
23449 foo: .long 25
23450 .text
23451 .long foo@TLSGD
23452 .long foo@TLSLDM
23453 .long foo@DTPOFF
23454 .long foo@GOTTPOFF
23455 .long foo@TPOFF'
23456 tls_first_major=2
23457 tls_first_minor=13
23458 tls_as_opt=--fatal-warnings
23459 ;;
23460 sparc*-*-*)
23461 case "$target" in
23462 sparc*-sun-solaris2.*)
23463 on_solaris=yes
23464 tga_func=__tls_get_addr
23465 ;;
23466 *)
23467 on_solaris=no
23468 ;;
23469 esac
23470 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23471 conftest_s='
23472 .section ".tdata",#alloc,#write,#tls'
23473 tls_first_major=0
23474 tls_first_minor=0
23475 else
23476 conftest_s='
23477 .section ".tdata","awT",@progbits'
23478 tls_first_major=2
23479 tls_first_minor=14
23480 tls_as_opt="-32 --fatal-warnings"
23481 fi
23482 conftest_s="$conftest_s
23483 foo: .long 25
23484 .text
23485 sethi %tgd_hi22(foo), %o0
23486 add %o0, %tgd_lo10(foo), %o1
23487 add %l7, %o1, %o0, %tgd_add(foo)
23488 call __tls_get_addr, %tgd_call(foo)
23489 sethi %tldm_hi22(foo), %l1
23490 add %l1, %tldm_lo10(foo), %l2
23491 add %l7, %l2, %o0, %tldm_add(foo)
23492 call __tls_get_addr, %tldm_call(foo)
23493 sethi %tldo_hix22(foo), %l3
23494 xor %l3, %tldo_lox10(foo), %l4
23495 add %o0, %l4, %l5, %tldo_add(foo)
23496 sethi %tie_hi22(foo), %o3
23497 add %o3, %tie_lo10(foo), %o3
23498 ld [%l7 + %o3], %o2, %tie_ld(foo)
23499 add %g7, %o2, %o4, %tie_add(foo)
23500 sethi %tle_hix22(foo), %l1
23501 xor %l1, %tle_lox10(foo), %o5
23502 ld [%g7 + %o5], %o1"
23503 ;;
23504 tilepro*-*-*)
23505 conftest_s='
23506 .section ".tdata","awT",@progbits
23507 foo: .long 25
23508 .text
23509 addli r0, zero, tls_gd(foo)
23510 auli r0, zero, tls_gd_ha16(foo)
23511 addli r0, r0, tls_gd_lo16(foo)
23512 jal __tls_get_addr
23513 addli r0, zero, tls_ie(foo)
23514 auli r0, r0, tls_ie_ha16(foo)
23515 addli r0, r0, tls_ie_lo16(foo)'
23516 tls_first_major=2
23517 tls_first_minor=22
23518 tls_as_opt="--fatal-warnings"
23519 ;;
23520 tilegx*-*-*)
23521 conftest_s='
23522 .section ".tdata","awT",@progbits
23523 foo: .long 25
23524 .text
23525 shl16insli r0, zero, hw0_last_tls_gd(foo)
23526 shl16insli r0, zero, hw1_last_tls_gd(foo)
23527 shl16insli r0, r0, hw0_tls_gd(foo)
23528 jal __tls_get_addr
23529 shl16insli r0, zero, hw1_last_tls_ie(foo)
23530 shl16insli r0, r0, hw0_tls_ie(foo)'
23531 tls_first_major=2
23532 tls_first_minor=22
23533 tls_as_opt="--fatal-warnings"
23534 ;;
23535 xtensa*-*-*)
23536 conftest_s='
23537 .section ".tdata","awT",@progbits
23538 foo: .long 25
23539 .text
23540 movi a8, foo@TLSFUNC
23541 movi a10, foo@TLSARG
23542 callx8.tls a8, foo@TLSCALL'
23543 tls_first_major=2
23544 tls_first_minor=19
23545 ;;
23546 esac
23547 set_have_as_tls=no
23548 if test "x$enable_tls" = xno ; then
23549 : # TLS explicitly disabled.
23550 elif test "x$enable_tls" = xyes ; then
23551 set_have_as_tls=yes # TLS explicitly enabled.
23552 elif test -z "$tls_first_major"; then
23553 : # If we don't have a check, assume no support.
23554 else
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23556 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23557 if test "${gcc_cv_as_tls+set}" = set; then :
23558 $as_echo_n "(cached) " >&6
23559 else
23560 gcc_cv_as_tls=no
23561 if test $in_tree_gas = yes; then
23562 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23563 then gcc_cv_as_tls=yes
23564 fi
23565 elif test x$gcc_cv_as != x; then
23566 $as_echo "$conftest_s" > conftest.s
23567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572 test $ac_status = 0; }; }
23573 then
23574 gcc_cv_as_tls=yes
23575 else
23576 echo "configure: failed program was" >&5
23577 cat conftest.s >&5
23578 fi
23579 rm -f conftest.o conftest.s
23580 fi
23581 fi
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23583 $as_echo "$gcc_cv_as_tls" >&6; }
23584 if test $gcc_cv_as_tls = yes; then
23585 set_have_as_tls=yes
23586 fi
23587 fi
23588 case "$target" in
23589 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23590 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23591 # Sun style that Sun ld and GCC don't support any longer.
23592 *-*-solaris2.*)
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23594 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23595 ld_tls_support=no
23596 # Check ld and ld.so.1 TLS support.
23597 if echo "$ld_ver" | grep GNU > /dev/null; then
23598 # Assume all interesting versions of GNU ld have TLS support.
23599 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23600 ld_tls_support=yes
23601 else
23602 case "$target" in
23603 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23604 i?86-*-solaris2.9)
23605 min_tls_ld_vers_minor=374
23606 ;;
23607 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23608 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23609 min_tls_ld_vers_minor=343
23610 ;;
23611 esac
23612 if test "$ld_vers_major" -gt 1 || \
23613 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23614 ld_tls_support=yes
23615 else
23616 set_have_as_tls=no
23617 fi
23618 fi
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23620 $as_echo "$ld_tls_support" >&6; }
23621
23622 save_LIBS="$LIBS"
23623 save_LDFLAGS="$LDFLAGS"
23624 LIBS=
23625 LDFLAGS=
23626
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23628 $as_echo_n "checking library containing $tga_func... " >&6; }
23629 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23630 # (32-bit x86) only lived in libthread, so check for that. Keep
23631 # set_have_as_tls if found, disable if not.
23632 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23634 $as_echo_n "checking for library containing $tga_func... " >&6; }
23635 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638 ac_func_search_save_LIBS=$LIBS
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h. */
23641
23642 /* Override any GCC internal prototype to avoid an error.
23643 Use char because int might match the return type of a GCC
23644 builtin and then its argument prototype would still apply. */
23645 #ifdef __cplusplus
23646 extern "C"
23647 #endif
23648 char $tga_func ();
23649 int
23650 main ()
23651 {
23652 return $tga_func ();
23653 ;
23654 return 0;
23655 }
23656 _ACEOF
23657 for ac_lib in '' thread; do
23658 if test -z "$ac_lib"; then
23659 ac_res="none required"
23660 else
23661 ac_res=-l$ac_lib
23662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23663 fi
23664 if ac_fn_c_try_link "$LINENO"; then :
23665 eval "$as_ac_Search=\$ac_res"
23666 fi
23667 rm -f core conftest.err conftest.$ac_objext \
23668 conftest$ac_exeext
23669 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23670 break
23671 fi
23672 done
23673 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23674
23675 else
23676 eval "$as_ac_Search=no"
23677 fi
23678 rm conftest.$ac_ext
23679 LIBS=$ac_func_search_save_LIBS
23680 fi
23681 eval ac_res=\$$as_ac_Search
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23683 $as_echo "$ac_res" >&6; }
23684 eval ac_res=\$$as_ac_Search
23685 if test "$ac_res" != no; then :
23686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23687
23688 else
23689 set_have_as_tls=no
23690 fi
23691
23692 # Clear LIBS if we cannot support TLS.
23693 if test $set_have_as_tls = no; then
23694 LIBS=
23695 fi
23696 # Always define LIB_TLS_SPEC, even without TLS support.
23697
23698 cat >>confdefs.h <<_ACEOF
23699 #define LIB_TLS_SPEC "$LIBS"
23700 _ACEOF
23701
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23703 $as_echo "$LIBS" >&6; }
23704
23705 LIBS="$save_LIBS"
23706 LDFLAGS="$save_LDFLAGS"
23707 ;;
23708 esac
23709 if test $set_have_as_tls = yes ; then
23710
23711 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23712
23713 fi
23714
23715 # Target-specific assembler checks.
23716
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23718 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23719 gcc_cv_ld_static_dynamic=no
23720 gcc_cv_ld_static_option='-Bstatic'
23721 gcc_cv_ld_dynamic_option='-Bdynamic'
23722 if test $in_tree_ld = yes ; then
23723 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
23724 gcc_cv_ld_static_dynamic=yes
23725 fi
23726 elif test x$gcc_cv_ld != x; then
23727 # Check if linker supports -Bstatic/-Bdynamic option
23728 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23729 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23730 gcc_cv_ld_static_dynamic=yes
23731 else
23732 case "$target" in
23733 # HP-UX ld uses -a flags to select between shared and archive.
23734 *-*-hpux*)
23735 if test x"$gnu_ld" = xno; then
23736 gcc_cv_ld_static_dynamic=yes
23737 gcc_cv_ld_static_option="-aarchive_shared"
23738 gcc_cv_ld_dynamic_option="-adefault"
23739 fi
23740 ;;
23741 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23742 *-*-solaris2*)
23743 gcc_cv_ld_static_dynamic=yes
23744 ;;
23745 esac
23746 fi
23747 fi
23748 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23749
23750 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23751
23752
23753 cat >>confdefs.h <<_ACEOF
23754 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23755 _ACEOF
23756
23757
23758 cat >>confdefs.h <<_ACEOF
23759 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23760 _ACEOF
23761
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23764 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23765
23766 if test x"$demangler_in_ld" = xyes; then
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23768 $as_echo_n "checking linker --demangle support... " >&6; }
23769 gcc_cv_ld_demangle=no
23770 if test $in_tree_ld = yes; then
23771 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 \
23772 gcc_cv_ld_demangle=yes
23773 fi
23774 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23775 # Check if the GNU linker supports --demangle option
23776 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23777 gcc_cv_ld_demangle=yes
23778 fi
23779 fi
23780 if test x"$gcc_cv_ld_demangle" = xyes; then
23781
23782 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23783
23784 fi
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23786 $as_echo "$gcc_cv_ld_demangle" >&6; }
23787 fi
23788
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23790 $as_echo_n "checking linker plugin support... " >&6; }
23791 gcc_cv_lto_plugin=0
23792 if test -f liblto_plugin.la; then
23793 save_ld_ver="$ld_ver"
23794 save_ld_vers_major="$ld_vers_major"
23795 save_ld_vers_minor="$ld_vers_minor"
23796 save_ld_is_gold="$ld_is_gold"
23797
23798 ld_is_gold=no
23799
23800 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23801 ld_ver="GNU ld"
23802 # FIXME: ld_is_gold?
23803 ld_vers_major="$gcc_cv_gld_major_version"
23804 ld_vers_minor="$gcc_cv_gld_minor_version"
23805 else
23806 # Determine plugin linker version.
23807 # FIXME: Partial duplicate from above, generalize.
23808 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23809 if echo "$ld_ver" | grep GNU > /dev/null; then
23810 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23811 ld_is_gold=yes
23812 ld_vers=`echo $ld_ver | sed -n \
23813 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23814 else
23815 ld_vers=`echo $ld_ver | sed -n \
23816 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23817 fi
23818 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23819 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23820 fi
23821 fi
23822
23823 # Determine plugin support.
23824 if echo "$ld_ver" | grep GNU > /dev/null; then
23825 # Require GNU ld or gold 2.21+ for plugin support by default.
23826 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23827 gcc_cv_lto_plugin=2
23828 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23829 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23830 gcc_cv_lto_plugin=1
23831 fi
23832 fi
23833
23834 ld_ver="$save_ld_ver"
23835 ld_vers_major="$save_ld_vers_major"
23836 ld_vers_minor="$save_ld_vers_minor"
23837 ld_is_gold="$save_ld_is_gold"
23838 fi
23839
23840 cat >>confdefs.h <<_ACEOF
23841 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23842 _ACEOF
23843
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23845 $as_echo "$gcc_cv_lto_plugin" >&6; }
23846
23847 case "$target" in
23848 # All TARGET_ABI_OSF targets.
23849 alpha*-*-linux* | alpha*-*-*bsd*)
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23851 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23852 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23853 $as_echo_n "(cached) " >&6
23854 else
23855 gcc_cv_as_alpha_explicit_relocs=no
23856 if test $in_tree_gas = yes; then
23857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23858 then gcc_cv_as_alpha_explicit_relocs=yes
23859 fi
23860 elif test x$gcc_cv_as != x; then
23861 $as_echo ' .set nomacro
23862 .text
23863 extbl $3, $2, $3 !lituse_bytoff!1
23864 ldq $2, a($29) !literal!1
23865 ldq $4, b($29) !literal!2
23866 ldq_u $3, 0($2) !lituse_base!1
23867 ldq $27, f($29) !literal!5
23868 jsr $26, ($27), f !lituse_jsr!5
23869 ldah $29, 0($26) !gpdisp!3
23870 lda $0, c($29) !gprel
23871 ldah $1, d($29) !gprelhigh
23872 lda $1, d($1) !gprellow
23873 lda $29, 0($29) !gpdisp!3' > conftest.s
23874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23876 (eval $ac_try) 2>&5
23877 ac_status=$?
23878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23879 test $ac_status = 0; }; }
23880 then
23881 gcc_cv_as_alpha_explicit_relocs=yes
23882 else
23883 echo "configure: failed program was" >&5
23884 cat conftest.s >&5
23885 fi
23886 rm -f conftest.o conftest.s
23887 fi
23888 fi
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23890 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23891 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23892
23893 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23894
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23897 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23898 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23899 $as_echo_n "(cached) " >&6
23900 else
23901 gcc_cv_as_alpha_jsrdirect_relocs=no
23902 if test $in_tree_gas = yes; then
23903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23904 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23905 fi
23906 elif test x$gcc_cv_as != x; then
23907 $as_echo ' .set nomacro
23908 .text
23909 ldq $27, a($29) !literal!1
23910 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }
23917 then
23918 gcc_cv_as_alpha_jsrdirect_relocs=yes
23919 else
23920 echo "configure: failed program was" >&5
23921 cat conftest.s >&5
23922 fi
23923 rm -f conftest.o conftest.s
23924 fi
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23927 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23928 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23929
23930 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23931
23932 fi
23933 ;;
23934
23935 cris-*-*)
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23937 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23938 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23940 else
23941 gcc_cv_as_cris_no_mul_bug=no
23942 if test $in_tree_gas = yes; then
23943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23944 then gcc_cv_as_cris_no_mul_bug=yes
23945 fi
23946 elif test x$gcc_cv_as != x; then
23947 $as_echo '.text' > conftest.s
23948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23954 then
23955 gcc_cv_as_cris_no_mul_bug=yes
23956 else
23957 echo "configure: failed program was" >&5
23958 cat conftest.s >&5
23959 fi
23960 rm -f conftest.o conftest.s
23961 fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23964 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23965 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23966
23967 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23968
23969 fi
23970 ;;
23971
23972 sparc*-*-*)
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23974 $as_echo_n "checking assembler for .register... " >&6; }
23975 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23976 $as_echo_n "(cached) " >&6
23977 else
23978 gcc_cv_as_sparc_register_op=no
23979 if test x$gcc_cv_as != x; then
23980 $as_echo '.register %g2, #scratch' > conftest.s
23981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23986 test $ac_status = 0; }; }
23987 then
23988 gcc_cv_as_sparc_register_op=yes
23989 else
23990 echo "configure: failed program was" >&5
23991 cat conftest.s >&5
23992 fi
23993 rm -f conftest.o conftest.s
23994 fi
23995 fi
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23997 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23998 if test $gcc_cv_as_sparc_register_op = yes; then
23999
24000 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24001
24002 fi
24003
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24005 $as_echo_n "checking assembler for -relax option... " >&6; }
24006 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009 gcc_cv_as_sparc_relax=no
24010 if test x$gcc_cv_as != x; then
24011 $as_echo '.text' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24019 gcc_cv_as_sparc_relax=yes
24020 else
24021 echo "configure: failed program was" >&5
24022 cat conftest.s >&5
24023 fi
24024 rm -f conftest.o conftest.s
24025 fi
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24028 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24029 if test $gcc_cv_as_sparc_relax = yes; then
24030
24031 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24032
24033 fi
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24036 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24037 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_sparc_gotdata_op=no
24041 if test x$gcc_cv_as != x; then
24042 $as_echo '.text
24043 .align 4
24044 foo:
24045 nop
24046 bar:
24047 sethi %gdop_hix22(foo), %g1
24048 xor %g1, %gdop_lox10(foo), %g1
24049 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24052 (eval $ac_try) 2>&5
24053 ac_status=$?
24054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24055 test $ac_status = 0; }; }
24056 then
24057 if test x$gcc_cv_ld != x \
24058 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24059 if test x$gcc_cv_objdump != x; then
24060 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24061 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24062 gcc_cv_as_sparc_gotdata_op=no
24063 else
24064 gcc_cv_as_sparc_gotdata_op=yes
24065 fi
24066 fi
24067 fi
24068 rm -f conftest
24069 else
24070 echo "configure: failed program was" >&5
24071 cat conftest.s >&5
24072 fi
24073 rm -f conftest.o conftest.s
24074 fi
24075 fi
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24077 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24078 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24079
24080 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24081
24082 fi
24083
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24085 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24086 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24087 $as_echo_n "(cached) " >&6
24088 else
24089 gcc_cv_as_sparc_ua_pcrel=no
24090 if test x$gcc_cv_as != x; then
24091 $as_echo '.text
24092 foo:
24093 nop
24094 .data
24095 .align 4
24096 .byte 0
24097 .uaword %r_disp32(foo)' > conftest.s
24098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; }
24104 then
24105 if test x$gcc_cv_ld != x \
24106 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24107 gcc_cv_as_sparc_ua_pcrel=yes
24108 fi
24109 rm -f conftest
24110 else
24111 echo "configure: failed program was" >&5
24112 cat conftest.s >&5
24113 fi
24114 rm -f conftest.o conftest.s
24115 fi
24116 fi
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24118 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24119 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24120
24121 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24122
24123
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24125 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24126 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24127 $as_echo_n "(cached) " >&6
24128 else
24129 gcc_cv_as_sparc_ua_pcrel_hidden=no
24130 if test x$gcc_cv_as != x; then
24131 $as_echo '.data
24132 .align 4
24133 .byte 0x31
24134 .uaword %r_disp32(foo)
24135 .byte 0x32, 0x33, 0x34
24136 .global foo
24137 .hidden foo
24138 foo:
24139 .skip 4' > conftest.s
24140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24142 (eval $ac_try) 2>&5
24143 ac_status=$?
24144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24145 test $ac_status = 0; }; }
24146 then
24147 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24148 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24149 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24150 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24151 if $gcc_cv_objdump -R conftest 2> /dev/null \
24152 | grep 'DISP32' > /dev/null 2>&1; then
24153 :
24154 else
24155 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24156 fi
24157 fi
24158 rm -f conftest
24159 else
24160 echo "configure: failed program was" >&5
24161 cat conftest.s >&5
24162 fi
24163 rm -f conftest.o conftest.s
24164 fi
24165 fi
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24167 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24168 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24169
24170 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24171
24172 fi
24173
24174 fi # unaligned pcrel relocs
24175
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24177 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24178 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24180 else
24181 gcc_cv_as_sparc_offsetable_lo10=no
24182 if test x$gcc_cv_as != x; then
24183 $as_echo '.text
24184 or %g1, %lo(ab) + 12, %g1
24185 or %g1, %lo(ab + 12), %g1' > conftest.s
24186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24192 then
24193 if test x$gcc_cv_objdump != x \
24194 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24195 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24196 gcc_cv_as_sparc_offsetable_lo10=yes
24197 fi
24198 else
24199 echo "configure: failed program was" >&5
24200 cat conftest.s >&5
24201 fi
24202 rm -f conftest.o conftest.s
24203 fi
24204 fi
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24206 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24207 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24208
24209 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24210
24211 fi
24212
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24214 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24215 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24216 $as_echo_n "(cached) " >&6
24217 else
24218 gcc_cv_as_sparc_fmaf=no
24219 if test x$gcc_cv_as != x; then
24220 $as_echo '.text
24221 .register %g2, #scratch
24222 .register %g3, #scratch
24223 .align 4
24224 fmaddd %f0, %f2, %f4, %f6
24225 addxccc %g1, %g2, %g3
24226 fsrl32 %f2, %f4, %f8
24227 fnaddd %f10, %f12, %f14' > conftest.s
24228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24233 test $ac_status = 0; }; }
24234 then
24235 gcc_cv_as_sparc_fmaf=yes
24236 else
24237 echo "configure: failed program was" >&5
24238 cat conftest.s >&5
24239 fi
24240 rm -f conftest.o conftest.s
24241 fi
24242 fi
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24244 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24245 if test $gcc_cv_as_sparc_fmaf = yes; then
24246
24247 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24248
24249 fi
24250 ;;
24251
24252 i[34567]86-*-* | x86_64-*-*)
24253 case $target_os in
24254 cygwin*)
24255 # Full C++ conformance when using a shared libstdc++-v3 requires some
24256 # support from the Cygwin DLL, which in more recent versions exports
24257 # wrappers to aid in interposing and redirecting operators new, delete,
24258 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24259 # are configuring for a version of Cygwin that exports the wrappers.
24260 if test x$host = x$target; then
24261 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24262 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24263 gcc_ac_cygwin_dll_wrappers=yes
24264 else
24265 gcc_ac_cygwin_dll_wrappers=no
24266 fi
24267
24268 else
24269 # Can't check presence of libc functions during cross-compile, so
24270 # we just have to assume we're building for an up-to-date target.
24271 gcc_ac_cygwin_dll_wrappers=yes
24272 fi
24273
24274 cat >>confdefs.h <<_ACEOF
24275 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24276 _ACEOF
24277
24278 esac
24279 case $target_os in
24280 cygwin* | pe | mingw32* | interix*)
24281 # Recent binutils allows the three-operand form of ".comm" on PE. This
24282 # definition is used unconditionally to initialise the default state of
24283 # the target option variable that governs usage of the feature.
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24285 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24286 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24287 $as_echo_n "(cached) " >&6
24288 else
24289 gcc_cv_as_comm_has_align=no
24290 if test $in_tree_gas = yes; then
24291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24292 then gcc_cv_as_comm_has_align=yes
24293 fi
24294 elif test x$gcc_cv_as != x; then
24295 $as_echo '.comm foo,1,32' > conftest.s
24296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24298 (eval $ac_try) 2>&5
24299 ac_status=$?
24300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24301 test $ac_status = 0; }; }
24302 then
24303 gcc_cv_as_comm_has_align=yes
24304 else
24305 echo "configure: failed program was" >&5
24306 cat conftest.s >&5
24307 fi
24308 rm -f conftest.o conftest.s
24309 fi
24310 fi
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24312 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24313
24314
24315 cat >>confdefs.h <<_ACEOF
24316 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24317 _ACEOF
24318
24319 # Used for DWARF 2 in PE
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24321 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24322 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 gcc_cv_as_ix86_pe_secrel32=no
24326 if test $in_tree_gas = yes; then
24327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24328 then gcc_cv_as_ix86_pe_secrel32=yes
24329 fi
24330 elif test x$gcc_cv_as != x; then
24331 $as_echo '.text
24332 foo: nop
24333 .data
24334 .secrel32 foo' > conftest.s
24335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24341 then
24342 if test x$gcc_cv_ld != x \
24343 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24344 gcc_cv_as_ix86_pe_secrel32=yes
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_ix86_pe_secrel32" >&5
24355 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24356 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24357
24358 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24359
24360 fi
24361 # Test if the assembler supports the extended form of the .section
24362 # directive that specifies section alignment. LTO support uses this,
24363 # but normally only after installation, so we warn but don't fail the
24364 # configure if LTO is enabled but the assembler does not support it.
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24366 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24367 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24369 else
24370 gcc_cv_as_section_has_align=no
24371 if test $in_tree_gas = yes; then
24372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24373 then gcc_cv_as_section_has_align=yes
24374 fi
24375 elif test x$gcc_cv_as != x; then
24376 $as_echo '.section lto_test,"dr0"' > conftest.s
24377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24383 then
24384 gcc_cv_as_section_has_align=yes
24385 else
24386 echo "configure: failed program was" >&5
24387 cat conftest.s >&5
24388 fi
24389 rm -f conftest.o conftest.s
24390 fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24393 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24394
24395 if test x$gcc_cv_as_section_has_align != xyes; then
24396 case ",$enable_languages," in
24397 *,lto,*)
24398 { $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
24399 $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;}
24400 ;;
24401 esac
24402 fi
24403 # Test if the assembler supports the section flag 'e' for specifying
24404 # an excluded section.
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24406 $as_echo_n "checking assembler for .section with e... " >&6; }
24407 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_section_has_e=no
24411 if test $in_tree_gas = yes; then
24412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24413 then gcc_cv_as_section_has_e=yes
24414 fi
24415 elif test x$gcc_cv_as != x; then
24416 $as_echo '.section foo1,"e"
24417 .byte 0,0,0,0' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 gcc_cv_as_section_has_e=yes
24426 else
24427 echo "configure: failed program was" >&5
24428 cat conftest.s >&5
24429 fi
24430 rm -f conftest.o conftest.s
24431 fi
24432 fi
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24434 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24435
24436
24437 cat >>confdefs.h <<_ACEOF
24438 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24439 _ACEOF
24440
24441 ;;
24442 esac
24443
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24445 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24446 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24448 else
24449 gcc_cv_as_ix86_filds=no
24450 if test x$gcc_cv_as != x; then
24451 $as_echo 'filds mem; fists mem' > conftest.s
24452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24454 (eval $ac_try) 2>&5
24455 ac_status=$?
24456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24457 test $ac_status = 0; }; }
24458 then
24459 gcc_cv_as_ix86_filds=yes
24460 else
24461 echo "configure: failed program was" >&5
24462 cat conftest.s >&5
24463 fi
24464 rm -f conftest.o conftest.s
24465 fi
24466 fi
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24468 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24469 if test $gcc_cv_as_ix86_filds = yes; then
24470
24471 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24472
24473 fi
24474
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24476 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24477 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24478 $as_echo_n "(cached) " >&6
24479 else
24480 gcc_cv_as_ix86_fildq=no
24481 if test x$gcc_cv_as != x; then
24482 $as_echo 'fildq mem; fistpq mem' > conftest.s
24483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24488 test $ac_status = 0; }; }
24489 then
24490 gcc_cv_as_ix86_fildq=yes
24491 else
24492 echo "configure: failed program was" >&5
24493 cat conftest.s >&5
24494 fi
24495 rm -f conftest.o conftest.s
24496 fi
24497 fi
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24499 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24500 if test $gcc_cv_as_ix86_fildq = yes; then
24501
24502 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24503
24504 fi
24505
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24507 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24508 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_ix86_cmov_sun_syntax=no
24512 if test x$gcc_cv_as != x; then
24513 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24520 then
24521 gcc_cv_as_ix86_cmov_sun_syntax=yes
24522 else
24523 echo "configure: failed program was" >&5
24524 cat conftest.s >&5
24525 fi
24526 rm -f conftest.o conftest.s
24527 fi
24528 fi
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24530 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24531 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24532
24533 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24534
24535 fi
24536
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24538 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24539 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 gcc_cv_as_ix86_ffreep=no
24543 if test x$gcc_cv_as != x; then
24544 $as_echo 'ffreep %st(1)' > conftest.s
24545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24551 then
24552 gcc_cv_as_ix86_ffreep=yes
24553 else
24554 echo "configure: failed program was" >&5
24555 cat conftest.s >&5
24556 fi
24557 rm -f conftest.o conftest.s
24558 fi
24559 fi
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24561 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24562 if test $gcc_cv_as_ix86_ffreep = yes; then
24563
24564 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24565
24566 fi
24567
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24569 $as_echo_n "checking assembler for .quad directive... " >&6; }
24570 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_ix86_quad=no
24574 if test x$gcc_cv_as != x; then
24575 $as_echo '.quad 0' > conftest.s
24576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }
24582 then
24583 gcc_cv_as_ix86_quad=yes
24584 else
24585 echo "configure: failed program was" >&5
24586 cat conftest.s >&5
24587 fi
24588 rm -f conftest.o conftest.s
24589 fi
24590 fi
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24592 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24593 if test $gcc_cv_as_ix86_quad = yes; then
24594
24595 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24596
24597 fi
24598
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24600 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24601 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 gcc_cv_as_ix86_sahf=no
24605 if test x$gcc_cv_as != x; then
24606 $as_echo '.code64
24607 sahf' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_ix86_sahf=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24619 fi
24620 rm -f conftest.o conftest.s
24621 fi
24622 fi
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24624 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24625 if test $gcc_cv_as_ix86_sahf = yes; then
24626
24627 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24628
24629 fi
24630
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24632 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24633 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_ix86_hle=no
24637 if test x$gcc_cv_as != x; then
24638 $as_echo '.code64
24639 lock xacquire cmpxchg %esi, (%rcx)
24640 ' > conftest.s
24641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24644 ac_status=$?
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24647 then
24648 gcc_cv_as_ix86_hle=yes
24649 else
24650 echo "configure: failed program was" >&5
24651 cat conftest.s >&5
24652 fi
24653 rm -f conftest.o conftest.s
24654 fi
24655 fi
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24657 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24658 if test $gcc_cv_as_ix86_hle = yes; then
24659
24660 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24661
24662 fi
24663
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24665 $as_echo_n "checking assembler for swap suffix... " >&6; }
24666 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24668 else
24669 gcc_cv_as_ix86_swap=no
24670 if test x$gcc_cv_as != x; then
24671 $as_echo 'movl.s %esp, %ebp' > conftest.s
24672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24677 test $ac_status = 0; }; }
24678 then
24679 gcc_cv_as_ix86_swap=yes
24680 else
24681 echo "configure: failed program was" >&5
24682 cat conftest.s >&5
24683 fi
24684 rm -f conftest.o conftest.s
24685 fi
24686 fi
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24688 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24689 if test $gcc_cv_as_ix86_swap = yes; then
24690
24691 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24692
24693 fi
24694
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24696 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24697 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24698 $as_echo_n "(cached) " >&6
24699 else
24700 gcc_cv_as_ix86_diff_sect_delta=no
24701 if test x$gcc_cv_as != x; then
24702 $as_echo '.section .rodata
24703 .L1:
24704 .long .L2-.L1
24705 .long .L3-.L1
24706 .text
24707 .L3: nop
24708 .L2: nop' > conftest.s
24709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24711 (eval $ac_try) 2>&5
24712 ac_status=$?
24713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24714 test $ac_status = 0; }; }
24715 then
24716 gcc_cv_as_ix86_diff_sect_delta=yes
24717 else
24718 echo "configure: failed program was" >&5
24719 cat conftest.s >&5
24720 fi
24721 rm -f conftest.o conftest.s
24722 fi
24723 fi
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24725 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24726 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24727
24728 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24729
24730 fi
24731
24732 # These two are used unconditionally by i386.[ch]; it is to be defined
24733 # to 1 if the feature is present, 0 otherwise.
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24735 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24736 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 gcc_cv_as_ix86_gotoff_in_data=no
24740 if test $in_tree_gas = yes; then
24741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24742 then gcc_cv_as_ix86_gotoff_in_data=yes
24743 fi
24744 elif test x$gcc_cv_as != x; then
24745 $as_echo ' .text
24746 .L0:
24747 nop
24748 .data
24749 .long .L0@GOTOFF' > 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_gotoff_in_data=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_gotoff_in_data" >&5
24766 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24767
24768
24769 cat >>confdefs.h <<_ACEOF
24770 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24771 _ACEOF
24772
24773
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24775 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24776 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24777 $as_echo_n "(cached) " >&6
24778 else
24779 gcc_cv_as_ix86_rep_lock_prefix=no
24780 if test x$gcc_cv_as != x; then
24781 $as_echo 'rep movsl
24782 lock addl %edi, (%eax,%esi)
24783 lock orl $0, (%esp)' > conftest.s
24784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789 test $ac_status = 0; }; }
24790 then
24791 gcc_cv_as_ix86_rep_lock_prefix=yes
24792 else
24793 echo "configure: failed program was" >&5
24794 cat conftest.s >&5
24795 fi
24796 rm -f conftest.o conftest.s
24797 fi
24798 fi
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24800 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24801 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24802
24803 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24804
24805 fi
24806
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24808 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24809 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_ix86_tlsgdplt=no
24813 if test x$gcc_cv_as != x; then
24814 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24821 then
24822 if test x$gcc_cv_ld != x \
24823 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24824 gcc_cv_as_ix86_tlsgdplt=yes
24825 fi
24826 rm -f conftest
24827 else
24828 echo "configure: failed program was" >&5
24829 cat conftest.s >&5
24830 fi
24831 rm -f conftest.o conftest.s
24832 fi
24833 fi
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24835 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24836 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24837
24838 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24839
24840 fi
24841
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24843 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24844 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24846 else
24847 gcc_cv_as_ix86_tlsldmplt=no
24848 if test x$gcc_cv_as != x; then
24849 $as_echo 'tls_ld:
24850 call tls_ld@tlsldmplt' > conftest.s
24851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24856 test $ac_status = 0; }; }
24857 then
24858 if test x$gcc_cv_ld != x \
24859 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24860 gcc_cv_as_ix86_tlsldmplt=yes
24861 fi
24862 rm -f conftest
24863 else
24864 echo "configure: failed program was" >&5
24865 cat conftest.s >&5
24866 fi
24867 rm -f conftest.o conftest.s
24868 fi
24869 fi
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24871 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24872 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24873
24874 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24875
24876 fi
24877
24878 ;;
24879
24880 ia64*-*-*)
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24882 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24883 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24885 else
24886 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24887 if test $in_tree_gas = yes; then
24888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24889 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24890 fi
24891 elif test x$gcc_cv_as != x; then
24892 $as_echo ' .text
24893 addl r15 = @ltoffx(x#), gp
24894 ;;
24895 ld8.mov r16 = [r15], x#' > conftest.s
24896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24899 ac_status=$?
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; }
24902 then
24903 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24904 else
24905 echo "configure: failed program was" >&5
24906 cat conftest.s >&5
24907 fi
24908 rm -f conftest.o conftest.s
24909 fi
24910 fi
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24912 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24913 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24914
24915 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24916
24917 fi
24918
24919 ;;
24920
24921 powerpc*-*-*)
24922 case $target in
24923 *-*-aix*) conftest_s=' .machine "pwr5"
24924 .csect .text[PR]
24925 mfcr 3,128';;
24926 *-*-darwin*)
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24928 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24929 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24930 $as_echo_n "(cached) " >&6
24931 else
24932 gcc_cv_as_machine_directive=no
24933 if test x$gcc_cv_as != x; then
24934 $as_echo ' .machine ppc7400' > conftest.s
24935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24941 then
24942 gcc_cv_as_machine_directive=yes
24943 else
24944 echo "configure: failed program was" >&5
24945 cat conftest.s >&5
24946 fi
24947 rm -f conftest.o conftest.s
24948 fi
24949 fi
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24951 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24952
24953 if test x$gcc_cv_as_machine_directive != xyes; then
24954 echo "*** This target requires an assembler supporting \".machine\"" >&2
24955 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24956 test x$build = x$target && exit 1
24957 fi
24958 conftest_s=' .text
24959 mfcr r3,128';;
24960 *) conftest_s=' .machine power4
24961 .text
24962 mfcr 3,128';;
24963 esac
24964
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24966 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24967 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 gcc_cv_as_powerpc_mfcrf=no
24971 if test $in_tree_gas = yes; then
24972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24973 then gcc_cv_as_powerpc_mfcrf=yes
24974 fi
24975 elif test x$gcc_cv_as != x; then
24976 $as_echo "$conftest_s" > conftest.s
24977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24982 test $ac_status = 0; }; }
24983 then
24984 gcc_cv_as_powerpc_mfcrf=yes
24985 else
24986 echo "configure: failed program was" >&5
24987 cat conftest.s >&5
24988 fi
24989 rm -f conftest.o conftest.s
24990 fi
24991 fi
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24993 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24994 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24995
24996 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24997
24998 fi
24999
25000 case $target in
25001 *-*-aix*) conftest_s=' .machine "pwr5"
25002 .csect .text[PR]
25003 popcntb 3,3';;
25004 *) conftest_s=' .machine power5
25005 .text
25006 popcntb 3,3';;
25007 esac
25008
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25010 $as_echo_n "checking assembler for popcntb support... " >&6; }
25011 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25012 $as_echo_n "(cached) " >&6
25013 else
25014 gcc_cv_as_powerpc_popcntb=no
25015 if test $in_tree_gas = yes; then
25016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25017 then gcc_cv_as_powerpc_popcntb=yes
25018 fi
25019 elif test x$gcc_cv_as != x; then
25020 $as_echo "$conftest_s" > conftest.s
25021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026 test $ac_status = 0; }; }
25027 then
25028 gcc_cv_as_powerpc_popcntb=yes
25029 else
25030 echo "configure: failed program was" >&5
25031 cat conftest.s >&5
25032 fi
25033 rm -f conftest.o conftest.s
25034 fi
25035 fi
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25037 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25038 if test $gcc_cv_as_powerpc_popcntb = yes; then
25039
25040 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25041
25042 fi
25043
25044 case $target in
25045 *-*-aix*) conftest_s=' .machine "pwr5x"
25046 .csect .text[PR]
25047 frin 1,1';;
25048 *) conftest_s=' .machine power5
25049 .text
25050 frin 1,1';;
25051 esac
25052
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25054 $as_echo_n "checking assembler for fp round support... " >&6; }
25055 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 gcc_cv_as_powerpc_fprnd=no
25059 if test $in_tree_gas = yes; then
25060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25061 then gcc_cv_as_powerpc_fprnd=yes
25062 fi
25063 elif test x$gcc_cv_as != x; then
25064 $as_echo "$conftest_s" > conftest.s
25065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; }
25071 then
25072 gcc_cv_as_powerpc_fprnd=yes
25073 else
25074 echo "configure: failed program was" >&5
25075 cat conftest.s >&5
25076 fi
25077 rm -f conftest.o conftest.s
25078 fi
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25081 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25082 if test $gcc_cv_as_powerpc_fprnd = yes; then
25083
25084 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25085
25086 fi
25087
25088 case $target in
25089 *-*-aix*) conftest_s=' .machine "pwr6"
25090 .csect .text[PR]
25091 mffgpr 1,3';;
25092 *) conftest_s=' .machine power6
25093 .text
25094 mffgpr 1,3';;
25095 esac
25096
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25098 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25099 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25100 $as_echo_n "(cached) " >&6
25101 else
25102 gcc_cv_as_powerpc_mfpgpr=no
25103 if test $in_tree_gas = yes; then
25104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25105 then gcc_cv_as_powerpc_mfpgpr=yes
25106 fi
25107 elif test x$gcc_cv_as != x; then
25108 $as_echo "$conftest_s" > conftest.s
25109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25115 then
25116 gcc_cv_as_powerpc_mfpgpr=yes
25117 else
25118 echo "configure: failed program was" >&5
25119 cat conftest.s >&5
25120 fi
25121 rm -f conftest.o conftest.s
25122 fi
25123 fi
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25125 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25126 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25127
25128 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25129
25130 fi
25131
25132 case $target in
25133 *-*-aix*) conftest_s=' .csect .text[PR]
25134 LCF..0:
25135 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25136 *-*-darwin*)
25137 conftest_s=' .text
25138 LCF0:
25139 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25140 *) conftest_s=' .text
25141 .LCF0:
25142 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25143 esac
25144
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25146 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25147 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_powerpc_rel16=no
25151 if test $in_tree_gas = yes; then
25152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25153 then gcc_cv_as_powerpc_rel16=yes
25154 fi
25155 elif test x$gcc_cv_as != x; then
25156 $as_echo "$conftest_s" > conftest.s
25157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162 test $ac_status = 0; }; }
25163 then
25164 gcc_cv_as_powerpc_rel16=yes
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_powerpc_rel16" >&5
25173 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25174 if test $gcc_cv_as_powerpc_rel16 = yes; then
25175
25176 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25177
25178 fi
25179
25180 case $target in
25181 *-*-aix*) conftest_s=' .machine "pwr6"
25182 .csect .text[PR]
25183 cmpb 3,4,5';;
25184 *) conftest_s=' .machine power6
25185 .text
25186 cmpb 3,4,5';;
25187 esac
25188
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25190 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25191 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 gcc_cv_as_powerpc_cmpb=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25197 then gcc_cv_as_powerpc_cmpb=yes
25198 fi
25199 elif test x$gcc_cv_as != x; then
25200 $as_echo "$conftest_s" > conftest.s
25201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }
25207 then
25208 gcc_cv_as_powerpc_cmpb=yes
25209 else
25210 echo "configure: failed program was" >&5
25211 cat conftest.s >&5
25212 fi
25213 rm -f conftest.o conftest.s
25214 fi
25215 fi
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25217 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25218 if test $gcc_cv_as_powerpc_cmpb = yes; then
25219
25220 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25221
25222 fi
25223
25224 case $target in
25225 *-*-aix*) conftest_s=' .machine "pwr6"
25226 .csect .text[PR]
25227 dadd 1,2,3';;
25228 *) conftest_s=' .machine power6
25229 .text
25230 dadd 1,2,3';;
25231 esac
25232
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25234 $as_echo_n "checking assembler for decimal float support... " >&6; }
25235 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25237 else
25238 gcc_cv_as_powerpc_dfp=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25241 then gcc_cv_as_powerpc_dfp=yes
25242 fi
25243 elif test x$gcc_cv_as != x; then
25244 $as_echo "$conftest_s" > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_powerpc_dfp=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25256 fi
25257 rm -f conftest.o conftest.s
25258 fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25261 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25262 if test $gcc_cv_as_powerpc_dfp = yes; then
25263
25264 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25265
25266 fi
25267
25268 case $target in
25269 *-*-aix*) conftest_s=' .machine "pwr7"
25270 .csect .text[PR]
25271 lxvd2x 1,2,3';;
25272 *) conftest_s=' .machine power7
25273 .text
25274 lxvd2x 1,2,3';;
25275 esac
25276
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25278 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25279 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25280 $as_echo_n "(cached) " >&6
25281 else
25282 gcc_cv_as_powerpc_vsx=no
25283 if test $in_tree_gas = yes; then
25284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25285 then gcc_cv_as_powerpc_vsx=yes
25286 fi
25287 elif test x$gcc_cv_as != x; then
25288 $as_echo "$conftest_s" > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_powerpc_vsx=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25300 fi
25301 rm -f conftest.o conftest.s
25302 fi
25303 fi
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25305 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25306 if test $gcc_cv_as_powerpc_vsx = yes; then
25307
25308 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25309
25310 fi
25311
25312 case $target in
25313 *-*-aix*) conftest_s=' .machine "pwr7"
25314 .csect .text[PR]
25315 popcntd 3,3';;
25316 *) conftest_s=' .machine power7
25317 .text
25318 popcntd 3,3';;
25319 esac
25320
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25322 $as_echo_n "checking assembler for popcntd support... " >&6; }
25323 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25324 $as_echo_n "(cached) " >&6
25325 else
25326 gcc_cv_as_powerpc_popcntd=no
25327 if test $in_tree_gas = yes; then
25328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25329 then gcc_cv_as_powerpc_popcntd=yes
25330 fi
25331 elif test x$gcc_cv_as != x; then
25332 $as_echo "$conftest_s" > conftest.s
25333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25339 then
25340 gcc_cv_as_powerpc_popcntd=yes
25341 else
25342 echo "configure: failed program was" >&5
25343 cat conftest.s >&5
25344 fi
25345 rm -f conftest.o conftest.s
25346 fi
25347 fi
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25349 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25350 if test $gcc_cv_as_powerpc_popcntd = yes; then
25351
25352 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25353
25354 fi
25355
25356 case $target in
25357 *-*-aix*) conftest_s=' .csect .text[PR]
25358 lwsync';;
25359 *) conftest_s=' .text
25360 lwsync';;
25361 esac
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25364 $as_echo_n "checking assembler for lwsync support... " >&6; }
25365 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25366 $as_echo_n "(cached) " >&6
25367 else
25368 gcc_cv_as_powerpc_lwsync=no
25369 if test $in_tree_gas = yes; then
25370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25371 then gcc_cv_as_powerpc_lwsync=yes
25372 fi
25373 elif test x$gcc_cv_as != x; then
25374 $as_echo "$conftest_s" > conftest.s
25375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380 test $ac_status = 0; }; }
25381 then
25382 gcc_cv_as_powerpc_lwsync=yes
25383 else
25384 echo "configure: failed program was" >&5
25385 cat conftest.s >&5
25386 fi
25387 rm -f conftest.o conftest.s
25388 fi
25389 fi
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25391 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25392 if test $gcc_cv_as_powerpc_lwsync = yes; then
25393
25394 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25395
25396 fi
25397
25398 case $target in
25399 *-*-aix*) conftest_s=' .machine "476"
25400 .csect .text[PR]
25401 dci 0';;
25402 *) conftest_s=' .machine "476"
25403 .text
25404 dci 0';;
25405 esac
25406
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25408 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25409 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25410 $as_echo_n "(cached) " >&6
25411 else
25412 gcc_cv_as_powerpc_dci=no
25413 if test $in_tree_gas = yes; then
25414 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25415 then gcc_cv_as_powerpc_dci=yes
25416 fi
25417 elif test x$gcc_cv_as != x; then
25418 $as_echo "$conftest_s" > conftest.s
25419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25425 then
25426 gcc_cv_as_powerpc_dci=yes
25427 else
25428 echo "configure: failed program was" >&5
25429 cat conftest.s >&5
25430 fi
25431 rm -f conftest.o conftest.s
25432 fi
25433 fi
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25435 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25436 if test $gcc_cv_as_powerpc_dci = yes; then
25437
25438 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25439
25440 fi
25441
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25443 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25444 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25445 $as_echo_n "(cached) " >&6
25446 else
25447 gcc_cv_as_powerpc_gnu_attribute=no
25448 if test $in_tree_gas = yes; then
25449 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25450 then gcc_cv_as_powerpc_gnu_attribute=yes
25451 fi
25452 elif test x$gcc_cv_as != x; then
25453 $as_echo '.gnu_attribute 4,1' > conftest.s
25454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25456 (eval $ac_try) 2>&5
25457 ac_status=$?
25458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25459 test $ac_status = 0; }; }
25460 then
25461 gcc_cv_as_powerpc_gnu_attribute=yes
25462 else
25463 echo "configure: failed program was" >&5
25464 cat conftest.s >&5
25465 fi
25466 rm -f conftest.o conftest.s
25467 fi
25468 fi
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25470 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25471 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25472
25473 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25474
25475 fi
25476
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25478 $as_echo_n "checking assembler for tls marker support... " >&6; }
25479 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25481 else
25482 gcc_cv_as_powerpc_tls_markers=no
25483 if test $in_tree_gas = yes; then
25484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25485 then gcc_cv_as_powerpc_tls_markers=yes
25486 fi
25487 elif test x$gcc_cv_as != x; then
25488 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25495 then
25496 gcc_cv_as_powerpc_tls_markers=yes
25497 else
25498 echo "configure: failed program was" >&5
25499 cat conftest.s >&5
25500 fi
25501 rm -f conftest.o conftest.s
25502 fi
25503 fi
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25505 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25506 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25507
25508 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25509
25510 fi
25511
25512 case $target in
25513 *-*-aix*)
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25515 $as_echo_n "checking assembler for .ref support... " >&6; }
25516 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 gcc_cv_as_aix_ref=no
25520 if test $in_tree_gas = yes; then
25521 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25522 then :
25523 fi
25524 elif test x$gcc_cv_as != x; then
25525 $as_echo ' .csect stuff[rw]
25526 stuff:
25527 .long 1
25528 .extern sym
25529 .ref sym
25530 ' > conftest.s
25531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25537 then
25538 gcc_cv_as_aix_ref=yes
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25542 fi
25543 rm -f conftest.o conftest.s
25544 fi
25545 fi
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25547 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25548 if test $gcc_cv_as_aix_ref = yes; then
25549
25550 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25551
25552 fi
25553 ;;
25554 esac
25555 ;;
25556
25557 mips*-*-*)
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25559 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25560 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_mips_explicit_relocs=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25566 then gcc_cv_as_mips_explicit_relocs=yes
25567 fi
25568 elif test x$gcc_cv_as != x; then
25569 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_mips_explicit_relocs=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25581 fi
25582 rm -f conftest.o conftest.s
25583 fi
25584 fi
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25586 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25587 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25588 if test x$target_cpu_default = x
25589 then target_cpu_default=MASK_EXPLICIT_RELOCS
25590 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25591 fi
25592 fi
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25594 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25595 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25596 $as_echo_n "(cached) " >&6
25597 else
25598 gcc_cv_as_mips_no_shared=no
25599 if test $in_tree_gas = yes; then
25600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25601 then gcc_cv_as_mips_no_shared=yes
25602 fi
25603 elif test x$gcc_cv_as != x; then
25604 $as_echo 'nop' > conftest.s
25605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
25621 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25622 if test $gcc_cv_as_mips_no_shared = yes; then
25623
25624 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25625
25626 fi
25627
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25629 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25630 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 gcc_cv_as_mips_gnu_attribute=no
25634 if test $in_tree_gas = yes; then
25635 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25636 then gcc_cv_as_mips_gnu_attribute=yes
25637 fi
25638 elif test x$gcc_cv_as != x; then
25639 $as_echo '.gnu_attribute 4,1' > conftest.s
25640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645 test $ac_status = 0; }; }
25646 then
25647 gcc_cv_as_mips_gnu_attribute=yes
25648 else
25649 echo "configure: failed program was" >&5
25650 cat conftest.s >&5
25651 fi
25652 rm -f conftest.o conftest.s
25653 fi
25654 fi
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25656 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25657 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25658
25659 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25660
25661 fi
25662
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25664 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25665 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25668 gcc_cv_as_mips_dtprelword=no
25669 if test $in_tree_gas = yes; then
25670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25671 then gcc_cv_as_mips_dtprelword=yes
25672 fi
25673 elif test x$gcc_cv_as != x; then
25674 $as_echo '.section .tdata,"awT",@progbits
25675 x:
25676 .word 2
25677 .text
25678 .dtprelword x+0x8000' > conftest.s
25679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25682 ac_status=$?
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25685 then
25686 gcc_cv_as_mips_dtprelword=yes
25687 else
25688 echo "configure: failed program was" >&5
25689 cat conftest.s >&5
25690 fi
25691 rm -f conftest.o conftest.s
25692 fi
25693 fi
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25695 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25696 if test $gcc_cv_as_mips_dtprelword = yes; then
25697
25698 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25699
25700 fi
25701
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25703 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25704 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25706 else
25707 gcc_cv_as_mips_dspr1_mult=no
25708 if test x$gcc_cv_as != x; then
25709 $as_echo ' .set mips32r2
25710 .set nodspr2
25711 .set dsp
25712 madd $ac3,$4,$5
25713 maddu $ac3,$4,$5
25714 msub $ac3,$4,$5
25715 msubu $ac3,$4,$5
25716 mult $ac3,$4,$5
25717 multu $ac3,$4,$5' > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25724 then
25725 gcc_cv_as_mips_dspr1_mult=yes
25726 else
25727 echo "configure: failed program was" >&5
25728 cat conftest.s >&5
25729 fi
25730 rm -f conftest.o conftest.s
25731 fi
25732 fi
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25734 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25735 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25736
25737 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25738
25739 fi
25740
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25742 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25743 gcc_cv_as_ld_jalr_reloc=no
25744 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25745 if test $in_tree_ld = yes ; then
25746 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 \
25747 && test $in_tree_ld_is_elf = yes; then
25748 gcc_cv_as_ld_jalr_reloc=yes
25749 fi
25750 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25751 echo ' .ent x' > conftest.s
25752 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25753 echo ' ld $25,%call16(y)($28)' >> conftest.s
25754 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25755 echo '1: jalr $25' >> conftest.s
25756 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25757 echo '1: jalr $25' >> conftest.s
25758 echo ' .end x' >> conftest.s
25759 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25760 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25761 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25762 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25763 gcc_cv_as_ld_jalr_reloc=yes
25764 fi
25765 fi
25766 rm -f conftest.*
25767 fi
25768 fi
25769 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25770 if test x$target_cpu_default = x; then
25771 target_cpu_default=MASK_RELAX_PIC_CALLS
25772 else
25773 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25774 fi
25775 fi
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25777 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25778
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25780 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25781 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_ld_mips_personality_relaxation=no
25785 if test $in_tree_ld = yes ; then
25786 if test "$gcc_cv_gld_major_version" -eq 2 \
25787 -a "$gcc_cv_gld_minor_version" -ge 21 \
25788 -o "$gcc_cv_gld_major_version" -gt 2; then
25789 gcc_cv_ld_mips_personality_relaxation=yes
25790 fi
25791 elif test x$gcc_cv_as != x \
25792 -a x$gcc_cv_ld != x \
25793 -a x$gcc_cv_readelf != x ; then
25794 cat > conftest.s <<EOF
25795 .cfi_startproc
25796 .cfi_personality 0x80,indirect_ptr
25797 .ent test
25798 test:
25799 nop
25800 .end test
25801 .cfi_endproc
25802
25803 .section .data,"aw",@progbits
25804 indirect_ptr:
25805 .dc.a personality
25806 EOF
25807 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25808 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25809 if $gcc_cv_readelf -d conftest 2>&1 \
25810 | grep TEXTREL > /dev/null 2>&1; then
25811 :
25812 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25813 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25814 :
25815 else
25816 gcc_cv_ld_mips_personality_relaxation=yes
25817 fi
25818 fi
25819 fi
25820 rm -f conftest.s conftest.o conftest
25821 fi
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25823 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25824 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25825
25826 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25827
25828 fi
25829 ;;
25830 esac
25831
25832 # Mips and HP-UX need the GNU assembler.
25833 # Linux on IA64 might be able to use the Intel assembler.
25834
25835 case "$target" in
25836 mips*-*-* | *-*-hpux* )
25837 if test x$gas_flag = xyes \
25838 || test x"$host" != x"$build" \
25839 || test ! -x "$gcc_cv_as" \
25840 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25841 :
25842 else
25843 echo "*** This configuration requires the GNU assembler" >&2
25844 exit 1
25845 fi
25846 ;;
25847 esac
25848
25849 # ??? Not all targets support dwarf2 debug_line, even within a version
25850 # of gas. Moreover, we need to emit a valid instruction to trigger any
25851 # info to the output file. So, as supported targets are added to gas 2.11,
25852 # add some instruction here to (also) show we expect this might work.
25853 # ??? Once 2.11 is released, probably need to add first known working
25854 # version to the per-target configury.
25855 case "$cpu_type" in
25856 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25857 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25858 insn="nop"
25859 ;;
25860 ia64 | s390)
25861 insn="nop 0"
25862 ;;
25863 mmix)
25864 insn="swym 0"
25865 ;;
25866 esac
25867 if test x"$insn" != x; then
25868 conftest_s="\
25869 .file 1 \"conftest.s\"
25870 .loc 1 3 0
25871 $insn"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25873 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25874 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25876 else
25877 gcc_cv_as_dwarf2_debug_line=no
25878 if test $in_tree_gas = yes; then
25879 if test $in_tree_gas_is_elf = yes \
25880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25881 then gcc_cv_as_dwarf2_debug_line=yes
25882 fi
25883 elif test x$gcc_cv_as != x; then
25884 $as_echo "$conftest_s" > conftest.s
25885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25890 test $ac_status = 0; }; }
25891 then
25892 if test x$gcc_cv_objdump != x \
25893 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25894 | grep debug_line > /dev/null 2>&1; then
25895 gcc_cv_as_dwarf2_debug_line=yes
25896 fi
25897 else
25898 echo "configure: failed program was" >&5
25899 cat conftest.s >&5
25900 fi
25901 rm -f conftest.o conftest.s
25902 fi
25903 fi
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25905 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25906
25907
25908 # The .debug_line file table must be in the exact order that
25909 # we specified the files, since these indices are also used
25910 # by DW_AT_decl_file. Approximate this test by testing if
25911 # the assembler bitches if the same index is assigned twice.
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25913 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25914 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 gcc_cv_as_dwarf2_file_buggy=no
25918 if test x$gcc_cv_as != x; then
25919 $as_echo ' .file 1 "foo.s"
25920 .file 1 "bar.s"' > conftest.s
25921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }; }
25927 then
25928 gcc_cv_as_dwarf2_file_buggy=yes
25929 else
25930 echo "configure: failed program was" >&5
25931 cat conftest.s >&5
25932 fi
25933 rm -f conftest.o conftest.s
25934 fi
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25937 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25938
25939
25940 if test $gcc_cv_as_dwarf2_debug_line = yes \
25941 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25942
25943 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25944
25945 fi
25946
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25948 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25949 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25950 $as_echo_n "(cached) " >&6
25951 else
25952 gcc_cv_as_gdwarf2_flag=no
25953 if test $in_tree_gas = yes; then
25954 if test $in_tree_gas_is_elf = yes \
25955 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25956 then gcc_cv_as_gdwarf2_flag=yes
25957 fi
25958 elif test x$gcc_cv_as != x; then
25959 $as_echo "$insn" > conftest.s
25960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; }
25966 then
25967 gcc_cv_as_gdwarf2_flag=yes
25968 else
25969 echo "configure: failed program was" >&5
25970 cat conftest.s >&5
25971 fi
25972 rm -f conftest.o conftest.s
25973 fi
25974 fi
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25976 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25977 if test $gcc_cv_as_gdwarf2_flag = yes; then
25978
25979 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25980
25981 fi
25982
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25984 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25985 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25986 $as_echo_n "(cached) " >&6
25987 else
25988 gcc_cv_as_gstabs_flag=no
25989 if test $in_tree_gas = yes; then
25990 if test $in_tree_gas_is_elf = yes \
25991 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25992 then gcc_cv_as_gstabs_flag=yes
25993 fi
25994 elif test x$gcc_cv_as != x; then
25995 $as_echo "$insn" > conftest.s
25996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26001 test $ac_status = 0; }; }
26002 then
26003 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26004 # and warns about it, but still exits successfully. So check for
26005 # this.
26006 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26011 test $ac_status = 0; }; }
26012 then :
26013 else gcc_cv_as_gstabs_flag=yes
26014 fi
26015 else
26016 echo "configure: failed program was" >&5
26017 cat conftest.s >&5
26018 fi
26019 rm -f conftest.o conftest.s
26020 fi
26021 fi
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26023 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26024 if test $gcc_cv_as_gstabs_flag = yes; then
26025
26026 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26027
26028 fi
26029
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26031 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26032 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26033 $as_echo_n "(cached) " >&6
26034 else
26035 gcc_cv_as_debug_prefix_map_flag=no
26036 if test $in_tree_gas = yes; then
26037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26038 then gcc_cv_as_debug_prefix_map_flag=yes
26039 fi
26040 elif test x$gcc_cv_as != x; then
26041 $as_echo "$insn" > conftest.s
26042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26047 test $ac_status = 0; }; }
26048 then
26049 gcc_cv_as_debug_prefix_map_flag=yes
26050 else
26051 echo "configure: failed program was" >&5
26052 cat conftest.s >&5
26053 fi
26054 rm -f conftest.o conftest.s
26055 fi
26056 fi
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26058 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26059 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26060
26061 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26062
26063 fi
26064 fi
26065
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26067 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26068 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26069 $as_echo_n "(cached) " >&6
26070 else
26071 gcc_cv_as_lcomm_with_alignment=no
26072 if test x$gcc_cv_as != x; then
26073 $as_echo '.lcomm bar,4,16' > conftest.s
26074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; }
26080 then
26081 gcc_cv_as_lcomm_with_alignment=yes
26082 else
26083 echo "configure: failed program was" >&5
26084 cat conftest.s >&5
26085 fi
26086 rm -f conftest.o conftest.s
26087 fi
26088 fi
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26090 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26092
26093 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26094
26095 fi
26096
26097 # Check whether --enable-gnu-unique-object was given.
26098 if test "${enable_gnu_unique_object+set}" = set; then :
26099 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26100 yes | no) ;;
26101 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26102 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26103 esac
26104 else
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26106 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26107 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 gcc_cv_as_gnu_unique_object=no
26111 if test $in_tree_gas = yes; then
26112 if test $in_tree_gas_is_elf = yes \
26113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26114 then gcc_cv_as_gnu_unique_object=yes
26115 fi
26116 elif test x$gcc_cv_as != x; then
26117 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26123 test $ac_status = 0; }; }
26124 then
26125 gcc_cv_as_gnu_unique_object=yes
26126 else
26127 echo "configure: failed program was" >&5
26128 cat conftest.s >&5
26129 fi
26130 rm -f conftest.o conftest.s
26131 fi
26132 fi
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26134 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26135 if test $gcc_cv_as_gnu_unique_object = yes; then
26136 # We need to unquote above to to use the definition from config.gcc.
26137 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26138 if test x$host = x$build -a x$host = x$target &&
26139 ldd --version 2>/dev/null &&
26140 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26141 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26142 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26143 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26144 if test "$glibcnum" -ge 2011 ; then
26145 enable_gnu_unique_object=yes
26146 fi
26147 fi
26148 fi
26149 fi
26150
26151 if test x$enable_gnu_unique_object = xyes; then
26152
26153 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26154
26155 fi
26156
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26158 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26159 if test "${gcc_cv_as_line_zero+set}" = set; then :
26160 $as_echo_n "(cached) " >&6
26161 else
26162 gcc_cv_as_line_zero=no
26163 if test $in_tree_gas = yes; then
26164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26165 then gcc_cv_as_line_zero=yes
26166 fi
26167 elif test "x$gcc_cv_as" != x; then
26168 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26169 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; } &&
26175 test "x`cat conftest.out`" = x
26176 then
26177 gcc_cv_as_line_zero=yes
26178 else
26179 echo "configure: failed program was" >&5
26180 cat conftest.s >&5
26181 echo "configure: error output was" >&5
26182 cat conftest.out >&5
26183 fi
26184 rm -f conftest.o conftest.s conftest.out
26185 fi
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26188 $as_echo "$gcc_cv_as_line_zero" >&6; }
26189 if test "x$gcc_cv_as_line_zero" = xyes; then
26190
26191 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26192
26193 fi
26194
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26196 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26197 gcc_cv_ld_eh_frame_hdr=no
26198 if test $in_tree_ld = yes ; then
26199 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 \
26200 && test $in_tree_ld_is_elf = yes; then
26201 gcc_cv_ld_eh_frame_hdr=yes
26202 fi
26203 elif test x$gcc_cv_ld != x; then
26204 if echo "$ld_ver" | grep GNU > /dev/null; then
26205 # Check if linker supports --eh-frame-hdr option
26206 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26207 gcc_cv_ld_eh_frame_hdr=yes
26208 fi
26209 else
26210 case "$target" in
26211 *-*-solaris2*)
26212 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26213 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26214 gcc_cv_ld_eh_frame_hdr=yes
26215 fi
26216 ;;
26217 esac
26218 fi
26219 fi
26220
26221 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26222
26223 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26224
26225 fi
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26227 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26228
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26230 $as_echo_n "checking linker position independent executable support... " >&6; }
26231 gcc_cv_ld_pie=no
26232 if test $in_tree_ld = yes ; then
26233 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 \
26234 && test $in_tree_ld_is_elf = yes; then
26235 gcc_cv_ld_pie=yes
26236 fi
26237 elif test x$gcc_cv_ld != x; then
26238 # Check if linker supports -pie option
26239 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26240 gcc_cv_ld_pie=yes
26241 fi
26242 fi
26243 if test x"$gcc_cv_ld_pie" = xyes; then
26244
26245 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26246
26247 fi
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26249 $as_echo "$gcc_cv_ld_pie" >&6; }
26250
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26252 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26253 gcc_cv_ld_eh_gc_sections=no
26254 if test $in_tree_ld = yes ; then
26255 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 \
26256 && test $in_tree_ld_is_elf = yes; then
26257 gcc_cv_ld_eh_gc_sections=yes
26258 fi
26259 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26260 cat > conftest.s <<EOF
26261 .section .text
26262 .globl _start
26263 .type _start, @function
26264 _start:
26265 .long foo
26266 .size _start, .-_start
26267 .section .text.foo,"ax",@progbits
26268 .type foo, @function
26269 foo:
26270 .long 0
26271 .size foo, .-foo
26272 .section .gcc_except_table.foo,"a",@progbits
26273 .L0:
26274 .long 0
26275 .section .eh_frame,"a",@progbits
26276 .long .L0
26277 EOF
26278 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26279 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26280 | grep "gc-sections option ignored" > /dev/null; then
26281 gcc_cv_ld_eh_gc_sections=no
26282 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26283 | grep gcc_except_table > /dev/null; then
26284 gcc_cv_ld_eh_gc_sections=yes
26285 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26286 if test x$gcc_cv_as_comdat_group != xyes; then
26287 gcc_cv_ld_eh_gc_sections=no
26288 cat > conftest.s <<EOF
26289 .section .text
26290 .globl _start
26291 .type _start, @function
26292 _start:
26293 .long foo
26294 .size _start, .-_start
26295 .section .gnu.linkonce.t.foo,"ax",@progbits
26296 .type foo, @function
26297 foo:
26298 .long 0
26299 .size foo, .-foo
26300 .section .gcc_except_table.foo,"a",@progbits
26301 .L0:
26302 .long 0
26303 .section .eh_frame,"a",@progbits
26304 .long .L0
26305 EOF
26306 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26307 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26308 | grep "gc-sections option ignored" > /dev/null; then
26309 gcc_cv_ld_eh_gc_sections=no
26310 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26311 | grep gcc_except_table > /dev/null; then
26312 gcc_cv_ld_eh_gc_sections=yes
26313 fi
26314 fi
26315 fi
26316 fi
26317 fi
26318 rm -f conftest.s conftest.o conftest
26319 fi
26320 case "$target" in
26321 hppa*-*-linux*)
26322 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26323 gcc_cv_ld_eh_gc_sections=no
26324 ;;
26325 esac
26326 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26327
26328 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26329
26330 fi
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26332 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26333
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26335 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26336 gcc_cv_ld_eh_gc_sections_bug=no
26337 if test $in_tree_ld = yes ; then
26338 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 \
26339 && test $in_tree_ld_is_elf = yes; then
26340 gcc_cv_ld_eh_gc_sections_bug=yes
26341 fi
26342 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
26343 gcc_cv_ld_eh_gc_sections_bug=yes
26344 cat > conftest.s <<EOF
26345 .section .text
26346 .globl _start
26347 .type _start, @function
26348 _start:
26349 .long foo
26350 .size _start, .-_start
26351 .section .text.startup.foo,"ax",@progbits
26352 .type foo, @function
26353 foo:
26354 .long 0
26355 .size foo, .-foo
26356 .section .gcc_except_table.foo,"a",@progbits
26357 .L0:
26358 .long 0
26359 .section .eh_frame,"a",@progbits
26360 .long .L0
26361 EOF
26362 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26363 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26364 | grep "gc-sections option ignored" > /dev/null; then
26365 :
26366 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26367 | grep gcc_except_table > /dev/null; then
26368 gcc_cv_ld_eh_gc_sections_bug=no
26369 fi
26370 fi
26371 rm -f conftest.s conftest.o conftest
26372 fi
26373 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26374
26375 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26376
26377 fi
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26379 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26380
26381 # --------
26382 # UNSORTED
26383 # --------
26384
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26386 $as_echo_n "checking linker --as-needed support... " >&6; }
26387 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26388 $as_echo_n "(cached) " >&6
26389 else
26390 gcc_cv_ld_as_needed=no
26391 if test $in_tree_ld = yes ; then
26392 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 \
26393 && test $in_tree_ld_is_elf = yes; then
26394 gcc_cv_ld_as_needed=yes
26395 fi
26396 elif test x$gcc_cv_ld != x; then
26397 # Check if linker supports --as-needed and --no-as-needed options
26398 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26399 gcc_cv_ld_as_needed=yes
26400 fi
26401 fi
26402
26403 fi
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26405 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26406 if test x"$gcc_cv_ld_as_needed" = xyes; then
26407
26408 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26409
26410 fi
26411
26412 case "$target:$tm_file" in
26413 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26414 case "$target" in
26415 *-*-linux*)
26416 emul_name="-melf64ppc"
26417 ;;
26418 *-*-freebsd*)
26419 emul_name="-melf64ppc_fbsd"
26420 ;;
26421 esac
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26423 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26424 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26425 $as_echo_n "(cached) " >&6
26426 else
26427 gcc_cv_ld_no_dot_syms=no
26428 if test $in_tree_ld = yes ; then
26429 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
26430 gcc_cv_ld_no_dot_syms=yes
26431 fi
26432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26433 cat > conftest1.s <<EOF
26434 .text
26435 bl .foo
26436 EOF
26437 cat > conftest2.s <<EOF
26438 .section ".opd","aw"
26439 .align 3
26440 .globl foo
26441 .type foo,@function
26442 foo:
26443 .quad .LEfoo,.TOC.@tocbase,0
26444 .text
26445 .LEfoo:
26446 blr
26447 .size foo,.-.LEfoo
26448 EOF
26449 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26450 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26451 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26452 gcc_cv_ld_no_dot_syms=yes
26453 fi
26454 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26455 fi
26456
26457 fi
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26459 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26460 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26461
26462 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26463
26464 fi
26465
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26467 $as_echo_n "checking linker large toc support... " >&6; }
26468 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_ld_large_toc=no
26472 if test $in_tree_ld = yes ; then
26473 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
26474 gcc_cv_ld_large_toc=yes
26475 fi
26476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26477 cat > conftest.s <<EOF
26478 .section ".tbss","awT",@nobits
26479 .align 3
26480 ie0: .space 8
26481 .global _start
26482 .text
26483 _start:
26484 addis 9,13,ie0@got@tprel@ha
26485 ld 9,ie0@got@tprel@l(9)
26486 EOF
26487 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26488 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26489 gcc_cv_ld_large_toc=yes
26490 fi
26491 rm -f conftest conftest.o conftest.s
26492 fi
26493
26494 fi
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26496 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26497 if test x"$gcc_cv_ld_large_toc" = xyes; then
26498
26499 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26500
26501 fi
26502 ;;
26503 esac
26504
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26506 $as_echo_n "checking linker --build-id support... " >&6; }
26507 if test "${gcc_cv_ld_buildid+set}" = set; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 gcc_cv_ld_buildid=no
26511 if test $in_tree_ld = yes ; then
26512 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26513 "$gcc_cv_gld_minor_version" -ge 18 -o \
26514 "$gcc_cv_gld_major_version" -gt 2 \
26515 && test $in_tree_ld_is_elf = yes; then
26516 gcc_cv_ld_buildid=yes
26517 fi
26518 elif test x$gcc_cv_ld != x; then
26519 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26520 gcc_cv_ld_buildid=yes
26521 fi
26522 fi
26523 fi
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26525 $as_echo "$gcc_cv_ld_buildid" >&6; }
26526 if test x"$gcc_cv_ld_buildid" = xyes; then
26527
26528 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26529
26530 fi
26531
26532 # Check whether --enable-linker-build-id was given.
26533 if test "${enable_linker_build_id+set}" = set; then :
26534 enableval=$enable_linker_build_id;
26535 else
26536 enable_linker_build_id=no
26537 fi
26538
26539
26540 if test x"$enable_linker_build_id" = xyes; then
26541 if test x"$gcc_cv_ld_buildid" = xyes; then
26542
26543 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26544
26545 else
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26547 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26548 fi
26549 fi
26550
26551 # In binutils 2.21, GNU ld gained support for new emulations fully
26552 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26554 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26555 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26556 $as_echo_n "(cached) " >&6
26557 else
26558 gcc_cv_ld_sol2_emulation=no
26559 if test $in_tree_ld = yes ; then
26560 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26561 "$gcc_cv_gld_minor_version" -ge 21 -o \
26562 "$gcc_cv_gld_major_version" -gt 2 \
26563 && test $in_tree_ld_is_elf = yes; then
26564 gcc_cv_ld_sol2_emulation=yes
26565 fi
26566 elif test x$gcc_cv_ld != x; then
26567 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26568 grep _sol2 > /dev/null; then
26569 gcc_cv_ld_sol2_emulation=yes
26570 fi
26571 fi
26572 fi
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26574 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26575 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26576
26577 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26578
26579 fi
26580
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26582 $as_echo_n "checking linker --sysroot support... " >&6; }
26583 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26584 $as_echo_n "(cached) " >&6
26585 else
26586 gcc_cv_ld_sysroot=no
26587 if test $in_tree_ld = yes ; then
26588 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
26589 gcc_cv_ld_sysroot=yes
26590 fi
26591 elif test x$gcc_cv_ld != x; then
26592 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26593 gcc_cv_ld_sysroot=yes
26594 fi
26595 fi
26596 fi
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26598 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26599 if test x"$gcc_cv_ld_sysroot" = xyes; then
26600
26601 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26602
26603 fi
26604
26605 if test x$with_sysroot = x && test x$host = x$target \
26606 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26607 && test "$prefix" != "NONE"; then
26608
26609 cat >>confdefs.h <<_ACEOF
26610 #define PREFIX_INCLUDE_DIR "$prefix/include"
26611 _ACEOF
26612
26613 fi
26614
26615 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26616 if test "x$with_headers" != x; then
26617 target_header_dir=$with_headers
26618 elif test "x$with_sysroot" = x; then
26619 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26620 elif test "x$with_build_sysroot" != "x"; then
26621 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26622 elif test "x$with_sysroot" = xyes; then
26623 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26624 else
26625 target_header_dir="${with_sysroot}${native_system_header_dir}"
26626 fi
26627 else
26628 target_header_dir=${native_system_header_dir}
26629 fi
26630
26631 # Test for stack protector support in target C library.
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26633 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26634 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_libc_provides_ssp=no
26638 case "$target" in
26639 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26640 # glibc 2.4 and later provides __stack_chk_fail and
26641 # either __stack_chk_guard, or TLS access to stack guard canary.
26642 if test -f $target_header_dir/features.h \
26643 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26644 $target_header_dir/features.h > /dev/null; then
26645 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26646 $target_header_dir/features.h > /dev/null; then
26647 gcc_cv_libc_provides_ssp=yes
26648 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26649 $target_header_dir/features.h > /dev/null \
26650 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26651 $target_header_dir/features.h > /dev/null; then
26652 gcc_cv_libc_provides_ssp=yes
26653 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26654 $target_header_dir/features.h > /dev/null && \
26655 test -f $target_header_dir/bits/uClibc_config.h && \
26656 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26657 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26658 gcc_cv_libc_provides_ssp=yes
26659 fi
26660 # all versions of Bionic support stack protector
26661 elif test -f $target_header_dir/sys/cdefs.h \
26662 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26663 $target_header_dir/sys/cdefs.h > /dev/null; then
26664 gcc_cv_libc_provides_ssp=yes
26665 fi
26666 ;;
26667 *-*-gnu*)
26668 # Avoid complicated tests (see
26669 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26670 # simply assert that glibc does provide this, which is true for all
26671 # realistically usable GNU/Hurd configurations.
26672 gcc_cv_libc_provides_ssp=yes;;
26673 *-*-darwin* | *-*-freebsd*)
26674 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26675 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26676 gcc_cv_libc_provides_ssp=yes
26677 else
26678 echo "no __stack_chk_fail on this target"
26679 fi
26680
26681 ;;
26682 *) gcc_cv_libc_provides_ssp=no ;;
26683 esac
26684 fi
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26686 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26687
26688 if test x$gcc_cv_libc_provides_ssp = xyes; then
26689
26690 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26691
26692 fi
26693
26694 # Test for <sys/sdt.h> on the target.
26695
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26697 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26698 have_sys_sdt_h=no
26699 if test -f $target_header_dir/sys/sdt.h; then
26700 have_sys_sdt_h=yes
26701
26702 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26703
26704 fi
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26706 $as_echo "$have_sys_sdt_h" >&6; }
26707
26708 # Check if TFmode long double should be used by default or not.
26709 # Some glibc targets used DFmode long double, but with glibc 2.4
26710 # and later they can use TFmode.
26711 case "$target" in
26712 powerpc*-*-linux* | \
26713 sparc*-*-linux* | \
26714 s390*-*-linux* | \
26715 alpha*-*-linux*)
26716
26717 # Check whether --with-long-double-128 was given.
26718 if test "${with_long_double_128+set}" = set; then :
26719 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26720 else
26721 gcc_cv_target_ldbl128=no
26722 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26723 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26724 && gcc_cv_target_ldbl128=yes
26725
26726 fi
26727
26728 ;;
26729 esac
26730 if test x$gcc_cv_target_ldbl128 = xyes; then
26731
26732 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26733
26734 fi
26735
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26737 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26738 gcc_cv_target_dl_iterate_phdr=unknown
26739 case "$target" in
26740 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26741 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26742 # libdl there, both complicating its use and breaking compatibility
26743 # between Solaris 10 updates.
26744 *-*-solaris2.1[1-9]*)
26745 # <link.h> needs both a dl_iterate_phdr declaration and support for
26746 # compilation with largefile support.
26747 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26748 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26749 gcc_cv_target_dl_iterate_phdr=yes
26750 else
26751 gcc_cv_target_dl_iterate_phdr=no
26752 fi
26753 ;;
26754 esac
26755
26756 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26757
26758 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26759
26760 fi
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26762 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26763
26764 # Find out what GC implementation we want, or may, use.
26765
26766 # Check whether --with-gc was given.
26767 if test "${with_gc+set}" = set; then :
26768 withval=$with_gc; case "$withval" in
26769 page)
26770 GGC=ggc-$withval
26771 ;;
26772 zone)
26773 GGC=ggc-$withval
26774
26775 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26776
26777 ;;
26778 *)
26779 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26780 ;;
26781 esac
26782 else
26783 GGC=ggc-page
26784 fi
26785
26786
26787 echo "Using $GGC for garbage collection."
26788
26789 # Libraries to use on the host. This will normally be set by the top
26790 # level Makefile. Here we simply capture the value for our Makefile.
26791 if test -z "${HOST_LIBS+set}"; then
26792 HOST_LIBS=
26793 fi
26794
26795
26796 # Use the system's zlib library.
26797 zlibdir=-L../zlib
26798 zlibinc="-I\$(srcdir)/../zlib"
26799
26800 # Check whether --with-system-zlib was given.
26801 if test "${with_system_zlib+set}" = set; then :
26802 withval=$with_system_zlib; zlibdir=
26803 zlibinc=
26804
26805 fi
26806
26807
26808
26809
26810
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26812 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26813 # Check whether --enable-maintainer-mode was given.
26814 if test "${enable_maintainer_mode+set}" = set; then :
26815 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26816 else
26817 maintainer_mode=no
26818 fi
26819
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26822 $as_echo "$maintainer_mode" >&6; }
26823
26824 if test "$maintainer_mode" = "yes"; then
26825 MAINT=''
26826 else
26827 MAINT='#'
26828 fi
26829
26830 # --------------
26831 # Language hooks
26832 # --------------
26833
26834 # Make empty files to contain the specs and options for each language.
26835 # Then add #include lines to for a compiler that has specs and/or options.
26836
26837 subdirs=
26838 lang_opt_files=
26839 lang_specs_files=
26840 lang_tree_files=
26841 # These (without "all_") are set in each config-lang.in.
26842 # `language' must be a single word so is spelled singularly.
26843 all_languages=
26844 all_compilers=
26845 all_outputs='Makefile'
26846 # List of language makefile fragments.
26847 all_lang_makefrags=
26848 # Additional files for gengtype
26849 all_gtfiles="$target_gtfiles"
26850
26851 # These are the languages that are set in --enable-languages,
26852 # and are available in the GCC tree.
26853 all_selected_languages=
26854
26855 # Add the language fragments.
26856 # Languages are added via two mechanisms. Some information must be
26857 # recorded in makefile variables, these are defined in config-lang.in.
26858 # We accumulate them and plug them into the main Makefile.
26859 # The other mechanism is a set of hooks for each of the main targets
26860 # like `clean', `install', etc.
26861
26862 language_hooks="Make-hooks"
26863
26864 for lang in ${srcdir}/*/config-lang.in
26865 do
26866 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26867
26868 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26869 if test "x$lang_alias" = x
26870 then
26871 echo "$lang doesn't set \$language." 1>&2
26872 exit 1
26873 fi
26874 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26875 subdirs="$subdirs $subdir"
26876
26877 # $gcc_subdir is where the gcc integration files are to be found
26878 # for a language, both for internal compiler purposes (compiler
26879 # sources implementing front-end to GCC tree converters), and for
26880 # build infrastructure purposes (Make-lang.in, etc.)
26881 #
26882 # This will be <subdir> (relative to $srcdir) if a line like
26883 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26884 # is found in <langdir>/config-lang.in, and will remain <langdir>
26885 # otherwise.
26886 #
26887 # Except for the language alias (fetched above), the regular
26888 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26889 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26890 # only this and the language alias.
26891
26892 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26893 if [ "$gcc_subdir" = "" ]; then
26894 gcc_subdir="$subdir"
26895 fi
26896
26897 case ",$enable_languages," in
26898 *,$lang_alias,*)
26899 all_selected_languages="$all_selected_languages $lang_alias"
26900 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26901 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26902 fi
26903 ;;
26904 esac
26905
26906 language=
26907 boot_language=
26908 compilers=
26909 outputs=
26910 gtfiles=
26911 subdir_requires=
26912 . ${srcdir}/$gcc_subdir/config-lang.in
26913 if test "x$language" = x
26914 then
26915 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26916 exit 1
26917 fi
26918
26919 ok=:
26920 case ",$enable_languages," in
26921 *,$lang_alias,*) ;;
26922 *)
26923 for i in $subdir_requires; do
26924 test -f "${srcdir}/$i/config-lang.in" && continue
26925 ok=false
26926 break
26927 done
26928 ;;
26929 esac
26930 $ok || continue
26931
26932 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26933 if test -f $srcdir/$gcc_subdir/lang.opt; then
26934 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26935 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26936 fi
26937 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26938 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26939 fi
26940 all_languages="$all_languages $language"
26941 all_compilers="$all_compilers $compilers"
26942 all_outputs="$all_outputs $outputs"
26943 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26944 case ",$enable_languages," in
26945 *,lto,*)
26946
26947 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26948
26949 enable_lto=yes
26950
26951 ;;
26952 *) ;;
26953 esac
26954 done
26955
26956 # Pick up gtfiles for c
26957 gtfiles=
26958 . ${srcdir}/c-config-lang.in
26959 all_gtfiles="$all_gtfiles [c] $gtfiles"
26960
26961 check_languages=
26962 for language in $all_selected_languages
26963 do
26964 check_languages="$check_languages check-$language"
26965 done
26966
26967 # We link each language in with a set of hooks, reached indirectly via
26968 # lang.${target}. Only do so for selected languages.
26969
26970 rm -f Make-hooks
26971 touch Make-hooks
26972 target_list="all.cross start.encap rest.encap tags \
26973 install-common install-man install-info install-pdf install-html dvi \
26974 pdf html uninstall info man srcextra srcman srcinfo \
26975 mostlyclean clean distclean maintainer-clean install-plugin"
26976
26977 for t in $target_list
26978 do
26979 x=
26980 for lang in $all_selected_languages
26981 do
26982 x="$x $lang.$t"
26983 done
26984 echo "lang.$t: $x" >> Make-hooks
26985 done
26986
26987 # --------
26988 # Option include files
26989 # --------
26990
26991 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26992 option_includes="option-includes.mk"
26993
26994
26995 # --------
26996 # UNSORTED
26997 # --------
26998
26999 # Create .gdbinit.
27000
27001 echo "dir ." > .gdbinit
27002 echo "dir ${srcdir}" >> .gdbinit
27003 if test x$gdb_needs_out_file_path = xyes
27004 then
27005 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27006 fi
27007 if test "x$subdirs" != x; then
27008 for s in $subdirs
27009 do
27010 echo "dir ${srcdir}/$s" >> .gdbinit
27011 done
27012 fi
27013 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27014
27015 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27016
27017
27018
27019 # Find a directory in which to install a shared libgcc.
27020
27021 # Check whether --enable-version-specific-runtime-libs was given.
27022 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27023 enableval=$enable_version_specific_runtime_libs;
27024 fi
27025
27026
27027 # Substitute configuration variables
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090 # Echo link setup.
27091 if test x${build} = x${host} ; then
27092 if test x${host} = x${target} ; then
27093 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27094 else
27095 echo "Links are now set up to build a cross-compiler" 1>&2
27096 echo " from ${host} to ${target}." 1>&2
27097 fi
27098 else
27099 if test x${host} = x${target} ; then
27100 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27101 echo " for ${target}." 1>&2
27102 else
27103 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27104 echo " from ${host} to ${target}." 1>&2
27105 fi
27106 fi
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116 if test "x${CLOOGLIBS}" != "x" ; then
27117
27118 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27119
27120 fi
27121
27122 # Check for plugin support
27123 # Check whether --enable-plugin was given.
27124 if test "${enable_plugin+set}" = set; then :
27125 enableval=$enable_plugin; enable_plugin=$enableval
27126 else
27127 enable_plugin=yes; default_plugin=yes
27128 fi
27129
27130
27131 pluginlibs=
27132
27133 case "${host}" in
27134 *-*-darwin*)
27135 if test x$build = x$host; then
27136 export_sym_check="nm${exeext} -g"
27137 elif test x$host = x$target; then
27138 export_sym_check="$gcc_cv_nm -g"
27139 else
27140 export_sym_check=
27141 fi
27142 ;;
27143 *)
27144 if test x$build = x$host; then
27145 export_sym_check="objdump${exeext} -T"
27146 elif test x$host = x$target; then
27147 export_sym_check="$gcc_cv_objdump -T"
27148 else
27149 export_sym_check=
27150 fi
27151 ;;
27152 esac
27153
27154 if test x"$enable_plugin" = x"yes"; then
27155
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27157 $as_echo_n "checking for exported symbols... " >&6; }
27158 if test "x$export_sym_check" != x; then
27159 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27160 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27161 if $export_sym_check conftest | grep foobar > /dev/null; then
27162 : # No need to use a flag
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27164 $as_echo "yes" >&6; }
27165 else
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27167 $as_echo "yes" >&6; }
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27169 $as_echo_n "checking for -rdynamic... " >&6; }
27170 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27171 if $export_sym_check conftest | grep foobar > /dev/null; then
27172 plugin_rdynamic=yes
27173 pluginlibs="-rdynamic"
27174 else
27175 plugin_rdynamic=no
27176 enable_plugin=no
27177 fi
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27179 $as_echo "$plugin_rdynamic" >&6; }
27180 fi
27181 else
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27183 $as_echo "unable to check" >&6; }
27184 fi
27185
27186 # Check -ldl
27187 saved_LIBS="$LIBS"
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27189 $as_echo_n "checking for library containing dlopen... " >&6; }
27190 if test "${ac_cv_search_dlopen+set}" = set; then :
27191 $as_echo_n "(cached) " >&6
27192 else
27193 ac_func_search_save_LIBS=$LIBS
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h. */
27196
27197 /* Override any GCC internal prototype to avoid an error.
27198 Use char because int might match the return type of a GCC
27199 builtin and then its argument prototype would still apply. */
27200 #ifdef __cplusplus
27201 extern "C"
27202 #endif
27203 char dlopen ();
27204 int
27205 main ()
27206 {
27207 return dlopen ();
27208 ;
27209 return 0;
27210 }
27211 _ACEOF
27212 for ac_lib in '' dl; do
27213 if test -z "$ac_lib"; then
27214 ac_res="none required"
27215 else
27216 ac_res=-l$ac_lib
27217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27218 fi
27219 if ac_fn_c_try_link "$LINENO"; then :
27220 ac_cv_search_dlopen=$ac_res
27221 fi
27222 rm -f core conftest.err conftest.$ac_objext \
27223 conftest$ac_exeext
27224 if test "${ac_cv_search_dlopen+set}" = set; then :
27225 break
27226 fi
27227 done
27228 if test "${ac_cv_search_dlopen+set}" = set; then :
27229
27230 else
27231 ac_cv_search_dlopen=no
27232 fi
27233 rm conftest.$ac_ext
27234 LIBS=$ac_func_search_save_LIBS
27235 fi
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27237 $as_echo "$ac_cv_search_dlopen" >&6; }
27238 ac_res=$ac_cv_search_dlopen
27239 if test "$ac_res" != no; then :
27240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27241
27242 fi
27243
27244 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27245 pluginlibs="$pluginlibs -ldl"
27246 fi
27247 LIBS="$saved_LIBS"
27248
27249 # Check that we can build shared objects with -fPIC -shared
27250 saved_LDFLAGS="$LDFLAGS"
27251 saved_CFLAGS="$CFLAGS"
27252 case "${host}" in
27253 *-*-darwin*)
27254 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27255 CFLAGS="$CFLAGS -fPIC"
27256 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27257 ;;
27258 *)
27259 CFLAGS="$CFLAGS -fPIC"
27260 LDFLAGS="$LDFLAGS -fPIC -shared"
27261 ;;
27262 esac
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27264 $as_echo_n "checking for -fPIC -shared... " >&6; }
27265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27266 /* end confdefs.h. */
27267 extern int X;
27268 int
27269 main ()
27270 {
27271 return X == 0;
27272 ;
27273 return 0;
27274 }
27275 _ACEOF
27276 if ac_fn_c_try_link "$LINENO"; then :
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27278 $as_echo "yes" >&6; }; have_pic_shared=yes
27279 else
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27281 $as_echo "no" >&6; }; have_pic_shared=no
27282 fi
27283 rm -f core conftest.err conftest.$ac_objext \
27284 conftest$ac_exeext conftest.$ac_ext
27285 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27286 pluginlibs=
27287 enable_plugin=no
27288 fi
27289 LDFLAGS="$saved_LDFLAGS"
27290 CFLAGS="$saved_CFLAGS"
27291
27292 # If plugin support had been requested but not available, fail.
27293 if test x"$enable_plugin" = x"no" ; then
27294 if test x"$default_plugin" != x"yes"; then
27295 as_fn_error "
27296 Building GCC with plugin support requires a host that supports
27297 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27298 fi
27299 fi
27300 fi
27301
27302
27303
27304 if test x"$enable_plugin" = x"yes"; then
27305
27306 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27307
27308 fi
27309
27310
27311 # Check whether --enable-libquadmath-support was given.
27312 if test "${enable_libquadmath_support+set}" = set; then :
27313 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27314 else
27315 ENABLE_LIBQUADMATH_SUPPORT=yes
27316 fi
27317
27318 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27319
27320 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27321
27322 fi
27323
27324
27325 # Specify what hash style to use by default.
27326
27327 # Check whether --with-linker-hash-style was given.
27328 if test "${with_linker_hash_style+set}" = set; then :
27329 withval=$with_linker_hash_style; case x"$withval" in
27330 xsysv)
27331 LINKER_HASH_STYLE=sysv
27332 ;;
27333 xgnu)
27334 LINKER_HASH_STYLE=gnu
27335 ;;
27336 xboth)
27337 LINKER_HASH_STYLE=both
27338 ;;
27339 *)
27340 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27341 ;;
27342 esac
27343 else
27344 LINKER_HASH_STYLE=''
27345 fi
27346
27347 if test x"${LINKER_HASH_STYLE}" != x; then
27348
27349 cat >>confdefs.h <<_ACEOF
27350 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27351 _ACEOF
27352
27353 fi
27354
27355 # Configure the subdirectories
27356 # AC_CONFIG_SUBDIRS($subdirs)
27357
27358 # Create the Makefile
27359 # and configure language subdirectories
27360 ac_config_files="$ac_config_files $all_outputs"
27361
27362
27363 ac_config_commands="$ac_config_commands default"
27364
27365 cat >confcache <<\_ACEOF
27366 # This file is a shell script that caches the results of configure
27367 # tests run on this system so they can be shared between configure
27368 # scripts and configure runs, see configure's option --config-cache.
27369 # It is not useful on other systems. If it contains results you don't
27370 # want to keep, you may remove or edit it.
27371 #
27372 # config.status only pays attention to the cache file if you give it
27373 # the --recheck option to rerun configure.
27374 #
27375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27377 # following values.
27378
27379 _ACEOF
27380
27381 # The following way of writing the cache mishandles newlines in values,
27382 # but we know of no workaround that is simple, portable, and efficient.
27383 # So, we kill variables containing newlines.
27384 # Ultrix sh set writes to stderr and can't be redirected directly,
27385 # and sets the high bit in the cache file unless we assign to the vars.
27386 (
27387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27388 eval ac_val=\$$ac_var
27389 case $ac_val in #(
27390 *${as_nl}*)
27391 case $ac_var in #(
27392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27394 esac
27395 case $ac_var in #(
27396 _ | IFS | as_nl) ;; #(
27397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27398 *) { eval $ac_var=; unset $ac_var;} ;;
27399 esac ;;
27400 esac
27401 done
27402
27403 (set) 2>&1 |
27404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27405 *${as_nl}ac_space=\ *)
27406 # `set' does not quote correctly, so add quotes: double-quote
27407 # substitution turns \\\\ into \\, and sed turns \\ into \.
27408 sed -n \
27409 "s/'/'\\\\''/g;
27410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27411 ;; #(
27412 *)
27413 # `set' quotes correctly as required by POSIX, so do not add quotes.
27414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27415 ;;
27416 esac |
27417 sort
27418 ) |
27419 sed '
27420 /^ac_cv_env_/b end
27421 t clear
27422 :clear
27423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27424 t end
27425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27426 :end' >>confcache
27427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27428 if test -w "$cache_file"; then
27429 test "x$cache_file" != "x/dev/null" &&
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27431 $as_echo "$as_me: updating cache $cache_file" >&6;}
27432 cat confcache >$cache_file
27433 else
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27435 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27436 fi
27437 fi
27438 rm -f confcache
27439
27440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27441 # Let make expand exec_prefix.
27442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27443
27444 DEFS=-DHAVE_CONFIG_H
27445
27446 ac_libobjs=
27447 ac_ltlibobjs=
27448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27449 # 1. Remove the extension, and $U if already installed.
27450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27453 # will be set to the directory where LIBOBJS objects are built.
27454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27456 done
27457 LIBOBJS=$ac_libobjs
27458
27459 LTLIBOBJS=$ac_ltlibobjs
27460
27461
27462
27463
27464 : ${CONFIG_STATUS=./config.status}
27465 ac_write_fail=0
27466 ac_clean_files_save=$ac_clean_files
27467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27469 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27470 as_write_fail=0
27471 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27472 #! $SHELL
27473 # Generated by $as_me.
27474 # Run this file to recreate the current configuration.
27475 # Compiler output produced by configure, useful for debugging
27476 # configure, is in config.log if it exists.
27477
27478 debug=false
27479 ac_cs_recheck=false
27480 ac_cs_silent=false
27481
27482 SHELL=\${CONFIG_SHELL-$SHELL}
27483 export SHELL
27484 _ASEOF
27485 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27486 ## -------------------- ##
27487 ## M4sh Initialization. ##
27488 ## -------------------- ##
27489
27490 # Be more Bourne compatible
27491 DUALCASE=1; export DUALCASE # for MKS sh
27492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27493 emulate sh
27494 NULLCMD=:
27495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27496 # is contrary to our usage. Disable this feature.
27497 alias -g '${1+"$@"}'='"$@"'
27498 setopt NO_GLOB_SUBST
27499 else
27500 case `(set -o) 2>/dev/null` in #(
27501 *posix*) :
27502 set -o posix ;; #(
27503 *) :
27504 ;;
27505 esac
27506 fi
27507
27508
27509 as_nl='
27510 '
27511 export as_nl
27512 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27513 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27516 # Prefer a ksh shell builtin over an external printf program on Solaris,
27517 # but without wasting forks for bash or zsh.
27518 if test -z "$BASH_VERSION$ZSH_VERSION" \
27519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27520 as_echo='print -r --'
27521 as_echo_n='print -rn --'
27522 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27523 as_echo='printf %s\n'
27524 as_echo_n='printf %s'
27525 else
27526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27527 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27528 as_echo_n='/usr/ucb/echo -n'
27529 else
27530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27531 as_echo_n_body='eval
27532 arg=$1;
27533 case $arg in #(
27534 *"$as_nl"*)
27535 expr "X$arg" : "X\\(.*\\)$as_nl";
27536 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27537 esac;
27538 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27539 '
27540 export as_echo_n_body
27541 as_echo_n='sh -c $as_echo_n_body as_echo'
27542 fi
27543 export as_echo_body
27544 as_echo='sh -c $as_echo_body as_echo'
27545 fi
27546
27547 # The user is always right.
27548 if test "${PATH_SEPARATOR+set}" != set; then
27549 PATH_SEPARATOR=:
27550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27551 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27552 PATH_SEPARATOR=';'
27553 }
27554 fi
27555
27556
27557 # IFS
27558 # We need space, tab and new line, in precisely that order. Quoting is
27559 # there to prevent editors from complaining about space-tab.
27560 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27561 # splitting by setting IFS to empty value.)
27562 IFS=" "" $as_nl"
27563
27564 # Find who we are. Look in the path if we contain no directory separator.
27565 case $0 in #((
27566 *[\\/]* ) as_myself=$0 ;;
27567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27568 for as_dir in $PATH
27569 do
27570 IFS=$as_save_IFS
27571 test -z "$as_dir" && as_dir=.
27572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27573 done
27574 IFS=$as_save_IFS
27575
27576 ;;
27577 esac
27578 # We did not find ourselves, most probably we were run as `sh COMMAND'
27579 # in which case we are not to be found in the path.
27580 if test "x$as_myself" = x; then
27581 as_myself=$0
27582 fi
27583 if test ! -f "$as_myself"; then
27584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27585 exit 1
27586 fi
27587
27588 # Unset variables that we do not need and which cause bugs (e.g. in
27589 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27590 # suppresses any "Segmentation fault" message there. '((' could
27591 # trigger a bug in pdksh 5.2.14.
27592 for as_var in BASH_ENV ENV MAIL MAILPATH
27593 do eval test x\${$as_var+set} = xset \
27594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27595 done
27596 PS1='$ '
27597 PS2='> '
27598 PS4='+ '
27599
27600 # NLS nuisances.
27601 LC_ALL=C
27602 export LC_ALL
27603 LANGUAGE=C
27604 export LANGUAGE
27605
27606 # CDPATH.
27607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27608
27609
27610 # as_fn_error ERROR [LINENO LOG_FD]
27611 # ---------------------------------
27612 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27613 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27614 # script with status $?, using 1 if that was 0.
27615 as_fn_error ()
27616 {
27617 as_status=$?; test $as_status -eq 0 && as_status=1
27618 if test "$3"; then
27619 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27621 fi
27622 $as_echo "$as_me: error: $1" >&2
27623 as_fn_exit $as_status
27624 } # as_fn_error
27625
27626
27627 # as_fn_set_status STATUS
27628 # -----------------------
27629 # Set $? to STATUS, without forking.
27630 as_fn_set_status ()
27631 {
27632 return $1
27633 } # as_fn_set_status
27634
27635 # as_fn_exit STATUS
27636 # -----------------
27637 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27638 as_fn_exit ()
27639 {
27640 set +e
27641 as_fn_set_status $1
27642 exit $1
27643 } # as_fn_exit
27644
27645 # as_fn_unset VAR
27646 # ---------------
27647 # Portably unset VAR.
27648 as_fn_unset ()
27649 {
27650 { eval $1=; unset $1;}
27651 }
27652 as_unset=as_fn_unset
27653 # as_fn_append VAR VALUE
27654 # ----------------------
27655 # Append the text in VALUE to the end of the definition contained in VAR. Take
27656 # advantage of any shell optimizations that allow amortized linear growth over
27657 # repeated appends, instead of the typical quadratic growth present in naive
27658 # implementations.
27659 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27660 eval 'as_fn_append ()
27661 {
27662 eval $1+=\$2
27663 }'
27664 else
27665 as_fn_append ()
27666 {
27667 eval $1=\$$1\$2
27668 }
27669 fi # as_fn_append
27670
27671 # as_fn_arith ARG...
27672 # ------------------
27673 # Perform arithmetic evaluation on the ARGs, and store the result in the
27674 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27675 # must be portable across $(()) and expr.
27676 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27677 eval 'as_fn_arith ()
27678 {
27679 as_val=$(( $* ))
27680 }'
27681 else
27682 as_fn_arith ()
27683 {
27684 as_val=`expr "$@" || test $? -eq 1`
27685 }
27686 fi # as_fn_arith
27687
27688
27689 if expr a : '\(a\)' >/dev/null 2>&1 &&
27690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27691 as_expr=expr
27692 else
27693 as_expr=false
27694 fi
27695
27696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27697 as_basename=basename
27698 else
27699 as_basename=false
27700 fi
27701
27702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27703 as_dirname=dirname
27704 else
27705 as_dirname=false
27706 fi
27707
27708 as_me=`$as_basename -- "$0" ||
27709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27710 X"$0" : 'X\(//\)$' \| \
27711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27712 $as_echo X/"$0" |
27713 sed '/^.*\/\([^/][^/]*\)\/*$/{
27714 s//\1/
27715 q
27716 }
27717 /^X\/\(\/\/\)$/{
27718 s//\1/
27719 q
27720 }
27721 /^X\/\(\/\).*/{
27722 s//\1/
27723 q
27724 }
27725 s/.*/./; q'`
27726
27727 # Avoid depending upon Character Ranges.
27728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27731 as_cr_digits='0123456789'
27732 as_cr_alnum=$as_cr_Letters$as_cr_digits
27733
27734 ECHO_C= ECHO_N= ECHO_T=
27735 case `echo -n x` in #(((((
27736 -n*)
27737 case `echo 'xy\c'` in
27738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27739 xy) ECHO_C='\c';;
27740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27741 ECHO_T=' ';;
27742 esac;;
27743 *)
27744 ECHO_N='-n';;
27745 esac
27746
27747 rm -f conf$$ conf$$.exe conf$$.file
27748 if test -d conf$$.dir; then
27749 rm -f conf$$.dir/conf$$.file
27750 else
27751 rm -f conf$$.dir
27752 mkdir conf$$.dir 2>/dev/null
27753 fi
27754 if (echo >conf$$.file) 2>/dev/null; then
27755 if ln -s conf$$.file conf$$ 2>/dev/null; then
27756 as_ln_s='ln -s'
27757 # ... but there are two gotchas:
27758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27760 # In both cases, we have to default to `cp -p'.
27761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27762 as_ln_s='cp -p'
27763 elif ln conf$$.file conf$$ 2>/dev/null; then
27764 as_ln_s=ln
27765 else
27766 as_ln_s='cp -p'
27767 fi
27768 else
27769 as_ln_s='cp -p'
27770 fi
27771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27772 rmdir conf$$.dir 2>/dev/null
27773
27774
27775 # as_fn_mkdir_p
27776 # -------------
27777 # Create "$as_dir" as a directory, including parents if necessary.
27778 as_fn_mkdir_p ()
27779 {
27780
27781 case $as_dir in #(
27782 -*) as_dir=./$as_dir;;
27783 esac
27784 test -d "$as_dir" || eval $as_mkdir_p || {
27785 as_dirs=
27786 while :; do
27787 case $as_dir in #(
27788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27789 *) as_qdir=$as_dir;;
27790 esac
27791 as_dirs="'$as_qdir' $as_dirs"
27792 as_dir=`$as_dirname -- "$as_dir" ||
27793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27794 X"$as_dir" : 'X\(//\)[^/]' \| \
27795 X"$as_dir" : 'X\(//\)$' \| \
27796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27797 $as_echo X"$as_dir" |
27798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27799 s//\1/
27800 q
27801 }
27802 /^X\(\/\/\)[^/].*/{
27803 s//\1/
27804 q
27805 }
27806 /^X\(\/\/\)$/{
27807 s//\1/
27808 q
27809 }
27810 /^X\(\/\).*/{
27811 s//\1/
27812 q
27813 }
27814 s/.*/./; q'`
27815 test -d "$as_dir" && break
27816 done
27817 test -z "$as_dirs" || eval "mkdir $as_dirs"
27818 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27819
27820
27821 } # as_fn_mkdir_p
27822 if mkdir -p . 2>/dev/null; then
27823 as_mkdir_p='mkdir -p "$as_dir"'
27824 else
27825 test -d ./-p && rmdir ./-p
27826 as_mkdir_p=false
27827 fi
27828
27829 if test -x / >/dev/null 2>&1; then
27830 as_test_x='test -x'
27831 else
27832 if ls -dL / >/dev/null 2>&1; then
27833 as_ls_L_option=L
27834 else
27835 as_ls_L_option=
27836 fi
27837 as_test_x='
27838 eval sh -c '\''
27839 if test -d "$1"; then
27840 test -d "$1/.";
27841 else
27842 case $1 in #(
27843 -*)set "./$1";;
27844 esac;
27845 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27846 ???[sx]*):;;*)false;;esac;fi
27847 '\'' sh
27848 '
27849 fi
27850 as_executable_p=$as_test_x
27851
27852 # Sed expression to map a string onto a valid CPP name.
27853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27854
27855 # Sed expression to map a string onto a valid variable name.
27856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27857
27858
27859 exec 6>&1
27860 ## ----------------------------------- ##
27861 ## Main body of $CONFIG_STATUS script. ##
27862 ## ----------------------------------- ##
27863 _ASEOF
27864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27865
27866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27867 # Save the log message, to keep $0 and so on meaningful, and to
27868 # report actual input values of CONFIG_FILES etc. instead of their
27869 # values after options handling.
27870 ac_log="
27871 This file was extended by $as_me, which was
27872 generated by GNU Autoconf 2.64. Invocation command line was
27873
27874 CONFIG_FILES = $CONFIG_FILES
27875 CONFIG_HEADERS = $CONFIG_HEADERS
27876 CONFIG_LINKS = $CONFIG_LINKS
27877 CONFIG_COMMANDS = $CONFIG_COMMANDS
27878 $ $0 $@
27879
27880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27881 "
27882
27883 _ACEOF
27884
27885 case $ac_config_files in *"
27886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27887 esac
27888
27889 case $ac_config_headers in *"
27890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27891 esac
27892
27893
27894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27895 # Files that config.status was made for.
27896 config_files="$ac_config_files"
27897 config_headers="$ac_config_headers"
27898 config_commands="$ac_config_commands"
27899
27900 _ACEOF
27901
27902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27903 ac_cs_usage="\
27904 \`$as_me' instantiates files and other configuration actions
27905 from templates according to the current configuration. Unless the files
27906 and actions are specified as TAGs, all are instantiated by default.
27907
27908 Usage: $0 [OPTION]... [TAG]...
27909
27910 -h, --help print this help, then exit
27911 -V, --version print version number and configuration settings, then exit
27912 -q, --quiet, --silent
27913 do not print progress messages
27914 -d, --debug don't remove temporary files
27915 --recheck update $as_me by reconfiguring in the same conditions
27916 --file=FILE[:TEMPLATE]
27917 instantiate the configuration file FILE
27918 --header=FILE[:TEMPLATE]
27919 instantiate the configuration header FILE
27920
27921 Configuration files:
27922 $config_files
27923
27924 Configuration headers:
27925 $config_headers
27926
27927 Configuration commands:
27928 $config_commands
27929
27930 Report bugs to the package provider."
27931
27932 _ACEOF
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 ac_cs_version="\\
27935 config.status
27936 configured by $0, generated by GNU Autoconf 2.64,
27937 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27938
27939 Copyright (C) 2009 Free Software Foundation, Inc.
27940 This config.status script is free software; the Free Software Foundation
27941 gives unlimited permission to copy, distribute and modify it."
27942
27943 ac_pwd='$ac_pwd'
27944 srcdir='$srcdir'
27945 AWK='$AWK'
27946 test -n "\$AWK" || AWK=awk
27947 _ACEOF
27948
27949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27950 # The default lists apply if the user does not specify any file.
27951 ac_need_defaults=:
27952 while test $# != 0
27953 do
27954 case $1 in
27955 --*=*)
27956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27957 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27958 ac_shift=:
27959 ;;
27960 *)
27961 ac_option=$1
27962 ac_optarg=$2
27963 ac_shift=shift
27964 ;;
27965 esac
27966
27967 case $ac_option in
27968 # Handling of the options.
27969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27970 ac_cs_recheck=: ;;
27971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27972 $as_echo "$ac_cs_version"; exit ;;
27973 --debug | --debu | --deb | --de | --d | -d )
27974 debug=: ;;
27975 --file | --fil | --fi | --f )
27976 $ac_shift
27977 case $ac_optarg in
27978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27979 esac
27980 as_fn_append CONFIG_FILES " '$ac_optarg'"
27981 ac_need_defaults=false;;
27982 --header | --heade | --head | --hea )
27983 $ac_shift
27984 case $ac_optarg in
27985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27986 esac
27987 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27988 ac_need_defaults=false;;
27989 --he | --h)
27990 # Conflict between --help and --header
27991 as_fn_error "ambiguous option: \`$1'
27992 Try \`$0 --help' for more information.";;
27993 --help | --hel | -h )
27994 $as_echo "$ac_cs_usage"; exit ;;
27995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27996 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27997 ac_cs_silent=: ;;
27998
27999 # This is an error.
28000 -*) as_fn_error "unrecognized option: \`$1'
28001 Try \`$0 --help' for more information." ;;
28002
28003 *) as_fn_append ac_config_targets " $1"
28004 ac_need_defaults=false ;;
28005
28006 esac
28007 shift
28008 done
28009
28010 ac_configure_extra_args=
28011
28012 if $ac_cs_silent; then
28013 exec 6>/dev/null
28014 ac_configure_extra_args="$ac_configure_extra_args --silent"
28015 fi
28016
28017 _ACEOF
28018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28019 if \$ac_cs_recheck; then
28020 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28021 shift
28022 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28023 CONFIG_SHELL='$SHELL'
28024 export CONFIG_SHELL
28025 exec "\$@"
28026 fi
28027
28028 _ACEOF
28029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28030 exec 5>>config.log
28031 {
28032 echo
28033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28034 ## Running $as_me. ##
28035 _ASBOX
28036 $as_echo "$ac_log"
28037 } >&5
28038
28039 _ACEOF
28040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28041 #
28042 # INIT-COMMANDS
28043 #
28044 subdirs='$subdirs'
28045
28046 _ACEOF
28047
28048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28049
28050 # Handling of arguments.
28051 for ac_config_target in $ac_config_targets
28052 do
28053 case $ac_config_target in
28054 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28055 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28056 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28057 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28058 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28059 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28060
28061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28062 esac
28063 done
28064
28065
28066 # If the user did not use the arguments to specify the items to instantiate,
28067 # then the envvar interface is used. Set only those that are not.
28068 # We use the long form for the default assignment because of an extremely
28069 # bizarre bug on SunOS 4.1.3.
28070 if $ac_need_defaults; then
28071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28074 fi
28075
28076 # Have a temporary directory for convenience. Make it in the build tree
28077 # simply because there is no reason against having it here, and in addition,
28078 # creating and moving files from /tmp can sometimes cause problems.
28079 # Hook for its removal unless debugging.
28080 # Note that there is a small window in which the directory will not be cleaned:
28081 # after its creation but before its name has been assigned to `$tmp'.
28082 $debug ||
28083 {
28084 tmp=
28085 trap 'exit_status=$?
28086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28087 ' 0
28088 trap 'as_fn_exit 1' 1 2 13 15
28089 }
28090 # Create a (secure) tmp directory for tmp files.
28091
28092 {
28093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28094 test -n "$tmp" && test -d "$tmp"
28095 } ||
28096 {
28097 tmp=./conf$$-$RANDOM
28098 (umask 077 && mkdir "$tmp")
28099 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28100
28101 # Set up the scripts for CONFIG_FILES section.
28102 # No need to generate them if there are no CONFIG_FILES.
28103 # This happens for instance with `./config.status config.h'.
28104 if test -n "$CONFIG_FILES"; then
28105
28106 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28107 ac_cs_awk_getline=:
28108 ac_cs_awk_pipe_init=
28109 ac_cs_awk_read_file='
28110 while ((getline aline < (F[key])) > 0)
28111 print(aline)
28112 close(F[key])'
28113 ac_cs_awk_pipe_fini=
28114 else
28115 ac_cs_awk_getline=false
28116 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28117 ac_cs_awk_read_file='
28118 print "|#_!!_#|"
28119 print "cat " F[key] " &&"
28120 '$ac_cs_awk_pipe_init
28121 # The final `:' finishes the AND list.
28122 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28123 fi
28124 ac_cr=`echo X | tr X '\015'`
28125 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28126 # But we know of no other shell where ac_cr would be empty at this
28127 # point, so we can use a bashism as a fallback.
28128 if test "x$ac_cr" = x; then
28129 eval ac_cr=\$\'\\r\'
28130 fi
28131 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28132 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28133 ac_cs_awk_cr='\r'
28134 else
28135 ac_cs_awk_cr=$ac_cr
28136 fi
28137
28138 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28139 _ACEOF
28140
28141 # Create commands to substitute file output variables.
28142 {
28143 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28144 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28145 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28146 echo "_ACAWK" &&
28147 echo "_ACEOF"
28148 } >conf$$files.sh &&
28149 . ./conf$$files.sh ||
28150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28151 rm -f conf$$files.sh
28152
28153 {
28154 echo "cat >conf$$subs.awk <<_ACEOF" &&
28155 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28156 echo "_ACEOF"
28157 } >conf$$subs.sh ||
28158 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28159 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28160 ac_delim='%!_!# '
28161 for ac_last_try in false false false false false :; do
28162 . ./conf$$subs.sh ||
28163 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28164
28165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28166 if test $ac_delim_n = $ac_delim_num; then
28167 break
28168 elif $ac_last_try; then
28169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28170 else
28171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28172 fi
28173 done
28174 rm -f conf$$subs.sh
28175
28176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28177 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28178 _ACEOF
28179 sed -n '
28180 h
28181 s/^/S["/; s/!.*/"]=/
28182 p
28183 g
28184 s/^[^!]*!//
28185 :repl
28186 t repl
28187 s/'"$ac_delim"'$//
28188 t delim
28189 :nl
28190 h
28191 s/\(.\{148\}\).*/\1/
28192 t more1
28193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28194 p
28195 n
28196 b repl
28197 :more1
28198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28199 p
28200 g
28201 s/.\{148\}//
28202 t nl
28203 :delim
28204 h
28205 s/\(.\{148\}\).*/\1/
28206 t more2
28207 s/["\\]/\\&/g; s/^/"/; s/$/"/
28208 p
28209 b
28210 :more2
28211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28212 p
28213 g
28214 s/.\{148\}//
28215 t delim
28216 ' <conf$$subs.awk | sed '
28217 /^[^""]/{
28218 N
28219 s/\n//
28220 }
28221 ' >>$CONFIG_STATUS || ac_write_fail=1
28222 rm -f conf$$subs.awk
28223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28224 _ACAWK
28225 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28226 for (key in S) S_is_set[key] = 1
28227 FS = "\a"
28228 \$ac_cs_awk_pipe_init
28229 }
28230 {
28231 line = $ 0
28232 nfields = split(line, field, "@")
28233 substed = 0
28234 len = length(field[1])
28235 for (i = 2; i < nfields; i++) {
28236 key = field[i]
28237 keylen = length(key)
28238 if (S_is_set[key]) {
28239 value = S[key]
28240 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28241 len += length(value) + length(field[++i])
28242 substed = 1
28243 } else
28244 len += 1 + keylen
28245 }
28246 if (nfields == 3 && !substed) {
28247 key = field[2]
28248 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28249 \$ac_cs_awk_read_file
28250 next
28251 }
28252 }
28253 print line
28254 }
28255 \$ac_cs_awk_pipe_fini
28256 _ACAWK
28257 _ACEOF
28258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28261 else
28262 cat
28263 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28264 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28265 _ACEOF
28266
28267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28269 # trailing colons and then remove the whole line if VPATH becomes empty
28270 # (actually we leave an empty line to preserve line numbers).
28271 if test "x$srcdir" = x.; then
28272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28273 s/:*\$(srcdir):*/:/
28274 s/:*\${srcdir}:*/:/
28275 s/:*@srcdir@:*/:/
28276 s/^\([^=]*=[ ]*\):*/\1/
28277 s/:*$//
28278 s/^[^=]*=[ ]*$//
28279 }'
28280 fi
28281
28282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28283 fi # test -n "$CONFIG_FILES"
28284
28285 # Set up the scripts for CONFIG_HEADERS section.
28286 # No need to generate them if there are no CONFIG_HEADERS.
28287 # This happens for instance with `./config.status Makefile'.
28288 if test -n "$CONFIG_HEADERS"; then
28289 cat >"$tmp/defines.awk" <<\_ACAWK ||
28290 BEGIN {
28291 _ACEOF
28292
28293 # Transform confdefs.h into an awk script `defines.awk', embedded as
28294 # here-document in config.status, that substitutes the proper values into
28295 # config.h.in to produce config.h.
28296
28297 # Create a delimiter string that does not exist in confdefs.h, to ease
28298 # handling of long lines.
28299 ac_delim='%!_!# '
28300 for ac_last_try in false false :; do
28301 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28302 if test -z "$ac_t"; then
28303 break
28304 elif $ac_last_try; then
28305 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28306 else
28307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28308 fi
28309 done
28310
28311 # For the awk script, D is an array of macro values keyed by name,
28312 # likewise P contains macro parameters if any. Preserve backslash
28313 # newline sequences.
28314
28315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28316 sed -n '
28317 s/.\{148\}/&'"$ac_delim"'/g
28318 t rset
28319 :rset
28320 s/^[ ]*#[ ]*define[ ][ ]*/ /
28321 t def
28322 d
28323 :def
28324 s/\\$//
28325 t bsnl
28326 s/["\\]/\\&/g
28327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28328 D["\1"]=" \3"/p
28329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28330 d
28331 :bsnl
28332 s/["\\]/\\&/g
28333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28334 D["\1"]=" \3\\\\\\n"\\/p
28335 t cont
28336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28337 t cont
28338 d
28339 :cont
28340 n
28341 s/.\{148\}/&'"$ac_delim"'/g
28342 t clear
28343 :clear
28344 s/\\$//
28345 t bsnlc
28346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28347 d
28348 :bsnlc
28349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28350 b cont
28351 ' <confdefs.h | sed '
28352 s/'"$ac_delim"'/"\\\
28353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28354
28355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28356 for (key in D) D_is_set[key] = 1
28357 FS = "\a"
28358 }
28359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28360 line = \$ 0
28361 split(line, arg, " ")
28362 if (arg[1] == "#") {
28363 defundef = arg[2]
28364 mac1 = arg[3]
28365 } else {
28366 defundef = substr(arg[1], 2)
28367 mac1 = arg[2]
28368 }
28369 split(mac1, mac2, "(") #)
28370 macro = mac2[1]
28371 prefix = substr(line, 1, index(line, defundef) - 1)
28372 if (D_is_set[macro]) {
28373 # Preserve the white space surrounding the "#".
28374 print prefix "define", macro P[macro] D[macro]
28375 next
28376 } else {
28377 # Replace #undef with comments. This is necessary, for example,
28378 # in the case of _POSIX_SOURCE, which is predefined and required
28379 # on some systems where configure will not decide to define it.
28380 if (defundef == "undef") {
28381 print "/*", prefix defundef, macro, "*/"
28382 next
28383 }
28384 }
28385 }
28386 { print }
28387 _ACAWK
28388 _ACEOF
28389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28390 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28391 fi # test -n "$CONFIG_HEADERS"
28392
28393
28394 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28395 shift
28396 for ac_tag
28397 do
28398 case $ac_tag in
28399 :[FHLC]) ac_mode=$ac_tag; continue;;
28400 esac
28401 case $ac_mode$ac_tag in
28402 :[FHL]*:*);;
28403 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28404 :[FH]-) ac_tag=-:-;;
28405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28406 esac
28407 ac_save_IFS=$IFS
28408 IFS=:
28409 set x $ac_tag
28410 IFS=$ac_save_IFS
28411 shift
28412 ac_file=$1
28413 shift
28414
28415 case $ac_mode in
28416 :L) ac_source=$1;;
28417 :[FH])
28418 ac_file_inputs=
28419 for ac_f
28420 do
28421 case $ac_f in
28422 -) ac_f="$tmp/stdin";;
28423 *) # Look for the file first in the build tree, then in the source tree
28424 # (if the path is not absolute). The absolute path cannot be DOS-style,
28425 # because $ac_f cannot contain `:'.
28426 test -f "$ac_f" ||
28427 case $ac_f in
28428 [\\/$]*) false;;
28429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28430 esac ||
28431 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28432 esac
28433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28434 as_fn_append ac_file_inputs " '$ac_f'"
28435 done
28436
28437 # Let's still pretend it is `configure' which instantiates (i.e., don't
28438 # use $as_me), people would be surprised to read:
28439 # /* config.h. Generated by config.status. */
28440 configure_input='Generated from '`
28441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28442 `' by configure.'
28443 if test x"$ac_file" != x-; then
28444 configure_input="$ac_file. $configure_input"
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28446 $as_echo "$as_me: creating $ac_file" >&6;}
28447 fi
28448 # Neutralize special characters interpreted by sed in replacement strings.
28449 case $configure_input in #(
28450 *\&* | *\|* | *\\* )
28451 ac_sed_conf_input=`$as_echo "$configure_input" |
28452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28453 *) ac_sed_conf_input=$configure_input;;
28454 esac
28455
28456 case $ac_tag in
28457 *:-:* | *:-) cat >"$tmp/stdin" \
28458 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28459 esac
28460 ;;
28461 esac
28462
28463 ac_dir=`$as_dirname -- "$ac_file" ||
28464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28465 X"$ac_file" : 'X\(//\)[^/]' \| \
28466 X"$ac_file" : 'X\(//\)$' \| \
28467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28468 $as_echo X"$ac_file" |
28469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28470 s//\1/
28471 q
28472 }
28473 /^X\(\/\/\)[^/].*/{
28474 s//\1/
28475 q
28476 }
28477 /^X\(\/\/\)$/{
28478 s//\1/
28479 q
28480 }
28481 /^X\(\/\).*/{
28482 s//\1/
28483 q
28484 }
28485 s/.*/./; q'`
28486 as_dir="$ac_dir"; as_fn_mkdir_p
28487 ac_builddir=.
28488
28489 case "$ac_dir" in
28490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28491 *)
28492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28493 # A ".." for each directory in $ac_dir_suffix.
28494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28495 case $ac_top_builddir_sub in
28496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28498 esac ;;
28499 esac
28500 ac_abs_top_builddir=$ac_pwd
28501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28502 # for backward compatibility:
28503 ac_top_builddir=$ac_top_build_prefix
28504
28505 case $srcdir in
28506 .) # We are building in place.
28507 ac_srcdir=.
28508 ac_top_srcdir=$ac_top_builddir_sub
28509 ac_abs_top_srcdir=$ac_pwd ;;
28510 [\\/]* | ?:[\\/]* ) # Absolute name.
28511 ac_srcdir=$srcdir$ac_dir_suffix;
28512 ac_top_srcdir=$srcdir
28513 ac_abs_top_srcdir=$srcdir ;;
28514 *) # Relative name.
28515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28516 ac_top_srcdir=$ac_top_build_prefix$srcdir
28517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28518 esac
28519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28520
28521
28522 case $ac_mode in
28523 :F)
28524 #
28525 # CONFIG_FILE
28526 #
28527
28528 _ACEOF
28529
28530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28531 # If the template does not know about datarootdir, expand it.
28532 # FIXME: This hack should be removed a few years after 2.60.
28533 ac_datarootdir_hack=; ac_datarootdir_seen=
28534 ac_sed_dataroot='
28535 /datarootdir/ {
28536 p
28537 q
28538 }
28539 /@datadir@/p
28540 /@docdir@/p
28541 /@infodir@/p
28542 /@localedir@/p
28543 /@mandir@/p'
28544 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28545 *datarootdir*) ac_datarootdir_seen=yes;;
28546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28548 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28549 _ACEOF
28550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28551 ac_datarootdir_hack='
28552 s&@datadir@&$datadir&g
28553 s&@docdir@&$docdir&g
28554 s&@infodir@&$infodir&g
28555 s&@localedir@&$localedir&g
28556 s&@mandir@&$mandir&g
28557 s&\\\${datarootdir}&$datarootdir&g' ;;
28558 esac
28559 _ACEOF
28560
28561 # Neutralize VPATH when `$srcdir' = `.'.
28562 # Shell code in configure.ac might set extrasub.
28563 # FIXME: do we really want to maintain this feature?
28564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28565 ac_sed_extra="$ac_vpsub
28566 $extrasub
28567 _ACEOF
28568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28569 :t
28570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28571 s|@configure_input@|$ac_sed_conf_input|;t t
28572 s&@top_builddir@&$ac_top_builddir_sub&;t t
28573 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28574 s&@srcdir@&$ac_srcdir&;t t
28575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28576 s&@top_srcdir@&$ac_top_srcdir&;t t
28577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28578 s&@builddir@&$ac_builddir&;t t
28579 s&@abs_builddir@&$ac_abs_builddir&;t t
28580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28581 $ac_datarootdir_hack
28582 "
28583 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28584 if $ac_cs_awk_getline; then
28585 $AWK -f "$tmp/subs.awk"
28586 else
28587 $AWK -f "$tmp/subs.awk" | $SHELL
28588 fi >$tmp/out \
28589 || as_fn_error "could not create $ac_file" "$LINENO" 5
28590
28591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28595 which seems to be undefined. Please make sure it is defined." >&5
28596 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28597 which seems to be undefined. Please make sure it is defined." >&2;}
28598
28599 rm -f "$tmp/stdin"
28600 case $ac_file in
28601 -) cat "$tmp/out" && rm -f "$tmp/out";;
28602 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28603 esac \
28604 || as_fn_error "could not create $ac_file" "$LINENO" 5
28605 ;;
28606 :H)
28607 #
28608 # CONFIG_HEADER
28609 #
28610 if test x"$ac_file" != x-; then
28611 {
28612 $as_echo "/* $configure_input */" \
28613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28614 } >"$tmp/config.h" \
28615 || as_fn_error "could not create $ac_file" "$LINENO" 5
28616 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28618 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28619 else
28620 rm -f "$ac_file"
28621 mv "$tmp/config.h" "$ac_file" \
28622 || as_fn_error "could not create $ac_file" "$LINENO" 5
28623 fi
28624 else
28625 $as_echo "/* $configure_input */" \
28626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28627 || as_fn_error "could not create -" "$LINENO" 5
28628 fi
28629 ;;
28630
28631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28632 $as_echo "$as_me: executing $ac_file commands" >&6;}
28633 ;;
28634 esac
28635
28636
28637 case $ac_file$ac_mode in
28638 "as":F) chmod +x as ;;
28639 "collect-ld":F) chmod +x collect-ld ;;
28640 "nm":F) chmod +x nm ;;
28641 "default":C)
28642 case ${CONFIG_HEADERS} in
28643 *auto-host.h:config.in*)
28644 echo > cstamp-h ;;
28645 esac
28646 # Make sure all the subdirs exist.
28647 for d in $subdirs doc build common c-family
28648 do
28649 test -d $d || mkdir $d
28650 done
28651 ;;
28652
28653 esac
28654 done # for ac_tag
28655
28656
28657 as_fn_exit 0
28658 _ACEOF
28659 ac_clean_files=$ac_clean_files_save
28660
28661 test $ac_write_fail = 0 ||
28662 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28663
28664
28665 # configure is writing to config.log, and then calls config.status.
28666 # config.status does its own redirection, appending to config.log.
28667 # Unfortunately, on DOS this fails, as config.log is still kept open
28668 # by configure, so config.status won't be able to write to it; its
28669 # output is simply discarded. So we exec the FD to /dev/null,
28670 # effectively closing config.log, so it can be properly (re)opened and
28671 # appended to by config.status. When coming back to configure, we
28672 # need to make the FD available again.
28673 if test "$no_create" != yes; then
28674 ac_cs_success=:
28675 ac_config_status_args=
28676 test "$silent" = yes &&
28677 ac_config_status_args="$ac_config_status_args --quiet"
28678 exec 5>/dev/null
28679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28680 exec 5>>config.log
28681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28682 # would make configure fail if this is the last instruction.
28683 $ac_cs_success || as_fn_exit $?
28684 fi
28685 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28687 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28688 fi
28689
28690