20020201-1.c: Remove declarations for exit, abort, rand, srand.
[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 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 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_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 noexception_flags
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 PICFLAG_FOR_TARGET
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='option_includes
858 language_hooks'
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 with_local_prefix
863 with_gxx_include_dir
864 with_cpp_install_dir
865 enable_generated_files_in_srcdir
866 with_gnu_ld
867 with_ld
868 with_demangler_in_ld
869 with_gnu_as
870 with_as
871 enable_largefile
872 enable_werror_always
873 enable_checking
874 enable_coverage
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
877 with_stabs
878 enable_multilib
879 enable___cxa_atexit
880 enable_decimal_float
881 enable_fixed_point
882 enable_threads
883 enable_tls
884 enable_objc_gc
885 with_dwarf2
886 enable_shared
887 with_native_system_header_dir
888 with_build_sysroot
889 with_sysroot
890 with_specs
891 with_pkgversion
892 with_bugurl
893 enable_languages
894 with_multilib_list
895 enable_rpath
896 with_libiconv_prefix
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_initfini_array
910 enable_comdat
911 enable_gnu_unique_object
912 enable_linker_build_id
913 with_long_double_128
914 with_gc
915 with_system_zlib
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 ISLLIBS
938 ISLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1584 to use
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 package
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 x86
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1605 on Windows hosts
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1609 of the registry key
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1617 glibc systems
1618 --enable-initfini-array use .init_array/.fini_array sections
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-native-system-header-dir=dir
1653 use dir as the directory to look for standard
1654 system header files in. Defaults to /usr/include.
1655 --with-build-sysroot=sysroot
1656 use sysroot as the system root during the build
1657 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1658 --with-specs=SPECS add SPECS to driver command-line processing
1659 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1660 --with-bugurl=URL Direct users to URL to report a bug
1661 --with-multilib-list select multilibs (SH and x86-64 only)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1664 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1665 --with-pic try to use only PIC/non-PIC objects [default=use
1666 both]
1667 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1668 --with-plugin-ld=[ARG] specify the plugin linker
1669 --with-long-double-128 use 128-bit long double by default
1670 --with-gc={page,zone} choose the garbage collection mechanism to use with
1671 the compiler
1672 --with-system-zlib use installed libz
1673 --with-linker-hash-style={sysv,gnu,both}
1674 specify the linker hash style
1675
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1684 CXX C++ compiler command
1685 CXXFLAGS C++ compiler flags
1686 CPP C preprocessor
1687 CXXCPP C++ preprocessor
1688 GMPLIBS How to link GMP
1689 GMPINC How to find GMP include files
1690 ISLLIBS How to link ISL
1691 ISLINC How to find ISL include files
1692 CLOOGLIBS How to link CLOOG
1693 CLOOGINC How to find CLOOG include files
1694
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1697
1698 Report bugs to the package provider.
1699 _ACEOF
1700 ac_status=$?
1701 fi
1702
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
1709 ac_builddir=.
1710
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *)
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1726
1727 case $srcdir in
1728 .) # We are building in place.
1729 ac_srcdir=.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1751 else
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1755 done
1756 fi
1757
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760 cat <<\_ACEOF
1761 configure
1762 generated by GNU Autoconf 2.64
1763
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768 exit
1769 fi
1770
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1774
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1810
1811 } # ac_fn_c_try_compile
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_cpp ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev/null && {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_cpp
1887
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 fi
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_header_compiler=yes
1916 else
1917 ac_header_compiler=no
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1922
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931 ac_header_preproc=yes
1932 else
1933 ac_header_preproc=no
1934 fi
1935 rm -f conftest.err conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1938
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 yes:no: )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 ;;
1947 no:yes:* )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 ;;
1959 esac
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=\$ac_header_compiler"
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 fi
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973 } # ac_fn_c_check_header_mongrel
1974
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1979 ac_fn_c_try_run ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1990 ac_status=$?
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=$ac_status
2010 fi
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 return $ac_retval
2014
2015 } # ac_fn_c_try_run
2016
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$3=yes"
2036 else
2037 eval "$3=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
2046 } # ac_fn_c_check_header_compile
2047
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 # computed
2053 ac_fn_c_compute_int ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2065 test_array [0] = 0
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0
2082
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=$ac_mid; break
2089 else
2090 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2091 if test $ac_lo -le $ac_mid; then
2092 ac_lo= ac_hi=
2093 break
2094 fi
2095 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) < 0)];
2107 test_array [0] = 0
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=-1 ac_mid=-1
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2123 test_array [0] = 0
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=$ac_mid; break
2131 else
2132 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2133 if test $ac_mid -le $ac_hi; then
2134 ac_lo= ac_hi=
2135 break
2136 fi
2137 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 ac_lo= ac_hi=
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 test_array [0] = 0
2158
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165 else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2182 int
2183 main ()
2184 {
2185
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2190 {
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2195 }
2196 else
2197 {
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2202 }
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214 ac_retval=1
2215 fi
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2219
2220 fi
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 return $ac_retval
2223
2224 } # ac_fn_c_compute_int
2225
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 eval "$3=no"
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof ($2))
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 if (sizeof (($2)))
2259 return 0;
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265
2266 else
2267 eval "$3=yes"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277
2278 } # ac_fn_c_check_type
2279
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 # accordingly.
2284 ac_fn_c_find_intX_t ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=no"
2293 for ac_type in int$2_t 'int' 'long int' \
2294 'long long int' 'short int' 'signed char'; do
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2302 test_array [0] = 0
2303
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2317 test_array [0] = 0
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324
2325 else
2326 case $ac_type in #(
2327 int$2_t) :
2328 eval "$3=yes" ;; #(
2329 *) :
2330 eval "$3=\$ac_type" ;;
2331 esac
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 eval as_val=\$$3
2337 if test "x$as_val" = x""no; then :
2338
2339 else
2340 break
2341 fi
2342 done
2343 fi
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348
2349 } # ac_fn_c_find_intX_t
2350
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_c_try_link ()
2355 {
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2371 fi
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
2378 $as_test_x conftest$ac_exeext
2379 }; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386 fi
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 return $ac_retval
2394
2395 } # ac_fn_c_try_link
2396
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 # accordingly.
2401 ac_fn_c_find_uintX_t ()
2402 {
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 eval "$3=no"
2410 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $ac_includes_default
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2419 test_array [0] = 0
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 case $ac_type in #(
2427 uint$2_t) :
2428 eval "$3=yes" ;; #(
2429 *) :
2430 eval "$3=\$ac_type" ;;
2431 esac
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2436
2437 else
2438 break
2439 fi
2440 done
2441 fi
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
2447 } # ac_fn_c_find_uintX_t
2448
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 #include <$2>
2463 _ACEOF
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2465 eval "$3=yes"
2466 else
2467 eval "$3=no"
2468 fi
2469 rm -f conftest.err conftest.$ac_ext
2470 fi
2471 eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475
2476 } # ac_fn_c_check_header_preproc
2477
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2482 {
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 ac_status=$?
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2497 fi
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } >/dev/null && {
2500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2502 }; then :
2503 ac_retval=0
2504 else
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_retval=1
2509 fi
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 return $ac_retval
2512
2513 } # ac_fn_cxx_try_cpp
2514
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc ()
2519 {
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_cxx_try_cpp "$LINENO"; then :
2531 eval "$3=yes"
2532 else
2533 eval "$3=no"
2534 fi
2535 rm -f conftest.err conftest.$ac_ext
2536 fi
2537 eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541
2542 } # ac_fn_cxx_check_header_preproc
2543
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2548 {
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559 #define $2 innocuous_$2
2560
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char $2 (); below.
2563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564 <limits.h> exists even on freestanding compilers. */
2565
2566 #ifdef __STDC__
2567 # include <limits.h>
2568 #else
2569 # include <assert.h>
2570 #endif
2571
2572 #undef $2
2573
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char $2 ();
2581 /* The GNU C library defines this for functions which it implements
2582 to always fail with ENOSYS. Some functions are actually named
2583 something starting with __ and the normal name is an alias. */
2584 #if defined __stub_$2 || defined __stub___$2
2585 choke me
2586 #endif
2587
2588 int
2589 main ()
2590 {
2591 return $2 ();
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_link "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext \
2602 conftest$ac_exeext conftest.$ac_ext
2603 fi
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608
2609 } # ac_fn_c_check_func
2610
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2615 {
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2631 fi
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 $as_test_x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 ac_retval=1
2646 fi
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 return $ac_retval
2654
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2659
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64. Invocation command line was
2662
2663 $ $0 $@
2664
2665 _ACEOF
2666 exec 5>>config.log
2667 {
2668 cat <<_ASUNAME
2669 ## --------- ##
2670 ## Platform. ##
2671 ## --------- ##
2672
2673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678
2679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2681
2682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2689
2690 _ASUNAME
2691
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 $as_echo "PATH: $as_dir"
2698 done
2699 IFS=$as_save_IFS
2700
2701 } >&5
2702
2703 cat >&5 <<_ACEOF
2704
2705
2706 ## ----------- ##
2707 ## Core tests. ##
2708 ## ----------- ##
2709
2710 _ACEOF
2711
2712
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_configure_args=
2719 ac_configure_args0=
2720 ac_configure_args1=
2721 ac_must_keep_next=false
2722 for ac_pass in 1 2
2723 do
2724 for ac_arg
2725 do
2726 case $ac_arg in
2727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729 | -silent | --silent | --silen | --sile | --sil)
2730 continue ;;
2731 *\'*)
2732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733 esac
2734 case $ac_pass in
2735 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 2)
2737 as_fn_append ac_configure_args1 " '$ac_arg'"
2738 if test $ac_must_keep_next = true; then
2739 ac_must_keep_next=false # Got value, back to normal.
2740 else
2741 case $ac_arg in
2742 *=* | --config-cache | -C | -disable-* | --disable-* \
2743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745 | -with-* | --with-* | -without-* | --without-* | --x)
2746 case "$ac_configure_args0 " in
2747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 esac
2749 ;;
2750 -* ) ac_must_keep_next=true ;;
2751 esac
2752 fi
2753 as_fn_append ac_configure_args " '$ac_arg'"
2754 ;;
2755 esac
2756 done
2757 done
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2760
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log. We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767 # Save into config.log some information that might help in debugging.
2768 {
2769 echo
2770
2771 cat <<\_ASBOX
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2775 _ASBOX
2776 echo
2777 # The following way of writing the cache mishandles newlines in values,
2778 (
2779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2780 eval ac_val=\$$ac_var
2781 case $ac_val in #(
2782 *${as_nl}*)
2783 case $ac_var in #(
2784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 esac
2787 case $ac_var in #(
2788 _ | IFS | as_nl) ;; #(
2789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790 *) { eval $ac_var=; unset $ac_var;} ;;
2791 esac ;;
2792 esac
2793 done
2794 (set) 2>&1 |
2795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2796 *${as_nl}ac_space=\ *)
2797 sed -n \
2798 "s/'\''/'\''\\\\'\'''\''/g;
2799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 ;; #(
2801 *)
2802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2803 ;;
2804 esac |
2805 sort
2806 )
2807 echo
2808
2809 cat <<\_ASBOX
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2813 _ASBOX
2814 echo
2815 for ac_var in $ac_subst_vars
2816 do
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2824
2825 if test -n "$ac_subst_files"; then
2826 cat <<\_ASBOX
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2830 _ASBOX
2831 echo
2832 for ac_var in $ac_subst_files
2833 do
2834 eval ac_val=\$$ac_var
2835 case $ac_val in
2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 esac
2838 $as_echo "$ac_var='\''$ac_val'\''"
2839 done | sort
2840 echo
2841 fi
2842
2843 if test -s confdefs.h; then
2844 cat <<\_ASBOX
2845 ## ----------- ##
2846 ## confdefs.h. ##
2847 ## ----------- ##
2848 _ASBOX
2849 echo
2850 cat confdefs.h
2851 echo
2852 fi
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2856 } >&5
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 exit $exit_status
2860 ' 0
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 done
2864 ac_signal=0
2865
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2868
2869 $as_echo "/* confdefs.h */" > confdefs.h
2870
2871 # Predefined preprocessor variables.
2872
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 _ACEOF
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 _ACEOF
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 _ACEOF
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 _ACEOF
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 _ACEOF
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2895 _ACEOF
2896
2897
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2900 ac_site_file1=NONE
2901 ac_site_file2=NONE
2902 if test -n "$CONFIG_SITE"; then
2903 ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2907 else
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2910 fi
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 do
2913 test "x$ac_site_file" = xNONE && continue
2914 if test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2918 . "$ac_site_file"
2919 fi
2920 done
2921
2922 if test -r "$cache_file"; then
2923 # Some versions of bash will fail to source /dev/null (special
2924 # files actually), so we avoid doing that.
2925 if test -f "$cache_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 case $cache_file in
2929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930 *) . "./$cache_file";;
2931 esac
2932 fi
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 >$cache_file
2937 fi
2938
2939 # Check that the precious variables saved in the cache have kept the same
2940 # value.
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2948 set,)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2952 ,set)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2956 ,);;
2957 *)
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x $ac_old_val`
2961 ac_new_val_w=`echo x $ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965 ac_cache_corrupted=:
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 fi;;
2976 esac
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2979 case $ac_new_val in
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2982 esac
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 esac
2987 fi
2988 done
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 fi
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
2999
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
3006
3007
3008
3009
3010
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012
3013
3014 gcc_version=`cat $srcdir/BASE-VER`
3015
3016 # Determine the host, build, and target systems
3017 ac_aux_dir=
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019 for ac_t in install-sh install.sh shtool; do
3020 if test -f "$ac_dir/$ac_t"; then
3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/$ac_t -c"
3023 break 2
3024 fi
3025 done
3026 done
3027 if test -z "$ac_aux_dir"; then
3028 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 fi
3030
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038
3039
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3061 *-*-*) ;;
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 esac
3064 build=$ac_cv_build
3065 ac_save_IFS=$IFS; IFS='-'
3066 set x $ac_cv_build
3067 shift
3068 build_cpu=$1
3069 build_vendor=$2
3070 shift; shift
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3073 build_os=$*
3074 IFS=$ac_save_IFS
3075 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3085 else
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 fi
3089
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3093 case $ac_cv_host in
3094 *-*-*) ;;
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 esac
3097 host=$ac_cv_host
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_host
3100 shift
3101 host_cpu=$1
3102 host_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 host_os=$*
3107 IFS=$ac_save_IFS
3108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test "x$target_alias" = x; then
3117 ac_cv_target=$ac_cv_host
3118 else
3119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 fi
3122
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3127 *-*-*) ;;
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 esac
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3132 set x $ac_cv_target
3133 shift
3134 target_cpu=$1
3135 target_vendor=$2
3136 shift; shift
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3139 target_os=$*
3140 IFS=$ac_save_IFS
3141 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3142
3143
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147 test "$program_prefix$program_suffix$program_transform_name" = \
3148 NONENONEs,x,x, &&
3149 program_prefix=${target_alias}-
3150
3151 # Determine the noncanonical target name, for directory use.
3152 case ${build_alias} in
3153 "") build_noncanonical=${build} ;;
3154 *) build_noncanonical=${build_alias} ;;
3155 esac
3156
3157 case ${host_alias} in
3158 "") host_noncanonical=${build_noncanonical} ;;
3159 *) host_noncanonical=${host_alias} ;;
3160 esac
3161
3162 case ${target_alias} in
3163 "") target_noncanonical=${host_noncanonical} ;;
3164 *) target_noncanonical=${target_alias} ;;
3165 esac
3166
3167
3168
3169
3170 # Determine the target- and build-specific subdirectories
3171
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # finishes. So:
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3180
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3183
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 else
3188 build_libsubdir="$build_subdir"
3189 fi
3190
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193 || test -d $srcdir/../host-${host_noncanonical}; then
3194 host_subdir="host-${host_noncanonical}"
3195 else
3196 host_subdir=.
3197 fi
3198 # No prefix.
3199 target_subdir=${target_noncanonical}
3200
3201
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s,x,x', remove it if useless.
3210 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212
3213
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3218 # is true:
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226 library_path_setting="contains current directory"
3227 ;;
3228 *)
3229 library_path_setting="ok"
3230 ;;
3231 esac
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3235 as_fn_error "
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again." "$LINENO" 5
3239 fi
3240
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # is true:
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252 gcc_exec_prefix_setting="contains current directory"
3253 ;;
3254 *)
3255 gcc_exec_prefix_setting="ok"
3256 ;;
3257 esac
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 as_fn_error "
3262 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3265 fi
3266
3267 # -----------
3268 # Directories
3269 # -----------
3270
3271 # Specify the local prefix
3272 local_prefix=
3273
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276 withval=$with_local_prefix; case "${withval}" in
3277 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 no) ;;
3279 *) local_prefix=$with_local_prefix ;;
3280 esac
3281 fi
3282
3283
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286 local_prefix=/usr/local
3287 fi
3288
3289 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir=
3293 # Specify the g++ header file directory
3294
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297 withval=$with_gxx_include_dir; case "${withval}" in
3298 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 no) ;;
3300 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3301 esac
3302 fi
3303
3304
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x${gcc_gxx_include_dir} = x; then
3307 if test x${enable_version_specific_runtime_libs} = xyes; then
3308 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 else
3310 libstdcxx_incdir='include/c++/$(version)'
3311 if test x$host != x$target; then
3312 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313 fi
3314 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3315 fi
3316 fi
3317
3318 gcc_gxx_include_dir_add_sysroot=0
3319 if test "${with_sysroot+set}" = set; then
3320 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3321 if test "${gcc_gxx_without_sysroot}"; then
3322 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3323 gcc_gxx_include_dir_add_sysroot=1
3324 fi
3325 fi
3326
3327
3328 # Check whether --with-cpp_install_dir was given.
3329 if test "${with_cpp_install_dir+set}" = set; then :
3330 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3331 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3332 elif test x$withval != xno; then
3333 cpp_install_dir=$withval
3334 fi
3335 fi
3336
3337
3338 # We would like to our source tree to be readonly. However when releases or
3339 # pre-releases are generated, the flex/bison generated files as well as the
3340 # various formats of manuals need to be included along with the rest of the
3341 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3342 # just that.
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3345 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3346 # Check whether --enable-generated-files-in-srcdir was given.
3347 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3348 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3349 else
3350 generated_files_in_srcdir=no
3351 fi
3352
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3355 $as_echo "$generated_files_in_srcdir" >&6; }
3356
3357 if test "$generated_files_in_srcdir" = "yes"; then
3358 GENINSRC=''
3359 else
3360 GENINSRC='#'
3361 fi
3362
3363
3364 # -------------------
3365 # Find default linker
3366 # -------------------
3367
3368 # With GNU ld
3369
3370 # Check whether --with-gnu-ld was given.
3371 if test "${with_gnu_ld+set}" = set; then :
3372 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3373 else
3374 gnu_ld_flag=no
3375 fi
3376
3377
3378 # With pre-defined ld
3379
3380 # Check whether --with-ld was given.
3381 if test "${with_ld+set}" = set; then :
3382 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3383 fi
3384
3385 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3386 if test ! -x "$DEFAULT_LINKER"; then
3387 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3388 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3389 gnu_ld_flag=yes
3390 fi
3391
3392 cat >>confdefs.h <<_ACEOF
3393 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3394 _ACEOF
3395
3396 fi
3397
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3399 $as_echo_n "checking whether a default linker was specified... " >&6; }
3400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3401 if test x"$gnu_ld_flag" = x"no"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3407 fi
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413 # With demangler in GNU ld
3414
3415 # Check whether --with-demangler-in-ld was given.
3416 if test "${with_demangler_in_ld+set}" = set; then :
3417 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3418 else
3419 demangler_in_ld=yes
3420 fi
3421
3422
3423 # ----------------------
3424 # Find default assembler
3425 # ----------------------
3426
3427 # With GNU as
3428
3429 # Check whether --with-gnu-as was given.
3430 if test "${with_gnu_as+set}" = set; then :
3431 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3432 else
3433 gas_flag=no
3434 fi
3435
3436
3437
3438 # Check whether --with-as was given.
3439 if test "${with_as+set}" = set; then :
3440 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3441 fi
3442
3443 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3444 if test ! -x "$DEFAULT_ASSEMBLER"; then
3445 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3446 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3447 gas_flag=yes
3448 fi
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3452 _ACEOF
3453
3454 fi
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3457 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3458 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3459 if test x"$gas_flag" = x"no"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3465 fi
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471 # ---------------
3472 # Find C compiler
3473 # ---------------
3474
3475 # If a non-executable a.out is present (e.g. created by GNU as above even if
3476 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3477 # file, even when creating an executable, so an execution test fails.
3478 # Remove possible default executable files to avoid this.
3479 #
3480 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3481 # Autoconf includes it.
3482 rm -f a.out a.exe b.out
3483
3484 # Find the native compiler
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 fi
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722 fi
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765 done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3777 fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details." "$LINENO" 5; }
3787
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 rm -f conftest.er1 conftest.err
3808 fi
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3812
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830 $as_echo_n "checking for C compiler default output file name... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3838 do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3845
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3863 do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889 else
3890 ac_file=''
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 if test -z "$ac_file"; then :
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 { as_fn_set_status 77
3901 as_fn_error "C compiler cannot create executables
3902 See \`config.log' for more details." "$LINENO" 5; }; }
3903 fi
3904 ac_exeext=$ac_cv_exeext
3905
3906 # Check that the compiler produces executables we can run. If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3909 $as_echo_n "checking whether the C compiler works... " >&6; }
3910 # If not cross compiling, check that we can run a simple program.
3911 if test "$cross_compiling" != yes; then
3912 if { ac_try='./$ac_file'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details." "$LINENO" 5; }
3933 fi
3934 fi
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3938
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 $as_echo_n "checking whether we are cross compiling... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946 $as_echo "$cross_compiling" >&6; }
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 $as_echo_n "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details." "$LINENO" 5; }
3979 fi
3980 rm -f conftest$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 $as_echo "$ac_cv_exeext" >&6; }
3983
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 $as_echo_n "checking for suffix of object files... " >&6; }
3989 if test "${ac_cv_objext+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994
3995 int
3996 main ()
3997 {
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020 break;;
4021 esac
4022 done
4023 else
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error "cannot compute suffix of object files: cannot compile
4030 See \`config.log' for more details." "$LINENO" 5; }
4031 fi
4032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035 $as_echo "$ac_cv_objext" >&6; }
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$OBJEXT
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main ()
4048 {
4049 #ifndef __GNUC__
4050 choke me
4051 #endif
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_compiler_gnu=yes
4059 else
4060 ac_compiler_gnu=no
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4069 GCC=yes
4070 else
4071 GCC=
4072 fi
4073 ac_test_CFLAGS=${CFLAGS+set}
4074 ac_save_CFLAGS=$CFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4077 if test "${ac_cv_prog_cc_g+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4082 ac_cv_prog_cc_g=no
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086
4087 int
4088 main ()
4089 {
4090
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
4097 else
4098 CFLAGS=""
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101
4102 int
4103 main ()
4104 {
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111
4112 else
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 $as_echo "$ac_cv_prog_cc_g" >&6; }
4138 if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4145 fi
4146 else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4151 fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_cv_prog_cc_c89=no
4159 ac_save_CC=$CC
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdarg.h>
4163 #include <stdio.h>
4164 #include <sys/types.h>
4165 #include <sys/stat.h>
4166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4167 struct buf { int x; };
4168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169 static char *e (p, i)
4170 char **p;
4171 int i;
4172 {
4173 return p[i];
4174 }
4175 static char *f (char * (*g) (char **, int), char **p, ...)
4176 {
4177 char *s;
4178 va_list v;
4179 va_start (v,p);
4180 s = g (p, va_arg (v,int));
4181 va_end (v);
4182 return s;
4183 }
4184
4185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4186 function prototypes and stuff, but not '\xHH' hex character constants.
4187 These don't provoke an error unfortunately, instead are silently treated
4188 as 'x'. The following induces an error, until -std is added to get
4189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4190 array size at least. It's necessary to write '\x00'==0 to get something
4191 that's true only with -std. */
4192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193
4194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195 inside strings and character constants. */
4196 #define FOO(x) 'x'
4197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198
4199 int test (int i, double x);
4200 struct s1 {int (*f) (int a);};
4201 struct s2 {int (*f) (double a);};
4202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203 int argc;
4204 char **argv;
4205 int
4206 main ()
4207 {
4208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 do
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_c89=$ac_arg
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 done
4223 rm -f conftest.$ac_ext
4224 CC=$ac_save_CC
4225
4226 fi
4227 # AC_CACHE_VAL
4228 case "x$ac_cv_prog_cc_c89" in
4229 x)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4232 xno)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234 $as_echo "unsupported" >&6; } ;;
4235 *)
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239 esac
4240 if test "x$ac_cv_prog_cc_c89" != xno; then :
4241
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250 if test "x$CC" != xcc; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4252 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4255 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4256 fi
4257 set dummy $CC; ac_cc=`$as_echo "$2" |
4258 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4259 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 int
4266 main ()
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 # Make sure it works both with $CC and with simple cc.
4274 # We do the test twice because some compilers refuse to overwrite an
4275 # existing .o file with -o, though they will create one.
4276 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 rm -f conftest2.*
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4298 then
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4300 if test "x$CC" != xcc; then
4301 # Test first that cc exists at all.
4302 if { ac_try='cc -c conftest.$ac_ext >&5'
4303 { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; }; then
4313 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4314 rm -f conftest2.*
4315 if { { 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; } &&
4325 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; };
4335 then
4336 # cc works too.
4337 :
4338 else
4339 # cc exists but doesn't like -o.
4340 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4341 fi
4342 fi
4343 fi
4344 else
4345 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346 fi
4347 rm -f core conftest*
4348
4349 fi
4350 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356
4357 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4358
4359 fi
4360
4361 # expand $ac_aux_dir to an absolute path
4362 am_aux_dir=`cd $ac_aux_dir && pwd`
4363
4364 # FIXME: we rely on the cache variable name because
4365 # there is no other way.
4366 set dummy $CC
4367 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4369 if test "$am_t" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4376 fi
4377
4378
4379 ac_ext=cpp
4380 ac_cpp='$CXXCPP $CPPFLAGS'
4381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4384 if test -z "$CXX"; then
4385 if test -n "$CCC"; then
4386 CXX=$CCC
4387 else
4388 if test -n "$ac_tool_prefix"; then
4389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4390 do
4391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_CXX+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$CXX"; then
4399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 CXX=$ac_cv_prog_CXX
4419 if test -n "$CXX"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4421 $as_echo "$CXX" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427
4428 test -n "$CXX" && break
4429 done
4430 fi
4431 if test -z "$CXX"; then
4432 ac_ct_CXX=$CXX
4433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4434 do
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$ac_ct_CXX"; then
4443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_ac_ct_CXX="$ac_prog"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4463 if test -n "$ac_ct_CXX"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4465 $as_echo "$ac_ct_CXX" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471
4472 test -n "$ac_ct_CXX" && break
4473 done
4474
4475 if test "x$ac_ct_CXX" = x; then
4476 CXX="g++"
4477 else
4478 case $cross_compiling:$ac_tool_warned in
4479 yes:)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484 CXX=$ac_ct_CXX
4485 fi
4486 fi
4487
4488 fi
4489 fi
4490 # Provide some information about the compiler.
4491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4492 set X $ac_compile
4493 ac_compiler=$2
4494 for ac_option in --version -v -V -qversion; do
4495 { { ac_try="$ac_compiler $ac_option >&5"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4503 ac_status=$?
4504 if test -s conftest.err; then
4505 sed '10a\
4506 ... rest of stderr output deleted ...
4507 10q' conftest.err >conftest.er1
4508 cat conftest.er1 >&5
4509 rm -f conftest.er1 conftest.err
4510 fi
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 done
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4517 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 int
4524 main ()
4525 {
4526 #ifndef __GNUC__
4527 choke me
4528 #endif
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_compiler_gnu=yes
4536 else
4537 ac_compiler_gnu=no
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4545 if test $ac_compiler_gnu = yes; then
4546 GXX=yes
4547 else
4548 GXX=
4549 fi
4550 ac_test_CXXFLAGS=${CXXFLAGS+set}
4551 ac_save_CXXFLAGS=$CXXFLAGS
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4554 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4558 ac_cxx_werror_flag=yes
4559 ac_cv_prog_cxx_g=no
4560 CXXFLAGS="-g"
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563
4564 int
4565 main ()
4566 {
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_cxx_try_compile "$LINENO"; then :
4573 ac_cv_prog_cxx_g=yes
4574 else
4575 CXXFLAGS=""
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 int
4580 main ()
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588
4589 else
4590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4591 CXXFLAGS="-g"
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594
4595 int
4596 main ()
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 if ac_fn_cxx_try_compile "$LINENO"; then :
4604 ac_cv_prog_cxx_g=yes
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4615 if test "$ac_test_CXXFLAGS" = set; then
4616 CXXFLAGS=$ac_save_CXXFLAGS
4617 elif test $ac_cv_prog_cxx_g = yes; then
4618 if test "$GXX" = yes; then
4619 CXXFLAGS="-g -O2"
4620 else
4621 CXXFLAGS="-g"
4622 fi
4623 else
4624 if test "$GXX" = yes; then
4625 CXXFLAGS="-O2"
4626 else
4627 CXXFLAGS=
4628 fi
4629 fi
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636
4637
4638
4639 if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4641 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$GNATBIND"; then
4648 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 GNATBIND=$ac_cv_prog_GNATBIND
4668 if test -n "$GNATBIND"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4670 $as_echo "$GNATBIND" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 fi
4678 if test -z "$ac_cv_prog_GNATBIND"; then
4679 ac_ct_GNATBIND=$GNATBIND
4680 # Extract the first word of "gnatbind", so it can be a program name with args.
4681 set dummy gnatbind; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$ac_ct_GNATBIND"; then
4688 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4708 if test -n "$ac_ct_GNATBIND"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4710 $as_echo "$ac_ct_GNATBIND" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716 if test "x$ac_ct_GNATBIND" = x; then
4717 GNATBIND="no"
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 GNATBIND=$ac_ct_GNATBIND
4726 fi
4727 else
4728 GNATBIND="$ac_cv_prog_GNATBIND"
4729 fi
4730
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$GNATMAKE"; then
4740 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 fi
4758 fi
4759 GNATMAKE=$ac_cv_prog_GNATMAKE
4760 if test -n "$GNATMAKE"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4762 $as_echo "$GNATMAKE" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 fi
4767
4768
4769 fi
4770 if test -z "$ac_cv_prog_GNATMAKE"; then
4771 ac_ct_GNATMAKE=$GNATMAKE
4772 # Extract the first word of "gnatmake", so it can be a program name with args.
4773 set dummy gnatmake; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$ac_ct_GNATMAKE"; then
4780 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4800 if test -n "$ac_ct_GNATMAKE"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4802 $as_echo "$ac_ct_GNATMAKE" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808 if test "x$ac_ct_GNATMAKE" = x; then
4809 GNATMAKE="no"
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 GNATMAKE=$ac_ct_GNATMAKE
4818 fi
4819 else
4820 GNATMAKE="$ac_cv_prog_GNATMAKE"
4821 fi
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4824 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4825 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat >conftest.adb <<EOF
4829 procedure conftest is begin null; end conftest;
4830 EOF
4831 acx_cv_cc_gcc_supports_ada=no
4832 # There is a bug in old released versions of GCC which causes the
4833 # driver to exit successfully when the appropriate language module
4834 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4835 # Therefore we must check for the error message as well as an
4836 # unsuccessful exit.
4837 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4838 # given a .adb file, but produce no object file. So we must check
4839 # if an object file was really produced to guard against this.
4840 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4841 if test x"$errors" = x && test -f conftest.$ac_objext; then
4842 acx_cv_cc_gcc_supports_ada=yes
4843 fi
4844 rm -f conftest.*
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4847 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4848
4849 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4850 have_gnat=yes
4851 else
4852 have_gnat=no
4853 fi
4854
4855
4856 # autoconf is lame and doesn't give us any substitution variable for this.
4857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4858 NO_MINUS_C_MINUS_O=yes
4859 else
4860 OUTPUT_OPTION='-o $@'
4861 fi
4862
4863
4864
4865 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4866 # optimizations to be activated explicitly by the toplevel.
4867 case "$CC" in
4868 */prev-gcc/xgcc*) ;;
4869 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4870 esac
4871
4872
4873 # Determine PICFLAG for target gnatlib.
4874
4875
4876
4877
4878 case "${target}" in
4879 # PIC is the default on some targets or must not be used.
4880 *-*-darwin*)
4881 # PIC is the default on this platform
4882 # Common symbols not allowed in MH_DYLIB files
4883 PICFLAG_FOR_TARGET=-fno-common
4884 ;;
4885 alpha*-dec-osf5*)
4886 # PIC is the default.
4887 ;;
4888 hppa*64*-*-hpux*)
4889 # PIC is the default for 64-bit PA HP-UX.
4890 ;;
4891 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4892 ;;
4893 i[34567]86-*-interix[3-9]*)
4894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4895 # Instead, we relocate shared libraries at runtime.
4896 ;;
4897 i[34567]86-*-nto-qnx*)
4898 # QNX uses GNU C++, but need to define -shared option too, otherwise
4899 # it will coredump.
4900 PICFLAG_FOR_TARGET='-fPIC -shared'
4901 ;;
4902 i[34567]86-pc-msdosdjgpp*)
4903 # DJGPP does not support shared libraries at all.
4904 ;;
4905 ia64*-*-hpux*)
4906 # On IA64 HP-UX, PIC is the default but the pic flag
4907 # sets the default TLS model and affects inlining.
4908 PICFLAG_FOR_TARGET=-fPIC
4909 ;;
4910 mips-sgi-irix6*)
4911 # PIC is the default.
4912 ;;
4913 rs6000-ibm-aix* | powerpc-ibm-aix*)
4914 # All AIX code is PIC.
4915 ;;
4916
4917 # Some targets support both -fPIC and -fpic, but prefer the latter.
4918 # FIXME: Why?
4919 i[34567]86-*-* | x86_64-*-*)
4920 PICFLAG_FOR_TARGET=-fpic
4921 ;;
4922 m68k-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4924 ;;
4925 # FIXME: Override -fPIC default in libgcc only?
4926 sh-*-linux* | sh[2346lbe]*-*-linux*)
4927 PICFLAG_FOR_TARGET=-fpic
4928 ;;
4929 # FIXME: Simplify to sh*-*-netbsd*?
4930 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4931 sh64-*-netbsd* | sh64l*-*-netbsd*)
4932 PICFLAG_FOR_TARGET=-fpic
4933 ;;
4934 # Default to -fPIC unless specified otherwise.
4935 *)
4936 PICFLAG_FOR_TARGET=-fPIC
4937 ;;
4938 esac
4939
4940 # If the user explicitly uses -fpic/-fPIC, keep that.
4941 case "${CFLAGS_FOR_TARGET}" in
4942 *-fpic*)
4943 PICFLAG_FOR_TARGET=-fpic
4944 ;;
4945 *-fPIC*)
4946 PICFLAG_FOR_TARGET=-fPIC
4947 ;;
4948 esac
4949
4950
4951
4952 # -------------------------
4953 # Check C compiler features
4954 # -------------------------
4955
4956
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4964 # On Suns, sometimes $CPP names a directory.
4965 if test -n "$CPP" && test -d "$CPP"; then
4966 CPP=
4967 fi
4968 if test -z "$CPP"; then
4969 if test "${ac_cv_prog_CPP+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 # Double quotes because CPP needs to be expanded
4973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4974 do
4975 ac_preproc_ok=false
4976 for ac_c_preproc_warn_flag in '' yes
4977 do
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991 Syntax error
4992 _ACEOF
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4994
4995 else
4996 # Broken: fails on valid input.
4997 continue
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then :
5021 break
5022 fi
5023
5024 done
5025 ac_cv_prog_CPP=$CPP
5026
5027 fi
5028 CPP=$ac_cv_prog_CPP
5029 else
5030 ac_cv_prog_CPP=$CPP
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5053
5054 else
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058 rm -f conftest.err conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5067 # Broken: success on invalid input.
5068 continue
5069 else
5070 # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then :
5080
5081 else
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5085 See \`config.log' for more details." "$LINENO" 5; }
5086 fi
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if test "${ac_cv_path_GREP+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5117 *)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5139
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148 else
5149 ac_cv_path_GREP=$GREP
5150 fi
5151
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183 *)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_EGREP=$EGREP
5216 fi
5217
5218 fi
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5226 $as_echo_n "checking for ANSI C header files... " >&6; }
5227 if test "${ac_cv_header_stdc+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <stdlib.h>
5233 #include <stdarg.h>
5234 #include <string.h>
5235 #include <float.h>
5236
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_header_stdc=yes
5247 else
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 #include <string.h>
5257
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev/null 2>&1; then :
5261
5262 else
5263 ac_cv_header_stdc=no
5264 fi
5265 rm -f conftest*
5266
5267 fi
5268
5269 if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <stdlib.h>
5274
5275 _ACEOF
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "free" >/dev/null 2>&1; then :
5278
5279 else
5280 ac_cv_header_stdc=no
5281 fi
5282 rm -f conftest*
5283
5284 fi
5285
5286 if test $ac_cv_header_stdc = yes; then
5287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5288 if test "$cross_compiling" = yes; then :
5289 :
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <ctype.h>
5294 #include <stdlib.h>
5295 #if ((' ' & 0x0FF) == 0x020)
5296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 #else
5299 # define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5304 #endif
5305
5306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5307 int
5308 main ()
5309 {
5310 int i;
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5314 return 2;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_run "$LINENO"; then :
5319
5320 else
5321 ac_cv_header_stdc=no
5322 fi
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5324 conftest.$ac_objext conftest.beam conftest.$ac_ext
5325 fi
5326
5327 fi
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5330 $as_echo "$ac_cv_header_stdc" >&6; }
5331 if test $ac_cv_header_stdc = yes; then
5332
5333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5334
5335 fi
5336
5337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339 inttypes.h stdint.h unistd.h
5340 do :
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343 "
5344 eval as_val=\$$as_ac_Header
5345 if test "x$as_val" = x""yes; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348 _ACEOF
5349
5350 fi
5351
5352 done
5353
5354
5355
5356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5357 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5358 MINIX=yes
5359 else
5360 MINIX=
5361 fi
5362
5363
5364 if test "$MINIX" = yes; then
5365
5366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5367
5368
5369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5370
5371
5372 $as_echo "#define _MINIX 1" >>confdefs.h
5373
5374 fi
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5379 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384
5385 # define __EXTENSIONS__ 1
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_safe_to_define___extensions__=yes
5397 else
5398 ac_cv_safe_to_define___extensions__=no
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5404 test $ac_cv_safe_to_define___extensions__ = yes &&
5405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5406
5407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5408
5409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5410
5411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5412
5413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5414
5415
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5422 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5423 # On Suns, sometimes $CPP names a directory.
5424 if test -n "$CPP" && test -d "$CPP"; then
5425 CPP=
5426 fi
5427 if test -z "$CPP"; then
5428 if test "${ac_cv_prog_CPP+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 # Double quotes because CPP needs to be expanded
5432 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5433 do
5434 ac_preproc_ok=false
5435 for ac_c_preproc_warn_flag in '' yes
5436 do
5437 # Use a header file that comes with gcc, so configuring glibc
5438 # with a fresh cross-compiler works.
5439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440 # <limits.h> exists even on freestanding compilers.
5441 # On the NeXT, cc -E runs the code through the compiler's parser,
5442 # not just through cpp. "Syntax error" is here to catch this case.
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #ifdef __STDC__
5446 # include <limits.h>
5447 #else
5448 # include <assert.h>
5449 #endif
5450 Syntax error
5451 _ACEOF
5452 if ac_fn_c_try_cpp "$LINENO"; then :
5453
5454 else
5455 # Broken: fails on valid input.
5456 continue
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 # OK, works on sane cases. Now check whether nonexistent headers
5461 # can be detected and how.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <ac_nonexistent.h>
5465 _ACEOF
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5467 # Broken: success on invalid input.
5468 continue
5469 else
5470 # Passes both tests.
5471 ac_preproc_ok=:
5472 break
5473 fi
5474 rm -f conftest.err conftest.$ac_ext
5475
5476 done
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then :
5480 break
5481 fi
5482
5483 done
5484 ac_cv_prog_CPP=$CPP
5485
5486 fi
5487 CPP=$ac_cv_prog_CPP
5488 else
5489 ac_cv_prog_CPP=$CPP
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5492 $as_echo "$CPP" >&6; }
5493 ac_preproc_ok=false
5494 for ac_c_preproc_warn_flag in '' yes
5495 do
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509 Syntax error
5510 _ACEOF
5511 if ac_fn_c_try_cpp "$LINENO"; then :
5512
5513 else
5514 # Broken: fails on valid input.
5515 continue
5516 fi
5517 rm -f conftest.err conftest.$ac_ext
5518
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <ac_nonexistent.h>
5524 _ACEOF
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5526 # Broken: success on invalid input.
5527 continue
5528 else
5529 # Passes both tests.
5530 ac_preproc_ok=:
5531 break
5532 fi
5533 rm -f conftest.err conftest.$ac_ext
5534
5535 done
5536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5537 rm -f conftest.err conftest.$ac_ext
5538 if $ac_preproc_ok; then :
5539
5540 else
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5543 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5544 See \`config.log' for more details." "$LINENO" 5; }
5545 fi
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5554 $as_echo_n "checking for inline... " >&6; }
5555 if test "${ac_cv_c_inline+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 ac_cv_c_inline=no
5559 for ac_kw in inline __inline__ __inline; do
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #ifndef __cplusplus
5563 typedef int foo_t;
5564 static $ac_kw foo_t static_foo () {return 0; }
5565 $ac_kw foo_t foo () {return 0; }
5566 #endif
5567
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_c_inline=$ac_kw
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 test "$ac_cv_c_inline" != no && break
5574 done
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5578 $as_echo "$ac_cv_c_inline" >&6; }
5579
5580 case $ac_cv_c_inline in
5581 inline | yes) ;;
5582 *)
5583 case $ac_cv_c_inline in
5584 no) ac_val=;;
5585 *) ac_val=$ac_cv_c_inline;;
5586 esac
5587 cat >>confdefs.h <<_ACEOF
5588 #ifndef __cplusplus
5589 #define inline $ac_val
5590 #endif
5591 _ACEOF
5592 ;;
5593 esac
5594
5595
5596 # Check whether --enable-largefile was given.
5597 if test "${enable_largefile+set}" = set; then :
5598 enableval=$enable_largefile;
5599 fi
5600
5601 if test "$enable_largefile" != no; then
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5604 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5605 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 ac_cv_sys_largefile_CC=no
5609 if test "$GCC" != yes; then
5610 ac_save_CC=$CC
5611 while :; do
5612 # IRIX 6.2 and later do not support large files by default,
5613 # so use the C compiler's -n32 option if that helps.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <sys/types.h>
5617 /* Check that off_t can represent 2**63 - 1 correctly.
5618 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5619 since some C++ compilers masquerading as C compilers
5620 incorrectly reject 9223372036854775807. */
5621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5623 && LARGE_OFF_T % 2147483647 == 1)
5624 ? 1 : -1];
5625 int
5626 main ()
5627 {
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 break
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext
5637 CC="$CC -n32"
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_largefile_CC=' -n32'; break
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext
5642 break
5643 done
5644 CC=$ac_save_CC
5645 rm -f conftest.$ac_ext
5646 fi
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5649 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5650 if test "$ac_cv_sys_largefile_CC" != no; then
5651 CC=$CC$ac_cv_sys_largefile_CC
5652 fi
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5655 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5656 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 while :; do
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_file_offset_bits=no; break
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #define _FILE_OFFSET_BITS 64
5686 #include <sys/types.h>
5687 /* Check that off_t can represent 2**63 - 1 correctly.
5688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5689 since some C++ compilers masquerading as C compilers
5690 incorrectly reject 9223372036854775807. */
5691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5693 && LARGE_OFF_T % 2147483647 == 1)
5694 ? 1 : -1];
5695 int
5696 main ()
5697 {
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 ac_cv_sys_file_offset_bits=64; break
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_sys_file_offset_bits=unknown
5708 break
5709 done
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5712 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5713 case $ac_cv_sys_file_offset_bits in #(
5714 no | unknown) ;;
5715 *)
5716 cat >>confdefs.h <<_ACEOF
5717 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 _ACEOF
5719 ;;
5720 esac
5721 rm -rf conftest*
5722 if test $ac_cv_sys_file_offset_bits = unknown; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5724 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5725 if test "${ac_cv_sys_large_files+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 while :; do
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5739 ? 1 : -1];
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749 ac_cv_sys_large_files=no; break
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #define _LARGE_FILES 1
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_sys_large_files=1; break
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_cv_sys_large_files=unknown
5777 break
5778 done
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5781 $as_echo "$ac_cv_sys_large_files" >&6; }
5782 case $ac_cv_sys_large_files in #(
5783 no | unknown) ;;
5784 *)
5785 cat >>confdefs.h <<_ACEOF
5786 #define _LARGE_FILES $ac_cv_sys_large_files
5787 _ACEOF
5788 ;;
5789 esac
5790 rm -rf conftest*
5791 fi
5792 fi
5793
5794
5795 # sizeof(char) is 1 by definition.
5796 # The cast to long int works around a bug in the HP C Compiler
5797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5799 # This bug is HP SR number 8606223364.
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5801 $as_echo_n "checking size of void *... " >&6; }
5802 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5806
5807 else
5808 if test "$ac_cv_type_void_p" = yes; then
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 { as_fn_set_status 77
5812 as_fn_error "cannot compute sizeof (void *)
5813 See \`config.log' for more details." "$LINENO" 5; }; }
5814 else
5815 ac_cv_sizeof_void_p=0
5816 fi
5817 fi
5818
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5821 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5822
5823
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5827 _ACEOF
5828
5829
5830 # The cast to long int works around a bug in the HP C Compiler
5831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5833 # This bug is HP SR number 8606223364.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5835 $as_echo_n "checking size of short... " >&6; }
5836 if test "${ac_cv_sizeof_short+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5840
5841 else
5842 if test "$ac_cv_type_short" = yes; then
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 { as_fn_set_status 77
5846 as_fn_error "cannot compute sizeof (short)
5847 See \`config.log' for more details." "$LINENO" 5; }; }
5848 else
5849 ac_cv_sizeof_short=0
5850 fi
5851 fi
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5855 $as_echo "$ac_cv_sizeof_short" >&6; }
5856
5857
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_SHORT $ac_cv_sizeof_short
5861 _ACEOF
5862
5863
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5869 $as_echo_n "checking size of int... " >&6; }
5870 if test "${ac_cv_sizeof_int+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5874
5875 else
5876 if test "$ac_cv_type_int" = yes; then
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (int)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882 else
5883 ac_cv_sizeof_int=0
5884 fi
5885 fi
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5889 $as_echo "$ac_cv_sizeof_int" >&6; }
5890
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_INT $ac_cv_sizeof_int
5895 _ACEOF
5896
5897
5898 # The cast to long int works around a bug in the HP C Compiler
5899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5901 # This bug is HP SR number 8606223364.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5903 $as_echo_n "checking size of long... " >&6; }
5904 if test "${ac_cv_sizeof_long+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5908
5909 else
5910 if test "$ac_cv_type_long" = yes; then
5911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 { as_fn_set_status 77
5914 as_fn_error "cannot compute sizeof (long)
5915 See \`config.log' for more details." "$LINENO" 5; }; }
5916 else
5917 ac_cv_sizeof_long=0
5918 fi
5919 fi
5920
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5923 $as_echo "$ac_cv_sizeof_long" >&6; }
5924
5925
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define SIZEOF_LONG $ac_cv_sizeof_long
5929 _ACEOF
5930
5931
5932 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5933 if test "x$ac_cv_type_long_long" = x""yes; then :
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LONG_LONG 1
5937 _ACEOF
5938
5939 # The cast to long int works around a bug in the HP C Compiler
5940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5942 # This bug is HP SR number 8606223364.
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5944 $as_echo_n "checking size of long long... " >&6; }
5945 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5949
5950 else
5951 if test "$ac_cv_type_long_long" = yes; then
5952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 { as_fn_set_status 77
5955 as_fn_error "cannot compute sizeof (long long)
5956 See \`config.log' for more details." "$LINENO" 5; }; }
5957 else
5958 ac_cv_sizeof_long_long=0
5959 fi
5960 fi
5961
5962 fi
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5964 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5965
5966
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5970 _ACEOF
5971
5972
5973 fi
5974
5975 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5976 if test "x$ac_cv_type___int64" = x""yes; then :
5977
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE___INT64 1
5980 _ACEOF
5981
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5987 $as_echo_n "checking size of __int64... " >&6; }
5988 if test "${ac_cv_sizeof___int64+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5992
5993 else
5994 if test "$ac_cv_type___int64" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (__int64)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof___int64=0
6002 fi
6003 fi
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6007 $as_echo "$ac_cv_sizeof___int64" >&6; }
6008
6009
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6013 _ACEOF
6014
6015
6016 fi
6017
6018 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6019 case $ac_cv_c_int8_t in #(
6020 no|yes) ;; #(
6021 *)
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define int8_t $ac_cv_c_int8_t
6025 _ACEOF
6026 ;;
6027 esac
6028
6029 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6030 case $ac_cv_c_int16_t in #(
6031 no|yes) ;; #(
6032 *)
6033
6034 cat >>confdefs.h <<_ACEOF
6035 #define int16_t $ac_cv_c_int16_t
6036 _ACEOF
6037 ;;
6038 esac
6039
6040 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6041 case $ac_cv_c_int32_t in #(
6042 no|yes) ;; #(
6043 *)
6044
6045 cat >>confdefs.h <<_ACEOF
6046 #define int32_t $ac_cv_c_int32_t
6047 _ACEOF
6048 ;;
6049 esac
6050
6051 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6052 case $ac_cv_c_int64_t in #(
6053 no|yes) ;; #(
6054 *)
6055
6056 cat >>confdefs.h <<_ACEOF
6057 #define int64_t $ac_cv_c_int64_t
6058 _ACEOF
6059 ;;
6060 esac
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6064 $as_echo_n "checking for long long int... " >&6; }
6065 if test "${ac_cv_type_long_long_int+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070
6071 /* For now, do not test the preprocessor; as of 2007 there are too many
6072 implementations with broken preprocessors. Perhaps this can
6073 be revisited in 2012. In the meantime, code should not expect
6074 #if to work with literals wider than 32 bits. */
6075 /* Test literals. */
6076 long long int ll = 9223372036854775807ll;
6077 long long int nll = -9223372036854775807LL;
6078 unsigned long long int ull = 18446744073709551615ULL;
6079 /* Test constant expressions. */
6080 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 ? 1 : -1)];
6082 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6083 ? 1 : -1)];
6084 int i = 63;
6085 int
6086 main ()
6087 {
6088 /* Test availability of runtime routines for shift and division. */
6089 long long int llmax = 9223372036854775807ll;
6090 unsigned long long int ullmax = 18446744073709551615ull;
6091 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6092 | (llmax / ll) | (llmax % ll)
6093 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6094 | (ullmax / ull) | (ullmax % ull));
6095 ;
6096 return 0;
6097 }
6098
6099 _ACEOF
6100 if ac_fn_c_try_link "$LINENO"; then :
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_type_long_long_int=yes
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <limits.h>
6107 #ifndef LLONG_MAX
6108 # define HALF \
6109 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6110 # define LLONG_MAX (HALF - 1 + HALF)
6111 #endif
6112 int
6113 main ()
6114 {
6115 long long int n = 1;
6116 int i;
6117 for (i = 0; ; i++)
6118 {
6119 long long int m = n << i;
6120 if (m >> i != n)
6121 return 1;
6122 if (LLONG_MAX / 2 < m)
6123 break;
6124 }
6125 return 0;
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_run "$LINENO"; then :
6131 ac_cv_type_long_long_int=yes
6132 else
6133 ac_cv_type_long_long_int=no
6134 fi
6135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
6137 fi
6138
6139 else
6140 ac_cv_type_long_long_int=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6146 $as_echo "$ac_cv_type_long_long_int" >&6; }
6147 if test $ac_cv_type_long_long_int = yes; then
6148
6149 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6150
6151 fi
6152
6153
6154
6155 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6156 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6157
6158 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6159
6160 else
6161 test $ac_cv_type_long_long_int = yes \
6162 && ac_type='long long int' \
6163 || ac_type='long int'
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define intmax_t $ac_type
6167 _ACEOF
6168
6169 fi
6170
6171
6172
6173 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6175
6176 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6177
6178 else
6179 for ac_type in 'int' 'long int' 'long long int'; do
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 int
6184 main ()
6185 {
6186 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6187 test_array [0] = 0
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194
6195 cat >>confdefs.h <<_ACEOF
6196 #define intptr_t $ac_type
6197 _ACEOF
6198
6199 ac_type=
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 test -z "$ac_type" && break
6203 done
6204 fi
6205
6206
6207 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6208 case $ac_cv_c_uint8_t in #(
6209 no|yes) ;; #(
6210 *)
6211
6212 $as_echo "#define _UINT8_T 1" >>confdefs.h
6213
6214
6215 cat >>confdefs.h <<_ACEOF
6216 #define uint8_t $ac_cv_c_uint8_t
6217 _ACEOF
6218 ;;
6219 esac
6220
6221 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6222 case $ac_cv_c_uint16_t in #(
6223 no|yes) ;; #(
6224 *)
6225
6226
6227 cat >>confdefs.h <<_ACEOF
6228 #define uint16_t $ac_cv_c_uint16_t
6229 _ACEOF
6230 ;;
6231 esac
6232
6233 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6234 case $ac_cv_c_uint32_t in #(
6235 no|yes) ;; #(
6236 *)
6237
6238 $as_echo "#define _UINT32_T 1" >>confdefs.h
6239
6240
6241 cat >>confdefs.h <<_ACEOF
6242 #define uint32_t $ac_cv_c_uint32_t
6243 _ACEOF
6244 ;;
6245 esac
6246
6247 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6248 case $ac_cv_c_uint64_t in #(
6249 no|yes) ;; #(
6250 *)
6251
6252 $as_echo "#define _UINT64_T 1" >>confdefs.h
6253
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define uint64_t $ac_cv_c_uint64_t
6257 _ACEOF
6258 ;;
6259 esac
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6263 $as_echo_n "checking for unsigned long long int... " >&6; }
6264 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269
6270 /* For now, do not test the preprocessor; as of 2007 there are too many
6271 implementations with broken preprocessors. Perhaps this can
6272 be revisited in 2012. In the meantime, code should not expect
6273 #if to work with literals wider than 32 bits. */
6274 /* Test literals. */
6275 long long int ll = 9223372036854775807ll;
6276 long long int nll = -9223372036854775807LL;
6277 unsigned long long int ull = 18446744073709551615ULL;
6278 /* Test constant expressions. */
6279 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 ? 1 : -1)];
6281 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6282 ? 1 : -1)];
6283 int i = 63;
6284 int
6285 main ()
6286 {
6287 /* Test availability of runtime routines for shift and division. */
6288 long long int llmax = 9223372036854775807ll;
6289 unsigned long long int ullmax = 18446744073709551615ull;
6290 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6291 | (llmax / ll) | (llmax % ll)
6292 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6293 | (ullmax / ull) | (ullmax % ull));
6294 ;
6295 return 0;
6296 }
6297
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 ac_cv_type_unsigned_long_long_int=yes
6301 else
6302 ac_cv_type_unsigned_long_long_int=no
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6308 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6309 if test $ac_cv_type_unsigned_long_long_int = yes; then
6310
6311 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6312
6313 fi
6314
6315
6316
6317 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6318 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6319
6320 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6321
6322 else
6323 test $ac_cv_type_unsigned_long_long_int = yes \
6324 && ac_type='unsigned long long int' \
6325 || ac_type='unsigned long int'
6326
6327 cat >>confdefs.h <<_ACEOF
6328 #define uintmax_t $ac_type
6329 _ACEOF
6330
6331 fi
6332
6333
6334
6335 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6337
6338 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6339
6340 else
6341 for ac_type in 'unsigned int' 'unsigned long int' \
6342 'unsigned long long int'; do
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 $ac_includes_default
6346 int
6347 main ()
6348 {
6349 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6350 test_array [0] = 0
6351
6352 ;
6353 return 0;
6354 }
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357
6358 cat >>confdefs.h <<_ACEOF
6359 #define uintptr_t $ac_type
6360 _ACEOF
6361
6362 ac_type=
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test -z "$ac_type" && break
6366 done
6367 fi
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # ---------------------
6384 # Warnings and checking
6385 # ---------------------
6386
6387 # Check $CC warning features (if it's GCC).
6388 # We want to use -pedantic, but we don't want warnings about
6389 # * 'long long'
6390 # * variadic macros
6391 # * overlong strings
6392 # * C++11 narrowing conversions in { }
6393 # So, we only use -pedantic if we can disable those warnings.
6394
6395 loose_warn=
6396 save_CFLAGS="$CFLAGS"
6397 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6398 # Do the check with the no- prefix removed since gcc silently
6399 # accepts any -Wno-* option on purpose
6400 case $real_option in
6401 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6402 *) option=$real_option ;;
6403 esac
6404 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 CFLAGS="$option"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414
6415 int
6416 main ()
6417 {
6418
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6425 else
6426 eval "$as_acx_Woption=no"
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 fi
6431 eval ac_res=\$$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6436 fi
6437 done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 # Do the check with the no- prefix removed since gcc silently
6444 # accepts any -Wno-* option on purpose
6445 case $real_option in
6446 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6447 *) option=$real_option ;;
6448 esac
6449 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 CFLAGS="$option"
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459
6460 int
6461 main ()
6462 {
6463
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 eval "$as_acx_Woption=yes"
6470 else
6471 eval "$as_acx_Woption=no"
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
6475 fi
6476 eval ac_res=\$$as_acx_Woption
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6481 fi
6482 done
6483 CFLAGS="$save_CFLAGS"
6484
6485 strict_warn=
6486 save_CFLAGS="$CFLAGS"
6487 for real_option in -Wmissing-format-attribute; do
6488 # Do the check with the no- prefix removed since gcc silently
6489 # accepts any -Wno-* option on purpose
6490 case $real_option in
6491 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6492 *) option=$real_option ;;
6493 esac
6494 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6497 $as_echo_n "checking whether $CC supports $option... " >&6; }
6498 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 CFLAGS="$option"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 eval "$as_acx_Woption=yes"
6515 else
6516 eval "$as_acx_Woption=no"
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519
6520 fi
6521 eval ac_res=\$$as_acx_Woption
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6526 fi
6527 done
6528 CFLAGS="$save_CFLAGS"
6529
6530 c_strict_warn=
6531 save_CFLAGS="$CFLAGS"
6532 for real_option in -Wold-style-definition -Wc++-compat; do
6533 # Do the check with the no- prefix removed since gcc silently
6534 # accepts any -Wno-* option on purpose
6535 case $real_option in
6536 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6537 *) option=$real_option ;;
6538 esac
6539 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6542 $as_echo_n "checking whether $CC supports $option... " >&6; }
6543 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 CFLAGS="$option"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549
6550 int
6551 main ()
6552 {
6553
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 eval "$as_acx_Woption=yes"
6560 else
6561 eval "$as_acx_Woption=no"
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564
6565 fi
6566 eval ac_res=\$$as_acx_Woption
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6568 $as_echo "$ac_res" >&6; }
6569 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6570 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6571 fi
6572 done
6573 CFLAGS="$save_CFLAGS"
6574
6575 # Do the check with the no- prefix removed from the warning options
6576 # since gcc silently accepts any -Wno-* option on purpose
6577 if test "$GCC" = yes; then :
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6579 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6580 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 save_CFLAGS="$CFLAGS"
6584 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6598 else
6599 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 CFLAGS="$save_CFLAGS"
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6605 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6606 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6607 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6608 fi
6609
6610 fi
6611
6612 # Check whether --enable-werror-always was given.
6613 if test "${enable_werror_always+set}" = set; then :
6614 enableval=$enable_werror_always;
6615 else
6616 enable_werror_always=no
6617 fi
6618
6619 if test $enable_werror_always = yes; then :
6620 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6621 fi
6622
6623
6624
6625 # The above macros do nothing if the compiler is not GCC. However, the
6626 # Makefile has more goo to add other flags, so these variables are used
6627 # to enable warnings only for GCC.
6628 warn_cflags=
6629 warn_cxxflags=
6630 if test "x$GCC" = "xyes"; then
6631 warn_cflags='$(GCC_WARN_CFLAGS)'
6632 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6633 fi
6634
6635
6636
6637 # Disable exceptions and RTTI if building with g++
6638 noexception_flags=
6639 save_CFLAGS="$CFLAGS"
6640 for real_option in -fno-exceptions -fno-rtti; do
6641 # Do the check with the no- prefix removed since gcc silently
6642 # accepts any -Wno-* option on purpose
6643 case $real_option in
6644 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6645 *) option=$real_option ;;
6646 esac
6647 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6650 $as_echo_n "checking whether $CC supports $option... " >&6; }
6651 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 CFLAGS="$option"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657
6658 int
6659 main ()
6660 {
6661
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 eval "$as_acx_Woption=yes"
6668 else
6669 eval "$as_acx_Woption=no"
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672
6673 fi
6674 eval ac_res=\$$as_acx_Woption
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6678 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6679 fi
6680 done
6681 CFLAGS="$save_CFLAGS"
6682
6683
6684 # Enable expensive internal checks
6685 is_release=
6686 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6687 is_release=yes
6688 fi
6689
6690 # Check whether --enable-checking was given.
6691 if test "${enable_checking+set}" = set; then :
6692 enableval=$enable_checking; ac_checking_flags="${enableval}"
6693 else
6694
6695 # Determine the default checks.
6696 if test x$is_release = x ; then
6697 ac_checking_flags=yes
6698 else
6699 ac_checking_flags=release
6700 fi
6701 fi
6702
6703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6704 for check in release $ac_checking_flags
6705 do
6706 case $check in
6707 # these set all the flags to specific states
6708 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6709 ac_fold_checking= ; ac_gc_checking=1 ;
6710 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6711 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6712 ac_tree_checking=1 ; ac_valgrind_checking= ;
6713 ac_types_checking=1 ;;
6714 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6715 ac_fold_checking= ; ac_gc_checking= ;
6716 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6717 ac_rtlflag_checking= ; ac_runtime_checking= ;
6718 ac_tree_checking= ; ac_valgrind_checking= ;
6719 ac_types_checking= ;;
6720 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6721 ac_fold_checking=1 ; ac_gc_checking=1 ;
6722 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6723 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6724 ac_tree_checking=1 ; ac_valgrind_checking= ;
6725 ac_types_checking=1 ;;
6726 release) ac_assert_checking=1 ; 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=1 ;
6730 ac_tree_checking= ; ac_valgrind_checking= ;
6731 ac_types_checking= ;;
6732 # these enable particular checks
6733 assert) ac_assert_checking=1 ;;
6734 df) ac_df_checking=1 ;;
6735 fold) ac_fold_checking=1 ;;
6736 gc) ac_gc_checking=1 ;;
6737 gcac) ac_gc_always_collect=1 ;;
6738 gimple) ac_gimple_checking=1 ;;
6739 misc) ac_checking=1 ;;
6740 rtl) ac_rtl_checking=1 ;;
6741 rtlflag) ac_rtlflag_checking=1 ;;
6742 runtime) ac_runtime_checking=1 ;;
6743 tree) ac_tree_checking=1 ;;
6744 types) ac_types_checking=1 ;;
6745 valgrind) ac_valgrind_checking=1 ;;
6746 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6747 esac
6748 done
6749 IFS="$ac_save_IFS"
6750
6751 nocommon_flag=""
6752 if test x$ac_checking != x ; then
6753
6754 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6755
6756 nocommon_flag=-fno-common
6757 fi
6758
6759 if test x$ac_df_checking != x ; then
6760
6761 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6762
6763 fi
6764 if test x$ac_assert_checking != x ; then
6765
6766 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6767
6768 fi
6769 if test x$ac_gimple_checking != x ; then
6770
6771 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6772
6773 fi
6774
6775 if test x$ac_runtime_checking != x ; then
6776
6777 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6778
6779 fi
6780 if test x$ac_tree_checking != x ; then
6781
6782 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6783
6784 TREEBROWSER=tree-browser.o
6785 fi
6786 if test x$ac_types_checking != x ; then
6787
6788 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6789
6790 fi
6791
6792 if test x$ac_rtl_checking != x ; then
6793
6794 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6795
6796 fi
6797 if test x$ac_rtlflag_checking != x ; then
6798
6799 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6800
6801 fi
6802 if test x$ac_gc_checking != x ; then
6803
6804 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6805
6806 fi
6807 if test x$ac_gc_always_collect != x ; then
6808
6809 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6810
6811 fi
6812 if test x$ac_fold_checking != x ; then
6813
6814 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6815
6816 fi
6817 valgrind_path_defines=
6818 valgrind_command=
6819
6820 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6822 have_valgrind_h=yes
6823 else
6824 have_valgrind_h=no
6825 fi
6826
6827
6828
6829 if test x$ac_valgrind_checking != x ; then
6830 # It is certainly possible that there's valgrind but no valgrind.h.
6831 # GCC relies on making annotations so we must have both.
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6833 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #include <valgrind/memcheck.h>
6837 #ifndef VALGRIND_DISCARD
6838 #error VALGRIND_DISCARD not defined
6839 #endif
6840 _ACEOF
6841 if ac_fn_c_try_cpp "$LINENO"; then :
6842 gcc_cv_header_valgrind_memcheck_h=yes
6843 else
6844 gcc_cv_header_valgrind_memcheck_h=no
6845 fi
6846 rm -f conftest.err conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6848 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6850 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <memcheck.h>
6854 #ifndef VALGRIND_DISCARD
6855 #error VALGRIND_DISCARD not defined
6856 #endif
6857 _ACEOF
6858 if ac_fn_c_try_cpp "$LINENO"; then :
6859 gcc_cv_header_memcheck_h=yes
6860 else
6861 gcc_cv_header_memcheck_h=no
6862 fi
6863 rm -f conftest.err conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6865 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6866
6867 # Prepare PATH_SEPARATOR.
6868 # The user is always right.
6869 if test "${PATH_SEPARATOR+set}" != set; then
6870 echo "#! /bin/sh" >conf$$.sh
6871 echo "exit 0" >>conf$$.sh
6872 chmod +x conf$$.sh
6873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6874 PATH_SEPARATOR=';'
6875 else
6876 PATH_SEPARATOR=:
6877 fi
6878 rm -f conf$$.sh
6879 fi
6880
6881 # Find out how to test for executable files. Don't use a zero-byte file,
6882 # as systems may use methods other than mode bits to determine executability.
6883 cat >conf$$.file <<_ASEOF
6884 #! /bin/sh
6885 exit 0
6886 _ASEOF
6887 chmod +x conf$$.file
6888 if test -x conf$$.file >/dev/null 2>&1; then
6889 ac_executable_p="test -x"
6890 else
6891 ac_executable_p="test -f"
6892 fi
6893 rm -f conf$$.file
6894
6895 # Extract the first word of "valgrind", so it can be a program name with args.
6896 set dummy valgrind; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 case "$valgrind_path" in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6908 for ac_dir in $PATH; do
6909 IFS="$ac_save_IFS"
6910 test -z "$ac_dir" && ac_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6913 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6914 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6915 break 2
6916 fi
6917 fi
6918 done
6919 done
6920 IFS="$ac_save_IFS"
6921 ;;
6922 esac
6923 fi
6924 valgrind_path="$ac_cv_path_valgrind_path"
6925 if test -n "$valgrind_path"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6927 $as_echo "$valgrind_path" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933 if test "x$valgrind_path" = "x" \
6934 || (test $have_valgrind_h = no \
6935 && test $gcc_cv_header_memcheck_h = no \
6936 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6937 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6938 fi
6939 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6940 valgrind_command="$valgrind_path -q"
6941
6942 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6943
6944 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6945
6946 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6947
6948 fi
6949 if test $gcc_cv_header_memcheck_h = yes; then
6950
6951 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6952
6953 fi
6954 fi
6955
6956
6957
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval=$enable_coverage; case "${enableval}" in
6962 yes|noopt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6964 ;;
6965 opt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6967 ;;
6968 no)
6969 # a.k.a. --disable-coverage
6970 coverage_flags=""
6971 ;;
6972 *)
6973 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6974 ;;
6975 esac
6976 else
6977 coverage_flags=""
6978 fi
6979
6980
6981
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval=$enable_gather_detailed_mem_stats;
6985 else
6986 enable_gather_detailed_mem_stats=no
6987 fi
6988
6989 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define GATHER_STATISTICS $gather_stats
6993 _ACEOF
6994
6995
6996 # -------------------------------
6997 # Miscenalleous configure options
6998 # -------------------------------
6999
7000 # See if we are building gcc with C++.
7001 # Check whether --enable-build-with-cxx was given.
7002 if test "${enable_build_with_cxx+set}" = set; then :
7003 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7004 else
7005 ENABLE_BUILD_WITH_CXX=no
7006 fi
7007
7008
7009 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7010
7011 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7012
7013 fi
7014
7015 # With stabs
7016
7017 # Check whether --with-stabs was given.
7018 if test "${with_stabs+set}" = set; then :
7019 withval=$with_stabs; stabs="$with_stabs"
7020 else
7021 stabs=no
7022 fi
7023
7024
7025 # Determine whether or not multilibs are enabled.
7026 # Check whether --enable-multilib was given.
7027 if test "${enable_multilib+set}" = set; then :
7028 enableval=$enable_multilib;
7029 else
7030 enable_multilib=yes
7031 fi
7032
7033
7034
7035 # Enable __cxa_atexit for C++.
7036 # Check whether --enable-__cxa_atexit was given.
7037 if test "${enable___cxa_atexit+set}" = set; then :
7038 enableval=$enable___cxa_atexit;
7039 fi
7040
7041
7042 # Enable C extension for decimal float if target supports it.
7043
7044 # Check whether --enable-decimal-float was given.
7045 if test "${enable_decimal_float+set}" = set; then :
7046 enableval=$enable_decimal_float;
7047 case $enable_decimal_float in
7048 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7049 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7050 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7051 esac
7052
7053 else
7054
7055 case $target in
7056 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7057 i?86*-*-mingw* | x86_64*-*-mingw* | \
7058 i?86*-*-cygwin*)
7059 enable_decimal_float=yes
7060 ;;
7061 *)
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7063 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7064 enable_decimal_float=no
7065 ;;
7066 esac
7067
7068 fi
7069
7070
7071 # x86's use BID format instead of DPD
7072 case x$enable_decimal_float in
7073 xyes)
7074 case $target in
7075 i?86*-*-* | x86_64*-*-*)
7076 enable_decimal_float=bid
7077 ;;
7078 *)
7079 enable_decimal_float=dpd
7080 ;;
7081 esac
7082 default_decimal_float=$enable_decimal_float
7083 ;;
7084 xno)
7085 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7086 # dependency on libdecnumber.
7087 default_decimal_float=dpd
7088 ;;
7089 esac
7090
7091
7092
7093
7094 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7095
7096 cat >>confdefs.h <<_ACEOF
7097 #define ENABLE_DECIMAL_FLOAT $dfp
7098 _ACEOF
7099
7100
7101 # Use default_decimal_float for dependency.
7102 enable_decimal_float=$default_decimal_float
7103
7104 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define ENABLE_DECIMAL_BID_FORMAT $bid
7108 _ACEOF
7109
7110
7111 # Enable C extension for fixed-point arithmetic.
7112 # Check whether --enable-fixed-point was given.
7113 if test "${enable_fixed_point+set}" = set; then :
7114 enableval=$enable_fixed_point;
7115 else
7116
7117 case $target in
7118 arm*)
7119 enable_fixed_point=yes
7120 ;;
7121
7122 mips*-*-*)
7123 enable_fixed_point=yes
7124 ;;
7125 *)
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7127 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7128 enable_fixed_point=no
7129 ;;
7130 esac
7131
7132 fi
7133
7134
7135
7136 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define ENABLE_FIXED_POINT $fixedpoint
7140 _ACEOF
7141
7142
7143 # Enable threads
7144 # Pass with no value to take the default
7145 # Pass with a value to specify a thread package
7146 # Check whether --enable-threads was given.
7147 if test "${enable_threads+set}" = set; then :
7148 enableval=$enable_threads;
7149 else
7150 enable_threads=''
7151 fi
7152
7153
7154 # Check whether --enable-tls was given.
7155 if test "${enable_tls+set}" = set; then :
7156 enableval=$enable_tls;
7157 case $enable_tls in
7158 yes | no) ;;
7159 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7160 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7161 esac
7162
7163 else
7164 enable_tls=''
7165 fi
7166
7167
7168 # Check whether --enable-objc-gc was given.
7169 if test "${enable_objc_gc+set}" = set; then :
7170 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7171 objc_boehm_gc=''
7172 else
7173 objc_boehm_gc=1
7174 fi
7175 else
7176 objc_boehm_gc=''
7177 fi
7178
7179
7180
7181 # Check whether --with-dwarf2 was given.
7182 if test "${with_dwarf2+set}" = set; then :
7183 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7184 else
7185 dwarf2=no
7186 fi
7187
7188
7189 # Check whether --enable-shared was given.
7190 if test "${enable_shared+set}" = set; then :
7191 enableval=$enable_shared;
7192 case $enable_shared in
7193 yes | no) ;;
7194 *)
7195 enable_shared=no
7196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7197 for pkg in $enableval; do
7198 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7199 enable_shared=yes
7200 fi
7201 done
7202 IFS="$ac_save_ifs"
7203 ;;
7204 esac
7205
7206 else
7207 enable_shared=yes
7208 fi
7209
7210
7211
7212
7213 # Check whether --with-native-system-header-dir was given.
7214 if test "${with_native_system_header_dir+set}" = set; then :
7215 withval=$with_native_system_header_dir;
7216 case ${with_native_system_header_dir} in
7217 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7218 /* | [A-Za-z]:[\\/]*) ;;
7219 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7220 esac
7221 configured_native_system_header_dir="${withval}"
7222
7223 else
7224 configured_native_system_header_dir=
7225 fi
7226
7227
7228
7229 # Check whether --with-build-sysroot was given.
7230 if test "${with_build_sysroot+set}" = set; then :
7231 withval=$with_build_sysroot; if test x"$withval" != x ; then
7232 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7233 fi
7234 else
7235 SYSROOT_CFLAGS_FOR_TARGET=
7236 fi
7237
7238
7239
7240 if test "x$prefix" = xNONE; then
7241 test_prefix=/usr/local
7242 else
7243 test_prefix=$prefix
7244 fi
7245 if test "x$exec_prefix" = xNONE; then
7246 test_exec_prefix=$test_prefix
7247 else
7248 test_exec_prefix=$exec_prefix
7249 fi
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 case ${TARGET_SYSTEM_ROOT} in
7264 "${test_prefix}"|"${test_prefix}/"*|\
7265 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7266 '${prefix}'|'${prefix}/'*|\
7267 '${exec_prefix}'|'${exec_prefix}/'*)
7268 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7269 TARGET_SYSTEM_ROOT_DEFINE="$t"
7270 ;;
7271 esac
7272
7273 else
7274
7275 TARGET_SYSTEM_ROOT=
7276 TARGET_SYSTEM_ROOT_DEFINE=
7277 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7278
7279 fi
7280
7281
7282
7283
7284
7285
7286 # Check whether --with-specs was given.
7287 if test "${with_specs+set}" = set; then :
7288 withval=$with_specs; CONFIGURE_SPECS=$withval
7289 else
7290 CONFIGURE_SPECS=
7291
7292 fi
7293
7294
7295
7296
7297
7298 # Check whether --with-pkgversion was given.
7299 if test "${with_pkgversion+set}" = set; then :
7300 withval=$with_pkgversion; case "$withval" in
7301 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7302 no) PKGVERSION= ;;
7303 *) PKGVERSION="($withval) " ;;
7304 esac
7305 else
7306 PKGVERSION="(GCC) "
7307
7308 fi
7309
7310
7311
7312
7313
7314 # Check whether --with-bugurl was given.
7315 if test "${with_bugurl+set}" = set; then :
7316 withval=$with_bugurl; case "$withval" in
7317 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7318 no) BUGURL=
7319 ;;
7320 *) BUGURL="$withval"
7321 ;;
7322 esac
7323 else
7324 BUGURL="http://gcc.gnu.org/bugs.html"
7325
7326 fi
7327
7328 case ${BUGURL} in
7329 "")
7330 REPORT_BUGS_TO=
7331 REPORT_BUGS_TEXI=
7332 ;;
7333 *)
7334 REPORT_BUGS_TO="<$BUGURL>"
7335 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7336 ;;
7337 esac;
7338
7339
7340
7341
7342 # Sanity check enable_languages in case someone does not run the toplevel
7343 # configure # script.
7344 # Check whether --enable-languages was given.
7345 if test "${enable_languages+set}" = set; then :
7346 enableval=$enable_languages; case ,${enable_languages}, in
7347 ,,|,yes,)
7348 # go safe -- we cannot be much sure without the toplevel
7349 # configure's
7350 # analysis of which target libs are present and usable
7351 enable_languages=c
7352 ;;
7353 *,all,*)
7354 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7355 ;;
7356 *,c,*)
7357 ;;
7358 *)
7359 enable_languages=c,${enable_languages}
7360 ;;
7361 esac
7362 else
7363 enable_languages=c
7364 fi
7365
7366
7367
7368 # Check whether --with-multilib-list was given.
7369 if test "${with_multilib_list+set}" = set; then :
7370 withval=$with_multilib_list; :
7371 else
7372 with_multilib_list=default
7373 fi
7374
7375
7376 # -------------------------
7377 # Checks for other programs
7378 # -------------------------
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7381 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7382 set x ${MAKE-make}
7383 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7384 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 cat >conftest.make <<\_ACEOF
7388 SHELL = /bin/sh
7389 all:
7390 @echo '@@@%%%=$(MAKE)=@@@%%%'
7391 _ACEOF
7392 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7394 *@@@%%%=?*=@@@%%%*)
7395 eval ac_cv_prog_make_${ac_make}_set=yes;;
7396 *)
7397 eval ac_cv_prog_make_${ac_make}_set=no;;
7398 esac
7399 rm -f conftest.make
7400 fi
7401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7403 $as_echo "yes" >&6; }
7404 SET_MAKE=
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 SET_MAKE="MAKE=${MAKE-make}"
7409 fi
7410
7411
7412 # Find some useful tools
7413 for ac_prog in gawk mawk nawk awk
7414 do
7415 # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if test "${ac_cv_prog_AWK+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$AWK"; then
7423 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_AWK="$ac_prog"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 AWK=$ac_cv_prog_AWK
7443 if test -n "$AWK"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7445 $as_echo "$AWK" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452 test -n "$AWK" && break
7453 done
7454
7455 # We need awk to create options.c and options.h.
7456 # Bail out if it's missing.
7457 case ${AWK} in
7458 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7459 esac
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7462 $as_echo_n "checking whether ln -s works... " >&6; }
7463 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 rm -f conftestdata_t
7467 echo >conftestdata_f
7468 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7469 then
7470 gcc_cv_prog_LN_S="ln -s"
7471 else
7472 if ln conftestdata_f conftestdata_t 2>/dev/null
7473 then
7474 gcc_cv_prog_LN_S=ln
7475 else
7476 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7477 then
7478 gcc_cv_prog_LN_S="cp -p"
7479 else
7480 gcc_cv_prog_LN_S=cp
7481 fi
7482 fi
7483 fi
7484 rm -f conftestdata_f conftestdata_t
7485
7486 fi
7487 LN_S="$gcc_cv_prog_LN_S"
7488 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7490 $as_echo "yes" >&6; }
7491 else
7492 if test "$gcc_cv_prog_LN_S" = "ln"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7494 $as_echo "no, using ln" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7497 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7498 fi
7499 fi
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7502 $as_echo_n "checking whether ln works... " >&6; }
7503 if test "${acx_cv_prog_LN+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 rm -f conftestdata_t
7507 echo >conftestdata_f
7508 if ln conftestdata_f conftestdata_t 2>/dev/null
7509 then
7510 acx_cv_prog_LN=ln
7511 else
7512 acx_cv_prog_LN=no
7513 fi
7514 rm -f conftestdata_f conftestdata_t
7515
7516 fi
7517 if test $acx_cv_prog_LN = no; then
7518 LN="$LN_S"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7520 $as_echo "no, using $LN" >&6; }
7521 else
7522 LN="$acx_cv_prog_LN"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7524 $as_echo "yes" >&6; }
7525 fi
7526
7527 if test -n "$ac_tool_prefix"; then
7528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 if test -n "$RANLIB"; then
7536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553 fi
7554 fi
7555 RANLIB=$ac_cv_prog_RANLIB
7556 if test -n "$RANLIB"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7558 $as_echo "$RANLIB" >&6; }
7559 else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563
7564
7565 fi
7566 if test -z "$ac_cv_prog_RANLIB"; then
7567 ac_ct_RANLIB=$RANLIB
7568 # Extract the first word of "ranlib", so it can be a program name with args.
7569 set dummy ranlib; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$ac_ct_RANLIB"; then
7576 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_ac_ct_RANLIB="ranlib"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7596 if test -n "$ac_ct_RANLIB"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7598 $as_echo "$ac_ct_RANLIB" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604 if test "x$ac_ct_RANLIB" = x; then
7605 RANLIB=":"
7606 else
7607 case $cross_compiling:$ac_tool_warned in
7608 yes:)
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7611 ac_tool_warned=yes ;;
7612 esac
7613 RANLIB=$ac_ct_RANLIB
7614 fi
7615 else
7616 RANLIB="$ac_cv_prog_RANLIB"
7617 fi
7618
7619 ranlib_flags=""
7620
7621
7622 # Find a good install program. We prefer a C program (faster),
7623 # so one script is as good as another. But avoid the broken or
7624 # incompatible versions:
7625 # SysV /etc/install, /usr/sbin/install
7626 # SunOS /usr/etc/install
7627 # IRIX /sbin/install
7628 # AIX /bin/install
7629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7631 # ./install, which can be erroneously created by make from ./install.sh.
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7633 $as_echo_n "checking for a BSD compatible install... " >&6; }
7634 if test -z "$INSTALL"; then
7635 if test "${ac_cv_path_install+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7639 for ac_dir in $PATH; do
7640 # Account for people who put trailing slashes in PATH elements.
7641 case "$ac_dir/" in
7642 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7643 *)
7644 # OSF1 and SCO ODT 3.0 have their own names for install.
7645 for ac_prog in ginstall scoinst install; do
7646 if test -f $ac_dir/$ac_prog; then
7647 if test $ac_prog = install &&
7648 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7649 # AIX install. It has an incompatible calling convention.
7650 # OSF/1 installbsd also uses dspmsg, but is usable.
7651 :
7652 else
7653 ac_cv_path_install="$ac_dir/$ac_prog -c"
7654 break 2
7655 fi
7656 fi
7657 done
7658 ;;
7659 esac
7660 done
7661 IFS="$ac_save_IFS"
7662
7663 fi
7664 if test "${ac_cv_path_install+set}" = set; then
7665 INSTALL="$ac_cv_path_install"
7666 else
7667 # As a last resort, use the slow shell script. We don't cache a
7668 # path for INSTALL within a source directory, because that will
7669 # break other packages using the cache if that directory is
7670 # removed, or if the path is relative.
7671 INSTALL="$ac_install_sh"
7672 fi
7673 fi
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7675 $as_echo "$INSTALL" >&6; }
7676
7677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7678 # It thinks the first close brace ends the variable substitution.
7679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7680
7681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7682
7683
7684 # See if cmp has --ignore-initial.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7686 $as_echo_n "checking for cmp's capabilities... " >&6; }
7687 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 echo abfoo >t1
7691 echo cdfoo >t2
7692 gcc_cv_prog_cmp_skip=slowcompare
7693 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7694 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7695 :
7696 else
7697 gcc_cv_prog_cmp_skip=gnucompare
7698 fi
7699 fi
7700 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7701 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7702 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7703 :
7704 else
7705 gcc_cv_prog_cmp_skip=fastcompare
7706 fi
7707 fi
7708 fi
7709 rm t1 t2
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7713 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7714 make_compare_target=$gcc_cv_prog_cmp_skip
7715
7716
7717
7718 # See if we have the mktemp command.
7719 # Extract the first word of "mktemp", so it can be a program name with args.
7720 set dummy mktemp; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$have_mktemp_command"; then
7727 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_have_mktemp_command="yes"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7745 fi
7746 fi
7747 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7748 if test -n "$have_mktemp_command"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7750 $as_echo "$have_mktemp_command" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757
7758 # See if makeinfo has been installed and is modern enough
7759 # that we can use it.
7760
7761 # Extract the first word of "makeinfo", so it can be a program name with args.
7762 set dummy makeinfo; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$MAKEINFO"; then
7769 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_MAKEINFO="makeinfo"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 MAKEINFO=$ac_cv_prog_MAKEINFO
7789 if test -n "$MAKEINFO"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7791 $as_echo "$MAKEINFO" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 if test -n "$MAKEINFO"; then
7799 # Found it, now check the version.
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7801 $as_echo_n "checking for modern makeinfo... " >&6; }
7802 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7806 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7807
7808 case $ac_prog_version in
7809 '') gcc_cv_prog_makeinfo_modern=no;;
7810 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7811 *) gcc_cv_prog_makeinfo_modern=no;;
7812 esac
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7816 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7817 else
7818 gcc_cv_prog_makeinfo_modern=no
7819 fi
7820 if test $gcc_cv_prog_makeinfo_modern = no; then
7821 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7822 fi
7823
7824 if test $gcc_cv_prog_makeinfo_modern = no; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7826 *** Makeinfo is missing or too old.
7827 *** Info documentation will not be built." >&5
7828 $as_echo "$as_me: WARNING:
7829 *** Makeinfo is missing or too old.
7830 *** Info documentation will not be built." >&2;}
7831 BUILD_INFO=
7832 else
7833 BUILD_INFO=info
7834 fi
7835
7836
7837 # Is pod2man recent enough to regenerate manpages?
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7839 $as_echo_n "checking for recent Pod::Man... " >&6; }
7840 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7843 GENERATED_MANPAGES=generated-manpages
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 GENERATED_MANPAGES=
7848 fi
7849
7850
7851 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7852
7853 # How about lex?
7854 for ac_prog in flex
7855 do
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_FLEX+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$FLEX"; then
7864 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_FLEX="$ac_prog"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 FLEX=$ac_cv_prog_FLEX
7884 if test -n "$FLEX"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7886 $as_echo "$FLEX" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 test -n "$FLEX" && break
7894 done
7895 test -n "$FLEX" || FLEX="$MISSING flex"
7896
7897
7898 # Bison?
7899 for ac_prog in bison
7900 do
7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_BISON+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$BISON"; then
7909 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_BISON="$ac_prog"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 BISON=$ac_cv_prog_BISON
7929 if test -n "$BISON"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7931 $as_echo "$BISON" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 test -n "$BISON" && break
7939 done
7940 test -n "$BISON" || BISON="$MISSING bison"
7941
7942
7943 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7944 # check for build == host before using them.
7945
7946 # NM
7947 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7948 && test -d ../binutils ; then
7949 NM='${objdir}/../binutils/nm-new'
7950 else
7951 # Extract the first word of "nm", so it can be a program name with args.
7952 set dummy nm; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if test "${ac_cv_prog_NM+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 if test -n "$NM"; then
7959 ac_cv_prog_NM="$NM" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_prog_NM="nm"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7977 fi
7978 fi
7979 NM=$ac_cv_prog_NM
7980 if test -n "$NM"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7982 $as_echo "$NM" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988
7989 fi
7990
7991 # AR
7992 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7993 && test -d ../binutils ; then
7994 AR='${objdir}/../binutils/ar'
7995 else
7996 # Extract the first word of "ar", so it can be a program name with args.
7997 set dummy ar; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if test "${ac_cv_prog_AR+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 if test -n "$AR"; then
8004 ac_cv_prog_AR="$AR" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_AR="ar"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8022 fi
8023 fi
8024 AR=$ac_cv_prog_AR
8025 if test -n "$AR"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8027 $as_echo "$AR" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032
8033
8034 fi
8035
8036
8037 # --------------------
8038 # Checks for C headers
8039 # --------------------
8040
8041 # Need to reject headers which give warnings, so that the -Werror bootstrap
8042 # works later. *sigh* This needs to come before all header checks.
8043
8044 ac_c_preproc_warn_flag=yes
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8047 $as_echo_n "checking for ANSI C header files... " >&6; }
8048 if test "${ac_cv_header_stdc+set}" = set; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 #include <stdlib.h>
8054 #include <stdarg.h>
8055 #include <string.h>
8056 #include <float.h>
8057
8058 int
8059 main ()
8060 {
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 ac_cv_header_stdc=yes
8068 else
8069 ac_cv_header_stdc=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072
8073 if test $ac_cv_header_stdc = yes; then
8074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <string.h>
8078
8079 _ACEOF
8080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8081 $EGREP "memchr" >/dev/null 2>&1; then :
8082
8083 else
8084 ac_cv_header_stdc=no
8085 fi
8086 rm -f conftest*
8087
8088 fi
8089
8090 if test $ac_cv_header_stdc = yes; then
8091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <stdlib.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "free" >/dev/null 2>&1; then :
8099
8100 else
8101 ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8109 if test "$cross_compiling" = yes; then :
8110 :
8111 else
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <ctype.h>
8115 #include <stdlib.h>
8116 #if ((' ' & 0x0FF) == 0x020)
8117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8119 #else
8120 # define ISLOWER(c) \
8121 (('a' <= (c) && (c) <= 'i') \
8122 || ('j' <= (c) && (c) <= 'r') \
8123 || ('s' <= (c) && (c) <= 'z'))
8124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8125 #endif
8126
8127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8128 int
8129 main ()
8130 {
8131 int i;
8132 for (i = 0; i < 256; i++)
8133 if (XOR (islower (i), ISLOWER (i))
8134 || toupper (i) != TOUPPER (i))
8135 return 2;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_run "$LINENO"; then :
8140
8141 else
8142 ac_cv_header_stdc=no
8143 fi
8144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8145 conftest.$ac_objext conftest.beam conftest.$ac_ext
8146 fi
8147
8148 fi
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8151 $as_echo "$ac_cv_header_stdc" >&6; }
8152 if test $ac_cv_header_stdc = yes; then
8153
8154 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8155
8156 fi
8157
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8159 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8160 if test "${ac_cv_header_time+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165 #include <sys/types.h>
8166 #include <sys/time.h>
8167 #include <time.h>
8168
8169 int
8170 main ()
8171 {
8172 if ((struct tm *) 0)
8173 return 0;
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179 ac_cv_header_time=yes
8180 else
8181 ac_cv_header_time=no
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8186 $as_echo "$ac_cv_header_time" >&6; }
8187 if test $ac_cv_header_time = yes; then
8188
8189 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8190
8191 fi
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8194 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8195 if test "${gcc_cv_header_string+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <string.h>
8201 #include <strings.h>
8202 int
8203 main ()
8204 {
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 gcc_cv_header_string=yes
8212 else
8213 gcc_cv_header_string=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8218 $as_echo "$gcc_cv_header_string" >&6; }
8219 if test $gcc_cv_header_string = yes; then
8220
8221 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8222
8223 fi
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8226 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8227 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #include <sys/types.h>
8233 #include <sys/wait.h>
8234 #ifndef WEXITSTATUS
8235 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8236 #endif
8237 #ifndef WIFEXITED
8238 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8239 #endif
8240
8241 int
8242 main ()
8243 {
8244 int s;
8245 wait (&s);
8246 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 ac_cv_header_sys_wait_h=yes
8253 else
8254 ac_cv_header_sys_wait_h=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8259 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8260 if test $ac_cv_header_sys_wait_h = yes; then
8261
8262 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8263
8264 fi
8265
8266 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8267 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8268 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8269 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8270 do :
8271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8273 eval as_val=\$$as_ac_Header
8274 if test "x$as_val" = x""yes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280 done
8281
8282
8283 # Check for thread headers.
8284 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8285 if test "x$ac_cv_header_thread_h" = x""yes; then :
8286 have_thread_h=yes
8287 else
8288 have_thread_h=
8289 fi
8290
8291 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8292 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8293 have_pthread_h=yes
8294 else
8295 have_pthread_h=
8296 fi
8297
8298
8299 # These tests can't be done till we know if we have limits.h.
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8301 $as_echo_n "checking for CHAR_BIT... " >&6; }
8302 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 #ifdef HAVE_LIMITS_H
8308 #include <limits.h>
8309 #endif
8310 #ifdef CHAR_BIT
8311 found
8312 #endif
8313 _ACEOF
8314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8315 $EGREP "found" >/dev/null 2>&1; then :
8316 gcc_cv_decl_char_bit=yes
8317 else
8318 gcc_cv_decl_char_bit=no
8319 fi
8320 rm -f conftest*
8321
8322
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8325 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8326 if test $gcc_cv_decl_char_bit = no; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8328 $as_echo_n "checking number of bits in a byte... " >&6; }
8329 if test "${gcc_cv_c_nbby+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 i=8
8333 gcc_cv_c_nbby=
8334 while test $i -lt 65; do
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338 int
8339 main ()
8340 {
8341 switch(0) {
8342 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8343 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8344 ; }
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 gcc_cv_c_nbby=$i; break
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 i=`expr $i + 1`
8354 done
8355 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8356
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8359 $as_echo "$gcc_cv_c_nbby" >&6; }
8360 if test $gcc_cv_c_nbby = failed; then
8361 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8362 else
8363
8364 cat >>confdefs.h <<_ACEOF
8365 #define CHAR_BIT $gcc_cv_c_nbby
8366 _ACEOF
8367
8368 fi
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8371 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8372 if test "${ac_cv_c_bigendian+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 ac_cv_c_bigendian=unknown
8376 # See if we're dealing with a universal compiler.
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 #ifndef __APPLE_CC__
8380 not a universal capable compiler
8381 #endif
8382 typedef int dummy;
8383
8384 _ACEOF
8385 if ac_fn_c_try_compile "$LINENO"; then :
8386
8387 # Check for potential -arch flags. It is not universal unless
8388 # there are at least two -arch flags with different values.
8389 ac_arch=
8390 ac_prev=
8391 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8392 if test -n "$ac_prev"; then
8393 case $ac_word in
8394 i?86 | x86_64 | ppc | ppc64)
8395 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8396 ac_arch=$ac_word
8397 else
8398 ac_cv_c_bigendian=universal
8399 break
8400 fi
8401 ;;
8402 esac
8403 ac_prev=
8404 elif test "x$ac_word" = "x-arch"; then
8405 ac_prev=arch
8406 fi
8407 done
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 if test $ac_cv_c_bigendian = unknown; then
8411 # See if sys/param.h defines the BYTE_ORDER macro.
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <sys/types.h>
8415 #include <sys/param.h>
8416
8417 int
8418 main ()
8419 {
8420 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8421 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8422 && LITTLE_ENDIAN)
8423 bogus endian macros
8424 #endif
8425
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 # It does; now see whether it defined to BIG_ENDIAN or not.
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 #include <sys/types.h>
8435 #include <sys/param.h>
8436
8437 int
8438 main ()
8439 {
8440 #if BYTE_ORDER != BIG_ENDIAN
8441 not big endian
8442 #endif
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 ac_cv_c_bigendian=yes
8450 else
8451 ac_cv_c_bigendian=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 if test $ac_cv_c_bigendian = unknown; then
8458 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <limits.h>
8462
8463 int
8464 main ()
8465 {
8466 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8467 bogus endian macros
8468 #endif
8469
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 # It does; now see whether it defined to _BIG_ENDIAN or not.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <limits.h>
8479
8480 int
8481 main ()
8482 {
8483 #ifndef _BIG_ENDIAN
8484 not big endian
8485 #endif
8486
8487 ;
8488 return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 ac_cv_c_bigendian=yes
8493 else
8494 ac_cv_c_bigendian=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # Compile a test program.
8502 if test "$cross_compiling" = yes; then :
8503 # Try to guess by grepping values from an object file.
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 short int ascii_mm[] =
8507 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8508 short int ascii_ii[] =
8509 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8510 int use_ascii (int i) {
8511 return ascii_mm[i] + ascii_ii[i];
8512 }
8513 short int ebcdic_ii[] =
8514 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8515 short int ebcdic_mm[] =
8516 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8517 int use_ebcdic (int i) {
8518 return ebcdic_mm[i] + ebcdic_ii[i];
8519 }
8520 extern int foo;
8521
8522 int
8523 main ()
8524 {
8525 return use_ascii (foo) == use_ebcdic (foo);
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 if ac_fn_c_try_compile "$LINENO"; then :
8531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8532 ac_cv_c_bigendian=yes
8533 fi
8534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8535 if test "$ac_cv_c_bigendian" = unknown; then
8536 ac_cv_c_bigendian=no
8537 else
8538 # finding both strings is unlikely to happen, but who knows?
8539 ac_cv_c_bigendian=unknown
8540 fi
8541 fi
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 else
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 int
8549 main ()
8550 {
8551
8552 /* Are we little or big endian? From Harbison&Steele. */
8553 union
8554 {
8555 long int l;
8556 char c[sizeof (long int)];
8557 } u;
8558 u.l = 1;
8559 return u.c[sizeof (long int) - 1] == 1;
8560
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_run "$LINENO"; then :
8566 ac_cv_c_bigendian=no
8567 else
8568 ac_cv_c_bigendian=yes
8569 fi
8570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8571 conftest.$ac_objext conftest.beam conftest.$ac_ext
8572 fi
8573
8574 fi
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8577 $as_echo "$ac_cv_c_bigendian" >&6; }
8578 case $ac_cv_c_bigendian in #(
8579 yes)
8580 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8581 ;; #(
8582 no)
8583 ;; #(
8584 universal)
8585
8586 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8587
8588 ;; #(
8589 *)
8590 as_fn_error "unknown endianness
8591 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8592 esac
8593
8594
8595 # ----------------------
8596 # Checks for C++ headers
8597 # ----------------------
8598
8599 ac_ext=cpp
8600 ac_cpp='$CXXCPP $CPPFLAGS'
8601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8605 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8606 if test -z "$CXXCPP"; then
8607 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 # Double quotes because CXXCPP needs to be expanded
8611 for CXXCPP in "$CXX -E" "/lib/cpp"
8612 do
8613 ac_preproc_ok=false
8614 for ac_cxx_preproc_warn_flag in '' yes
8615 do
8616 # Use a header file that comes with gcc, so configuring glibc
8617 # with a fresh cross-compiler works.
8618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8619 # <limits.h> exists even on freestanding compilers.
8620 # On the NeXT, cc -E runs the code through the compiler's parser,
8621 # not just through cpp. "Syntax error" is here to catch this case.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #ifdef __STDC__
8625 # include <limits.h>
8626 #else
8627 # include <assert.h>
8628 #endif
8629 Syntax error
8630 _ACEOF
8631 if ac_fn_cxx_try_cpp "$LINENO"; then :
8632
8633 else
8634 # Broken: fails on valid input.
8635 continue
8636 fi
8637 rm -f conftest.err conftest.$ac_ext
8638
8639 # OK, works on sane cases. Now check whether nonexistent headers
8640 # can be detected and how.
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <ac_nonexistent.h>
8644 _ACEOF
8645 if ac_fn_cxx_try_cpp "$LINENO"; then :
8646 # Broken: success on invalid input.
8647 continue
8648 else
8649 # Passes both tests.
8650 ac_preproc_ok=:
8651 break
8652 fi
8653 rm -f conftest.err conftest.$ac_ext
8654
8655 done
8656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8657 rm -f conftest.err conftest.$ac_ext
8658 if $ac_preproc_ok; then :
8659 break
8660 fi
8661
8662 done
8663 ac_cv_prog_CXXCPP=$CXXCPP
8664
8665 fi
8666 CXXCPP=$ac_cv_prog_CXXCPP
8667 else
8668 ac_cv_prog_CXXCPP=$CXXCPP
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8671 $as_echo "$CXXCPP" >&6; }
8672 ac_preproc_ok=false
8673 for ac_cxx_preproc_warn_flag in '' yes
8674 do
8675 # Use a header file that comes with gcc, so configuring glibc
8676 # with a fresh cross-compiler works.
8677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8678 # <limits.h> exists even on freestanding compilers.
8679 # On the NeXT, cc -E runs the code through the compiler's parser,
8680 # not just through cpp. "Syntax error" is here to catch this case.
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #ifdef __STDC__
8684 # include <limits.h>
8685 #else
8686 # include <assert.h>
8687 #endif
8688 Syntax error
8689 _ACEOF
8690 if ac_fn_cxx_try_cpp "$LINENO"; then :
8691
8692 else
8693 # Broken: fails on valid input.
8694 continue
8695 fi
8696 rm -f conftest.err conftest.$ac_ext
8697
8698 # OK, works on sane cases. Now check whether nonexistent headers
8699 # can be detected and how.
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <ac_nonexistent.h>
8703 _ACEOF
8704 if ac_fn_cxx_try_cpp "$LINENO"; then :
8705 # Broken: success on invalid input.
8706 continue
8707 else
8708 # Passes both tests.
8709 ac_preproc_ok=:
8710 break
8711 fi
8712 rm -f conftest.err conftest.$ac_ext
8713
8714 done
8715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8716 rm -f conftest.err conftest.$ac_ext
8717 if $ac_preproc_ok; then :
8718
8719 else
8720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8723 See \`config.log' for more details." >&5
8724 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8725 See \`config.log' for more details." >&2;}; }
8726 fi
8727
8728 ac_ext=c
8729 ac_cpp='$CPP $CPPFLAGS'
8730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8733
8734
8735 ac_ext=cpp
8736 ac_cpp='$CXXCPP $CPPFLAGS'
8737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8740
8741
8742
8743
8744 for ac_header in unordered_map
8745 do :
8746 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8747 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_UNORDERED_MAP 1
8750 _ACEOF
8751
8752 fi
8753 done
8754
8755 for ac_header in tr1/unordered_map
8756 do :
8757 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8758 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8759 cat >>confdefs.h <<_ACEOF
8760 #define HAVE_TR1_UNORDERED_MAP 1
8761 _ACEOF
8762
8763 fi
8764 done
8765
8766 for ac_header in ext/hash_map
8767 do :
8768 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8769 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_EXT_HASH_MAP 1
8772 _ACEOF
8773
8774 fi
8775 done
8776
8777
8778 ac_ext=c
8779 ac_cpp='$CPP $CPPFLAGS'
8780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
8784
8785 # --------
8786 # UNSORTED
8787 # --------
8788
8789
8790 # These libraries may be used by collect2.
8791 # We may need a special search path to get them linked.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8793 $as_echo_n "checking for collect2 libraries... " >&6; }
8794 if test "${gcc_cv_collect2_libs+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 save_LIBS="$LIBS"
8798 for libs in '' -lld -lmld \
8799 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8800 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8801 do
8802 LIBS="$libs"
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 char ldopen ();
8813 int
8814 main ()
8815 {
8816 return ldopen ();
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 gcc_cv_collect2_libs="$libs"; break
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 done
8827 LIBS="$save_LIBS"
8828 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8831 $as_echo "$gcc_cv_collect2_libs" >&6; }
8832 case $gcc_cv_collect2_libs in
8833 "none required") ;;
8834 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8835 esac
8836
8837
8838 # When building Ada code on Alpha, we need exc_resume which is usually in
8839 # -lexc. So test for it.
8840 save_LIBS="$LIBS"
8841 LIBS=
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8843 $as_echo_n "checking for library containing exc_resume... " >&6; }
8844 if test "${ac_cv_search_exc_resume+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 ac_func_search_save_LIBS=$LIBS
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 char exc_resume ();
8858 int
8859 main ()
8860 {
8861 return exc_resume ();
8862 ;
8863 return 0;
8864 }
8865 _ACEOF
8866 for ac_lib in '' exc; do
8867 if test -z "$ac_lib"; then
8868 ac_res="none required"
8869 else
8870 ac_res=-l$ac_lib
8871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8872 fi
8873 if ac_fn_c_try_link "$LINENO"; then :
8874 ac_cv_search_exc_resume=$ac_res
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext
8878 if test "${ac_cv_search_exc_resume+set}" = set; then :
8879 break
8880 fi
8881 done
8882 if test "${ac_cv_search_exc_resume+set}" = set; then :
8883
8884 else
8885 ac_cv_search_exc_resume=no
8886 fi
8887 rm conftest.$ac_ext
8888 LIBS=$ac_func_search_save_LIBS
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8891 $as_echo "$ac_cv_search_exc_resume" >&6; }
8892 ac_res=$ac_cv_search_exc_resume
8893 if test "$ac_res" != no; then :
8894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8895
8896 fi
8897
8898 GNAT_LIBEXC="$LIBS"
8899 LIBS="$save_LIBS"
8900
8901
8902 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8903 save_LIBS="$LIBS"
8904 LIBS=
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8906 $as_echo_n "checking for library containing kstat_open... " >&6; }
8907 if test "${ac_cv_search_kstat_open+set}" = set; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_func_search_save_LIBS=$LIBS
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char kstat_open ();
8921 int
8922 main ()
8923 {
8924 return kstat_open ();
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 for ac_lib in '' kstat; do
8930 if test -z "$ac_lib"; then
8931 ac_res="none required"
8932 else
8933 ac_res=-l$ac_lib
8934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8935 fi
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 ac_cv_search_kstat_open=$ac_res
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext
8941 if test "${ac_cv_search_kstat_open+set}" = set; then :
8942 break
8943 fi
8944 done
8945 if test "${ac_cv_search_kstat_open+set}" = set; then :
8946
8947 else
8948 ac_cv_search_kstat_open=no
8949 fi
8950 rm conftest.$ac_ext
8951 LIBS=$ac_func_search_save_LIBS
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8954 $as_echo "$ac_cv_search_kstat_open" >&6; }
8955 ac_res=$ac_cv_search_kstat_open
8956 if test "$ac_res" != no; then :
8957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958
8959 fi
8960
8961 EXTRA_GCC_LIBS="$LIBS"
8962 LIBS="$save_LIBS"
8963
8964
8965 # Some systems put ldexp and frexp in libm instead of libc; assume
8966 # they're both in the same place. jcf-dump needs them.
8967 save_LIBS="$LIBS"
8968 LIBS=
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8970 $as_echo_n "checking for library containing ldexp... " >&6; }
8971 if test "${ac_cv_search_ldexp+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 ac_func_search_save_LIBS=$LIBS
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977
8978 /* Override any GCC internal prototype to avoid an error.
8979 Use char because int might match the return type of a GCC
8980 builtin and then its argument prototype would still apply. */
8981 #ifdef __cplusplus
8982 extern "C"
8983 #endif
8984 char ldexp ();
8985 int
8986 main ()
8987 {
8988 return ldexp ();
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 for ac_lib in '' m; do
8994 if test -z "$ac_lib"; then
8995 ac_res="none required"
8996 else
8997 ac_res=-l$ac_lib
8998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8999 fi
9000 if ac_fn_c_try_link "$LINENO"; then :
9001 ac_cv_search_ldexp=$ac_res
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext
9005 if test "${ac_cv_search_ldexp+set}" = set; then :
9006 break
9007 fi
9008 done
9009 if test "${ac_cv_search_ldexp+set}" = set; then :
9010
9011 else
9012 ac_cv_search_ldexp=no
9013 fi
9014 rm conftest.$ac_ext
9015 LIBS=$ac_func_search_save_LIBS
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9018 $as_echo "$ac_cv_search_ldexp" >&6; }
9019 ac_res=$ac_cv_search_ldexp
9020 if test "$ac_res" != no; then :
9021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9022
9023 fi
9024
9025 LDEXP_LIB="$LIBS"
9026 LIBS="$save_LIBS"
9027
9028
9029 # Use <inttypes.h> only if it exists,
9030 # doesn't clash with <sys/types.h>, and declares intmax_t.
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9032 $as_echo_n "checking for inttypes.h... " >&6; }
9033 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <sys/types.h>
9039 #include <inttypes.h>
9040 int
9041 main ()
9042 {
9043 intmax_t i = -1;
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 gcc_cv_header_inttypes_h=yes
9050 else
9051 gcc_cv_header_inttypes_h=no
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9057 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9058 if test $gcc_cv_header_inttypes_h = yes; then
9059
9060 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9061
9062 fi
9063
9064
9065
9066 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9067 sysconf strsignal getrusage nl_langinfo \
9068 gettimeofday mbstowcs wcswidth mmap setlocale \
9069 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
9070 do :
9071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9073 eval as_val=\$$as_ac_var
9074 if test "x$as_val" = x""yes; then :
9075 cat >>confdefs.h <<_ACEOF
9076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9077 _ACEOF
9078
9079 fi
9080 done
9081
9082
9083 if test x$ac_cv_func_mbstowcs = xyes; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9085 $as_echo_n "checking whether mbstowcs works... " >&6; }
9086 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test "$cross_compiling" = yes; then :
9090 gcc_cv_func_mbstowcs_works=yes
9091 else
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 #include <stdlib.h>
9095 int main()
9096 {
9097 mbstowcs(0, "", 0);
9098 return 0;
9099 }
9100 _ACEOF
9101 if ac_fn_c_try_run "$LINENO"; then :
9102 gcc_cv_func_mbstowcs_works=yes
9103 else
9104 gcc_cv_func_mbstowcs_works=no
9105 fi
9106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9107 conftest.$ac_objext conftest.beam conftest.$ac_ext
9108 fi
9109
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9112 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9113 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9114
9115 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9116
9117 fi
9118 fi
9119
9120 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9121 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9122
9123 else
9124
9125 cat >>confdefs.h <<_ACEOF
9126 #define ssize_t int
9127 _ACEOF
9128
9129 fi
9130
9131 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9132 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9133
9134 else
9135
9136 cat >>confdefs.h <<_ACEOF
9137 #define caddr_t char *
9138 _ACEOF
9139
9140 fi
9141
9142
9143
9144 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9145 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9146 gcc_header_sys_mman_h=yes
9147 else
9148 gcc_header_sys_mman_h=no
9149 fi
9150
9151 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9152 if test "x$ac_cv_func_mmap" = x""yes; then :
9153 gcc_func_mmap=yes
9154 else
9155 gcc_func_mmap=no
9156 fi
9157
9158 if test "$gcc_header_sys_mman_h" != yes \
9159 || test "$gcc_func_mmap" != yes; then
9160 gcc_cv_func_mmap_file=no
9161 gcc_cv_func_mmap_dev_zero=no
9162 gcc_cv_func_mmap_anon=no
9163 else
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9165 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9166 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 # Add a system to this blacklist if
9170 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9171 # memory area containing the same data that you'd get if you applied
9172 # read() to the same fd. The only system known to have a problem here
9173 # is VMS, where text files have record structure.
9174 case "$host_os" in
9175 *vms* | ultrix*)
9176 gcc_cv_func_mmap_file=no ;;
9177 *)
9178 gcc_cv_func_mmap_file=yes;;
9179 esac
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9182 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9184 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9185 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 # Add a system to this blacklist if it has mmap() but /dev/zero
9189 # does not exist, or if mmapping /dev/zero does not give anonymous
9190 # zeroed pages with both the following properties:
9191 # 1. If you map N consecutive pages in with one call, and then
9192 # unmap any subset of those pages, the pages that were not
9193 # explicitly unmapped remain accessible.
9194 # 2. If you map two adjacent blocks of memory and then unmap them
9195 # both at once, they must both go away.
9196 # Systems known to be in this category are Windows (all variants),
9197 # VMS, and Darwin.
9198 case "$host_os" in
9199 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9200 gcc_cv_func_mmap_dev_zero=no ;;
9201 *)
9202 gcc_cv_func_mmap_dev_zero=yes;;
9203 esac
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9206 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9207
9208 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9210 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9211 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <sys/types.h>
9217 #include <sys/mman.h>
9218 #include <unistd.h>
9219
9220 #ifndef MAP_ANONYMOUS
9221 #define MAP_ANONYMOUS MAP_ANON
9222 #endif
9223
9224 int
9225 main ()
9226 {
9227 int n = MAP_ANONYMOUS;
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 gcc_cv_decl_map_anon=yes
9234 else
9235 gcc_cv_decl_map_anon=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9240 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9241
9242 if test $gcc_cv_decl_map_anon = no; then
9243 gcc_cv_func_mmap_anon=no
9244 else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9246 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9247 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9251 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9252 # doesn't give anonymous zeroed pages with the same properties listed
9253 # above for use of /dev/zero.
9254 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9255 case "$host_os" in
9256 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9257 gcc_cv_func_mmap_anon=no ;;
9258 *)
9259 gcc_cv_func_mmap_anon=yes;;
9260 esac
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9263 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9264 fi
9265 fi
9266
9267 if test $gcc_cv_func_mmap_file = yes; then
9268
9269 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9270
9271 fi
9272 if test $gcc_cv_func_mmap_dev_zero = yes; then
9273
9274 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9275
9276 fi
9277 if test $gcc_cv_func_mmap_anon = yes; then
9278
9279 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9280
9281 fi
9282
9283
9284 case "${host}" in
9285 *-*-*vms*)
9286 # Under VMS, vfork works very differently than on Unix. The standard test
9287 # won't work, and it isn't easily adaptable. It makes more sense to
9288 # just force it.
9289 ac_cv_func_vfork_works=yes
9290 ;;
9291 esac
9292 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9293 if test "x$ac_cv_type_pid_t" = x""yes; then :
9294
9295 else
9296
9297 cat >>confdefs.h <<_ACEOF
9298 #define pid_t int
9299 _ACEOF
9300
9301 fi
9302
9303 for ac_header in vfork.h
9304 do :
9305 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9306 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9307 cat >>confdefs.h <<_ACEOF
9308 #define HAVE_VFORK_H 1
9309 _ACEOF
9310
9311 fi
9312 done
9313
9314 for ac_func in fork vfork
9315 do :
9316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9318 eval as_val=\$$as_ac_var
9319 if test "x$as_val" = x""yes; then :
9320 cat >>confdefs.h <<_ACEOF
9321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9322 _ACEOF
9323
9324 fi
9325 done
9326
9327 if test "x$ac_cv_func_fork" = xyes; then
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9329 $as_echo_n "checking for working fork... " >&6; }
9330 if test "${ac_cv_func_fork_works+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test "$cross_compiling" = yes; then :
9334 ac_cv_func_fork_works=cross
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 int
9340 main ()
9341 {
9342
9343 /* By Ruediger Kuhlmann. */
9344 return fork () < 0;
9345
9346 ;
9347 return 0;
9348 }
9349 _ACEOF
9350 if ac_fn_c_try_run "$LINENO"; then :
9351 ac_cv_func_fork_works=yes
9352 else
9353 ac_cv_func_fork_works=no
9354 fi
9355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9356 conftest.$ac_objext conftest.beam conftest.$ac_ext
9357 fi
9358
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9361 $as_echo "$ac_cv_func_fork_works" >&6; }
9362
9363 else
9364 ac_cv_func_fork_works=$ac_cv_func_fork
9365 fi
9366 if test "x$ac_cv_func_fork_works" = xcross; then
9367 case $host in
9368 *-*-amigaos* | *-*-msdosdjgpp*)
9369 # Override, as these systems have only a dummy fork() stub
9370 ac_cv_func_fork_works=no
9371 ;;
9372 *)
9373 ac_cv_func_fork_works=yes
9374 ;;
9375 esac
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9377 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9378 fi
9379 ac_cv_func_vfork_works=$ac_cv_func_vfork
9380 if test "x$ac_cv_func_vfork" = xyes; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9382 $as_echo_n "checking for working vfork... " >&6; }
9383 if test "${ac_cv_func_vfork_works+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 if test "$cross_compiling" = yes; then :
9387 ac_cv_func_vfork_works=cross
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 /* Thanks to Paul Eggert for this test. */
9392 $ac_includes_default
9393 #include <sys/wait.h>
9394 #ifdef HAVE_VFORK_H
9395 # include <vfork.h>
9396 #endif
9397 /* On some sparc systems, changes by the child to local and incoming
9398 argument registers are propagated back to the parent. The compiler
9399 is told about this with #include <vfork.h>, but some compilers
9400 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9401 static variable whose address is put into a register that is
9402 clobbered by the vfork. */
9403 static void
9404 #ifdef __cplusplus
9405 sparc_address_test (int arg)
9406 # else
9407 sparc_address_test (arg) int arg;
9408 #endif
9409 {
9410 static pid_t child;
9411 if (!child) {
9412 child = vfork ();
9413 if (child < 0) {
9414 perror ("vfork");
9415 _exit(2);
9416 }
9417 if (!child) {
9418 arg = getpid();
9419 write(-1, "", 0);
9420 _exit (arg);
9421 }
9422 }
9423 }
9424
9425 int
9426 main ()
9427 {
9428 pid_t parent = getpid ();
9429 pid_t child;
9430
9431 sparc_address_test (0);
9432
9433 child = vfork ();
9434
9435 if (child == 0) {
9436 /* Here is another test for sparc vfork register problems. This
9437 test uses lots of local variables, at least as many local
9438 variables as main has allocated so far including compiler
9439 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9440 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9441 reuse the register of parent for one of the local variables,
9442 since it will think that parent can't possibly be used any more
9443 in this routine. Assigning to the local variable will thus
9444 munge parent in the parent process. */
9445 pid_t
9446 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9447 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9448 /* Convince the compiler that p..p7 are live; otherwise, it might
9449 use the same hardware register for all 8 local variables. */
9450 if (p != p1 || p != p2 || p != p3 || p != p4
9451 || p != p5 || p != p6 || p != p7)
9452 _exit(1);
9453
9454 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9455 from child file descriptors. If the child closes a descriptor
9456 before it execs or exits, this munges the parent's descriptor
9457 as well. Test for this by closing stdout in the child. */
9458 _exit(close(fileno(stdout)) != 0);
9459 } else {
9460 int status;
9461 struct stat st;
9462
9463 while (wait(&status) != child)
9464 ;
9465 return (
9466 /* Was there some problem with vforking? */
9467 child < 0
9468
9469 /* Did the child fail? (This shouldn't happen.) */
9470 || status
9471
9472 /* Did the vfork/compiler bug occur? */
9473 || parent != getpid()
9474
9475 /* Did the file descriptor bug occur? */
9476 || fstat(fileno(stdout), &st) != 0
9477 );
9478 }
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_run "$LINENO"; then :
9482 ac_cv_func_vfork_works=yes
9483 else
9484 ac_cv_func_vfork_works=no
9485 fi
9486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9487 conftest.$ac_objext conftest.beam conftest.$ac_ext
9488 fi
9489
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9492 $as_echo "$ac_cv_func_vfork_works" >&6; }
9493
9494 fi;
9495 if test "x$ac_cv_func_fork_works" = xcross; then
9496 ac_cv_func_vfork_works=$ac_cv_func_vfork
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9498 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9499 fi
9500
9501 if test "x$ac_cv_func_vfork_works" = xyes; then
9502
9503 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9504
9505 else
9506
9507 $as_echo "#define vfork fork" >>confdefs.h
9508
9509 fi
9510 if test "x$ac_cv_func_fork_works" = xyes; then
9511
9512 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9513
9514 fi
9515
9516
9517 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9518 # iconv() prototype.
9519
9520 if test "X$prefix" = "XNONE"; then
9521 acl_final_prefix="$ac_default_prefix"
9522 else
9523 acl_final_prefix="$prefix"
9524 fi
9525 if test "X$exec_prefix" = "XNONE"; then
9526 acl_final_exec_prefix='${prefix}'
9527 else
9528 acl_final_exec_prefix="$exec_prefix"
9529 fi
9530 acl_save_prefix="$prefix"
9531 prefix="$acl_final_prefix"
9532 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9533 prefix="$acl_save_prefix"
9534
9535
9536 # Check whether --with-gnu-ld was given.
9537 if test "${with_gnu_ld+set}" = set; then :
9538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9539 else
9540 with_gnu_ld=no
9541 fi
9542
9543 # Prepare PATH_SEPARATOR.
9544 # The user is always right.
9545 if test "${PATH_SEPARATOR+set}" != set; then
9546 echo "#! /bin/sh" >conf$$.sh
9547 echo "exit 0" >>conf$$.sh
9548 chmod +x conf$$.sh
9549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9550 PATH_SEPARATOR=';'
9551 else
9552 PATH_SEPARATOR=:
9553 fi
9554 rm -f conf$$.sh
9555 fi
9556 ac_prog=ld
9557 if test "$GCC" = yes; then
9558 # Check if gcc -print-prog-name=ld gives a path.
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9560 $as_echo_n "checking for ld used by GCC... " >&6; }
9561 case $host in
9562 *-*-mingw*)
9563 # gcc leaves a trailing carriage return which upsets mingw
9564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9565 *)
9566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9567 esac
9568 case $ac_prog in
9569 # Accept absolute paths.
9570 [\\/]* | [A-Za-z]:[\\/]*)
9571 re_direlt='/[^/][^/]*/\.\./'
9572 # Canonicalize the path of ld
9573 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9574 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9575 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9576 done
9577 test -z "$LD" && LD="$ac_prog"
9578 ;;
9579 "")
9580 # If it fails, then pretend we aren't using GCC.
9581 ac_prog=ld
9582 ;;
9583 *)
9584 # If it is relative, then search for the first ld in PATH.
9585 with_gnu_ld=unknown
9586 ;;
9587 esac
9588 elif test "$with_gnu_ld" = yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9590 $as_echo_n "checking for GNU ld... " >&6; }
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9593 $as_echo_n "checking for non-GNU ld... " >&6; }
9594 fi
9595 if test "${acl_cv_path_LD+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 if test -z "$LD"; then
9599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9600 for ac_dir in $PATH; do
9601 test -z "$ac_dir" && ac_dir=.
9602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9603 acl_cv_path_LD="$ac_dir/$ac_prog"
9604 # Check to see if the program is GNU ld. I'd rather use --version,
9605 # but apparently some GNU ld's only accept -v.
9606 # Break only if it was the GNU/non-GNU ld that we prefer.
9607 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9608 test "$with_gnu_ld" != no && break
9609 else
9610 test "$with_gnu_ld" != yes && break
9611 fi
9612 fi
9613 done
9614 IFS="$ac_save_ifs"
9615 else
9616 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9617 fi
9618 fi
9619
9620 LD="$acl_cv_path_LD"
9621 if test -n "$LD"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9623 $as_echo "$LD" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9627 fi
9628 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9630 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9631 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9635 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9636 acl_cv_prog_gnu_ld=yes
9637 else
9638 acl_cv_prog_gnu_ld=no
9639 fi
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9642 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9643 with_gnu_ld=$acl_cv_prog_gnu_ld
9644
9645
9646
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9648 $as_echo_n "checking for shared library run path origin... " >&6; }
9649 if test "${acl_cv_rpath+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652
9653 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9654 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9655 . ./conftest.sh
9656 rm -f ./conftest.sh
9657 acl_cv_rpath=done
9658
9659 fi
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9661 $as_echo "$acl_cv_rpath" >&6; }
9662 wl="$acl_cv_wl"
9663 libext="$acl_cv_libext"
9664 shlibext="$acl_cv_shlibext"
9665 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9666 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9667 hardcode_direct="$acl_cv_hardcode_direct"
9668 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9669 # Check whether --enable-rpath was given.
9670 if test "${enable_rpath+set}" = set; then :
9671 enableval=$enable_rpath; :
9672 else
9673 enable_rpath=yes
9674 fi
9675
9676
9677
9678
9679
9680
9681
9682
9683 use_additional=yes
9684
9685 acl_save_prefix="$prefix"
9686 prefix="$acl_final_prefix"
9687 acl_save_exec_prefix="$exec_prefix"
9688 exec_prefix="$acl_final_exec_prefix"
9689
9690 eval additional_includedir=\"$includedir\"
9691 eval additional_libdir=\"$libdir\"
9692
9693 exec_prefix="$acl_save_exec_prefix"
9694 prefix="$acl_save_prefix"
9695
9696
9697 # Check whether --with-libiconv-prefix was given.
9698 if test "${with_libiconv_prefix+set}" = set; then :
9699 withval=$with_libiconv_prefix;
9700 if test "X$withval" = "Xno"; then
9701 use_additional=no
9702 else
9703 if test "X$withval" = "X"; then
9704
9705 acl_save_prefix="$prefix"
9706 prefix="$acl_final_prefix"
9707 acl_save_exec_prefix="$exec_prefix"
9708 exec_prefix="$acl_final_exec_prefix"
9709
9710 eval additional_includedir=\"$includedir\"
9711 eval additional_libdir=\"$libdir\"
9712
9713 exec_prefix="$acl_save_exec_prefix"
9714 prefix="$acl_save_prefix"
9715
9716 else
9717 additional_includedir="$withval/include"
9718 additional_libdir="$withval/lib"
9719 fi
9720 fi
9721
9722 fi
9723
9724 LIBICONV=
9725 LTLIBICONV=
9726 INCICONV=
9727 rpathdirs=
9728 ltrpathdirs=
9729 names_already_handled=
9730 names_next_round='iconv '
9731 while test -n "$names_next_round"; do
9732 names_this_round="$names_next_round"
9733 names_next_round=
9734 for name in $names_this_round; do
9735 already_handled=
9736 for n in $names_already_handled; do
9737 if test "$n" = "$name"; then
9738 already_handled=yes
9739 break
9740 fi
9741 done
9742 if test -z "$already_handled"; then
9743 names_already_handled="$names_already_handled $name"
9744 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9745 eval value=\"\$HAVE_LIB$uppername\"
9746 if test -n "$value"; then
9747 if test "$value" = yes; then
9748 eval value=\"\$LIB$uppername\"
9749 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9750 eval value=\"\$LTLIB$uppername\"
9751 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9752 else
9753 :
9754 fi
9755 else
9756 found_dir=
9757 found_la=
9758 found_so=
9759 found_a=
9760 if test $use_additional = yes; then
9761 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9762 found_dir="$additional_libdir"
9763 found_so="$additional_libdir/lib$name.$shlibext"
9764 if test -f "$additional_libdir/lib$name.la"; then
9765 found_la="$additional_libdir/lib$name.la"
9766 fi
9767 else
9768 if test -f "$additional_libdir/lib$name.$libext"; then
9769 found_dir="$additional_libdir"
9770 found_a="$additional_libdir/lib$name.$libext"
9771 if test -f "$additional_libdir/lib$name.la"; then
9772 found_la="$additional_libdir/lib$name.la"
9773 fi
9774 fi
9775 fi
9776 fi
9777 if test "X$found_dir" = "X"; then
9778 for x in $LDFLAGS $LTLIBICONV; do
9779
9780 acl_save_prefix="$prefix"
9781 prefix="$acl_final_prefix"
9782 acl_save_exec_prefix="$exec_prefix"
9783 exec_prefix="$acl_final_exec_prefix"
9784 eval x=\"$x\"
9785 exec_prefix="$acl_save_exec_prefix"
9786 prefix="$acl_save_prefix"
9787
9788 case "$x" in
9789 -L*)
9790 dir=`echo "X$x" | sed -e 's/^X-L//'`
9791 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9792 found_dir="$dir"
9793 found_so="$dir/lib$name.$shlibext"
9794 if test -f "$dir/lib$name.la"; then
9795 found_la="$dir/lib$name.la"
9796 fi
9797 else
9798 if test -f "$dir/lib$name.$libext"; then
9799 found_dir="$dir"
9800 found_a="$dir/lib$name.$libext"
9801 if test -f "$dir/lib$name.la"; then
9802 found_la="$dir/lib$name.la"
9803 fi
9804 fi
9805 fi
9806 ;;
9807 esac
9808 if test "X$found_dir" != "X"; then
9809 break
9810 fi
9811 done
9812 fi
9813 if test "X$found_dir" != "X"; then
9814 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9815 if test "X$found_so" != "X"; then
9816 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9818 else
9819 haveit=
9820 for x in $ltrpathdirs; do
9821 if test "X$x" = "X$found_dir"; then
9822 haveit=yes
9823 break
9824 fi
9825 done
9826 if test -z "$haveit"; then
9827 ltrpathdirs="$ltrpathdirs $found_dir"
9828 fi
9829 if test "$hardcode_direct" = yes; then
9830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9831 else
9832 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9833 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9834 haveit=
9835 for x in $rpathdirs; do
9836 if test "X$x" = "X$found_dir"; then
9837 haveit=yes
9838 break
9839 fi
9840 done
9841 if test -z "$haveit"; then
9842 rpathdirs="$rpathdirs $found_dir"
9843 fi
9844 else
9845 haveit=
9846 for x in $LDFLAGS $LIBICONV; do
9847
9848 acl_save_prefix="$prefix"
9849 prefix="$acl_final_prefix"
9850 acl_save_exec_prefix="$exec_prefix"
9851 exec_prefix="$acl_final_exec_prefix"
9852 eval x=\"$x\"
9853 exec_prefix="$acl_save_exec_prefix"
9854 prefix="$acl_save_prefix"
9855
9856 if test "X$x" = "X-L$found_dir"; then
9857 haveit=yes
9858 break
9859 fi
9860 done
9861 if test -z "$haveit"; then
9862 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9863 fi
9864 if test "$hardcode_minus_L" != no; then
9865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9866 else
9867 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9868 fi
9869 fi
9870 fi
9871 fi
9872 else
9873 if test "X$found_a" != "X"; then
9874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9875 else
9876 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9877 fi
9878 fi
9879 additional_includedir=
9880 case "$found_dir" in
9881 */lib | */lib/)
9882 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9883 additional_includedir="$basedir/include"
9884 ;;
9885 esac
9886 if test "X$additional_includedir" != "X"; then
9887 if test "X$additional_includedir" != "X/usr/include"; then
9888 haveit=
9889 if test "X$additional_includedir" = "X/usr/local/include"; then
9890 if test -n "$GCC"; then
9891 case $host_os in
9892 linux*) haveit=yes;;
9893 esac
9894 fi
9895 fi
9896 if test -z "$haveit"; then
9897 for x in $CPPFLAGS $INCICONV; do
9898
9899 acl_save_prefix="$prefix"
9900 prefix="$acl_final_prefix"
9901 acl_save_exec_prefix="$exec_prefix"
9902 exec_prefix="$acl_final_exec_prefix"
9903 eval x=\"$x\"
9904 exec_prefix="$acl_save_exec_prefix"
9905 prefix="$acl_save_prefix"
9906
9907 if test "X$x" = "X-I$additional_includedir"; then
9908 haveit=yes
9909 break
9910 fi
9911 done
9912 if test -z "$haveit"; then
9913 if test -d "$additional_includedir"; then
9914 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9915 fi
9916 fi
9917 fi
9918 fi
9919 fi
9920 if test -n "$found_la"; then
9921 save_libdir="$libdir"
9922 case "$found_la" in
9923 */* | *\\*) . "$found_la" ;;
9924 *) . "./$found_la" ;;
9925 esac
9926 libdir="$save_libdir"
9927 for dep in $dependency_libs; do
9928 case "$dep" in
9929 -L*)
9930 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9931 if test "X$additional_libdir" != "X/usr/lib"; then
9932 haveit=
9933 if test "X$additional_libdir" = "X/usr/local/lib"; then
9934 if test -n "$GCC"; then
9935 case $host_os in
9936 linux*) haveit=yes;;
9937 esac
9938 fi
9939 fi
9940 if test -z "$haveit"; then
9941 haveit=
9942 for x in $LDFLAGS $LIBICONV; do
9943
9944 acl_save_prefix="$prefix"
9945 prefix="$acl_final_prefix"
9946 acl_save_exec_prefix="$exec_prefix"
9947 exec_prefix="$acl_final_exec_prefix"
9948 eval x=\"$x\"
9949 exec_prefix="$acl_save_exec_prefix"
9950 prefix="$acl_save_prefix"
9951
9952 if test "X$x" = "X-L$additional_libdir"; then
9953 haveit=yes
9954 break
9955 fi
9956 done
9957 if test -z "$haveit"; then
9958 if test -d "$additional_libdir"; then
9959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9960 fi
9961 fi
9962 haveit=
9963 for x in $LDFLAGS $LTLIBICONV; do
9964
9965 acl_save_prefix="$prefix"
9966 prefix="$acl_final_prefix"
9967 acl_save_exec_prefix="$exec_prefix"
9968 exec_prefix="$acl_final_exec_prefix"
9969 eval x=\"$x\"
9970 exec_prefix="$acl_save_exec_prefix"
9971 prefix="$acl_save_prefix"
9972
9973 if test "X$x" = "X-L$additional_libdir"; then
9974 haveit=yes
9975 break
9976 fi
9977 done
9978 if test -z "$haveit"; then
9979 if test -d "$additional_libdir"; then
9980 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9981 fi
9982 fi
9983 fi
9984 fi
9985 ;;
9986 -R*)
9987 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9988 if test "$enable_rpath" != no; then
9989 haveit=
9990 for x in $rpathdirs; do
9991 if test "X$x" = "X$dir"; then
9992 haveit=yes
9993 break
9994 fi
9995 done
9996 if test -z "$haveit"; then
9997 rpathdirs="$rpathdirs $dir"
9998 fi
9999 haveit=
10000 for x in $ltrpathdirs; 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 ltrpathdirs="$ltrpathdirs $dir"
10008 fi
10009 fi
10010 ;;
10011 -l*)
10012 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10013 ;;
10014 *.la)
10015 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10016 ;;
10017 *)
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10020 ;;
10021 esac
10022 done
10023 fi
10024 else
10025 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10027 fi
10028 fi
10029 fi
10030 done
10031 done
10032 if test "X$rpathdirs" != "X"; then
10033 if test -n "$hardcode_libdir_separator"; then
10034 alldirs=
10035 for found_dir in $rpathdirs; do
10036 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10037 done
10038 acl_save_libdir="$libdir"
10039 libdir="$alldirs"
10040 eval flag=\"$hardcode_libdir_flag_spec\"
10041 libdir="$acl_save_libdir"
10042 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10043 else
10044 for found_dir in $rpathdirs; do
10045 acl_save_libdir="$libdir"
10046 libdir="$found_dir"
10047 eval flag=\"$hardcode_libdir_flag_spec\"
10048 libdir="$acl_save_libdir"
10049 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10050 done
10051 fi
10052 fi
10053 if test "X$ltrpathdirs" != "X"; then
10054 for found_dir in $ltrpathdirs; do
10055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10056 done
10057 fi
10058
10059
10060 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10061 ac_ext=cpp
10062 ac_cpp='$CXXCPP $CPPFLAGS'
10063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10066
10067
10068
10069
10070
10071
10072 am_save_CPPFLAGS="$CPPFLAGS"
10073
10074 for element in $INCICONV; do
10075 haveit=
10076 for x in $CPPFLAGS; do
10077
10078 acl_save_prefix="$prefix"
10079 prefix="$acl_final_prefix"
10080 acl_save_exec_prefix="$exec_prefix"
10081 exec_prefix="$acl_final_exec_prefix"
10082 eval x=\"$x\"
10083 exec_prefix="$acl_save_exec_prefix"
10084 prefix="$acl_save_prefix"
10085
10086 if test "X$x" = "X$element"; then
10087 haveit=yes
10088 break
10089 fi
10090 done
10091 if test -z "$haveit"; then
10092 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10093 fi
10094 done
10095
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10098 $as_echo_n "checking for iconv... " >&6; }
10099 if test "${am_cv_func_iconv+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102
10103 am_cv_func_iconv="no, consider installing GNU libiconv"
10104 am_cv_lib_iconv=no
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 #include <stdlib.h>
10108 #include <iconv.h>
10109 int
10110 main ()
10111 {
10112 iconv_t cd = iconv_open("","");
10113 iconv(cd,NULL,NULL,NULL,NULL);
10114 iconv_close(cd);
10115 ;
10116 return 0;
10117 }
10118 _ACEOF
10119 if ac_fn_cxx_try_link "$LINENO"; then :
10120 am_cv_func_iconv=yes
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 if test "$am_cv_func_iconv" != yes; then
10125 am_save_LIBS="$LIBS"
10126 LIBS="$LIBS $LIBICONV"
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 #include <stdlib.h>
10130 #include <iconv.h>
10131 int
10132 main ()
10133 {
10134 iconv_t cd = iconv_open("","");
10135 iconv(cd,NULL,NULL,NULL,NULL);
10136 iconv_close(cd);
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_cxx_try_link "$LINENO"; then :
10142 am_cv_lib_iconv=yes
10143 am_cv_func_iconv=yes
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS="$am_save_LIBS"
10148 fi
10149
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10152 $as_echo "$am_cv_func_iconv" >&6; }
10153 if test "$am_cv_func_iconv" = yes; then
10154
10155 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10156
10157 fi
10158 if test "$am_cv_lib_iconv" = yes; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10160 $as_echo_n "checking how to link with libiconv... " >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10162 $as_echo "$LIBICONV" >&6; }
10163 else
10164 CPPFLAGS="$am_save_CPPFLAGS"
10165 LIBICONV=
10166 LTLIBICONV=
10167 fi
10168
10169
10170
10171 if test "$am_cv_func_iconv" = yes; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10173 $as_echo_n "checking for iconv declaration... " >&6; }
10174 if test "${am_cv_proto_iconv+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180
10181 #include <stdlib.h>
10182 #include <iconv.h>
10183 extern
10184 #ifdef __cplusplus
10185 "C"
10186 #endif
10187 #if defined(__STDC__) || defined(__cplusplus)
10188 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10189 #else
10190 size_t iconv();
10191 #endif
10192
10193 int
10194 main ()
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_cxx_try_compile "$LINENO"; then :
10202 am_cv_proto_iconv_arg1=""
10203 else
10204 am_cv_proto_iconv_arg1="const"
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 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);"
10208 fi
10209
10210 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10212 }$am_cv_proto_iconv" >&5
10213 $as_echo "${ac_t:-
10214 }$am_cv_proto_iconv" >&6; }
10215
10216 cat >>confdefs.h <<_ACEOF
10217 #define ICONV_CONST $am_cv_proto_iconv_arg1
10218 _ACEOF
10219
10220 fi
10221
10222 ac_ext=c
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227
10228 else
10229
10230
10231
10232
10233
10234 am_save_CPPFLAGS="$CPPFLAGS"
10235
10236 for element in $INCICONV; do
10237 haveit=
10238 for x in $CPPFLAGS; do
10239
10240 acl_save_prefix="$prefix"
10241 prefix="$acl_final_prefix"
10242 acl_save_exec_prefix="$exec_prefix"
10243 exec_prefix="$acl_final_exec_prefix"
10244 eval x=\"$x\"
10245 exec_prefix="$acl_save_exec_prefix"
10246 prefix="$acl_save_prefix"
10247
10248 if test "X$x" = "X$element"; then
10249 haveit=yes
10250 break
10251 fi
10252 done
10253 if test -z "$haveit"; then
10254 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10255 fi
10256 done
10257
10258
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10260 $as_echo_n "checking for iconv... " >&6; }
10261 if test "${am_cv_func_iconv+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264
10265 am_cv_func_iconv="no, consider installing GNU libiconv"
10266 am_cv_lib_iconv=no
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #include <stdlib.h>
10270 #include <iconv.h>
10271 int
10272 main ()
10273 {
10274 iconv_t cd = iconv_open("","");
10275 iconv(cd,NULL,NULL,NULL,NULL);
10276 iconv_close(cd);
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"; then :
10282 am_cv_func_iconv=yes
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 if test "$am_cv_func_iconv" != yes; then
10287 am_save_LIBS="$LIBS"
10288 LIBS="$LIBS $LIBICONV"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #include <stdlib.h>
10292 #include <iconv.h>
10293 int
10294 main ()
10295 {
10296 iconv_t cd = iconv_open("","");
10297 iconv(cd,NULL,NULL,NULL,NULL);
10298 iconv_close(cd);
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 am_cv_lib_iconv=yes
10305 am_cv_func_iconv=yes
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS="$am_save_LIBS"
10310 fi
10311
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10314 $as_echo "$am_cv_func_iconv" >&6; }
10315 if test "$am_cv_func_iconv" = yes; then
10316
10317 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10318
10319 fi
10320 if test "$am_cv_lib_iconv" = yes; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10322 $as_echo_n "checking how to link with libiconv... " >&6; }
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10324 $as_echo "$LIBICONV" >&6; }
10325 else
10326 CPPFLAGS="$am_save_CPPFLAGS"
10327 LIBICONV=
10328 LTLIBICONV=
10329 fi
10330
10331
10332
10333 if test "$am_cv_func_iconv" = yes; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10335 $as_echo_n "checking for iconv declaration... " >&6; }
10336 if test "${am_cv_proto_iconv+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342
10343 #include <stdlib.h>
10344 #include <iconv.h>
10345 extern
10346 #ifdef __cplusplus
10347 "C"
10348 #endif
10349 #if defined(__STDC__) || defined(__cplusplus)
10350 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10351 #else
10352 size_t iconv();
10353 #endif
10354
10355 int
10356 main ()
10357 {
10358
10359 ;
10360 return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_compile "$LINENO"; then :
10364 am_cv_proto_iconv_arg1=""
10365 else
10366 am_cv_proto_iconv_arg1="const"
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 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);"
10370 fi
10371
10372 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10374 }$am_cv_proto_iconv" >&5
10375 $as_echo "${ac_t:-
10376 }$am_cv_proto_iconv" >&6; }
10377
10378 cat >>confdefs.h <<_ACEOF
10379 #define ICONV_CONST $am_cv_proto_iconv_arg1
10380 _ACEOF
10381
10382 fi
10383
10384 fi
10385
10386 # Until we have in-tree GNU iconv:
10387 LIBICONV_DEP=
10388
10389
10390
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10392 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10393 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 #include <locale.h>
10399 int
10400 main ()
10401 {
10402 return LC_MESSAGES
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"; then :
10408 am_cv_val_LC_MESSAGES=yes
10409 else
10410 am_cv_val_LC_MESSAGES=no
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 fi
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10416 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10417 if test $am_cv_val_LC_MESSAGES = yes; then
10418
10419 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10420
10421 fi
10422
10423
10424
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10426 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10427 if test "${am_cv_langinfo_codeset+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <langinfo.h>
10433 int
10434 main ()
10435 {
10436 char* cs = nl_langinfo(CODESET);
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 am_cv_langinfo_codeset=yes
10443 else
10444 am_cv_langinfo_codeset=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10451 $as_echo "$am_cv_langinfo_codeset" >&6; }
10452 if test $am_cv_langinfo_codeset = yes; then
10453
10454 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10455
10456 fi
10457
10458
10459 # We will need to find libiberty.h and ansidecl.h
10460 saved_CFLAGS="$CFLAGS"
10461 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10462 saved_CXXFLAGS="$CXXFLAGS"
10463 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10464 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10465 strsignal strstr stpcpy strverscmp \
10466 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10467 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
10468 do
10469 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10471 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10472 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 #undef $ac_tr_decl
10478 #define $ac_tr_decl 1
10479
10480 #include "ansidecl.h"
10481 #include "system.h"
10482
10483 int
10484 main ()
10485 {
10486 #ifndef $ac_func
10487 char *(*pfn) = (char *(*)) $ac_func ;
10488 #endif
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"; then :
10494 eval "gcc_cv_have_decl_$ac_func=yes"
10495 else
10496 eval "gcc_cv_have_decl_$ac_func=no"
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 fi
10500
10501 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10504 #define $ac_tr_decl 1
10505 _ACEOF
10506
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 0
10511 _ACEOF
10512
10513 fi
10514
10515 done
10516
10517
10518 for ac_func in getrlimit setrlimit getrusage
10519 do
10520 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10522 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10523 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 #undef $ac_tr_decl
10529 #define $ac_tr_decl 1
10530
10531 #include "ansidecl.h"
10532 #include "system.h"
10533 #ifdef HAVE_SYS_RESOURCE_H
10534 #include <sys/resource.h>
10535 #endif
10536
10537
10538 int
10539 main ()
10540 {
10541 #ifndef $ac_func
10542 char *(*pfn) = (char *(*)) $ac_func ;
10543 #endif
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549 eval "gcc_cv_have_decl_$ac_func=yes"
10550 else
10551 eval "gcc_cv_have_decl_$ac_func=no"
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 fi
10555
10556 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10558 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10559 #define $ac_tr_decl 1
10560 _ACEOF
10561
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10565 #define $ac_tr_decl 0
10566 _ACEOF
10567
10568 fi
10569
10570 done
10571
10572
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575
10576 #include "ansidecl.h"
10577 #include "system.h"
10578 #ifdef HAVE_SYS_RESOURCE_H
10579 #include <sys/resource.h>
10580 #endif
10581
10582 int
10583 main ()
10584 {
10585 rlim_t l = 0;
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_compile "$LINENO"; then :
10591
10592 else
10593
10594 $as_echo "#define rlim_t long" >>confdefs.h
10595
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598
10599 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10600 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10601 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10602 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10603 for ac_func in ldgetname
10604 do
10605 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10607 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10608 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #undef $ac_tr_decl
10614 #define $ac_tr_decl 1
10615
10616 #include "ansidecl.h"
10617 #include "system.h"
10618 #ifdef HAVE_LDFCN_H
10619 #undef FREAD
10620 #undef FWRITE
10621 #include <ldfcn.h>
10622 #endif
10623
10624
10625 int
10626 main ()
10627 {
10628 #ifndef $ac_func
10629 char *(*pfn) = (char *(*)) $ac_func ;
10630 #endif
10631 ;
10632 return 0;
10633 }
10634 _ACEOF
10635 if ac_fn_c_try_compile "$LINENO"; then :
10636 eval "gcc_cv_have_decl_$ac_func=yes"
10637 else
10638 eval "gcc_cv_have_decl_$ac_func=no"
10639 fi
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 fi
10642
10643 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10646 #define $ac_tr_decl 1
10647 _ACEOF
10648
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 0
10653 _ACEOF
10654
10655 fi
10656
10657 done
10658
10659
10660 for ac_func in times
10661 do
10662 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10664 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10665 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #undef $ac_tr_decl
10671 #define $ac_tr_decl 1
10672
10673 #include "ansidecl.h"
10674 #include "system.h"
10675 #ifdef HAVE_SYS_TIMES_H
10676 #include <sys/times.h>
10677 #endif
10678
10679
10680 int
10681 main ()
10682 {
10683 #ifndef $ac_func
10684 char *(*pfn) = (char *(*)) $ac_func ;
10685 #endif
10686 ;
10687 return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_compile "$LINENO"; then :
10691 eval "gcc_cv_have_decl_$ac_func=yes"
10692 else
10693 eval "gcc_cv_have_decl_$ac_func=no"
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10696 fi
10697
10698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10701 #define $ac_tr_decl 1
10702 _ACEOF
10703
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 0
10708 _ACEOF
10709
10710 fi
10711
10712 done
10713
10714
10715 for ac_func in sigaltstack
10716 do
10717 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10719 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10720 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #undef $ac_tr_decl
10726 #define $ac_tr_decl 1
10727
10728 #include "ansidecl.h"
10729 #include "system.h"
10730 #include <signal.h>
10731
10732
10733 int
10734 main ()
10735 {
10736 #ifndef $ac_func
10737 char *(*pfn) = (char *(*)) $ac_func ;
10738 #endif
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_compile "$LINENO"; then :
10744 eval "gcc_cv_have_decl_$ac_func=yes"
10745 else
10746 eval "gcc_cv_have_decl_$ac_func=no"
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 fi
10750
10751 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10754 #define $ac_tr_decl 1
10755 _ACEOF
10756
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10760 #define $ac_tr_decl 0
10761 _ACEOF
10762
10763 fi
10764
10765 done
10766
10767
10768 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10769 # prototype.
10770 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10771 ac_ext=cpp
10772 ac_cpp='$CXXCPP $CPPFLAGS'
10773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10776
10777 for ac_func in madvise
10778 do
10779 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10781 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10782 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 #undef $ac_tr_decl
10788 #define $ac_tr_decl 1
10789
10790 #include "ansidecl.h"
10791 #include "system.h"
10792
10793
10794 int
10795 main ()
10796 {
10797 #ifndef $ac_func
10798 char *(*pfn) = (char *(*)) $ac_func ;
10799 #endif
10800 ;
10801 return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_cxx_try_compile "$LINENO"; then :
10805 eval "gcc_cv_have_decl_$ac_func=yes"
10806 else
10807 eval "gcc_cv_have_decl_$ac_func=no"
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 fi
10811
10812 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10814 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10815 #define $ac_tr_decl 1
10816 _ACEOF
10817
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10821 #define $ac_tr_decl 0
10822 _ACEOF
10823
10824 fi
10825
10826 done
10827
10828 ac_ext=c
10829 ac_cpp='$CPP $CPPFLAGS'
10830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10833
10834 else
10835 for ac_func in madvise
10836 do
10837 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10839 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10840 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 #undef $ac_tr_decl
10846 #define $ac_tr_decl 1
10847
10848 #include "ansidecl.h"
10849 #include "system.h"
10850
10851
10852 int
10853 main ()
10854 {
10855 #ifndef $ac_func
10856 char *(*pfn) = (char *(*)) $ac_func ;
10857 #endif
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863 eval "gcc_cv_have_decl_$ac_func=yes"
10864 else
10865 eval "gcc_cv_have_decl_$ac_func=no"
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 fi
10869
10870 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10873 #define $ac_tr_decl 1
10874 _ACEOF
10875
10876 else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10879 #define $ac_tr_decl 0
10880 _ACEOF
10881
10882 fi
10883
10884 done
10885
10886
10887 fi
10888
10889 # More time-related stuff.
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10891 $as_echo_n "checking for struct tms... " >&6; }
10892 if test "${ac_cv_struct_tms+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10898
10899 #include "ansidecl.h"
10900 #include "system.h"
10901 #ifdef HAVE_SYS_TIMES_H
10902 #include <sys/times.h>
10903 #endif
10904
10905 int
10906 main ()
10907 {
10908 struct tms tms;
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"; then :
10914 ac_cv_struct_tms=yes
10915 else
10916 ac_cv_struct_tms=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10921 $as_echo "$ac_cv_struct_tms" >&6; }
10922 if test $ac_cv_struct_tms = yes; then
10923
10924 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10925
10926 fi
10927
10928 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10929 # revisit after autoconf 2.50.
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10931 $as_echo_n "checking for clock_t... " >&6; }
10932 if test "${gcc_cv_type_clock_t+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938
10939 #include "ansidecl.h"
10940 #include "system.h"
10941
10942 int
10943 main ()
10944 {
10945 clock_t x;
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 gcc_cv_type_clock_t=yes
10952 else
10953 gcc_cv_type_clock_t=no
10954 fi
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 fi
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10958 $as_echo "$gcc_cv_type_clock_t" >&6; }
10959 if test $gcc_cv_type_clock_t = yes; then
10960
10961 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10962
10963 fi
10964
10965 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10966 CFLAGS="$saved_CFLAGS"
10967 CXXFLAGS="$saved_CXXFLAGS"
10968
10969 # mkdir takes a single argument on some systems.
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10971 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10972 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 #include <sys/types.h>
10979 #ifdef HAVE_SYS_STAT_H
10980 # include <sys/stat.h>
10981 #endif
10982 #ifdef HAVE_UNISTD_H
10983 # include <unistd.h>
10984 #endif
10985 #ifdef HAVE_DIRECT_H
10986 # include <direct.h>
10987 #endif
10988 int
10989 main ()
10990 {
10991 mkdir ("foo", 0);
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_compile "$LINENO"; then :
10997 gcc_cv_mkdir_takes_one_arg=no
10998 else
10999 gcc_cv_mkdir_takes_one_arg=yes
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11004 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11005 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11006
11007 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11008
11009 fi
11010
11011
11012 # File extensions
11013 manext='.1'
11014 objext='.o'
11015
11016
11017
11018 # With Setjmp/Longjmp based exception handling.
11019 # Check whether --enable-sjlj-exceptions was given.
11020 if test "${enable_sjlj_exceptions+set}" = set; then :
11021 enableval=$enable_sjlj_exceptions; case $target in
11022 *-*-hpux10*)
11023 if test $enableval != yes; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11025 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11026 enableval=yes
11027 fi
11028 ;;
11029 esac
11030 force_sjlj_exceptions=yes
11031 else
11032 case $target in
11033 *-*-hpux10*)
11034 force_sjlj_exceptions=yes
11035 enableval=yes
11036 ;;
11037 *)
11038 force_sjlj_exceptions=no
11039 ;;
11040 esac
11041 fi
11042
11043 if test $force_sjlj_exceptions = yes; then
11044 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11045
11046 cat >>confdefs.h <<_ACEOF
11047 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11048 _ACEOF
11049
11050 fi
11051
11052 # --------------------------------------------------------
11053 # Build, host, and target specific configuration fragments
11054 # --------------------------------------------------------
11055
11056 # Collect build-machine-specific information.
11057 . ${srcdir}/config.build
11058
11059 # Collect host-machine-specific information.
11060 . ${srcdir}/config.host
11061
11062 target_gtfiles=
11063
11064 # Collect target-machine-specific information.
11065 . ${srcdir}/config.gcc
11066
11067 extra_objs="${host_extra_objs} ${extra_objs}"
11068 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11069
11070 # Default the target-machine variables that were not explicitly set.
11071 if test x"$tm_file" = x
11072 then tm_file=$cpu_type/$cpu_type.h; fi
11073
11074 if test x"$extra_headers" = x
11075 then extra_headers=; fi
11076
11077 if test x$md_file = x
11078 then md_file=$cpu_type/$cpu_type.md; fi
11079
11080 if test x$out_file = x
11081 then out_file=$cpu_type/$cpu_type.c; fi
11082
11083 if test x"$tmake_file" = x
11084 then tmake_file=$cpu_type/t-$cpu_type
11085 fi
11086
11087 # Support --enable-initfini-array.
11088 if test x$enable_initfini_array != xno; then
11089 tm_file="${tm_file} initfini-array.h"
11090 fi
11091
11092 if test x"$dwarf2" = xyes
11093 then tm_file="$tm_file tm-dwarf2.h"
11094 fi
11095
11096 # Say what files are being used for the output code and MD file.
11097 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11098 echo "Using \`$srcdir/config/$md_file' as machine description file."
11099
11100 # If any of the xm_file variables contain nonexistent files, warn
11101 # about them and drop them.
11102
11103 bx=
11104 for x in $build_xm_file; do
11105 if test -f $srcdir/config/$x
11106 then bx="$bx $x"
11107 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11108 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11109 fi
11110 done
11111 build_xm_file="$bx"
11112
11113 hx=
11114 for x in $host_xm_file; do
11115 if test -f $srcdir/config/$x
11116 then hx="$hx $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 host_xm_file="$hx"
11122
11123 tx=
11124 for x in $xm_file; do
11125 if test -f $srcdir/config/$x
11126 then tx="$tx $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 xm_file="$tx"
11132
11133 count=a
11134 for f in $tm_file; do
11135 count=${count}x
11136 done
11137 if test $count = ax; then
11138 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11139 else
11140 echo "Using the following target machine macro files:"
11141 for f in $tm_file; do
11142 echo " $srcdir/config/$f"
11143 done
11144 fi
11145
11146 if test x$need_64bit_hwint = xyes; then
11147
11148 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11149
11150 fi
11151
11152 if test x$use_long_long_for_widest_fast_int = xyes; then
11153
11154 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11155
11156 fi
11157
11158 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11159
11160 cat >>confdefs.h <<_ACEOF
11161 #define HAVE_GNU_LD $gnu_ld_bool
11162 _ACEOF
11163
11164
11165 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11166
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_GNU_AS $gnu_as_bool
11169 _ACEOF
11170
11171
11172 count=a
11173 for f in $host_xm_file; do
11174 count=${count}x
11175 done
11176 if test $count = a; then
11177 :
11178 elif test $count = ax; then
11179 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11180 else
11181 echo "Using the following host machine macro files:"
11182 for f in $host_xm_file; do
11183 echo " $srcdir/config/$f"
11184 done
11185 fi
11186 echo "Using ${out_host_hook_obj} for host machine hooks."
11187
11188 if test "$host_xm_file" != "$build_xm_file"; then
11189 count=a
11190 for f in $build_xm_file; do
11191 count=${count}x
11192 done
11193 if test $count = a; then
11194 :
11195 elif test $count = ax; then
11196 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11197 else
11198 echo "Using the following build machine macro files:"
11199 for f in $build_xm_file; do
11200 echo " $srcdir/config/$f"
11201 done
11202 fi
11203 fi
11204
11205 if test -n "$configured_native_system_header_dir"; then
11206 native_system_header_dir=$configured_native_system_header_dir
11207 fi
11208 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11209
11210
11211 case ${host} in
11212 powerpc*-*-darwin*)
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11214 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11215 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 #include <sys/cdefs.h>
11222 #include <sys/signal.h>
11223 #include <ucontext.h>
11224 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11225
11226 _ACEOF
11227 if ac_fn_c_try_compile "$LINENO"; then :
11228 gcc_cv_mcontext_underscores=no
11229 else
11230 gcc_cv_mcontext_underscores=yes
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11235 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11236 if test $gcc_cv_mcontext_underscores = yes; then
11237
11238 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11239
11240 fi
11241 ;;
11242 esac
11243
11244 # ---------
11245 # Threading
11246 # ---------
11247
11248 # Check if a valid thread package
11249 case ${enable_threads} in
11250 "" | no)
11251 # No threads
11252 target_thread_file='single'
11253 ;;
11254 yes)
11255 # default
11256 target_thread_file='single'
11257 ;;
11258 aix | dce | lynx | mipssde | posix | rtems | \
11259 single | tpf | vxworks | win32)
11260 target_thread_file=${enable_threads}
11261 ;;
11262 *)
11263 echo "${enable_threads} is an unknown thread package" 1>&2
11264 exit 1
11265 ;;
11266 esac
11267
11268 if test x${thread_file} = x; then
11269 # No thread file set by target-specific clauses in config.gcc,
11270 # so use file chosen by default logic above
11271 thread_file=${target_thread_file}
11272 fi
11273
11274 # --------
11275 # UNSORTED
11276 # --------
11277
11278 use_cxa_atexit=no
11279 if test x$enable___cxa_atexit = xyes || \
11280 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11281 if test x$host = x$target; then
11282 case $host in
11283 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11284 # keyed to flag_use_cxa_atexit
11285 *-*-mingw32*)
11286 use_cxa_atexit=yes
11287 ;;
11288 *)
11289 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11290 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11291 use_cxa_atexit=yes
11292 else
11293 echo "__cxa_atexit can't be enabled on this target"
11294 fi
11295
11296 ;;
11297 esac
11298 else
11299 # We can't check for __cxa_atexit when building a cross, so assume
11300 # it is available
11301 use_cxa_atexit=yes
11302 fi
11303 if test x$use_cxa_atexit = xyes; then
11304
11305 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11306
11307 fi
11308 fi
11309
11310 # Look for a file containing extra machine modes.
11311 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11312 extra_modes_file='$(srcdir)'/config/${extra_modes}
11313
11314
11315 cat >>confdefs.h <<_ACEOF
11316 #define EXTRA_MODES_FILE "config/$extra_modes"
11317 _ACEOF
11318
11319 fi
11320
11321 # Convert extra_options into a form suitable for Makefile use.
11322 extra_opt_files=
11323 all_opt_files=
11324 for f in $extra_options; do
11325 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11326 all_opt_files="$all_opt_files $srcdir/config/$f"
11327 done
11328
11329
11330 # auto-host.h is the file containing items generated by autoconf and is
11331 # the first file included by config.h.
11332 # If host=build, it is correct to have bconfig include auto-host.h
11333 # as well. If host!=build, we are in error and need to do more
11334 # work to find out the build config parameters.
11335 if test x$host = x$build
11336 then
11337 build_auto=auto-host.h
11338 else
11339 # We create a subdir, then run autoconf in the subdir.
11340 # To prevent recursion we set host and build for the new
11341 # invocation of configure to the build for this invocation
11342 # of configure.
11343 tempdir=build.$$
11344 rm -rf $tempdir
11345 mkdir $tempdir
11346 cd $tempdir
11347 case ${srcdir} in
11348 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11349 *) realsrcdir=../${srcdir};;
11350 esac
11351 saved_CFLAGS="${CFLAGS}"
11352 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11353 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11354 ${realsrcdir}/configure \
11355 --enable-languages=${enable_languages-all} \
11356 --target=$target_alias --host=$build_alias --build=$build_alias
11357 CFLAGS="${saved_CFLAGS}"
11358
11359 # We just finished tests for the build machine, so rename
11360 # the file auto-build.h in the gcc directory.
11361 mv auto-host.h ../auto-build.h
11362 cd ..
11363 rm -rf $tempdir
11364 build_auto=auto-build.h
11365 fi
11366
11367
11368 tm_file="${tm_file} defaults.h"
11369 tm_p_file="${tm_p_file} tm-preds.h"
11370 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11371 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11372 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11373 # put this back in temporarily.
11374 xm_file="auto-host.h ansidecl.h ${xm_file}"
11375
11376 # --------
11377 # UNSORTED
11378 # --------
11379
11380 # Compile in configure arguments.
11381 if test -f configargs.h ; then
11382 # Being re-configured.
11383 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11384 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11385 else
11386 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11387 fi
11388
11389 # Double all backslashes and backslash all quotes to turn
11390 # gcc_config_arguments into a C string.
11391 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11392 $gcc_config_arguments
11393 EOF
11394 gcc_config_arguments_str=`cat conftest.out`
11395 rm -f conftest.out
11396
11397 cat > configargs.h <<EOF
11398 /* Generated automatically. */
11399 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11400 static const char thread_model[] = "$thread_file";
11401
11402 static const struct {
11403 const char *name, *value;
11404 } configure_default_options[] = $configure_default_options;
11405 EOF
11406
11407 gcc_BASEVER=`cat $srcdir/BASE-VER`
11408 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11409 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11410 if test -f $srcdir/REVISION ; then
11411 gcc_REVISION=`cat $srcdir/REVISION`
11412 else
11413 gcc_REVISION=""
11414 fi
11415 cat > plugin-version.h <<EOF
11416 #include "configargs.h"
11417
11418 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11419 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11420 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11421 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11422
11423 static char basever[] = "$gcc_BASEVER";
11424 static char datestamp[] = "$gcc_DATESTAMP";
11425 static char devphase[] = "$gcc_DEVPHASE";
11426 static char revision[] = "$gcc_REVISION";
11427
11428 /* FIXME plugins: We should make the version information more precise.
11429 One way to do is to add a checksum. */
11430
11431 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11432 devphase, revision,
11433 configuration_arguments};
11434 EOF
11435
11436 # Internationalization
11437 # If we haven't got the data from the intl directory,
11438 # assume NLS is disabled.
11439 USE_NLS=no
11440 LIBINTL=
11441 LIBINTL_DEP=
11442 INCINTL=
11443 XGETTEXT=
11444 GMSGFMT=
11445 POSUB=
11446
11447 if test -f ../intl/config.intl; then
11448 . ../intl/config.intl
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11451 $as_echo_n "checking whether NLS is requested... " >&6; }
11452 if test x"$USE_NLS" != xyes; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457 $as_echo "yes" >&6; }
11458
11459 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11460
11461
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11463 $as_echo_n "checking for catalogs to be installed... " >&6; }
11464 # Look for .po and .gmo files in the source directory.
11465 CATALOGS=
11466 XLINGUAS=
11467 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11468 # If there aren't any .gmo files the shell will give us the
11469 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11470 # weeded out.
11471 case "$cat" in *\**)
11472 continue;;
11473 esac
11474 # The quadruple backslash is collapsed to a double backslash
11475 # by the backticks, then collapsed again by the double quotes,
11476 # leaving us with one backslash in the sed expression (right
11477 # before the dot that mustn't act as a wildcard).
11478 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11479 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11480 # The user is allowed to set LINGUAS to a list of languages to
11481 # install catalogs for. If it's empty that means "all of them."
11482 if test "x$LINGUAS" = x; then
11483 CATALOGS="$CATALOGS $cat"
11484 XLINGUAS="$XLINGUAS $lang"
11485 else
11486 case "$LINGUAS" in *$lang*)
11487 CATALOGS="$CATALOGS $cat"
11488 XLINGUAS="$XLINGUAS $lang"
11489 ;;
11490 esac
11491 fi
11492 done
11493 LINGUAS="$XLINGUAS"
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11495 $as_echo "$LINGUAS" >&6; }
11496
11497
11498 DATADIRNAME=share
11499
11500 INSTOBJEXT=.mo
11501
11502 GENCAT=gencat
11503
11504 CATOBJEXT=.gmo
11505
11506 fi
11507
11508 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11509 # -liconv on the link line twice.
11510 case "$LIBINTL" in *$LIBICONV*)
11511 LIBICONV= ;;
11512 esac
11513
11514 # Check whether --enable-secureplt was given.
11515 if test "${enable_secureplt+set}" = set; then :
11516 enableval=$enable_secureplt;
11517 fi
11518
11519
11520 # Check whether --enable-leading-mingw64-underscores was given.
11521 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11522 enableval=$enable_leading_mingw64_underscores;
11523 fi
11524
11525 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11526
11527 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11528
11529 fi
11530
11531 # Check whether --enable-cld was given.
11532 if test "${enable_cld+set}" = set; then :
11533 enableval=$enable_cld;
11534 else
11535 enable_cld=no
11536 fi
11537
11538
11539 # Check whether --enable-frame-pointer was given.
11540 if test "${enable_frame_pointer+set}" = set; then :
11541 enableval=$enable_frame_pointer;
11542 else
11543
11544 case $target_os in
11545 linux* | darwin[8912]*)
11546 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11547 # DWARF2.
11548 enable_frame_pointer=no
11549 ;;
11550 *)
11551 enable_frame_pointer=yes
11552 ;;
11553 esac
11554
11555 fi
11556
11557
11558 # Windows32 Registry support for specifying GCC installation paths.
11559 # Check whether --enable-win32-registry was given.
11560 if test "${enable_win32_registry+set}" = set; then :
11561 enableval=$enable_win32_registry;
11562 fi
11563
11564
11565 case $host_os in
11566 win32 | pe | cygwin* | mingw32* | uwin*)
11567 if test "x$enable_win32_registry" != xno; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11569 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11570 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_func_search_save_LIBS=$LIBS
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char RegOpenKeyExA ();
11584 int
11585 main ()
11586 {
11587 return RegOpenKeyExA ();
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 for ac_lib in '' advapi32; do
11593 if test -z "$ac_lib"; then
11594 ac_res="none required"
11595 else
11596 ac_res=-l$ac_lib
11597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11598 fi
11599 if ac_fn_c_try_link "$LINENO"; then :
11600 ac_cv_search_RegOpenKeyExA=$ac_res
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext
11604 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11605 break
11606 fi
11607 done
11608 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11609
11610 else
11611 ac_cv_search_RegOpenKeyExA=no
11612 fi
11613 rm conftest.$ac_ext
11614 LIBS=$ac_func_search_save_LIBS
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11617 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11618 ac_res=$ac_cv_search_RegOpenKeyExA
11619 if test "$ac_res" != no; then :
11620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11621
11622 else
11623 enable_win32_registry=no
11624 fi
11625
11626 fi
11627
11628 if test "x$enable_win32_registry" != xno; then
11629
11630 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11631
11632
11633 if test "x$enable_win32_registry" != xyes \
11634 && test "x$enable_win32_registry" != x; then
11635
11636 cat >>confdefs.h <<_ACEOF
11637 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11638 _ACEOF
11639
11640 fi
11641 fi
11642 ;;
11643 esac
11644
11645 # Get an absolute path to the GCC top-level source directory
11646 holddir=`${PWDCMD-pwd}`
11647 cd $srcdir
11648 topdir=`${PWDCMD-pwd}`
11649 cd $holddir
11650
11651 # Conditionalize the makefile for this host machine.
11652 xmake_file=
11653 for f in ${host_xmake_file}
11654 do
11655 if test -f ${srcdir}/config/$f
11656 then
11657 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11658 fi
11659 done
11660
11661 # Conditionalize the makefile for this target machine.
11662 tmake_file_=
11663 for f in ${tmake_file}
11664 do
11665 if test -f ${srcdir}/config/$f
11666 then
11667 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11668 fi
11669 done
11670 tmake_file="${tmake_file_}"
11671
11672 out_object_file=`basename $out_file .c`.o
11673 common_out_object_file=`basename $common_out_file .c`.o
11674
11675 tm_file_list="options.h"
11676 tm_include_list="options.h insn-constants.h"
11677 for f in $tm_file; do
11678 case $f in
11679 ./* )
11680 f=`echo $f | sed 's/^..//'`
11681 tm_file_list="${tm_file_list} $f"
11682 tm_include_list="${tm_include_list} $f"
11683 ;;
11684 defaults.h )
11685 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11686 tm_include_list="${tm_include_list} $f"
11687 ;;
11688 * )
11689 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11690 tm_include_list="${tm_include_list} config/$f"
11691 ;;
11692 esac
11693 done
11694
11695 tm_p_file_list=
11696 tm_p_include_list=
11697 for f in $tm_p_file; do
11698 case $f in
11699 tm-preds.h )
11700 tm_p_file_list="${tm_p_file_list} $f"
11701 tm_p_include_list="${tm_p_include_list} $f"
11702 ;;
11703 * )
11704 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11705 tm_p_include_list="${tm_p_include_list} config/$f"
11706 esac
11707 done
11708
11709 xm_file_list=
11710 xm_include_list=
11711 for f in $xm_file; do
11712 case $f in
11713 ansidecl.h )
11714 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11715 xm_include_list="${xm_include_list} $f"
11716 ;;
11717 auto-host.h )
11718 xm_file_list="${xm_file_list} $f"
11719 xm_include_list="${xm_include_list} $f"
11720 ;;
11721 * )
11722 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11723 xm_include_list="${xm_include_list} config/$f"
11724 ;;
11725 esac
11726 done
11727
11728 host_xm_file_list=
11729 host_xm_include_list=
11730 for f in $host_xm_file; do
11731 case $f in
11732 ansidecl.h )
11733 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11734 host_xm_include_list="${host_xm_include_list} $f"
11735 ;;
11736 auto-host.h )
11737 host_xm_file_list="${host_xm_file_list} $f"
11738 host_xm_include_list="${host_xm_include_list} $f"
11739 ;;
11740 * )
11741 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11742 host_xm_include_list="${host_xm_include_list} config/$f"
11743 ;;
11744 esac
11745 done
11746
11747 build_xm_file_list=
11748 for f in $build_xm_file; do
11749 case $f in
11750 ansidecl.h )
11751 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11752 build_xm_include_list="${build_xm_include_list} $f"
11753 ;;
11754 auto-build.h | auto-host.h )
11755 build_xm_file_list="${build_xm_file_list} $f"
11756 build_xm_include_list="${build_xm_include_list} $f"
11757 ;;
11758 * )
11759 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11760 build_xm_include_list="${build_xm_include_list} config/$f"
11761 ;;
11762 esac
11763 done
11764
11765 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11766 # cross-compiler which does not use the native headers and libraries.
11767 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11768 CROSS=
11769 ALL=all.internal
11770 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11771
11772 if test "x$with_build_sysroot" != x; then
11773 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11774 else
11775 # This value is used, even on a native system, because
11776 # CROSS_SYSTEM_HEADER_DIR is just
11777 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11778 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11779 fi
11780
11781 if test x$host != x$target
11782 then
11783 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11784 ALL=all.cross
11785 SYSTEM_HEADER_DIR=$build_system_header_dir
11786 case "$host","$target" in
11787 # Darwin crosses can use the host system's libraries and headers,
11788 # because of the fat library support. Of course, it must be the
11789 # same version of Darwin on both sides. Allow the user to
11790 # just say --target=foo-darwin without a version number to mean
11791 # "the version on this system".
11792 *-*-darwin*,*-*-darwin*)
11793 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11794 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11795 if test $hostos = $targetos -o $targetos = darwin ; then
11796 CROSS=
11797 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11798 with_headers=yes
11799 fi
11800 ;;
11801
11802 i?86-*-*,x86_64-*-* \
11803 | powerpc*-*-*,powerpc64*-*-*)
11804 CROSS="$CROSS -DNATIVE_CROSS" ;;
11805 esac
11806
11807 case $target in
11808 *-*-mingw*)
11809 if test "x$with_headers" = x; then
11810 with_headers=yes
11811 fi
11812 ;;
11813 *)
11814 ;;
11815 esac
11816 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11817 SYSTEM_HEADER_DIR=$build_system_header_dir
11818 fi
11819
11820 # If this is a cross-compiler that does not
11821 # have its own set of headers then define
11822 # inhibit_libc
11823
11824 # If this is using newlib, without having the headers available now,
11825 # then define inhibit_libc in LIBGCC2_CFLAGS.
11826 # This prevents libgcc2 from containing any code which requires libc
11827 # support.
11828 : ${inhibit_libc=false}
11829 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11830 test x$with_newlib = xyes ; } &&
11831 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11832 inhibit_libc=true
11833 fi
11834
11835
11836 # When building gcc with a cross-compiler, we need to adjust things so
11837 # that the generator programs are still built with the native compiler.
11838 # Also, we cannot run fixincludes.
11839
11840 # These are the normal (build=host) settings:
11841 CC_FOR_BUILD='$(CC)'
11842 CXX_FOR_BUILD='$(CXX)'
11843 BUILD_CFLAGS='$(ALL_CFLAGS)'
11844 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11845 BUILD_LDFLAGS='$(LDFLAGS)'
11846 STMP_FIXINC=stmp-fixinc
11847
11848 # And these apply if build != host, or we are generating coverage data
11849 if test x$build != x$host || test "x$coverage_flags" != x
11850 then
11851 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11852 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11853 fi
11854
11855 # Expand extra_headers to include complete path.
11856 # This substitutes for lots of t-* files.
11857 extra_headers_list=
11858 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11859 for file in ${extra_headers} ; do
11860 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11861 done
11862
11863 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11864 if test x"$use_gcc_tgmath" = xyes
11865 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11866 fi
11867
11868 # Define collect2 in Makefile.
11869 case $host_can_use_collect2 in
11870 no) collect2= ;;
11871 *) collect2='collect2$(exeext)' ;;
11872 esac
11873
11874
11875 # Add a definition of USE_COLLECT2 if system wants one.
11876 case $use_collect2 in
11877 no) use_collect2= ;;
11878 "") ;;
11879 *)
11880 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11881 xm_defines="${xm_defines} USE_COLLECT2"
11882 case $host_can_use_collect2 in
11883 no)
11884 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11885 ;;
11886 esac
11887 ;;
11888 esac
11889
11890
11891 cat >>confdefs.h <<_ACEOF
11892 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11893 _ACEOF
11894
11895
11896 # ---------------------------
11897 # Assembler & linker features
11898 # ---------------------------
11899
11900 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11901 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11902 # However when ld-new is first executed from the build tree, libtool will
11903 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11904 # to the build tree. While doing this we need to use the previous-stage
11905 # linker, or we have an infinite loop. The presence of a shell script as
11906 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11907 # the gcc/collect-ld script. So we need to know how libtool works, or
11908 # exec-tool will fail.
11909
11910
11911 case `pwd` in
11912 *\ * | *\ *)
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11915 esac
11916
11917
11918
11919 macro_version='2.2.7a'
11920 macro_revision='1.3134'
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934 ltmain="$ac_aux_dir/ltmain.sh"
11935
11936 # Backslashify metacharacters that are still active within
11937 # double-quoted strings.
11938 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11939
11940 # Same as above, but do not quote variable references.
11941 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11942
11943 # Sed substitution to delay expansion of an escaped shell variable in a
11944 # double_quote_subst'ed string.
11945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11946
11947 # Sed substitution to delay expansion of an escaped single quote.
11948 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11949
11950 # Sed substitution to avoid accidental globbing in evaled expressions
11951 no_glob_subst='s/\*/\\\*/g'
11952
11953 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11958 $as_echo_n "checking how to print strings... " >&6; }
11959 # Test print first, because it will be a builtin if present.
11960 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11961 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11962 ECHO='print -r --'
11963 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11964 ECHO='printf %s\n'
11965 else
11966 # Use this function as a fallback that always works.
11967 func_fallback_echo ()
11968 {
11969 eval 'cat <<_LTECHO_EOF
11970 $1
11971 _LTECHO_EOF'
11972 }
11973 ECHO='func_fallback_echo'
11974 fi
11975
11976 # func_echo_all arg...
11977 # Invoke $ECHO with all args, space-separated.
11978 func_echo_all ()
11979 {
11980 $ECHO ""
11981 }
11982
11983 case "$ECHO" in
11984 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11985 $as_echo "printf" >&6; } ;;
11986 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11987 $as_echo "print -r" >&6; } ;;
11988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11989 $as_echo "cat" >&6; } ;;
11990 esac
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12006 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12007 if test "${ac_cv_path_SED+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12011 for ac_i in 1 2 3 4 5 6 7; do
12012 ac_script="$ac_script$as_nl$ac_script"
12013 done
12014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12015 { ac_script=; unset ac_script;}
12016 if test -z "$SED"; then
12017 ac_path_SED_found=false
12018 # Loop through the user's path and test for each of PROGNAME-LIST
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_prog in sed gsed; do
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12028 # Check for GNU ac_path_SED and select it if it is found.
12029 # Check for GNU $ac_path_SED
12030 case `"$ac_path_SED" --version 2>&1` in
12031 *GNU*)
12032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12033 *)
12034 ac_count=0
12035 $as_echo_n 0123456789 >"conftest.in"
12036 while :
12037 do
12038 cat "conftest.in" "conftest.in" >"conftest.tmp"
12039 mv "conftest.tmp" "conftest.in"
12040 cp "conftest.in" "conftest.nl"
12041 $as_echo '' >> "conftest.nl"
12042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12044 as_fn_arith $ac_count + 1 && ac_count=$as_val
12045 if test $ac_count -gt ${ac_path_SED_max-0}; then
12046 # Best one so far, save it but keep looking for a better one
12047 ac_cv_path_SED="$ac_path_SED"
12048 ac_path_SED_max=$ac_count
12049 fi
12050 # 10*(2^10) chars as input seems more than enough
12051 test $ac_count -gt 10 && break
12052 done
12053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12054 esac
12055
12056 $ac_path_SED_found && break 3
12057 done
12058 done
12059 done
12060 IFS=$as_save_IFS
12061 if test -z "$ac_cv_path_SED"; then
12062 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12063 fi
12064 else
12065 ac_cv_path_SED=$SED
12066 fi
12067
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12070 $as_echo "$ac_cv_path_SED" >&6; }
12071 SED="$ac_cv_path_SED"
12072 rm -f conftest.sed
12073
12074 test -z "$SED" && SED=sed
12075 Xsed="$SED -e 1s/^X//"
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12088 $as_echo_n "checking for fgrep... " >&6; }
12089 if test "${ac_cv_path_FGREP+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12093 then ac_cv_path_FGREP="$GREP -F"
12094 else
12095 if test -z "$FGREP"; then
12096 ac_path_FGREP_found=false
12097 # Loop through the user's path and test for each of PROGNAME-LIST
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12100 do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_prog in fgrep; do
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12107 # Check for GNU ac_path_FGREP and select it if it is found.
12108 # Check for GNU $ac_path_FGREP
12109 case `"$ac_path_FGREP" --version 2>&1` in
12110 *GNU*)
12111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12112 *)
12113 ac_count=0
12114 $as_echo_n 0123456789 >"conftest.in"
12115 while :
12116 do
12117 cat "conftest.in" "conftest.in" >"conftest.tmp"
12118 mv "conftest.tmp" "conftest.in"
12119 cp "conftest.in" "conftest.nl"
12120 $as_echo 'FGREP' >> "conftest.nl"
12121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12123 as_fn_arith $ac_count + 1 && ac_count=$as_val
12124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12125 # Best one so far, save it but keep looking for a better one
12126 ac_cv_path_FGREP="$ac_path_FGREP"
12127 ac_path_FGREP_max=$ac_count
12128 fi
12129 # 10*(2^10) chars as input seems more than enough
12130 test $ac_count -gt 10 && break
12131 done
12132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12133 esac
12134
12135 $ac_path_FGREP_found && break 3
12136 done
12137 done
12138 done
12139 IFS=$as_save_IFS
12140 if test -z "$ac_cv_path_FGREP"; then
12141 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12142 fi
12143 else
12144 ac_cv_path_FGREP=$FGREP
12145 fi
12146
12147 fi
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12150 $as_echo "$ac_cv_path_FGREP" >&6; }
12151 FGREP="$ac_cv_path_FGREP"
12152
12153
12154 test -z "$GREP" && GREP=grep
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174 # Check whether --with-gnu-ld was given.
12175 if test "${with_gnu_ld+set}" = set; then :
12176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12177 else
12178 with_gnu_ld=no
12179 fi
12180
12181 ac_prog=ld
12182 if test "$GCC" = yes; then
12183 # Check if gcc -print-prog-name=ld gives a path.
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12185 $as_echo_n "checking for ld used by $CC... " >&6; }
12186 case $host in
12187 *-*-mingw*)
12188 # gcc leaves a trailing carriage return which upsets mingw
12189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12190 *)
12191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12192 esac
12193 case $ac_prog in
12194 # Accept absolute paths.
12195 [\\/]* | ?:[\\/]*)
12196 re_direlt='/[^/][^/]*/\.\./'
12197 # Canonicalize the pathname of ld
12198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12201 done
12202 test -z "$LD" && LD="$ac_prog"
12203 ;;
12204 "")
12205 # If it fails, then pretend we aren't using GCC.
12206 ac_prog=ld
12207 ;;
12208 *)
12209 # If it is relative, then search for the first ld in PATH.
12210 with_gnu_ld=unknown
12211 ;;
12212 esac
12213 elif test "$with_gnu_ld" = yes; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12215 $as_echo_n "checking for GNU ld... " >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12218 $as_echo_n "checking for non-GNU ld... " >&6; }
12219 fi
12220 if test "${lt_cv_path_LD+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test -z "$LD"; then
12224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12225 for ac_dir in $PATH; do
12226 IFS="$lt_save_ifs"
12227 test -z "$ac_dir" && ac_dir=.
12228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12229 lt_cv_path_LD="$ac_dir/$ac_prog"
12230 # Check to see if the program is GNU ld. I'd rather use --version,
12231 # but apparently some variants of GNU ld only accept -v.
12232 # Break only if it was the GNU/non-GNU ld that we prefer.
12233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12234 *GNU* | *'with BFD'*)
12235 test "$with_gnu_ld" != no && break
12236 ;;
12237 *)
12238 test "$with_gnu_ld" != yes && break
12239 ;;
12240 esac
12241 fi
12242 done
12243 IFS="$lt_save_ifs"
12244 else
12245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12246 fi
12247 fi
12248
12249 LD="$lt_cv_path_LD"
12250 if test -n "$LD"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12252 $as_echo "$LD" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12259 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12260 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12264 case `$LD -v 2>&1 </dev/null` in
12265 *GNU* | *'with BFD'*)
12266 lt_cv_prog_gnu_ld=yes
12267 ;;
12268 *)
12269 lt_cv_prog_gnu_ld=no
12270 ;;
12271 esac
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12274 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12275 with_gnu_ld=$lt_cv_prog_gnu_ld
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12286 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12287 if test "${lt_cv_path_NM+set}" = set; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test -n "$NM"; then
12291 # Let the user override the test.
12292 lt_cv_path_NM="$NM"
12293 else
12294 lt_nm_to_check="${ac_tool_prefix}nm"
12295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12296 lt_nm_to_check="$lt_nm_to_check nm"
12297 fi
12298 for lt_tmp_nm in $lt_nm_to_check; do
12299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12301 IFS="$lt_save_ifs"
12302 test -z "$ac_dir" && ac_dir=.
12303 tmp_nm="$ac_dir/$lt_tmp_nm"
12304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12305 # Check to see if the nm accepts a BSD-compat flag.
12306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12307 # nm: unknown option "B" ignored
12308 # Tru64's nm complains that /dev/null is an invalid object file
12309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12310 */dev/null* | *'Invalid file or object type'*)
12311 lt_cv_path_NM="$tmp_nm -B"
12312 break
12313 ;;
12314 *)
12315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12316 */dev/null*)
12317 lt_cv_path_NM="$tmp_nm -p"
12318 break
12319 ;;
12320 *)
12321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12322 continue # so that we can try to find one that supports BSD flags
12323 ;;
12324 esac
12325 ;;
12326 esac
12327 fi
12328 done
12329 IFS="$lt_save_ifs"
12330 done
12331 : ${lt_cv_path_NM=no}
12332 fi
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12335 $as_echo "$lt_cv_path_NM" >&6; }
12336 if test "$lt_cv_path_NM" != "no"; then
12337 NM="$lt_cv_path_NM"
12338 else
12339 # Didn't find any BSD compatible name lister, look for dumpbin.
12340 if test -n "$DUMPBIN"; then :
12341 # Let the user override the test.
12342 else
12343 if test -n "$ac_tool_prefix"; then
12344 for ac_prog in dumpbin "link -dump"
12345 do
12346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test -n "$DUMPBIN"; then
12354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367 done
12368 done
12369 IFS=$as_save_IFS
12370
12371 fi
12372 fi
12373 DUMPBIN=$ac_cv_prog_DUMPBIN
12374 if test -n "$DUMPBIN"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12376 $as_echo "$DUMPBIN" >&6; }
12377 else
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381
12382
12383 test -n "$DUMPBIN" && break
12384 done
12385 fi
12386 if test -z "$DUMPBIN"; then
12387 ac_ct_DUMPBIN=$DUMPBIN
12388 for ac_prog in dumpbin "link -dump"
12389 do
12390 # Extract the first word of "$ac_prog", so it can be a program name with args.
12391 set dummy $ac_prog; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 if test -n "$ac_ct_DUMPBIN"; then
12398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411 done
12412 done
12413 IFS=$as_save_IFS
12414
12415 fi
12416 fi
12417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12418 if test -n "$ac_ct_DUMPBIN"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12420 $as_echo "$ac_ct_DUMPBIN" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427 test -n "$ac_ct_DUMPBIN" && break
12428 done
12429
12430 if test "x$ac_ct_DUMPBIN" = x; then
12431 DUMPBIN=":"
12432 else
12433 case $cross_compiling:$ac_tool_warned in
12434 yes:)
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12437 ac_tool_warned=yes ;;
12438 esac
12439 DUMPBIN=$ac_ct_DUMPBIN
12440 fi
12441 fi
12442
12443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12444 *COFF*)
12445 DUMPBIN="$DUMPBIN -symbols"
12446 ;;
12447 *)
12448 DUMPBIN=:
12449 ;;
12450 esac
12451 fi
12452
12453 if test "$DUMPBIN" != ":"; then
12454 NM="$DUMPBIN"
12455 fi
12456 fi
12457 test -z "$NM" && NM=nm
12458
12459
12460
12461
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12465 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12466 if test "${lt_cv_nm_interface+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 lt_cv_nm_interface="BSD nm"
12470 echo "int some_variable = 0;" > conftest.$ac_ext
12471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12472 (eval "$ac_compile" 2>conftest.err)
12473 cat conftest.err >&5
12474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12476 cat conftest.err >&5
12477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12478 cat conftest.out >&5
12479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12480 lt_cv_nm_interface="MS dumpbin"
12481 fi
12482 rm -f conftest*
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12485 $as_echo "$lt_cv_nm_interface" >&6; }
12486
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12488 $as_echo_n "checking whether ln -s works... " >&6; }
12489 LN_S=$as_ln_s
12490 if test "$LN_S" = "ln -s"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12492 $as_echo "yes" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12495 $as_echo "no, using $LN_S" >&6; }
12496 fi
12497
12498 # find the maximum length of command line arguments
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12501 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 i=0
12505 teststring="ABCD"
12506
12507 case $build_os in
12508 msdosdjgpp*)
12509 # On DJGPP, this test can blow up pretty badly due to problems in libc
12510 # (any single argument exceeding 2000 bytes causes a buffer overrun
12511 # during glob expansion). Even if it were fixed, the result of this
12512 # check would be larger than it should be.
12513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12514 ;;
12515
12516 gnu*)
12517 # Under GNU Hurd, this test is not required because there is
12518 # no limit to the length of command line arguments.
12519 # Libtool will interpret -1 as no limit whatsoever
12520 lt_cv_sys_max_cmd_len=-1;
12521 ;;
12522
12523 cygwin* | mingw* | cegcc*)
12524 # On Win9x/ME, this test blows up -- it succeeds, but takes
12525 # about 5 minutes as the teststring grows exponentially.
12526 # Worse, since 9x/ME are not pre-emptively multitasking,
12527 # you end up with a "frozen" computer, even though with patience
12528 # the test eventually succeeds (with a max line length of 256k).
12529 # Instead, let's just punt: use the minimum linelength reported by
12530 # all of the supported platforms: 8192 (on NT/2K/XP).
12531 lt_cv_sys_max_cmd_len=8192;
12532 ;;
12533
12534 mint*)
12535 # On MiNT this can take a long time and run out of memory.
12536 lt_cv_sys_max_cmd_len=8192;
12537 ;;
12538
12539 amigaos*)
12540 # On AmigaOS with pdksh, this test takes hours, literally.
12541 # So we just punt and use a minimum line length of 8192.
12542 lt_cv_sys_max_cmd_len=8192;
12543 ;;
12544
12545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12546 # This has been around since 386BSD, at least. Likely further.
12547 if test -x /sbin/sysctl; then
12548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12549 elif test -x /usr/sbin/sysctl; then
12550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12551 else
12552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12553 fi
12554 # And add a safety zone
12555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12557 ;;
12558
12559 interix*)
12560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12561 lt_cv_sys_max_cmd_len=196608
12562 ;;
12563
12564 osf*)
12565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12567 # nice to cause kernel panics so lets avoid the loop below.
12568 # First set a reasonable default.
12569 lt_cv_sys_max_cmd_len=16384
12570 #
12571 if test -x /sbin/sysconfig; then
12572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12574 esac
12575 fi
12576 ;;
12577 sco3.2v5*)
12578 lt_cv_sys_max_cmd_len=102400
12579 ;;
12580 sysv5* | sco5v6* | sysv4.2uw2*)
12581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12582 if test -n "$kargmax"; then
12583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12584 else
12585 lt_cv_sys_max_cmd_len=32768
12586 fi
12587 ;;
12588 *)
12589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12590 if test -n "$lt_cv_sys_max_cmd_len"; then
12591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12593 else
12594 # Make teststring a little bigger before we do anything with it.
12595 # a 1K string should be a reasonable start.
12596 for i in 1 2 3 4 5 6 7 8 ; do
12597 teststring=$teststring$teststring
12598 done
12599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12600 # If test is not a shell built-in, we'll probably end up computing a
12601 # maximum length that is only half of the actual maximum length, but
12602 # we can't tell.
12603 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12604 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12605 test $i != 17 # 1/2 MB should be enough
12606 do
12607 i=`expr $i + 1`
12608 teststring=$teststring$teststring
12609 done
12610 # Only check the string length outside the loop.
12611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12612 teststring=
12613 # Add a significant safety factor because C++ compilers can tack on
12614 # massive amounts of additional arguments before passing them to the
12615 # linker. It appears as though 1/2 is a usable value.
12616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12617 fi
12618 ;;
12619 esac
12620
12621 fi
12622
12623 if test -n $lt_cv_sys_max_cmd_len ; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12625 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12628 $as_echo "none" >&6; }
12629 fi
12630 max_cmd_len=$lt_cv_sys_max_cmd_len
12631
12632
12633
12634
12635
12636
12637 : ${CP="cp -f"}
12638 : ${MV="mv -f"}
12639 : ${RM="rm -f"}
12640
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12642 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12643 # Try some XSI features
12644 xsi_shell=no
12645 ( _lt_dummy="a/b/c"
12646 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12647 = c,a/b,, \
12648 && eval 'test $(( 1 + 1 )) -eq 2 \
12649 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12650 && xsi_shell=yes
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12652 $as_echo "$xsi_shell" >&6; }
12653
12654
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12656 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12657 lt_shell_append=no
12658 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12659 >/dev/null 2>&1 \
12660 && lt_shell_append=yes
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12662 $as_echo "$lt_shell_append" >&6; }
12663
12664
12665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12666 lt_unset=unset
12667 else
12668 lt_unset=false
12669 fi
12670
12671
12672
12673
12674
12675 # test EBCDIC or ASCII
12676 case `echo X|tr X '\101'` in
12677 A) # ASCII based system
12678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12679 lt_SP2NL='tr \040 \012'
12680 lt_NL2SP='tr \015\012 \040\040'
12681 ;;
12682 *) # EBCDIC based system
12683 lt_SP2NL='tr \100 \n'
12684 lt_NL2SP='tr \r\n \100\100'
12685 ;;
12686 esac
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12697 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12698 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 lt_cv_ld_reload_flag='-r'
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12704 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12705 reload_flag=$lt_cv_ld_reload_flag
12706 case $reload_flag in
12707 "" | " "*) ;;
12708 *) reload_flag=" $reload_flag" ;;
12709 esac
12710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12711 case $host_os in
12712 darwin*)
12713 if test "$GCC" = yes; then
12714 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12715 else
12716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12717 fi
12718 ;;
12719 esac
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729 if test -n "$ac_tool_prefix"; then
12730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12731 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 if test -n "$OBJDUMP"; then
12738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12739 else
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12742 do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751 done
12752 done
12753 IFS=$as_save_IFS
12754
12755 fi
12756 fi
12757 OBJDUMP=$ac_cv_prog_OBJDUMP
12758 if test -n "$OBJDUMP"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12760 $as_echo "$OBJDUMP" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765
12766
12767 fi
12768 if test -z "$ac_cv_prog_OBJDUMP"; then
12769 ac_ct_OBJDUMP=$OBJDUMP
12770 # Extract the first word of "objdump", so it can be a program name with args.
12771 set dummy objdump; ac_word=$2
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 $as_echo_n "checking for $ac_word... " >&6; }
12774 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 if test -n "$ac_ct_OBJDUMP"; then
12778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12779 else
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12782 do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
12786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12787 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791 done
12792 done
12793 IFS=$as_save_IFS
12794
12795 fi
12796 fi
12797 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12798 if test -n "$ac_ct_OBJDUMP"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12800 $as_echo "$ac_ct_OBJDUMP" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804 fi
12805
12806 if test "x$ac_ct_OBJDUMP" = x; then
12807 OBJDUMP="false"
12808 else
12809 case $cross_compiling:$ac_tool_warned in
12810 yes:)
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12813 ac_tool_warned=yes ;;
12814 esac
12815 OBJDUMP=$ac_ct_OBJDUMP
12816 fi
12817 else
12818 OBJDUMP="$ac_cv_prog_OBJDUMP"
12819 fi
12820
12821 test -z "$OBJDUMP" && OBJDUMP=objdump
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12832 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12833 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 lt_cv_file_magic_cmd='$MAGIC_CMD'
12837 lt_cv_file_magic_test_file=
12838 lt_cv_deplibs_check_method='unknown'
12839 # Need to set the preceding variable on all platforms that support
12840 # interlibrary dependencies.
12841 # 'none' -- dependencies not supported.
12842 # `unknown' -- same as none, but documents that we really don't know.
12843 # 'pass_all' -- all dependencies passed with no checks.
12844 # 'test_compile' -- check by making test program.
12845 # 'file_magic [[regex]]' -- check by looking for files in library path
12846 # which responds to the $file_magic_cmd with a given extended regex.
12847 # If you have `file' or equivalent on your system and you're not sure
12848 # whether `pass_all' will *always* work, you probably want this one.
12849
12850 case $host_os in
12851 aix[4-9]*)
12852 lt_cv_deplibs_check_method=pass_all
12853 ;;
12854
12855 beos*)
12856 lt_cv_deplibs_check_method=pass_all
12857 ;;
12858
12859 bsdi[45]*)
12860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12861 lt_cv_file_magic_cmd='/usr/bin/file -L'
12862 lt_cv_file_magic_test_file=/shlib/libc.so
12863 ;;
12864
12865 cygwin*)
12866 # func_win32_libid is a shell function defined in ltmain.sh
12867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12868 lt_cv_file_magic_cmd='func_win32_libid'
12869 ;;
12870
12871 mingw* | pw32*)
12872 # Base MSYS/MinGW do not provide the 'file' command needed by
12873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12874 # unless we find 'file', for example because we are cross-compiling.
12875 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12876 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12878 lt_cv_file_magic_cmd='func_win32_libid'
12879 else
12880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12881 lt_cv_file_magic_cmd='$OBJDUMP -f'
12882 fi
12883 ;;
12884
12885 cegcc*)
12886 # use the weaker test based on 'objdump'. See mingw*.
12887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12888 lt_cv_file_magic_cmd='$OBJDUMP -f'
12889 ;;
12890
12891 darwin* | rhapsody*)
12892 lt_cv_deplibs_check_method=pass_all
12893 ;;
12894
12895 freebsd* | dragonfly*)
12896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12897 case $host_cpu in
12898 i*86 )
12899 # Not sure whether the presence of OpenBSD here was a mistake.
12900 # Let's accept both of them until this is cleared up.
12901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12902 lt_cv_file_magic_cmd=/usr/bin/file
12903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12904 ;;
12905 esac
12906 else
12907 lt_cv_deplibs_check_method=pass_all
12908 fi
12909 ;;
12910
12911 gnu*)
12912 lt_cv_deplibs_check_method=pass_all
12913 ;;
12914
12915 haiku*)
12916 lt_cv_deplibs_check_method=pass_all
12917 ;;
12918
12919 hpux10.20* | hpux11*)
12920 lt_cv_file_magic_cmd=/usr/bin/file
12921 case $host_cpu in
12922 ia64*)
12923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12925 ;;
12926 hppa*64*)
12927 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]'
12928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12929 ;;
12930 *)
12931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12933 ;;
12934 esac
12935 ;;
12936
12937 interix[3-9]*)
12938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12940 ;;
12941
12942 irix5* | irix6* | nonstopux*)
12943 case $LD in
12944 *-32|*"-32 ") libmagic=32-bit;;
12945 *-n32|*"-n32 ") libmagic=N32;;
12946 *-64|*"-64 ") libmagic=64-bit;;
12947 *) libmagic=never-match;;
12948 esac
12949 lt_cv_deplibs_check_method=pass_all
12950 ;;
12951
12952 # This must be Linux ELF.
12953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12954 lt_cv_deplibs_check_method=pass_all
12955 ;;
12956
12957 netbsd*)
12958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12960 else
12961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12962 fi
12963 ;;
12964
12965 newos6*)
12966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12967 lt_cv_file_magic_cmd=/usr/bin/file
12968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12969 ;;
12970
12971 *nto* | *qnx*)
12972 lt_cv_deplibs_check_method=pass_all
12973 ;;
12974
12975 openbsd*)
12976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12978 else
12979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12980 fi
12981 ;;
12982
12983 osf3* | osf4* | osf5*)
12984 lt_cv_deplibs_check_method=pass_all
12985 ;;
12986
12987 rdos*)
12988 lt_cv_deplibs_check_method=pass_all
12989 ;;
12990
12991 solaris*)
12992 lt_cv_deplibs_check_method=pass_all
12993 ;;
12994
12995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996 lt_cv_deplibs_check_method=pass_all
12997 ;;
12998
12999 sysv4 | sysv4.3*)
13000 case $host_vendor in
13001 motorola)
13002 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]'
13003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13004 ;;
13005 ncr)
13006 lt_cv_deplibs_check_method=pass_all
13007 ;;
13008 sequent)
13009 lt_cv_file_magic_cmd='/bin/file'
13010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13011 ;;
13012 sni)
13013 lt_cv_file_magic_cmd='/bin/file'
13014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13015 lt_cv_file_magic_test_file=/lib/libc.so
13016 ;;
13017 siemens)
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020 pc)
13021 lt_cv_deplibs_check_method=pass_all
13022 ;;
13023 esac
13024 ;;
13025
13026 tpf*)
13027 lt_cv_deplibs_check_method=pass_all
13028 ;;
13029 esac
13030
13031 fi
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13033 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13034 file_magic_cmd=$lt_cv_file_magic_cmd
13035 deplibs_check_method=$lt_cv_deplibs_check_method
13036 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 if test -n "$ac_tool_prefix"; then
13050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13051 set dummy ${ac_tool_prefix}ar; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053 $as_echo_n "checking for $ac_word... " >&6; }
13054 if test "${ac_cv_prog_AR+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 if test -n "$AR"; then
13058 ac_cv_prog_AR="$AR" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067 ac_cv_prog_AR="${ac_tool_prefix}ar"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069 break 2
13070 fi
13071 done
13072 done
13073 IFS=$as_save_IFS
13074
13075 fi
13076 fi
13077 AR=$ac_cv_prog_AR
13078 if test -n "$AR"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13080 $as_echo "$AR" >&6; }
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085
13086
13087 fi
13088 if test -z "$ac_cv_prog_AR"; then
13089 ac_ct_AR=$AR
13090 # Extract the first word of "ar", so it can be a program name with args.
13091 set dummy ar; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 $as_echo_n "checking for $ac_word... " >&6; }
13094 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 if test -n "$ac_ct_AR"; then
13098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13099 else
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13102 do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13107 ac_cv_prog_ac_ct_AR="ar"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111 done
13112 done
13113 IFS=$as_save_IFS
13114
13115 fi
13116 fi
13117 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13118 if test -n "$ac_ct_AR"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13120 $as_echo "$ac_ct_AR" >&6; }
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124 fi
13125
13126 if test "x$ac_ct_AR" = x; then
13127 AR="false"
13128 else
13129 case $cross_compiling:$ac_tool_warned in
13130 yes:)
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13133 ac_tool_warned=yes ;;
13134 esac
13135 AR=$ac_ct_AR
13136 fi
13137 else
13138 AR="$ac_cv_prog_AR"
13139 fi
13140
13141 test -z "$AR" && AR=ar
13142 test -z "$AR_FLAGS" && AR_FLAGS=cru
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13156 set dummy ${ac_tool_prefix}strip; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if test "${ac_cv_prog_STRIP+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$STRIP"; then
13163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176 done
13177 done
13178 IFS=$as_save_IFS
13179
13180 fi
13181 fi
13182 STRIP=$ac_cv_prog_STRIP
13183 if test -n "$STRIP"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13185 $as_echo "$STRIP" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191
13192 fi
13193 if test -z "$ac_cv_prog_STRIP"; then
13194 ac_ct_STRIP=$STRIP
13195 # Extract the first word of "strip", so it can be a program name with args.
13196 set dummy strip; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$ac_ct_STRIP"; then
13203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_ac_ct_STRIP="strip"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216 done
13217 done
13218 IFS=$as_save_IFS
13219
13220 fi
13221 fi
13222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13223 if test -n "$ac_ct_STRIP"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13225 $as_echo "$ac_ct_STRIP" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229 fi
13230
13231 if test "x$ac_ct_STRIP" = x; then
13232 STRIP=":"
13233 else
13234 case $cross_compiling:$ac_tool_warned in
13235 yes:)
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238 ac_tool_warned=yes ;;
13239 esac
13240 STRIP=$ac_ct_STRIP
13241 fi
13242 else
13243 STRIP="$ac_cv_prog_STRIP"
13244 fi
13245
13246 test -z "$STRIP" && STRIP=:
13247
13248
13249
13250
13251
13252
13253 if test -n "$ac_tool_prefix"; then
13254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257 $as_echo_n "checking for $ac_word... " >&6; }
13258 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 if test -n "$RANLIB"; then
13262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13263 else
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13266 do
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 for ac_exec_ext in '' $ac_executable_extensions; do
13270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 break 2
13274 fi
13275 done
13276 done
13277 IFS=$as_save_IFS
13278
13279 fi
13280 fi
13281 RANLIB=$ac_cv_prog_RANLIB
13282 if test -n "$RANLIB"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13284 $as_echo "$RANLIB" >&6; }
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 fi
13289
13290
13291 fi
13292 if test -z "$ac_cv_prog_RANLIB"; then
13293 ac_ct_RANLIB=$RANLIB
13294 # Extract the first word of "ranlib", so it can be a program name with args.
13295 set dummy ranlib; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 if test -n "$ac_ct_RANLIB"; then
13302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13311 ac_cv_prog_ac_ct_RANLIB="ranlib"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13322 if test -n "$ac_ct_RANLIB"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13324 $as_echo "$ac_ct_RANLIB" >&6; }
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330 if test "x$ac_ct_RANLIB" = x; then
13331 RANLIB=":"
13332 else
13333 case $cross_compiling:$ac_tool_warned in
13334 yes:)
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13337 ac_tool_warned=yes ;;
13338 esac
13339 RANLIB=$ac_ct_RANLIB
13340 fi
13341 else
13342 RANLIB="$ac_cv_prog_RANLIB"
13343 fi
13344
13345 test -z "$RANLIB" && RANLIB=:
13346
13347
13348
13349
13350
13351
13352 # Determine commands to create old-style static archives.
13353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13354 old_postinstall_cmds='chmod 644 $oldlib'
13355 old_postuninstall_cmds=
13356
13357 if test -n "$RANLIB"; then
13358 case $host_os in
13359 openbsd*)
13360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13361 ;;
13362 *)
13363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13364 ;;
13365 esac
13366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13367 fi
13368
13369 case $host_os in
13370 darwin*)
13371 lock_old_archive_extraction=yes ;;
13372 *)
13373 lock_old_archive_extraction=no ;;
13374 esac
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
13409
13410
13411
13412
13413
13414 # If no C compiler was specified, use CC.
13415 LTCC=${LTCC-"$CC"}
13416
13417 # If no C compiler flags were specified, use CFLAGS.
13418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13419
13420 # Allow CC to be a program name with arguments.
13421 compiler=$CC
13422
13423
13424 # Check for command to grab the raw symbol name followed by C symbol from nm.
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13427 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430
13431 # These are sane defaults that work on at least a few old systems.
13432 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13433
13434 # Character class describing NM global symbol codes.
13435 symcode='[BCDEGRST]'
13436
13437 # Regexp to match symbols that can be accessed directly from C.
13438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13439
13440 # Define system-specific variables.
13441 case $host_os in
13442 aix*)
13443 symcode='[BCDT]'
13444 ;;
13445 cygwin* | mingw* | pw32* | cegcc*)
13446 symcode='[ABCDGISTW]'
13447 ;;
13448 hpux*)
13449 if test "$host_cpu" = ia64; then
13450 symcode='[ABCDEGRST]'
13451 fi
13452 ;;
13453 irix* | nonstopux*)
13454 symcode='[BCDEGRST]'
13455 ;;
13456 osf*)
13457 symcode='[BCDEGQRST]'
13458 ;;
13459 solaris*)
13460 symcode='[BDRT]'
13461 ;;
13462 sco3.2v5*)
13463 symcode='[DT]'
13464 ;;
13465 sysv4.2uw2*)
13466 symcode='[DT]'
13467 ;;
13468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13469 symcode='[ABDT]'
13470 ;;
13471 sysv4)
13472 symcode='[DFNSTU]'
13473 ;;
13474 esac
13475
13476 # If we're using GNU nm, then use its standard symbol codes.
13477 case `$NM -V 2>&1` in
13478 *GNU* | *'with BFD'*)
13479 symcode='[ABCDGIRSTW]' ;;
13480 esac
13481
13482 # Transform an extracted symbol line into a proper C declaration.
13483 # Some systems (esp. on ia64) link data and code symbols differently,
13484 # so use this general approach.
13485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13486
13487 # Transform an extracted symbol line into symbol name and symbol address
13488 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13489 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'"
13490
13491 # Handle CRLF in mingw tool chain
13492 opt_cr=
13493 case $build_os in
13494 mingw*)
13495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13496 ;;
13497 esac
13498
13499 # Try without a prefix underscore, then with it.
13500 for ac_symprfx in "" "_"; do
13501
13502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13503 symxfrm="\\1 $ac_symprfx\\2 \\2"
13504
13505 # Write the raw and C identifiers.
13506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13507 # Fake it for dumpbin and say T for any non-static function
13508 # and D for any global variable.
13509 # Also find C++ and __fastcall symbols from MSVC++,
13510 # which start with @ or ?.
13511 lt_cv_sys_global_symbol_pipe="$AWK '"\
13512 " {last_section=section; section=\$ 3};"\
13513 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13514 " \$ 0!~/External *\|/{next};"\
13515 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13516 " {if(hide[section]) next};"\
13517 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13518 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13519 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13520 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13521 " ' prfx=^$ac_symprfx"
13522 else
13523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13524 fi
13525
13526 # Check to see that the pipe works correctly.
13527 pipe_works=no
13528
13529 rm -f conftest*
13530 cat > conftest.$ac_ext <<_LT_EOF
13531 #ifdef __cplusplus
13532 extern "C" {
13533 #endif
13534 char nm_test_var;
13535 void nm_test_func(void);
13536 void nm_test_func(void){}
13537 #ifdef __cplusplus
13538 }
13539 #endif
13540 int main(){nm_test_var='a';nm_test_func();return(0);}
13541 _LT_EOF
13542
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13544 (eval $ac_compile) 2>&5
13545 ac_status=$?
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; }; then
13548 # Now try to grab the symbols.
13549 nlist=conftest.nm
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; } && test -s "$nlist"; then
13555 # Try sorting and uniquifying the output.
13556 if sort "$nlist" | uniq > "$nlist"T; then
13557 mv -f "$nlist"T "$nlist"
13558 else
13559 rm -f "$nlist"T
13560 fi
13561
13562 # Make sure that we snagged all the symbols we need.
13563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13565 cat <<_LT_EOF > conftest.$ac_ext
13566 #ifdef __cplusplus
13567 extern "C" {
13568 #endif
13569
13570 _LT_EOF
13571 # Now generate the symbol file.
13572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13573
13574 cat <<_LT_EOF >> conftest.$ac_ext
13575
13576 /* The mapping between symbol names and symbols. */
13577 const struct {
13578 const char *name;
13579 void *address;
13580 }
13581 lt__PROGRAM__LTX_preloaded_symbols[] =
13582 {
13583 { "@PROGRAM@", (void *) 0 },
13584 _LT_EOF
13585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13586 cat <<\_LT_EOF >> conftest.$ac_ext
13587 {0, (void *) 0}
13588 };
13589
13590 /* This works around a problem in FreeBSD linker */
13591 #ifdef FREEBSD_WORKAROUND
13592 static const void *lt_preloaded_setup() {
13593 return lt__PROGRAM__LTX_preloaded_symbols;
13594 }
13595 #endif
13596
13597 #ifdef __cplusplus
13598 }
13599 #endif
13600 _LT_EOF
13601 # Now try linking the two files.
13602 mv conftest.$ac_objext conftstm.$ac_objext
13603 lt_save_LIBS="$LIBS"
13604 lt_save_CFLAGS="$CFLAGS"
13605 LIBS="conftstm.$ac_objext"
13606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13608 (eval $ac_link) 2>&5
13609 ac_status=$?
13610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13612 pipe_works=yes
13613 fi
13614 LIBS="$lt_save_LIBS"
13615 CFLAGS="$lt_save_CFLAGS"
13616 else
13617 echo "cannot find nm_test_func in $nlist" >&5
13618 fi
13619 else
13620 echo "cannot find nm_test_var in $nlist" >&5
13621 fi
13622 else
13623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13624 fi
13625 else
13626 echo "$progname: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 fi
13629 rm -rf conftest* conftst*
13630
13631 # Do not use the global_symbol_pipe unless it works.
13632 if test "$pipe_works" = yes; then
13633 break
13634 else
13635 lt_cv_sys_global_symbol_pipe=
13636 fi
13637 done
13638
13639 fi
13640
13641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13642 lt_cv_sys_global_symbol_to_cdecl=
13643 fi
13644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13646 $as_echo "failed" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13649 $as_echo "ok" >&6; }
13650 fi
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673 # Check whether --enable-libtool-lock was given.
13674 if test "${enable_libtool_lock+set}" = set; then :
13675 enableval=$enable_libtool_lock;
13676 fi
13677
13678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13679
13680 # Some flags need to be propagated to the compiler or linker for good
13681 # libtool support.
13682 case $host in
13683 ia64-*-hpux*)
13684 # Find out which ABI we are using.
13685 echo 'int i;' > conftest.$ac_ext
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13687 (eval $ac_compile) 2>&5
13688 ac_status=$?
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; }; then
13691 case `/usr/bin/file conftest.$ac_objext` in
13692 *ELF-32*)
13693 HPUX_IA64_MODE="32"
13694 ;;
13695 *ELF-64*)
13696 HPUX_IA64_MODE="64"
13697 ;;
13698 esac
13699 fi
13700 rm -rf conftest*
13701 ;;
13702 *-*-irix6*)
13703 # Find out which ABI we are using.
13704 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13706 (eval $ac_compile) 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 if test "$lt_cv_prog_gnu_ld" = yes; then
13711 case `/usr/bin/file conftest.$ac_objext` in
13712 *32-bit*)
13713 LD="${LD-ld} -melf32bsmip"
13714 ;;
13715 *N32*)
13716 LD="${LD-ld} -melf32bmipn32"
13717 ;;
13718 *64-bit*)
13719 LD="${LD-ld} -melf64bmip"
13720 ;;
13721 esac
13722 else
13723 case `/usr/bin/file conftest.$ac_objext` in
13724 *32-bit*)
13725 LD="${LD-ld} -32"
13726 ;;
13727 *N32*)
13728 LD="${LD-ld} -n32"
13729 ;;
13730 *64-bit*)
13731 LD="${LD-ld} -64"
13732 ;;
13733 esac
13734 fi
13735 fi
13736 rm -rf conftest*
13737 ;;
13738
13739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13741 # Find out which ABI we are using.
13742 echo 'int i;' > conftest.$ac_ext
13743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13744 (eval $ac_compile) 2>&5
13745 ac_status=$?
13746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13747 test $ac_status = 0; }; then
13748 case `/usr/bin/file conftest.o` in
13749 *32-bit*)
13750 case $host in
13751 x86_64-*kfreebsd*-gnu)
13752 LD="${LD-ld} -m elf_i386_fbsd"
13753 ;;
13754 x86_64-*linux*)
13755 case `/usr/bin/file conftest.o` in
13756 *x86-64*)
13757 LD="${LD-ld} -m elf32_x86_64"
13758 ;;
13759 *)
13760 LD="${LD-ld} -m elf_i386"
13761 ;;
13762 esac
13763 ;;
13764 ppc64-*linux*|powerpc64-*linux*)
13765 LD="${LD-ld} -m elf32ppclinux"
13766 ;;
13767 s390x-*linux*)
13768 LD="${LD-ld} -m elf_s390"
13769 ;;
13770 sparc64-*linux*)
13771 LD="${LD-ld} -m elf32_sparc"
13772 ;;
13773 esac
13774 ;;
13775 *64-bit*)
13776 case $host in
13777 x86_64-*kfreebsd*-gnu)
13778 LD="${LD-ld} -m elf_x86_64_fbsd"
13779 ;;
13780 x86_64-*linux*)
13781 LD="${LD-ld} -m elf_x86_64"
13782 ;;
13783 ppc*-*linux*|powerpc*-*linux*)
13784 LD="${LD-ld} -m elf64ppc"
13785 ;;
13786 s390*-*linux*|s390*-*tpf*)
13787 LD="${LD-ld} -m elf64_s390"
13788 ;;
13789 sparc*-*linux*)
13790 LD="${LD-ld} -m elf64_sparc"
13791 ;;
13792 esac
13793 ;;
13794 esac
13795 fi
13796 rm -rf conftest*
13797 ;;
13798
13799 *-*-sco3.2v5*)
13800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13801 SAVE_CFLAGS="$CFLAGS"
13802 CFLAGS="$CFLAGS -belf"
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13804 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13805 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 ac_ext=c
13809 ac_cpp='$CPP $CPPFLAGS'
13810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13813
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816
13817 int
13818 main ()
13819 {
13820
13821 ;
13822 return 0;
13823 }
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"; then :
13826 lt_cv_cc_needs_belf=yes
13827 else
13828 lt_cv_cc_needs_belf=no
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext \
13831 conftest$ac_exeext conftest.$ac_ext
13832 ac_ext=c
13833 ac_cpp='$CPP $CPPFLAGS'
13834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13837
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13840 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13843 CFLAGS="$SAVE_CFLAGS"
13844 fi
13845 ;;
13846 sparc*-*solaris*)
13847 # Find out which ABI we are using.
13848 echo 'int i;' > conftest.$ac_ext
13849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13850 (eval $ac_compile) 2>&5
13851 ac_status=$?
13852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853 test $ac_status = 0; }; then
13854 case `/usr/bin/file conftest.o` in
13855 *64-bit*)
13856 case $lt_cv_prog_gnu_ld in
13857 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13858 *)
13859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13860 LD="${LD-ld} -64"
13861 fi
13862 ;;
13863 esac
13864 ;;
13865 esac
13866 fi
13867 rm -rf conftest*
13868 ;;
13869 esac
13870
13871 need_locks="$enable_libtool_lock"
13872
13873
13874 case $host_os in
13875 rhapsody* | darwin*)
13876 if test -n "$ac_tool_prefix"; then
13877 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13878 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880 $as_echo_n "checking for $ac_word... " >&6; }
13881 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if test -n "$DSYMUTIL"; then
13885 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13886 else
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13889 do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898 done
13899 done
13900 IFS=$as_save_IFS
13901
13902 fi
13903 fi
13904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13905 if test -n "$DSYMUTIL"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13907 $as_echo "$DSYMUTIL" >&6; }
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13911 fi
13912
13913
13914 fi
13915 if test -z "$ac_cv_prog_DSYMUTIL"; then
13916 ac_ct_DSYMUTIL=$DSYMUTIL
13917 # Extract the first word of "dsymutil", so it can be a program name with args.
13918 set dummy dsymutil; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$ac_ct_DSYMUTIL"; then
13925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13937 fi
13938 done
13939 done
13940 IFS=$as_save_IFS
13941
13942 fi
13943 fi
13944 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13945 if test -n "$ac_ct_DSYMUTIL"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13947 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13951 fi
13952
13953 if test "x$ac_ct_DSYMUTIL" = x; then
13954 DSYMUTIL=":"
13955 else
13956 case $cross_compiling:$ac_tool_warned in
13957 yes:)
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13960 ac_tool_warned=yes ;;
13961 esac
13962 DSYMUTIL=$ac_ct_DSYMUTIL
13963 fi
13964 else
13965 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13966 fi
13967
13968 if test -n "$ac_tool_prefix"; then
13969 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13970 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13972 $as_echo_n "checking for $ac_word... " >&6; }
13973 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 if test -n "$NMEDIT"; then
13977 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13978 else
13979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980 for as_dir in $PATH
13981 do
13982 IFS=$as_save_IFS
13983 test -z "$as_dir" && as_dir=.
13984 for ac_exec_ext in '' $ac_executable_extensions; do
13985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13986 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13988 break 2
13989 fi
13990 done
13991 done
13992 IFS=$as_save_IFS
13993
13994 fi
13995 fi
13996 NMEDIT=$ac_cv_prog_NMEDIT
13997 if test -n "$NMEDIT"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13999 $as_echo "$NMEDIT" >&6; }
14000 else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003 fi
14004
14005
14006 fi
14007 if test -z "$ac_cv_prog_NMEDIT"; then
14008 ac_ct_NMEDIT=$NMEDIT
14009 # Extract the first word of "nmedit", so it can be a program name with args.
14010 set dummy nmedit; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 if test -n "$ac_ct_NMEDIT"; then
14017 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14021 do
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14029 fi
14030 done
14031 done
14032 IFS=$as_save_IFS
14033
14034 fi
14035 fi
14036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14037 if test -n "$ac_ct_NMEDIT"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14039 $as_echo "$ac_ct_NMEDIT" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043 fi
14044
14045 if test "x$ac_ct_NMEDIT" = x; then
14046 NMEDIT=":"
14047 else
14048 case $cross_compiling:$ac_tool_warned in
14049 yes:)
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14052 ac_tool_warned=yes ;;
14053 esac
14054 NMEDIT=$ac_ct_NMEDIT
14055 fi
14056 else
14057 NMEDIT="$ac_cv_prog_NMEDIT"
14058 fi
14059
14060 if test -n "$ac_tool_prefix"; then
14061 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064 $as_echo_n "checking for $ac_word... " >&6; }
14065 if test "${ac_cv_prog_LIPO+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 if test -n "$LIPO"; then
14069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14070 else
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14073 do
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14081 fi
14082 done
14083 done
14084 IFS=$as_save_IFS
14085
14086 fi
14087 fi
14088 LIPO=$ac_cv_prog_LIPO
14089 if test -n "$LIPO"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14091 $as_echo "$LIPO" >&6; }
14092 else
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095 fi
14096
14097
14098 fi
14099 if test -z "$ac_cv_prog_LIPO"; then
14100 ac_ct_LIPO=$LIPO
14101 # Extract the first word of "lipo", so it can be a program name with args.
14102 set dummy lipo; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test -n "$ac_ct_LIPO"; then
14109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14113 do
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_ac_ct_LIPO="lipo"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14121 fi
14122 done
14123 done
14124 IFS=$as_save_IFS
14125
14126 fi
14127 fi
14128 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14129 if test -n "$ac_ct_LIPO"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14131 $as_echo "$ac_ct_LIPO" >&6; }
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14135 fi
14136
14137 if test "x$ac_ct_LIPO" = x; then
14138 LIPO=":"
14139 else
14140 case $cross_compiling:$ac_tool_warned in
14141 yes:)
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14144 ac_tool_warned=yes ;;
14145 esac
14146 LIPO=$ac_ct_LIPO
14147 fi
14148 else
14149 LIPO="$ac_cv_prog_LIPO"
14150 fi
14151
14152 if test -n "$ac_tool_prefix"; then
14153 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14154 set dummy ${ac_tool_prefix}otool; ac_word=$2
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 if test -n "$OTOOL"; then
14161 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166 IFS=$as_save_IFS
14167 test -z "$as_dir" && as_dir=.
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14170 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14172 break 2
14173 fi
14174 done
14175 done
14176 IFS=$as_save_IFS
14177
14178 fi
14179 fi
14180 OTOOL=$ac_cv_prog_OTOOL
14181 if test -n "$OTOOL"; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14183 $as_echo "$OTOOL" >&6; }
14184 else
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187 fi
14188
14189
14190 fi
14191 if test -z "$ac_cv_prog_OTOOL"; then
14192 ac_ct_OTOOL=$OTOOL
14193 # Extract the first word of "otool", so it can be a program name with args.
14194 set dummy otool; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196 $as_echo_n "checking for $ac_word... " >&6; }
14197 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 if test -n "$ac_ct_OTOOL"; then
14201 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_ac_ct_OTOOL="otool"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14213 fi
14214 done
14215 done
14216 IFS=$as_save_IFS
14217
14218 fi
14219 fi
14220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14221 if test -n "$ac_ct_OTOOL"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14223 $as_echo "$ac_ct_OTOOL" >&6; }
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 fi
14228
14229 if test "x$ac_ct_OTOOL" = x; then
14230 OTOOL=":"
14231 else
14232 case $cross_compiling:$ac_tool_warned in
14233 yes:)
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14236 ac_tool_warned=yes ;;
14237 esac
14238 OTOOL=$ac_ct_OTOOL
14239 fi
14240 else
14241 OTOOL="$ac_cv_prog_OTOOL"
14242 fi
14243
14244 if test -n "$ac_tool_prefix"; then
14245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14248 $as_echo_n "checking for $ac_word... " >&6; }
14249 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 if test -n "$OTOOL64"; then
14253 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14254 else
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14257 do
14258 IFS=$as_save_IFS
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14262 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 break 2
14265 fi
14266 done
14267 done
14268 IFS=$as_save_IFS
14269
14270 fi
14271 fi
14272 OTOOL64=$ac_cv_prog_OTOOL64
14273 if test -n "$OTOOL64"; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14275 $as_echo "$OTOOL64" >&6; }
14276 else
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14278 $as_echo "no" >&6; }
14279 fi
14280
14281
14282 fi
14283 if test -z "$ac_cv_prog_OTOOL64"; then
14284 ac_ct_OTOOL64=$OTOOL64
14285 # Extract the first word of "otool64", so it can be a program name with args.
14286 set dummy otool64; ac_word=$2
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 if test -n "$ac_ct_OTOOL64"; then
14293 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14294 else
14295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14297 do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14302 ac_cv_prog_ac_ct_OTOOL64="otool64"
14303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 break 2
14305 fi
14306 done
14307 done
14308 IFS=$as_save_IFS
14309
14310 fi
14311 fi
14312 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14313 if test -n "$ac_ct_OTOOL64"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14315 $as_echo "$ac_ct_OTOOL64" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 fi
14320
14321 if test "x$ac_ct_OTOOL64" = x; then
14322 OTOOL64=":"
14323 else
14324 case $cross_compiling:$ac_tool_warned in
14325 yes:)
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14328 ac_tool_warned=yes ;;
14329 esac
14330 OTOOL64=$ac_ct_OTOOL64
14331 fi
14332 else
14333 OTOOL64="$ac_cv_prog_OTOOL64"
14334 fi
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14363 $as_echo_n "checking for -single_module linker flag... " >&6; }
14364 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 lt_cv_apple_cc_single_mod=no
14368 if test -z "${LT_MULTI_MODULE}"; then
14369 # By default we will add the -single_module flag. You can override
14370 # by either setting the environment variable LT_MULTI_MODULE
14371 # non-empty at configure time, or by adding -multi_module to the
14372 # link flags.
14373 rm -rf libconftest.dylib*
14374 echo "int foo(void){return 1;}" > conftest.c
14375 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14376 -dynamiclib -Wl,-single_module conftest.c" >&5
14377 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14378 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14379 _lt_result=$?
14380 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14381 lt_cv_apple_cc_single_mod=yes
14382 else
14383 cat conftest.err >&5
14384 fi
14385 rm -rf libconftest.dylib*
14386 rm -f conftest.*
14387 fi
14388 fi
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14390 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14392 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14393 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 lt_cv_ld_exported_symbols_list=no
14397 save_LDFLAGS=$LDFLAGS
14398 echo "_main" > conftest.sym
14399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402
14403 int
14404 main ()
14405 {
14406
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 if ac_fn_c_try_link "$LINENO"; then :
14412 lt_cv_ld_exported_symbols_list=yes
14413 else
14414 lt_cv_ld_exported_symbols_list=no
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14418 LDFLAGS="$save_LDFLAGS"
14419
14420 fi
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14422 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14424 $as_echo_n "checking for -force_load linker flag... " >&6; }
14425 if test "${lt_cv_ld_force_load+set}" = set; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 lt_cv_ld_force_load=no
14429 cat > conftest.c << _LT_EOF
14430 int forced_loaded() { return 2;}
14431 _LT_EOF
14432 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14433 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14434 echo "$AR cru libconftest.a conftest.o" >&5
14435 $AR cru libconftest.a conftest.o 2>&5
14436 cat > conftest.c << _LT_EOF
14437 int main() { return 0;}
14438 _LT_EOF
14439 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14440 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14441 _lt_result=$?
14442 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14443 lt_cv_ld_force_load=yes
14444 else
14445 cat conftest.err >&5
14446 fi
14447 rm -f conftest.err libconftest.a conftest conftest.c
14448 rm -rf conftest.dSYM
14449
14450 fi
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14452 $as_echo "$lt_cv_ld_force_load" >&6; }
14453 case $host_os in
14454 rhapsody* | darwin1.[012])
14455 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14456 darwin1.*)
14457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14458 darwin*) # darwin 5.x on
14459 # if running on 10.5 or later, the deployment target defaults
14460 # to the OS version, if on x86, and 10.4, the deployment
14461 # target defaults to 10.4. Don't you love it?
14462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14463 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14465 10.[012]*)
14466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14467 10.*)
14468 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14469 esac
14470 ;;
14471 esac
14472 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14473 _lt_dar_single_mod='$single_module'
14474 fi
14475 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14476 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14477 else
14478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14479 fi
14480 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14481 _lt_dsymutil='~$DSYMUTIL $lib || :'
14482 else
14483 _lt_dsymutil=
14484 fi
14485 ;;
14486 esac
14487
14488 for ac_header in dlfcn.h
14489 do :
14490 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14491 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_DLFCN_H 1
14494 _ACEOF
14495
14496 fi
14497 done
14498
14499
14500
14501
14502
14503 # Set options
14504
14505
14506
14507 enable_dlopen=no
14508
14509
14510 enable_win32_dll=no
14511
14512
14513 # Check whether --enable-shared was given.
14514 if test "${enable_shared+set}" = set; then :
14515 enableval=$enable_shared; p=${PACKAGE-default}
14516 case $enableval in
14517 yes) enable_shared=yes ;;
14518 no) enable_shared=no ;;
14519 *)
14520 enable_shared=no
14521 # Look at the argument we got. We use all the common list separators.
14522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14523 for pkg in $enableval; do
14524 IFS="$lt_save_ifs"
14525 if test "X$pkg" = "X$p"; then
14526 enable_shared=yes
14527 fi
14528 done
14529 IFS="$lt_save_ifs"
14530 ;;
14531 esac
14532 else
14533 enable_shared=yes
14534 fi
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544 # Check whether --enable-static was given.
14545 if test "${enable_static+set}" = set; then :
14546 enableval=$enable_static; p=${PACKAGE-default}
14547 case $enableval in
14548 yes) enable_static=yes ;;
14549 no) enable_static=no ;;
14550 *)
14551 enable_static=no
14552 # Look at the argument we got. We use all the common list separators.
14553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14554 for pkg in $enableval; do
14555 IFS="$lt_save_ifs"
14556 if test "X$pkg" = "X$p"; then
14557 enable_static=yes
14558 fi
14559 done
14560 IFS="$lt_save_ifs"
14561 ;;
14562 esac
14563 else
14564 enable_static=yes
14565 fi
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576 # Check whether --with-pic was given.
14577 if test "${with_pic+set}" = set; then :
14578 withval=$with_pic; pic_mode="$withval"
14579 else
14580 pic_mode=default
14581 fi
14582
14583
14584 test -z "$pic_mode" && pic_mode=default
14585
14586
14587
14588
14589
14590
14591
14592 # Check whether --enable-fast-install was given.
14593 if test "${enable_fast_install+set}" = set; then :
14594 enableval=$enable_fast_install; p=${PACKAGE-default}
14595 case $enableval in
14596 yes) enable_fast_install=yes ;;
14597 no) enable_fast_install=no ;;
14598 *)
14599 enable_fast_install=no
14600 # Look at the argument we got. We use all the common list separators.
14601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14602 for pkg in $enableval; do
14603 IFS="$lt_save_ifs"
14604 if test "X$pkg" = "X$p"; then
14605 enable_fast_install=yes
14606 fi
14607 done
14608 IFS="$lt_save_ifs"
14609 ;;
14610 esac
14611 else
14612 enable_fast_install=yes
14613 fi
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625 # This can be used to rebuild libtool when needed
14626 LIBTOOL_DEPS="$ltmain"
14627
14628 # Always use our own libtool.
14629 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 test -z "$LN_S" && LN_S="ln -s"
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671 if test -n "${ZSH_VERSION+set}" ; then
14672 setopt NO_GLOB_SUBST
14673 fi
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14676 $as_echo_n "checking for objdir... " >&6; }
14677 if test "${lt_cv_objdir+set}" = set; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 rm -f .libs 2>/dev/null
14681 mkdir .libs 2>/dev/null
14682 if test -d .libs; then
14683 lt_cv_objdir=.libs
14684 else
14685 # MS-DOS does not allow filenames that begin with a dot.
14686 lt_cv_objdir=_libs
14687 fi
14688 rmdir .libs 2>/dev/null
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14691 $as_echo "$lt_cv_objdir" >&6; }
14692 objdir=$lt_cv_objdir
14693
14694
14695
14696
14697
14698 cat >>confdefs.h <<_ACEOF
14699 #define LT_OBJDIR "$lt_cv_objdir/"
14700 _ACEOF
14701
14702
14703
14704
14705 case $host_os in
14706 aix3*)
14707 # AIX sometimes has problems with the GCC collect2 program. For some
14708 # reason, if we set the COLLECT_NAMES environment variable, the problems
14709 # vanish in a puff of smoke.
14710 if test "X${COLLECT_NAMES+set}" != Xset; then
14711 COLLECT_NAMES=
14712 export COLLECT_NAMES
14713 fi
14714 ;;
14715 esac
14716
14717 # Global variables:
14718 ofile=libtool
14719 can_build_shared=yes
14720
14721 # All known linkers require a `.a' archive for static linking (except MSVC,
14722 # which needs '.lib').
14723 libext=a
14724
14725 with_gnu_ld="$lt_cv_prog_gnu_ld"
14726
14727 old_CC="$CC"
14728 old_CFLAGS="$CFLAGS"
14729
14730 # Set sane defaults for various variables
14731 test -z "$CC" && CC=cc
14732 test -z "$LTCC" && LTCC=$CC
14733 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14734 test -z "$LD" && LD=ld
14735 test -z "$ac_objext" && ac_objext=o
14736
14737 for cc_temp in $compiler""; do
14738 case $cc_temp in
14739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14741 \-*) ;;
14742 *) break;;
14743 esac
14744 done
14745 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14746
14747
14748 # Only perform the check for file, if the check method requires it
14749 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14750 case $deplibs_check_method in
14751 file_magic*)
14752 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14754 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14755 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14756 $as_echo_n "(cached) " >&6
14757 else
14758 case $MAGIC_CMD in
14759 [\\/*] | ?:[\\/]*)
14760 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14761 ;;
14762 *)
14763 lt_save_MAGIC_CMD="$MAGIC_CMD"
14764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14765 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14766 for ac_dir in $ac_dummy; do
14767 IFS="$lt_save_ifs"
14768 test -z "$ac_dir" && ac_dir=.
14769 if test -f $ac_dir/${ac_tool_prefix}file; then
14770 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14771 if test -n "$file_magic_test_file"; then
14772 case $deplibs_check_method in
14773 "file_magic "*)
14774 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14776 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14777 $EGREP "$file_magic_regex" > /dev/null; then
14778 :
14779 else
14780 cat <<_LT_EOF 1>&2
14781
14782 *** Warning: the command libtool uses to detect shared libraries,
14783 *** $file_magic_cmd, produces output that libtool cannot recognize.
14784 *** The result is that libtool may fail to recognize shared libraries
14785 *** as such. This will affect the creation of libtool libraries that
14786 *** depend on shared libraries, but programs linked with such libtool
14787 *** libraries will work regardless of this problem. Nevertheless, you
14788 *** may want to report the problem to your system manager and/or to
14789 *** bug-libtool@gnu.org
14790
14791 _LT_EOF
14792 fi ;;
14793 esac
14794 fi
14795 break
14796 fi
14797 done
14798 IFS="$lt_save_ifs"
14799 MAGIC_CMD="$lt_save_MAGIC_CMD"
14800 ;;
14801 esac
14802 fi
14803
14804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14805 if test -n "$MAGIC_CMD"; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14807 $as_echo "$MAGIC_CMD" >&6; }
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14811 fi
14812
14813
14814
14815
14816
14817 if test -z "$lt_cv_path_MAGIC_CMD"; then
14818 if test -n "$ac_tool_prefix"; then
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14820 $as_echo_n "checking for file... " >&6; }
14821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14824 case $MAGIC_CMD in
14825 [\\/*] | ?:[\\/]*)
14826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14827 ;;
14828 *)
14829 lt_save_MAGIC_CMD="$MAGIC_CMD"
14830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14832 for ac_dir in $ac_dummy; do
14833 IFS="$lt_save_ifs"
14834 test -z "$ac_dir" && ac_dir=.
14835 if test -f $ac_dir/file; then
14836 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14837 if test -n "$file_magic_test_file"; then
14838 case $deplibs_check_method in
14839 "file_magic "*)
14840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14843 $EGREP "$file_magic_regex" > /dev/null; then
14844 :
14845 else
14846 cat <<_LT_EOF 1>&2
14847
14848 *** Warning: the command libtool uses to detect shared libraries,
14849 *** $file_magic_cmd, produces output that libtool cannot recognize.
14850 *** The result is that libtool may fail to recognize shared libraries
14851 *** as such. This will affect the creation of libtool libraries that
14852 *** depend on shared libraries, but programs linked with such libtool
14853 *** libraries will work regardless of this problem. Nevertheless, you
14854 *** may want to report the problem to your system manager and/or to
14855 *** bug-libtool@gnu.org
14856
14857 _LT_EOF
14858 fi ;;
14859 esac
14860 fi
14861 break
14862 fi
14863 done
14864 IFS="$lt_save_ifs"
14865 MAGIC_CMD="$lt_save_MAGIC_CMD"
14866 ;;
14867 esac
14868 fi
14869
14870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14871 if test -n "$MAGIC_CMD"; then
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14873 $as_echo "$MAGIC_CMD" >&6; }
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14876 $as_echo "no" >&6; }
14877 fi
14878
14879
14880 else
14881 MAGIC_CMD=:
14882 fi
14883 fi
14884
14885 fi
14886 ;;
14887 esac
14888
14889 # Use C for the default configuration in the libtool script
14890
14891 lt_save_CC="$CC"
14892 ac_ext=c
14893 ac_cpp='$CPP $CPPFLAGS'
14894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14897
14898
14899 # Source file extension for C test sources.
14900 ac_ext=c
14901
14902 # Object file extension for compiled C test sources.
14903 objext=o
14904 objext=$objext
14905
14906 # Code to be used in simple compile tests
14907 lt_simple_compile_test_code="int some_variable = 0;"
14908
14909 # Code to be used in simple link tests
14910 lt_simple_link_test_code='int main(){return(0);}'
14911
14912
14913
14914
14915
14916
14917
14918 # If no C compiler was specified, use CC.
14919 LTCC=${LTCC-"$CC"}
14920
14921 # If no C compiler flags were specified, use CFLAGS.
14922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14923
14924 # Allow CC to be a program name with arguments.
14925 compiler=$CC
14926
14927 # Save the default compiler, since it gets overwritten when the other
14928 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14929 compiler_DEFAULT=$CC
14930
14931 # save warnings/boilerplate of simple test code
14932 ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_compiler_boilerplate=`cat conftest.err`
14936 $RM conftest*
14937
14938 ac_outfile=conftest.$ac_objext
14939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14941 _lt_linker_boilerplate=`cat conftest.err`
14942 $RM -r conftest*
14943
14944
14945 ## CAVEAT EMPTOR:
14946 ## There is no encapsulation within the following macros, do not change
14947 ## the running order or otherwise move them around unless you know exactly
14948 ## what you are doing...
14949 if test -n "$compiler"; then
14950
14951 lt_prog_compiler_no_builtin_flag=
14952
14953 if test "$GCC" = yes; then
14954 case $cc_basename in
14955 nvcc*)
14956 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14957 *)
14958 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14959 esac
14960
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14962 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 lt_cv_prog_compiler_rtti_exceptions=no
14967 ac_outfile=conftest.$ac_objext
14968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 lt_compiler_flag="-fno-rtti -fno-exceptions"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 # The option is referenced via a variable to avoid confusing sed.
14975 lt_compile=`echo "$ac_compile" | $SED \
14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
14979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980 (eval "$lt_compile" 2>conftest.err)
14981 ac_status=$?
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 if (exit $ac_status) && test -s "$ac_outfile"; then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings other than the usual output.
14987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14990 lt_cv_prog_compiler_rtti_exceptions=yes
14991 fi
14992 fi
14993 $RM conftest*
14994
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14997 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14998
14999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15001 else
15002 :
15003 fi
15004
15005 fi
15006
15007
15008
15009
15010
15011
15012 lt_prog_compiler_wl=
15013 lt_prog_compiler_pic=
15014 lt_prog_compiler_static=
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15017 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15018
15019 if test "$GCC" = yes; then
15020 lt_prog_compiler_wl='-Wl,'
15021 lt_prog_compiler_static='-static'
15022
15023 case $host_os in
15024 aix*)
15025 # All AIX code is PIC.
15026 if test "$host_cpu" = ia64; then
15027 # AIX 5 now supports IA64 processor
15028 lt_prog_compiler_static='-Bstatic'
15029 fi
15030 ;;
15031
15032 amigaos*)
15033 case $host_cpu in
15034 powerpc)
15035 # see comment about AmigaOS4 .so support
15036 lt_prog_compiler_pic='-fPIC'
15037 ;;
15038 m68k)
15039 # FIXME: we need at least 68020 code to build shared libraries, but
15040 # adding the `-m68020' flag to GCC prevents building anything better,
15041 # like `-m68040'.
15042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15043 ;;
15044 esac
15045 ;;
15046
15047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15048 # PIC is the default for these OSes.
15049 ;;
15050
15051 mingw* | cygwin* | pw32* | os2* | cegcc*)
15052 # This hack is so that the source file can tell whether it is being
15053 # built for inclusion in a dll (and should export symbols for example).
15054 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15055 # (--disable-auto-import) libraries
15056 lt_prog_compiler_pic='-DDLL_EXPORT'
15057 ;;
15058
15059 darwin* | rhapsody*)
15060 # PIC is the default on this platform
15061 # Common symbols not allowed in MH_DYLIB files
15062 lt_prog_compiler_pic='-fno-common'
15063 ;;
15064
15065 haiku*)
15066 # PIC is the default for Haiku.
15067 # The "-static" flag exists, but is broken.
15068 lt_prog_compiler_static=
15069 ;;
15070
15071 hpux*)
15072 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15073 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15074 # sets the default TLS model and affects inlining.
15075 case $host_cpu in
15076 hppa*64*)
15077 # +Z the default
15078 ;;
15079 *)
15080 lt_prog_compiler_pic='-fPIC'
15081 ;;
15082 esac
15083 ;;
15084
15085 interix[3-9]*)
15086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15087 # Instead, we relocate shared libraries at runtime.
15088 ;;
15089
15090 msdosdjgpp*)
15091 # Just because we use GCC doesn't mean we suddenly get shared libraries
15092 # on systems that don't support them.
15093 lt_prog_compiler_can_build_shared=no
15094 enable_shared=no
15095 ;;
15096
15097 *nto* | *qnx*)
15098 # QNX uses GNU C++, but need to define -shared option too, otherwise
15099 # it will coredump.
15100 lt_prog_compiler_pic='-fPIC -shared'
15101 ;;
15102
15103 sysv4*MP*)
15104 if test -d /usr/nec; then
15105 lt_prog_compiler_pic=-Kconform_pic
15106 fi
15107 ;;
15108
15109 *)
15110 lt_prog_compiler_pic='-fPIC'
15111 ;;
15112 esac
15113
15114 case $cc_basename in
15115 nvcc*) # Cuda Compiler Driver 2.2
15116 lt_prog_compiler_wl='-Xlinker '
15117 lt_prog_compiler_pic='-Xcompiler -fPIC'
15118 ;;
15119 esac
15120 else
15121 # PORTME Check for flag to pass linker flags through the system compiler.
15122 case $host_os in
15123 aix*)
15124 lt_prog_compiler_wl='-Wl,'
15125 if test "$host_cpu" = ia64; then
15126 # AIX 5 now supports IA64 processor
15127 lt_prog_compiler_static='-Bstatic'
15128 else
15129 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15130 fi
15131 ;;
15132
15133 mingw* | cygwin* | pw32* | os2* | cegcc*)
15134 # This hack is so that the source file can tell whether it is being
15135 # built for inclusion in a dll (and should export symbols for example).
15136 lt_prog_compiler_pic='-DDLL_EXPORT'
15137 ;;
15138
15139 hpux9* | hpux10* | hpux11*)
15140 lt_prog_compiler_wl='-Wl,'
15141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15142 # not for PA HP-UX.
15143 case $host_cpu in
15144 hppa*64*|ia64*)
15145 # +Z the default
15146 ;;
15147 *)
15148 lt_prog_compiler_pic='+Z'
15149 ;;
15150 esac
15151 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15152 lt_prog_compiler_static='${wl}-a ${wl}archive'
15153 ;;
15154
15155 irix5* | irix6* | nonstopux*)
15156 lt_prog_compiler_wl='-Wl,'
15157 # PIC (with -KPIC) is the default.
15158 lt_prog_compiler_static='-non_shared'
15159 ;;
15160
15161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15162 case $cc_basename in
15163 # old Intel for x86_64 which still supported -KPIC.
15164 ecc*)
15165 lt_prog_compiler_wl='-Wl,'
15166 lt_prog_compiler_pic='-KPIC'
15167 lt_prog_compiler_static='-static'
15168 ;;
15169 # icc used to be incompatible with GCC.
15170 # ICC 10 doesn't accept -KPIC any more.
15171 icc* | ifort*)
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_pic='-fPIC'
15174 lt_prog_compiler_static='-static'
15175 ;;
15176 # Lahey Fortran 8.1.
15177 lf95*)
15178 lt_prog_compiler_wl='-Wl,'
15179 lt_prog_compiler_pic='--shared'
15180 lt_prog_compiler_static='--static'
15181 ;;
15182 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15183 # Portland Group compilers (*not* the Pentium gcc compiler,
15184 # which looks to be a dead project)
15185 lt_prog_compiler_wl='-Wl,'
15186 lt_prog_compiler_pic='-fpic'
15187 lt_prog_compiler_static='-Bstatic'
15188 ;;
15189 ccc*)
15190 lt_prog_compiler_wl='-Wl,'
15191 # All Alpha code is PIC.
15192 lt_prog_compiler_static='-non_shared'
15193 ;;
15194 xl* | bgxl* | bgf* | mpixl*)
15195 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15196 lt_prog_compiler_wl='-Wl,'
15197 lt_prog_compiler_pic='-qpic'
15198 lt_prog_compiler_static='-qstaticlink'
15199 ;;
15200 *)
15201 case `$CC -V 2>&1 | sed 5q` in
15202 *Sun\ F* | *Sun*Fortran*)
15203 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15204 lt_prog_compiler_pic='-KPIC'
15205 lt_prog_compiler_static='-Bstatic'
15206 lt_prog_compiler_wl=''
15207 ;;
15208 *Sun\ C*)
15209 # Sun C 5.9
15210 lt_prog_compiler_pic='-KPIC'
15211 lt_prog_compiler_static='-Bstatic'
15212 lt_prog_compiler_wl='-Wl,'
15213 ;;
15214 esac
15215 ;;
15216 esac
15217 ;;
15218
15219 newsos6)
15220 lt_prog_compiler_pic='-KPIC'
15221 lt_prog_compiler_static='-Bstatic'
15222 ;;
15223
15224 *nto* | *qnx*)
15225 # QNX uses GNU C++, but need to define -shared option too, otherwise
15226 # it will coredump.
15227 lt_prog_compiler_pic='-fPIC -shared'
15228 ;;
15229
15230 osf3* | osf4* | osf5*)
15231 lt_prog_compiler_wl='-Wl,'
15232 # All OSF/1 code is PIC.
15233 lt_prog_compiler_static='-non_shared'
15234 ;;
15235
15236 rdos*)
15237 lt_prog_compiler_static='-non_shared'
15238 ;;
15239
15240 solaris*)
15241 lt_prog_compiler_pic='-KPIC'
15242 lt_prog_compiler_static='-Bstatic'
15243 case $cc_basename in
15244 f77* | f90* | f95*)
15245 lt_prog_compiler_wl='-Qoption ld ';;
15246 *)
15247 lt_prog_compiler_wl='-Wl,';;
15248 esac
15249 ;;
15250
15251 sunos4*)
15252 lt_prog_compiler_wl='-Qoption ld '
15253 lt_prog_compiler_pic='-PIC'
15254 lt_prog_compiler_static='-Bstatic'
15255 ;;
15256
15257 sysv4 | sysv4.2uw2* | sysv4.3*)
15258 lt_prog_compiler_wl='-Wl,'
15259 lt_prog_compiler_pic='-KPIC'
15260 lt_prog_compiler_static='-Bstatic'
15261 ;;
15262
15263 sysv4*MP*)
15264 if test -d /usr/nec ;then
15265 lt_prog_compiler_pic='-Kconform_pic'
15266 lt_prog_compiler_static='-Bstatic'
15267 fi
15268 ;;
15269
15270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15271 lt_prog_compiler_wl='-Wl,'
15272 lt_prog_compiler_pic='-KPIC'
15273 lt_prog_compiler_static='-Bstatic'
15274 ;;
15275
15276 unicos*)
15277 lt_prog_compiler_wl='-Wl,'
15278 lt_prog_compiler_can_build_shared=no
15279 ;;
15280
15281 uts4*)
15282 lt_prog_compiler_pic='-pic'
15283 lt_prog_compiler_static='-Bstatic'
15284 ;;
15285
15286 *)
15287 lt_prog_compiler_can_build_shared=no
15288 ;;
15289 esac
15290 fi
15291
15292 case $host_os in
15293 # For platforms which do not support PIC, -DPIC is meaningless:
15294 *djgpp*)
15295 lt_prog_compiler_pic=
15296 ;;
15297 *)
15298 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15299 ;;
15300 esac
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15302 $as_echo "$lt_prog_compiler_pic" >&6; }
15303
15304
15305
15306
15307
15308
15309 #
15310 # Check to make sure the PIC flag actually works.
15311 #
15312 if test -n "$lt_prog_compiler_pic"; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15315 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 lt_cv_prog_compiler_pic_works=no
15319 ac_outfile=conftest.$ac_objext
15320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15321 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15322 # Insert the option either (1) after the last *FLAGS variable, or
15323 # (2) before a word containing "conftest.", or (3) at the end.
15324 # Note that $ac_compile itself does not contain backslashes and begins
15325 # with a dollar sign (not a hyphen), so the echo should work correctly.
15326 # The option is referenced via a variable to avoid confusing sed.
15327 lt_compile=`echo "$ac_compile" | $SED \
15328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15330 -e 's:$: $lt_compiler_flag:'`
15331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15332 (eval "$lt_compile" 2>conftest.err)
15333 ac_status=$?
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 if (exit $ac_status) && test -s "$ac_outfile"; then
15337 # The compiler can only warn and ignore the option if not recognized
15338 # So say no if there are warnings other than the usual output.
15339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15342 lt_cv_prog_compiler_pic_works=yes
15343 fi
15344 fi
15345 $RM conftest*
15346
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15349 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15350
15351 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15352 case $lt_prog_compiler_pic in
15353 "" | " "*) ;;
15354 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15355 esac
15356 else
15357 lt_prog_compiler_pic=
15358 lt_prog_compiler_can_build_shared=no
15359 fi
15360
15361 fi
15362
15363
15364
15365
15366
15367
15368 #
15369 # Check to make sure the static flag actually works.
15370 #
15371 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15374 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 lt_cv_prog_compiler_static_works=no
15378 save_LDFLAGS="$LDFLAGS"
15379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15382 # The linker can only warn and ignore the option if not recognized
15383 # So say no if there are warnings
15384 if test -s conftest.err; then
15385 # Append any errors to the config.log.
15386 cat conftest.err 1>&5
15387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15389 if diff conftest.exp conftest.er2 >/dev/null; then
15390 lt_cv_prog_compiler_static_works=yes
15391 fi
15392 else
15393 lt_cv_prog_compiler_static_works=yes
15394 fi
15395 fi
15396 $RM -r conftest*
15397 LDFLAGS="$save_LDFLAGS"
15398
15399 fi
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15401 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15402
15403 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15404 :
15405 else
15406 lt_prog_compiler_static=
15407 fi
15408
15409
15410
15411
15412
15413
15414
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15417 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420 lt_cv_prog_compiler_c_o=no
15421 $RM -r conftest 2>/dev/null
15422 mkdir conftest
15423 cd conftest
15424 mkdir out
15425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15426
15427 lt_compiler_flag="-o out/conftest2.$ac_objext"
15428 # Insert the option either (1) after the last *FLAGS variable, or
15429 # (2) before a word containing "conftest.", or (3) at the end.
15430 # Note that $ac_compile itself does not contain backslashes and begins
15431 # with a dollar sign (not a hyphen), so the echo should work correctly.
15432 lt_compile=`echo "$ac_compile" | $SED \
15433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15435 -e 's:$: $lt_compiler_flag:'`
15436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15437 (eval "$lt_compile" 2>out/conftest.err)
15438 ac_status=$?
15439 cat out/conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15442 then
15443 # The compiler can only warn and ignore the option if not recognized
15444 # So say no if there are warnings
15445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15448 lt_cv_prog_compiler_c_o=yes
15449 fi
15450 fi
15451 chmod u+w . 2>&5
15452 $RM conftest*
15453 # SGI C++ compiler will create directory out/ii_files/ for
15454 # template instantiation
15455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15456 $RM out/* && rmdir out
15457 cd ..
15458 $RM -r conftest
15459 $RM conftest*
15460
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15463 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15464
15465
15466
15467
15468
15469
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15471 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15472 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 lt_cv_prog_compiler_c_o=no
15476 $RM -r conftest 2>/dev/null
15477 mkdir conftest
15478 cd conftest
15479 mkdir out
15480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15481
15482 lt_compiler_flag="-o out/conftest2.$ac_objext"
15483 # Insert the option either (1) after the last *FLAGS variable, or
15484 # (2) before a word containing "conftest.", or (3) at the end.
15485 # Note that $ac_compile itself does not contain backslashes and begins
15486 # with a dollar sign (not a hyphen), so the echo should work correctly.
15487 lt_compile=`echo "$ac_compile" | $SED \
15488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15490 -e 's:$: $lt_compiler_flag:'`
15491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15492 (eval "$lt_compile" 2>out/conftest.err)
15493 ac_status=$?
15494 cat out/conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15497 then
15498 # The compiler can only warn and ignore the option if not recognized
15499 # So say no if there are warnings
15500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15503 lt_cv_prog_compiler_c_o=yes
15504 fi
15505 fi
15506 chmod u+w . 2>&5
15507 $RM conftest*
15508 # SGI C++ compiler will create directory out/ii_files/ for
15509 # template instantiation
15510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15511 $RM out/* && rmdir out
15512 cd ..
15513 $RM -r conftest
15514 $RM conftest*
15515
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15518 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15519
15520
15521
15522
15523 hard_links="nottested"
15524 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15525 # do not overwrite the value of need_locks provided by the user
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15527 $as_echo_n "checking if we can lock with hard links... " >&6; }
15528 hard_links=yes
15529 $RM conftest*
15530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15531 touch conftest.a
15532 ln conftest.a conftest.b 2>&5 || hard_links=no
15533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15535 $as_echo "$hard_links" >&6; }
15536 if test "$hard_links" = no; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15538 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15539 need_locks=warn
15540 fi
15541 else
15542 need_locks=no
15543 fi
15544
15545
15546
15547
15548
15549
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15552
15553 runpath_var=
15554 allow_undefined_flag=
15555 always_export_symbols=no
15556 archive_cmds=
15557 archive_expsym_cmds=
15558 compiler_needs_object=no
15559 enable_shared_with_static_runtimes=no
15560 export_dynamic_flag_spec=
15561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15562 hardcode_automatic=no
15563 hardcode_direct=no
15564 hardcode_direct_absolute=no
15565 hardcode_libdir_flag_spec=
15566 hardcode_libdir_flag_spec_ld=
15567 hardcode_libdir_separator=
15568 hardcode_minus_L=no
15569 hardcode_shlibpath_var=unsupported
15570 inherit_rpath=no
15571 link_all_deplibs=unknown
15572 module_cmds=
15573 module_expsym_cmds=
15574 old_archive_from_new_cmds=
15575 old_archive_from_expsyms_cmds=
15576 thread_safe_flag_spec=
15577 whole_archive_flag_spec=
15578 # include_expsyms should be a list of space-separated symbols to be *always*
15579 # included in the symbol list
15580 include_expsyms=
15581 # exclude_expsyms can be an extended regexp of symbols to exclude
15582 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15584 # as well as any symbol that contains `d'.
15585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15587 # platforms (ab)use it in PIC code, but their linkers get confused if
15588 # the symbol is explicitly referenced. Since portable code cannot
15589 # rely on this symbol name, it's probably fine to never include it in
15590 # preloaded symbol tables.
15591 # Exclude shared library initialization/finalization symbols.
15592 extract_expsyms_cmds=
15593
15594 case $host_os in
15595 cygwin* | mingw* | pw32* | cegcc*)
15596 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15597 # When not using gcc, we currently assume that we are using
15598 # Microsoft Visual C++.
15599 if test "$GCC" != yes; then
15600 with_gnu_ld=no
15601 fi
15602 ;;
15603 interix*)
15604 # we just hope/assume this is gcc and not c89 (= MSVC++)
15605 with_gnu_ld=yes
15606 ;;
15607 openbsd*)
15608 with_gnu_ld=no
15609 ;;
15610 esac
15611
15612 ld_shlibs=yes
15613
15614 # On some targets, GNU ld is compatible enough with the native linker
15615 # that we're better off using the native interface for both.
15616 lt_use_gnu_ld_interface=no
15617 if test "$with_gnu_ld" = yes; then
15618 case $host_os in
15619 aix*)
15620 # The AIX port of GNU ld has always aspired to compatibility
15621 # with the native linker. However, as the warning in the GNU ld
15622 # block says, versions before 2.19.5* couldn't really create working
15623 # shared libraries, regardless of the interface used.
15624 case `$LD -v 2>&1` in
15625 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15626 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15627 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15628 *)
15629 lt_use_gnu_ld_interface=yes
15630 ;;
15631 esac
15632 ;;
15633 *)
15634 lt_use_gnu_ld_interface=yes
15635 ;;
15636 esac
15637 fi
15638
15639 if test "$lt_use_gnu_ld_interface" = yes; then
15640 # If archive_cmds runs LD, not CC, wlarc should be empty
15641 wlarc='${wl}'
15642
15643 # Set some defaults for GNU ld with shared library support. These
15644 # are reset later if shared libraries are not supported. Putting them
15645 # here allows them to be overridden if necessary.
15646 runpath_var=LD_RUN_PATH
15647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15648 export_dynamic_flag_spec='${wl}--export-dynamic'
15649 # ancient GNU ld didn't support --whole-archive et. al.
15650 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15652 else
15653 whole_archive_flag_spec=
15654 fi
15655 supports_anon_versioning=no
15656 case `$LD -v 2>&1` in
15657 *GNU\ gold*) supports_anon_versioning=yes ;;
15658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15661 *\ 2.11.*) ;; # other 2.11 versions
15662 *) supports_anon_versioning=yes ;;
15663 esac
15664
15665 # See if GNU ld supports shared libraries.
15666 case $host_os in
15667 aix[3-9]*)
15668 # On AIX/PPC, the GNU linker is very broken
15669 if test "$host_cpu" != ia64; then
15670 ld_shlibs=no
15671 cat <<_LT_EOF 1>&2
15672
15673 *** Warning: the GNU linker, at least up to release 2.19, is reported
15674 *** to be unable to reliably create shared libraries on AIX.
15675 *** Therefore, libtool is disabling shared libraries support. If you
15676 *** really care for shared libraries, you may want to install binutils
15677 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15678 *** You will then need to restart the configuration process.
15679
15680 _LT_EOF
15681 fi
15682 ;;
15683
15684 amigaos*)
15685 case $host_cpu in
15686 powerpc)
15687 # see comment about AmigaOS4 .so support
15688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689 archive_expsym_cmds=''
15690 ;;
15691 m68k)
15692 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)'
15693 hardcode_libdir_flag_spec='-L$libdir'
15694 hardcode_minus_L=yes
15695 ;;
15696 esac
15697 ;;
15698
15699 beos*)
15700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15701 allow_undefined_flag=unsupported
15702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15703 # support --undefined. This deserves some investigation. FIXME
15704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15705 else
15706 ld_shlibs=no
15707 fi
15708 ;;
15709
15710 cygwin* | mingw* | pw32* | cegcc*)
15711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15712 # as there is no search path for DLLs.
15713 hardcode_libdir_flag_spec='-L$libdir'
15714 export_dynamic_flag_spec='${wl}--export-all-symbols'
15715 allow_undefined_flag=unsupported
15716 always_export_symbols=no
15717 enable_shared_with_static_runtimes=yes
15718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15719
15720 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15722 # If the export-symbols file already is a .def file (1st line
15723 # is EXPORTS), use it as is; otherwise, prepend...
15724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15725 cp $export_symbols $output_objdir/$soname.def;
15726 else
15727 echo EXPORTS > $output_objdir/$soname.def;
15728 cat $export_symbols >> $output_objdir/$soname.def;
15729 fi~
15730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15731 else
15732 ld_shlibs=no
15733 fi
15734 ;;
15735
15736 haiku*)
15737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15738 link_all_deplibs=yes
15739 ;;
15740
15741 interix[3-9]*)
15742 hardcode_direct=no
15743 hardcode_shlibpath_var=no
15744 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15745 export_dynamic_flag_spec='${wl}-E'
15746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15747 # Instead, shared libraries are loaded at an image base (0x10000000 by
15748 # default) and relocated if they conflict, which is a slow very memory
15749 # consuming and fragmenting process. To avoid this, we pick a random,
15750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15751 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15753 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'
15754 ;;
15755
15756 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15757 tmp_diet=no
15758 if test "$host_os" = linux-dietlibc; then
15759 case $cc_basename in
15760 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15761 esac
15762 fi
15763 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15764 && test "$tmp_diet" = no
15765 then
15766 tmp_addflag=
15767 tmp_sharedflag='-shared'
15768 case $cc_basename,$host_cpu in
15769 pgcc*) # Portland Group C compiler
15770 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'
15771 tmp_addflag=' $pic_flag'
15772 ;;
15773 pgf77* | pgf90* | pgf95* | pgfortran*)
15774 # Portland Group f77 and f90 compilers
15775 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'
15776 tmp_addflag=' $pic_flag -Mnomain' ;;
15777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15778 tmp_addflag=' -i_dynamic' ;;
15779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15780 tmp_addflag=' -i_dynamic -nofor_main' ;;
15781 ifc* | ifort*) # Intel Fortran compiler
15782 tmp_addflag=' -nofor_main' ;;
15783 lf95*) # Lahey Fortran 8.1
15784 whole_archive_flag_spec=
15785 tmp_sharedflag='--shared' ;;
15786 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15787 tmp_sharedflag='-qmkshrobj'
15788 tmp_addflag= ;;
15789 nvcc*) # Cuda Compiler Driver 2.2
15790 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'
15791 compiler_needs_object=yes
15792 ;;
15793 esac
15794 case `$CC -V 2>&1 | sed 5q` in
15795 *Sun\ C*) # Sun C 5.9
15796 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'
15797 compiler_needs_object=yes
15798 tmp_sharedflag='-G' ;;
15799 *Sun\ F*) # Sun Fortran 8.3
15800 tmp_sharedflag='-G' ;;
15801 esac
15802 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803
15804 if test "x$supports_anon_versioning" = xyes; then
15805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15807 echo "local: *; };" >> $output_objdir/$libname.ver~
15808 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15809 fi
15810
15811 case $cc_basename in
15812 xlf* | bgf* | bgxlf* | mpixlf*)
15813 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15814 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15815 hardcode_libdir_flag_spec=
15816 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15817 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15818 if test "x$supports_anon_versioning" = xyes; then
15819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15821 echo "local: *; };" >> $output_objdir/$libname.ver~
15822 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15823 fi
15824 ;;
15825 esac
15826 else
15827 ld_shlibs=no
15828 fi
15829 ;;
15830
15831 netbsd*)
15832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834 wlarc=
15835 else
15836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838 fi
15839 ;;
15840
15841 solaris*)
15842 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15843 ld_shlibs=no
15844 cat <<_LT_EOF 1>&2
15845
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems. Therefore, libtool
15848 *** is disabling shared libraries support. We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer. Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15852
15853 _LT_EOF
15854 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857 else
15858 ld_shlibs=no
15859 fi
15860 ;;
15861
15862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15863 case `$LD -v 2>&1` in
15864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15865 ld_shlibs=no
15866 cat <<_LT_EOF 1>&2
15867
15868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15869 *** reliably create shared libraries on SCO systems. Therefore, libtool
15870 *** is disabling shared libraries support. We urge you to upgrade GNU
15871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15872 *** your PATH or compiler configuration so that the native linker is
15873 *** used, and then restart.
15874
15875 _LT_EOF
15876 ;;
15877 *)
15878 # For security reasons, it is highly recommended that you always
15879 # use absolute paths for naming shared libraries, and exclude the
15880 # DT_RUNPATH tag from executables and libraries. But doing so
15881 # requires that you compile everything twice, which is a pain.
15882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15886 else
15887 ld_shlibs=no
15888 fi
15889 ;;
15890 esac
15891 ;;
15892
15893 sunos4*)
15894 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15895 wlarc=
15896 hardcode_direct=yes
15897 hardcode_shlibpath_var=no
15898 ;;
15899
15900 *)
15901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15904 else
15905 ld_shlibs=no
15906 fi
15907 ;;
15908 esac
15909
15910 if test "$ld_shlibs" = no; then
15911 runpath_var=
15912 hardcode_libdir_flag_spec=
15913 export_dynamic_flag_spec=
15914 whole_archive_flag_spec=
15915 fi
15916 else
15917 # PORTME fill in a description of your system's linker (not GNU ld)
15918 case $host_os in
15919 aix3*)
15920 allow_undefined_flag=unsupported
15921 always_export_symbols=yes
15922 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'
15923 # Note: this linker hardcodes the directories in LIBPATH if there
15924 # are no directories specified by -L.
15925 hardcode_minus_L=yes
15926 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15927 # Neither direct hardcoding nor static linking is supported with a
15928 # broken collect2.
15929 hardcode_direct=unsupported
15930 fi
15931 ;;
15932
15933 aix[4-9]*)
15934 if test "$host_cpu" = ia64; then
15935 # On IA64, the linker does run time linking by default, so we don't
15936 # have to do anything special.
15937 aix_use_runtimelinking=no
15938 exp_sym_flag='-Bexport'
15939 no_entry_flag=""
15940 else
15941 # If we're using GNU nm, then we don't want the "-C" option.
15942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15943 # Also, AIX nm treats weak defined symbols like other global
15944 # defined symbols, whereas GNU nm marks them as "W".
15945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15946 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'
15947 else
15948 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'
15949 fi
15950 aix_use_runtimelinking=no
15951
15952 # Test if we are trying to use run time linking or normal
15953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15954 # need to do runtime linking.
15955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15956 for ld_flag in $LDFLAGS; do
15957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15958 aix_use_runtimelinking=yes
15959 break
15960 fi
15961 done
15962 ;;
15963 esac
15964
15965 exp_sym_flag='-bexport'
15966 no_entry_flag='-bnoentry'
15967 fi
15968
15969 # When large executables or shared objects are built, AIX ld can
15970 # have problems creating the table of contents. If linking a library
15971 # or program results in "error TOC overflow" add -mminimal-toc to
15972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15974
15975 archive_cmds=''
15976 hardcode_direct=yes
15977 hardcode_direct_absolute=yes
15978 hardcode_libdir_separator=':'
15979 link_all_deplibs=yes
15980 file_list_spec='${wl}-f,'
15981
15982 if test "$GCC" = yes; then
15983 case $host_os in aix4.[012]|aix4.[012].*)
15984 # We only want to do this on AIX 4.2 and lower, the check
15985 # below for broken collect2 doesn't work under 4.3+
15986 collect2name=`${CC} -print-prog-name=collect2`
15987 if test -f "$collect2name" &&
15988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15989 then
15990 # We have reworked collect2
15991 :
15992 else
15993 # We have old collect2
15994 hardcode_direct=unsupported
15995 # It fails to find uninstalled libraries when the uninstalled
15996 # path is not listed in the libpath. Setting hardcode_minus_L
15997 # to unsupported forces relinking
15998 hardcode_minus_L=yes
15999 hardcode_libdir_flag_spec='-L$libdir'
16000 hardcode_libdir_separator=
16001 fi
16002 ;;
16003 esac
16004 shared_flag='-shared'
16005 if test "$aix_use_runtimelinking" = yes; then
16006 shared_flag="$shared_flag "'${wl}-G'
16007 fi
16008 else
16009 # not using gcc
16010 if test "$host_cpu" = ia64; then
16011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16012 # chokes on -Wl,-G. The following line is correct:
16013 shared_flag='-G'
16014 else
16015 if test "$aix_use_runtimelinking" = yes; then
16016 shared_flag='${wl}-G'
16017 else
16018 shared_flag='${wl}-bM:SRE'
16019 fi
16020 fi
16021 fi
16022
16023 export_dynamic_flag_spec='${wl}-bexpall'
16024 # It seems that -bexpall does not export symbols beginning with
16025 # underscore (_), so it is better to generate a list of symbols to export.
16026 always_export_symbols=yes
16027 if test "$aix_use_runtimelinking" = yes; then
16028 # Warning - without using the other runtime loading flags (-brtl),
16029 # -berok will link without error, but may produce a broken library.
16030 allow_undefined_flag='-berok'
16031 # Determine the default libpath from the value encoded in an
16032 # empty executable.
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035
16036 int
16037 main ()
16038 {
16039
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 if ac_fn_c_try_link "$LINENO"; then :
16045
16046 lt_aix_libpath_sed='
16047 /Import File Strings/,/^$/ {
16048 /^0/ {
16049 s/^0 *\(.*\)$/\1/
16050 p
16051 }
16052 }'
16053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16054 # Check for a 64-bit object if we didn't find anything.
16055 if test -z "$aix_libpath"; then
16056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16057 fi
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext \
16060 conftest$ac_exeext conftest.$ac_ext
16061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16062
16063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16064 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"
16065 else
16066 if test "$host_cpu" = ia64; then
16067 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16068 allow_undefined_flag="-z nodefs"
16069 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"
16070 else
16071 # Determine the default libpath from the value encoded in an
16072 # empty executable.
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16075
16076 int
16077 main ()
16078 {
16079
16080 ;
16081 return 0;
16082 }
16083 _ACEOF
16084 if ac_fn_c_try_link "$LINENO"; then :
16085
16086 lt_aix_libpath_sed='
16087 /Import File Strings/,/^$/ {
16088 /^0/ {
16089 s/^0 *\(.*\)$/\1/
16090 p
16091 }
16092 }'
16093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16094 # Check for a 64-bit object if we didn't find anything.
16095 if test -z "$aix_libpath"; then
16096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16097 fi
16098 fi
16099 rm -f core conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16102
16103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16104 # Warning - without using the other run time loading flags,
16105 # -berok will link without error, but may produce a broken library.
16106 no_undefined_flag=' ${wl}-bernotok'
16107 allow_undefined_flag=' ${wl}-berok'
16108 if test "$with_gnu_ld" = yes; then
16109 # We only use this code for GNU lds that support --whole-archive.
16110 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16111 else
16112 # Exported symbols can be pulled into shared objects from archives
16113 whole_archive_flag_spec='$convenience'
16114 fi
16115 archive_cmds_need_lc=yes
16116 # This is similar to how AIX traditionally builds its shared libraries.
16117 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'
16118 fi
16119 fi
16120 ;;
16121
16122 amigaos*)
16123 case $host_cpu in
16124 powerpc)
16125 # see comment about AmigaOS4 .so support
16126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 archive_expsym_cmds=''
16128 ;;
16129 m68k)
16130 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)'
16131 hardcode_libdir_flag_spec='-L$libdir'
16132 hardcode_minus_L=yes
16133 ;;
16134 esac
16135 ;;
16136
16137 bsdi[45]*)
16138 export_dynamic_flag_spec=-rdynamic
16139 ;;
16140
16141 cygwin* | mingw* | pw32* | cegcc*)
16142 # When not using gcc, we currently assume that we are using
16143 # Microsoft Visual C++.
16144 # hardcode_libdir_flag_spec is actually meaningless, as there is
16145 # no search path for DLLs.
16146 hardcode_libdir_flag_spec=' '
16147 allow_undefined_flag=unsupported
16148 # Tell ltmain to make .lib files, not .a files.
16149 libext=lib
16150 # Tell ltmain to make .dll files, not .so files.
16151 shrext_cmds=".dll"
16152 # FIXME: Setting linknames here is a bad hack.
16153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16154 # The linker will automatically build a .lib file if we build a DLL.
16155 old_archive_from_new_cmds='true'
16156 # FIXME: Should let the user specify the lib program.
16157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16158 fix_srcfile_path='`cygpath -w "$srcfile"`'
16159 enable_shared_with_static_runtimes=yes
16160 ;;
16161
16162 darwin* | rhapsody*)
16163
16164
16165 archive_cmds_need_lc=no
16166 hardcode_direct=no
16167 hardcode_automatic=yes
16168 hardcode_shlibpath_var=unsupported
16169 if test "$lt_cv_ld_force_load" = "yes"; then
16170 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\"`'
16171 else
16172 whole_archive_flag_spec=''
16173 fi
16174 link_all_deplibs=yes
16175 allow_undefined_flag="$_lt_dar_allow_undefined"
16176 case $cc_basename in
16177 ifort*) _lt_dar_can_shared=yes ;;
16178 *) _lt_dar_can_shared=$GCC ;;
16179 esac
16180 if test "$_lt_dar_can_shared" = "yes"; then
16181 output_verbose_link_cmd=func_echo_all
16182 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16183 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16184 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}"
16185 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}"
16186
16187 else
16188 ld_shlibs=no
16189 fi
16190
16191 ;;
16192
16193 dgux*)
16194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16195 hardcode_libdir_flag_spec='-L$libdir'
16196 hardcode_shlibpath_var=no
16197 ;;
16198
16199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16200 # support. Future versions do this automatically, but an explicit c++rt0.o
16201 # does not break anything, and helps significantly (at the cost of a little
16202 # extra space).
16203 freebsd2.2*)
16204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16205 hardcode_libdir_flag_spec='-R$libdir'
16206 hardcode_direct=yes
16207 hardcode_shlibpath_var=no
16208 ;;
16209
16210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16211 freebsd2.*)
16212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_direct=yes
16214 hardcode_minus_L=yes
16215 hardcode_shlibpath_var=no
16216 ;;
16217
16218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16219 freebsd* | dragonfly*)
16220 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16221 hardcode_libdir_flag_spec='-R$libdir'
16222 hardcode_direct=yes
16223 hardcode_shlibpath_var=no
16224 ;;
16225
16226 hpux9*)
16227 if test "$GCC" = yes; then
16228 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'
16229 else
16230 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'
16231 fi
16232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16233 hardcode_libdir_separator=:
16234 hardcode_direct=yes
16235
16236 # hardcode_minus_L: Not really in the search PATH,
16237 # but as the default location of the library.
16238 hardcode_minus_L=yes
16239 export_dynamic_flag_spec='${wl}-E'
16240 ;;
16241
16242 hpux10*)
16243 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16244 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16245 else
16246 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16247 fi
16248 if test "$with_gnu_ld" = no; then
16249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16250 hardcode_libdir_flag_spec_ld='+b $libdir'
16251 hardcode_libdir_separator=:
16252 hardcode_direct=yes
16253 hardcode_direct_absolute=yes
16254 export_dynamic_flag_spec='${wl}-E'
16255 # hardcode_minus_L: Not really in the search PATH,
16256 # but as the default location of the library.
16257 hardcode_minus_L=yes
16258 fi
16259 ;;
16260
16261 hpux11*)
16262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16263 case $host_cpu in
16264 hppa*64*)
16265 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 ;;
16267 ia64*)
16268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16269 ;;
16270 *)
16271 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16272 ;;
16273 esac
16274 else
16275 case $host_cpu in
16276 hppa*64*)
16277 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16278 ;;
16279 ia64*)
16280 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16281 ;;
16282 *)
16283
16284 # Older versions of the 11.00 compiler do not understand -b yet
16285 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16287 $as_echo_n "checking if $CC understands -b... " >&6; }
16288 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 lt_cv_prog_compiler__b=no
16292 save_LDFLAGS="$LDFLAGS"
16293 LDFLAGS="$LDFLAGS -b"
16294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16296 # The linker can only warn and ignore the option if not recognized
16297 # So say no if there are warnings
16298 if test -s conftest.err; then
16299 # Append any errors to the config.log.
16300 cat conftest.err 1>&5
16301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16303 if diff conftest.exp conftest.er2 >/dev/null; then
16304 lt_cv_prog_compiler__b=yes
16305 fi
16306 else
16307 lt_cv_prog_compiler__b=yes
16308 fi
16309 fi
16310 $RM -r conftest*
16311 LDFLAGS="$save_LDFLAGS"
16312
16313 fi
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16315 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16316
16317 if test x"$lt_cv_prog_compiler__b" = xyes; then
16318 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16319 else
16320 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16321 fi
16322
16323 ;;
16324 esac
16325 fi
16326 if test "$with_gnu_ld" = no; then
16327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16328 hardcode_libdir_separator=:
16329
16330 case $host_cpu in
16331 hppa*64*|ia64*)
16332 hardcode_direct=no
16333 hardcode_shlibpath_var=no
16334 ;;
16335 *)
16336 hardcode_direct=yes
16337 hardcode_direct_absolute=yes
16338 export_dynamic_flag_spec='${wl}-E'
16339
16340 # hardcode_minus_L: Not really in the search PATH,
16341 # but as the default location of the library.
16342 hardcode_minus_L=yes
16343 ;;
16344 esac
16345 fi
16346 ;;
16347
16348 irix5* | irix6* | nonstopux*)
16349 if test "$GCC" = yes; then
16350 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'
16351 # Try to use the -exported_symbol ld option, if it does not
16352 # work, assume that -exports_file does not work either and
16353 # implicitly export all symbols.
16354 save_LDFLAGS="$LDFLAGS"
16355 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 int foo(void) {}
16359 _ACEOF
16360 if ac_fn_c_try_link "$LINENO"; then :
16361 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'
16362
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 LDFLAGS="$save_LDFLAGS"
16367 else
16368 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'
16369 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'
16370 fi
16371 archive_cmds_need_lc='no'
16372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16373 hardcode_libdir_separator=:
16374 inherit_rpath=yes
16375 link_all_deplibs=yes
16376 ;;
16377
16378 netbsd*)
16379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16381 else
16382 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16383 fi
16384 hardcode_libdir_flag_spec='-R$libdir'
16385 hardcode_direct=yes
16386 hardcode_shlibpath_var=no
16387 ;;
16388
16389 newsos6)
16390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 hardcode_direct=yes
16392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393 hardcode_libdir_separator=:
16394 hardcode_shlibpath_var=no
16395 ;;
16396
16397 *nto* | *qnx*)
16398 ;;
16399
16400 openbsd*)
16401 if test -f /usr/libexec/ld.so; then
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16404 hardcode_direct_absolute=yes
16405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16409 export_dynamic_flag_spec='${wl}-E'
16410 else
16411 case $host_os in
16412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec='-R$libdir'
16415 ;;
16416 *)
16417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16419 ;;
16420 esac
16421 fi
16422 else
16423 ld_shlibs=no
16424 fi
16425 ;;
16426
16427 os2*)
16428 hardcode_libdir_flag_spec='-L$libdir'
16429 hardcode_minus_L=yes
16430 allow_undefined_flag=unsupported
16431 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'
16432 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16433 ;;
16434
16435 osf3*)
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}-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 else
16440 allow_undefined_flag=' -expect_unresolved \*'
16441 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'
16442 fi
16443 archive_cmds_need_lc='no'
16444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16445 hardcode_libdir_separator=:
16446 ;;
16447
16448 osf4* | osf5*) # as osf3* with the addition of -msym flag
16449 if test "$GCC" = yes; then
16450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16451 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'
16452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16453 else
16454 allow_undefined_flag=' -expect_unresolved \*'
16455 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'
16456 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~
16457 $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'
16458
16459 # Both c and cxx compiler support -rpath directly
16460 hardcode_libdir_flag_spec='-rpath $libdir'
16461 fi
16462 archive_cmds_need_lc='no'
16463 hardcode_libdir_separator=:
16464 ;;
16465
16466 solaris*)
16467 no_undefined_flag=' -z defs'
16468 if test "$GCC" = yes; then
16469 wlarc='${wl}'
16470 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16473 else
16474 case `$CC -V 2>&1` in
16475 *"Compilers 5.0"*)
16476 wlarc=''
16477 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16480 ;;
16481 *)
16482 wlarc='${wl}'
16483 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16485 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16486 ;;
16487 esac
16488 fi
16489 hardcode_libdir_flag_spec='-R$libdir'
16490 hardcode_shlibpath_var=no
16491 case $host_os in
16492 solaris2.[0-5] | solaris2.[0-5].*) ;;
16493 *)
16494 # The compiler driver will combine and reorder linker options,
16495 # but understands `-z linker_flag'. GCC discards it without `$wl',
16496 # but is careful enough not to reorder.
16497 # Supported since Solaris 2.6 (maybe 2.5.1?)
16498 if test "$GCC" = yes; then
16499 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16500 else
16501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16502 fi
16503 ;;
16504 esac
16505 link_all_deplibs=yes
16506 ;;
16507
16508 sunos4*)
16509 if test "x$host_vendor" = xsequent; then
16510 # Use $CC to link under sequent, because it throws in some extra .o
16511 # files that make .init and .fini sections work.
16512 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16513 else
16514 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16515 fi
16516 hardcode_libdir_flag_spec='-L$libdir'
16517 hardcode_direct=yes
16518 hardcode_minus_L=yes
16519 hardcode_shlibpath_var=no
16520 ;;
16521
16522 sysv4)
16523 case $host_vendor in
16524 sni)
16525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 hardcode_direct=yes # is this really true???
16527 ;;
16528 siemens)
16529 ## LD is ld it makes a PLAMLIB
16530 ## CC just makes a GrossModule.
16531 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16532 reload_cmds='$CC -r -o $output$reload_objs'
16533 hardcode_direct=no
16534 ;;
16535 motorola)
16536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16538 ;;
16539 esac
16540 runpath_var='LD_RUN_PATH'
16541 hardcode_shlibpath_var=no
16542 ;;
16543
16544 sysv4.3*)
16545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_shlibpath_var=no
16547 export_dynamic_flag_spec='-Bexport'
16548 ;;
16549
16550 sysv4*MP*)
16551 if test -d /usr/nec; then
16552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_shlibpath_var=no
16554 runpath_var=LD_RUN_PATH
16555 hardcode_runpath_var=yes
16556 ld_shlibs=yes
16557 fi
16558 ;;
16559
16560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16561 no_undefined_flag='${wl}-z,text'
16562 archive_cmds_need_lc=no
16563 hardcode_shlibpath_var=no
16564 runpath_var='LD_RUN_PATH'
16565
16566 if test "$GCC" = yes; then
16567 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 else
16570 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 fi
16573 ;;
16574
16575 sysv5* | sco3.2v5* | sco5v6*)
16576 # Note: We can NOT use -z defs as we might desire, because we do not
16577 # link with -lc, and that would cause any symbols used from libc to
16578 # always be unresolved, which means just about no library would
16579 # ever link correctly. If we're not using GNU ld we use -z text
16580 # though, which does catch some bad symbols but isn't as heavy-handed
16581 # as -z defs.
16582 no_undefined_flag='${wl}-z,text'
16583 allow_undefined_flag='${wl}-z,nodefs'
16584 archive_cmds_need_lc=no
16585 hardcode_shlibpath_var=no
16586 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16587 hardcode_libdir_separator=':'
16588 link_all_deplibs=yes
16589 export_dynamic_flag_spec='${wl}-Bexport'
16590 runpath_var='LD_RUN_PATH'
16591
16592 if test "$GCC" = yes; then
16593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 else
16596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 fi
16599 ;;
16600
16601 uts4*)
16602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_libdir_flag_spec='-L$libdir'
16604 hardcode_shlibpath_var=no
16605 ;;
16606
16607 *)
16608 ld_shlibs=no
16609 ;;
16610 esac
16611
16612 if test x$host_vendor = xsni; then
16613 case $host in
16614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16615 export_dynamic_flag_spec='${wl}-Blargedynsym'
16616 ;;
16617 esac
16618 fi
16619 fi
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16622 $as_echo "$ld_shlibs" >&6; }
16623 test "$ld_shlibs" = no && can_build_shared=no
16624
16625 with_gnu_ld=$with_gnu_ld
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641 #
16642 # Do we need to explicitly link libc?
16643 #
16644 case "x$archive_cmds_need_lc" in
16645 x|xyes)
16646 # Assume -lc should be added
16647 archive_cmds_need_lc=yes
16648
16649 if test "$enable_shared" = yes && test "$GCC" = yes; then
16650 case $archive_cmds in
16651 *'~'*)
16652 # FIXME: we may have to deal with multi-command sequences.
16653 ;;
16654 '$CC '*)
16655 # Test whether the compiler implicitly links with -lc since on some
16656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16657 # to ld, don't add -lc before -lgcc.
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16659 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16660 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16661 $as_echo_n "(cached) " >&6
16662 else
16663 $RM conftest*
16664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16665
16666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16667 (eval $ac_compile) 2>&5
16668 ac_status=$?
16669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16670 test $ac_status = 0; } 2>conftest.err; then
16671 soname=conftest
16672 lib=conftest
16673 libobjs=conftest.$ac_objext
16674 deplibs=
16675 wl=$lt_prog_compiler_wl
16676 pic_flag=$lt_prog_compiler_pic
16677 compiler_flags=-v
16678 linker_flags=-v
16679 verstring=
16680 output_objdir=.
16681 libname=conftest
16682 lt_save_allow_undefined_flag=$allow_undefined_flag
16683 allow_undefined_flag=
16684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }
16689 then
16690 lt_cv_archive_cmds_need_lc=no
16691 else
16692 lt_cv_archive_cmds_need_lc=yes
16693 fi
16694 allow_undefined_flag=$lt_save_allow_undefined_flag
16695 else
16696 cat conftest.err 1>&5
16697 fi
16698 $RM conftest*
16699
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16702 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16704 ;;
16705 esac
16706 fi
16707 ;;
16708 esac
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16867 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16868
16869 if test "$GCC" = yes; then
16870 case $host_os in
16871 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16872 *) lt_awk_arg="/^libraries:/" ;;
16873 esac
16874 case $host_os in
16875 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16876 *) lt_sed_strip_eq="s,=/,/,g" ;;
16877 esac
16878 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16879 case $lt_search_path_spec in
16880 *\;*)
16881 # if the path contains ";" then we assume it to be the separator
16882 # otherwise default to the standard path separator (i.e. ":") - it is
16883 # assumed that no part of a normal pathname contains ";" but that should
16884 # okay in the real world where ";" in dirpaths is itself problematic.
16885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16886 ;;
16887 *)
16888 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16889 ;;
16890 esac
16891 # Ok, now we have the path, separated by spaces, we can step through it
16892 # and add multilib dir if necessary.
16893 lt_tmp_lt_search_path_spec=
16894 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16895 for lt_sys_path in $lt_search_path_spec; do
16896 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16897 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16898 else
16899 test -d "$lt_sys_path" && \
16900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16901 fi
16902 done
16903 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16904 BEGIN {RS=" "; FS="/|\n";} {
16905 lt_foo="";
16906 lt_count=0;
16907 for (lt_i = NF; lt_i > 0; lt_i--) {
16908 if ($lt_i != "" && $lt_i != ".") {
16909 if ($lt_i == "..") {
16910 lt_count++;
16911 } else {
16912 if (lt_count == 0) {
16913 lt_foo="/" $lt_i lt_foo;
16914 } else {
16915 lt_count--;
16916 }
16917 }
16918 }
16919 }
16920 if (lt_foo != "") { lt_freq[lt_foo]++; }
16921 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16922 }'`
16923 # AWK program above erroneously prepends '/' to C:/dos/paths
16924 # for these hosts.
16925 case $host_os in
16926 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16927 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16928 esac
16929 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16930 else
16931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16932 fi
16933 library_names_spec=
16934 libname_spec='lib$name'
16935 soname_spec=
16936 shrext_cmds=".so"
16937 postinstall_cmds=
16938 postuninstall_cmds=
16939 finish_cmds=
16940 finish_eval=
16941 shlibpath_var=
16942 shlibpath_overrides_runpath=unknown
16943 version_type=none
16944 dynamic_linker="$host_os ld.so"
16945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16946 need_lib_prefix=unknown
16947 hardcode_into_libs=no
16948
16949 # when you set need_version to no, make sure it does not cause -set_version
16950 # flags to be left without arguments
16951 need_version=unknown
16952
16953 case $host_os in
16954 aix3*)
16955 version_type=linux
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16957 shlibpath_var=LIBPATH
16958
16959 # AIX 3 has no versioning support, so we append a major version to the name.
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 ;;
16962
16963 aix[4-9]*)
16964 version_type=linux
16965 need_lib_prefix=no
16966 need_version=no
16967 hardcode_into_libs=yes
16968 if test "$host_cpu" = ia64; then
16969 # AIX 5 supports IA64
16970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 else
16973 # With GCC up to 2.95.x, collect2 would create an import file
16974 # for dependence libraries. The import file would start with
16975 # the line `#! .'. This would cause the generated library to
16976 # depend on `.', always an invalid library. This was fixed in
16977 # development snapshots of GCC prior to 3.0.
16978 case $host_os in
16979 aix4 | aix4.[01] | aix4.[01].*)
16980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16981 echo ' yes '
16982 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16983 :
16984 else
16985 can_build_shared=no
16986 fi
16987 ;;
16988 esac
16989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16990 # soname into executable. Probably we can add versioning support to
16991 # collect2, so additional links can be useful in future.
16992 if test "$aix_use_runtimelinking" = yes; then
16993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16994 # instead of lib<name>.a to let people know that these are not
16995 # typical AIX shared libraries.
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 else
16998 # We preserve .a as extension for shared libraries through AIX4.2
16999 # and later when we are not doing run time linking.
17000 library_names_spec='${libname}${release}.a $libname.a'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 fi
17003 shlibpath_var=LIBPATH
17004 fi
17005 ;;
17006
17007 amigaos*)
17008 case $host_cpu in
17009 powerpc)
17010 # Since July 2007 AmigaOS4 officially supports .so libraries.
17011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 ;;
17014 m68k)
17015 library_names_spec='$libname.ixlibrary $libname.a'
17016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17017 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'
17018 ;;
17019 esac
17020 ;;
17021
17022 beos*)
17023 library_names_spec='${libname}${shared_ext}'
17024 dynamic_linker="$host_os ld.so"
17025 shlibpath_var=LIBRARY_PATH
17026 ;;
17027
17028 bsdi[45]*)
17029 version_type=linux
17030 need_version=no
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17037 # the default ld.so.conf also contains /usr/contrib/lib and
17038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17039 # libtool to hard-code these into programs
17040 ;;
17041
17042 cygwin* | mingw* | pw32* | cegcc*)
17043 version_type=windows
17044 shrext_cmds=".dll"
17045 need_version=no
17046 need_lib_prefix=no
17047
17048 case $GCC,$host_os in
17049 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17050 library_names_spec='$libname.dll.a'
17051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17052 postinstall_cmds='base_file=`basename \${file}`~
17053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17054 dldir=$destdir/`dirname \$dlpath`~
17055 test -d \$dldir || mkdir -p \$dldir~
17056 $install_prog $dir/$dlname \$dldir/$dlname~
17057 chmod a+x \$dldir/$dlname~
17058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17060 fi'
17061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17062 dlpath=$dir/\$dldll~
17063 $RM \$dlpath'
17064 shlibpath_overrides_runpath=yes
17065
17066 case $host_os in
17067 cygwin*)
17068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17070
17071 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17072 ;;
17073 mingw* | cegcc*)
17074 # MinGW DLLs use traditional 'lib' prefix
17075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 ;;
17077 pw32*)
17078 # pw32 DLLs use 'pw' prefix rather than 'lib'
17079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17080 ;;
17081 esac
17082 ;;
17083
17084 *)
17085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17086 ;;
17087 esac
17088 dynamic_linker='Win32 ld.exe'
17089 # FIXME: first we should search . and the directory the executable is in
17090 shlibpath_var=PATH
17091 ;;
17092
17093 darwin* | rhapsody*)
17094 dynamic_linker="$host_os dyld"
17095 version_type=darwin
17096 need_lib_prefix=no
17097 need_version=no
17098 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17099 soname_spec='${libname}${release}${major}$shared_ext'
17100 shlibpath_overrides_runpath=yes
17101 shlibpath_var=DYLD_LIBRARY_PATH
17102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17103
17104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17106 ;;
17107
17108 dgux*)
17109 version_type=linux
17110 need_lib_prefix=no
17111 need_version=no
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 ;;
17116
17117 freebsd* | dragonfly*)
17118 # DragonFly does not have aout. When/if they implement a new
17119 # versioning mechanism, adjust this.
17120 if test -x /usr/bin/objformat; then
17121 objformat=`/usr/bin/objformat`
17122 else
17123 case $host_os in
17124 freebsd[23].*) objformat=aout ;;
17125 *) objformat=elf ;;
17126 esac
17127 fi
17128 version_type=freebsd-$objformat
17129 case $version_type in
17130 freebsd-elf*)
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17132 need_version=no
17133 need_lib_prefix=no
17134 ;;
17135 freebsd-*)
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17137 need_version=yes
17138 ;;
17139 esac
17140 shlibpath_var=LD_LIBRARY_PATH
17141 case $host_os in
17142 freebsd2.*)
17143 shlibpath_overrides_runpath=yes
17144 ;;
17145 freebsd3.[01]* | freebsdelf3.[01]*)
17146 shlibpath_overrides_runpath=yes
17147 hardcode_into_libs=yes
17148 ;;
17149 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17150 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17151 shlibpath_overrides_runpath=no
17152 hardcode_into_libs=yes
17153 ;;
17154 *) # from 4.6 on, and DragonFly
17155 shlibpath_overrides_runpath=yes
17156 hardcode_into_libs=yes
17157 ;;
17158 esac
17159 ;;
17160
17161 gnu*)
17162 version_type=linux
17163 need_lib_prefix=no
17164 need_version=no
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 hardcode_into_libs=yes
17169 ;;
17170
17171 haiku*)
17172 version_type=linux
17173 need_lib_prefix=no
17174 need_version=no
17175 dynamic_linker="$host_os runtime_loader"
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LIBRARY_PATH
17179 shlibpath_overrides_runpath=yes
17180 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17181 hardcode_into_libs=yes
17182 ;;
17183
17184 hpux9* | hpux10* | hpux11*)
17185 # Give a soname corresponding to the major version so that dld.sl refuses to
17186 # link against other versions.
17187 version_type=sunos
17188 need_lib_prefix=no
17189 need_version=no
17190 case $host_cpu in
17191 ia64*)
17192 shrext_cmds='.so'
17193 hardcode_into_libs=yes
17194 dynamic_linker="$host_os dld.so"
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 if test "X$HPUX_IA64_MODE" = X32; then
17200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17201 else
17202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17203 fi
17204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17205 ;;
17206 hppa*64*)
17207 shrext_cmds='.sl'
17208 hardcode_into_libs=yes
17209 dynamic_linker="$host_os dld.sl"
17210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17216 ;;
17217 *)
17218 shrext_cmds='.sl'
17219 dynamic_linker="$host_os dld.sl"
17220 shlibpath_var=SHLIB_PATH
17221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 ;;
17225 esac
17226 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17227 postinstall_cmds='chmod 555 $lib'
17228 # or fails outright, so override atomically:
17229 install_override_mode=555
17230 ;;
17231
17232 interix[3-9]*)
17233 version_type=linux
17234 need_lib_prefix=no
17235 need_version=no
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=no
17241 hardcode_into_libs=yes
17242 ;;
17243
17244 irix5* | irix6* | nonstopux*)
17245 case $host_os in
17246 nonstopux*) version_type=nonstopux ;;
17247 *)
17248 if test "$lt_cv_prog_gnu_ld" = yes; then
17249 version_type=linux
17250 else
17251 version_type=irix
17252 fi ;;
17253 esac
17254 need_lib_prefix=no
17255 need_version=no
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17258 case $host_os in
17259 irix5* | nonstopux*)
17260 libsuff= shlibsuff=
17261 ;;
17262 *)
17263 case $LD in # libtool.m4 will add one of these switches to LD
17264 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17265 libsuff= shlibsuff= libmagic=32-bit;;
17266 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17267 libsuff=32 shlibsuff=N32 libmagic=N32;;
17268 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17269 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17270 *) libsuff= shlibsuff= libmagic=never-match;;
17271 esac
17272 ;;
17273 esac
17274 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17275 shlibpath_overrides_runpath=no
17276 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17277 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17278 hardcode_into_libs=yes
17279 ;;
17280
17281 # No shared lib support for Linux oldld, aout, or coff.
17282 linux*oldld* | linux*aout* | linux*coff*)
17283 dynamic_linker=no
17284 ;;
17285
17286 # This must be Linux ELF.
17287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17288 version_type=linux
17289 need_lib_prefix=no
17290 need_version=no
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=no
17296
17297 # Some binutils ld are patched to set DT_RUNPATH
17298 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17299 $as_echo_n "(cached) " >&6
17300 else
17301 lt_cv_shlibpath_overrides_runpath=no
17302 save_LDFLAGS=$LDFLAGS
17303 save_libdir=$libdir
17304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17308
17309 int
17310 main ()
17311 {
17312
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 if ac_fn_c_try_link "$LINENO"; then :
17318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17319 lt_cv_shlibpath_overrides_runpath=yes
17320 fi
17321 fi
17322 rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17324 LDFLAGS=$save_LDFLAGS
17325 libdir=$save_libdir
17326
17327 fi
17328
17329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17330
17331 # This implies no fast_install, which is unacceptable.
17332 # Some rework will be needed to allow for fast_install
17333 # before this can be enabled.
17334 hardcode_into_libs=yes
17335
17336 # Append ld.so.conf contents to the search path
17337 if test -f /etc/ld.so.conf; then
17338 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' ' '`
17339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17340 fi
17341
17342 # We used to test for /lib/ld.so.1 and disable shared libraries on
17343 # powerpc, because MkLinux only supported shared libraries with the
17344 # GNU dynamic linker. Since this was broken with cross compilers,
17345 # most powerpc-linux boxes support dynamic linking these days and
17346 # people can always --disable-shared, the test was removed, and we
17347 # assume the GNU/Linux dynamic linker is in use.
17348 dynamic_linker='GNU/Linux ld.so'
17349 ;;
17350
17351 netbsd*)
17352 version_type=sunos
17353 need_lib_prefix=no
17354 need_version=no
17355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17358 dynamic_linker='NetBSD (a.out) ld.so'
17359 else
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 dynamic_linker='NetBSD ld.elf_so'
17363 fi
17364 shlibpath_var=LD_LIBRARY_PATH
17365 shlibpath_overrides_runpath=yes
17366 hardcode_into_libs=yes
17367 ;;
17368
17369 newsos6)
17370 version_type=linux
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=yes
17374 ;;
17375
17376 *nto* | *qnx*)
17377 version_type=qnx
17378 need_lib_prefix=no
17379 need_version=no
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=no
17384 hardcode_into_libs=yes
17385 dynamic_linker='ldqnx.so'
17386 ;;
17387
17388 openbsd*)
17389 version_type=sunos
17390 sys_lib_dlsearch_path_spec="/usr/lib"
17391 need_lib_prefix=no
17392 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17393 case $host_os in
17394 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17395 *) need_version=no ;;
17396 esac
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17401 case $host_os in
17402 openbsd2.[89] | openbsd2.[89].*)
17403 shlibpath_overrides_runpath=no
17404 ;;
17405 *)
17406 shlibpath_overrides_runpath=yes
17407 ;;
17408 esac
17409 else
17410 shlibpath_overrides_runpath=yes
17411 fi
17412 ;;
17413
17414 os2*)
17415 libname_spec='$name'
17416 shrext_cmds=".dll"
17417 need_lib_prefix=no
17418 library_names_spec='$libname${shared_ext} $libname.a'
17419 dynamic_linker='OS/2 ld.exe'
17420 shlibpath_var=LIBPATH
17421 ;;
17422
17423 osf3* | osf4* | osf5*)
17424 version_type=osf
17425 need_lib_prefix=no
17426 need_version=no
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 shlibpath_var=LD_LIBRARY_PATH
17430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17431 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17432 ;;
17433
17434 rdos*)
17435 dynamic_linker=no
17436 ;;
17437
17438 solaris*)
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 hardcode_into_libs=yes
17447 # ldd complains unless libraries are executable
17448 postinstall_cmds='chmod +x $lib'
17449 ;;
17450
17451 sunos4*)
17452 version_type=sunos
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=yes
17457 if test "$with_gnu_ld" = yes; then
17458 need_lib_prefix=no
17459 fi
17460 need_version=yes
17461 ;;
17462
17463 sysv4 | sysv4.3*)
17464 version_type=linux
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 case $host_vendor in
17469 sni)
17470 shlibpath_overrides_runpath=no
17471 need_lib_prefix=no
17472 runpath_var=LD_RUN_PATH
17473 ;;
17474 siemens)
17475 need_lib_prefix=no
17476 ;;
17477 motorola)
17478 need_lib_prefix=no
17479 need_version=no
17480 shlibpath_overrides_runpath=no
17481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17482 ;;
17483 esac
17484 ;;
17485
17486 sysv4*MP*)
17487 if test -d /usr/nec ;then
17488 version_type=linux
17489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17490 soname_spec='$libname${shared_ext}.$major'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 fi
17493 ;;
17494
17495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17496 version_type=freebsd-elf
17497 need_lib_prefix=no
17498 need_version=no
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17504 if test "$with_gnu_ld" = yes; then
17505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17506 else
17507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17508 case $host_os in
17509 sco3.2v5*)
17510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17511 ;;
17512 esac
17513 fi
17514 sys_lib_dlsearch_path_spec='/usr/lib'
17515 ;;
17516
17517 tpf*)
17518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17519 version_type=linux
17520 need_lib_prefix=no
17521 need_version=no
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=no
17525 hardcode_into_libs=yes
17526 ;;
17527
17528 uts4*)
17529 version_type=linux
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 ;;
17534
17535 *)
17536 dynamic_linker=no
17537 ;;
17538 esac
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17540 $as_echo "$dynamic_linker" >&6; }
17541 test "$dynamic_linker" = no && can_build_shared=no
17542
17543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17544 if test "$GCC" = yes; then
17545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17546 fi
17547
17548 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17549 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17550 fi
17551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17552 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17553 fi
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17648 hardcode_action=
17649 if test -n "$hardcode_libdir_flag_spec" ||
17650 test -n "$runpath_var" ||
17651 test "X$hardcode_automatic" = "Xyes" ; then
17652
17653 # We can hardcode non-existent directories.
17654 if test "$hardcode_direct" != no &&
17655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17656 # have to relink, otherwise we might link with an installed library
17657 # when we should be linking with a yet-to-be-installed one
17658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17659 test "$hardcode_minus_L" != no; then
17660 # Linking always hardcodes the temporary library directory.
17661 hardcode_action=relink
17662 else
17663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17664 hardcode_action=immediate
17665 fi
17666 else
17667 # We cannot hardcode anything, or else we can only hardcode existing
17668 # directories.
17669 hardcode_action=unsupported
17670 fi
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17672 $as_echo "$hardcode_action" >&6; }
17673
17674 if test "$hardcode_action" = relink ||
17675 test "$inherit_rpath" = yes; then
17676 # Fast installation is not supported
17677 enable_fast_install=no
17678 elif test "$shlibpath_overrides_runpath" = yes ||
17679 test "$enable_shared" = no; then
17680 # Fast installation is not necessary
17681 enable_fast_install=needless
17682 fi
17683
17684
17685
17686
17687
17688
17689 if test "x$enable_dlopen" != xyes; then
17690 enable_dlopen=unknown
17691 enable_dlopen_self=unknown
17692 enable_dlopen_self_static=unknown
17693 else
17694 lt_cv_dlopen=no
17695 lt_cv_dlopen_libs=
17696
17697 case $host_os in
17698 beos*)
17699 lt_cv_dlopen="load_add_on"
17700 lt_cv_dlopen_libs=
17701 lt_cv_dlopen_self=yes
17702 ;;
17703
17704 mingw* | pw32* | cegcc*)
17705 lt_cv_dlopen="LoadLibrary"
17706 lt_cv_dlopen_libs=
17707 ;;
17708
17709 cygwin*)
17710 lt_cv_dlopen="dlopen"
17711 lt_cv_dlopen_libs=
17712 ;;
17713
17714 darwin*)
17715 # if libdl is installed we need to link against it
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17720 else
17721 ac_check_lib_save_LIBS=$LIBS
17722 LIBS="-ldl $LIBS"
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725
17726 /* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 char dlopen ();
17733 int
17734 main ()
17735 {
17736 return dlopen ();
17737 ;
17738 return 0;
17739 }
17740 _ACEOF
17741 if ac_fn_c_try_link "$LINENO"; then :
17742 ac_cv_lib_dl_dlopen=yes
17743 else
17744 ac_cv_lib_dl_dlopen=no
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17749 fi
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17751 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17752 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17754 else
17755
17756 lt_cv_dlopen="dyld"
17757 lt_cv_dlopen_libs=
17758 lt_cv_dlopen_self=yes
17759
17760 fi
17761
17762 ;;
17763
17764 *)
17765 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17766 if test "x$ac_cv_func_shl_load" = x""yes; then :
17767 lt_cv_dlopen="shl_load"
17768 else
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17770 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17771 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17773 else
17774 ac_check_lib_save_LIBS=$LIBS
17775 LIBS="-ldld $LIBS"
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17778
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char shl_load ();
17786 int
17787 main ()
17788 {
17789 return shl_load ();
17790 ;
17791 return 0;
17792 }
17793 _ACEOF
17794 if ac_fn_c_try_link "$LINENO"; then :
17795 ac_cv_lib_dld_shl_load=yes
17796 else
17797 ac_cv_lib_dld_shl_load=no
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17802 fi
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17804 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17805 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17807 else
17808 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17809 if test "x$ac_cv_func_dlopen" = x""yes; then :
17810 lt_cv_dlopen="dlopen"
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17815 $as_echo_n "(cached) " >&6
17816 else
17817 ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-ldl $LIBS"
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h. */
17821
17822 /* Override any GCC internal prototype to avoid an error.
17823 Use char because int might match the return type of a GCC
17824 builtin and then its argument prototype would still apply. */
17825 #ifdef __cplusplus
17826 extern "C"
17827 #endif
17828 char dlopen ();
17829 int
17830 main ()
17831 {
17832 return dlopen ();
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 if ac_fn_c_try_link "$LINENO"; then :
17838 ac_cv_lib_dl_dlopen=yes
17839 else
17840 ac_cv_lib_dl_dlopen=no
17841 fi
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17845 fi
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17848 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17850 else
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17852 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17853 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17854 $as_echo_n "(cached) " >&6
17855 else
17856 ac_check_lib_save_LIBS=$LIBS
17857 LIBS="-lsvld $LIBS"
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 char dlopen ();
17868 int
17869 main ()
17870 {
17871 return dlopen ();
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_link "$LINENO"; then :
17877 ac_cv_lib_svld_dlopen=yes
17878 else
17879 ac_cv_lib_svld_dlopen=no
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext \
17882 conftest$ac_exeext conftest.$ac_ext
17883 LIBS=$ac_check_lib_save_LIBS
17884 fi
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17887 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17889 else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17892 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17893 $as_echo_n "(cached) " >&6
17894 else
17895 ac_check_lib_save_LIBS=$LIBS
17896 LIBS="-ldld $LIBS"
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17899
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char dld_link ();
17907 int
17908 main ()
17909 {
17910 return dld_link ();
17911 ;
17912 return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 ac_cv_lib_dld_dld_link=yes
17917 else
17918 ac_cv_lib_dld_dld_link=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17923 fi
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17925 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17926 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17927 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17928 fi
17929
17930
17931 fi
17932
17933
17934 fi
17935
17936
17937 fi
17938
17939
17940 fi
17941
17942
17943 fi
17944
17945 ;;
17946 esac
17947
17948 if test "x$lt_cv_dlopen" != xno; then
17949 enable_dlopen=yes
17950 else
17951 enable_dlopen=no
17952 fi
17953
17954 case $lt_cv_dlopen in
17955 dlopen)
17956 save_CPPFLAGS="$CPPFLAGS"
17957 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17958
17959 save_LDFLAGS="$LDFLAGS"
17960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17961
17962 save_LIBS="$LIBS"
17963 LIBS="$lt_cv_dlopen_libs $LIBS"
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17966 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17967 if test "${lt_cv_dlopen_self+set}" = set; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970 if test "$cross_compiling" = yes; then :
17971 lt_cv_dlopen_self=cross
17972 else
17973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17974 lt_status=$lt_dlunknown
17975 cat > conftest.$ac_ext <<_LT_EOF
17976 #line 17975 "configure"
17977 #include "confdefs.h"
17978
17979 #if HAVE_DLFCN_H
17980 #include <dlfcn.h>
17981 #endif
17982
17983 #include <stdio.h>
17984
17985 #ifdef RTLD_GLOBAL
17986 # define LT_DLGLOBAL RTLD_GLOBAL
17987 #else
17988 # ifdef DL_GLOBAL
17989 # define LT_DLGLOBAL DL_GLOBAL
17990 # else
17991 # define LT_DLGLOBAL 0
17992 # endif
17993 #endif
17994
17995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17996 find out it does not work in some platform. */
17997 #ifndef LT_DLLAZY_OR_NOW
17998 # ifdef RTLD_LAZY
17999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18000 # else
18001 # ifdef DL_LAZY
18002 # define LT_DLLAZY_OR_NOW DL_LAZY
18003 # else
18004 # ifdef RTLD_NOW
18005 # define LT_DLLAZY_OR_NOW RTLD_NOW
18006 # else
18007 # ifdef DL_NOW
18008 # define LT_DLLAZY_OR_NOW DL_NOW
18009 # else
18010 # define LT_DLLAZY_OR_NOW 0
18011 # endif
18012 # endif
18013 # endif
18014 # endif
18015 #endif
18016
18017 /* When -fvisbility=hidden is used, assume the code has been annotated
18018 correspondingly for the symbols needed. */
18019 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18020 void fnord () __attribute__((visibility("default")));
18021 #endif
18022
18023 void fnord () { int i=42; }
18024 int main ()
18025 {
18026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18027 int status = $lt_dlunknown;
18028
18029 if (self)
18030 {
18031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18032 else
18033 {
18034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18035 else puts (dlerror ());
18036 }
18037 /* dlclose (self); */
18038 }
18039 else
18040 puts (dlerror ());
18041
18042 return status;
18043 }
18044 _LT_EOF
18045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18046 (eval $ac_link) 2>&5
18047 ac_status=$?
18048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18049 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18050 (./conftest; exit; ) >&5 2>/dev/null
18051 lt_status=$?
18052 case x$lt_status in
18053 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18054 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18055 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18056 esac
18057 else :
18058 # compilation failed
18059 lt_cv_dlopen_self=no
18060 fi
18061 fi
18062 rm -fr conftest*
18063
18064
18065 fi
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18067 $as_echo "$lt_cv_dlopen_self" >&6; }
18068
18069 if test "x$lt_cv_dlopen_self" = xyes; then
18070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18072 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18073 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18074 $as_echo_n "(cached) " >&6
18075 else
18076 if test "$cross_compiling" = yes; then :
18077 lt_cv_dlopen_self_static=cross
18078 else
18079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18080 lt_status=$lt_dlunknown
18081 cat > conftest.$ac_ext <<_LT_EOF
18082 #line 18081 "configure"
18083 #include "confdefs.h"
18084
18085 #if HAVE_DLFCN_H
18086 #include <dlfcn.h>
18087 #endif
18088
18089 #include <stdio.h>
18090
18091 #ifdef RTLD_GLOBAL
18092 # define LT_DLGLOBAL RTLD_GLOBAL
18093 #else
18094 # ifdef DL_GLOBAL
18095 # define LT_DLGLOBAL DL_GLOBAL
18096 # else
18097 # define LT_DLGLOBAL 0
18098 # endif
18099 #endif
18100
18101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18102 find out it does not work in some platform. */
18103 #ifndef LT_DLLAZY_OR_NOW
18104 # ifdef RTLD_LAZY
18105 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18106 # else
18107 # ifdef DL_LAZY
18108 # define LT_DLLAZY_OR_NOW DL_LAZY
18109 # else
18110 # ifdef RTLD_NOW
18111 # define LT_DLLAZY_OR_NOW RTLD_NOW
18112 # else
18113 # ifdef DL_NOW
18114 # define LT_DLLAZY_OR_NOW DL_NOW
18115 # else
18116 # define LT_DLLAZY_OR_NOW 0
18117 # endif
18118 # endif
18119 # endif
18120 # endif
18121 #endif
18122
18123 /* When -fvisbility=hidden is used, assume the code has been annotated
18124 correspondingly for the symbols needed. */
18125 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18126 void fnord () __attribute__((visibility("default")));
18127 #endif
18128
18129 void fnord () { int i=42; }
18130 int main ()
18131 {
18132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18133 int status = $lt_dlunknown;
18134
18135 if (self)
18136 {
18137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18138 else
18139 {
18140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18141 else puts (dlerror ());
18142 }
18143 /* dlclose (self); */
18144 }
18145 else
18146 puts (dlerror ());
18147
18148 return status;
18149 }
18150 _LT_EOF
18151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18152 (eval $ac_link) 2>&5
18153 ac_status=$?
18154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18156 (./conftest; exit; ) >&5 2>/dev/null
18157 lt_status=$?
18158 case x$lt_status in
18159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18162 esac
18163 else :
18164 # compilation failed
18165 lt_cv_dlopen_self_static=no
18166 fi
18167 fi
18168 rm -fr conftest*
18169
18170
18171 fi
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18173 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18174 fi
18175
18176 CPPFLAGS="$save_CPPFLAGS"
18177 LDFLAGS="$save_LDFLAGS"
18178 LIBS="$save_LIBS"
18179 ;;
18180 esac
18181
18182 case $lt_cv_dlopen_self in
18183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18184 *) enable_dlopen_self=unknown ;;
18185 esac
18186
18187 case $lt_cv_dlopen_self_static in
18188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18189 *) enable_dlopen_self_static=unknown ;;
18190 esac
18191 fi
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209 striplib=
18210 old_striplib=
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18213 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18214 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18215 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18217 $as_echo "yes" >&6; }
18218 else
18219 # FIXME - insert some real tests, host_os isn't really good enough
18220 case $host_os in
18221 darwin*)
18222 if test -n "$STRIP" ; then
18223 striplib="$STRIP -x"
18224 old_striplib="$STRIP -S"
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18226 $as_echo "yes" >&6; }
18227 else
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 $as_echo "no" >&6; }
18230 fi
18231 ;;
18232 *)
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234 $as_echo "no" >&6; }
18235 ;;
18236 esac
18237 fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250 # Report which library types will actually be built
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18252 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18254 $as_echo "$can_build_shared" >&6; }
18255
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18257 $as_echo_n "checking whether to build shared libraries... " >&6; }
18258 test "$can_build_shared" = "no" && enable_shared=no
18259
18260 # On AIX, shared libraries and static libraries use the same namespace, and
18261 # are all built from PIC.
18262 case $host_os in
18263 aix3*)
18264 test "$enable_shared" = yes && enable_static=no
18265 if test -n "$RANLIB"; then
18266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18267 postinstall_cmds='$RANLIB $lib'
18268 fi
18269 ;;
18270
18271 aix[4-9]*)
18272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18273 test "$enable_shared" = yes && enable_static=no
18274 fi
18275 ;;
18276 esac
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18278 $as_echo "$enable_shared" >&6; }
18279
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18281 $as_echo_n "checking whether to build static libraries... " >&6; }
18282 # Make sure either enable_shared or enable_static is yes.
18283 test "$enable_shared" = yes || enable_static=yes
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18285 $as_echo "$enable_static" >&6; }
18286
18287
18288
18289
18290 fi
18291 ac_ext=c
18292 ac_cpp='$CPP $CPPFLAGS'
18293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18296
18297 CC="$lt_save_CC"
18298
18299 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18300 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18301 (test "X$CXX" != "Xg++"))) ; then
18302 ac_ext=cpp
18303 ac_cpp='$CXXCPP $CPPFLAGS'
18304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18308 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18309 if test -z "$CXXCPP"; then
18310 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18311 $as_echo_n "(cached) " >&6
18312 else
18313 # Double quotes because CXXCPP needs to be expanded
18314 for CXXCPP in "$CXX -E" "/lib/cpp"
18315 do
18316 ac_preproc_ok=false
18317 for ac_cxx_preproc_warn_flag in '' yes
18318 do
18319 # Use a header file that comes with gcc, so configuring glibc
18320 # with a fresh cross-compiler works.
18321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18322 # <limits.h> exists even on freestanding compilers.
18323 # On the NeXT, cc -E runs the code through the compiler's parser,
18324 # not just through cpp. "Syntax error" is here to catch this case.
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18327 #ifdef __STDC__
18328 # include <limits.h>
18329 #else
18330 # include <assert.h>
18331 #endif
18332 Syntax error
18333 _ACEOF
18334 if ac_fn_cxx_try_cpp "$LINENO"; then :
18335
18336 else
18337 # Broken: fails on valid input.
18338 continue
18339 fi
18340 rm -f conftest.err conftest.$ac_ext
18341
18342 # OK, works on sane cases. Now check whether nonexistent headers
18343 # can be detected and how.
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 #include <ac_nonexistent.h>
18347 _ACEOF
18348 if ac_fn_cxx_try_cpp "$LINENO"; then :
18349 # Broken: success on invalid input.
18350 continue
18351 else
18352 # Passes both tests.
18353 ac_preproc_ok=:
18354 break
18355 fi
18356 rm -f conftest.err conftest.$ac_ext
18357
18358 done
18359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18360 rm -f conftest.err conftest.$ac_ext
18361 if $ac_preproc_ok; then :
18362 break
18363 fi
18364
18365 done
18366 ac_cv_prog_CXXCPP=$CXXCPP
18367
18368 fi
18369 CXXCPP=$ac_cv_prog_CXXCPP
18370 else
18371 ac_cv_prog_CXXCPP=$CXXCPP
18372 fi
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18374 $as_echo "$CXXCPP" >&6; }
18375 ac_preproc_ok=false
18376 for ac_cxx_preproc_warn_flag in '' yes
18377 do
18378 # Use a header file that comes with gcc, so configuring glibc
18379 # with a fresh cross-compiler works.
18380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18381 # <limits.h> exists even on freestanding compilers.
18382 # On the NeXT, cc -E runs the code through the compiler's parser,
18383 # not just through cpp. "Syntax error" is here to catch this case.
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #ifdef __STDC__
18387 # include <limits.h>
18388 #else
18389 # include <assert.h>
18390 #endif
18391 Syntax error
18392 _ACEOF
18393 if ac_fn_cxx_try_cpp "$LINENO"; then :
18394
18395 else
18396 # Broken: fails on valid input.
18397 continue
18398 fi
18399 rm -f conftest.err conftest.$ac_ext
18400
18401 # OK, works on sane cases. Now check whether nonexistent headers
18402 # can be detected and how.
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405 #include <ac_nonexistent.h>
18406 _ACEOF
18407 if ac_fn_cxx_try_cpp "$LINENO"; then :
18408 # Broken: success on invalid input.
18409 continue
18410 else
18411 # Passes both tests.
18412 ac_preproc_ok=:
18413 break
18414 fi
18415 rm -f conftest.err conftest.$ac_ext
18416
18417 done
18418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18419 rm -f conftest.err conftest.$ac_ext
18420 if $ac_preproc_ok; then :
18421
18422 else
18423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18425 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18426 See \`config.log' for more details." "$LINENO" 5; }
18427 fi
18428
18429 ac_ext=c
18430 ac_cpp='$CPP $CPPFLAGS'
18431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18434
18435 else
18436 _lt_caught_CXX_error=yes
18437 fi
18438
18439 ac_ext=cpp
18440 ac_cpp='$CXXCPP $CPPFLAGS'
18441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18444
18445 archive_cmds_need_lc_CXX=no
18446 allow_undefined_flag_CXX=
18447 always_export_symbols_CXX=no
18448 archive_expsym_cmds_CXX=
18449 compiler_needs_object_CXX=no
18450 export_dynamic_flag_spec_CXX=
18451 hardcode_direct_CXX=no
18452 hardcode_direct_absolute_CXX=no
18453 hardcode_libdir_flag_spec_CXX=
18454 hardcode_libdir_flag_spec_ld_CXX=
18455 hardcode_libdir_separator_CXX=
18456 hardcode_minus_L_CXX=no
18457 hardcode_shlibpath_var_CXX=unsupported
18458 hardcode_automatic_CXX=no
18459 inherit_rpath_CXX=no
18460 module_cmds_CXX=
18461 module_expsym_cmds_CXX=
18462 link_all_deplibs_CXX=unknown
18463 old_archive_cmds_CXX=$old_archive_cmds
18464 reload_flag_CXX=$reload_flag
18465 reload_cmds_CXX=$reload_cmds
18466 no_undefined_flag_CXX=
18467 whole_archive_flag_spec_CXX=
18468 enable_shared_with_static_runtimes_CXX=no
18469
18470 # Source file extension for C++ test sources.
18471 ac_ext=cpp
18472
18473 # Object file extension for compiled C++ test sources.
18474 objext=o
18475 objext_CXX=$objext
18476
18477 # No sense in running all these tests if we already determined that
18478 # the CXX compiler isn't working. Some variables (like enable_shared)
18479 # are currently assumed to apply to all compilers on this platform,
18480 # and will be corrupted by setting them based on a non-working compiler.
18481 if test "$_lt_caught_CXX_error" != yes; then
18482 # Code to be used in simple compile tests
18483 lt_simple_compile_test_code="int some_variable = 0;"
18484
18485 # Code to be used in simple link tests
18486 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18487
18488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18489
18490
18491
18492
18493
18494
18495 # If no C compiler was specified, use CC.
18496 LTCC=${LTCC-"$CC"}
18497
18498 # If no C compiler flags were specified, use CFLAGS.
18499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18500
18501 # Allow CC to be a program name with arguments.
18502 compiler=$CC
18503
18504
18505 # save warnings/boilerplate of simple test code
18506 ac_outfile=conftest.$ac_objext
18507 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18509 _lt_compiler_boilerplate=`cat conftest.err`
18510 $RM conftest*
18511
18512 ac_outfile=conftest.$ac_objext
18513 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18515 _lt_linker_boilerplate=`cat conftest.err`
18516 $RM -r conftest*
18517
18518
18519 # Allow CC to be a program name with arguments.
18520 lt_save_CC=$CC
18521 lt_save_LD=$LD
18522 lt_save_GCC=$GCC
18523 GCC=$GXX
18524 lt_save_with_gnu_ld=$with_gnu_ld
18525 lt_save_path_LD=$lt_cv_path_LD
18526 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18527 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18528 else
18529 $as_unset lt_cv_prog_gnu_ld
18530 fi
18531 if test -n "${lt_cv_path_LDCXX+set}"; then
18532 lt_cv_path_LD=$lt_cv_path_LDCXX
18533 else
18534 $as_unset lt_cv_path_LD
18535 fi
18536 test -z "${LDCXX+set}" || LD=$LDCXX
18537 CC=${CXX-"c++"}
18538 compiler=$CC
18539 compiler_CXX=$CC
18540 for cc_temp in $compiler""; do
18541 case $cc_temp in
18542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18544 \-*) ;;
18545 *) break;;
18546 esac
18547 done
18548 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18549
18550
18551 if test -n "$compiler"; then
18552 # We don't want -fno-exception when compiling C++ code, so set the
18553 # no_builtin_flag separately
18554 if test "$GXX" = yes; then
18555 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18556 else
18557 lt_prog_compiler_no_builtin_flag_CXX=
18558 fi
18559
18560 if test "$GXX" = yes; then
18561 # Set up default GNU C++ configuration
18562
18563
18564
18565 # Check whether --with-gnu-ld was given.
18566 if test "${with_gnu_ld+set}" = set; then :
18567 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18568 else
18569 with_gnu_ld=no
18570 fi
18571
18572 ac_prog=ld
18573 if test "$GCC" = yes; then
18574 # Check if gcc -print-prog-name=ld gives a path.
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18576 $as_echo_n "checking for ld used by $CC... " >&6; }
18577 case $host in
18578 *-*-mingw*)
18579 # gcc leaves a trailing carriage return which upsets mingw
18580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18581 *)
18582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18583 esac
18584 case $ac_prog in
18585 # Accept absolute paths.
18586 [\\/]* | ?:[\\/]*)
18587 re_direlt='/[^/][^/]*/\.\./'
18588 # Canonicalize the pathname of ld
18589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18592 done
18593 test -z "$LD" && LD="$ac_prog"
18594 ;;
18595 "")
18596 # If it fails, then pretend we aren't using GCC.
18597 ac_prog=ld
18598 ;;
18599 *)
18600 # If it is relative, then search for the first ld in PATH.
18601 with_gnu_ld=unknown
18602 ;;
18603 esac
18604 elif test "$with_gnu_ld" = yes; then
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18606 $as_echo_n "checking for GNU ld... " >&6; }
18607 else
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18609 $as_echo_n "checking for non-GNU ld... " >&6; }
18610 fi
18611 if test "${lt_cv_path_LD+set}" = set; then :
18612 $as_echo_n "(cached) " >&6
18613 else
18614 if test -z "$LD"; then
18615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18616 for ac_dir in $PATH; do
18617 IFS="$lt_save_ifs"
18618 test -z "$ac_dir" && ac_dir=.
18619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18620 lt_cv_path_LD="$ac_dir/$ac_prog"
18621 # Check to see if the program is GNU ld. I'd rather use --version,
18622 # but apparently some variants of GNU ld only accept -v.
18623 # Break only if it was the GNU/non-GNU ld that we prefer.
18624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18625 *GNU* | *'with BFD'*)
18626 test "$with_gnu_ld" != no && break
18627 ;;
18628 *)
18629 test "$with_gnu_ld" != yes && break
18630 ;;
18631 esac
18632 fi
18633 done
18634 IFS="$lt_save_ifs"
18635 else
18636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18637 fi
18638 fi
18639
18640 LD="$lt_cv_path_LD"
18641 if test -n "$LD"; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18643 $as_echo "$LD" >&6; }
18644 else
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18651 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18652 $as_echo_n "(cached) " >&6
18653 else
18654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18655 case `$LD -v 2>&1 </dev/null` in
18656 *GNU* | *'with BFD'*)
18657 lt_cv_prog_gnu_ld=yes
18658 ;;
18659 *)
18660 lt_cv_prog_gnu_ld=no
18661 ;;
18662 esac
18663 fi
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18665 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18666 with_gnu_ld=$lt_cv_prog_gnu_ld
18667
18668
18669
18670
18671
18672
18673
18674 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18675 # archiving commands below assume that GNU ld is being used.
18676 if test "$with_gnu_ld" = yes; then
18677 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18678 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'
18679
18680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682
18683 # If archive_cmds runs LD, not CC, wlarc should be empty
18684 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18685 # investigate it a little bit more. (MM)
18686 wlarc='${wl}'
18687
18688 # ancient GNU ld didn't support --whole-archive et. al.
18689 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18690 $GREP 'no-whole-archive' > /dev/null; then
18691 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18692 else
18693 whole_archive_flag_spec_CXX=
18694 fi
18695 else
18696 with_gnu_ld=no
18697 wlarc=
18698
18699 # A generic and very simple default shared library creation
18700 # command for GNU C++ for the case where it uses the native
18701 # linker, instead of GNU ld. If possible, this setting should
18702 # overridden to take advantage of the native linker features on
18703 # the platform it is being used on.
18704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18705 fi
18706
18707 # Commands to make compiler produce verbose output that lists
18708 # what "hidden" libraries, object files and flags are used when
18709 # linking a shared library.
18710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18711
18712 else
18713 GXX=no
18714 with_gnu_ld=no
18715 wlarc=
18716 fi
18717
18718 # PORTME: fill in a description of your system's C++ link characteristics
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18721 ld_shlibs_CXX=yes
18722 case $host_os in
18723 aix3*)
18724 # FIXME: insert proper C++ library support
18725 ld_shlibs_CXX=no
18726 ;;
18727 aix[4-9]*)
18728 if test "$host_cpu" = ia64; then
18729 # On IA64, the linker does run time linking by default, so we don't
18730 # have to do anything special.
18731 aix_use_runtimelinking=no
18732 exp_sym_flag='-Bexport'
18733 no_entry_flag=""
18734 else
18735 aix_use_runtimelinking=no
18736
18737 # Test if we are trying to use run time linking or normal
18738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18739 # need to do runtime linking.
18740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18741 for ld_flag in $LDFLAGS; do
18742 case $ld_flag in
18743 *-brtl*)
18744 aix_use_runtimelinking=yes
18745 break
18746 ;;
18747 esac
18748 done
18749 ;;
18750 esac
18751
18752 exp_sym_flag='-bexport'
18753 no_entry_flag='-bnoentry'
18754 fi
18755
18756 # When large executables or shared objects are built, AIX ld can
18757 # have problems creating the table of contents. If linking a library
18758 # or program results in "error TOC overflow" add -mminimal-toc to
18759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18761
18762 archive_cmds_CXX=''
18763 hardcode_direct_CXX=yes
18764 hardcode_direct_absolute_CXX=yes
18765 hardcode_libdir_separator_CXX=':'
18766 link_all_deplibs_CXX=yes
18767 file_list_spec_CXX='${wl}-f,'
18768
18769 if test "$GXX" = yes; then
18770 case $host_os in aix4.[012]|aix4.[012].*)
18771 # We only want to do this on AIX 4.2 and lower, the check
18772 # below for broken collect2 doesn't work under 4.3+
18773 collect2name=`${CC} -print-prog-name=collect2`
18774 if test -f "$collect2name" &&
18775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18776 then
18777 # We have reworked collect2
18778 :
18779 else
18780 # We have old collect2
18781 hardcode_direct_CXX=unsupported
18782 # It fails to find uninstalled libraries when the uninstalled
18783 # path is not listed in the libpath. Setting hardcode_minus_L
18784 # to unsupported forces relinking
18785 hardcode_minus_L_CXX=yes
18786 hardcode_libdir_flag_spec_CXX='-L$libdir'
18787 hardcode_libdir_separator_CXX=
18788 fi
18789 esac
18790 shared_flag='-shared'
18791 if test "$aix_use_runtimelinking" = yes; then
18792 shared_flag="$shared_flag "'${wl}-G'
18793 fi
18794 else
18795 # not using gcc
18796 if test "$host_cpu" = ia64; then
18797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18798 # chokes on -Wl,-G. The following line is correct:
18799 shared_flag='-G'
18800 else
18801 if test "$aix_use_runtimelinking" = yes; then
18802 shared_flag='${wl}-G'
18803 else
18804 shared_flag='${wl}-bM:SRE'
18805 fi
18806 fi
18807 fi
18808
18809 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18810 # It seems that -bexpall does not export symbols beginning with
18811 # underscore (_), so it is better to generate a list of symbols to
18812 # export.
18813 always_export_symbols_CXX=yes
18814 if test "$aix_use_runtimelinking" = yes; then
18815 # Warning - without using the other runtime loading flags (-brtl),
18816 # -berok will link without error, but may produce a broken library.
18817 allow_undefined_flag_CXX='-berok'
18818 # Determine the default libpath from the value encoded in an empty
18819 # executable.
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822
18823 int
18824 main ()
18825 {
18826
18827 ;
18828 return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_cxx_try_link "$LINENO"; then :
18832
18833 lt_aix_libpath_sed='
18834 /Import File Strings/,/^$/ {
18835 /^0/ {
18836 s/^0 *\(.*\)$/\1/
18837 p
18838 }
18839 }'
18840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18841 # Check for a 64-bit object if we didn't find anything.
18842 if test -z "$aix_libpath"; then
18843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18844 fi
18845 fi
18846 rm -f core conftest.err conftest.$ac_objext \
18847 conftest$ac_exeext conftest.$ac_ext
18848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18849
18850 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18851
18852 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"
18853 else
18854 if test "$host_cpu" = ia64; then
18855 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18856 allow_undefined_flag_CXX="-z nodefs"
18857 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"
18858 else
18859 # Determine the default libpath from the value encoded in an
18860 # empty executable.
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863
18864 int
18865 main ()
18866 {
18867
18868 ;
18869 return 0;
18870 }
18871 _ACEOF
18872 if ac_fn_cxx_try_link "$LINENO"; then :
18873
18874 lt_aix_libpath_sed='
18875 /Import File Strings/,/^$/ {
18876 /^0/ {
18877 s/^0 *\(.*\)$/\1/
18878 p
18879 }
18880 }'
18881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18882 # Check for a 64-bit object if we didn't find anything.
18883 if test -z "$aix_libpath"; then
18884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18885 fi
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18890
18891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18892 # Warning - without using the other run time loading flags,
18893 # -berok will link without error, but may produce a broken library.
18894 no_undefined_flag_CXX=' ${wl}-bernotok'
18895 allow_undefined_flag_CXX=' ${wl}-berok'
18896 if test "$with_gnu_ld" = yes; then
18897 # We only use this code for GNU lds that support --whole-archive.
18898 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18899 else
18900 # Exported symbols can be pulled into shared objects from archives
18901 whole_archive_flag_spec_CXX='$convenience'
18902 fi
18903 archive_cmds_need_lc_CXX=yes
18904 # This is similar to how AIX traditionally builds its shared
18905 # libraries.
18906 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'
18907 fi
18908 fi
18909 ;;
18910
18911 beos*)
18912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18913 allow_undefined_flag_CXX=unsupported
18914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18915 # support --undefined. This deserves some investigation. FIXME
18916 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917 else
18918 ld_shlibs_CXX=no
18919 fi
18920 ;;
18921
18922 chorus*)
18923 case $cc_basename in
18924 *)
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18927 ;;
18928 esac
18929 ;;
18930
18931 cygwin* | mingw* | pw32* | cegcc*)
18932 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18933 # as there is no search path for DLLs.
18934 hardcode_libdir_flag_spec_CXX='-L$libdir'
18935 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18936 allow_undefined_flag_CXX=unsupported
18937 always_export_symbols_CXX=no
18938 enable_shared_with_static_runtimes_CXX=yes
18939
18940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18941 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'
18942 # If the export-symbols file already is a .def file (1st line
18943 # is EXPORTS), use it as is; otherwise, prepend...
18944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18945 cp $export_symbols $output_objdir/$soname.def;
18946 else
18947 echo EXPORTS > $output_objdir/$soname.def;
18948 cat $export_symbols >> $output_objdir/$soname.def;
18949 fi~
18950 $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'
18951 else
18952 ld_shlibs_CXX=no
18953 fi
18954 ;;
18955 darwin* | rhapsody*)
18956
18957
18958 archive_cmds_need_lc_CXX=no
18959 hardcode_direct_CXX=no
18960 hardcode_automatic_CXX=yes
18961 hardcode_shlibpath_var_CXX=unsupported
18962 if test "$lt_cv_ld_force_load" = "yes"; then
18963 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\"`'
18964 else
18965 whole_archive_flag_spec_CXX=''
18966 fi
18967 link_all_deplibs_CXX=yes
18968 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18969 case $cc_basename in
18970 ifort*) _lt_dar_can_shared=yes ;;
18971 *) _lt_dar_can_shared=$GCC ;;
18972 esac
18973 if test "$_lt_dar_can_shared" = "yes"; then
18974 output_verbose_link_cmd=func_echo_all
18975 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}"
18976 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18977 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}"
18978 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}"
18979 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18980 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}"
18981 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}"
18982 fi
18983
18984 else
18985 ld_shlibs_CXX=no
18986 fi
18987
18988 ;;
18989
18990 dgux*)
18991 case $cc_basename in
18992 ec++*)
18993 # FIXME: insert proper C++ library support
18994 ld_shlibs_CXX=no
18995 ;;
18996 ghcx*)
18997 # Green Hills C++ Compiler
18998 # FIXME: insert proper C++ library support
18999 ld_shlibs_CXX=no
19000 ;;
19001 *)
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 ;;
19005 esac
19006 ;;
19007
19008 freebsd2.*)
19009 # C++ shared libraries reported to be fairly broken before
19010 # switch to ELF
19011 ld_shlibs_CXX=no
19012 ;;
19013
19014 freebsd-elf*)
19015 archive_cmds_need_lc_CXX=no
19016 ;;
19017
19018 freebsd* | dragonfly*)
19019 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19020 # conventions
19021 ld_shlibs_CXX=yes
19022 ;;
19023
19024 gnu*)
19025 ;;
19026
19027 haiku*)
19028 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19029 link_all_deplibs_CXX=yes
19030 ;;
19031
19032 hpux9*)
19033 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19034 hardcode_libdir_separator_CXX=:
19035 export_dynamic_flag_spec_CXX='${wl}-E'
19036 hardcode_direct_CXX=yes
19037 hardcode_minus_L_CXX=yes # Not in the search PATH,
19038 # but as the default
19039 # location of the library.
19040
19041 case $cc_basename in
19042 CC*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 aCC*)
19047 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'
19048 # Commands to make compiler produce verbose output that lists
19049 # what "hidden" libraries, object files and flags are used when
19050 # linking a shared library.
19051 #
19052 # There doesn't appear to be a way to prevent this compiler from
19053 # explicitly linking system object files so we need to strip them
19054 # from the output so that they don't get included in the library
19055 # dependencies.
19056 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"'
19057 ;;
19058 *)
19059 if test "$GXX" = yes; then
19060 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'
19061 else
19062 # FIXME: insert proper C++ library support
19063 ld_shlibs_CXX=no
19064 fi
19065 ;;
19066 esac
19067 ;;
19068
19069 hpux10*|hpux11*)
19070 if test $with_gnu_ld = no; then
19071 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19072 hardcode_libdir_separator_CXX=:
19073
19074 case $host_cpu in
19075 hppa*64*|ia64*)
19076 ;;
19077 *)
19078 export_dynamic_flag_spec_CXX='${wl}-E'
19079 ;;
19080 esac
19081 fi
19082 case $host_cpu in
19083 hppa*64*|ia64*)
19084 hardcode_direct_CXX=no
19085 hardcode_shlibpath_var_CXX=no
19086 ;;
19087 *)
19088 hardcode_direct_CXX=yes
19089 hardcode_direct_absolute_CXX=yes
19090 hardcode_minus_L_CXX=yes # Not in the search PATH,
19091 # but as the default
19092 # location of the library.
19093 ;;
19094 esac
19095
19096 case $cc_basename in
19097 CC*)
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
19101 aCC*)
19102 case $host_cpu in
19103 hppa*64*)
19104 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19105 ;;
19106 ia64*)
19107 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19108 ;;
19109 *)
19110 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19111 ;;
19112 esac
19113 # Commands to make compiler produce verbose output that lists
19114 # what "hidden" libraries, object files and flags are used when
19115 # linking a shared library.
19116 #
19117 # There doesn't appear to be a way to prevent this compiler from
19118 # explicitly linking system object files so we need to strip them
19119 # from the output so that they don't get included in the library
19120 # dependencies.
19121 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"'
19122 ;;
19123 *)
19124 if test "$GXX" = yes; then
19125 if test $with_gnu_ld = no; then
19126 case $host_cpu in
19127 hppa*64*)
19128 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 ;;
19130 ia64*)
19131 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 ;;
19133 *)
19134 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'
19135 ;;
19136 esac
19137 fi
19138 else
19139 # FIXME: insert proper C++ library support
19140 ld_shlibs_CXX=no
19141 fi
19142 ;;
19143 esac
19144 ;;
19145
19146 interix[3-9]*)
19147 hardcode_direct_CXX=no
19148 hardcode_shlibpath_var_CXX=no
19149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19150 export_dynamic_flag_spec_CXX='${wl}-E'
19151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19152 # Instead, shared libraries are loaded at an image base (0x10000000 by
19153 # default) and relocated if they conflict, which is a slow very memory
19154 # consuming and fragmenting process. To avoid this, we pick a random,
19155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19157 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'
19158 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'
19159 ;;
19160 irix5* | irix6*)
19161 case $cc_basename in
19162 CC*)
19163 # SGI C++
19164 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'
19165
19166 # Archives containing C++ object files must be created using
19167 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19168 # necessary to make sure instantiated templates are included
19169 # in the archive.
19170 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19171 ;;
19172 *)
19173 if test "$GXX" = yes; then
19174 if test "$with_gnu_ld" = no; then
19175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19176 else
19177 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'
19178 fi
19179 fi
19180 link_all_deplibs_CXX=yes
19181 ;;
19182 esac
19183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19184 hardcode_libdir_separator_CXX=:
19185 inherit_rpath_CXX=yes
19186 ;;
19187
19188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19189 case $cc_basename in
19190 KCC*)
19191 # Kuck and Associates, Inc. (KAI) C++ Compiler
19192
19193 # KCC will only create a shared library if the output file
19194 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19195 # to its proper name (with version) after linking.
19196 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'
19197 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'
19198 # Commands to make compiler produce verbose output that lists
19199 # what "hidden" libraries, object files and flags are used when
19200 # linking a shared library.
19201 #
19202 # There doesn't appear to be a way to prevent this compiler from
19203 # explicitly linking system object files so we need to strip them
19204 # from the output so that they don't get included in the library
19205 # dependencies.
19206 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"'
19207
19208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19210
19211 # Archives containing C++ object files must be created using
19212 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19213 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19214 ;;
19215 icpc* | ecpc* )
19216 # Intel C++
19217 with_gnu_ld=yes
19218 # version 8.0 and above of icpc choke on multiply defined symbols
19219 # if we add $predep_objects and $postdep_objects, however 7.1 and
19220 # earlier do not add the objects themselves.
19221 case `$CC -V 2>&1` in
19222 *"Version 7."*)
19223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19224 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'
19225 ;;
19226 *) # Version 8.0 or newer
19227 tmp_idyn=
19228 case $host_cpu in
19229 ia64*) tmp_idyn=' -i_dynamic';;
19230 esac
19231 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232 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'
19233 ;;
19234 esac
19235 archive_cmds_need_lc_CXX=no
19236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19238 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19239 ;;
19240 pgCC* | pgcpp*)
19241 # Portland Group C++ compiler
19242 case `$CC -V` in
19243 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19244 prelink_cmds_CXX='tpldir=Template.dir~
19245 rm -rf $tpldir~
19246 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19247 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19248 old_archive_cmds_CXX='tpldir=Template.dir~
19249 rm -rf $tpldir~
19250 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19251 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19252 $RANLIB $oldlib'
19253 archive_cmds_CXX='tpldir=Template.dir~
19254 rm -rf $tpldir~
19255 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19256 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19257 archive_expsym_cmds_CXX='tpldir=Template.dir~
19258 rm -rf $tpldir~
19259 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19260 $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'
19261 ;;
19262 *) # Version 6 and above use weak symbols
19263 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19264 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'
19265 ;;
19266 esac
19267
19268 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19270 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'
19271 ;;
19272 cxx*)
19273 # Compaq C++
19274 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19275 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'
19276
19277 runpath_var=LD_RUN_PATH
19278 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19279 hardcode_libdir_separator_CXX=:
19280
19281 # Commands to make compiler produce verbose output that lists
19282 # what "hidden" libraries, object files and flags are used when
19283 # linking a shared library.
19284 #
19285 # There doesn't appear to be a way to prevent this compiler from
19286 # explicitly linking system object files so we need to strip them
19287 # from the output so that they don't get included in the library
19288 # dependencies.
19289 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'
19290 ;;
19291 xl* | mpixl* | bgxl*)
19292 # IBM XL 8.0 on PPC, with GNU ld
19293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19295 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296 if test "x$supports_anon_versioning" = xyes; then
19297 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19299 echo "local: *; };" >> $output_objdir/$libname.ver~
19300 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19301 fi
19302 ;;
19303 *)
19304 case `$CC -V 2>&1 | sed 5q` in
19305 *Sun\ C*)
19306 # Sun C++ 5.9
19307 no_undefined_flag_CXX=' -zdefs'
19308 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19309 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'
19310 hardcode_libdir_flag_spec_CXX='-R$libdir'
19311 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'
19312 compiler_needs_object_CXX=yes
19313
19314 # Not sure whether something based on
19315 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19316 # would be better.
19317 output_verbose_link_cmd='func_echo_all'
19318
19319 # Archives containing C++ object files must be created using
19320 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19321 # necessary to make sure instantiated templates are included
19322 # in the archive.
19323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19324 ;;
19325 esac
19326 ;;
19327 esac
19328 ;;
19329
19330 lynxos*)
19331 # FIXME: insert proper C++ library support
19332 ld_shlibs_CXX=no
19333 ;;
19334
19335 m88k*)
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339
19340 mvs*)
19341 case $cc_basename in
19342 cxx*)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346 *)
19347 # FIXME: insert proper C++ library support
19348 ld_shlibs_CXX=no
19349 ;;
19350 esac
19351 ;;
19352
19353 netbsd*)
19354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19355 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19356 wlarc=
19357 hardcode_libdir_flag_spec_CXX='-R$libdir'
19358 hardcode_direct_CXX=yes
19359 hardcode_shlibpath_var_CXX=no
19360 fi
19361 # Workaround some broken pre-1.5 toolchains
19362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19363 ;;
19364
19365 *nto* | *qnx*)
19366 ld_shlibs_CXX=yes
19367 ;;
19368
19369 openbsd2*)
19370 # C++ shared libraries are fairly broken
19371 ld_shlibs_CXX=no
19372 ;;
19373
19374 openbsd*)
19375 if test -f /usr/libexec/ld.so; then
19376 hardcode_direct_CXX=yes
19377 hardcode_shlibpath_var_CXX=no
19378 hardcode_direct_absolute_CXX=yes
19379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19382 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19383 export_dynamic_flag_spec_CXX='${wl}-E'
19384 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19385 fi
19386 output_verbose_link_cmd=func_echo_all
19387 else
19388 ld_shlibs_CXX=no
19389 fi
19390 ;;
19391
19392 osf3* | osf4* | osf5*)
19393 case $cc_basename in
19394 KCC*)
19395 # Kuck and Associates, Inc. (KAI) C++ Compiler
19396
19397 # KCC will only create a shared library if the output file
19398 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19399 # to its proper name (with version) after linking.
19400 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'
19401
19402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19403 hardcode_libdir_separator_CXX=:
19404
19405 # Archives containing C++ object files must be created using
19406 # the KAI C++ compiler.
19407 case $host in
19408 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19409 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19410 esac
19411 ;;
19412 RCC*)
19413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
19417 cxx*)
19418 case $host in
19419 osf3*)
19420 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19421 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'
19422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19423 ;;
19424 *)
19425 allow_undefined_flag_CXX=' -expect_unresolved \*'
19426 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'
19427 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19428 echo "-hidden">> $lib.exp~
19429 $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~
19430 $RM $lib.exp'
19431 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19432 ;;
19433 esac
19434
19435 hardcode_libdir_separator_CXX=:
19436
19437 # Commands to make compiler produce verbose output that lists
19438 # what "hidden" libraries, object files and flags are used when
19439 # linking a shared library.
19440 #
19441 # There doesn't appear to be a way to prevent this compiler from
19442 # explicitly linking system object files so we need to strip them
19443 # from the output so that they don't get included in the library
19444 # dependencies.
19445 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"'
19446 ;;
19447 *)
19448 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19449 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19450 case $host in
19451 osf3*)
19452 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'
19453 ;;
19454 *)
19455 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'
19456 ;;
19457 esac
19458
19459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460 hardcode_libdir_separator_CXX=:
19461
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19466
19467 else
19468 # FIXME: insert proper C++ library support
19469 ld_shlibs_CXX=no
19470 fi
19471 ;;
19472 esac
19473 ;;
19474
19475 psos*)
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479
19480 sunos4*)
19481 case $cc_basename in
19482 CC*)
19483 # Sun C++ 4.x
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19486 ;;
19487 lcc*)
19488 # Lucid
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19491 ;;
19492 *)
19493 # FIXME: insert proper C++ library support
19494 ld_shlibs_CXX=no
19495 ;;
19496 esac
19497 ;;
19498
19499 solaris*)
19500 case $cc_basename in
19501 CC*)
19502 # Sun C++ 4.2, 5.x and Centerline C++
19503 archive_cmds_need_lc_CXX=yes
19504 no_undefined_flag_CXX=' -zdefs'
19505 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19506 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19507 $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'
19508
19509 hardcode_libdir_flag_spec_CXX='-R$libdir'
19510 hardcode_shlibpath_var_CXX=no
19511 case $host_os in
19512 solaris2.[0-5] | solaris2.[0-5].*) ;;
19513 *)
19514 # The compiler driver will combine and reorder linker options,
19515 # but understands `-z linker_flag'.
19516 # Supported since Solaris 2.6 (maybe 2.5.1?)
19517 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19518 ;;
19519 esac
19520 link_all_deplibs_CXX=yes
19521
19522 output_verbose_link_cmd='func_echo_all'
19523
19524 # Archives containing C++ object files must be created using
19525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19526 # necessary to make sure instantiated templates are included
19527 # in the archive.
19528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19529 ;;
19530 gcx*)
19531 # Green Hills C++ Compiler
19532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19533
19534 # The C++ compiler must be used to create the archive.
19535 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19536 ;;
19537 *)
19538 # GNU C++ compiler with Solaris linker
19539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19540 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19541 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19542 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19544 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19545
19546 # Commands to make compiler produce verbose output that lists
19547 # what "hidden" libraries, object files and flags are used when
19548 # linking a shared library.
19549 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19550 else
19551 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19552 # platform.
19553 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19554 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19555 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19556
19557 # Commands to make compiler produce verbose output that lists
19558 # what "hidden" libraries, object files and flags are used when
19559 # linking a shared library.
19560 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19561 fi
19562
19563 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19564 case $host_os in
19565 solaris2.[0-5] | solaris2.[0-5].*) ;;
19566 *)
19567 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19568 ;;
19569 esac
19570 fi
19571 ;;
19572 esac
19573 ;;
19574
19575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19576 no_undefined_flag_CXX='${wl}-z,text'
19577 archive_cmds_need_lc_CXX=no
19578 hardcode_shlibpath_var_CXX=no
19579 runpath_var='LD_RUN_PATH'
19580
19581 case $cc_basename in
19582 CC*)
19583 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 ;;
19586 *)
19587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 ;;
19590 esac
19591 ;;
19592
19593 sysv5* | sco3.2v5* | sco5v6*)
19594 # Note: We can NOT use -z defs as we might desire, because we do not
19595 # link with -lc, and that would cause any symbols used from libc to
19596 # always be unresolved, which means just about no library would
19597 # ever link correctly. If we're not using GNU ld we use -z text
19598 # though, which does catch some bad symbols but isn't as heavy-handed
19599 # as -z defs.
19600 no_undefined_flag_CXX='${wl}-z,text'
19601 allow_undefined_flag_CXX='${wl}-z,nodefs'
19602 archive_cmds_need_lc_CXX=no
19603 hardcode_shlibpath_var_CXX=no
19604 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19605 hardcode_libdir_separator_CXX=':'
19606 link_all_deplibs_CXX=yes
19607 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19608 runpath_var='LD_RUN_PATH'
19609
19610 case $cc_basename in
19611 CC*)
19612 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19613 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19614 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19615 '"$old_archive_cmds_CXX"
19616 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19617 '"$reload_cmds_CXX"
19618 ;;
19619 *)
19620 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 ;;
19623 esac
19624 ;;
19625
19626 tandem*)
19627 case $cc_basename in
19628 NCC*)
19629 # NonStop-UX NCC 3.20
19630 # FIXME: insert proper C++ library support
19631 ld_shlibs_CXX=no
19632 ;;
19633 *)
19634 # FIXME: insert proper C++ library support
19635 ld_shlibs_CXX=no
19636 ;;
19637 esac
19638 ;;
19639
19640 vxworks*)
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19643 ;;
19644
19645 *)
19646 # FIXME: insert proper C++ library support
19647 ld_shlibs_CXX=no
19648 ;;
19649 esac
19650
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19652 $as_echo "$ld_shlibs_CXX" >&6; }
19653 test "$ld_shlibs_CXX" = no && can_build_shared=no
19654
19655 GCC_CXX="$GXX"
19656 LD_CXX="$LD"
19657
19658 ## CAVEAT EMPTOR:
19659 ## There is no encapsulation within the following macros, do not change
19660 ## the running order or otherwise move them around unless you know exactly
19661 ## what you are doing...
19662 # Dependencies to place before and after the object being linked:
19663 predep_objects_CXX=
19664 postdep_objects_CXX=
19665 predeps_CXX=
19666 postdeps_CXX=
19667 compiler_lib_search_path_CXX=
19668
19669 cat > conftest.$ac_ext <<_LT_EOF
19670 class Foo
19671 {
19672 public:
19673 Foo (void) { a = 0; }
19674 private:
19675 int a;
19676 };
19677 _LT_EOF
19678
19679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19680 (eval $ac_compile) 2>&5
19681 ac_status=$?
19682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19683 test $ac_status = 0; }; then
19684 # Parse the compiler output and extract the necessary
19685 # objects, libraries and library flags.
19686
19687 # Sentinel used to keep track of whether or not we are before
19688 # the conftest object file.
19689 pre_test_object_deps_done=no
19690
19691 for p in `eval "$output_verbose_link_cmd"`; do
19692 case $p in
19693
19694 -L* | -R* | -l*)
19695 # Some compilers place space between "-{L,R}" and the path.
19696 # Remove the space.
19697 if test $p = "-L" ||
19698 test $p = "-R"; then
19699 prev=$p
19700 continue
19701 else
19702 prev=
19703 fi
19704
19705 if test "$pre_test_object_deps_done" = no; then
19706 case $p in
19707 -L* | -R*)
19708 # Internal compiler library paths should come after those
19709 # provided the user. The postdeps already come after the
19710 # user supplied libs so there is no need to process them.
19711 if test -z "$compiler_lib_search_path_CXX"; then
19712 compiler_lib_search_path_CXX="${prev}${p}"
19713 else
19714 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19715 fi
19716 ;;
19717 # The "-l" case would never come before the object being
19718 # linked, so don't bother handling this case.
19719 esac
19720 else
19721 if test -z "$postdeps_CXX"; then
19722 postdeps_CXX="${prev}${p}"
19723 else
19724 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19725 fi
19726 fi
19727 ;;
19728
19729 *.$objext)
19730 # This assumes that the test object file only shows up
19731 # once in the compiler output.
19732 if test "$p" = "conftest.$objext"; then
19733 pre_test_object_deps_done=yes
19734 continue
19735 fi
19736
19737 if test "$pre_test_object_deps_done" = no; then
19738 if test -z "$predep_objects_CXX"; then
19739 predep_objects_CXX="$p"
19740 else
19741 predep_objects_CXX="$predep_objects_CXX $p"
19742 fi
19743 else
19744 if test -z "$postdep_objects_CXX"; then
19745 postdep_objects_CXX="$p"
19746 else
19747 postdep_objects_CXX="$postdep_objects_CXX $p"
19748 fi
19749 fi
19750 ;;
19751
19752 *) ;; # Ignore the rest.
19753
19754 esac
19755 done
19756
19757 # Clean up.
19758 rm -f a.out a.exe
19759 else
19760 echo "libtool.m4: error: problem compiling CXX test program"
19761 fi
19762
19763 $RM -f confest.$objext
19764
19765 # PORTME: override above test on systems where it is broken
19766 case $host_os in
19767 interix[3-9]*)
19768 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19769 # hack all around it, let's just trust "g++" to DTRT.
19770 predep_objects_CXX=
19771 postdep_objects_CXX=
19772 postdeps_CXX=
19773 ;;
19774
19775 linux*)
19776 case `$CC -V 2>&1 | sed 5q` in
19777 *Sun\ C*)
19778 # Sun C++ 5.9
19779
19780 # The more standards-conforming stlport4 library is
19781 # incompatible with the Cstd library. Avoid specifying
19782 # it if it's in CXXFLAGS. Ignore libCrun as
19783 # -library=stlport4 depends on it.
19784 case " $CXX $CXXFLAGS " in
19785 *" -library=stlport4 "*)
19786 solaris_use_stlport4=yes
19787 ;;
19788 esac
19789
19790 if test "$solaris_use_stlport4" != yes; then
19791 postdeps_CXX='-library=Cstd -library=Crun'
19792 fi
19793 ;;
19794 esac
19795 ;;
19796
19797 solaris*)
19798 case $cc_basename in
19799 CC*)
19800 # The more standards-conforming stlport4 library is
19801 # incompatible with the Cstd library. Avoid specifying
19802 # it if it's in CXXFLAGS. Ignore libCrun as
19803 # -library=stlport4 depends on it.
19804 case " $CXX $CXXFLAGS " in
19805 *" -library=stlport4 "*)
19806 solaris_use_stlport4=yes
19807 ;;
19808 esac
19809
19810 # Adding this requires a known-good setup of shared libraries for
19811 # Sun compiler versions before 5.6, else PIC objects from an old
19812 # archive will be linked into the output, leading to subtle bugs.
19813 if test "$solaris_use_stlport4" != yes; then
19814 postdeps_CXX='-library=Cstd -library=Crun'
19815 fi
19816 ;;
19817 esac
19818 ;;
19819 esac
19820
19821
19822 case " $postdeps_CXX " in
19823 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19824 esac
19825 compiler_lib_search_dirs_CXX=
19826 if test -n "${compiler_lib_search_path_CXX}"; then
19827 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19828 fi
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860 lt_prog_compiler_wl_CXX=
19861 lt_prog_compiler_pic_CXX=
19862 lt_prog_compiler_static_CXX=
19863
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19866
19867 # C++ specific cases for pic, static, wl, etc.
19868 if test "$GXX" = yes; then
19869 lt_prog_compiler_wl_CXX='-Wl,'
19870 lt_prog_compiler_static_CXX='-static'
19871
19872 case $host_os in
19873 aix*)
19874 # All AIX code is PIC.
19875 if test "$host_cpu" = ia64; then
19876 # AIX 5 now supports IA64 processor
19877 lt_prog_compiler_static_CXX='-Bstatic'
19878 fi
19879 ;;
19880
19881 amigaos*)
19882 case $host_cpu in
19883 powerpc)
19884 # see comment about AmigaOS4 .so support
19885 lt_prog_compiler_pic_CXX='-fPIC'
19886 ;;
19887 m68k)
19888 # FIXME: we need at least 68020 code to build shared libraries, but
19889 # adding the `-m68020' flag to GCC prevents building anything better,
19890 # like `-m68040'.
19891 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19892 ;;
19893 esac
19894 ;;
19895
19896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19897 # PIC is the default for these OSes.
19898 ;;
19899 mingw* | cygwin* | os2* | pw32* | cegcc*)
19900 # This hack is so that the source file can tell whether it is being
19901 # built for inclusion in a dll (and should export symbols for example).
19902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19903 # (--disable-auto-import) libraries
19904 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19905 ;;
19906 darwin* | rhapsody*)
19907 # PIC is the default on this platform
19908 # Common symbols not allowed in MH_DYLIB files
19909 lt_prog_compiler_pic_CXX='-fno-common'
19910 ;;
19911 *djgpp*)
19912 # DJGPP does not support shared libraries at all
19913 lt_prog_compiler_pic_CXX=
19914 ;;
19915 haiku*)
19916 # PIC is the default for Haiku.
19917 # The "-static" flag exists, but is broken.
19918 lt_prog_compiler_static_CXX=
19919 ;;
19920 interix[3-9]*)
19921 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19922 # Instead, we relocate shared libraries at runtime.
19923 ;;
19924 sysv4*MP*)
19925 if test -d /usr/nec; then
19926 lt_prog_compiler_pic_CXX=-Kconform_pic
19927 fi
19928 ;;
19929 hpux*)
19930 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19931 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19932 # sets the default TLS model and affects inlining.
19933 case $host_cpu in
19934 hppa*64*)
19935 ;;
19936 *)
19937 lt_prog_compiler_pic_CXX='-fPIC'
19938 ;;
19939 esac
19940 ;;
19941 *qnx* | *nto*)
19942 # QNX uses GNU C++, but need to define -shared option too, otherwise
19943 # it will coredump.
19944 lt_prog_compiler_pic_CXX='-fPIC -shared'
19945 ;;
19946 *)
19947 lt_prog_compiler_pic_CXX='-fPIC'
19948 ;;
19949 esac
19950 else
19951 case $host_os in
19952 aix[4-9]*)
19953 # All AIX code is PIC.
19954 if test "$host_cpu" = ia64; then
19955 # AIX 5 now supports IA64 processor
19956 lt_prog_compiler_static_CXX='-Bstatic'
19957 else
19958 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19959 fi
19960 ;;
19961 chorus*)
19962 case $cc_basename in
19963 cxch68*)
19964 # Green Hills C++ Compiler
19965 # _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"
19966 ;;
19967 esac
19968 ;;
19969 dgux*)
19970 case $cc_basename in
19971 ec++*)
19972 lt_prog_compiler_pic_CXX='-KPIC'
19973 ;;
19974 ghcx*)
19975 # Green Hills C++ Compiler
19976 lt_prog_compiler_pic_CXX='-pic'
19977 ;;
19978 *)
19979 ;;
19980 esac
19981 ;;
19982 freebsd* | dragonfly*)
19983 # FreeBSD uses GNU C++
19984 ;;
19985 hpux9* | hpux10* | hpux11*)
19986 case $cc_basename in
19987 CC*)
19988 lt_prog_compiler_wl_CXX='-Wl,'
19989 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19990 if test "$host_cpu" != ia64; then
19991 lt_prog_compiler_pic_CXX='+Z'
19992 fi
19993 ;;
19994 aCC*)
19995 lt_prog_compiler_wl_CXX='-Wl,'
19996 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19997 case $host_cpu in
19998 hppa*64*|ia64*)
19999 # +Z the default
20000 ;;
20001 *)
20002 lt_prog_compiler_pic_CXX='+Z'
20003 ;;
20004 esac
20005 ;;
20006 *)
20007 ;;
20008 esac
20009 ;;
20010 interix*)
20011 # This is c89, which is MS Visual C++ (no shared libs)
20012 # Anyone wants to do a port?
20013 ;;
20014 irix5* | irix6* | nonstopux*)
20015 case $cc_basename in
20016 CC*)
20017 lt_prog_compiler_wl_CXX='-Wl,'
20018 lt_prog_compiler_static_CXX='-non_shared'
20019 # CC pic flag -KPIC is the default.
20020 ;;
20021 *)
20022 ;;
20023 esac
20024 ;;
20025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20026 case $cc_basename in
20027 KCC*)
20028 # KAI C++ Compiler
20029 lt_prog_compiler_wl_CXX='--backend -Wl,'
20030 lt_prog_compiler_pic_CXX='-fPIC'
20031 ;;
20032 ecpc* )
20033 # old Intel C++ for x86_64 which still supported -KPIC.
20034 lt_prog_compiler_wl_CXX='-Wl,'
20035 lt_prog_compiler_pic_CXX='-KPIC'
20036 lt_prog_compiler_static_CXX='-static'
20037 ;;
20038 icpc* )
20039 # Intel C++, used to be incompatible with GCC.
20040 # ICC 10 doesn't accept -KPIC any more.
20041 lt_prog_compiler_wl_CXX='-Wl,'
20042 lt_prog_compiler_pic_CXX='-fPIC'
20043 lt_prog_compiler_static_CXX='-static'
20044 ;;
20045 pgCC* | pgcpp*)
20046 # Portland Group C++ compiler
20047 lt_prog_compiler_wl_CXX='-Wl,'
20048 lt_prog_compiler_pic_CXX='-fpic'
20049 lt_prog_compiler_static_CXX='-Bstatic'
20050 ;;
20051 cxx*)
20052 # Compaq C++
20053 # Make sure the PIC flag is empty. It appears that all Alpha
20054 # Linux and Compaq Tru64 Unix objects are PIC.
20055 lt_prog_compiler_pic_CXX=
20056 lt_prog_compiler_static_CXX='-non_shared'
20057 ;;
20058 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20059 # IBM XL 8.0, 9.0 on PPC and BlueGene
20060 lt_prog_compiler_wl_CXX='-Wl,'
20061 lt_prog_compiler_pic_CXX='-qpic'
20062 lt_prog_compiler_static_CXX='-qstaticlink'
20063 ;;
20064 *)
20065 case `$CC -V 2>&1 | sed 5q` in
20066 *Sun\ C*)
20067 # Sun C++ 5.9
20068 lt_prog_compiler_pic_CXX='-KPIC'
20069 lt_prog_compiler_static_CXX='-Bstatic'
20070 lt_prog_compiler_wl_CXX='-Qoption ld '
20071 ;;
20072 esac
20073 ;;
20074 esac
20075 ;;
20076 lynxos*)
20077 ;;
20078 m88k*)
20079 ;;
20080 mvs*)
20081 case $cc_basename in
20082 cxx*)
20083 lt_prog_compiler_pic_CXX='-W c,exportall'
20084 ;;
20085 *)
20086 ;;
20087 esac
20088 ;;
20089 netbsd*)
20090 ;;
20091 *qnx* | *nto*)
20092 # QNX uses GNU C++, but need to define -shared option too, otherwise
20093 # it will coredump.
20094 lt_prog_compiler_pic_CXX='-fPIC -shared'
20095 ;;
20096 osf3* | osf4* | osf5*)
20097 case $cc_basename in
20098 KCC*)
20099 lt_prog_compiler_wl_CXX='--backend -Wl,'
20100 ;;
20101 RCC*)
20102 # Rational C++ 2.4.1
20103 lt_prog_compiler_pic_CXX='-pic'
20104 ;;
20105 cxx*)
20106 # Digital/Compaq C++
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 # Make sure the PIC flag is empty. It appears that all Alpha
20109 # Linux and Compaq Tru64 Unix objects are PIC.
20110 lt_prog_compiler_pic_CXX=
20111 lt_prog_compiler_static_CXX='-non_shared'
20112 ;;
20113 *)
20114 ;;
20115 esac
20116 ;;
20117 psos*)
20118 ;;
20119 solaris*)
20120 case $cc_basename in
20121 CC*)
20122 # Sun C++ 4.2, 5.x and Centerline C++
20123 lt_prog_compiler_pic_CXX='-KPIC'
20124 lt_prog_compiler_static_CXX='-Bstatic'
20125 lt_prog_compiler_wl_CXX='-Qoption ld '
20126 ;;
20127 gcx*)
20128 # Green Hills C++ Compiler
20129 lt_prog_compiler_pic_CXX='-PIC'
20130 ;;
20131 *)
20132 ;;
20133 esac
20134 ;;
20135 sunos4*)
20136 case $cc_basename in
20137 CC*)
20138 # Sun C++ 4.x
20139 lt_prog_compiler_pic_CXX='-pic'
20140 lt_prog_compiler_static_CXX='-Bstatic'
20141 ;;
20142 lcc*)
20143 # Lucid
20144 lt_prog_compiler_pic_CXX='-pic'
20145 ;;
20146 *)
20147 ;;
20148 esac
20149 ;;
20150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20151 case $cc_basename in
20152 CC*)
20153 lt_prog_compiler_wl_CXX='-Wl,'
20154 lt_prog_compiler_pic_CXX='-KPIC'
20155 lt_prog_compiler_static_CXX='-Bstatic'
20156 ;;
20157 esac
20158 ;;
20159 tandem*)
20160 case $cc_basename in
20161 NCC*)
20162 # NonStop-UX NCC 3.20
20163 lt_prog_compiler_pic_CXX='-KPIC'
20164 ;;
20165 *)
20166 ;;
20167 esac
20168 ;;
20169 vxworks*)
20170 ;;
20171 *)
20172 lt_prog_compiler_can_build_shared_CXX=no
20173 ;;
20174 esac
20175 fi
20176
20177 case $host_os in
20178 # For platforms which do not support PIC, -DPIC is meaningless:
20179 *djgpp*)
20180 lt_prog_compiler_pic_CXX=
20181 ;;
20182 *)
20183 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20184 ;;
20185 esac
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20187 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20188
20189
20190
20191 #
20192 # Check to make sure the PIC flag actually works.
20193 #
20194 if test -n "$lt_prog_compiler_pic_CXX"; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20196 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20197 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20199 else
20200 lt_cv_prog_compiler_pic_works_CXX=no
20201 ac_outfile=conftest.$ac_objext
20202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20203 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20204 # Insert the option either (1) after the last *FLAGS variable, or
20205 # (2) before a word containing "conftest.", or (3) at the end.
20206 # Note that $ac_compile itself does not contain backslashes and begins
20207 # with a dollar sign (not a hyphen), so the echo should work correctly.
20208 # The option is referenced via a variable to avoid confusing sed.
20209 lt_compile=`echo "$ac_compile" | $SED \
20210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20212 -e 's:$: $lt_compiler_flag:'`
20213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20214 (eval "$lt_compile" 2>conftest.err)
20215 ac_status=$?
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 if (exit $ac_status) && test -s "$ac_outfile"; then
20219 # The compiler can only warn and ignore the option if not recognized
20220 # So say no if there are warnings other than the usual output.
20221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20224 lt_cv_prog_compiler_pic_works_CXX=yes
20225 fi
20226 fi
20227 $RM conftest*
20228
20229 fi
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20231 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20232
20233 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20234 case $lt_prog_compiler_pic_CXX in
20235 "" | " "*) ;;
20236 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20237 esac
20238 else
20239 lt_prog_compiler_pic_CXX=
20240 lt_prog_compiler_can_build_shared_CXX=no
20241 fi
20242
20243 fi
20244
20245
20246
20247 #
20248 # Check to make sure the static flag actually works.
20249 #
20250 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20252 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20253 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20254 $as_echo_n "(cached) " >&6
20255 else
20256 lt_cv_prog_compiler_static_works_CXX=no
20257 save_LDFLAGS="$LDFLAGS"
20258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20261 # The linker can only warn and ignore the option if not recognized
20262 # So say no if there are warnings
20263 if test -s conftest.err; then
20264 # Append any errors to the config.log.
20265 cat conftest.err 1>&5
20266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20268 if diff conftest.exp conftest.er2 >/dev/null; then
20269 lt_cv_prog_compiler_static_works_CXX=yes
20270 fi
20271 else
20272 lt_cv_prog_compiler_static_works_CXX=yes
20273 fi
20274 fi
20275 $RM -r conftest*
20276 LDFLAGS="$save_LDFLAGS"
20277
20278 fi
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20280 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20281
20282 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20283 :
20284 else
20285 lt_prog_compiler_static_CXX=
20286 fi
20287
20288
20289
20290
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20293 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20294 $as_echo_n "(cached) " >&6
20295 else
20296 lt_cv_prog_compiler_c_o_CXX=no
20297 $RM -r conftest 2>/dev/null
20298 mkdir conftest
20299 cd conftest
20300 mkdir out
20301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302
20303 lt_compiler_flag="-o out/conftest2.$ac_objext"
20304 # Insert the option either (1) after the last *FLAGS variable, or
20305 # (2) before a word containing "conftest.", or (3) at the end.
20306 # Note that $ac_compile itself does not contain backslashes and begins
20307 # with a dollar sign (not a hyphen), so the echo should work correctly.
20308 lt_compile=`echo "$ac_compile" | $SED \
20309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20311 -e 's:$: $lt_compiler_flag:'`
20312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20313 (eval "$lt_compile" 2>out/conftest.err)
20314 ac_status=$?
20315 cat out/conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20318 then
20319 # The compiler can only warn and ignore the option if not recognized
20320 # So say no if there are warnings
20321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20324 lt_cv_prog_compiler_c_o_CXX=yes
20325 fi
20326 fi
20327 chmod u+w . 2>&5
20328 $RM conftest*
20329 # SGI C++ compiler will create directory out/ii_files/ for
20330 # template instantiation
20331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20332 $RM out/* && rmdir out
20333 cd ..
20334 $RM -r conftest
20335 $RM conftest*
20336
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20339 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20340
20341
20342
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20345 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 lt_cv_prog_compiler_c_o_CXX=no
20349 $RM -r conftest 2>/dev/null
20350 mkdir conftest
20351 cd conftest
20352 mkdir out
20353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20354
20355 lt_compiler_flag="-o out/conftest2.$ac_objext"
20356 # Insert the option either (1) after the last *FLAGS variable, or
20357 # (2) before a word containing "conftest.", or (3) at the end.
20358 # Note that $ac_compile itself does not contain backslashes and begins
20359 # with a dollar sign (not a hyphen), so the echo should work correctly.
20360 lt_compile=`echo "$ac_compile" | $SED \
20361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20363 -e 's:$: $lt_compiler_flag:'`
20364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20365 (eval "$lt_compile" 2>out/conftest.err)
20366 ac_status=$?
20367 cat out/conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20370 then
20371 # The compiler can only warn and ignore the option if not recognized
20372 # So say no if there are warnings
20373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20376 lt_cv_prog_compiler_c_o_CXX=yes
20377 fi
20378 fi
20379 chmod u+w . 2>&5
20380 $RM conftest*
20381 # SGI C++ compiler will create directory out/ii_files/ for
20382 # template instantiation
20383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20384 $RM out/* && rmdir out
20385 cd ..
20386 $RM -r conftest
20387 $RM conftest*
20388
20389 fi
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20391 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20392
20393
20394
20395
20396 hard_links="nottested"
20397 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20398 # do not overwrite the value of need_locks provided by the user
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20400 $as_echo_n "checking if we can lock with hard links... " >&6; }
20401 hard_links=yes
20402 $RM conftest*
20403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20404 touch conftest.a
20405 ln conftest.a conftest.b 2>&5 || hard_links=no
20406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20408 $as_echo "$hard_links" >&6; }
20409 if test "$hard_links" = no; then
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20411 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20412 need_locks=warn
20413 fi
20414 else
20415 need_locks=no
20416 fi
20417
20418
20419
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20421 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20422
20423 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20424 case $host_os in
20425 aix[4-9]*)
20426 # If we're using GNU nm, then we don't want the "-C" option.
20427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20428 # Also, AIX nm treats weak defined symbols like other global defined
20429 # symbols, whereas GNU nm marks them as "W".
20430 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20431 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'
20432 else
20433 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'
20434 fi
20435 ;;
20436 pw32*)
20437 export_symbols_cmds_CXX="$ltdll_cmds"
20438 ;;
20439 cygwin* | mingw* | cegcc*)
20440 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'
20441 ;;
20442 *)
20443 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20444 ;;
20445 esac
20446 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20447
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20449 $as_echo "$ld_shlibs_CXX" >&6; }
20450 test "$ld_shlibs_CXX" = no && can_build_shared=no
20451
20452 with_gnu_ld_CXX=$with_gnu_ld
20453
20454
20455
20456
20457
20458
20459 #
20460 # Do we need to explicitly link libc?
20461 #
20462 case "x$archive_cmds_need_lc_CXX" in
20463 x|xyes)
20464 # Assume -lc should be added
20465 archive_cmds_need_lc_CXX=yes
20466
20467 if test "$enable_shared" = yes && test "$GCC" = yes; then
20468 case $archive_cmds_CXX in
20469 *'~'*)
20470 # FIXME: we may have to deal with multi-command sequences.
20471 ;;
20472 '$CC '*)
20473 # Test whether the compiler implicitly links with -lc since on some
20474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20475 # to ld, don't add -lc before -lgcc.
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20478 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20479 $as_echo_n "(cached) " >&6
20480 else
20481 $RM conftest*
20482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20483
20484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20485 (eval $ac_compile) 2>&5
20486 ac_status=$?
20487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20488 test $ac_status = 0; } 2>conftest.err; then
20489 soname=conftest
20490 lib=conftest
20491 libobjs=conftest.$ac_objext
20492 deplibs=
20493 wl=$lt_prog_compiler_wl_CXX
20494 pic_flag=$lt_prog_compiler_pic_CXX
20495 compiler_flags=-v
20496 linker_flags=-v
20497 verstring=
20498 output_objdir=.
20499 libname=conftest
20500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20501 allow_undefined_flag_CXX=
20502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20503 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20504 ac_status=$?
20505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20506 test $ac_status = 0; }
20507 then
20508 lt_cv_archive_cmds_need_lc_CXX=no
20509 else
20510 lt_cv_archive_cmds_need_lc_CXX=yes
20511 fi
20512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20513 else
20514 cat conftest.err 1>&5
20515 fi
20516 $RM conftest*
20517
20518 fi
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20520 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20521 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20522 ;;
20523 esac
20524 fi
20525 ;;
20526 esac
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20593
20594 library_names_spec=
20595 libname_spec='lib$name'
20596 soname_spec=
20597 shrext_cmds=".so"
20598 postinstall_cmds=
20599 postuninstall_cmds=
20600 finish_cmds=
20601 finish_eval=
20602 shlibpath_var=
20603 shlibpath_overrides_runpath=unknown
20604 version_type=none
20605 dynamic_linker="$host_os ld.so"
20606 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20607 need_lib_prefix=unknown
20608 hardcode_into_libs=no
20609
20610 # when you set need_version to no, make sure it does not cause -set_version
20611 # flags to be left without arguments
20612 need_version=unknown
20613
20614 case $host_os in
20615 aix3*)
20616 version_type=linux
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20618 shlibpath_var=LIBPATH
20619
20620 # AIX 3 has no versioning support, so we append a major version to the name.
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 ;;
20623
20624 aix[4-9]*)
20625 version_type=linux
20626 need_lib_prefix=no
20627 need_version=no
20628 hardcode_into_libs=yes
20629 if test "$host_cpu" = ia64; then
20630 # AIX 5 supports IA64
20631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 else
20634 # With GCC up to 2.95.x, collect2 would create an import file
20635 # for dependence libraries. The import file would start with
20636 # the line `#! .'. This would cause the generated library to
20637 # depend on `.', always an invalid library. This was fixed in
20638 # development snapshots of GCC prior to 3.0.
20639 case $host_os in
20640 aix4 | aix4.[01] | aix4.[01].*)
20641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20642 echo ' yes '
20643 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20644 :
20645 else
20646 can_build_shared=no
20647 fi
20648 ;;
20649 esac
20650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20651 # soname into executable. Probably we can add versioning support to
20652 # collect2, so additional links can be useful in future.
20653 if test "$aix_use_runtimelinking" = yes; then
20654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20655 # instead of lib<name>.a to let people know that these are not
20656 # typical AIX shared libraries.
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20658 else
20659 # We preserve .a as extension for shared libraries through AIX4.2
20660 # and later when we are not doing run time linking.
20661 library_names_spec='${libname}${release}.a $libname.a'
20662 soname_spec='${libname}${release}${shared_ext}$major'
20663 fi
20664 shlibpath_var=LIBPATH
20665 fi
20666 ;;
20667
20668 amigaos*)
20669 case $host_cpu in
20670 powerpc)
20671 # Since July 2007 AmigaOS4 officially supports .so libraries.
20672 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674 ;;
20675 m68k)
20676 library_names_spec='$libname.ixlibrary $libname.a'
20677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20678 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'
20679 ;;
20680 esac
20681 ;;
20682
20683 beos*)
20684 library_names_spec='${libname}${shared_ext}'
20685 dynamic_linker="$host_os ld.so"
20686 shlibpath_var=LIBRARY_PATH
20687 ;;
20688
20689 bsdi[45]*)
20690 version_type=linux
20691 need_version=no
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20698 # the default ld.so.conf also contains /usr/contrib/lib and
20699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20700 # libtool to hard-code these into programs
20701 ;;
20702
20703 cygwin* | mingw* | pw32* | cegcc*)
20704 version_type=windows
20705 shrext_cmds=".dll"
20706 need_version=no
20707 need_lib_prefix=no
20708
20709 case $GCC,$host_os in
20710 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20711 library_names_spec='$libname.dll.a'
20712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20713 postinstall_cmds='base_file=`basename \${file}`~
20714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20715 dldir=$destdir/`dirname \$dlpath`~
20716 test -d \$dldir || mkdir -p \$dldir~
20717 $install_prog $dir/$dlname \$dldir/$dlname~
20718 chmod a+x \$dldir/$dlname~
20719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20721 fi'
20722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20723 dlpath=$dir/\$dldll~
20724 $RM \$dlpath'
20725 shlibpath_overrides_runpath=yes
20726
20727 case $host_os in
20728 cygwin*)
20729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20731
20732 ;;
20733 mingw* | cegcc*)
20734 # MinGW DLLs use traditional 'lib' prefix
20735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20736 ;;
20737 pw32*)
20738 # pw32 DLLs use 'pw' prefix rather than 'lib'
20739 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20740 ;;
20741 esac
20742 ;;
20743
20744 *)
20745 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20746 ;;
20747 esac
20748 dynamic_linker='Win32 ld.exe'
20749 # FIXME: first we should search . and the directory the executable is in
20750 shlibpath_var=PATH
20751 ;;
20752
20753 darwin* | rhapsody*)
20754 dynamic_linker="$host_os dyld"
20755 version_type=darwin
20756 need_lib_prefix=no
20757 need_version=no
20758 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20759 soname_spec='${libname}${release}${major}$shared_ext'
20760 shlibpath_overrides_runpath=yes
20761 shlibpath_var=DYLD_LIBRARY_PATH
20762 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20763
20764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20765 ;;
20766
20767 dgux*)
20768 version_type=linux
20769 need_lib_prefix=no
20770 need_version=no
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20772 soname_spec='${libname}${release}${shared_ext}$major'
20773 shlibpath_var=LD_LIBRARY_PATH
20774 ;;
20775
20776 freebsd* | dragonfly*)
20777 # DragonFly does not have aout. When/if they implement a new
20778 # versioning mechanism, adjust this.
20779 if test -x /usr/bin/objformat; then
20780 objformat=`/usr/bin/objformat`
20781 else
20782 case $host_os in
20783 freebsd[23].*) objformat=aout ;;
20784 *) objformat=elf ;;
20785 esac
20786 fi
20787 version_type=freebsd-$objformat
20788 case $version_type in
20789 freebsd-elf*)
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791 need_version=no
20792 need_lib_prefix=no
20793 ;;
20794 freebsd-*)
20795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20796 need_version=yes
20797 ;;
20798 esac
20799 shlibpath_var=LD_LIBRARY_PATH
20800 case $host_os in
20801 freebsd2.*)
20802 shlibpath_overrides_runpath=yes
20803 ;;
20804 freebsd3.[01]* | freebsdelf3.[01]*)
20805 shlibpath_overrides_runpath=yes
20806 hardcode_into_libs=yes
20807 ;;
20808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20810 shlibpath_overrides_runpath=no
20811 hardcode_into_libs=yes
20812 ;;
20813 *) # from 4.6 on, and DragonFly
20814 shlibpath_overrides_runpath=yes
20815 hardcode_into_libs=yes
20816 ;;
20817 esac
20818 ;;
20819
20820 gnu*)
20821 version_type=linux
20822 need_lib_prefix=no
20823 need_version=no
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20825 soname_spec='${libname}${release}${shared_ext}$major'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 hardcode_into_libs=yes
20828 ;;
20829
20830 haiku*)
20831 version_type=linux
20832 need_lib_prefix=no
20833 need_version=no
20834 dynamic_linker="$host_os runtime_loader"
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 shlibpath_var=LIBRARY_PATH
20838 shlibpath_overrides_runpath=yes
20839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20840 hardcode_into_libs=yes
20841 ;;
20842
20843 hpux9* | hpux10* | hpux11*)
20844 # Give a soname corresponding to the major version so that dld.sl refuses to
20845 # link against other versions.
20846 version_type=sunos
20847 need_lib_prefix=no
20848 need_version=no
20849 case $host_cpu in
20850 ia64*)
20851 shrext_cmds='.so'
20852 hardcode_into_libs=yes
20853 dynamic_linker="$host_os dld.so"
20854 shlibpath_var=LD_LIBRARY_PATH
20855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 soname_spec='${libname}${release}${shared_ext}$major'
20858 if test "X$HPUX_IA64_MODE" = X32; then
20859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20860 else
20861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20862 fi
20863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20864 ;;
20865 hppa*64*)
20866 shrext_cmds='.sl'
20867 hardcode_into_libs=yes
20868 dynamic_linker="$host_os dld.sl"
20869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872 soname_spec='${libname}${release}${shared_ext}$major'
20873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20875 ;;
20876 *)
20877 shrext_cmds='.sl'
20878 dynamic_linker="$host_os dld.sl"
20879 shlibpath_var=SHLIB_PATH
20880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 ;;
20884 esac
20885 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20886 postinstall_cmds='chmod 555 $lib'
20887 # or fails outright, so override atomically:
20888 install_override_mode=555
20889 ;;
20890
20891 interix[3-9]*)
20892 version_type=linux
20893 need_lib_prefix=no
20894 need_version=no
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20898 shlibpath_var=LD_LIBRARY_PATH
20899 shlibpath_overrides_runpath=no
20900 hardcode_into_libs=yes
20901 ;;
20902
20903 irix5* | irix6* | nonstopux*)
20904 case $host_os in
20905 nonstopux*) version_type=nonstopux ;;
20906 *)
20907 if test "$lt_cv_prog_gnu_ld" = yes; then
20908 version_type=linux
20909 else
20910 version_type=irix
20911 fi ;;
20912 esac
20913 need_lib_prefix=no
20914 need_version=no
20915 soname_spec='${libname}${release}${shared_ext}$major'
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20917 case $host_os in
20918 irix5* | nonstopux*)
20919 libsuff= shlibsuff=
20920 ;;
20921 *)
20922 case $LD in # libtool.m4 will add one of these switches to LD
20923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20924 libsuff= shlibsuff= libmagic=32-bit;;
20925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20926 libsuff=32 shlibsuff=N32 libmagic=N32;;
20927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20929 *) libsuff= shlibsuff= libmagic=never-match;;
20930 esac
20931 ;;
20932 esac
20933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20934 shlibpath_overrides_runpath=no
20935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20937 hardcode_into_libs=yes
20938 ;;
20939
20940 # No shared lib support for Linux oldld, aout, or coff.
20941 linux*oldld* | linux*aout* | linux*coff*)
20942 dynamic_linker=no
20943 ;;
20944
20945 # This must be Linux ELF.
20946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20947 version_type=linux
20948 need_lib_prefix=no
20949 need_version=no
20950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 soname_spec='${libname}${release}${shared_ext}$major'
20952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=no
20955
20956 # Some binutils ld are patched to set DT_RUNPATH
20957 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20958 $as_echo_n "(cached) " >&6
20959 else
20960 lt_cv_shlibpath_overrides_runpath=no
20961 save_LDFLAGS=$LDFLAGS
20962 save_libdir=$libdir
20963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967
20968 int
20969 main ()
20970 {
20971
20972 ;
20973 return 0;
20974 }
20975 _ACEOF
20976 if ac_fn_cxx_try_link "$LINENO"; then :
20977 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20978 lt_cv_shlibpath_overrides_runpath=yes
20979 fi
20980 fi
20981 rm -f core conftest.err conftest.$ac_objext \
20982 conftest$ac_exeext conftest.$ac_ext
20983 LDFLAGS=$save_LDFLAGS
20984 libdir=$save_libdir
20985
20986 fi
20987
20988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20989
20990 # This implies no fast_install, which is unacceptable.
20991 # Some rework will be needed to allow for fast_install
20992 # before this can be enabled.
20993 hardcode_into_libs=yes
20994
20995 # Append ld.so.conf contents to the search path
20996 if test -f /etc/ld.so.conf; then
20997 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' ' '`
20998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20999 fi
21000
21001 # We used to test for /lib/ld.so.1 and disable shared libraries on
21002 # powerpc, because MkLinux only supported shared libraries with the
21003 # GNU dynamic linker. Since this was broken with cross compilers,
21004 # most powerpc-linux boxes support dynamic linking these days and
21005 # people can always --disable-shared, the test was removed, and we
21006 # assume the GNU/Linux dynamic linker is in use.
21007 dynamic_linker='GNU/Linux ld.so'
21008 ;;
21009
21010 netbsd*)
21011 version_type=sunos
21012 need_lib_prefix=no
21013 need_version=no
21014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21017 dynamic_linker='NetBSD (a.out) ld.so'
21018 else
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 dynamic_linker='NetBSD ld.elf_so'
21022 fi
21023 shlibpath_var=LD_LIBRARY_PATH
21024 shlibpath_overrides_runpath=yes
21025 hardcode_into_libs=yes
21026 ;;
21027
21028 newsos6)
21029 version_type=linux
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21031 shlibpath_var=LD_LIBRARY_PATH
21032 shlibpath_overrides_runpath=yes
21033 ;;
21034
21035 *nto* | *qnx*)
21036 version_type=qnx
21037 need_lib_prefix=no
21038 need_version=no
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040 soname_spec='${libname}${release}${shared_ext}$major'
21041 shlibpath_var=LD_LIBRARY_PATH
21042 shlibpath_overrides_runpath=no
21043 hardcode_into_libs=yes
21044 dynamic_linker='ldqnx.so'
21045 ;;
21046
21047 openbsd*)
21048 version_type=sunos
21049 sys_lib_dlsearch_path_spec="/usr/lib"
21050 need_lib_prefix=no
21051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21052 case $host_os in
21053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21054 *) need_version=no ;;
21055 esac
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21058 shlibpath_var=LD_LIBRARY_PATH
21059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21060 case $host_os in
21061 openbsd2.[89] | openbsd2.[89].*)
21062 shlibpath_overrides_runpath=no
21063 ;;
21064 *)
21065 shlibpath_overrides_runpath=yes
21066 ;;
21067 esac
21068 else
21069 shlibpath_overrides_runpath=yes
21070 fi
21071 ;;
21072
21073 os2*)
21074 libname_spec='$name'
21075 shrext_cmds=".dll"
21076 need_lib_prefix=no
21077 library_names_spec='$libname${shared_ext} $libname.a'
21078 dynamic_linker='OS/2 ld.exe'
21079 shlibpath_var=LIBPATH
21080 ;;
21081
21082 osf3* | osf4* | osf5*)
21083 version_type=osf
21084 need_lib_prefix=no
21085 need_version=no
21086 soname_spec='${libname}${release}${shared_ext}$major'
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21088 shlibpath_var=LD_LIBRARY_PATH
21089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21091 ;;
21092
21093 rdos*)
21094 dynamic_linker=no
21095 ;;
21096
21097 solaris*)
21098 version_type=linux
21099 need_lib_prefix=no
21100 need_version=no
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 shlibpath_var=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath=yes
21105 hardcode_into_libs=yes
21106 # ldd complains unless libraries are executable
21107 postinstall_cmds='chmod +x $lib'
21108 ;;
21109
21110 sunos4*)
21111 version_type=sunos
21112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21114 shlibpath_var=LD_LIBRARY_PATH
21115 shlibpath_overrides_runpath=yes
21116 if test "$with_gnu_ld" = yes; then
21117 need_lib_prefix=no
21118 fi
21119 need_version=yes
21120 ;;
21121
21122 sysv4 | sysv4.3*)
21123 version_type=linux
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125 soname_spec='${libname}${release}${shared_ext}$major'
21126 shlibpath_var=LD_LIBRARY_PATH
21127 case $host_vendor in
21128 sni)
21129 shlibpath_overrides_runpath=no
21130 need_lib_prefix=no
21131 runpath_var=LD_RUN_PATH
21132 ;;
21133 siemens)
21134 need_lib_prefix=no
21135 ;;
21136 motorola)
21137 need_lib_prefix=no
21138 need_version=no
21139 shlibpath_overrides_runpath=no
21140 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21141 ;;
21142 esac
21143 ;;
21144
21145 sysv4*MP*)
21146 if test -d /usr/nec ;then
21147 version_type=linux
21148 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21149 soname_spec='$libname${shared_ext}.$major'
21150 shlibpath_var=LD_LIBRARY_PATH
21151 fi
21152 ;;
21153
21154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21155 version_type=freebsd-elf
21156 need_lib_prefix=no
21157 need_version=no
21158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21159 soname_spec='${libname}${release}${shared_ext}$major'
21160 shlibpath_var=LD_LIBRARY_PATH
21161 shlibpath_overrides_runpath=yes
21162 hardcode_into_libs=yes
21163 if test "$with_gnu_ld" = yes; then
21164 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21165 else
21166 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21167 case $host_os in
21168 sco3.2v5*)
21169 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21170 ;;
21171 esac
21172 fi
21173 sys_lib_dlsearch_path_spec='/usr/lib'
21174 ;;
21175
21176 tpf*)
21177 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21178 version_type=linux
21179 need_lib_prefix=no
21180 need_version=no
21181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 shlibpath_var=LD_LIBRARY_PATH
21183 shlibpath_overrides_runpath=no
21184 hardcode_into_libs=yes
21185 ;;
21186
21187 uts4*)
21188 version_type=linux
21189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21190 soname_spec='${libname}${release}${shared_ext}$major'
21191 shlibpath_var=LD_LIBRARY_PATH
21192 ;;
21193
21194 *)
21195 dynamic_linker=no
21196 ;;
21197 esac
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21199 $as_echo "$dynamic_linker" >&6; }
21200 test "$dynamic_linker" = no && can_build_shared=no
21201
21202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21203 if test "$GCC" = yes; then
21204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21205 fi
21206
21207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21209 fi
21210 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21212 fi
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21252 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21253 hardcode_action_CXX=
21254 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21255 test -n "$runpath_var_CXX" ||
21256 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21257
21258 # We can hardcode non-existent directories.
21259 if test "$hardcode_direct_CXX" != no &&
21260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21261 # have to relink, otherwise we might link with an installed library
21262 # when we should be linking with a yet-to-be-installed one
21263 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21264 test "$hardcode_minus_L_CXX" != no; then
21265 # Linking always hardcodes the temporary library directory.
21266 hardcode_action_CXX=relink
21267 else
21268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21269 hardcode_action_CXX=immediate
21270 fi
21271 else
21272 # We cannot hardcode anything, or else we can only hardcode existing
21273 # directories.
21274 hardcode_action_CXX=unsupported
21275 fi
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21277 $as_echo "$hardcode_action_CXX" >&6; }
21278
21279 if test "$hardcode_action_CXX" = relink ||
21280 test "$inherit_rpath_CXX" = yes; then
21281 # Fast installation is not supported
21282 enable_fast_install=no
21283 elif test "$shlibpath_overrides_runpath" = yes ||
21284 test "$enable_shared" = no; then
21285 # Fast installation is not necessary
21286 enable_fast_install=needless
21287 fi
21288
21289
21290
21291
21292
21293
21294
21295 fi # test -n "$compiler"
21296
21297 CC=$lt_save_CC
21298 LDCXX=$LD
21299 LD=$lt_save_LD
21300 GCC=$lt_save_GCC
21301 with_gnu_ld=$lt_save_with_gnu_ld
21302 lt_cv_path_LDCXX=$lt_cv_path_LD
21303 lt_cv_path_LD=$lt_save_path_LD
21304 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21305 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21306 fi # test "$_lt_caught_CXX_error" != yes
21307
21308 ac_ext=c
21309 ac_cpp='$CPP $CPPFLAGS'
21310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329 # Only expand once:
21330
21331
21332
21333
21334
21335 # Identify the assembler which will work hand-in-glove with the newly
21336 # built GCC, so that we can examine its features. This is the assembler
21337 # which will be driven by the driver program.
21338 #
21339 # If build != host, and we aren't building gas in-tree, we identify a
21340 # build->target assembler and hope that it will have the same features
21341 # as the host->target assembler we'll be using.
21342 gcc_cv_gas_major_version=
21343 gcc_cv_gas_minor_version=
21344 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21345
21346 if test "${gcc_cv_as+set}" = set; then :
21347
21348 else
21349
21350 if test -x "$DEFAULT_ASSEMBLER"; then
21351 gcc_cv_as="$DEFAULT_ASSEMBLER"
21352 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21353 && test -f ../gas/Makefile \
21354 && test x$build = x$host; then
21355 gcc_cv_as=../gas/as-new$build_exeext
21356 elif test -x as$build_exeext; then
21357 # Build using assembler in the current directory.
21358 gcc_cv_as=./as$build_exeext
21359 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21360 gcc_cv_as="$AS_FOR_TARGET"
21361 else
21362 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21363 set dummy $AS_FOR_TARGET; ac_word=$2
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21365 $as_echo_n "checking for $ac_word... " >&6; }
21366 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21367 $as_echo_n "(cached) " >&6
21368 else
21369 case $gcc_cv_as in
21370 [\\/]* | ?:[\\/]*)
21371 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21372 ;;
21373 *)
21374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21375 for as_dir in $PATH
21376 do
21377 IFS=$as_save_IFS
21378 test -z "$as_dir" && as_dir=.
21379 for ac_exec_ext in '' $ac_executable_extensions; do
21380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21381 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21383 break 2
21384 fi
21385 done
21386 done
21387 IFS=$as_save_IFS
21388
21389 ;;
21390 esac
21391 fi
21392 gcc_cv_as=$ac_cv_path_gcc_cv_as
21393 if test -n "$gcc_cv_as"; then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21395 $as_echo "$gcc_cv_as" >&6; }
21396 else
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21398 $as_echo "no" >&6; }
21399 fi
21400
21401
21402 fi
21403 fi
21404
21405 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21406
21407 case "$ORIGINAL_AS_FOR_TARGET" in
21408 ./as | ./as$build_exeext) ;;
21409 *) ac_config_files="$ac_config_files as:exec-tool.in"
21410 ;;
21411 esac
21412
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21414 $as_echo_n "checking what assembler to use... " >&6; }
21415 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21416 # Single tree build which includes gas. We want to prefer it
21417 # over whatever linker top-level may have detected, since
21418 # we'll use what we're building after installation anyway.
21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21420 $as_echo "newly built gas" >&6; }
21421 in_tree_gas=yes
21422 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21423 for f in $gcc_cv_as_bfd_srcdir/configure \
21424 $gcc_cv_as_gas_srcdir/configure \
21425 $gcc_cv_as_gas_srcdir/configure.in \
21426 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21427 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21428 if test x$gcc_cv_gas_version != x; then
21429 break
21430 fi
21431 done
21432 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21433 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21434 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21435 case $gcc_cv_gas_patch_version in
21436 "") gcc_cv_gas_patch_version="0" ;;
21437 esac
21438 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21439 + $gcc_cv_gas_minor_version \) \* 1000 \
21440 + $gcc_cv_gas_patch_version`
21441
21442 in_tree_gas_is_elf=no
21443 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21444 || (grep 'obj_format = multi' ../gas/Makefile \
21445 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21446 then
21447 in_tree_gas_is_elf=yes
21448 fi
21449 else
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21451 $as_echo "$gcc_cv_as" >&6; }
21452 in_tree_gas=no
21453 fi
21454
21455 # Identify the linker which will work hand-in-glove with the newly
21456 # built GCC, so that we can examine its features. This is the linker
21457 # which will be driven by the driver program.
21458 #
21459 # If build != host, and we aren't building gas in-tree, we identify a
21460 # build->target linker and hope that it will have the same features
21461 # as the host->target linker we'll be using.
21462 gcc_cv_gld_major_version=
21463 gcc_cv_gld_minor_version=
21464 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21465 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21466
21467 if test "${gcc_cv_ld+set}" = set; then :
21468
21469 else
21470
21471 if test -x "$DEFAULT_LINKER"; then
21472 gcc_cv_ld="$DEFAULT_LINKER"
21473 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21474 && test -f ../ld/Makefile \
21475 && test x$build = x$host; then
21476 gcc_cv_ld=../ld/ld-new$build_exeext
21477 elif test -x collect-ld$build_exeext; then
21478 # Build using linker in the current directory.
21479 gcc_cv_ld=./collect-ld$build_exeext
21480 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21481 gcc_cv_ld="$LD_FOR_TARGET"
21482 else
21483 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21484 set dummy $LD_FOR_TARGET; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 case $gcc_cv_ld in
21491 [\\/]* | ?:[\\/]*)
21492 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21493 ;;
21494 *)
21495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 for as_dir in $PATH
21497 do
21498 IFS=$as_save_IFS
21499 test -z "$as_dir" && as_dir=.
21500 for ac_exec_ext in '' $ac_executable_extensions; do
21501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21504 break 2
21505 fi
21506 done
21507 done
21508 IFS=$as_save_IFS
21509
21510 ;;
21511 esac
21512 fi
21513 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21514 if test -n "$gcc_cv_ld"; then
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21516 $as_echo "$gcc_cv_ld" >&6; }
21517 else
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21520 fi
21521
21522
21523 fi
21524 fi
21525
21526 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21527 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21528
21529 # Check whether --with-plugin-ld was given.
21530 if test "${with_plugin_ld+set}" = set; then :
21531 withval=$with_plugin_ld; if test x"$withval" != x; then
21532 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21533 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21534 fi
21535 fi
21536
21537
21538
21539 cat >>confdefs.h <<_ACEOF
21540 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21541 _ACEOF
21542
21543
21544 # Check to see if we are using gold instead of ld
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21546 $as_echo_n "checking whether we are using gold... " >&6; }
21547 ld_is_gold=no
21548 if test x$gcc_cv_ld != x; then
21549 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21550 | grep "GNU gold" > /dev/null; then
21551 ld_is_gold=yes
21552 fi
21553 fi
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21555 $as_echo "$ld_is_gold" >&6; }
21556
21557 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21558
21559 case "$ORIGINAL_LD_FOR_TARGET" in
21560 ./collect-ld | ./collect-ld$build_exeext) ;;
21561 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21562 ;;
21563 esac
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21566 $as_echo_n "checking what linker to use... " >&6; }
21567 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21568 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21569 # Single tree build which includes ld. We want to prefer it
21570 # over whatever linker top-level may have detected, since
21571 # we'll use what we're building after installation anyway.
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21573 $as_echo "newly built ld" >&6; }
21574 in_tree_ld=yes
21575 in_tree_ld_is_elf=no
21576 if (grep 'EMUL = .*elf' ../ld/Makefile \
21577 || grep 'EMUL = .*linux' ../ld/Makefile \
21578 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21579 in_tree_ld_is_elf=yes
21580 elif test "$ld_is_gold" = yes; then
21581 in_tree_ld_is_elf=yes
21582 fi
21583 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
21584 do
21585 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21586 if test x$gcc_cv_gld_version != x; then
21587 break
21588 fi
21589 done
21590 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21591 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21592 else
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21594 $as_echo "$gcc_cv_ld" >&6; }
21595 in_tree_ld=no
21596 fi
21597
21598 # Figure out what nm we will be using.
21599 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21600 if test "${gcc_cv_nm+set}" = set; then :
21601
21602 else
21603
21604 if test -f $gcc_cv_binutils_srcdir/configure.in \
21605 && test -f ../binutils/Makefile \
21606 && test x$build = x$host; then
21607 gcc_cv_nm=../binutils/nm-new$build_exeext
21608 elif test -x nm$build_exeext; then
21609 gcc_cv_nm=./nm$build_exeext
21610 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21611 gcc_cv_nm="$NM_FOR_TARGET"
21612 else
21613 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21614 set dummy $NM_FOR_TARGET; ac_word=$2
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21616 $as_echo_n "checking for $ac_word... " >&6; }
21617 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21619 else
21620 case $gcc_cv_nm in
21621 [\\/]* | ?:[\\/]*)
21622 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21623 ;;
21624 *)
21625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21626 for as_dir in $PATH
21627 do
21628 IFS=$as_save_IFS
21629 test -z "$as_dir" && as_dir=.
21630 for ac_exec_ext in '' $ac_executable_extensions; do
21631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21632 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21634 break 2
21635 fi
21636 done
21637 done
21638 IFS=$as_save_IFS
21639
21640 ;;
21641 esac
21642 fi
21643 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21644 if test -n "$gcc_cv_nm"; then
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21646 $as_echo "$gcc_cv_nm" >&6; }
21647 else
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21649 $as_echo "no" >&6; }
21650 fi
21651
21652
21653 fi
21654 fi
21655
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21657 $as_echo_n "checking what nm to use... " >&6; }
21658 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21659 # Single tree build which includes binutils.
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21661 $as_echo "newly built nm" >&6; }
21662 in_tree_nm=yes
21663 else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21665 $as_echo "$gcc_cv_nm" >&6; }
21666 in_tree_nm=no
21667 fi
21668
21669 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21670
21671 case "$ORIGINAL_NM_FOR_TARGET" in
21672 ./nm | ./nm$build_exeext) ;;
21673 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21674 ;;
21675 esac
21676
21677
21678 # Figure out what objdump we will be using.
21679 if test "${gcc_cv_objdump+set}" = set; then :
21680
21681 else
21682
21683 if test -f $gcc_cv_binutils_srcdir/configure.in \
21684 && test -f ../binutils/Makefile \
21685 && test x$build = x$host; then
21686 # Single tree build which includes binutils.
21687 gcc_cv_objdump=../binutils/objdump$build_exeext
21688 elif test -x objdump$build_exeext; then
21689 gcc_cv_objdump=./objdump$build_exeext
21690 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21691 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21692 else
21693 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21694 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21696 $as_echo_n "checking for $ac_word... " >&6; }
21697 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21698 $as_echo_n "(cached) " >&6
21699 else
21700 case $gcc_cv_objdump in
21701 [\\/]* | ?:[\\/]*)
21702 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21703 ;;
21704 *)
21705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21706 for as_dir in $PATH
21707 do
21708 IFS=$as_save_IFS
21709 test -z "$as_dir" && as_dir=.
21710 for ac_exec_ext in '' $ac_executable_extensions; do
21711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21712 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21714 break 2
21715 fi
21716 done
21717 done
21718 IFS=$as_save_IFS
21719
21720 ;;
21721 esac
21722 fi
21723 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21724 if test -n "$gcc_cv_objdump"; then
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21726 $as_echo "$gcc_cv_objdump" >&6; }
21727 else
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21729 $as_echo "no" >&6; }
21730 fi
21731
21732
21733 fi
21734 fi
21735
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21737 $as_echo_n "checking what objdump to use... " >&6; }
21738 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21739 # Single tree build which includes binutils.
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21741 $as_echo "newly built objdump" >&6; }
21742 elif test x$gcc_cv_objdump = x; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21744 $as_echo "not found" >&6; }
21745 else
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21747 $as_echo "$gcc_cv_objdump" >&6; }
21748 fi
21749
21750 # Figure out what readelf we will be using.
21751 if test "${gcc_cv_readelf+set}" = set; then :
21752
21753 else
21754
21755 if test -f $gcc_cv_binutils_srcdir/configure.in \
21756 && test -f ../binutils/Makefile \
21757 && test x$build = x$host; then
21758 # Single tree build which includes binutils.
21759 gcc_cv_readelf=../binutils/readelf$build_exeext
21760 elif test -x readelf$build_exeext; then
21761 gcc_cv_readelf=./readelf$build_exeext
21762 else
21763 # Extract the first word of "readelf", so it can be a program name with args.
21764 set dummy readelf; ac_word=$2
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21766 $as_echo_n "checking for $ac_word... " >&6; }
21767 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21768 $as_echo_n "(cached) " >&6
21769 else
21770 case $gcc_cv_readelf in
21771 [\\/]* | ?:[\\/]*)
21772 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21773 ;;
21774 *)
21775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21776 for as_dir in $PATH
21777 do
21778 IFS=$as_save_IFS
21779 test -z "$as_dir" && as_dir=.
21780 for ac_exec_ext in '' $ac_executable_extensions; do
21781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21782 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21784 break 2
21785 fi
21786 done
21787 done
21788 IFS=$as_save_IFS
21789
21790 ;;
21791 esac
21792 fi
21793 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21794 if test -n "$gcc_cv_readelf"; then
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21796 $as_echo "$gcc_cv_readelf" >&6; }
21797 else
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21799 $as_echo "no" >&6; }
21800 fi
21801
21802
21803 fi
21804 fi
21805
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21807 $as_echo_n "checking what readelf to use... " >&6; }
21808 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21809 # Single tree build which includes binutils.
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21811 $as_echo "newly built readelf" >&6; }
21812 elif test x$gcc_cv_readelf = x; then
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21814 $as_echo "not found" >&6; }
21815 else
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21817 $as_echo "$gcc_cv_readelf" >&6; }
21818 fi
21819
21820 # Figure out what assembler alignment features are present.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21822 $as_echo_n "checking assembler flags... " >&6; }
21823 if test "${gcc_cv_as_flags+set}" = set; then :
21824 $as_echo_n "(cached) " >&6
21825 else
21826 case "$target" in
21827 i[34567]86-*-linux*)
21828 gcc_cv_as_flags="--32"
21829 ;;
21830 powerpc*-*-darwin*)
21831 gcc_cv_as_flags="-arch ppc"
21832 ;;
21833 *)
21834 gcc_cv_as_flags=" "
21835 ;;
21836 esac
21837 fi
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21839 $as_echo "$gcc_cv_as_flags" >&6; }
21840
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21842 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21843 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21845 else
21846 gcc_cv_as_balign_and_p2align=no
21847 if test $in_tree_gas = yes; then
21848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21849 then gcc_cv_as_balign_and_p2align=yes
21850 fi
21851 elif test x$gcc_cv_as != x; then
21852 $as_echo '.balign 4
21853 .p2align 2' > conftest.s
21854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21859 test $ac_status = 0; }; }
21860 then
21861 gcc_cv_as_balign_and_p2align=yes
21862 else
21863 echo "configure: failed program was" >&5
21864 cat conftest.s >&5
21865 fi
21866 rm -f conftest.o conftest.s
21867 fi
21868 fi
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21870 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21871 if test $gcc_cv_as_balign_and_p2align = yes; then
21872
21873 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21874
21875 fi
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21878 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21879 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21881 else
21882 gcc_cv_as_max_skip_p2align=no
21883 if test $in_tree_gas = yes; then
21884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21885 then gcc_cv_as_max_skip_p2align=yes
21886 fi
21887 elif test x$gcc_cv_as != x; then
21888 $as_echo '.p2align 4,,7' > conftest.s
21889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21894 test $ac_status = 0; }; }
21895 then
21896 gcc_cv_as_max_skip_p2align=yes
21897 else
21898 echo "configure: failed program was" >&5
21899 cat conftest.s >&5
21900 fi
21901 rm -f conftest.o conftest.s
21902 fi
21903 fi
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21905 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21906 if test $gcc_cv_as_max_skip_p2align = yes; then
21907
21908 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21909
21910 fi
21911
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21913 $as_echo_n "checking assembler for .literal16... " >&6; }
21914 if test "${gcc_cv_as_literal16+set}" = set; then :
21915 $as_echo_n "(cached) " >&6
21916 else
21917 gcc_cv_as_literal16=no
21918 if test $in_tree_gas = yes; then
21919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21920 then gcc_cv_as_literal16=yes
21921 fi
21922 elif test x$gcc_cv_as != x; then
21923 $as_echo '.literal16' > conftest.s
21924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21929 test $ac_status = 0; }; }
21930 then
21931 gcc_cv_as_literal16=yes
21932 else
21933 echo "configure: failed program was" >&5
21934 cat conftest.s >&5
21935 fi
21936 rm -f conftest.o conftest.s
21937 fi
21938 fi
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21940 $as_echo "$gcc_cv_as_literal16" >&6; }
21941 if test $gcc_cv_as_literal16 = yes; then
21942
21943 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21944
21945 fi
21946
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21948 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21949 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21951 else
21952 gcc_cv_as_subsection_m1=no
21953 if test $in_tree_gas = yes; then
21954 if test $in_tree_gas_is_elf = yes \
21955 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21956 then gcc_cv_as_subsection_m1=yes
21957 fi
21958 elif test x$gcc_cv_as != x; then
21959 $as_echo 'conftest_label1: .word 0
21960 .subsection -1
21961 conftest_label2: .word 0
21962 .previous' > conftest.s
21963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21965 (eval $ac_try) 2>&5
21966 ac_status=$?
21967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21968 test $ac_status = 0; }; }
21969 then
21970 if test x$gcc_cv_nm != x; then
21971 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21972 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21973 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21974 then :
21975 else gcc_cv_as_subsection_m1=yes
21976 fi
21977 rm -f conftest.nm1 conftest.nm2
21978 fi
21979 else
21980 echo "configure: failed program was" >&5
21981 cat conftest.s >&5
21982 fi
21983 rm -f conftest.o conftest.s
21984 fi
21985 fi
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21987 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21988 if test $gcc_cv_as_subsection_m1 = yes; then
21989
21990 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21991
21992 fi
21993
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21995 $as_echo_n "checking assembler for .weak... " >&6; }
21996 if test "${gcc_cv_as_weak+set}" = set; then :
21997 $as_echo_n "(cached) " >&6
21998 else
21999 gcc_cv_as_weak=no
22000 if test $in_tree_gas = yes; then
22001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22002 then gcc_cv_as_weak=yes
22003 fi
22004 elif test x$gcc_cv_as != x; then
22005 $as_echo ' .weak foobar' > conftest.s
22006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22011 test $ac_status = 0; }; }
22012 then
22013 gcc_cv_as_weak=yes
22014 else
22015 echo "configure: failed program was" >&5
22016 cat conftest.s >&5
22017 fi
22018 rm -f conftest.o conftest.s
22019 fi
22020 fi
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22022 $as_echo "$gcc_cv_as_weak" >&6; }
22023 if test $gcc_cv_as_weak = yes; then
22024
22025 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22026
22027 fi
22028
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22030 $as_echo_n "checking assembler for .weakref... " >&6; }
22031 if test "${gcc_cv_as_weakref+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 gcc_cv_as_weakref=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22037 then gcc_cv_as_weakref=yes
22038 fi
22039 elif test x$gcc_cv_as != x; then
22040 $as_echo ' .weakref foobar, barfnot' > conftest.s
22041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22047 then
22048 gcc_cv_as_weakref=yes
22049 else
22050 echo "configure: failed program was" >&5
22051 cat conftest.s >&5
22052 fi
22053 rm -f conftest.o conftest.s
22054 fi
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22057 $as_echo "$gcc_cv_as_weakref" >&6; }
22058 if test $gcc_cv_as_weakref = yes; then
22059
22060 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22061
22062 fi
22063
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22065 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22066 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 gcc_cv_as_nsubspa_comdat=no
22070 if test $in_tree_gas = yes; then
22071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22072 then gcc_cv_as_nsubspa_comdat=yes
22073 fi
22074 elif test x$gcc_cv_as != x; then
22075 $as_echo ' .SPACE $TEXT$
22076 .NSUBSPA $CODE$,COMDAT' > conftest.s
22077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22083 then
22084 gcc_cv_as_nsubspa_comdat=yes
22085 else
22086 echo "configure: failed program was" >&5
22087 cat conftest.s >&5
22088 fi
22089 rm -f conftest.o conftest.s
22090 fi
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22093 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22094 if test $gcc_cv_as_nsubspa_comdat = yes; then
22095
22096 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22097
22098 fi
22099
22100 # .hidden needs to be supported in both the assembler and the linker,
22101 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22102 # This is irritatingly difficult to feature test for; we have to check the
22103 # date string after the version number. If we've got an in-tree
22104 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22105 # to be safe.
22106 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22108 $as_echo_n "checking assembler for .hidden... " >&6; }
22109 if test "${gcc_cv_as_hidden+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22111 else
22112 gcc_cv_as_hidden=no
22113 if test $in_tree_gas = yes; then
22114 if test $in_tree_gas_is_elf = yes \
22115 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22116 then gcc_cv_as_hidden=yes
22117 fi
22118 elif test x$gcc_cv_as != x; then
22119 $as_echo ' .hidden foobar
22120 foobar:' > conftest.s
22121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22126 test $ac_status = 0; }; }
22127 then
22128
22129 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22130 # STV_HIDDEN, so disable .hidden support if so.
22131 case "${target}" in
22132 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22133 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22134 cat > conftest.s <<EOF
22135 .globl hidden
22136 .hidden hidden
22137 hidden:
22138 .globl default
22139 .set default,hidden
22140 EOF
22141 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22142 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22143 grep '\.hidden default' > /dev/null; then
22144 gcc_cv_as_hidden=no
22145 else
22146 gcc_cv_as_hidden=yes
22147 fi
22148 else
22149 # Assume bug is present if objdump is missing.
22150 gcc_cv_as_hidden=no
22151 fi
22152 ;;
22153 *)
22154 gcc_cv_as_hidden=yes
22155 ;;
22156 esac
22157 else
22158 echo "configure: failed program was" >&5
22159 cat conftest.s >&5
22160 fi
22161 rm -f conftest.o conftest.s
22162 fi
22163 fi
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22165 $as_echo "$gcc_cv_as_hidden" >&6; }
22166
22167 case "${target}" in
22168 *-*-darwin*)
22169 # Darwin as has some visibility support, though with a different syntax.
22170 gcc_cv_as_hidden=yes
22171 ;;
22172 esac
22173
22174 # gnu_indirect_function type is an extension proposed at
22175 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22176 # selection of function implementation
22177 # Check whether --enable-gnu-indirect-function was given.
22178 if test "${enable_gnu_indirect_function+set}" = set; then :
22179 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22180 yes | no) ;;
22181 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22182 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22183 esac
22184 else
22185 enable_gnu_indirect_function="$default_gnu_indirect_function"
22186 fi
22187
22188 if test x$enable_gnu_indirect_function = xyes; then
22189
22190 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22191
22192 fi
22193
22194 if test $in_tree_ld != yes ; then
22195 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22196 if echo "$ld_ver" | grep GNU > /dev/null; then
22197 if test x"$ld_is_gold" = xyes; then
22198 # GNU gold --version looks like this:
22199 #
22200 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22201 #
22202 # We extract the binutils version which is more familiar and specific
22203 # than the gold version.
22204 ld_vers=`echo $ld_ver | sed -n \
22205 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22206 else
22207 # GNU ld --version looks like this:
22208 #
22209 # GNU ld (GNU Binutils) 2.21.51.20110225
22210 ld_vers=`echo $ld_ver | sed -n \
22211 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22212 fi
22213 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'`
22214 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22215 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22216 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22217 else
22218 case "${target}" in
22219 *-*-solaris2*)
22220 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22221 # format.
22222 #
22223 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22224 # /usr/ccs/bin/ld has been configured.
22225 ld_ver=`$gcc_cv_ld -V 2>&1`
22226 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22227 ld_vers=`echo $ld_ver | sed -n \
22228 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22229 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22230 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22231 fi
22232 ;;
22233 esac
22234 fi
22235 fi
22236
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22238 $as_echo_n "checking linker for .hidden support... " >&6; }
22239 if test "${gcc_cv_ld_hidden+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22241 else
22242 if test $in_tree_ld = yes ; then
22243 gcc_cv_ld_hidden=no
22244 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 \
22245 && test $in_tree_ld_is_elf = yes; then
22246 gcc_cv_ld_hidden=yes
22247 fi
22248 else
22249 gcc_cv_ld_hidden=yes
22250 if test x"$ld_is_gold" = xyes; then
22251 :
22252 elif echo "$ld_ver" | grep GNU > /dev/null; then
22253 if test 0"$ld_date" -lt 20020404; then
22254 if test -n "$ld_date"; then
22255 # If there was date string, but was earlier than 2002-04-04, fail
22256 gcc_cv_ld_hidden=no
22257 elif test -z "$ld_vers"; then
22258 # If there was no date string nor ld version number, something is wrong
22259 gcc_cv_ld_hidden=no
22260 else
22261 test -z "$ld_vers_patch" && ld_vers_patch=0
22262 if test "$ld_vers_major" -lt 2; then
22263 gcc_cv_ld_hidden=no
22264 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22265 gcc_cv_ld_hidden="no"
22266 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22267 gcc_cv_ld_hidden=no
22268 fi
22269 fi
22270 fi
22271 else
22272 case "${target}" in
22273 *-*-darwin*)
22274 # Darwin ld has some visibility support.
22275 gcc_cv_ld_hidden=yes
22276 ;;
22277 hppa64*-*-hpux* | ia64*-*-hpux*)
22278 gcc_cv_ld_hidden=yes
22279 ;;
22280 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22281 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22282 # .symbolic was only added in Solaris 9 12/02.
22283 gcc_cv_ld_hidden=yes
22284 ;;
22285 *)
22286 gcc_cv_ld_hidden=no
22287 ;;
22288 esac
22289 fi
22290 fi
22291 fi
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22293 $as_echo "$gcc_cv_ld_hidden" >&6; }
22294 libgcc_visibility=no
22295
22296
22297 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22298 libgcc_visibility=yes
22299
22300 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22301
22302 fi
22303
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22305 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22306 gcc_cv_ld_ro_rw_mix=unknown
22307 if test $in_tree_ld = yes ; then
22308 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 \
22309 && test $in_tree_ld_is_elf = yes; then
22310 gcc_cv_ld_ro_rw_mix=read-write
22311 fi
22312 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22313 echo '.section myfoosect, "a"' > conftest1.s
22314 echo '.section myfoosect, "aw"' > conftest2.s
22315 echo '.byte 1' >> conftest2.s
22316 echo '.section myfoosect, "a"' > conftest3.s
22317 echo '.byte 0' >> conftest3.s
22318 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22319 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22320 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22321 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22322 conftest2.o conftest3.o > /dev/null 2>&1; then
22323 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22324 | sed -e '/myfoosect/!d' -e N`
22325 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22326 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22327 gcc_cv_ld_ro_rw_mix=read-only
22328 else
22329 gcc_cv_ld_ro_rw_mix=read-write
22330 fi
22331 fi
22332 fi
22333 rm -f conftest.* conftest[123].*
22334 fi
22335 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22336
22337 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22338
22339 fi
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22341 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22342
22343 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22344 case "${target}" in
22345 *-*-solaris2*)
22346 #
22347 # Solaris 2 ld -V output looks like this for a regular version:
22348 #
22349 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22350 #
22351 # but test versions add stuff at the end:
22352 #
22353 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22354 #
22355 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22356 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22357 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22358 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22359 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22360 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22361 fi
22362 ;;
22363 esac
22364 fi
22365
22366 # Check whether --enable-initfini-array was given.
22367 if test "${enable_initfini_array+set}" = set; then :
22368 enableval=$enable_initfini_array;
22369 else
22370
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22372 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22373 if test "${gcc_cv_initfini_array+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22377 case "${target}" in
22378 ia64-*)
22379 if test "$cross_compiling" = yes; then :
22380 gcc_cv_initfini_array=no
22381 else
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384
22385 #ifndef __ELF__
22386 #error Not an ELF OS
22387 #endif
22388 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22389 if it can be used. */
22390 static int x = -1;
22391 int main (void) { return x; }
22392 int foo (void) { x = 0; }
22393 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22394
22395 _ACEOF
22396 if ac_fn_c_try_run "$LINENO"; then :
22397 gcc_cv_initfini_array=yes
22398 else
22399 gcc_cv_initfini_array=no
22400 fi
22401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22402 conftest.$ac_objext conftest.beam conftest.$ac_ext
22403 fi
22404 ;;
22405 *)
22406 gcc_cv_initfini_array=no
22407 if test $in_tree_ld = yes ; then
22408 if test "$gcc_cv_gld_major_version" -eq 2 \
22409 -a "$gcc_cv_gld_minor_version" -ge 22 \
22410 -o "$gcc_cv_gld_major_version" -gt 2 \
22411 && test $in_tree_ld_is_elf = yes; then
22412 gcc_cv_initfini_array=yes
22413 fi
22414 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22415 cat > conftest.s <<\EOF
22416 .section .dtors,"a",%progbits
22417 .balign 4
22418 .byte 'A', 'A', 'A', 'A'
22419 .section .ctors,"a",%progbits
22420 .balign 4
22421 .byte 'B', 'B', 'B', 'B'
22422 .section .fini_array.65530,"a",%progbits
22423 .balign 4
22424 .byte 'C', 'C', 'C', 'C'
22425 .section .init_array.65530,"a",%progbits
22426 .balign 4
22427 .byte 'D', 'D', 'D', 'D'
22428 .section .dtors.64528,"a",%progbits
22429 .balign 4
22430 .byte 'E', 'E', 'E', 'E'
22431 .section .ctors.64528,"a",%progbits
22432 .balign 4
22433 .byte 'F', 'F', 'F', 'F'
22434 .section .fini_array.01005,"a",%progbits
22435 .balign 4
22436 .byte 'G', 'G', 'G', 'G'
22437 .section .init_array.01005,"a",%progbits
22438 .balign 4
22439 .byte 'H', 'H', 'H', 'H'
22440 .text
22441 .globl _start
22442 _start:
22443 EOF
22444 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22445 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22446 && $gcc_cv_objdump -s -j .init_array conftest \
22447 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22448 && $gcc_cv_objdump -s -j .fini_array conftest \
22449 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22450 gcc_cv_initfini_array=yes
22451 fi
22452 rm -f conftest conftest.*
22453 fi
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22456
22457 #ifndef __ELF__
22458 # error Not an ELF OS
22459 #endif
22460 #include <stdlib.h>
22461 #if defined __GLIBC_PREREQ
22462 # if __GLIBC_PREREQ (2, 4)
22463 # else
22464 # error GLIBC 2.4 required
22465 # endif
22466 #else
22467 # if defined __sun__ && defined __svr4__
22468 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22469 # else
22470 # error The C library not known to support .init_array/.fini_array
22471 # endif
22472 #endif
22473
22474 _ACEOF
22475 if ac_fn_c_try_cpp "$LINENO"; then :
22476
22477 else
22478 gcc_cv_initfini_array=no
22479 fi
22480 rm -f conftest.err conftest.$ac_ext;;
22481 esac
22482 else
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22484 $as_echo_n "checking cross compile... guessing... " >&6; }
22485 gcc_cv_initfini_array=no
22486 fi
22487 fi
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22489 $as_echo "$gcc_cv_initfini_array" >&6; }
22490 enable_initfini_array=$gcc_cv_initfini_array
22491
22492 fi
22493
22494 if test $enable_initfini_array = yes; then
22495
22496 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22497
22498 fi
22499
22500 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22502 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22503 if test "${gcc_cv_as_leb128+set}" = set; then :
22504 $as_echo_n "(cached) " >&6
22505 else
22506 gcc_cv_as_leb128=no
22507 if test $in_tree_gas = yes; then
22508 if test $in_tree_gas_is_elf = yes \
22509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22510 then gcc_cv_as_leb128=yes
22511 fi
22512 elif test x$gcc_cv_as != x; then
22513 $as_echo ' .data
22514 .uleb128 L2 - L1
22515 L1:
22516 .uleb128 1280
22517 .sleb128 -1010
22518 L2:' > conftest.s
22519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22525 then
22526 # GAS versions before 2.11 do not support uleb128,
22527 # despite appearing to.
22528 # ??? There exists an elf-specific test that will crash
22529 # the assembler. Perhaps it's better to figure out whether
22530 # arbitrary sections are supported and try the test.
22531 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22532 if echo "$as_ver" | grep GNU > /dev/null; then
22533 as_vers=`echo $as_ver | sed -n \
22534 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22535 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22536 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22537 if test $as_major -eq 2 && test $as_minor -lt 11
22538 then :
22539 else gcc_cv_as_leb128=yes
22540 fi
22541 fi
22542 else
22543 echo "configure: failed program was" >&5
22544 cat conftest.s >&5
22545 fi
22546 rm -f conftest.o conftest.s
22547 fi
22548 fi
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22550 $as_echo "$gcc_cv_as_leb128" >&6; }
22551 if test $gcc_cv_as_leb128 = yes; then
22552
22553 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22554
22555 fi
22556
22557 # Check if we have assembler support for unwind directives.
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22559 $as_echo_n "checking assembler for cfi directives... " >&6; }
22560 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 gcc_cv_as_cfi_directive=no
22564 if test x$gcc_cv_as != x; then
22565 $as_echo ' .text
22566 .cfi_startproc
22567 .cfi_offset 0, 0
22568 .cfi_same_value 1
22569 .cfi_def_cfa 1, 2
22570 .cfi_escape 1, 2, 3, 4, 5
22571 .cfi_endproc' > conftest.s
22572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; }
22578 then
22579 case "$target" in
22580 *-*-solaris*)
22581 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22582 # read-only and read-write sections, we need to make sure that the
22583 # assembler used emits read-write .eh_frame sections.
22584 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22585 if test "x$gcc_cv_objdump" != x; then
22586 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22587 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22588 gcc_cv_as_cfi_directive=no
22589 else
22590 case "$target" in
22591 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22592 # On Solaris/x86, make sure that GCC and gas agree on using
22593 # read-only .eh_frame sections for 64-bit.
22594 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22595 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22596 sed -e /.eh_frame/!d -e N | \
22597 grep READONLY > /dev/null; then
22598 gcc_cv_as_cfi_directive=yes
22599 else
22600 gcc_cv_as_cfi_directive=no
22601 fi
22602 ;;
22603 *)
22604 gcc_cv_as_cfi_directive=yes
22605 ;;
22606 esac
22607 fi
22608 else
22609 # no objdump, err on the side of caution
22610 gcc_cv_as_cfi_directive=no
22611 fi
22612 else
22613 gcc_cv_as_cfi_directive=yes
22614 fi
22615 ;;
22616 *-*-*)
22617 gcc_cv_as_cfi_directive=yes
22618 ;;
22619 esac
22620 else
22621 echo "configure: failed program was" >&5
22622 cat conftest.s >&5
22623 fi
22624 rm -f conftest.o conftest.s
22625 fi
22626 fi
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22628 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22629
22630 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22632 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22633 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 gcc_cv_as_cfi_advance_working=no
22637 if test x$gcc_cv_as != x; then
22638 $as_echo ' .text
22639 .cfi_startproc
22640 .cfi_adjust_cfa_offset 64
22641 .skip 75040, 0
22642 .cfi_adjust_cfa_offset 128
22643 .cfi_endproc' > conftest.s
22644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649 test $ac_status = 0; }; }
22650 then
22651
22652 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22653 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22654 gcc_cv_as_cfi_advance_working=yes
22655 fi
22656
22657 else
22658 echo "configure: failed program was" >&5
22659 cat conftest.s >&5
22660 fi
22661 rm -f conftest.o conftest.s
22662 fi
22663 fi
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22665 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22666
22667 else
22668 # no objdump, err on the side of caution
22669 gcc_cv_as_cfi_advance_working=no
22670 fi
22671
22672
22673 cat >>confdefs.h <<_ACEOF
22674 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22675 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22676 _ACEOF
22677
22678
22679
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22681 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22682 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22684 else
22685 gcc_cv_as_cfi_personality_directive=no
22686 if test x$gcc_cv_as != x; then
22687 $as_echo ' .text
22688 .cfi_startproc
22689 .cfi_personality 0, symbol
22690 .cfi_endproc' > conftest.s
22691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22697 then
22698 gcc_cv_as_cfi_personality_directive=yes
22699 else
22700 echo "configure: failed program was" >&5
22701 cat conftest.s >&5
22702 fi
22703 rm -f conftest.o conftest.s
22704 fi
22705 fi
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22707 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22708
22709
22710 cat >>confdefs.h <<_ACEOF
22711 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22712 then echo 1; else echo 0; fi`
22713 _ACEOF
22714
22715
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22717 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22718 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22719 $as_echo_n "(cached) " >&6
22720 else
22721 gcc_cv_as_cfi_sections_directive=no
22722 if test x$gcc_cv_as != x; then
22723 $as_echo ' .text
22724 .cfi_sections .debug_frame, .eh_frame
22725 .cfi_startproc
22726 .cfi_endproc' > conftest.s
22727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22732 test $ac_status = 0; }; }
22733 then
22734 case $target_os in
22735 win32 | pe | cygwin* | mingw32* | uwin*)
22736 # Need to check that we generated the correct relocation for the
22737 # .debug_frame section. This was fixed for binutils 2.21.
22738 gcc_cv_as_cfi_sections_directive=no
22739 if test "x$gcc_cv_objdump" != x; then
22740 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22741 grep secrel > /dev/null; then
22742 gcc_cv_as_cfi_sections_directive=yes
22743 fi
22744 fi
22745 ;;
22746 *)
22747 gcc_cv_as_cfi_sections_directive=yes
22748 ;;
22749 esac
22750 else
22751 echo "configure: failed program was" >&5
22752 cat conftest.s >&5
22753 fi
22754 rm -f conftest.o conftest.s
22755 fi
22756 fi
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22758 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22759
22760
22761
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22764 then echo 1; else echo 0; fi`
22765 _ACEOF
22766
22767
22768 # GAS versions up to and including 2.11.0 may mis-optimize
22769 # .eh_frame data.
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22771 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22772 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 gcc_cv_as_eh_frame=no
22776 if test $in_tree_gas = yes; then
22777 if test $in_tree_gas_is_elf = yes \
22778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22779 then gcc_cv_as_eh_frame=yes
22780 fi
22781 elif test x$gcc_cv_as != x; then
22782 $as_echo ' .text
22783 .LFB1:
22784 .4byte 0
22785 .L1:
22786 .4byte 0
22787 .LFE1:
22788 .section .eh_frame,"aw",@progbits
22789 __FRAME_BEGIN__:
22790 .4byte .LECIE1-.LSCIE1
22791 .LSCIE1:
22792 .4byte 0x0
22793 .byte 0x1
22794 .ascii "z\0"
22795 .byte 0x1
22796 .byte 0x78
22797 .byte 0x1a
22798 .byte 0x0
22799 .byte 0x4
22800 .4byte 1
22801 .p2align 1
22802 .LECIE1:
22803 .LSFDE1:
22804 .4byte .LEFDE1-.LASFDE1
22805 .LASFDE1:
22806 .4byte .LASFDE1-__FRAME_BEGIN__
22807 .4byte .LFB1
22808 .4byte .LFE1-.LFB1
22809 .byte 0x4
22810 .4byte .LFE1-.LFB1
22811 .byte 0x4
22812 .4byte .L1-.LFB1
22813 .LEFDE1:' > conftest.s
22814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22819 test $ac_status = 0; }; }
22820 then
22821 cat > conftest.lit <<EOF
22822 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22823 0010 01000000 12000000 18000000 00000000 ................
22824 0020 08000000 04080000 0044 .........D
22825 EOF
22826 cat > conftest.big <<EOF
22827 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22828 0010 00000001 00000012 00000018 00000000 ................
22829 0020 00000008 04000000 0844 .........D
22830 EOF
22831 # If the assembler didn't choke, and we can objdump,
22832 # and we got the correct data, then succeed.
22833 # The text in the here-document typically retains its unix-style line
22834 # endings, while the output of objdump will use host line endings.
22835 # Therefore, use diff -b for the comparisons.
22836 if test x$gcc_cv_objdump != x \
22837 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22838 | tail -3 > conftest.got \
22839 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22840 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22841 then
22842 gcc_cv_as_eh_frame=yes
22843 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }; then
22849 gcc_cv_as_eh_frame=buggy
22850 else
22851 # Uh oh, what do we do now?
22852 gcc_cv_as_eh_frame=no
22853 fi
22854 else
22855 echo "configure: failed program was" >&5
22856 cat conftest.s >&5
22857 fi
22858 rm -f conftest.o conftest.s
22859 fi
22860 fi
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22862 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22863
22864
22865 if test $gcc_cv_as_eh_frame = buggy; then
22866
22867 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22868
22869 fi
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22872 $as_echo_n "checking assembler for section merging support... " >&6; }
22873 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22874 $as_echo_n "(cached) " >&6
22875 else
22876 gcc_cv_as_shf_merge=no
22877 if test $in_tree_gas = yes; then
22878 if test $in_tree_gas_is_elf = yes \
22879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22880 then gcc_cv_as_shf_merge=yes
22881 fi
22882 elif test x$gcc_cv_as != x; then
22883 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889 test $ac_status = 0; }; }
22890 then
22891 gcc_cv_as_shf_merge=yes
22892 else
22893 echo "configure: failed program was" >&5
22894 cat conftest.s >&5
22895 fi
22896 rm -f conftest.o conftest.s
22897 fi
22898 fi
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22900 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22901
22902 if test $gcc_cv_as_shf_merge = no; then
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22904 $as_echo_n "checking assembler for section merging support... " >&6; }
22905 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908 gcc_cv_as_shf_merge=no
22909 if test $in_tree_gas = yes; then
22910 if test $in_tree_gas_is_elf = yes \
22911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22912 then gcc_cv_as_shf_merge=yes
22913 fi
22914 elif test x$gcc_cv_as != x; then
22915 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22918 (eval $ac_try) 2>&5
22919 ac_status=$?
22920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22921 test $ac_status = 0; }; }
22922 then
22923 gcc_cv_as_shf_merge=yes
22924 else
22925 echo "configure: failed program was" >&5
22926 cat conftest.s >&5
22927 fi
22928 rm -f conftest.o conftest.s
22929 fi
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22932 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22933
22934 fi
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22938 _ACEOF
22939
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22942 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22943 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22945 else
22946 gcc_cv_as_comdat_group=no
22947 if test $in_tree_gas = yes; then
22948 if test $in_tree_gas_is_elf = yes \
22949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22950 then gcc_cv_as_comdat_group=yes
22951 fi
22952 elif test x$gcc_cv_as != x; then
22953 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22959 test $ac_status = 0; }; }
22960 then
22961 gcc_cv_as_comdat_group=yes
22962 else
22963 echo "configure: failed program was" >&5
22964 cat conftest.s >&5
22965 fi
22966 rm -f conftest.o conftest.s
22967 fi
22968 fi
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22970 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22971
22972 if test $gcc_cv_as_comdat_group = yes; then
22973 gcc_cv_as_comdat_group_percent=no
22974 gcc_cv_as_comdat_group_group=no
22975 else
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22977 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22978 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22979 $as_echo_n "(cached) " >&6
22980 else
22981 gcc_cv_as_comdat_group_percent=no
22982 if test $in_tree_gas = yes; then
22983 if test $in_tree_gas_is_elf = yes \
22984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22985 then gcc_cv_as_comdat_group_percent=yes
22986 fi
22987 elif test x$gcc_cv_as != x; then
22988 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22994 test $ac_status = 0; }; }
22995 then
22996 gcc_cv_as_comdat_group_percent=yes
22997 else
22998 echo "configure: failed program was" >&5
22999 cat conftest.s >&5
23000 fi
23001 rm -f conftest.o conftest.s
23002 fi
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23005 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23006
23007 if test $gcc_cv_as_comdat_group_percent = yes; then
23008 gcc_cv_as_comdat_group_group=no
23009 else
23010 case "${target}" in
23011 # Sun as uses a completely different syntax.
23012 *-*-solaris2*)
23013 case "${target}" in
23014 sparc*-*-solaris2*)
23015 conftest_s='
23016 .group foo,".text%foo",#comdat
23017 .section ".text%foo", #alloc,#execinstr,#progbits
23018 .globl foo
23019 foo:
23020 '
23021 ;;
23022 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23023 conftest_s='
23024 .group foo,.text%foo,#comdat
23025 .section .text%foo, "ax", @progbits
23026 .globl foo
23027 foo:
23028 '
23029 ;;
23030 esac
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23032 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23033 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23035 else
23036 gcc_cv_as_comdat_group_group=no
23037 if test x$gcc_cv_as != x; then
23038 $as_echo "$conftest_s" > conftest.s
23039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23044 test $ac_status = 0; }; }
23045 then
23046 gcc_cv_as_comdat_group_group=yes
23047 else
23048 echo "configure: failed program was" >&5
23049 cat conftest.s >&5
23050 fi
23051 rm -f conftest.o conftest.s
23052 fi
23053 fi
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23055 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23056
23057 ;;
23058 esac
23059 fi
23060 fi
23061 if test x"$ld_is_gold" = xyes; then
23062 comdat_group=yes
23063 elif test $in_tree_ld = yes ; then
23064 comdat_group=no
23065 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 \
23066 && test $in_tree_ld_is_elf = yes; then
23067 comdat_group=yes
23068 fi
23069 elif echo "$ld_ver" | grep GNU > /dev/null; then
23070 comdat_group=yes
23071 if test 0"$ld_date" -lt 20050308; then
23072 if test -n "$ld_date"; then
23073 # If there was date string, but was earlier than 2005-03-08, fail
23074 comdat_group=no
23075 elif test "$ld_vers_major" -lt 2; then
23076 comdat_group=no
23077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23078 comdat_group=no
23079 fi
23080 fi
23081 else
23082 case "${target}" in
23083 *-*-solaris2.1[1-9]*)
23084 comdat_group=no
23085 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23086 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23087 # version 1.688.
23088 #
23089 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23090 # least ld version 1.2267.
23091 if test "$ld_vers_major" -gt 1; then
23092 comdat_group=yes
23093 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23094 comdat_group=yes
23095 elif test "$ld_vers_minor" -ge 2267; then
23096 comdat_group=yes
23097 fi
23098 ;;
23099 *)
23100 # Assume linkers other than GNU ld don't support COMDAT group.
23101 comdat_group=no
23102 ;;
23103 esac
23104 fi
23105 # Allow overriding the automatic COMDAT group tests above.
23106 # Check whether --enable-comdat was given.
23107 if test "${enable_comdat+set}" = set; then :
23108 enableval=$enable_comdat; comdat_group="$enable_comdat"
23109 fi
23110
23111 if test $comdat_group = no; then
23112 gcc_cv_as_comdat_group=no
23113 gcc_cv_as_comdat_group_percent=no
23114 gcc_cv_as_comdat_group_group=no
23115 fi
23116
23117 cat >>confdefs.h <<_ACEOF
23118 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23119 || test $gcc_cv_as_comdat_group_percent = yes \
23120 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23121 _ACEOF
23122
23123
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23125 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23126 if test "${gcc_cv_as_discriminator+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23128 else
23129 gcc_cv_as_discriminator=no
23130 if test $in_tree_gas = yes; then
23131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23132 then gcc_cv_as_discriminator=yes
23133 fi
23134 elif test x$gcc_cv_as != x; then
23135 $as_echo ' .text
23136 .file 1 "conf.c"
23137 .loc 1 1 0 discriminator 1' > conftest.s
23138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23143 test $ac_status = 0; }; }
23144 then
23145 gcc_cv_as_discriminator=yes
23146 else
23147 echo "configure: failed program was" >&5
23148 cat conftest.s >&5
23149 fi
23150 rm -f conftest.o conftest.s
23151 fi
23152 fi
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23154 $as_echo "$gcc_cv_as_discriminator" >&6; }
23155 if test $gcc_cv_as_discriminator = yes; then
23156
23157 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23158
23159 fi
23160
23161 # Thread-local storage - the check is heavily parameterized.
23162 conftest_s=
23163 tls_first_major=
23164 tls_first_minor=
23165 tls_as_opt=
23166 case "$target" in
23167 alpha*-*-*)
23168 conftest_s='
23169 .section ".tdata","awT",@progbits
23170 foo: .long 25
23171 .text
23172 ldq $27,__tls_get_addr($29) !literal!1
23173 lda $16,foo($29) !tlsgd!1
23174 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23175 ldq $27,__tls_get_addr($29) !literal!2
23176 lda $16,foo($29) !tlsldm!2
23177 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23178 ldq $1,foo($29) !gotdtprel
23179 ldah $2,foo($29) !dtprelhi
23180 lda $3,foo($2) !dtprello
23181 lda $4,foo($29) !dtprel
23182 ldq $1,foo($29) !gottprel
23183 ldah $2,foo($29) !tprelhi
23184 lda $3,foo($2) !tprello
23185 lda $4,foo($29) !tprel'
23186 tls_first_major=2
23187 tls_first_minor=13
23188 tls_as_opt=--fatal-warnings
23189 ;;
23190 cris-*-*|crisv32-*-*)
23191 conftest_s='
23192 .section ".tdata","awT",@progbits
23193 x: .long 25
23194 .text
23195 move.d x:IE,$r10
23196 nop'
23197 tls_first_major=2
23198 tls_first_minor=20
23199 tls_as_opt=--fatal-warnings
23200 ;;
23201 frv*-*-*)
23202 conftest_s='
23203 .section ".tdata","awT",@progbits
23204 x: .long 25
23205 .text
23206 call #gettlsoff(x)'
23207 tls_first_major=2
23208 tls_first_minor=14
23209 ;;
23210 hppa*-*-linux*)
23211 conftest_s='
23212 t1: .reg %r20
23213 t2: .reg %r21
23214 gp: .reg %r19
23215 .section ".tdata","awT",@progbits
23216 foo: .long 25
23217 .text
23218 .align 4
23219 addil LT%foo-$tls_gdidx$,gp
23220 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23221 b __tls_get_addr
23222 nop
23223 addil LT%foo-$tls_ldidx$,gp
23224 b __tls_get_addr
23225 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23226 addil LR%foo-$tls_dtpoff$,%ret0
23227 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23228 mfctl %cr27,%t1
23229 addil LT%foo-$tls_ieoff$,gp
23230 ldw RT%foo-$tls_ieoff$(%r1),%t2
23231 add %t1,%t2,%t3
23232 mfctl %cr27,%t1
23233 addil LR%foo-$tls_leoff$,%t1
23234 ldo RR%foo-$tls_leoff$(%r1),%t2'
23235 tls_first_major=2
23236 tls_first_minor=15
23237 tls_as_opt=--fatal-warnings
23238 ;;
23239 arm*-*-*)
23240 conftest_s='
23241 .section ".tdata","awT",%progbits
23242 foo: .long 25
23243 .text
23244 .word foo(gottpoff)
23245 .word foo(tpoff)
23246 .word foo(tlsgd)
23247 .word foo(tlsldm)
23248 .word foo(tlsldo)'
23249 tls_first_major=2
23250 tls_first_minor=17
23251 ;;
23252 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23253 case "$target" in
23254 i[34567]86-*-solaris2.*)
23255 on_solaris=yes
23256 tga_func=___tls_get_addr
23257 ;;
23258 x86_64-*-solaris2.1[0-9]*)
23259 on_solaris=yes
23260 tga_func=__tls_get_addr
23261 ;;
23262 *)
23263 on_solaris=no
23264 ;;
23265 esac
23266 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23267 conftest_s='
23268 .section .tdata,"awt",@progbits'
23269 tls_first_major=0
23270 tls_first_minor=0
23271
23272 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23273
23274 else
23275 conftest_s='
23276 .section ".tdata","awT",@progbits'
23277 tls_first_major=2
23278 tls_first_minor=14
23279 tls_as_opt="--fatal-warnings"
23280 fi
23281 conftest_s="$conftest_s
23282 foo: .long 25
23283 .text
23284 movl %gs:0, %eax
23285 leal foo@tlsgd(,%ebx,1), %eax
23286 leal foo@tlsldm(%ebx), %eax
23287 leal foo@dtpoff(%eax), %edx
23288 movl foo@gottpoff(%ebx), %eax
23289 subl foo@gottpoff(%ebx), %eax
23290 addl foo@gotntpoff(%ebx), %eax
23291 movl foo@indntpoff, %eax
23292 movl \$foo@tpoff, %eax
23293 subl \$foo@tpoff, %eax
23294 leal foo@ntpoff(%ecx), %eax"
23295 ;;
23296 x86_64-*-*)
23297 conftest_s='
23298 .section ".tdata","awT",@progbits
23299 foo: .long 25
23300 .text
23301 movq %fs:0, %rax
23302 leaq foo@TLSGD(%rip), %rdi
23303 leaq foo@TLSLD(%rip), %rdi
23304 leaq foo@DTPOFF(%rax), %rdx
23305 movq foo@GOTTPOFF(%rip), %rax
23306 movq $foo@TPOFF, %rax'
23307 tls_first_major=2
23308 tls_first_minor=14
23309 tls_as_opt=--fatal-warnings
23310 ;;
23311 ia64-*-*)
23312 conftest_s='
23313 .section ".tdata","awT",@progbits
23314 foo: data8 25
23315 .text
23316 addl r16 = @ltoff(@dtpmod(foo#)), gp
23317 addl r17 = @ltoff(@dtprel(foo#)), gp
23318 addl r18 = @ltoff(@tprel(foo#)), gp
23319 addl r19 = @dtprel(foo#), gp
23320 adds r21 = @dtprel(foo#), r13
23321 movl r23 = @dtprel(foo#)
23322 addl r20 = @tprel(foo#), gp
23323 adds r22 = @tprel(foo#), r13
23324 movl r24 = @tprel(foo#)'
23325 tls_first_major=2
23326 tls_first_minor=13
23327 tls_as_opt=--fatal-warnings
23328 ;;
23329 mips*-*-*)
23330 conftest_s='
23331 .section .tdata,"awT",@progbits
23332 x:
23333 .word 2
23334 .text
23335 addiu $4, $28, %tlsgd(x)
23336 addiu $4, $28, %tlsldm(x)
23337 lui $4, %dtprel_hi(x)
23338 addiu $4, $4, %dtprel_lo(x)
23339 lw $4, %gottprel(x)($28)
23340 lui $4, %tprel_hi(x)
23341 addiu $4, $4, %tprel_lo(x)'
23342 tls_first_major=2
23343 tls_first_minor=16
23344 tls_as_opt='-32 --fatal-warnings'
23345 ;;
23346 m68k-*-*)
23347 conftest_s='
23348 .section .tdata,"awT",@progbits
23349 x:
23350 .word 2
23351 .text
23352 foo:
23353 move.l x@TLSGD(%a5),%a0
23354 move.l x@TLSLDM(%a5),%a0
23355 move.l x@TLSLDO(%a5),%a0
23356 move.l x@TLSIE(%a5),%a0
23357 move.l x@TLSLE(%a5),%a0'
23358 tls_first_major=2
23359 tls_first_minor=19
23360 tls_as_opt='--fatal-warnings'
23361 ;;
23362 powerpc-*-*)
23363 conftest_s='
23364 .section ".tdata","awT",@progbits
23365 .align 2
23366 ld0: .space 4
23367 ld1: .space 4
23368 x1: .space 4
23369 x2: .space 4
23370 x3: .space 4
23371 .text
23372 addi 3,31,ld0@got@tlsgd
23373 bl __tls_get_addr
23374 addi 3,31,x1@got@tlsld
23375 bl __tls_get_addr
23376 addi 9,3,x1@dtprel
23377 addis 9,3,x2@dtprel@ha
23378 addi 9,9,x2@dtprel@l
23379 lwz 9,x3@got@tprel(31)
23380 add 9,9,x@tls
23381 addi 9,2,x1@tprel
23382 addis 9,2,x2@tprel@ha
23383 addi 9,9,x2@tprel@l'
23384 tls_first_major=2
23385 tls_first_minor=14
23386 tls_as_opt="-a32 --fatal-warnings"
23387 ;;
23388 powerpc64-*-*)
23389 conftest_s='
23390 .section ".tdata","awT",@progbits
23391 .align 3
23392 ld0: .space 8
23393 ld1: .space 8
23394 x1: .space 8
23395 x2: .space 8
23396 x3: .space 8
23397 .text
23398 addi 3,2,ld0@got@tlsgd
23399 bl .__tls_get_addr
23400 nop
23401 addi 3,2,ld1@toc
23402 bl .__tls_get_addr
23403 nop
23404 addi 3,2,x1@got@tlsld
23405 bl .__tls_get_addr
23406 nop
23407 addi 9,3,x1@dtprel
23408 bl .__tls_get_addr
23409 nop
23410 addis 9,3,x2@dtprel@ha
23411 addi 9,9,x2@dtprel@l
23412 bl .__tls_get_addr
23413 nop
23414 ld 9,x3@got@dtprel(2)
23415 add 9,9,3
23416 bl .__tls_get_addr
23417 nop'
23418 tls_first_major=2
23419 tls_first_minor=14
23420 tls_as_opt="-a64 --fatal-warnings"
23421 ;;
23422 s390-*-*)
23423 conftest_s='
23424 .section ".tdata","awT",@progbits
23425 foo: .long 25
23426 .text
23427 .long foo@TLSGD
23428 .long foo@TLSLDM
23429 .long foo@DTPOFF
23430 .long foo@NTPOFF
23431 .long foo@GOTNTPOFF
23432 .long foo@INDNTPOFF
23433 l %r1,foo@GOTNTPOFF(%r12)
23434 l %r1,0(%r1):tls_load:foo
23435 bas %r14,0(%r1,%r13):tls_gdcall:foo
23436 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23437 tls_first_major=2
23438 tls_first_minor=14
23439 tls_as_opt="-m31 --fatal-warnings"
23440 ;;
23441 s390x-*-*)
23442 conftest_s='
23443 .section ".tdata","awT",@progbits
23444 foo: .long 25
23445 .text
23446 .quad foo@TLSGD
23447 .quad foo@TLSLDM
23448 .quad foo@DTPOFF
23449 .quad foo@NTPOFF
23450 .quad foo@GOTNTPOFF
23451 lg %r1,foo@GOTNTPOFF(%r12)
23452 larl %r1,foo@INDNTPOFF
23453 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23454 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23455 tls_first_major=2
23456 tls_first_minor=14
23457 tls_as_opt="-m64 -Aesame --fatal-warnings"
23458 ;;
23459 sh-*-* | sh[34]-*-*)
23460 conftest_s='
23461 .section ".tdata","awT",@progbits
23462 foo: .long 25
23463 .text
23464 .long foo@TLSGD
23465 .long foo@TLSLDM
23466 .long foo@DTPOFF
23467 .long foo@GOTTPOFF
23468 .long foo@TPOFF'
23469 tls_first_major=2
23470 tls_first_minor=13
23471 tls_as_opt=--fatal-warnings
23472 ;;
23473 sparc*-*-*)
23474 case "$target" in
23475 sparc*-sun-solaris2.*)
23476 on_solaris=yes
23477 tga_func=__tls_get_addr
23478 ;;
23479 *)
23480 on_solaris=no
23481 ;;
23482 esac
23483 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23484 conftest_s='
23485 .section ".tdata",#alloc,#write,#tls'
23486 tls_first_major=0
23487 tls_first_minor=0
23488 else
23489 conftest_s='
23490 .section ".tdata","awT",@progbits'
23491 tls_first_major=2
23492 tls_first_minor=14
23493 tls_as_opt="-32 --fatal-warnings"
23494 fi
23495 conftest_s="$conftest_s
23496 foo: .long 25
23497 .text
23498 sethi %tgd_hi22(foo), %o0
23499 add %o0, %tgd_lo10(foo), %o1
23500 add %l7, %o1, %o0, %tgd_add(foo)
23501 call __tls_get_addr, %tgd_call(foo)
23502 sethi %tldm_hi22(foo), %l1
23503 add %l1, %tldm_lo10(foo), %l2
23504 add %l7, %l2, %o0, %tldm_add(foo)
23505 call __tls_get_addr, %tldm_call(foo)
23506 sethi %tldo_hix22(foo), %l3
23507 xor %l3, %tldo_lox10(foo), %l4
23508 add %o0, %l4, %l5, %tldo_add(foo)
23509 sethi %tie_hi22(foo), %o3
23510 add %o3, %tie_lo10(foo), %o3
23511 ld [%l7 + %o3], %o2, %tie_ld(foo)
23512 add %g7, %o2, %o4, %tie_add(foo)
23513 sethi %tle_hix22(foo), %l1
23514 xor %l1, %tle_lox10(foo), %o5
23515 ld [%g7 + %o5], %o1"
23516 ;;
23517 tilepro*-*-*)
23518 conftest_s='
23519 .section ".tdata","awT",@progbits
23520 foo: .long 25
23521 .text
23522 addli r0, zero, tls_gd(foo)
23523 auli r0, zero, tls_gd_ha16(foo)
23524 addli r0, r0, tls_gd_lo16(foo)
23525 jal __tls_get_addr
23526 addli r0, zero, tls_ie(foo)
23527 auli r0, r0, tls_ie_ha16(foo)
23528 addli r0, r0, tls_ie_lo16(foo)'
23529 tls_first_major=2
23530 tls_first_minor=22
23531 tls_as_opt="--fatal-warnings"
23532 ;;
23533 tilegx*-*-*)
23534 conftest_s='
23535 .section ".tdata","awT",@progbits
23536 foo: .long 25
23537 .text
23538 shl16insli r0, zero, hw0_last_tls_gd(foo)
23539 shl16insli r0, zero, hw1_last_tls_gd(foo)
23540 shl16insli r0, r0, hw0_tls_gd(foo)
23541 jal __tls_get_addr
23542 shl16insli r0, zero, hw1_last_tls_ie(foo)
23543 shl16insli r0, r0, hw0_tls_ie(foo)'
23544 tls_first_major=2
23545 tls_first_minor=22
23546 tls_as_opt="--fatal-warnings"
23547 ;;
23548 xtensa*-*-*)
23549 conftest_s='
23550 .section ".tdata","awT",@progbits
23551 foo: .long 25
23552 .text
23553 movi a8, foo@TLSFUNC
23554 movi a10, foo@TLSARG
23555 callx8.tls a8, foo@TLSCALL'
23556 tls_first_major=2
23557 tls_first_minor=19
23558 ;;
23559 esac
23560 set_have_as_tls=no
23561 if test "x$enable_tls" = xno ; then
23562 : # TLS explicitly disabled.
23563 elif test "x$enable_tls" = xyes ; then
23564 set_have_as_tls=yes # TLS explicitly enabled.
23565 elif test -z "$tls_first_major"; then
23566 : # If we don't have a check, assume no support.
23567 else
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23569 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23570 if test "${gcc_cv_as_tls+set}" = set; then :
23571 $as_echo_n "(cached) " >&6
23572 else
23573 gcc_cv_as_tls=no
23574 if test $in_tree_gas = yes; then
23575 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23576 then gcc_cv_as_tls=yes
23577 fi
23578 elif test x$gcc_cv_as != x; then
23579 $as_echo "$conftest_s" > conftest.s
23580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23585 test $ac_status = 0; }; }
23586 then
23587 gcc_cv_as_tls=yes
23588 else
23589 echo "configure: failed program was" >&5
23590 cat conftest.s >&5
23591 fi
23592 rm -f conftest.o conftest.s
23593 fi
23594 fi
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23596 $as_echo "$gcc_cv_as_tls" >&6; }
23597 if test $gcc_cv_as_tls = yes; then
23598 set_have_as_tls=yes
23599 fi
23600 fi
23601 case "$target" in
23602 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23603 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23604 # Sun style that Sun ld and GCC don't support any longer.
23605 *-*-solaris2.*)
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23607 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23608 ld_tls_support=no
23609 # Check ld and ld.so.1 TLS support.
23610 if echo "$ld_ver" | grep GNU > /dev/null; then
23611 # Assume all interesting versions of GNU ld have TLS support.
23612 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23613 ld_tls_support=yes
23614 else
23615 case "$target" in
23616 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23617 i?86-*-solaris2.9)
23618 min_tls_ld_vers_minor=374
23619 ;;
23620 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23621 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23622 min_tls_ld_vers_minor=343
23623 ;;
23624 esac
23625 if test "$ld_vers_major" -gt 1 || \
23626 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23627 ld_tls_support=yes
23628 else
23629 set_have_as_tls=no
23630 fi
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23633 $as_echo "$ld_tls_support" >&6; }
23634
23635 save_LIBS="$LIBS"
23636 save_LDFLAGS="$LDFLAGS"
23637 LIBS=
23638 LDFLAGS=
23639
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23641 $as_echo_n "checking library containing $tga_func... " >&6; }
23642 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23643 # (32-bit x86) only lived in libthread, so check for that. Keep
23644 # set_have_as_tls if found, disable if not.
23645 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23647 $as_echo_n "checking for library containing $tga_func... " >&6; }
23648 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 ac_func_search_save_LIBS=$LIBS
23652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23654
23655 /* Override any GCC internal prototype to avoid an error.
23656 Use char because int might match the return type of a GCC
23657 builtin and then its argument prototype would still apply. */
23658 #ifdef __cplusplus
23659 extern "C"
23660 #endif
23661 char $tga_func ();
23662 int
23663 main ()
23664 {
23665 return $tga_func ();
23666 ;
23667 return 0;
23668 }
23669 _ACEOF
23670 for ac_lib in '' thread; do
23671 if test -z "$ac_lib"; then
23672 ac_res="none required"
23673 else
23674 ac_res=-l$ac_lib
23675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23676 fi
23677 if ac_fn_c_try_link "$LINENO"; then :
23678 eval "$as_ac_Search=\$ac_res"
23679 fi
23680 rm -f core conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext
23682 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23683 break
23684 fi
23685 done
23686 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23687
23688 else
23689 eval "$as_ac_Search=no"
23690 fi
23691 rm conftest.$ac_ext
23692 LIBS=$ac_func_search_save_LIBS
23693 fi
23694 eval ac_res=\$$as_ac_Search
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23696 $as_echo "$ac_res" >&6; }
23697 eval ac_res=\$$as_ac_Search
23698 if test "$ac_res" != no; then :
23699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23700
23701 else
23702 set_have_as_tls=no
23703 fi
23704
23705 # Clear LIBS if we cannot support TLS.
23706 if test $set_have_as_tls = no; then
23707 LIBS=
23708 fi
23709 # Always define LIB_TLS_SPEC, even without TLS support.
23710
23711 cat >>confdefs.h <<_ACEOF
23712 #define LIB_TLS_SPEC "$LIBS"
23713 _ACEOF
23714
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23716 $as_echo "$LIBS" >&6; }
23717
23718 LIBS="$save_LIBS"
23719 LDFLAGS="$save_LDFLAGS"
23720 ;;
23721 esac
23722 if test $set_have_as_tls = yes ; then
23723
23724 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23725
23726 fi
23727
23728 # Target-specific assembler checks.
23729
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23731 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23732 gcc_cv_ld_static_dynamic=no
23733 gcc_cv_ld_static_option='-Bstatic'
23734 gcc_cv_ld_dynamic_option='-Bdynamic'
23735 if test $in_tree_ld = yes ; then
23736 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
23737 gcc_cv_ld_static_dynamic=yes
23738 fi
23739 elif test x$gcc_cv_ld != x; then
23740 # Check if linker supports -Bstatic/-Bdynamic option
23741 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23742 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23743 gcc_cv_ld_static_dynamic=yes
23744 else
23745 case "$target" in
23746 # HP-UX ld uses -a flags to select between shared and archive.
23747 *-*-hpux*)
23748 if test x"$gnu_ld" = xno; then
23749 gcc_cv_ld_static_dynamic=yes
23750 gcc_cv_ld_static_option="-aarchive_shared"
23751 gcc_cv_ld_dynamic_option="-adefault"
23752 fi
23753 ;;
23754 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23755 *-*-solaris2*)
23756 gcc_cv_ld_static_dynamic=yes
23757 ;;
23758 esac
23759 fi
23760 fi
23761 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23762
23763 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23764
23765
23766 cat >>confdefs.h <<_ACEOF
23767 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23768 _ACEOF
23769
23770
23771 cat >>confdefs.h <<_ACEOF
23772 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23773 _ACEOF
23774
23775 fi
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23777 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23778
23779 if test x"$demangler_in_ld" = xyes; then
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23781 $as_echo_n "checking linker --demangle support... " >&6; }
23782 gcc_cv_ld_demangle=no
23783 if test $in_tree_ld = yes; then
23784 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 \
23785 gcc_cv_ld_demangle=yes
23786 fi
23787 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23788 # Check if the GNU linker supports --demangle option
23789 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23790 gcc_cv_ld_demangle=yes
23791 fi
23792 fi
23793 if test x"$gcc_cv_ld_demangle" = xyes; then
23794
23795 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23796
23797 fi
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23799 $as_echo "$gcc_cv_ld_demangle" >&6; }
23800 fi
23801
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23803 $as_echo_n "checking linker plugin support... " >&6; }
23804 gcc_cv_lto_plugin=0
23805 if test -f liblto_plugin.la; then
23806 save_ld_ver="$ld_ver"
23807 save_ld_vers_major="$ld_vers_major"
23808 save_ld_vers_minor="$ld_vers_minor"
23809 save_ld_is_gold="$ld_is_gold"
23810
23811 ld_is_gold=no
23812
23813 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23814 ld_ver="GNU ld"
23815 # FIXME: ld_is_gold?
23816 ld_vers_major="$gcc_cv_gld_major_version"
23817 ld_vers_minor="$gcc_cv_gld_minor_version"
23818 else
23819 # Determine plugin linker version.
23820 # FIXME: Partial duplicate from above, generalize.
23821 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23822 if echo "$ld_ver" | grep GNU > /dev/null; then
23823 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23824 ld_is_gold=yes
23825 ld_vers=`echo $ld_ver | sed -n \
23826 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23827 else
23828 ld_vers=`echo $ld_ver | sed -n \
23829 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23830 fi
23831 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23832 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23833 fi
23834 fi
23835
23836 # Determine plugin support.
23837 if echo "$ld_ver" | grep GNU > /dev/null; then
23838 # Require GNU ld or gold 2.21+ for plugin support by default.
23839 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23840 gcc_cv_lto_plugin=2
23841 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23842 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23843 gcc_cv_lto_plugin=1
23844 fi
23845 fi
23846
23847 ld_ver="$save_ld_ver"
23848 ld_vers_major="$save_ld_vers_major"
23849 ld_vers_minor="$save_ld_vers_minor"
23850 ld_is_gold="$save_ld_is_gold"
23851 fi
23852
23853 cat >>confdefs.h <<_ACEOF
23854 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23855 _ACEOF
23856
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23858 $as_echo "$gcc_cv_lto_plugin" >&6; }
23859
23860 case "$target" in
23861 # All TARGET_ABI_OSF targets.
23862 alpha*-*-linux* | alpha*-*-*bsd*)
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23864 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23865 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 gcc_cv_as_alpha_explicit_relocs=no
23869 if test $in_tree_gas = yes; then
23870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23871 then gcc_cv_as_alpha_explicit_relocs=yes
23872 fi
23873 elif test x$gcc_cv_as != x; then
23874 $as_echo ' .set nomacro
23875 .text
23876 extbl $3, $2, $3 !lituse_bytoff!1
23877 ldq $2, a($29) !literal!1
23878 ldq $4, b($29) !literal!2
23879 ldq_u $3, 0($2) !lituse_base!1
23880 ldq $27, f($29) !literal!5
23881 jsr $26, ($27), f !lituse_jsr!5
23882 ldah $29, 0($26) !gpdisp!3
23883 lda $0, c($29) !gprel
23884 ldah $1, d($29) !gprelhigh
23885 lda $1, d($1) !gprellow
23886 lda $29, 0($29) !gpdisp!3' > conftest.s
23887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; }
23893 then
23894 gcc_cv_as_alpha_explicit_relocs=yes
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23903 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23904 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23905
23906 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23907
23908 fi
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23910 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23911 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_alpha_jsrdirect_relocs=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23917 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23918 fi
23919 elif test x$gcc_cv_as != x; then
23920 $as_echo ' .set nomacro
23921 .text
23922 ldq $27, a($29) !literal!1
23923 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; }
23930 then
23931 gcc_cv_as_alpha_jsrdirect_relocs=yes
23932 else
23933 echo "configure: failed program was" >&5
23934 cat conftest.s >&5
23935 fi
23936 rm -f conftest.o conftest.s
23937 fi
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23940 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23941 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23942
23943 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23944
23945 fi
23946 ;;
23947
23948 cris-*-*)
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23950 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23951 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 gcc_cv_as_cris_no_mul_bug=no
23955 if test $in_tree_gas = yes; then
23956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23957 then gcc_cv_as_cris_no_mul_bug=yes
23958 fi
23959 elif test x$gcc_cv_as != x; then
23960 $as_echo '.text' > conftest.s
23961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; }
23967 then
23968 gcc_cv_as_cris_no_mul_bug=yes
23969 else
23970 echo "configure: failed program was" >&5
23971 cat conftest.s >&5
23972 fi
23973 rm -f conftest.o conftest.s
23974 fi
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23977 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23978 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23979
23980 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23981
23982 fi
23983 ;;
23984
23985 sparc*-*-*)
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23987 $as_echo_n "checking assembler for .register... " >&6; }
23988 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 gcc_cv_as_sparc_register_op=no
23992 if test x$gcc_cv_as != x; then
23993 $as_echo '.register %g2, #scratch' > conftest.s
23994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24000 then
24001 gcc_cv_as_sparc_register_op=yes
24002 else
24003 echo "configure: failed program was" >&5
24004 cat conftest.s >&5
24005 fi
24006 rm -f conftest.o conftest.s
24007 fi
24008 fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24010 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24011 if test $gcc_cv_as_sparc_register_op = yes; then
24012
24013 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24014
24015 fi
24016
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24018 $as_echo_n "checking assembler for -relax option... " >&6; }
24019 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24020 $as_echo_n "(cached) " >&6
24021 else
24022 gcc_cv_as_sparc_relax=no
24023 if test x$gcc_cv_as != x; then
24024 $as_echo '.text' > conftest.s
24025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; }
24031 then
24032 gcc_cv_as_sparc_relax=yes
24033 else
24034 echo "configure: failed program was" >&5
24035 cat conftest.s >&5
24036 fi
24037 rm -f conftest.o conftest.s
24038 fi
24039 fi
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24041 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24042 if test $gcc_cv_as_sparc_relax = yes; then
24043
24044 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24045
24046 fi
24047
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24049 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24050 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 gcc_cv_as_sparc_gotdata_op=no
24054 if test x$gcc_cv_as != x; then
24055 $as_echo '.text
24056 .align 4
24057 foo:
24058 nop
24059 bar:
24060 sethi %gdop_hix22(foo), %g1
24061 xor %g1, %gdop_lox10(foo), %g1
24062 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; }
24069 then
24070 if test x$gcc_cv_ld != x \
24071 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24072 if test x$gcc_cv_objdump != x; then
24073 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24074 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24075 gcc_cv_as_sparc_gotdata_op=no
24076 else
24077 gcc_cv_as_sparc_gotdata_op=yes
24078 fi
24079 fi
24080 fi
24081 rm -f conftest
24082 else
24083 echo "configure: failed program was" >&5
24084 cat conftest.s >&5
24085 fi
24086 rm -f conftest.o conftest.s
24087 fi
24088 fi
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24090 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24091 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24092
24093 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24094
24095 fi
24096
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24098 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24099 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24100 $as_echo_n "(cached) " >&6
24101 else
24102 gcc_cv_as_sparc_ua_pcrel=no
24103 if test x$gcc_cv_as != x; then
24104 $as_echo '.text
24105 foo:
24106 nop
24107 .data
24108 .align 4
24109 .byte 0
24110 .uaword %r_disp32(foo)' > conftest.s
24111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24117 then
24118 if test x$gcc_cv_ld != x \
24119 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24120 gcc_cv_as_sparc_ua_pcrel=yes
24121 fi
24122 rm -f conftest
24123 else
24124 echo "configure: failed program was" >&5
24125 cat conftest.s >&5
24126 fi
24127 rm -f conftest.o conftest.s
24128 fi
24129 fi
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24131 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24132 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24133
24134 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24135
24136
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24138 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24139 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 gcc_cv_as_sparc_ua_pcrel_hidden=no
24143 if test x$gcc_cv_as != x; then
24144 $as_echo '.data
24145 .align 4
24146 .byte 0x31
24147 .uaword %r_disp32(foo)
24148 .byte 0x32, 0x33, 0x34
24149 .global foo
24150 .hidden foo
24151 foo:
24152 .skip 4' > conftest.s
24153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24158 test $ac_status = 0; }; }
24159 then
24160 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24161 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24162 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24163 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24164 if $gcc_cv_objdump -R conftest 2> /dev/null \
24165 | grep 'DISP32' > /dev/null 2>&1; then
24166 :
24167 else
24168 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24169 fi
24170 fi
24171 rm -f conftest
24172 else
24173 echo "configure: failed program was" >&5
24174 cat conftest.s >&5
24175 fi
24176 rm -f conftest.o conftest.s
24177 fi
24178 fi
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24180 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24181 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24182
24183 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24184
24185 fi
24186
24187 fi # unaligned pcrel relocs
24188
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24190 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24191 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 gcc_cv_as_sparc_offsetable_lo10=no
24195 if test x$gcc_cv_as != x; then
24196 $as_echo '.text
24197 or %g1, %lo(ab) + 12, %g1
24198 or %g1, %lo(ab + 12), %g1' > conftest.s
24199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24201 (eval $ac_try) 2>&5
24202 ac_status=$?
24203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24204 test $ac_status = 0; }; }
24205 then
24206 if test x$gcc_cv_objdump != x \
24207 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24208 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24209 gcc_cv_as_sparc_offsetable_lo10=yes
24210 fi
24211 else
24212 echo "configure: failed program was" >&5
24213 cat conftest.s >&5
24214 fi
24215 rm -f conftest.o conftest.s
24216 fi
24217 fi
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24219 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24220 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24221
24222 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24223
24224 fi
24225
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24227 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24228 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24230 else
24231 gcc_cv_as_sparc_fmaf=no
24232 if test x$gcc_cv_as != x; then
24233 $as_echo '.text
24234 .register %g2, #scratch
24235 .register %g3, #scratch
24236 .align 4
24237 fmaddd %f0, %f2, %f4, %f6
24238 addxccc %g1, %g2, %g3
24239 fsrl32 %f2, %f4, %f8
24240 fnaddd %f10, %f12, %f14' > conftest.s
24241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24246 test $ac_status = 0; }; }
24247 then
24248 gcc_cv_as_sparc_fmaf=yes
24249 else
24250 echo "configure: failed program was" >&5
24251 cat conftest.s >&5
24252 fi
24253 rm -f conftest.o conftest.s
24254 fi
24255 fi
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24257 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24258 if test $gcc_cv_as_sparc_fmaf = yes; then
24259
24260 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24261
24262 fi
24263 ;;
24264
24265 i[34567]86-*-* | x86_64-*-*)
24266 case $target_os in
24267 cygwin*)
24268 # Full C++ conformance when using a shared libstdc++-v3 requires some
24269 # support from the Cygwin DLL, which in more recent versions exports
24270 # wrappers to aid in interposing and redirecting operators new, delete,
24271 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24272 # are configuring for a version of Cygwin that exports the wrappers.
24273 if test x$host = x$target; then
24274 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24275 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24276 gcc_ac_cygwin_dll_wrappers=yes
24277 else
24278 gcc_ac_cygwin_dll_wrappers=no
24279 fi
24280
24281 else
24282 # Can't check presence of libc functions during cross-compile, so
24283 # we just have to assume we're building for an up-to-date target.
24284 gcc_ac_cygwin_dll_wrappers=yes
24285 fi
24286
24287 cat >>confdefs.h <<_ACEOF
24288 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24289 _ACEOF
24290
24291 esac
24292 case $target_os in
24293 cygwin* | pe | mingw32* | interix*)
24294 # Recent binutils allows the three-operand form of ".comm" on PE. This
24295 # definition is used unconditionally to initialise the default state of
24296 # the target option variable that governs usage of the feature.
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24298 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24299 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24300 $as_echo_n "(cached) " >&6
24301 else
24302 gcc_cv_as_comm_has_align=no
24303 if test $in_tree_gas = yes; then
24304 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24305 then gcc_cv_as_comm_has_align=yes
24306 fi
24307 elif test x$gcc_cv_as != x; then
24308 $as_echo '.comm foo,1,32' > conftest.s
24309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24314 test $ac_status = 0; }; }
24315 then
24316 gcc_cv_as_comm_has_align=yes
24317 else
24318 echo "configure: failed program was" >&5
24319 cat conftest.s >&5
24320 fi
24321 rm -f conftest.o conftest.s
24322 fi
24323 fi
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24325 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24326
24327
24328 cat >>confdefs.h <<_ACEOF
24329 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24330 _ACEOF
24331
24332 # Used for DWARF 2 in PE
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24334 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24335 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24336 $as_echo_n "(cached) " >&6
24337 else
24338 gcc_cv_as_ix86_pe_secrel32=no
24339 if test $in_tree_gas = yes; then
24340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24341 then gcc_cv_as_ix86_pe_secrel32=yes
24342 fi
24343 elif test x$gcc_cv_as != x; then
24344 $as_echo '.text
24345 foo: nop
24346 .data
24347 .secrel32 foo' > conftest.s
24348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24353 test $ac_status = 0; }; }
24354 then
24355 if test x$gcc_cv_ld != x \
24356 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24357 gcc_cv_as_ix86_pe_secrel32=yes
24358 fi
24359 rm -f conftest
24360 else
24361 echo "configure: failed program was" >&5
24362 cat conftest.s >&5
24363 fi
24364 rm -f conftest.o conftest.s
24365 fi
24366 fi
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24368 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24369 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24370
24371 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24372
24373 fi
24374 # Test if the assembler supports the extended form of the .section
24375 # directive that specifies section alignment. LTO support uses this,
24376 # but normally only after installation, so we warn but don't fail the
24377 # configure if LTO is enabled but the assembler does not support it.
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24379 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24380 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24381 $as_echo_n "(cached) " >&6
24382 else
24383 gcc_cv_as_section_has_align=no
24384 if test $in_tree_gas = yes; then
24385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24386 then gcc_cv_as_section_has_align=yes
24387 fi
24388 elif test x$gcc_cv_as != x; then
24389 $as_echo '.section lto_test,"dr0"' > conftest.s
24390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395 test $ac_status = 0; }; }
24396 then
24397 gcc_cv_as_section_has_align=yes
24398 else
24399 echo "configure: failed program was" >&5
24400 cat conftest.s >&5
24401 fi
24402 rm -f conftest.o conftest.s
24403 fi
24404 fi
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24406 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24407
24408 if test x$gcc_cv_as_section_has_align != xyes; then
24409 case ",$enable_languages," in
24410 *,lto,*)
24411 { $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
24412 $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;}
24413 ;;
24414 esac
24415 fi
24416 # Test if the assembler supports the section flag 'e' for specifying
24417 # an excluded section.
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24419 $as_echo_n "checking assembler for .section with e... " >&6; }
24420 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24421 $as_echo_n "(cached) " >&6
24422 else
24423 gcc_cv_as_section_has_e=no
24424 if test $in_tree_gas = yes; then
24425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24426 then gcc_cv_as_section_has_e=yes
24427 fi
24428 elif test x$gcc_cv_as != x; then
24429 $as_echo '.section foo1,"e"
24430 .byte 0,0,0,0' > conftest.s
24431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24436 test $ac_status = 0; }; }
24437 then
24438 gcc_cv_as_section_has_e=yes
24439 else
24440 echo "configure: failed program was" >&5
24441 cat conftest.s >&5
24442 fi
24443 rm -f conftest.o conftest.s
24444 fi
24445 fi
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24447 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24448
24449
24450 cat >>confdefs.h <<_ACEOF
24451 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24452 _ACEOF
24453
24454 ;;
24455 esac
24456
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24458 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24459 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24460 $as_echo_n "(cached) " >&6
24461 else
24462 gcc_cv_as_ix86_filds=no
24463 if test x$gcc_cv_as != x; then
24464 $as_echo 'filds mem; fists mem' > conftest.s
24465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24470 test $ac_status = 0; }; }
24471 then
24472 gcc_cv_as_ix86_filds=yes
24473 else
24474 echo "configure: failed program was" >&5
24475 cat conftest.s >&5
24476 fi
24477 rm -f conftest.o conftest.s
24478 fi
24479 fi
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24481 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24482 if test $gcc_cv_as_ix86_filds = yes; then
24483
24484 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24485
24486 fi
24487
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24489 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24490 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24491 $as_echo_n "(cached) " >&6
24492 else
24493 gcc_cv_as_ix86_fildq=no
24494 if test x$gcc_cv_as != x; then
24495 $as_echo 'fildq mem; fistpq mem' > conftest.s
24496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; }
24502 then
24503 gcc_cv_as_ix86_fildq=yes
24504 else
24505 echo "configure: failed program was" >&5
24506 cat conftest.s >&5
24507 fi
24508 rm -f conftest.o conftest.s
24509 fi
24510 fi
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24512 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24513 if test $gcc_cv_as_ix86_fildq = yes; then
24514
24515 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24516
24517 fi
24518
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24520 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24521 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24522 $as_echo_n "(cached) " >&6
24523 else
24524 gcc_cv_as_ix86_cmov_sun_syntax=no
24525 if test x$gcc_cv_as != x; then
24526 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; }
24533 then
24534 gcc_cv_as_ix86_cmov_sun_syntax=yes
24535 else
24536 echo "configure: failed program was" >&5
24537 cat conftest.s >&5
24538 fi
24539 rm -f conftest.o conftest.s
24540 fi
24541 fi
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24543 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24544 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24545
24546 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24547
24548 fi
24549
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24551 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24552 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24553 $as_echo_n "(cached) " >&6
24554 else
24555 gcc_cv_as_ix86_ffreep=no
24556 if test x$gcc_cv_as != x; then
24557 $as_echo 'ffreep %st(1)' > conftest.s
24558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24560 (eval $ac_try) 2>&5
24561 ac_status=$?
24562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24563 test $ac_status = 0; }; }
24564 then
24565 gcc_cv_as_ix86_ffreep=yes
24566 else
24567 echo "configure: failed program was" >&5
24568 cat conftest.s >&5
24569 fi
24570 rm -f conftest.o conftest.s
24571 fi
24572 fi
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24574 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24575 if test $gcc_cv_as_ix86_ffreep = yes; then
24576
24577 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24578
24579 fi
24580
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24582 $as_echo_n "checking assembler for .quad directive... " >&6; }
24583 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24584 $as_echo_n "(cached) " >&6
24585 else
24586 gcc_cv_as_ix86_quad=no
24587 if test x$gcc_cv_as != x; then
24588 $as_echo '.quad 0' > conftest.s
24589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24595 then
24596 gcc_cv_as_ix86_quad=yes
24597 else
24598 echo "configure: failed program was" >&5
24599 cat conftest.s >&5
24600 fi
24601 rm -f conftest.o conftest.s
24602 fi
24603 fi
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24605 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24606 if test $gcc_cv_as_ix86_quad = yes; then
24607
24608 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24609
24610 fi
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24613 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24614 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24615 $as_echo_n "(cached) " >&6
24616 else
24617 gcc_cv_as_ix86_sahf=no
24618 if test x$gcc_cv_as != x; then
24619 $as_echo '.code64
24620 sahf' > conftest.s
24621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24627 then
24628 gcc_cv_as_ix86_sahf=yes
24629 else
24630 echo "configure: failed program was" >&5
24631 cat conftest.s >&5
24632 fi
24633 rm -f conftest.o conftest.s
24634 fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24637 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24638 if test $gcc_cv_as_ix86_sahf = yes; then
24639
24640 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24641
24642 fi
24643
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24645 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24646 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24648 else
24649 gcc_cv_as_ix86_hle=no
24650 if test x$gcc_cv_as != x; then
24651 $as_echo '.code64
24652 lock xacquire cmpxchg %esi, (%rcx)
24653 ' > conftest.s
24654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24660 then
24661 gcc_cv_as_ix86_hle=yes
24662 else
24663 echo "configure: failed program was" >&5
24664 cat conftest.s >&5
24665 fi
24666 rm -f conftest.o conftest.s
24667 fi
24668 fi
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24670 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24671 if test $gcc_cv_as_ix86_hle = yes; then
24672
24673 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24674
24675 fi
24676
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24678 $as_echo_n "checking assembler for swap suffix... " >&6; }
24679 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gcc_cv_as_ix86_swap=no
24683 if test x$gcc_cv_as != x; then
24684 $as_echo 'movl.s %esp, %ebp' > conftest.s
24685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24691 then
24692 gcc_cv_as_ix86_swap=yes
24693 else
24694 echo "configure: failed program was" >&5
24695 cat conftest.s >&5
24696 fi
24697 rm -f conftest.o conftest.s
24698 fi
24699 fi
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24701 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24702 if test $gcc_cv_as_ix86_swap = yes; then
24703
24704 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24705
24706 fi
24707
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24709 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24710 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24712 else
24713 gcc_cv_as_ix86_diff_sect_delta=no
24714 if test x$gcc_cv_as != x; then
24715 $as_echo '.section .rodata
24716 .L1:
24717 .long .L2-.L1
24718 .long .L3-.L1
24719 .text
24720 .L3: nop
24721 .L2: nop' > conftest.s
24722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24728 then
24729 gcc_cv_as_ix86_diff_sect_delta=yes
24730 else
24731 echo "configure: failed program was" >&5
24732 cat conftest.s >&5
24733 fi
24734 rm -f conftest.o conftest.s
24735 fi
24736 fi
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24738 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24739 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24740
24741 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24742
24743 fi
24744
24745 # These two are used unconditionally by i386.[ch]; it is to be defined
24746 # to 1 if the feature is present, 0 otherwise.
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24748 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24749 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_ix86_gotoff_in_data=no
24753 if test $in_tree_gas = yes; then
24754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24755 then gcc_cv_as_ix86_gotoff_in_data=yes
24756 fi
24757 elif test x$gcc_cv_as != x; then
24758 $as_echo ' .text
24759 .L0:
24760 nop
24761 .data
24762 .long .L0@GOTOFF' > conftest.s
24763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24769 then
24770 gcc_cv_as_ix86_gotoff_in_data=yes
24771 else
24772 echo "configure: failed program was" >&5
24773 cat conftest.s >&5
24774 fi
24775 rm -f conftest.o conftest.s
24776 fi
24777 fi
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24779 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24780
24781
24782 cat >>confdefs.h <<_ACEOF
24783 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24784 _ACEOF
24785
24786
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24788 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24789 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24792 gcc_cv_as_ix86_rep_lock_prefix=no
24793 if test x$gcc_cv_as != x; then
24794 $as_echo 'rep movsl
24795 rep ret
24796 rep nop
24797 rep bsf %ecx, %eax
24798 rep bsr %ecx, %eax
24799 lock addl %edi, (%eax,%esi)
24800 lock orl $0, (%esp)' > conftest.s
24801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }
24807 then
24808 gcc_cv_as_ix86_rep_lock_prefix=yes
24809 else
24810 echo "configure: failed program was" >&5
24811 cat conftest.s >&5
24812 fi
24813 rm -f conftest.o conftest.s
24814 fi
24815 fi
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24817 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24818 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24819
24820 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24821
24822 fi
24823
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24825 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24826 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24827 $as_echo_n "(cached) " >&6
24828 else
24829 gcc_cv_as_ix86_tlsgdplt=no
24830 if test x$gcc_cv_as != x; then
24831 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24834 (eval $ac_try) 2>&5
24835 ac_status=$?
24836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24837 test $ac_status = 0; }; }
24838 then
24839 if test x$gcc_cv_ld != x \
24840 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24841 gcc_cv_as_ix86_tlsgdplt=yes
24842 fi
24843 rm -f conftest
24844 else
24845 echo "configure: failed program was" >&5
24846 cat conftest.s >&5
24847 fi
24848 rm -f conftest.o conftest.s
24849 fi
24850 fi
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24852 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24853 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24854
24855 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24856
24857 fi
24858
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24860 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24861 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24862 $as_echo_n "(cached) " >&6
24863 else
24864 gcc_cv_as_ix86_tlsldmplt=no
24865 if test x$gcc_cv_as != x; then
24866 $as_echo 'tls_ld:
24867 call tls_ld@tlsldmplt' > conftest.s
24868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24874 then
24875 if test x$gcc_cv_ld != x \
24876 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24877 gcc_cv_as_ix86_tlsldmplt=yes
24878 fi
24879 rm -f conftest
24880 else
24881 echo "configure: failed program was" >&5
24882 cat conftest.s >&5
24883 fi
24884 rm -f conftest.o conftest.s
24885 fi
24886 fi
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24888 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24889 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24890
24891 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24892
24893 fi
24894
24895 ;;
24896
24897 ia64*-*-*)
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24899 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24900 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24904 if test $in_tree_gas = yes; then
24905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24906 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24907 fi
24908 elif test x$gcc_cv_as != x; then
24909 $as_echo ' .text
24910 addl r15 = @ltoffx(x#), gp
24911 ;;
24912 ld8.mov r16 = [r15], x#' > conftest.s
24913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24918 test $ac_status = 0; }; }
24919 then
24920 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24921 else
24922 echo "configure: failed program was" >&5
24923 cat conftest.s >&5
24924 fi
24925 rm -f conftest.o conftest.s
24926 fi
24927 fi
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24929 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24930 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24931
24932 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24933
24934 fi
24935
24936 ;;
24937
24938 powerpc*-*-*)
24939 case $target in
24940 *-*-aix*) conftest_s=' .machine "pwr5"
24941 .csect .text[PR]
24942 mfcr 3,128';;
24943 *-*-darwin*)
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24945 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24946 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 gcc_cv_as_machine_directive=no
24950 if test x$gcc_cv_as != x; then
24951 $as_echo ' .machine ppc7400' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_machine_directive=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24963 fi
24964 rm -f conftest.o conftest.s
24965 fi
24966 fi
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24968 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24969
24970 if test x$gcc_cv_as_machine_directive != xyes; then
24971 echo "*** This target requires an assembler supporting \".machine\"" >&2
24972 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24973 test x$build = x$target && exit 1
24974 fi
24975 conftest_s=' .text
24976 mfcr r3,128';;
24977 *) conftest_s=' .machine power4
24978 .text
24979 mfcr 3,128';;
24980 esac
24981
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24983 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24984 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24985 $as_echo_n "(cached) " >&6
24986 else
24987 gcc_cv_as_powerpc_mfcrf=no
24988 if test $in_tree_gas = yes; then
24989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24990 then gcc_cv_as_powerpc_mfcrf=yes
24991 fi
24992 elif test x$gcc_cv_as != x; then
24993 $as_echo "$conftest_s" > conftest.s
24994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999 test $ac_status = 0; }; }
25000 then
25001 gcc_cv_as_powerpc_mfcrf=yes
25002 else
25003 echo "configure: failed program was" >&5
25004 cat conftest.s >&5
25005 fi
25006 rm -f conftest.o conftest.s
25007 fi
25008 fi
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25010 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25011 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25012
25013 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25014
25015 fi
25016
25017 case $target in
25018 *-*-aix*) conftest_s=' .machine "pwr5"
25019 .csect .text[PR]
25020 popcntb 3,3';;
25021 *) conftest_s=' .machine power5
25022 .text
25023 popcntb 3,3';;
25024 esac
25025
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25027 $as_echo_n "checking assembler for popcntb support... " >&6; }
25028 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25030 else
25031 gcc_cv_as_powerpc_popcntb=no
25032 if test $in_tree_gas = yes; then
25033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25034 then gcc_cv_as_powerpc_popcntb=yes
25035 fi
25036 elif test x$gcc_cv_as != x; then
25037 $as_echo "$conftest_s" > conftest.s
25038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25044 then
25045 gcc_cv_as_powerpc_popcntb=yes
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25049 fi
25050 rm -f conftest.o conftest.s
25051 fi
25052 fi
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25054 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25055 if test $gcc_cv_as_powerpc_popcntb = yes; then
25056
25057 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25058
25059 fi
25060
25061 case $target in
25062 *-*-aix*) conftest_s=' .machine "pwr5x"
25063 .csect .text[PR]
25064 frin 1,1';;
25065 *) conftest_s=' .machine power5
25066 .text
25067 frin 1,1';;
25068 esac
25069
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25071 $as_echo_n "checking assembler for fp round support... " >&6; }
25072 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25073 $as_echo_n "(cached) " >&6
25074 else
25075 gcc_cv_as_powerpc_fprnd=no
25076 if test $in_tree_gas = yes; then
25077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25078 then gcc_cv_as_powerpc_fprnd=yes
25079 fi
25080 elif test x$gcc_cv_as != x; then
25081 $as_echo "$conftest_s" > conftest.s
25082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084 (eval $ac_try) 2>&5
25085 ac_status=$?
25086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087 test $ac_status = 0; }; }
25088 then
25089 gcc_cv_as_powerpc_fprnd=yes
25090 else
25091 echo "configure: failed program was" >&5
25092 cat conftest.s >&5
25093 fi
25094 rm -f conftest.o conftest.s
25095 fi
25096 fi
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25098 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25099 if test $gcc_cv_as_powerpc_fprnd = yes; then
25100
25101 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25102
25103 fi
25104
25105 case $target in
25106 *-*-aix*) conftest_s=' .machine "pwr6"
25107 .csect .text[PR]
25108 mffgpr 1,3';;
25109 *) conftest_s=' .machine power6
25110 .text
25111 mffgpr 1,3';;
25112 esac
25113
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25115 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25116 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25117 $as_echo_n "(cached) " >&6
25118 else
25119 gcc_cv_as_powerpc_mfpgpr=no
25120 if test $in_tree_gas = yes; then
25121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25122 then gcc_cv_as_powerpc_mfpgpr=yes
25123 fi
25124 elif test x$gcc_cv_as != x; then
25125 $as_echo "$conftest_s" > conftest.s
25126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }; }
25132 then
25133 gcc_cv_as_powerpc_mfpgpr=yes
25134 else
25135 echo "configure: failed program was" >&5
25136 cat conftest.s >&5
25137 fi
25138 rm -f conftest.o conftest.s
25139 fi
25140 fi
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25142 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25143 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25144
25145 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25146
25147 fi
25148
25149 case $target in
25150 *-*-aix*) conftest_s=' .csect .text[PR]
25151 LCF..0:
25152 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25153 *-*-darwin*)
25154 conftest_s=' .text
25155 LCF0:
25156 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25157 *) conftest_s=' .text
25158 .LCF0:
25159 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25160 esac
25161
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25163 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25164 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25165 $as_echo_n "(cached) " >&6
25166 else
25167 gcc_cv_as_powerpc_rel16=no
25168 if test $in_tree_gas = yes; then
25169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25170 then gcc_cv_as_powerpc_rel16=yes
25171 fi
25172 elif test x$gcc_cv_as != x; then
25173 $as_echo "$conftest_s" > conftest.s
25174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25180 then
25181 gcc_cv_as_powerpc_rel16=yes
25182 else
25183 echo "configure: failed program was" >&5
25184 cat conftest.s >&5
25185 fi
25186 rm -f conftest.o conftest.s
25187 fi
25188 fi
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25190 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25191 if test $gcc_cv_as_powerpc_rel16 = yes; then
25192
25193 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25194
25195 fi
25196
25197 case $target in
25198 *-*-aix*) conftest_s=' .machine "pwr6"
25199 .csect .text[PR]
25200 cmpb 3,4,5';;
25201 *) conftest_s=' .machine power6
25202 .text
25203 cmpb 3,4,5';;
25204 esac
25205
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25207 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25208 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_powerpc_cmpb=no
25212 if test $in_tree_gas = yes; then
25213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25214 then gcc_cv_as_powerpc_cmpb=yes
25215 fi
25216 elif test x$gcc_cv_as != x; then
25217 $as_echo "$conftest_s" > conftest.s
25218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25224 then
25225 gcc_cv_as_powerpc_cmpb=yes
25226 else
25227 echo "configure: failed program was" >&5
25228 cat conftest.s >&5
25229 fi
25230 rm -f conftest.o conftest.s
25231 fi
25232 fi
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25234 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25235 if test $gcc_cv_as_powerpc_cmpb = yes; then
25236
25237 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25238
25239 fi
25240
25241 case $target in
25242 *-*-aix*) conftest_s=' .machine "pwr6"
25243 .csect .text[PR]
25244 dadd 1,2,3';;
25245 *) conftest_s=' .machine power6
25246 .text
25247 dadd 1,2,3';;
25248 esac
25249
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25251 $as_echo_n "checking assembler for decimal float support... " >&6; }
25252 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 gcc_cv_as_powerpc_dfp=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25258 then gcc_cv_as_powerpc_dfp=yes
25259 fi
25260 elif test x$gcc_cv_as != x; then
25261 $as_echo "$conftest_s" > conftest.s
25262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25265 ac_status=$?
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25268 then
25269 gcc_cv_as_powerpc_dfp=yes
25270 else
25271 echo "configure: failed program was" >&5
25272 cat conftest.s >&5
25273 fi
25274 rm -f conftest.o conftest.s
25275 fi
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25278 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25279 if test $gcc_cv_as_powerpc_dfp = yes; then
25280
25281 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25282
25283 fi
25284
25285 case $target in
25286 *-*-aix*) conftest_s=' .machine "pwr7"
25287 .csect .text[PR]
25288 lxvd2x 1,2,3';;
25289 *) conftest_s=' .machine power7
25290 .text
25291 lxvd2x 1,2,3';;
25292 esac
25293
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25295 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25296 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25298 else
25299 gcc_cv_as_powerpc_vsx=no
25300 if test $in_tree_gas = yes; then
25301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25302 then gcc_cv_as_powerpc_vsx=yes
25303 fi
25304 elif test x$gcc_cv_as != x; then
25305 $as_echo "$conftest_s" > conftest.s
25306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311 test $ac_status = 0; }; }
25312 then
25313 gcc_cv_as_powerpc_vsx=yes
25314 else
25315 echo "configure: failed program was" >&5
25316 cat conftest.s >&5
25317 fi
25318 rm -f conftest.o conftest.s
25319 fi
25320 fi
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25322 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25323 if test $gcc_cv_as_powerpc_vsx = yes; then
25324
25325 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25326
25327 fi
25328
25329 case $target in
25330 *-*-aix*) conftest_s=' .machine "pwr7"
25331 .csect .text[PR]
25332 popcntd 3,3';;
25333 *) conftest_s=' .machine power7
25334 .text
25335 popcntd 3,3';;
25336 esac
25337
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25339 $as_echo_n "checking assembler for popcntd support... " >&6; }
25340 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_powerpc_popcntd=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25346 then gcc_cv_as_powerpc_popcntd=yes
25347 fi
25348 elif test x$gcc_cv_as != x; then
25349 $as_echo "$conftest_s" > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 gcc_cv_as_powerpc_popcntd=yes
25358 else
25359 echo "configure: failed program was" >&5
25360 cat conftest.s >&5
25361 fi
25362 rm -f conftest.o conftest.s
25363 fi
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25366 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25367 if test $gcc_cv_as_powerpc_popcntd = yes; then
25368
25369 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25370
25371 fi
25372
25373 case $target in
25374 *-*-aix*) conftest_s=' .csect .text[PR]
25375 lwsync';;
25376 *) conftest_s=' .text
25377 lwsync';;
25378 esac
25379
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25381 $as_echo_n "checking assembler for lwsync support... " >&6; }
25382 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25384 else
25385 gcc_cv_as_powerpc_lwsync=no
25386 if test $in_tree_gas = yes; then
25387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25388 then gcc_cv_as_powerpc_lwsync=yes
25389 fi
25390 elif test x$gcc_cv_as != x; then
25391 $as_echo "$conftest_s" > conftest.s
25392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397 test $ac_status = 0; }; }
25398 then
25399 gcc_cv_as_powerpc_lwsync=yes
25400 else
25401 echo "configure: failed program was" >&5
25402 cat conftest.s >&5
25403 fi
25404 rm -f conftest.o conftest.s
25405 fi
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25408 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25409 if test $gcc_cv_as_powerpc_lwsync = yes; then
25410
25411 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25412
25413 fi
25414
25415 case $target in
25416 *-*-aix*) conftest_s=' .machine "476"
25417 .csect .text[PR]
25418 dci 0';;
25419 *) conftest_s=' .machine "476"
25420 .text
25421 dci 0';;
25422 esac
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25425 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_powerpc_dci=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25432 then gcc_cv_as_powerpc_dci=yes
25433 fi
25434 elif test x$gcc_cv_as != x; then
25435 $as_echo "$conftest_s" > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25442 then
25443 gcc_cv_as_powerpc_dci=yes
25444 else
25445 echo "configure: failed program was" >&5
25446 cat conftest.s >&5
25447 fi
25448 rm -f conftest.o conftest.s
25449 fi
25450 fi
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25452 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25453 if test $gcc_cv_as_powerpc_dci = yes; then
25454
25455 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25456
25457 fi
25458
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25460 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25464 gcc_cv_as_powerpc_gnu_attribute=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_gnu_attribute=yes
25468 fi
25469 elif test x$gcc_cv_as != x; then
25470 $as_echo '.gnu_attribute 4,1' > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_powerpc_gnu_attribute=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25482 fi
25483 rm -f conftest.o conftest.s
25484 fi
25485 fi
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25487 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25488 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25489
25490 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25491
25492 fi
25493
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25495 $as_echo_n "checking assembler for tls marker support... " >&6; }
25496 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_powerpc_tls_markers=no
25500 if test $in_tree_gas = yes; then
25501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25502 then gcc_cv_as_powerpc_tls_markers=yes
25503 fi
25504 elif test x$gcc_cv_as != x; then
25505 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25512 then
25513 gcc_cv_as_powerpc_tls_markers=yes
25514 else
25515 echo "configure: failed program was" >&5
25516 cat conftest.s >&5
25517 fi
25518 rm -f conftest.o conftest.s
25519 fi
25520 fi
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25522 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25523 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25524
25525 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25526
25527 fi
25528
25529 case $target in
25530 *-*-aix*)
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25532 $as_echo_n "checking assembler for .ref support... " >&6; }
25533 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25535 else
25536 gcc_cv_as_aix_ref=no
25537 if test $in_tree_gas = yes; then
25538 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25539 then :
25540 fi
25541 elif test x$gcc_cv_as != x; then
25542 $as_echo ' .csect stuff[rw]
25543 stuff:
25544 .long 1
25545 .extern sym
25546 .ref sym
25547 ' > conftest.s
25548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25553 test $ac_status = 0; }; }
25554 then
25555 gcc_cv_as_aix_ref=yes
25556 else
25557 echo "configure: failed program was" >&5
25558 cat conftest.s >&5
25559 fi
25560 rm -f conftest.o conftest.s
25561 fi
25562 fi
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25564 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25565 if test $gcc_cv_as_aix_ref = yes; then
25566
25567 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25568
25569 fi
25570 ;;
25571 esac
25572 ;;
25573
25574 mips*-*-*)
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25576 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25577 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_mips_explicit_relocs=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25583 then gcc_cv_as_mips_explicit_relocs=yes
25584 fi
25585 elif test x$gcc_cv_as != x; then
25586 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_mips_explicit_relocs=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25598 fi
25599 rm -f conftest.o conftest.s
25600 fi
25601 fi
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25603 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25604 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25605 if test x$target_cpu_default = x
25606 then target_cpu_default=MASK_EXPLICIT_RELOCS
25607 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25608 fi
25609 fi
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25611 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25612 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_mips_no_shared=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25618 then gcc_cv_as_mips_no_shared=yes
25619 fi
25620 elif test x$gcc_cv_as != x; then
25621 $as_echo 'nop' > conftest.s
25622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25628 then
25629 gcc_cv_as_mips_no_shared=yes
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25633 fi
25634 rm -f conftest.o conftest.s
25635 fi
25636 fi
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25638 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25639 if test $gcc_cv_as_mips_no_shared = yes; then
25640
25641 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25642
25643 fi
25644
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25646 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25647 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_mips_gnu_attribute=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25653 then gcc_cv_as_mips_gnu_attribute=yes
25654 fi
25655 elif test x$gcc_cv_as != x; then
25656 $as_echo '.gnu_attribute 4,1' > conftest.s
25657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25663 then
25664 gcc_cv_as_mips_gnu_attribute=yes
25665 else
25666 echo "configure: failed program was" >&5
25667 cat conftest.s >&5
25668 fi
25669 rm -f conftest.o conftest.s
25670 fi
25671 fi
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25673 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25674 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25675
25676 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25677
25678 fi
25679
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25681 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25682 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25683 $as_echo_n "(cached) " >&6
25684 else
25685 gcc_cv_as_mips_dtprelword=no
25686 if test $in_tree_gas = yes; then
25687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25688 then gcc_cv_as_mips_dtprelword=yes
25689 fi
25690 elif test x$gcc_cv_as != x; then
25691 $as_echo '.section .tdata,"awT",@progbits
25692 x:
25693 .word 2
25694 .text
25695 .dtprelword x+0x8000' > conftest.s
25696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 then
25703 gcc_cv_as_mips_dtprelword=yes
25704 else
25705 echo "configure: failed program was" >&5
25706 cat conftest.s >&5
25707 fi
25708 rm -f conftest.o conftest.s
25709 fi
25710 fi
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25712 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25713 if test $gcc_cv_as_mips_dtprelword = yes; then
25714
25715 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25716
25717 fi
25718
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25720 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25721 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25723 else
25724 gcc_cv_as_mips_dspr1_mult=no
25725 if test x$gcc_cv_as != x; then
25726 $as_echo ' .set mips32r2
25727 .set nodspr2
25728 .set dsp
25729 madd $ac3,$4,$5
25730 maddu $ac3,$4,$5
25731 msub $ac3,$4,$5
25732 msubu $ac3,$4,$5
25733 mult $ac3,$4,$5
25734 multu $ac3,$4,$5' > conftest.s
25735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25740 test $ac_status = 0; }; }
25741 then
25742 gcc_cv_as_mips_dspr1_mult=yes
25743 else
25744 echo "configure: failed program was" >&5
25745 cat conftest.s >&5
25746 fi
25747 rm -f conftest.o conftest.s
25748 fi
25749 fi
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25751 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25752 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25753
25754 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25755
25756 fi
25757
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25759 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25760 gcc_cv_as_ld_jalr_reloc=no
25761 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25762 if test $in_tree_ld = yes ; then
25763 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 \
25764 && test $in_tree_ld_is_elf = yes; then
25765 gcc_cv_as_ld_jalr_reloc=yes
25766 fi
25767 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25768 echo ' .ent x' > conftest.s
25769 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25770 echo ' ld $25,%call16(y)($28)' >> conftest.s
25771 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25772 echo '1: jalr $25' >> conftest.s
25773 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25774 echo '1: jalr $25' >> conftest.s
25775 echo ' .end x' >> conftest.s
25776 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25777 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25778 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25779 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25780 gcc_cv_as_ld_jalr_reloc=yes
25781 fi
25782 fi
25783 rm -f conftest.*
25784 fi
25785 fi
25786 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25787 if test x$target_cpu_default = x; then
25788 target_cpu_default=MASK_RELAX_PIC_CALLS
25789 else
25790 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25791 fi
25792 fi
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25794 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25795
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25797 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25798 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25800 else
25801 gcc_cv_ld_mips_personality_relaxation=no
25802 if test $in_tree_ld = yes ; then
25803 if test "$gcc_cv_gld_major_version" -eq 2 \
25804 -a "$gcc_cv_gld_minor_version" -ge 21 \
25805 -o "$gcc_cv_gld_major_version" -gt 2; then
25806 gcc_cv_ld_mips_personality_relaxation=yes
25807 fi
25808 elif test x$gcc_cv_as != x \
25809 -a x$gcc_cv_ld != x \
25810 -a x$gcc_cv_readelf != x ; then
25811 cat > conftest.s <<EOF
25812 .cfi_startproc
25813 .cfi_personality 0x80,indirect_ptr
25814 .ent test
25815 test:
25816 nop
25817 .end test
25818 .cfi_endproc
25819
25820 .section .data,"aw",@progbits
25821 indirect_ptr:
25822 .dc.a personality
25823 EOF
25824 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25825 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25826 if $gcc_cv_readelf -d conftest 2>&1 \
25827 | grep TEXTREL > /dev/null 2>&1; then
25828 :
25829 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25830 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25831 :
25832 else
25833 gcc_cv_ld_mips_personality_relaxation=yes
25834 fi
25835 fi
25836 fi
25837 rm -f conftest.s conftest.o conftest
25838 fi
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25840 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25841 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25842
25843 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25844
25845 fi
25846 ;;
25847 esac
25848
25849 # Mips and HP-UX need the GNU assembler.
25850 # Linux on IA64 might be able to use the Intel assembler.
25851
25852 case "$target" in
25853 mips*-*-* | *-*-hpux* )
25854 if test x$gas_flag = xyes \
25855 || test x"$host" != x"$build" \
25856 || test ! -x "$gcc_cv_as" \
25857 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25858 :
25859 else
25860 echo "*** This configuration requires the GNU assembler" >&2
25861 exit 1
25862 fi
25863 ;;
25864 esac
25865
25866 # ??? Not all targets support dwarf2 debug_line, even within a version
25867 # of gas. Moreover, we need to emit a valid instruction to trigger any
25868 # info to the output file. So, as supported targets are added to gas 2.11,
25869 # add some instruction here to (also) show we expect this might work.
25870 # ??? Once 2.11 is released, probably need to add first known working
25871 # version to the per-target configury.
25872 case "$cpu_type" in
25873 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25874 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25875 insn="nop"
25876 ;;
25877 ia64 | s390)
25878 insn="nop 0"
25879 ;;
25880 mmix)
25881 insn="swym 0"
25882 ;;
25883 esac
25884 if test x"$insn" != x; then
25885 conftest_s="\
25886 .file 1 \"conftest.s\"
25887 .loc 1 3 0
25888 $insn"
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25890 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25891 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25894 gcc_cv_as_dwarf2_debug_line=no
25895 if test $in_tree_gas = yes; then
25896 if test $in_tree_gas_is_elf = yes \
25897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25898 then gcc_cv_as_dwarf2_debug_line=yes
25899 fi
25900 elif test x$gcc_cv_as != x; then
25901 $as_echo "$conftest_s" > conftest.s
25902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; }; }
25908 then
25909 if test x$gcc_cv_objdump != x \
25910 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25911 | grep debug_line > /dev/null 2>&1; then
25912 gcc_cv_as_dwarf2_debug_line=yes
25913 fi
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25917 fi
25918 rm -f conftest.o conftest.s
25919 fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25922 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25923
25924
25925 # The .debug_line file table must be in the exact order that
25926 # we specified the files, since these indices are also used
25927 # by DW_AT_decl_file. Approximate this test by testing if
25928 # the assembler bitches if the same index is assigned twice.
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25930 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25931 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_dwarf2_file_buggy=no
25935 if test x$gcc_cv_as != x; then
25936 $as_echo ' .file 1 "foo.s"
25937 .file 1 "bar.s"' > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_dwarf2_file_buggy=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25949 fi
25950 rm -f conftest.o conftest.s
25951 fi
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25954 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25955
25956
25957 if test $gcc_cv_as_dwarf2_debug_line = yes \
25958 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25959
25960 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25961
25962 fi
25963
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25965 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25966 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25967 $as_echo_n "(cached) " >&6
25968 else
25969 gcc_cv_as_gdwarf2_flag=no
25970 if test $in_tree_gas = yes; then
25971 if test $in_tree_gas_is_elf = yes \
25972 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25973 then gcc_cv_as_gdwarf2_flag=yes
25974 fi
25975 elif test x$gcc_cv_as != x; then
25976 $as_echo "$insn" > conftest.s
25977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; }; }
25983 then
25984 gcc_cv_as_gdwarf2_flag=yes
25985 else
25986 echo "configure: failed program was" >&5
25987 cat conftest.s >&5
25988 fi
25989 rm -f conftest.o conftest.s
25990 fi
25991 fi
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25993 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25994 if test $gcc_cv_as_gdwarf2_flag = yes; then
25995
25996 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25997
25998 fi
25999
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26001 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26002 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 gcc_cv_as_gstabs_flag=no
26006 if test $in_tree_gas = yes; then
26007 if test $in_tree_gas_is_elf = yes \
26008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26009 then gcc_cv_as_gstabs_flag=yes
26010 fi
26011 elif test x$gcc_cv_as != x; then
26012 $as_echo "$insn" > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then
26020 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26021 # and warns about it, but still exits successfully. So check for
26022 # this.
26023 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26029 then :
26030 else gcc_cv_as_gstabs_flag=yes
26031 fi
26032 else
26033 echo "configure: failed program was" >&5
26034 cat conftest.s >&5
26035 fi
26036 rm -f conftest.o conftest.s
26037 fi
26038 fi
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26040 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26041 if test $gcc_cv_as_gstabs_flag = yes; then
26042
26043 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26044
26045 fi
26046
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26048 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26049 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26050 $as_echo_n "(cached) " >&6
26051 else
26052 gcc_cv_as_debug_prefix_map_flag=no
26053 if test $in_tree_gas = yes; then
26054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26055 then gcc_cv_as_debug_prefix_map_flag=yes
26056 fi
26057 elif test x$gcc_cv_as != x; then
26058 $as_echo "$insn" > conftest.s
26059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then
26066 gcc_cv_as_debug_prefix_map_flag=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26070 fi
26071 rm -f conftest.o conftest.s
26072 fi
26073 fi
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26075 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26076 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26077
26078 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26079
26080 fi
26081 fi
26082
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26084 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26085 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26087 else
26088 gcc_cv_as_lcomm_with_alignment=no
26089 if test x$gcc_cv_as != x; then
26090 $as_echo '.lcomm bar,4,16' > conftest.s
26091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; }
26097 then
26098 gcc_cv_as_lcomm_with_alignment=yes
26099 else
26100 echo "configure: failed program was" >&5
26101 cat conftest.s >&5
26102 fi
26103 rm -f conftest.o conftest.s
26104 fi
26105 fi
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26107 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26108 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26109
26110 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26111
26112 fi
26113
26114 # Check whether --enable-gnu-unique-object was given.
26115 if test "${enable_gnu_unique_object+set}" = set; then :
26116 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26117 yes | no) ;;
26118 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26119 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26120 esac
26121 else
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26123 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26124 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26125 $as_echo_n "(cached) " >&6
26126 else
26127 gcc_cv_as_gnu_unique_object=no
26128 if test $in_tree_gas = yes; then
26129 if test $in_tree_gas_is_elf = yes \
26130 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26131 then gcc_cv_as_gnu_unique_object=yes
26132 fi
26133 elif test x$gcc_cv_as != x; then
26134 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26137 (eval $ac_try) 2>&5
26138 ac_status=$?
26139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140 test $ac_status = 0; }; }
26141 then
26142 gcc_cv_as_gnu_unique_object=yes
26143 else
26144 echo "configure: failed program was" >&5
26145 cat conftest.s >&5
26146 fi
26147 rm -f conftest.o conftest.s
26148 fi
26149 fi
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26151 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26152 if test $gcc_cv_as_gnu_unique_object = yes; then
26153 # We need to unquote above to to use the definition from config.gcc.
26154 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26155 if test x$host = x$build -a x$host = x$target &&
26156 ldd --version 2>/dev/null &&
26157 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26158 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26159 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26160 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26161 if test "$glibcnum" -ge 2011 ; then
26162 enable_gnu_unique_object=yes
26163 fi
26164 fi
26165 fi
26166 fi
26167
26168 if test x$enable_gnu_unique_object = xyes; then
26169
26170 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26171
26172 fi
26173
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26175 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26176 if test "${gcc_cv_as_line_zero+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_line_zero=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26182 then gcc_cv_as_line_zero=yes
26183 fi
26184 elif test "x$gcc_cv_as" != x; then
26185 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26186 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; } &&
26192 test "x`cat conftest.out`" = x
26193 then
26194 gcc_cv_as_line_zero=yes
26195 else
26196 echo "configure: failed program was" >&5
26197 cat conftest.s >&5
26198 echo "configure: error output was" >&5
26199 cat conftest.out >&5
26200 fi
26201 rm -f conftest.o conftest.s conftest.out
26202 fi
26203 fi
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26205 $as_echo "$gcc_cv_as_line_zero" >&6; }
26206 if test "x$gcc_cv_as_line_zero" = xyes; then
26207
26208 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26209
26210 fi
26211
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26213 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26214 gcc_cv_ld_eh_frame_hdr=no
26215 if test $in_tree_ld = yes ; then
26216 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 \
26217 && test $in_tree_ld_is_elf = yes; then
26218 gcc_cv_ld_eh_frame_hdr=yes
26219 fi
26220 elif test x$gcc_cv_ld != x; then
26221 if echo "$ld_ver" | grep GNU > /dev/null; then
26222 # Check if linker supports --eh-frame-hdr option
26223 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26224 gcc_cv_ld_eh_frame_hdr=yes
26225 fi
26226 else
26227 case "$target" in
26228 *-*-solaris2*)
26229 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26230 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26231 gcc_cv_ld_eh_frame_hdr=yes
26232 fi
26233 ;;
26234 esac
26235 fi
26236 fi
26237
26238 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26239
26240 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26241
26242 fi
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26244 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26245
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26247 $as_echo_n "checking linker position independent executable support... " >&6; }
26248 gcc_cv_ld_pie=no
26249 if test $in_tree_ld = yes ; then
26250 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 \
26251 && test $in_tree_ld_is_elf = yes; then
26252 gcc_cv_ld_pie=yes
26253 fi
26254 elif test x$gcc_cv_ld != x; then
26255 # Check if linker supports -pie option
26256 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26257 gcc_cv_ld_pie=yes
26258 fi
26259 fi
26260 if test x"$gcc_cv_ld_pie" = xyes; then
26261
26262 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26263
26264 fi
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26266 $as_echo "$gcc_cv_ld_pie" >&6; }
26267
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26269 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26270 gcc_cv_ld_eh_gc_sections=no
26271 if test $in_tree_ld = yes ; then
26272 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 \
26273 && test $in_tree_ld_is_elf = yes; then
26274 gcc_cv_ld_eh_gc_sections=yes
26275 fi
26276 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26277 cat > conftest.s <<EOF
26278 .section .text
26279 .globl _start
26280 .type _start, @function
26281 _start:
26282 .long foo
26283 .size _start, .-_start
26284 .section .text.foo,"ax",@progbits
26285 .type foo, @function
26286 foo:
26287 .long 0
26288 .size foo, .-foo
26289 .section .gcc_except_table.foo,"a",@progbits
26290 .L0:
26291 .long 0
26292 .section .eh_frame,"a",@progbits
26293 .long .L0
26294 EOF
26295 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26296 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26297 | grep "gc-sections option ignored" > /dev/null; then
26298 gcc_cv_ld_eh_gc_sections=no
26299 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26300 | grep gcc_except_table > /dev/null; then
26301 gcc_cv_ld_eh_gc_sections=yes
26302 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26303 if test x$gcc_cv_as_comdat_group != xyes; then
26304 gcc_cv_ld_eh_gc_sections=no
26305 cat > conftest.s <<EOF
26306 .section .text
26307 .globl _start
26308 .type _start, @function
26309 _start:
26310 .long foo
26311 .size _start, .-_start
26312 .section .gnu.linkonce.t.foo,"ax",@progbits
26313 .type foo, @function
26314 foo:
26315 .long 0
26316 .size foo, .-foo
26317 .section .gcc_except_table.foo,"a",@progbits
26318 .L0:
26319 .long 0
26320 .section .eh_frame,"a",@progbits
26321 .long .L0
26322 EOF
26323 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26324 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26325 | grep "gc-sections option ignored" > /dev/null; then
26326 gcc_cv_ld_eh_gc_sections=no
26327 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26328 | grep gcc_except_table > /dev/null; then
26329 gcc_cv_ld_eh_gc_sections=yes
26330 fi
26331 fi
26332 fi
26333 fi
26334 fi
26335 rm -f conftest.s conftest.o conftest
26336 fi
26337 case "$target" in
26338 hppa*-*-linux*)
26339 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26340 gcc_cv_ld_eh_gc_sections=no
26341 ;;
26342 esac
26343 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26344
26345 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26346
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26349 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26350
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26352 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26353 gcc_cv_ld_eh_gc_sections_bug=no
26354 if test $in_tree_ld = yes ; then
26355 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 \
26356 && test $in_tree_ld_is_elf = yes; then
26357 gcc_cv_ld_eh_gc_sections_bug=yes
26358 fi
26359 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
26360 gcc_cv_ld_eh_gc_sections_bug=yes
26361 cat > conftest.s <<EOF
26362 .section .text
26363 .globl _start
26364 .type _start, @function
26365 _start:
26366 .long foo
26367 .size _start, .-_start
26368 .section .text.startup.foo,"ax",@progbits
26369 .type foo, @function
26370 foo:
26371 .long 0
26372 .size foo, .-foo
26373 .section .gcc_except_table.foo,"a",@progbits
26374 .L0:
26375 .long 0
26376 .section .eh_frame,"a",@progbits
26377 .long .L0
26378 EOF
26379 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26380 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26381 | grep "gc-sections option ignored" > /dev/null; then
26382 :
26383 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26384 | grep gcc_except_table > /dev/null; then
26385 gcc_cv_ld_eh_gc_sections_bug=no
26386 fi
26387 fi
26388 rm -f conftest.s conftest.o conftest
26389 fi
26390 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26391
26392 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26393
26394 fi
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26396 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26397
26398 # --------
26399 # UNSORTED
26400 # --------
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26403 $as_echo_n "checking linker --as-needed support... " >&6; }
26404 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26405 $as_echo_n "(cached) " >&6
26406 else
26407 gcc_cv_ld_as_needed=no
26408 if test $in_tree_ld = yes ; then
26409 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 \
26410 && test $in_tree_ld_is_elf = yes; then
26411 gcc_cv_ld_as_needed=yes
26412 fi
26413 elif test x$gcc_cv_ld != x; then
26414 # Check if linker supports --as-needed and --no-as-needed options
26415 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26416 gcc_cv_ld_as_needed=yes
26417 fi
26418 fi
26419
26420 fi
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26422 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26423 if test x"$gcc_cv_ld_as_needed" = xyes; then
26424
26425 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26426
26427 fi
26428
26429 case "$target:$tm_file" in
26430 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26431 case "$target" in
26432 *-*-linux*)
26433 emul_name="-melf64ppc"
26434 ;;
26435 *-*-freebsd*)
26436 emul_name="-melf64ppc_fbsd"
26437 ;;
26438 esac
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26440 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26441 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26442 $as_echo_n "(cached) " >&6
26443 else
26444 gcc_cv_ld_no_dot_syms=no
26445 if test $in_tree_ld = yes ; then
26446 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
26447 gcc_cv_ld_no_dot_syms=yes
26448 fi
26449 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26450 cat > conftest1.s <<EOF
26451 .text
26452 bl .foo
26453 EOF
26454 cat > conftest2.s <<EOF
26455 .section ".opd","aw"
26456 .align 3
26457 .globl foo
26458 .type foo,@function
26459 foo:
26460 .quad .LEfoo,.TOC.@tocbase,0
26461 .text
26462 .LEfoo:
26463 blr
26464 .size foo,.-.LEfoo
26465 EOF
26466 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26467 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26468 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26469 gcc_cv_ld_no_dot_syms=yes
26470 fi
26471 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26472 fi
26473
26474 fi
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26476 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26477 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26478
26479 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26480
26481 fi
26482
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26484 $as_echo_n "checking linker large toc support... " >&6; }
26485 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26488 gcc_cv_ld_large_toc=no
26489 if test $in_tree_ld = yes ; then
26490 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
26491 gcc_cv_ld_large_toc=yes
26492 fi
26493 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26494 cat > conftest.s <<EOF
26495 .section ".tbss","awT",@nobits
26496 .align 3
26497 ie0: .space 8
26498 .global _start
26499 .text
26500 _start:
26501 addis 9,13,ie0@got@tprel@ha
26502 ld 9,ie0@got@tprel@l(9)
26503 EOF
26504 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26505 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26506 gcc_cv_ld_large_toc=yes
26507 fi
26508 rm -f conftest conftest.o conftest.s
26509 fi
26510
26511 fi
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26513 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26514 if test x"$gcc_cv_ld_large_toc" = xyes; then
26515
26516 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26517
26518 fi
26519 ;;
26520 esac
26521
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26523 $as_echo_n "checking linker --build-id support... " >&6; }
26524 if test "${gcc_cv_ld_buildid+set}" = set; then :
26525 $as_echo_n "(cached) " >&6
26526 else
26527 gcc_cv_ld_buildid=no
26528 if test $in_tree_ld = yes ; then
26529 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26530 "$gcc_cv_gld_minor_version" -ge 18 -o \
26531 "$gcc_cv_gld_major_version" -gt 2 \
26532 && test $in_tree_ld_is_elf = yes; then
26533 gcc_cv_ld_buildid=yes
26534 fi
26535 elif test x$gcc_cv_ld != x; then
26536 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26537 gcc_cv_ld_buildid=yes
26538 fi
26539 fi
26540 fi
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26542 $as_echo "$gcc_cv_ld_buildid" >&6; }
26543 if test x"$gcc_cv_ld_buildid" = xyes; then
26544
26545 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26546
26547 fi
26548
26549 # Check whether --enable-linker-build-id was given.
26550 if test "${enable_linker_build_id+set}" = set; then :
26551 enableval=$enable_linker_build_id;
26552 else
26553 enable_linker_build_id=no
26554 fi
26555
26556
26557 if test x"$enable_linker_build_id" = xyes; then
26558 if test x"$gcc_cv_ld_buildid" = xyes; then
26559
26560 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26561
26562 else
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26564 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26565 fi
26566 fi
26567
26568 # In binutils 2.21, GNU ld gained support for new emulations fully
26569 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26571 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26572 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575 gcc_cv_ld_sol2_emulation=no
26576 if test $in_tree_ld = yes ; then
26577 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26578 "$gcc_cv_gld_minor_version" -ge 21 -o \
26579 "$gcc_cv_gld_major_version" -gt 2 \
26580 && test $in_tree_ld_is_elf = yes; then
26581 gcc_cv_ld_sol2_emulation=yes
26582 fi
26583 elif test x$gcc_cv_ld != x; then
26584 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26585 grep _sol2 > /dev/null; then
26586 gcc_cv_ld_sol2_emulation=yes
26587 fi
26588 fi
26589 fi
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26591 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26592 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26593
26594 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26595
26596 fi
26597
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26599 $as_echo_n "checking linker --sysroot support... " >&6; }
26600 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26602 else
26603 gcc_cv_ld_sysroot=no
26604 if test $in_tree_ld = yes ; then
26605 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
26606 gcc_cv_ld_sysroot=yes
26607 fi
26608 elif test x$gcc_cv_ld != x; then
26609 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26610 gcc_cv_ld_sysroot=yes
26611 fi
26612 fi
26613 fi
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26615 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26616 if test x"$gcc_cv_ld_sysroot" = xyes; then
26617
26618 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26619
26620 fi
26621
26622 if test x$with_sysroot = x && test x$host = x$target \
26623 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26624 && test "$prefix" != "NONE"; then
26625
26626 cat >>confdefs.h <<_ACEOF
26627 #define PREFIX_INCLUDE_DIR "$prefix/include"
26628 _ACEOF
26629
26630 fi
26631
26632 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26633 if test "x$with_headers" != x; then
26634 target_header_dir=$with_headers
26635 elif test "x$with_sysroot" = x; then
26636 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26637 elif test "x$with_build_sysroot" != "x"; then
26638 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26639 elif test "x$with_sysroot" = xyes; then
26640 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26641 else
26642 target_header_dir="${with_sysroot}${native_system_header_dir}"
26643 fi
26644 else
26645 target_header_dir=${native_system_header_dir}
26646 fi
26647
26648 # Test for stack protector support in target C library.
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26650 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26651 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26652 $as_echo_n "(cached) " >&6
26653 else
26654 gcc_cv_libc_provides_ssp=no
26655 case "$target" in
26656 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26657 # glibc 2.4 and later provides __stack_chk_fail and
26658 # either __stack_chk_guard, or TLS access to stack guard canary.
26659 if test -f $target_header_dir/features.h \
26660 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26661 $target_header_dir/features.h > /dev/null; then
26662 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26663 $target_header_dir/features.h > /dev/null; then
26664 gcc_cv_libc_provides_ssp=yes
26665 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26666 $target_header_dir/features.h > /dev/null \
26667 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26668 $target_header_dir/features.h > /dev/null; then
26669 gcc_cv_libc_provides_ssp=yes
26670 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26671 $target_header_dir/features.h > /dev/null && \
26672 test -f $target_header_dir/bits/uClibc_config.h && \
26673 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26674 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26675 gcc_cv_libc_provides_ssp=yes
26676 fi
26677 # all versions of Bionic support stack protector
26678 elif test -f $target_header_dir/sys/cdefs.h \
26679 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26680 $target_header_dir/sys/cdefs.h > /dev/null; then
26681 gcc_cv_libc_provides_ssp=yes
26682 fi
26683 ;;
26684 *-*-gnu*)
26685 # Avoid complicated tests (see
26686 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26687 # simply assert that glibc does provide this, which is true for all
26688 # realistically usable GNU/Hurd configurations.
26689 gcc_cv_libc_provides_ssp=yes;;
26690 *-*-darwin* | *-*-freebsd*)
26691 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26692 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26693 gcc_cv_libc_provides_ssp=yes
26694 else
26695 echo "no __stack_chk_fail on this target"
26696 fi
26697
26698 ;;
26699 *) gcc_cv_libc_provides_ssp=no ;;
26700 esac
26701 fi
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26703 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26704
26705 if test x$gcc_cv_libc_provides_ssp = xyes; then
26706
26707 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26708
26709 fi
26710
26711 # Test for <sys/sdt.h> on the target.
26712
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26714 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26715 have_sys_sdt_h=no
26716 if test -f $target_header_dir/sys/sdt.h; then
26717 have_sys_sdt_h=yes
26718
26719 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26720
26721 fi
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26723 $as_echo "$have_sys_sdt_h" >&6; }
26724
26725 # Check if TFmode long double should be used by default or not.
26726 # Some glibc targets used DFmode long double, but with glibc 2.4
26727 # and later they can use TFmode.
26728 case "$target" in
26729 powerpc*-*-linux* | \
26730 sparc*-*-linux* | \
26731 s390*-*-linux* | \
26732 alpha*-*-linux*)
26733
26734 # Check whether --with-long-double-128 was given.
26735 if test "${with_long_double_128+set}" = set; then :
26736 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26737 else
26738 gcc_cv_target_ldbl128=no
26739 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26740 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26741 && gcc_cv_target_ldbl128=yes
26742
26743 fi
26744
26745 ;;
26746 esac
26747 if test x$gcc_cv_target_ldbl128 = xyes; then
26748
26749 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26750
26751 fi
26752
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26754 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26755 gcc_cv_target_dl_iterate_phdr=unknown
26756 case "$target" in
26757 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26758 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26759 # libdl there, both complicating its use and breaking compatibility
26760 # between Solaris 10 updates.
26761 *-*-solaris2.1[1-9]*)
26762 # <link.h> needs both a dl_iterate_phdr declaration and support for
26763 # compilation with largefile support.
26764 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26765 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26766 gcc_cv_target_dl_iterate_phdr=yes
26767 else
26768 gcc_cv_target_dl_iterate_phdr=no
26769 fi
26770 ;;
26771 esac
26772
26773 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26774
26775 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26776
26777 fi
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26779 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26780
26781 # Find out what GC implementation we want, or may, use.
26782
26783 # Check whether --with-gc was given.
26784 if test "${with_gc+set}" = set; then :
26785 withval=$with_gc; case "$withval" in
26786 page)
26787 GGC=ggc-$withval
26788 ;;
26789 zone)
26790 GGC=ggc-$withval
26791
26792 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26793
26794 ;;
26795 *)
26796 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26797 ;;
26798 esac
26799 else
26800 GGC=ggc-page
26801 fi
26802
26803
26804 echo "Using $GGC for garbage collection."
26805
26806 # Libraries to use on the host. This will normally be set by the top
26807 # level Makefile. Here we simply capture the value for our Makefile.
26808 if test -z "${HOST_LIBS+set}"; then
26809 HOST_LIBS=
26810 fi
26811
26812
26813 # Use the system's zlib library.
26814 zlibdir=-L../zlib
26815 zlibinc="-I\$(srcdir)/../zlib"
26816
26817 # Check whether --with-system-zlib was given.
26818 if test "${with_system_zlib+set}" = set; then :
26819 withval=$with_system_zlib; zlibdir=
26820 zlibinc=
26821
26822 fi
26823
26824
26825
26826
26827
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26829 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26830 # Check whether --enable-maintainer-mode was given.
26831 if test "${enable_maintainer_mode+set}" = set; then :
26832 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26833 else
26834 maintainer_mode=no
26835 fi
26836
26837
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26839 $as_echo "$maintainer_mode" >&6; }
26840
26841 if test "$maintainer_mode" = "yes"; then
26842 MAINT=''
26843 else
26844 MAINT='#'
26845 fi
26846
26847 # --------------
26848 # Language hooks
26849 # --------------
26850
26851 # Make empty files to contain the specs and options for each language.
26852 # Then add #include lines to for a compiler that has specs and/or options.
26853
26854 subdirs=
26855 lang_opt_files=
26856 lang_specs_files=
26857 lang_tree_files=
26858 # These (without "all_") are set in each config-lang.in.
26859 # `language' must be a single word so is spelled singularly.
26860 all_languages=
26861 all_compilers=
26862 all_outputs='Makefile'
26863 # List of language makefile fragments.
26864 all_lang_makefrags=
26865 # Additional files for gengtype
26866 all_gtfiles="$target_gtfiles"
26867
26868 # These are the languages that are set in --enable-languages,
26869 # and are available in the GCC tree.
26870 all_selected_languages=
26871
26872 # Add the language fragments.
26873 # Languages are added via two mechanisms. Some information must be
26874 # recorded in makefile variables, these are defined in config-lang.in.
26875 # We accumulate them and plug them into the main Makefile.
26876 # The other mechanism is a set of hooks for each of the main targets
26877 # like `clean', `install', etc.
26878
26879 language_hooks="Make-hooks"
26880
26881 for lang in ${srcdir}/*/config-lang.in
26882 do
26883 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26884
26885 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26886 if test "x$lang_alias" = x
26887 then
26888 echo "$lang doesn't set \$language." 1>&2
26889 exit 1
26890 fi
26891 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26892 subdirs="$subdirs $subdir"
26893
26894 # $gcc_subdir is where the gcc integration files are to be found
26895 # for a language, both for internal compiler purposes (compiler
26896 # sources implementing front-end to GCC tree converters), and for
26897 # build infrastructure purposes (Make-lang.in, etc.)
26898 #
26899 # This will be <subdir> (relative to $srcdir) if a line like
26900 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26901 # is found in <langdir>/config-lang.in, and will remain <langdir>
26902 # otherwise.
26903 #
26904 # Except for the language alias (fetched above), the regular
26905 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26906 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26907 # only this and the language alias.
26908
26909 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26910 if [ "$gcc_subdir" = "" ]; then
26911 gcc_subdir="$subdir"
26912 fi
26913
26914 case ",$enable_languages," in
26915 *,$lang_alias,*)
26916 all_selected_languages="$all_selected_languages $lang_alias"
26917 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26918 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26919 fi
26920 ;;
26921 esac
26922
26923 language=
26924 boot_language=
26925 compilers=
26926 outputs=
26927 gtfiles=
26928 subdir_requires=
26929 . ${srcdir}/$gcc_subdir/config-lang.in
26930 if test "x$language" = x
26931 then
26932 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26933 exit 1
26934 fi
26935
26936 ok=:
26937 case ",$enable_languages," in
26938 *,$lang_alias,*) ;;
26939 *)
26940 for i in $subdir_requires; do
26941 test -f "${srcdir}/$i/config-lang.in" && continue
26942 ok=false
26943 break
26944 done
26945 ;;
26946 esac
26947 $ok || continue
26948
26949 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26950 if test -f $srcdir/$gcc_subdir/lang.opt; then
26951 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26952 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26953 fi
26954 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26955 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26956 fi
26957 all_languages="$all_languages $language"
26958 all_compilers="$all_compilers $compilers"
26959 all_outputs="$all_outputs $outputs"
26960 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26961 case ",$enable_languages," in
26962 *,lto,*)
26963
26964 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26965
26966 enable_lto=yes
26967
26968 ;;
26969 *) ;;
26970 esac
26971 done
26972
26973 check_languages=
26974 for language in $all_selected_languages
26975 do
26976 check_languages="$check_languages check-$language"
26977 done
26978
26979 # We link each language in with a set of hooks, reached indirectly via
26980 # lang.${target}. Only do so for selected languages.
26981
26982 rm -f Make-hooks
26983 touch Make-hooks
26984 target_list="all.cross start.encap rest.encap tags \
26985 install-common install-man install-info install-pdf install-html dvi \
26986 pdf html uninstall info man srcextra srcman srcinfo \
26987 mostlyclean clean distclean maintainer-clean install-plugin"
26988
26989 for t in $target_list
26990 do
26991 x=
26992 for lang in $all_selected_languages
26993 do
26994 x="$x $lang.$t"
26995 done
26996 echo "lang.$t: $x" >> Make-hooks
26997 done
26998
26999 # --------
27000 # Option include files
27001 # --------
27002
27003 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27004 option_includes="option-includes.mk"
27005
27006
27007 # --------
27008 # UNSORTED
27009 # --------
27010
27011 # Create .gdbinit.
27012
27013 echo "dir ." > .gdbinit
27014 echo "dir ${srcdir}" >> .gdbinit
27015 if test x$gdb_needs_out_file_path = xyes
27016 then
27017 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27018 fi
27019 if test "x$subdirs" != x; then
27020 for s in $subdirs
27021 do
27022 echo "dir ${srcdir}/$s" >> .gdbinit
27023 done
27024 fi
27025 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27026
27027 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27028
27029
27030
27031 # Find a directory in which to install a shared libgcc.
27032
27033 # Check whether --enable-version-specific-runtime-libs was given.
27034 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27035 enableval=$enable_version_specific_runtime_libs;
27036 fi
27037
27038
27039 # Substitute configuration variables
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
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102 # Echo link setup.
27103 if test x${build} = x${host} ; then
27104 if test x${host} = x${target} ; then
27105 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27106 else
27107 echo "Links are now set up to build a cross-compiler" 1>&2
27108 echo " from ${host} to ${target}." 1>&2
27109 fi
27110 else
27111 if test x${host} = x${target} ; then
27112 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27113 echo " for ${target}." 1>&2
27114 else
27115 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27116 echo " from ${host} to ${target}." 1>&2
27117 fi
27118 fi
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128 if test "x${CLOOGLIBS}" != "x" ; then
27129
27130 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27131
27132 fi
27133
27134 # Check for plugin support
27135 # Check whether --enable-plugin was given.
27136 if test "${enable_plugin+set}" = set; then :
27137 enableval=$enable_plugin; enable_plugin=$enableval
27138 else
27139 enable_plugin=yes; default_plugin=yes
27140 fi
27141
27142
27143 pluginlibs=
27144
27145 case "${host}" in
27146 *-*-darwin*)
27147 if test x$build = x$host; then
27148 export_sym_check="nm${exeext} -g"
27149 elif test x$host = x$target; then
27150 export_sym_check="$gcc_cv_nm -g"
27151 else
27152 export_sym_check=
27153 fi
27154 ;;
27155 *)
27156 if test x$build = x$host; then
27157 export_sym_check="objdump${exeext} -T"
27158 elif test x$host = x$target; then
27159 export_sym_check="$gcc_cv_objdump -T"
27160 else
27161 export_sym_check=
27162 fi
27163 ;;
27164 esac
27165
27166 if test x"$enable_plugin" = x"yes"; then
27167
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27169 $as_echo_n "checking for exported symbols... " >&6; }
27170 if test "x$export_sym_check" != x; then
27171 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27172 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27173 if $export_sym_check conftest | grep foobar > /dev/null; then
27174 : # No need to use a flag
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27176 $as_echo "yes" >&6; }
27177 else
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27179 $as_echo "yes" >&6; }
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27181 $as_echo_n "checking for -rdynamic... " >&6; }
27182 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27183 if $export_sym_check conftest | grep foobar > /dev/null; then
27184 plugin_rdynamic=yes
27185 pluginlibs="-rdynamic"
27186 else
27187 plugin_rdynamic=no
27188 enable_plugin=no
27189 fi
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27191 $as_echo "$plugin_rdynamic" >&6; }
27192 fi
27193 else
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27195 $as_echo "unable to check" >&6; }
27196 fi
27197
27198 # Check -ldl
27199 saved_LIBS="$LIBS"
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27201 $as_echo_n "checking for library containing dlopen... " >&6; }
27202 if test "${ac_cv_search_dlopen+set}" = set; then :
27203 $as_echo_n "(cached) " >&6
27204 else
27205 ac_func_search_save_LIBS=$LIBS
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27208
27209 /* Override any GCC internal prototype to avoid an error.
27210 Use char because int might match the return type of a GCC
27211 builtin and then its argument prototype would still apply. */
27212 #ifdef __cplusplus
27213 extern "C"
27214 #endif
27215 char dlopen ();
27216 int
27217 main ()
27218 {
27219 return dlopen ();
27220 ;
27221 return 0;
27222 }
27223 _ACEOF
27224 for ac_lib in '' dl; do
27225 if test -z "$ac_lib"; then
27226 ac_res="none required"
27227 else
27228 ac_res=-l$ac_lib
27229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27230 fi
27231 if ac_fn_c_try_link "$LINENO"; then :
27232 ac_cv_search_dlopen=$ac_res
27233 fi
27234 rm -f core conftest.err conftest.$ac_objext \
27235 conftest$ac_exeext
27236 if test "${ac_cv_search_dlopen+set}" = set; then :
27237 break
27238 fi
27239 done
27240 if test "${ac_cv_search_dlopen+set}" = set; then :
27241
27242 else
27243 ac_cv_search_dlopen=no
27244 fi
27245 rm conftest.$ac_ext
27246 LIBS=$ac_func_search_save_LIBS
27247 fi
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27249 $as_echo "$ac_cv_search_dlopen" >&6; }
27250 ac_res=$ac_cv_search_dlopen
27251 if test "$ac_res" != no; then :
27252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27253
27254 fi
27255
27256 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27257 pluginlibs="$pluginlibs -ldl"
27258 fi
27259 LIBS="$saved_LIBS"
27260
27261 # Check that we can build shared objects with -fPIC -shared
27262 saved_LDFLAGS="$LDFLAGS"
27263 saved_CFLAGS="$CFLAGS"
27264 case "${host}" in
27265 *-*-darwin*)
27266 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27267 CFLAGS="$CFLAGS -fPIC"
27268 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27269 ;;
27270 *)
27271 CFLAGS="$CFLAGS -fPIC"
27272 LDFLAGS="$LDFLAGS -fPIC -shared"
27273 ;;
27274 esac
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27276 $as_echo_n "checking for -fPIC -shared... " >&6; }
27277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27278 /* end confdefs.h. */
27279 extern int X;
27280 int
27281 main ()
27282 {
27283 return X == 0;
27284 ;
27285 return 0;
27286 }
27287 _ACEOF
27288 if ac_fn_c_try_link "$LINENO"; then :
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27290 $as_echo "yes" >&6; }; have_pic_shared=yes
27291 else
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27293 $as_echo "no" >&6; }; have_pic_shared=no
27294 fi
27295 rm -f core conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext conftest.$ac_ext
27297 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27298 pluginlibs=
27299 enable_plugin=no
27300 fi
27301 LDFLAGS="$saved_LDFLAGS"
27302 CFLAGS="$saved_CFLAGS"
27303
27304 # If plugin support had been requested but not available, fail.
27305 if test x"$enable_plugin" = x"no" ; then
27306 if test x"$default_plugin" != x"yes"; then
27307 as_fn_error "
27308 Building GCC with plugin support requires a host that supports
27309 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27310 fi
27311 fi
27312 fi
27313
27314
27315
27316 if test x"$enable_plugin" = x"yes"; then
27317
27318 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27319
27320 fi
27321
27322
27323 # Check whether --enable-libquadmath-support was given.
27324 if test "${enable_libquadmath_support+set}" = set; then :
27325 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27326 else
27327 ENABLE_LIBQUADMATH_SUPPORT=yes
27328 fi
27329
27330 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27331
27332 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27333
27334 fi
27335
27336
27337 # Specify what hash style to use by default.
27338
27339 # Check whether --with-linker-hash-style was given.
27340 if test "${with_linker_hash_style+set}" = set; then :
27341 withval=$with_linker_hash_style; case x"$withval" in
27342 xsysv)
27343 LINKER_HASH_STYLE=sysv
27344 ;;
27345 xgnu)
27346 LINKER_HASH_STYLE=gnu
27347 ;;
27348 xboth)
27349 LINKER_HASH_STYLE=both
27350 ;;
27351 *)
27352 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27353 ;;
27354 esac
27355 else
27356 LINKER_HASH_STYLE=''
27357 fi
27358
27359 if test x"${LINKER_HASH_STYLE}" != x; then
27360
27361 cat >>confdefs.h <<_ACEOF
27362 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27363 _ACEOF
27364
27365 fi
27366
27367 # Configure the subdirectories
27368 # AC_CONFIG_SUBDIRS($subdirs)
27369
27370 # Create the Makefile
27371 # and configure language subdirectories
27372 ac_config_files="$ac_config_files $all_outputs"
27373
27374
27375 ac_config_commands="$ac_config_commands default"
27376
27377 cat >confcache <<\_ACEOF
27378 # This file is a shell script that caches the results of configure
27379 # tests run on this system so they can be shared between configure
27380 # scripts and configure runs, see configure's option --config-cache.
27381 # It is not useful on other systems. If it contains results you don't
27382 # want to keep, you may remove or edit it.
27383 #
27384 # config.status only pays attention to the cache file if you give it
27385 # the --recheck option to rerun configure.
27386 #
27387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27389 # following values.
27390
27391 _ACEOF
27392
27393 # The following way of writing the cache mishandles newlines in values,
27394 # but we know of no workaround that is simple, portable, and efficient.
27395 # So, we kill variables containing newlines.
27396 # Ultrix sh set writes to stderr and can't be redirected directly,
27397 # and sets the high bit in the cache file unless we assign to the vars.
27398 (
27399 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27400 eval ac_val=\$$ac_var
27401 case $ac_val in #(
27402 *${as_nl}*)
27403 case $ac_var in #(
27404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27406 esac
27407 case $ac_var in #(
27408 _ | IFS | as_nl) ;; #(
27409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27410 *) { eval $ac_var=; unset $ac_var;} ;;
27411 esac ;;
27412 esac
27413 done
27414
27415 (set) 2>&1 |
27416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27417 *${as_nl}ac_space=\ *)
27418 # `set' does not quote correctly, so add quotes: double-quote
27419 # substitution turns \\\\ into \\, and sed turns \\ into \.
27420 sed -n \
27421 "s/'/'\\\\''/g;
27422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27423 ;; #(
27424 *)
27425 # `set' quotes correctly as required by POSIX, so do not add quotes.
27426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27427 ;;
27428 esac |
27429 sort
27430 ) |
27431 sed '
27432 /^ac_cv_env_/b end
27433 t clear
27434 :clear
27435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27436 t end
27437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27438 :end' >>confcache
27439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27440 if test -w "$cache_file"; then
27441 test "x$cache_file" != "x/dev/null" &&
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27443 $as_echo "$as_me: updating cache $cache_file" >&6;}
27444 cat confcache >$cache_file
27445 else
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27448 fi
27449 fi
27450 rm -f confcache
27451
27452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27453 # Let make expand exec_prefix.
27454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27455
27456 DEFS=-DHAVE_CONFIG_H
27457
27458 ac_libobjs=
27459 ac_ltlibobjs=
27460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27461 # 1. Remove the extension, and $U if already installed.
27462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27463 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27465 # will be set to the directory where LIBOBJS objects are built.
27466 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27467 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27468 done
27469 LIBOBJS=$ac_libobjs
27470
27471 LTLIBOBJS=$ac_ltlibobjs
27472
27473
27474
27475
27476 : ${CONFIG_STATUS=./config.status}
27477 ac_write_fail=0
27478 ac_clean_files_save=$ac_clean_files
27479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27482 as_write_fail=0
27483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27484 #! $SHELL
27485 # Generated by $as_me.
27486 # Run this file to recreate the current configuration.
27487 # Compiler output produced by configure, useful for debugging
27488 # configure, is in config.log if it exists.
27489
27490 debug=false
27491 ac_cs_recheck=false
27492 ac_cs_silent=false
27493
27494 SHELL=\${CONFIG_SHELL-$SHELL}
27495 export SHELL
27496 _ASEOF
27497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27498 ## -------------------- ##
27499 ## M4sh Initialization. ##
27500 ## -------------------- ##
27501
27502 # Be more Bourne compatible
27503 DUALCASE=1; export DUALCASE # for MKS sh
27504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27505 emulate sh
27506 NULLCMD=:
27507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27508 # is contrary to our usage. Disable this feature.
27509 alias -g '${1+"$@"}'='"$@"'
27510 setopt NO_GLOB_SUBST
27511 else
27512 case `(set -o) 2>/dev/null` in #(
27513 *posix*) :
27514 set -o posix ;; #(
27515 *) :
27516 ;;
27517 esac
27518 fi
27519
27520
27521 as_nl='
27522 '
27523 export as_nl
27524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27528 # Prefer a ksh shell builtin over an external printf program on Solaris,
27529 # but without wasting forks for bash or zsh.
27530 if test -z "$BASH_VERSION$ZSH_VERSION" \
27531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27532 as_echo='print -r --'
27533 as_echo_n='print -rn --'
27534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27535 as_echo='printf %s\n'
27536 as_echo_n='printf %s'
27537 else
27538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27540 as_echo_n='/usr/ucb/echo -n'
27541 else
27542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27543 as_echo_n_body='eval
27544 arg=$1;
27545 case $arg in #(
27546 *"$as_nl"*)
27547 expr "X$arg" : "X\\(.*\\)$as_nl";
27548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27549 esac;
27550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27551 '
27552 export as_echo_n_body
27553 as_echo_n='sh -c $as_echo_n_body as_echo'
27554 fi
27555 export as_echo_body
27556 as_echo='sh -c $as_echo_body as_echo'
27557 fi
27558
27559 # The user is always right.
27560 if test "${PATH_SEPARATOR+set}" != set; then
27561 PATH_SEPARATOR=:
27562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27564 PATH_SEPARATOR=';'
27565 }
27566 fi
27567
27568
27569 # IFS
27570 # We need space, tab and new line, in precisely that order. Quoting is
27571 # there to prevent editors from complaining about space-tab.
27572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27573 # splitting by setting IFS to empty value.)
27574 IFS=" "" $as_nl"
27575
27576 # Find who we are. Look in the path if we contain no directory separator.
27577 case $0 in #((
27578 *[\\/]* ) as_myself=$0 ;;
27579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27580 for as_dir in $PATH
27581 do
27582 IFS=$as_save_IFS
27583 test -z "$as_dir" && as_dir=.
27584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27585 done
27586 IFS=$as_save_IFS
27587
27588 ;;
27589 esac
27590 # We did not find ourselves, most probably we were run as `sh COMMAND'
27591 # in which case we are not to be found in the path.
27592 if test "x$as_myself" = x; then
27593 as_myself=$0
27594 fi
27595 if test ! -f "$as_myself"; then
27596 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27597 exit 1
27598 fi
27599
27600 # Unset variables that we do not need and which cause bugs (e.g. in
27601 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27602 # suppresses any "Segmentation fault" message there. '((' could
27603 # trigger a bug in pdksh 5.2.14.
27604 for as_var in BASH_ENV ENV MAIL MAILPATH
27605 do eval test x\${$as_var+set} = xset \
27606 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27607 done
27608 PS1='$ '
27609 PS2='> '
27610 PS4='+ '
27611
27612 # NLS nuisances.
27613 LC_ALL=C
27614 export LC_ALL
27615 LANGUAGE=C
27616 export LANGUAGE
27617
27618 # CDPATH.
27619 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27620
27621
27622 # as_fn_error ERROR [LINENO LOG_FD]
27623 # ---------------------------------
27624 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27625 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27626 # script with status $?, using 1 if that was 0.
27627 as_fn_error ()
27628 {
27629 as_status=$?; test $as_status -eq 0 && as_status=1
27630 if test "$3"; then
27631 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27632 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27633 fi
27634 $as_echo "$as_me: error: $1" >&2
27635 as_fn_exit $as_status
27636 } # as_fn_error
27637
27638
27639 # as_fn_set_status STATUS
27640 # -----------------------
27641 # Set $? to STATUS, without forking.
27642 as_fn_set_status ()
27643 {
27644 return $1
27645 } # as_fn_set_status
27646
27647 # as_fn_exit STATUS
27648 # -----------------
27649 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27650 as_fn_exit ()
27651 {
27652 set +e
27653 as_fn_set_status $1
27654 exit $1
27655 } # as_fn_exit
27656
27657 # as_fn_unset VAR
27658 # ---------------
27659 # Portably unset VAR.
27660 as_fn_unset ()
27661 {
27662 { eval $1=; unset $1;}
27663 }
27664 as_unset=as_fn_unset
27665 # as_fn_append VAR VALUE
27666 # ----------------------
27667 # Append the text in VALUE to the end of the definition contained in VAR. Take
27668 # advantage of any shell optimizations that allow amortized linear growth over
27669 # repeated appends, instead of the typical quadratic growth present in naive
27670 # implementations.
27671 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27672 eval 'as_fn_append ()
27673 {
27674 eval $1+=\$2
27675 }'
27676 else
27677 as_fn_append ()
27678 {
27679 eval $1=\$$1\$2
27680 }
27681 fi # as_fn_append
27682
27683 # as_fn_arith ARG...
27684 # ------------------
27685 # Perform arithmetic evaluation on the ARGs, and store the result in the
27686 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27687 # must be portable across $(()) and expr.
27688 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27689 eval 'as_fn_arith ()
27690 {
27691 as_val=$(( $* ))
27692 }'
27693 else
27694 as_fn_arith ()
27695 {
27696 as_val=`expr "$@" || test $? -eq 1`
27697 }
27698 fi # as_fn_arith
27699
27700
27701 if expr a : '\(a\)' >/dev/null 2>&1 &&
27702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27703 as_expr=expr
27704 else
27705 as_expr=false
27706 fi
27707
27708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27709 as_basename=basename
27710 else
27711 as_basename=false
27712 fi
27713
27714 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27715 as_dirname=dirname
27716 else
27717 as_dirname=false
27718 fi
27719
27720 as_me=`$as_basename -- "$0" ||
27721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27722 X"$0" : 'X\(//\)$' \| \
27723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27724 $as_echo X/"$0" |
27725 sed '/^.*\/\([^/][^/]*\)\/*$/{
27726 s//\1/
27727 q
27728 }
27729 /^X\/\(\/\/\)$/{
27730 s//\1/
27731 q
27732 }
27733 /^X\/\(\/\).*/{
27734 s//\1/
27735 q
27736 }
27737 s/.*/./; q'`
27738
27739 # Avoid depending upon Character Ranges.
27740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27743 as_cr_digits='0123456789'
27744 as_cr_alnum=$as_cr_Letters$as_cr_digits
27745
27746 ECHO_C= ECHO_N= ECHO_T=
27747 case `echo -n x` in #(((((
27748 -n*)
27749 case `echo 'xy\c'` in
27750 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27751 xy) ECHO_C='\c';;
27752 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27753 ECHO_T=' ';;
27754 esac;;
27755 *)
27756 ECHO_N='-n';;
27757 esac
27758
27759 rm -f conf$$ conf$$.exe conf$$.file
27760 if test -d conf$$.dir; then
27761 rm -f conf$$.dir/conf$$.file
27762 else
27763 rm -f conf$$.dir
27764 mkdir conf$$.dir 2>/dev/null
27765 fi
27766 if (echo >conf$$.file) 2>/dev/null; then
27767 if ln -s conf$$.file conf$$ 2>/dev/null; then
27768 as_ln_s='ln -s'
27769 # ... but there are two gotchas:
27770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27772 # In both cases, we have to default to `cp -p'.
27773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27774 as_ln_s='cp -p'
27775 elif ln conf$$.file conf$$ 2>/dev/null; then
27776 as_ln_s=ln
27777 else
27778 as_ln_s='cp -p'
27779 fi
27780 else
27781 as_ln_s='cp -p'
27782 fi
27783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27784 rmdir conf$$.dir 2>/dev/null
27785
27786
27787 # as_fn_mkdir_p
27788 # -------------
27789 # Create "$as_dir" as a directory, including parents if necessary.
27790 as_fn_mkdir_p ()
27791 {
27792
27793 case $as_dir in #(
27794 -*) as_dir=./$as_dir;;
27795 esac
27796 test -d "$as_dir" || eval $as_mkdir_p || {
27797 as_dirs=
27798 while :; do
27799 case $as_dir in #(
27800 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27801 *) as_qdir=$as_dir;;
27802 esac
27803 as_dirs="'$as_qdir' $as_dirs"
27804 as_dir=`$as_dirname -- "$as_dir" ||
27805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27806 X"$as_dir" : 'X\(//\)[^/]' \| \
27807 X"$as_dir" : 'X\(//\)$' \| \
27808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27809 $as_echo X"$as_dir" |
27810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27811 s//\1/
27812 q
27813 }
27814 /^X\(\/\/\)[^/].*/{
27815 s//\1/
27816 q
27817 }
27818 /^X\(\/\/\)$/{
27819 s//\1/
27820 q
27821 }
27822 /^X\(\/\).*/{
27823 s//\1/
27824 q
27825 }
27826 s/.*/./; q'`
27827 test -d "$as_dir" && break
27828 done
27829 test -z "$as_dirs" || eval "mkdir $as_dirs"
27830 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27831
27832
27833 } # as_fn_mkdir_p
27834 if mkdir -p . 2>/dev/null; then
27835 as_mkdir_p='mkdir -p "$as_dir"'
27836 else
27837 test -d ./-p && rmdir ./-p
27838 as_mkdir_p=false
27839 fi
27840
27841 if test -x / >/dev/null 2>&1; then
27842 as_test_x='test -x'
27843 else
27844 if ls -dL / >/dev/null 2>&1; then
27845 as_ls_L_option=L
27846 else
27847 as_ls_L_option=
27848 fi
27849 as_test_x='
27850 eval sh -c '\''
27851 if test -d "$1"; then
27852 test -d "$1/.";
27853 else
27854 case $1 in #(
27855 -*)set "./$1";;
27856 esac;
27857 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27858 ???[sx]*):;;*)false;;esac;fi
27859 '\'' sh
27860 '
27861 fi
27862 as_executable_p=$as_test_x
27863
27864 # Sed expression to map a string onto a valid CPP name.
27865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27866
27867 # Sed expression to map a string onto a valid variable name.
27868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27869
27870
27871 exec 6>&1
27872 ## ----------------------------------- ##
27873 ## Main body of $CONFIG_STATUS script. ##
27874 ## ----------------------------------- ##
27875 _ASEOF
27876 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27877
27878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27879 # Save the log message, to keep $0 and so on meaningful, and to
27880 # report actual input values of CONFIG_FILES etc. instead of their
27881 # values after options handling.
27882 ac_log="
27883 This file was extended by $as_me, which was
27884 generated by GNU Autoconf 2.64. Invocation command line was
27885
27886 CONFIG_FILES = $CONFIG_FILES
27887 CONFIG_HEADERS = $CONFIG_HEADERS
27888 CONFIG_LINKS = $CONFIG_LINKS
27889 CONFIG_COMMANDS = $CONFIG_COMMANDS
27890 $ $0 $@
27891
27892 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27893 "
27894
27895 _ACEOF
27896
27897 case $ac_config_files in *"
27898 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27899 esac
27900
27901 case $ac_config_headers in *"
27902 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27903 esac
27904
27905
27906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27907 # Files that config.status was made for.
27908 config_files="$ac_config_files"
27909 config_headers="$ac_config_headers"
27910 config_commands="$ac_config_commands"
27911
27912 _ACEOF
27913
27914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27915 ac_cs_usage="\
27916 \`$as_me' instantiates files and other configuration actions
27917 from templates according to the current configuration. Unless the files
27918 and actions are specified as TAGs, all are instantiated by default.
27919
27920 Usage: $0 [OPTION]... [TAG]...
27921
27922 -h, --help print this help, then exit
27923 -V, --version print version number and configuration settings, then exit
27924 -q, --quiet, --silent
27925 do not print progress messages
27926 -d, --debug don't remove temporary files
27927 --recheck update $as_me by reconfiguring in the same conditions
27928 --file=FILE[:TEMPLATE]
27929 instantiate the configuration file FILE
27930 --header=FILE[:TEMPLATE]
27931 instantiate the configuration header FILE
27932
27933 Configuration files:
27934 $config_files
27935
27936 Configuration headers:
27937 $config_headers
27938
27939 Configuration commands:
27940 $config_commands
27941
27942 Report bugs to the package provider."
27943
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27946 ac_cs_version="\\
27947 config.status
27948 configured by $0, generated by GNU Autoconf 2.64,
27949 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27950
27951 Copyright (C) 2009 Free Software Foundation, Inc.
27952 This config.status script is free software; the Free Software Foundation
27953 gives unlimited permission to copy, distribute and modify it."
27954
27955 ac_pwd='$ac_pwd'
27956 srcdir='$srcdir'
27957 AWK='$AWK'
27958 test -n "\$AWK" || AWK=awk
27959 _ACEOF
27960
27961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27962 # The default lists apply if the user does not specify any file.
27963 ac_need_defaults=:
27964 while test $# != 0
27965 do
27966 case $1 in
27967 --*=*)
27968 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27969 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27970 ac_shift=:
27971 ;;
27972 *)
27973 ac_option=$1
27974 ac_optarg=$2
27975 ac_shift=shift
27976 ;;
27977 esac
27978
27979 case $ac_option in
27980 # Handling of the options.
27981 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27982 ac_cs_recheck=: ;;
27983 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27984 $as_echo "$ac_cs_version"; exit ;;
27985 --debug | --debu | --deb | --de | --d | -d )
27986 debug=: ;;
27987 --file | --fil | --fi | --f )
27988 $ac_shift
27989 case $ac_optarg in
27990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27991 esac
27992 as_fn_append CONFIG_FILES " '$ac_optarg'"
27993 ac_need_defaults=false;;
27994 --header | --heade | --head | --hea )
27995 $ac_shift
27996 case $ac_optarg in
27997 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27998 esac
27999 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28000 ac_need_defaults=false;;
28001 --he | --h)
28002 # Conflict between --help and --header
28003 as_fn_error "ambiguous option: \`$1'
28004 Try \`$0 --help' for more information.";;
28005 --help | --hel | -h )
28006 $as_echo "$ac_cs_usage"; exit ;;
28007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28008 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28009 ac_cs_silent=: ;;
28010
28011 # This is an error.
28012 -*) as_fn_error "unrecognized option: \`$1'
28013 Try \`$0 --help' for more information." ;;
28014
28015 *) as_fn_append ac_config_targets " $1"
28016 ac_need_defaults=false ;;
28017
28018 esac
28019 shift
28020 done
28021
28022 ac_configure_extra_args=
28023
28024 if $ac_cs_silent; then
28025 exec 6>/dev/null
28026 ac_configure_extra_args="$ac_configure_extra_args --silent"
28027 fi
28028
28029 _ACEOF
28030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28031 if \$ac_cs_recheck; then
28032 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28033 shift
28034 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28035 CONFIG_SHELL='$SHELL'
28036 export CONFIG_SHELL
28037 exec "\$@"
28038 fi
28039
28040 _ACEOF
28041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28042 exec 5>>config.log
28043 {
28044 echo
28045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28046 ## Running $as_me. ##
28047 _ASBOX
28048 $as_echo "$ac_log"
28049 } >&5
28050
28051 _ACEOF
28052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28053 #
28054 # INIT-COMMANDS
28055 #
28056 subdirs='$subdirs'
28057
28058 _ACEOF
28059
28060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28061
28062 # Handling of arguments.
28063 for ac_config_target in $ac_config_targets
28064 do
28065 case $ac_config_target in
28066 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28067 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28068 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28069 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28070 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28071 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28072
28073 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28074 esac
28075 done
28076
28077
28078 # If the user did not use the arguments to specify the items to instantiate,
28079 # then the envvar interface is used. Set only those that are not.
28080 # We use the long form for the default assignment because of an extremely
28081 # bizarre bug on SunOS 4.1.3.
28082 if $ac_need_defaults; then
28083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28086 fi
28087
28088 # Have a temporary directory for convenience. Make it in the build tree
28089 # simply because there is no reason against having it here, and in addition,
28090 # creating and moving files from /tmp can sometimes cause problems.
28091 # Hook for its removal unless debugging.
28092 # Note that there is a small window in which the directory will not be cleaned:
28093 # after its creation but before its name has been assigned to `$tmp'.
28094 $debug ||
28095 {
28096 tmp=
28097 trap 'exit_status=$?
28098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28099 ' 0
28100 trap 'as_fn_exit 1' 1 2 13 15
28101 }
28102 # Create a (secure) tmp directory for tmp files.
28103
28104 {
28105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28106 test -n "$tmp" && test -d "$tmp"
28107 } ||
28108 {
28109 tmp=./conf$$-$RANDOM
28110 (umask 077 && mkdir "$tmp")
28111 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28112
28113 # Set up the scripts for CONFIG_FILES section.
28114 # No need to generate them if there are no CONFIG_FILES.
28115 # This happens for instance with `./config.status config.h'.
28116 if test -n "$CONFIG_FILES"; then
28117
28118 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28119 ac_cs_awk_getline=:
28120 ac_cs_awk_pipe_init=
28121 ac_cs_awk_read_file='
28122 while ((getline aline < (F[key])) > 0)
28123 print(aline)
28124 close(F[key])'
28125 ac_cs_awk_pipe_fini=
28126 else
28127 ac_cs_awk_getline=false
28128 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28129 ac_cs_awk_read_file='
28130 print "|#_!!_#|"
28131 print "cat " F[key] " &&"
28132 '$ac_cs_awk_pipe_init
28133 # The final `:' finishes the AND list.
28134 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28135 fi
28136 ac_cr=`echo X | tr X '\015'`
28137 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28138 # But we know of no other shell where ac_cr would be empty at this
28139 # point, so we can use a bashism as a fallback.
28140 if test "x$ac_cr" = x; then
28141 eval ac_cr=\$\'\\r\'
28142 fi
28143 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28144 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28145 ac_cs_awk_cr='\r'
28146 else
28147 ac_cs_awk_cr=$ac_cr
28148 fi
28149
28150 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28151 _ACEOF
28152
28153 # Create commands to substitute file output variables.
28154 {
28155 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28156 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28157 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28158 echo "_ACAWK" &&
28159 echo "_ACEOF"
28160 } >conf$$files.sh &&
28161 . ./conf$$files.sh ||
28162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28163 rm -f conf$$files.sh
28164
28165 {
28166 echo "cat >conf$$subs.awk <<_ACEOF" &&
28167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28168 echo "_ACEOF"
28169 } >conf$$subs.sh ||
28170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28172 ac_delim='%!_!# '
28173 for ac_last_try in false false false false false :; do
28174 . ./conf$$subs.sh ||
28175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28176
28177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28178 if test $ac_delim_n = $ac_delim_num; then
28179 break
28180 elif $ac_last_try; then
28181 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28182 else
28183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28184 fi
28185 done
28186 rm -f conf$$subs.sh
28187
28188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28189 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28190 _ACEOF
28191 sed -n '
28192 h
28193 s/^/S["/; s/!.*/"]=/
28194 p
28195 g
28196 s/^[^!]*!//
28197 :repl
28198 t repl
28199 s/'"$ac_delim"'$//
28200 t delim
28201 :nl
28202 h
28203 s/\(.\{148\}\).*/\1/
28204 t more1
28205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28206 p
28207 n
28208 b repl
28209 :more1
28210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28211 p
28212 g
28213 s/.\{148\}//
28214 t nl
28215 :delim
28216 h
28217 s/\(.\{148\}\).*/\1/
28218 t more2
28219 s/["\\]/\\&/g; s/^/"/; s/$/"/
28220 p
28221 b
28222 :more2
28223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28224 p
28225 g
28226 s/.\{148\}//
28227 t delim
28228 ' <conf$$subs.awk | sed '
28229 /^[^""]/{
28230 N
28231 s/\n//
28232 }
28233 ' >>$CONFIG_STATUS || ac_write_fail=1
28234 rm -f conf$$subs.awk
28235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28236 _ACAWK
28237 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28238 for (key in S) S_is_set[key] = 1
28239 FS = "\a"
28240 \$ac_cs_awk_pipe_init
28241 }
28242 {
28243 line = $ 0
28244 nfields = split(line, field, "@")
28245 substed = 0
28246 len = length(field[1])
28247 for (i = 2; i < nfields; i++) {
28248 key = field[i]
28249 keylen = length(key)
28250 if (S_is_set[key]) {
28251 value = S[key]
28252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28253 len += length(value) + length(field[++i])
28254 substed = 1
28255 } else
28256 len += 1 + keylen
28257 }
28258 if (nfields == 3 && !substed) {
28259 key = field[2]
28260 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28261 \$ac_cs_awk_read_file
28262 next
28263 }
28264 }
28265 print line
28266 }
28267 \$ac_cs_awk_pipe_fini
28268 _ACAWK
28269 _ACEOF
28270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28273 else
28274 cat
28275 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28276 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28277 _ACEOF
28278
28279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28281 # trailing colons and then remove the whole line if VPATH becomes empty
28282 # (actually we leave an empty line to preserve line numbers).
28283 if test "x$srcdir" = x.; then
28284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28285 s/:*\$(srcdir):*/:/
28286 s/:*\${srcdir}:*/:/
28287 s/:*@srcdir@:*/:/
28288 s/^\([^=]*=[ ]*\):*/\1/
28289 s/:*$//
28290 s/^[^=]*=[ ]*$//
28291 }'
28292 fi
28293
28294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28295 fi # test -n "$CONFIG_FILES"
28296
28297 # Set up the scripts for CONFIG_HEADERS section.
28298 # No need to generate them if there are no CONFIG_HEADERS.
28299 # This happens for instance with `./config.status Makefile'.
28300 if test -n "$CONFIG_HEADERS"; then
28301 cat >"$tmp/defines.awk" <<\_ACAWK ||
28302 BEGIN {
28303 _ACEOF
28304
28305 # Transform confdefs.h into an awk script `defines.awk', embedded as
28306 # here-document in config.status, that substitutes the proper values into
28307 # config.h.in to produce config.h.
28308
28309 # Create a delimiter string that does not exist in confdefs.h, to ease
28310 # handling of long lines.
28311 ac_delim='%!_!# '
28312 for ac_last_try in false false :; do
28313 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28314 if test -z "$ac_t"; then
28315 break
28316 elif $ac_last_try; then
28317 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28318 else
28319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28320 fi
28321 done
28322
28323 # For the awk script, D is an array of macro values keyed by name,
28324 # likewise P contains macro parameters if any. Preserve backslash
28325 # newline sequences.
28326
28327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28328 sed -n '
28329 s/.\{148\}/&'"$ac_delim"'/g
28330 t rset
28331 :rset
28332 s/^[ ]*#[ ]*define[ ][ ]*/ /
28333 t def
28334 d
28335 :def
28336 s/\\$//
28337 t bsnl
28338 s/["\\]/\\&/g
28339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28340 D["\1"]=" \3"/p
28341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28342 d
28343 :bsnl
28344 s/["\\]/\\&/g
28345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28346 D["\1"]=" \3\\\\\\n"\\/p
28347 t cont
28348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28349 t cont
28350 d
28351 :cont
28352 n
28353 s/.\{148\}/&'"$ac_delim"'/g
28354 t clear
28355 :clear
28356 s/\\$//
28357 t bsnlc
28358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28359 d
28360 :bsnlc
28361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28362 b cont
28363 ' <confdefs.h | sed '
28364 s/'"$ac_delim"'/"\\\
28365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28366
28367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28368 for (key in D) D_is_set[key] = 1
28369 FS = "\a"
28370 }
28371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28372 line = \$ 0
28373 split(line, arg, " ")
28374 if (arg[1] == "#") {
28375 defundef = arg[2]
28376 mac1 = arg[3]
28377 } else {
28378 defundef = substr(arg[1], 2)
28379 mac1 = arg[2]
28380 }
28381 split(mac1, mac2, "(") #)
28382 macro = mac2[1]
28383 prefix = substr(line, 1, index(line, defundef) - 1)
28384 if (D_is_set[macro]) {
28385 # Preserve the white space surrounding the "#".
28386 print prefix "define", macro P[macro] D[macro]
28387 next
28388 } else {
28389 # Replace #undef with comments. This is necessary, for example,
28390 # in the case of _POSIX_SOURCE, which is predefined and required
28391 # on some systems where configure will not decide to define it.
28392 if (defundef == "undef") {
28393 print "/*", prefix defundef, macro, "*/"
28394 next
28395 }
28396 }
28397 }
28398 { print }
28399 _ACAWK
28400 _ACEOF
28401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28402 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28403 fi # test -n "$CONFIG_HEADERS"
28404
28405
28406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28407 shift
28408 for ac_tag
28409 do
28410 case $ac_tag in
28411 :[FHLC]) ac_mode=$ac_tag; continue;;
28412 esac
28413 case $ac_mode$ac_tag in
28414 :[FHL]*:*);;
28415 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28416 :[FH]-) ac_tag=-:-;;
28417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28418 esac
28419 ac_save_IFS=$IFS
28420 IFS=:
28421 set x $ac_tag
28422 IFS=$ac_save_IFS
28423 shift
28424 ac_file=$1
28425 shift
28426
28427 case $ac_mode in
28428 :L) ac_source=$1;;
28429 :[FH])
28430 ac_file_inputs=
28431 for ac_f
28432 do
28433 case $ac_f in
28434 -) ac_f="$tmp/stdin";;
28435 *) # Look for the file first in the build tree, then in the source tree
28436 # (if the path is not absolute). The absolute path cannot be DOS-style,
28437 # because $ac_f cannot contain `:'.
28438 test -f "$ac_f" ||
28439 case $ac_f in
28440 [\\/$]*) false;;
28441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28442 esac ||
28443 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28444 esac
28445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28446 as_fn_append ac_file_inputs " '$ac_f'"
28447 done
28448
28449 # Let's still pretend it is `configure' which instantiates (i.e., don't
28450 # use $as_me), people would be surprised to read:
28451 # /* config.h. Generated by config.status. */
28452 configure_input='Generated from '`
28453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28454 `' by configure.'
28455 if test x"$ac_file" != x-; then
28456 configure_input="$ac_file. $configure_input"
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28458 $as_echo "$as_me: creating $ac_file" >&6;}
28459 fi
28460 # Neutralize special characters interpreted by sed in replacement strings.
28461 case $configure_input in #(
28462 *\&* | *\|* | *\\* )
28463 ac_sed_conf_input=`$as_echo "$configure_input" |
28464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28465 *) ac_sed_conf_input=$configure_input;;
28466 esac
28467
28468 case $ac_tag in
28469 *:-:* | *:-) cat >"$tmp/stdin" \
28470 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28471 esac
28472 ;;
28473 esac
28474
28475 ac_dir=`$as_dirname -- "$ac_file" ||
28476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28477 X"$ac_file" : 'X\(//\)[^/]' \| \
28478 X"$ac_file" : 'X\(//\)$' \| \
28479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28480 $as_echo X"$ac_file" |
28481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28482 s//\1/
28483 q
28484 }
28485 /^X\(\/\/\)[^/].*/{
28486 s//\1/
28487 q
28488 }
28489 /^X\(\/\/\)$/{
28490 s//\1/
28491 q
28492 }
28493 /^X\(\/\).*/{
28494 s//\1/
28495 q
28496 }
28497 s/.*/./; q'`
28498 as_dir="$ac_dir"; as_fn_mkdir_p
28499 ac_builddir=.
28500
28501 case "$ac_dir" in
28502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28503 *)
28504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28505 # A ".." for each directory in $ac_dir_suffix.
28506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28507 case $ac_top_builddir_sub in
28508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28510 esac ;;
28511 esac
28512 ac_abs_top_builddir=$ac_pwd
28513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28514 # for backward compatibility:
28515 ac_top_builddir=$ac_top_build_prefix
28516
28517 case $srcdir in
28518 .) # We are building in place.
28519 ac_srcdir=.
28520 ac_top_srcdir=$ac_top_builddir_sub
28521 ac_abs_top_srcdir=$ac_pwd ;;
28522 [\\/]* | ?:[\\/]* ) # Absolute name.
28523 ac_srcdir=$srcdir$ac_dir_suffix;
28524 ac_top_srcdir=$srcdir
28525 ac_abs_top_srcdir=$srcdir ;;
28526 *) # Relative name.
28527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28528 ac_top_srcdir=$ac_top_build_prefix$srcdir
28529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28530 esac
28531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28532
28533
28534 case $ac_mode in
28535 :F)
28536 #
28537 # CONFIG_FILE
28538 #
28539
28540 _ACEOF
28541
28542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28543 # If the template does not know about datarootdir, expand it.
28544 # FIXME: This hack should be removed a few years after 2.60.
28545 ac_datarootdir_hack=; ac_datarootdir_seen=
28546 ac_sed_dataroot='
28547 /datarootdir/ {
28548 p
28549 q
28550 }
28551 /@datadir@/p
28552 /@docdir@/p
28553 /@infodir@/p
28554 /@localedir@/p
28555 /@mandir@/p'
28556 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28557 *datarootdir*) ac_datarootdir_seen=yes;;
28558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28560 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28561 _ACEOF
28562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28563 ac_datarootdir_hack='
28564 s&@datadir@&$datadir&g
28565 s&@docdir@&$docdir&g
28566 s&@infodir@&$infodir&g
28567 s&@localedir@&$localedir&g
28568 s&@mandir@&$mandir&g
28569 s&\\\${datarootdir}&$datarootdir&g' ;;
28570 esac
28571 _ACEOF
28572
28573 # Neutralize VPATH when `$srcdir' = `.'.
28574 # Shell code in configure.ac might set extrasub.
28575 # FIXME: do we really want to maintain this feature?
28576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28577 ac_sed_extra="$ac_vpsub
28578 $extrasub
28579 _ACEOF
28580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28581 :t
28582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28583 s|@configure_input@|$ac_sed_conf_input|;t t
28584 s&@top_builddir@&$ac_top_builddir_sub&;t t
28585 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28586 s&@srcdir@&$ac_srcdir&;t t
28587 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28588 s&@top_srcdir@&$ac_top_srcdir&;t t
28589 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28590 s&@builddir@&$ac_builddir&;t t
28591 s&@abs_builddir@&$ac_abs_builddir&;t t
28592 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28593 $ac_datarootdir_hack
28594 "
28595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28596 if $ac_cs_awk_getline; then
28597 $AWK -f "$tmp/subs.awk"
28598 else
28599 $AWK -f "$tmp/subs.awk" | $SHELL
28600 fi >$tmp/out \
28601 || as_fn_error "could not create $ac_file" "$LINENO" 5
28602
28603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28604 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28607 which seems to be undefined. Please make sure it is defined." >&5
28608 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28609 which seems to be undefined. Please make sure it is defined." >&2;}
28610
28611 rm -f "$tmp/stdin"
28612 case $ac_file in
28613 -) cat "$tmp/out" && rm -f "$tmp/out";;
28614 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28615 esac \
28616 || as_fn_error "could not create $ac_file" "$LINENO" 5
28617 ;;
28618 :H)
28619 #
28620 # CONFIG_HEADER
28621 #
28622 if test x"$ac_file" != x-; then
28623 {
28624 $as_echo "/* $configure_input */" \
28625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28626 } >"$tmp/config.h" \
28627 || as_fn_error "could not create $ac_file" "$LINENO" 5
28628 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28630 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28631 else
28632 rm -f "$ac_file"
28633 mv "$tmp/config.h" "$ac_file" \
28634 || as_fn_error "could not create $ac_file" "$LINENO" 5
28635 fi
28636 else
28637 $as_echo "/* $configure_input */" \
28638 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28639 || as_fn_error "could not create -" "$LINENO" 5
28640 fi
28641 ;;
28642
28643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28644 $as_echo "$as_me: executing $ac_file commands" >&6;}
28645 ;;
28646 esac
28647
28648
28649 case $ac_file$ac_mode in
28650 "as":F) chmod +x as ;;
28651 "collect-ld":F) chmod +x collect-ld ;;
28652 "nm":F) chmod +x nm ;;
28653 "default":C)
28654 case ${CONFIG_HEADERS} in
28655 *auto-host.h:config.in*)
28656 echo > cstamp-h ;;
28657 esac
28658 # Make sure all the subdirs exist.
28659 for d in $subdirs doc build common c-family
28660 do
28661 test -d $d || mkdir $d
28662 done
28663 ;;
28664
28665 esac
28666 done # for ac_tag
28667
28668
28669 as_fn_exit 0
28670 _ACEOF
28671 ac_clean_files=$ac_clean_files_save
28672
28673 test $ac_write_fail = 0 ||
28674 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28675
28676
28677 # configure is writing to config.log, and then calls config.status.
28678 # config.status does its own redirection, appending to config.log.
28679 # Unfortunately, on DOS this fails, as config.log is still kept open
28680 # by configure, so config.status won't be able to write to it; its
28681 # output is simply discarded. So we exec the FD to /dev/null,
28682 # effectively closing config.log, so it can be properly (re)opened and
28683 # appended to by config.status. When coming back to configure, we
28684 # need to make the FD available again.
28685 if test "$no_create" != yes; then
28686 ac_cs_success=:
28687 ac_config_status_args=
28688 test "$silent" = yes &&
28689 ac_config_status_args="$ac_config_status_args --quiet"
28690 exec 5>/dev/null
28691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28692 exec 5>>config.log
28693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28694 # would make configure fail if this is the last instruction.
28695 $ac_cs_success || as_fn_exit $?
28696 fi
28697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28700 fi
28701
28702